fix(form): disable配置失效

This commit is contained in:
roymondchen 2022-12-07 17:02:31 +08:00
parent 14550ddc0f
commit 12d56aeda9

View File

@ -162,9 +162,7 @@ const tagName = computed(() => {
return 'm-fields-text';
});
const disabled = computed(() =>
typeof props.disabled === 'undefined' ? filterFunction(mForm, props.config.disabled, props) : props.disabled,
);
const disabled = computed(() => props.disabled || filterFunction(mForm, props.config.disabled, props));
const tooltip = computed(() => filterFunction(mForm, props.config.tooltip, props));