提交 6936adb2 编写于 作者: V vben

fix(form): fix the form item setting not taking effect

上级 21a225c2
......@@ -17,6 +17,7 @@
- 修复升级之后 table 类型问题
- 修复分割菜单且左侧菜单没有数据时候,继续展示上一次子菜单的问题
- 修复`useMessage`类型问题
- 修复表单项设置`disabled`不生效问题
## 2.0.0-rc.8 (2020-11-2)
......
......@@ -56,8 +56,9 @@ export default defineComponent({
const getDisableRef = computed(() => {
const { disabled: globDisabled } = props.formProps;
const { dynamicDisabled } = props.schema;
let disabled = !!globDisabled;
const { dynamicDisabled, componentProps = {} } = props.schema;
const { disabled: itemDisabled = false } = componentProps;
let disabled = !!globDisabled || itemDisabled;
if (isBoolean(dynamicDisabled)) {
disabled = dynamicDisabled;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册