| | |
| | | import { QuestionCircleOutlined, ArrowDownOutlined, ArrowUpOutlined, PlusOutlined, DeleteOutlined } from '@ant-design/icons' |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | import { getTabForm } from '@/templates/zshare/formconfig' |
| | | |
| | | import TabForm from './tabform' |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | tabgroups: [], // 标签组 |
| | | card: [], // 编辑标签 |
| | | group: [], // 编辑组 |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { tabgroups, visible, dict } = this.state |
| | | const { tabgroups, visible } = this.state |
| | | |
| | | return ( |
| | | <div className="model-table-tab-list"> |
| | |
| | | handleMenu={(card) => this.handleTab(card, group)} |
| | | deleteMenu={(card) => this.deleteElement(card, group)} |
| | | doubleClickCard={this.props.setSubConfig} |
| | | placeholder={dict['form.required.add'] + dict['model.form.tab']} |
| | | /> |
| | | </div>) |
| | | })} |
| | |
| | | destroyOnClose |
| | | > |
| | | <TabForm |
| | | dict={dict} |
| | | card={this.state.card} |
| | | tabs={this.props.tabs} |
| | | levels={this.state.levels} |