| | |
| | | import { SnippetsOutlined } from '@ant-design/icons' |
| | | |
| | | import MenuUtils from '@/utils/utils-custom.js' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | // import './index.scss' |
| | | |
| | |
| | | } |
| | | |
| | | pasteSubmit = () => { |
| | | let appType = sessionStorage.getItem('appType') |
| | | let options = ['datacard', 'propcard', 'balcony', 'timeline', 'simpleform', 'stepform', 'tabform', 'normaltable', 'tablecard', 'line', 'bar', 'pie', 'dashboard', 'scatter', 'chart'] |
| | | let types = { |
| | | login: '登录', |
| | |
| | | mainsearch: '搜索', |
| | | group: '分组', |
| | | menubar: '菜单' |
| | | } |
| | | |
| | | if (appType !== 'mob') { |
| | | options.push('editable') |
| | | } |
| | | |
| | | this.pasteFormRef.handleConfirm().then(res => { |
| | |
| | | return |
| | | } |
| | | |
| | | let copyBtns = new Map() |
| | | |
| | | res = MenuUtils.resetComponentConfig(res, copyBtns) |
| | | res = MenuUtils.resetComponentConfig(res) |
| | | |
| | | delete res.copyType |
| | | |
| | | this.props.insert(res) |
| | | |
| | | copyBtns = [...copyBtns.values()] |
| | | |
| | | if (copyBtns.length > 0) { |
| | | MKEmitter.emit('copyButtons', copyBtns) |
| | | } |
| | | |
| | | this.setState({visible: false}) |
| | | |