提交 f8917abb authored 作者: chscls@163.com's avatar chscls@163.com

修复验证器

上级 550599cb
......@@ -2858,6 +2858,9 @@ export default class tableCom extends Component {
case 'RichText':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: { editorState: changeToDraftState(initValue) },
rules: json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请输入' }],
})(<DraftEditor placeholder={json.placeholder} />);
if (get === 'mobile' && json.isLabel && title) {
cm = (
......@@ -2874,6 +2877,9 @@ export default class tableCom extends Component {
case 'LocationCom':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: {},
rules: json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请进行定位' }],
})(
<LocationCom
get={get}
......@@ -2933,6 +2939,9 @@ export default class tableCom extends Component {
case 'ImgUploadCom':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue,
rules: json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请上传图片' }],
})(<ImgUploadCom json={json} disabled={disabled} />);
if (get === 'mobile' && json.isLabel && title) {
cm = (
......@@ -2949,7 +2958,9 @@ export default class tableCom extends Component {
case 'Signature':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue,
rules: [{ required: required, message: '请进行签名' }],
rules: json.vlds && json.vlds.length > 0
? json.vlds
: [{ required: required, message: '请进行签名' }],
})(
<Signature
width={
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论