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

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

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