From 8881f69f5d7127a4090184b3ea7c9cbf9574100e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 18 三月 2024 18:01:51 +0800 Subject: [PATCH] 2024-03-18 --- src/tabviews/zshare/topSearch/index.jsx | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 4e6d329..8a3fb52 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -66,6 +66,10 @@ _setting.wrapperCol = {style: {width: (100 - _setting.labelwidth) + '%'}} _setting.borderRadius = config.wrap.borderRadius _setting.resetContrl = config.wrap.resetContrl || 'init' + + if (config.wrap.searchBtn === 'show') { + _setting.showBtn = true + } } if (config.type === 'search') { @@ -761,6 +765,16 @@ </Form.Item> </Col> ) + } else if (setting.showBtn) { + fields.push( + <Col className="mk-search-col search-button" key="actions"> + <Form.Item> + <Button type="primary" onClick={this.handleSubmit}> + 鎼滅储 + </Button> + </Form.Item> + </Col> + ) } return fields -- Gitblit v1.8.0