Commit b92b090c authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改判断

parent 279dc4be
......@@ -107,7 +107,7 @@ const getFieldType = (field: ElementType) => {
let description: { [key: string]: any } = {
'x-component-props': {
placeholder: field.fieldRemark,
disabled: field.disabled || false,
disabled: !!field.disabled,
},
};
// 公共的属性
......@@ -142,7 +142,7 @@ const getFieldType = (field: ElementType) => {
'x-component': 'CustomUpload',
'x-component-props': {
showDesc: false,
disabled: field.disabled || false,
disabled: !!field.disabled,
},
};
break;
......@@ -153,7 +153,7 @@ const getFieldType = (field: ElementType) => {
enum: field.fieldEnum,
'x-component-props': {
showDesc: false,
disabled: field.disabled || false,
disabled: !!field.disabled,
},
};
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment