From 106263ec10e60ce6c406e4fd5eb76d195772d0f0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 18 十二月 2020 18:07:05 +0800 Subject: [PATCH] 2020-12-18 --- src/templates/zshare/editcomponent/index.jsx | 33 --------------------------------- 1 files changed, 0 insertions(+), 33 deletions(-) diff --git a/src/templates/zshare/editcomponent/index.jsx b/src/templates/zshare/editcomponent/index.jsx index a1eccb1..51937ed 100644 --- a/src/templates/zshare/editcomponent/index.jsx +++ b/src/templates/zshare/editcomponent/index.jsx @@ -6,7 +6,6 @@ import Api from '@/api' import Utils from '@/utils/utils.js' import PasteForm from '@/templates/zshare/pasteform' -import ReplaceForm from '@/templates/zshare/replaceform' import TransferForm from '@/templates/zshare/basetransferform' import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' @@ -26,7 +25,6 @@ thawVisible: false, thawbtnlist: null, pasteVisible: false, - replaceVisible: false } handleMenuClick = e => { @@ -34,8 +32,6 @@ this.handleThaw() } else if (e.key === 'paste') { this.setState({pasteVisible: true}) - } else if (e.key === 'replace') { - this.setState({replaceVisible: true}) } } @@ -278,18 +274,6 @@ }) } - replaceSubmit = () => { - this.replaceFormRef.handleConfirm().then(res => { - this.props.refresh({ - type: 'replace', - ...res - }) - this.setState({ - replaceVisible: false - }) - }) - } - render() { const { MenuID } = this.props const { dict } = this.state @@ -297,7 +281,6 @@ <Menu onClick={this.handleMenuClick}> {MenuID ? <Menu.Item key="thaw"><Icon type="unlock" />{dict['header.form.thawbutton']}</Menu.Item> : null} <Menu.Item key="paste"><Icon type="snippets" />{dict['header.form.paste']}</Menu.Item> - {/* <Menu.Item key="replace"><Icon type="retweet" />鏇挎崲</Menu.Item> */} </Menu> ) @@ -332,22 +315,6 @@ <PasteForm dict={dict} wrappedComponentRef={(inst) => this.pasteFormRef = inst} - /> - </Modal> - {/* 鏇挎崲 */} - <Modal - title={'鏇挎崲'} - visible={this.state.replaceVisible} - width={600} - maskClosable={false} - onOk={this.replaceSubmit} - onCancel={() => {this.setState({replaceVisible: false})}} - destroyOnClose - > - <ReplaceForm - dict={dict} - inputSubmit={this.replaceSubmit} - wrappedComponentRef={(inst) => this.replaceFormRef = inst} /> </Modal> </div> -- Gitblit v1.8.0