提交 7f903274 authored 作者: 徐立's avatar 徐立

添加文本域自适应

上级 b7842e6f
......@@ -1498,7 +1498,7 @@ export default class tableCom extends Component {
</>
);
}
if (json.comName == 'Label'||json.comName == 'Excel' ) {
if (json.comName == 'Label' || json.comName == 'Excel') {
let uid;
if (this.props.fatherCode != null) {
uid = `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}`;
......@@ -1516,7 +1516,7 @@ export default class tableCom extends Component {
})(<Input type="hidden" />)}
<span
style={{
whiteSpace: json.comName == 'Excel' ?"nowrap":"normal",
whiteSpace: json.comName == 'Excel' ? 'nowrap' : 'normal',
fontWeight: get == 'mobile' ? 'bold' : '',
marginRight: get == 'mobile' ? 12 : '',
}}
......@@ -1534,7 +1534,7 @@ export default class tableCom extends Component {
})(<Input type="hidden" />)}
<span
style={{
whiteSpace: json.comName == 'Excel' ?"nowrap":"normal",
whiteSpace: json.comName == 'Excel' ? 'nowrap' : 'normal',
fontWeight: get == 'mobile' ? 'bold' : '',
marginRight: get == 'mobile' ? 12 : '',
}}
......@@ -2287,7 +2287,13 @@ export default class tableCom extends Component {
json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请输入' + title }],
})(<TextArea disabled={disabled} rows={4} placeholder={json.placeholder} />);
})(
<TextArea
autosize={{ minRows: 4 }}
disabled={disabled}
placeholder={json.placeholder}
/>,
);
/* cm = (
<MobileTextareaItem
{...getFieldProps(dataColumn.base52, {
......@@ -2327,7 +2333,14 @@ export default class tableCom extends Component {
json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请输入' + title }],
})(<TextArea disabled={disabled} rows={4} placeholder={json.placeholder} />);
})(
<TextArea
autosize={{ minRows: 4 }}
disabled={disabled}
rows={4}
placeholder={json.placeholder}
/>,
);
}
break;
case 'Switch':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论