From 318642cd6837a38a4bf5dfe059bcbb6cafe3bca8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 二月 2021 15:28:28 +0800 Subject: [PATCH] 2021-02-02 --- src/templates/sharecomponent/actioncomponent/actionform/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx index 6310dc9..464e035 100644 --- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx @@ -644,11 +644,11 @@ initialValue: item.initVal, rules: [ { - required: !!item.required, + required: item.readonly ? false : !!item.required, message: this.props.dict['form.required.input'] + item.label + '!' } ] - })(<TextArea rows={2} />)} + })(<TextArea rows={2} readOnly={item.readonly} />)} </Form.Item> </Col> ) @@ -731,7 +731,7 @@ } } return ( - <Form {...formItemLayout} className="ant-advanced-search-form commontable-action-form" id="winter"> + <Form {...formItemLayout} className="normal-action-list-form" id="winter"> <Row gutter={24}>{this.getFields()}</Row> </Form> ) -- Gitblit v1.8.0