mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 18:53:01 +08:00
fix(form): fix the form item setting not taking effect
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
- 修复升级之后 table 类型问题
|
- 修复升级之后 table 类型问题
|
||||||
- 修复分割菜单且左侧菜单没有数据时候,继续展示上一次子菜单的问题
|
- 修复分割菜单且左侧菜单没有数据时候,继续展示上一次子菜单的问题
|
||||||
- 修复`useMessage`类型问题
|
- 修复`useMessage`类型问题
|
||||||
|
- 修复表单项设置`disabled`不生效问题
|
||||||
|
|
||||||
## 2.0.0-rc.8 (2020-11-2)
|
## 2.0.0-rc.8 (2020-11-2)
|
||||||
|
|
||||||
|
@@ -56,8 +56,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
const getDisableRef = computed(() => {
|
const getDisableRef = computed(() => {
|
||||||
const { disabled: globDisabled } = props.formProps;
|
const { disabled: globDisabled } = props.formProps;
|
||||||
const { dynamicDisabled } = props.schema;
|
const { dynamicDisabled, componentProps = {} } = props.schema;
|
||||||
let disabled = !!globDisabled;
|
const { disabled: itemDisabled = false } = componentProps;
|
||||||
|
let disabled = !!globDisabled || itemDisabled;
|
||||||
if (isBoolean(dynamicDisabled)) {
|
if (isBoolean(dynamicDisabled)) {
|
||||||
disabled = dynamicDisabled;
|
disabled = dynamicDisabled;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user