| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Icon, Modal } from 'antd' |
| | | import { Modal } from 'antd' |
| | | import { EditOutlined, CloseOutlined, PlusOutlined } from '@ant-design/icons' |
| | | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | |
| | | <div className="model-calendar-tab"> |
| | | {config.tab ? <div className="tab-control"> |
| | | <span onDoubleClick={this.props.setSubConfig}>{config.tab.label}</span> |
| | | <Icon type="edit" onClick={this.handleTab} /> |
| | | <Icon type="close" onClick={this.closeTab} /> |
| | | </div> : <Icon title="添加标签" type="plus" onClick={this.handleTab} />} |
| | | <EditOutlined onClick={this.handleTab} /> |
| | | <CloseOutlined onClick={this.closeTab} /> |
| | | </div> : <PlusOutlined title="添加标签" onClick={this.handleTab} />} |
| | | {/* 设置全局配置及列表数据源 */} |
| | | <Modal |
| | | wrapClassName="model-calendar-tab-modal" |
| | | title={dict['model.edit']} |
| | | visible={visible} |
| | | width={900} |
| | | width={700} |
| | | maskClosable={false} |
| | | onCancel={() => { this.setState({ visible: false })}} |
| | | onOk={this.tabSave} |