From 1ea9fe09a611dea3a05131e349a8e8dd46adcf6a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 01 四月 2022 22:50:33 +0800 Subject: [PATCH] 2022-04-01 --- src/tabviews/zshare/mutilform/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index dc188ee..f67bfa1 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -786,21 +786,23 @@ if (item.type === 'split') { fields.push( <Col span={24} key={index}> - <p className="mk-form-split-line">{item.label}</p> + <p className="mk-form-split-line" style={item.style}>{item.label}</p> </Col> ) } else if (item.type === 'hint') { fields.push( <Col span={item.span || 24} key={index}> - <Form.Item className="hint" colon={!!item.label} label={item.label || ' '} labelCol={item.labelCol} wrapperCol={item.wrapperCol}> - <div className="message">{item.message}</div> + <Form.Item className="hint" colon={false} label={item.label ? <span className="mk-form-label" style={item.style}>{item.label}</span> : ' '} labelCol={item.labelCol} wrapperCol={item.wrapperCol}> + <div className="message" style={item.style}>{item.message}</div> </Form.Item> </Col> ) } else { let content = null let className = '' - let label = item.tooltip ? <Tooltip placement="topLeft" title={item.tooltip}><QuestionCircleOutlined style={{color: '#c49f47', marginRight: '3px'}}/>{item.label}</Tooltip> : item.label + let label = item.tooltip ? <Tooltip placement="topLeft" title={item.tooltip}><QuestionCircleOutlined style={{color: '#c49f47', marginRight: '3px'}}/> + <span className="mk-form-label" style={item.style}>{item.label}</span> + </Tooltip> : <span className="mk-form-label" style={item.style}>{item.label}</span> if (item.type === 'text' || item.type === 'linkMain') { content = (<MKInput config={item} onChange={(val, defer) => !defer && this.recordChange({[item.field]: val})} onSubmit={this.props.inputSubmit} />) @@ -840,6 +842,7 @@ <Col span={item.span || 24} key={index}> <Form.Item label={label} + colon={false} className={className} extra={item.extra || null} labelCol={item.labelCol} -- Gitblit v1.8.0