From 3875da845b8fae679bd784d1246101a5fb1b61b5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 15 三月 2023 16:33:20 +0800 Subject: [PATCH] 2023-03-15 --- src/templates/sharecomponent/fieldscomponent/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/fieldscomponent/index.jsx b/src/templates/sharecomponent/fieldscomponent/index.jsx index 38fbab2..3066fac 100644 --- a/src/templates/sharecomponent/fieldscomponent/index.jsx +++ b/src/templates/sharecomponent/fieldscomponent/index.jsx @@ -196,6 +196,7 @@ if (item.type === 'text' && item.length >= 256) { newcard.type = 'textarea' + newcard.required = 'false' newcard.fieldlength = item.length if (firstItem) { if (firstItem.type === newcard.type) { @@ -262,9 +263,16 @@ const { type } = this.props const { fields } = this.state + let label = '鎵归噺娣诲姞' + if (type === 'search') { + label = '娣诲姞鎼滅储' + } else if (type === 'columns') { + label = '娣诲姞鏄剧ず鍒�' + } + return ( <div className="quickly-add"> - <Button type="primary" block onClick={this.queryField}>鎵归噺娣诲姞</Button> + <Button type="primary" block onClick={this.queryField}>{label}</Button> {/* 鏍规嵁瀛楁鍚嶆坊鍔犳樉绀哄垪鍙婃悳绱㈡潯浠� */} <Modal wrapClassName="model-table-fieldmanage-modal" -- Gitblit v1.8.0