From fb64bcf1fab18b33d21470c83f28d4cda8d309ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 十月 2022 12:15:59 +0800 Subject: [PATCH] 2022-10-26 --- src/menu/components/group/paste/index.jsx | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/menu/components/group/paste/index.jsx b/src/menu/components/group/paste/index.jsx index 2932f39..a7fd1b8 100644 --- a/src/menu/components/group/paste/index.jsx +++ b/src/menu/components/group/paste/index.jsx @@ -4,7 +4,6 @@ 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' @@ -24,6 +23,7 @@ } 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: '鐧诲綍', @@ -34,6 +34,10 @@ mainsearch: '鎼滅储', group: '鍒嗙粍', menubar: '鑿滃崟' + } + + if (appType !== 'mob') { + options.push('editable') } this.pasteFormRef.handleConfirm().then(res => { @@ -53,19 +57,11 @@ 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}) -- Gitblit v1.8.0