From 9b6ce1a5778c6e1a813237e87588c0052aae1bbb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 四月 2020 17:26:15 +0800 Subject: [PATCH] 2020-04-29 --- src/templates/zshare/editcomponent/index.jsx | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/templates/zshare/editcomponent/index.jsx b/src/templates/zshare/editcomponent/index.jsx index cf54d8d..28f010d 100644 --- a/src/templates/zshare/editcomponent/index.jsx +++ b/src/templates/zshare/editcomponent/index.jsx @@ -141,7 +141,15 @@ }, () => { this.props.refresh({ type: 'paste', - copyType: 'action', + content: res + }) + }) + } else if (res.copyType === 'search') { + this.setState({ + pasteVisible: false + }, () => { + this.props.refresh({ + type: 'paste', content: res }) }) @@ -160,8 +168,7 @@ }, () => { this.props.refresh({ type: 'paste', - copyType: 'columns', - config: {...config, columns: res.columns} + content: res }) }) } else { @@ -179,7 +186,7 @@ <Menu onClick={this.handleMenuClick}> <Menu.Item key="thaw"><Icon type="unlock" />{this.props.dict['header.form.thawbutton']}</Menu.Item> <Menu.Item key="paste"><Icon type="snippets" />{this.props.dict['header.form.paste']}</Menu.Item> - <Menu.Item key="replace"><Icon type="retweet" />鏇挎崲</Menu.Item> + {/* <Menu.Item key="replace"><Icon type="retweet" />鏇挎崲</Menu.Item> */} </Menu> ) @@ -193,7 +200,7 @@ {/* 瑙e喕鎸夐挳妯℃�佹 */} <Modal title={this.props.dict['header.form.thawbutton']} - okText={this.props.dict['header.confirm']} + okText={this.props.dict['model.confirm']} cancelText={this.props.dict['header.cancel']} visible={this.state.thawVisible} onOk={this.thawBtnSubmit} -- Gitblit v1.8.0