| | |
| | | import { is, fromJS } from 'immutable' |
| | | import { DndProvider } from 'react-dnd' |
| | | import HTML5Backend from 'react-dnd-html5-backend' |
| | | import { Button, Card, Modal, Collapse, notification, Spin, Icon, Switch, Tooltip, Row, Col, Tree } from 'antd' |
| | | import { Button, Card, Modal, Collapse, notification, Spin, Switch, Tooltip, Row, Col, Tree } from 'antd' |
| | | import { QuestionCircleOutlined, RedoOutlined, SearchOutlined, FileOutlined, FolderOpenOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import Api from '@/api' |
| | |
| | | {configTabs.length > 0 ? |
| | | <p className="config-btn-title"> |
| | | <Tooltip placement="topLeft" title="点击按钮,可完成或查看标签配置信息。"> |
| | | <Icon type="question-circle" /> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | </Tooltip> |
| | | {this.state.dict['header.menu.tab.configurable']} |
| | | </p> : null |
| | |
| | | <Card title={ |
| | | <div> |
| | | {this.state.dict['header.menu.page.configurable']} |
| | | <Icon type="redo" style={{marginLeft: '10px'}} title="刷新标签列表" onClick={() => this.reloadTab(true)} /> |
| | | <RedoOutlined style={{marginLeft: '10px'}} title="刷新标签列表" onClick={() => this.reloadTab(true)} /> |
| | | </div> |
| | | } bordered={false} extra={ |
| | | <div> |
| | |
| | | title={ |
| | | <span className="tree-title"> |
| | | <span className="title">{config.setting.title}</span> |
| | | {config.setting.searchable !== 'false' ? <span className="ant-input-search ant-input-affix-wrapper"><span className="ant-input-suffix"><Icon type="search" /></span></span> : null} |
| | | {config.setting.searchable !== 'false' ? <span className="ant-input-search ant-input-affix-wrapper"><span className="ant-input-suffix"><SearchOutlined /></span></span> : null} |
| | | </span> |
| | | } |
| | | bordered={false} |
| | |
| | | showIcon={config.setting.showIcon === 'true'} |
| | | showLine={config.setting.showLine === 'true'} |
| | | > |
| | | <TreeNode icon={<Icon type="folder-open" />} title="parent 0" key="0-0"> |
| | | <TreeNode icon={<Icon type="file" />} title="leaf 0-0" key="0-0-0" isLeaf /> |
| | | <TreeNode icon={<Icon type="file" />} title="leaf 0-1" key="0-0-1" isLeaf /> |
| | | <TreeNode icon={<FolderOpenOutlined />} title="parent 0" key="0-0"> |
| | | <TreeNode icon={<FileOutlined />} title="leaf 0-0" key="0-0-0" isLeaf /> |
| | | <TreeNode icon={<FileOutlined />} title="leaf 0-1" key="0-0-1" isLeaf /> |
| | | </TreeNode> |
| | | <TreeNode icon={<Icon type="folder-open" />} title="parent 1" key="0-1"> |
| | | <TreeNode icon={<Icon type="file" />} title="leaf 1-0" key="0-1-0" isLeaf /> |
| | | <TreeNode icon={<Icon type="file" />} title="leaf 1-1" key="0-1-1" isLeaf /> |
| | | <TreeNode icon={<FolderOpenOutlined />} title="parent 1" key="0-1"> |
| | | <TreeNode icon={<FileOutlined />} title="leaf 1-0" key="0-1-0" isLeaf /> |
| | | <TreeNode icon={<FileOutlined />} title="leaf 1-1" key="0-1-1" isLeaf /> |
| | | </TreeNode> |
| | | </Tree> |
| | | </div> |