提交 8814a477 authored 作者: 姚鑫国's avatar 姚鑫国

修改标签组件 ,新增后标签

上级 aff408e3
...@@ -84,8 +84,8 @@ export default class Detail extends Component { ...@@ -84,8 +84,8 @@ export default class Detail extends Component {
render() { render() {
const { id } = this.state; const { id } = this.state;
let iframeUrl = `${config.gateWayPort}/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`; let iframeUrl = `${config.gateWayPort}/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`;
// iframeUrl = `https://yx.bpi.edu.cn/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`; // iframeUrl = `https://yx.bpi.edu.cn/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`;
// iframeUrl = `http://localhost:8022/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`; // iframeUrl = `http://localhost:8022/portal/#/showSmartFormOnly?id=${id}&token=${getToken()}&isShow=true`;
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
......
...@@ -2831,7 +2831,7 @@ ${obj[dataColumn.base52]} ...@@ -2831,7 +2831,7 @@ ${obj[dataColumn.base52]}
otherProps = {}; otherProps = {};
} }
} }
const { disabledInputStyle = {} } = otherProps; const { disabledInputStyle = {},addonAfter } = otherProps;
let inputStyle = { let inputStyle = {
width: json.width, width: json.width,
}; };
...@@ -2854,6 +2854,7 @@ ${obj[dataColumn.base52]} ...@@ -2854,6 +2854,7 @@ ${obj[dataColumn.base52]}
disabled={disabled} disabled={disabled}
style={inputStyle} style={inputStyle}
placeholder={json.placeholder} placeholder={json.placeholder}
addonAfter={addonAfter}
/>, />,
); );
...@@ -2882,6 +2883,14 @@ ${obj[dataColumn.base52]} ...@@ -2882,6 +2883,14 @@ ${obj[dataColumn.base52]}
})(<Input type="hidden"/>); })(<Input type="hidden"/>);
break; break;
case 'InputNumber': case 'InputNumber':
if (json?.otherProps) {
otherProps = json?.otherProps;
try {
otherProps = new Function(otherProps)();
} catch (e) {
otherProps = {};
}
}
cm = getFieldDecorator(dataColumn.base52, { cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue, initialValue: initValue,
rules: rules:
...@@ -2899,6 +2908,7 @@ ${obj[dataColumn.base52]} ...@@ -2899,6 +2908,7 @@ ${obj[dataColumn.base52]}
placeholder={json.placeholder} placeholder={json.placeholder}
max={json.max} max={json.max}
min={json.min} min={json.min}
addonAfter={otherProps?.addonAfter}//3.0ant 不支持
precision={json.precision} precision={json.precision}
step={json.step} step={json.step}
/>, />,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论