[cdk:forms] 使用useFormArray的时候disabled仅在初始化的时候生效
xiangaxiangaxiang opened this issue · 0 comments
xiangaxiangaxiang commented
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
复现链接 https://codesandbox.io/s/unruffled-napier-vchbm1?file=/src/Demo.vue
Steps to reproduce
根据复现链接里的demo,点击toggle按钮时会同步更改表单项的disabled状态,
What is expected?
期望能够根据状态同步disabled
What is actually happening?
实际上并没有
Environment Info
"@idux/cdk": "1.5.0",
"@idux/components": "1.5.0",
"@idux/pro": "1.5.0",
"vue": "3.2.36"
Any additional comments? (optional)
在源码里看到disable方法仅在初始化的时候调用了一次,watchEffect仅改变了_disabled状态,没有调用相应的disable或enable方法