Commit af4ab061 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改判断

parent 89e6a86d
......@@ -100,7 +100,7 @@ const getFieldType = (field: ElementType) => {
let description: { [key: string]: any } = {
'x-component-props': {
placeholder: field.fieldRemark,
disabled: field.disabled || field.editable || false,
disabled: field.disabled || !field.editable || false,
},
};
// 公共的属性
......@@ -135,7 +135,7 @@ const getFieldType = (field: ElementType) => {
'x-component': 'CustomUpload',
'x-component-props': {
showDesc: false,
disabled: field.disabled || field.editable || false,
disabled: field.disabled || !field.editable || false,
},
};
break;
......@@ -146,7 +146,7 @@ const getFieldType = (field: ElementType) => {
enum: field.fieldEnum,
'x-component-props': {
showDesc: false,
disabled: field.disabled || field.editable || false,
disabled: field.disabled || !field.editable || false,
},
};
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