| | |
| | | visible: false |
| | | } |
| | | |
| | | resetconfig = (item) => { |
| | | resetconfig = (item, appType) => { |
| | | if (item.type === 'tabs') { |
| | | item.uuid = MenuUtils.getuuid() |
| | | item.setting.name = item.setting.name + MenuUtils.getSignName() |
| | |
| | | tab.uuid = MenuUtils.getuuid() |
| | | |
| | | tab.components = tab.components.map(cell => { |
| | | cell = this.resetconfig(cell) |
| | | cell = this.resetconfig(cell, appType) |
| | | return cell |
| | | }) |
| | | }) |
| | |
| | | item.name = item.setting.name |
| | | |
| | | item.components = item.components.map(cell => { |
| | | cell = MenuUtils.resetComponentConfig(cell) |
| | | cell = MenuUtils.resetComponentConfig(cell, appType) |
| | | |
| | | return cell |
| | | }) |
| | | } else { |
| | | item = MenuUtils.resetComponentConfig(item) |
| | | item = MenuUtils.resetComponentConfig(item, appType) |
| | | } |
| | | |
| | | return item |
| | |
| | | pasteSubmit = () => { |
| | | const { Tab } = this.props |
| | | let appType = sessionStorage.getItem('appType') |
| | | let options = ['tabs', 'group', 'datacard', 'propcard', 'timeline', 'balcony', 'normaltable', 'mainsearch', 'simpleform', 'stepform', 'tabform', 'tablecard', 'line', 'bar', 'pie', 'scatter', 'sandbox'] |
| | | let options = ['tabs', 'group', 'datacard', 'propcard', 'timeline', 'balcony', 'normaltable', 'mainsearch', 'simpleform', 'stepform', 'tabform', 'editor', 'tablecard', 'line', 'bar', 'pie', 'scatter', 'sandbox'] |
| | | let types = { |
| | | login: '登录', |
| | | navbar: '导航栏', |
| | |
| | | return |
| | | } |
| | | |
| | | res = this.resetconfig(res) |
| | | res = this.resetconfig(res, appType) |
| | | |
| | | delete res.copyType |
| | | |