Commit 6936adb2c2af3c0bfbd238be1d61933601ff2b88
1 parent
21a225c2
fix(form): fix the form item setting not taking effect
Showing
2 changed files
with
4 additions
and
2 deletions
CHANGELOG.zh_CN.md
src/components/Form/src/FormItem.tsx
... | ... | @@ -56,8 +56,9 @@ export default defineComponent({ |
56 | 56 | |
57 | 57 | const getDisableRef = computed(() => { |
58 | 58 | const { disabled: globDisabled } = props.formProps; |
59 | - const { dynamicDisabled } = props.schema; | |
60 | - let disabled = !!globDisabled; | |
59 | + const { dynamicDisabled, componentProps = {} } = props.schema; | |
60 | + const { disabled: itemDisabled = false } = componentProps; | |
61 | + let disabled = !!globDisabled || itemDisabled; | |
61 | 62 | if (isBoolean(dynamicDisabled)) { |
62 | 63 | disabled = dynamicDisabled; |
63 | 64 | } | ... | ... |