From bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 十二月 2021 14:36:03 +0800 Subject: [PATCH] 2021-12-22 --- src/mob/components/topbar/normal-navbar/index.jsx | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/mob/components/topbar/normal-navbar/index.jsx b/src/mob/components/topbar/normal-navbar/index.jsx index 8bca7bb..3473c20 100644 --- a/src/mob/components/topbar/normal-navbar/index.jsx +++ b/src/mob/components/topbar/normal-navbar/index.jsx @@ -1,8 +1,8 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' -import { Icon, Popover } from 'antd' -import { ExpandOutlined, ReloadOutlined } from '@ant-design/icons' +import { Popover } from 'antd' +import { ExpandOutlined, ReloadOutlined, EllipsisOutlined, LogoutOutlined, ToolOutlined, ScanOutlined, LeftOutlined, EditOutlined, FontColorsOutlined, DeleteOutlined, SearchOutlined } from '@ant-design/icons' import asyncIconComponent from '@/utils/asyncIconComponent' import getWrapForm from './options' @@ -199,13 +199,13 @@ let right = null if (card.wrap.logout === 'true') { - right = <Icon type="logout" /> + right = <LogoutOutlined /> } if (card.wrap.scan === 'true') { - right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <Icon type="ellipsis" /> + right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <EllipsisOutlined /> } if (card.wrap.refresh === 'true') { - right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" onDoubleClick={this.skip}/> + right = !right ? <ReloadOutlined /> : <EllipsisOutlined onDoubleClick={this.skip}/> } return ( @@ -213,35 +213,35 @@ <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ <div className="mk-popover-control"> <NormalForm title="瀵艰埅鏍忚缃�" width={750} update={this.updateWrap} getForms={this.getWrapForms}> - <Icon type="edit" style={{color: '#1890ff'}} title="缂栬緫"/> + <EditOutlined style={{color: '#1890ff'}} title="缂栬緫"/> </NormalForm> <CopyComponent type="topbar" card={card}/> - <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} type="font-colors" /> - <Icon className="close" title="鍒犻櫎缁勪欢" type="delete" onClick={() => this.props.deletecomponent(card.uuid)} /> + <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle}/> + <DeleteOutlined className="close" title="鍒犻櫎缁勪欢" onClick={() => this.props.deletecomponent(card.uuid)} /> </div> } trigger="hover"> - <Icon type="tool" /> + <ToolOutlined /> </Popover> <div className="am-navbar"> <div className="am-navbar-left"> - {card.wrap.back !== 'false' ? <Icon type="left" /> : null} + {card.wrap.back !== 'false' ? <LeftOutlined /> : null} </div> {card.wrap.type !== 'search' ? <div className="am-navbar-title">{card.wrap.title || ''}</div> : <div className="am-navbar-search" onDoubleClick={this.setSearch}> <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ <div className="mk-popover-control"> - <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeSearchStyle} type="font-colors" /> + <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={this.changeSearchStyle}/> </div> } trigger="hover"> <div style={card.searchStyle} className="search-bar"> - {card.search && card.search.setting.scan === 'true' ? <Icon type="scan" /> : <Icon type="search" />} + {card.search && card.search.setting.scan === 'true' ? <ScanOutlined /> : <SearchOutlined />} </div> </Popover> </div> } <div className="am-navbar-right"> - {card.wrap.type === 'searchIcon' ? <Icon type="search" onDoubleClick={this.setSearch}/> : null} + {card.wrap.type === 'searchIcon' ? <SearchOutlined onDoubleClick={this.setSearch}/> : null} {right} </div> </div> -- Gitblit v1.8.0