-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cascader] 选项disabled修改后,选项不是禁用状态 #2859
Labels
to be published
fixed, not be published
Comments
👋 @lxc-orange,感谢给 TDesign 提出了 issue。 |
|
lxc-orange
added a commit
to lxc-orange/tdesign-vue
that referenced
this issue
Oct 24, 2023
16 tasks
你好,针对 Issue #2859 的cascader选项动态禁用的问题,在1.7.1版本中并没有彻底修复,1.7.1版本在动态修改disabled后是没有显示禁用状态的,只是不能选中,效果如下:
https://i.imgs.ovh/2023/10/24/FLdqT.png
导致这个的原因是,没有实时修改 panels 中的 disabled ,没有同步 props 中的 options 数据
如果要添加禁用状态是需要在 src/cascader/hooks.ts 中监听options中添加一个深度监听,效果如下:https://i.imgs.ovh/2023/10/24/FLDHu.png
在 2023-10-20 11:14:34,"wū yāng" ***@***.***> 写道:
已修复 今天发布个版本
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
fixed 1.7.2 |
uyarn
added a commit
that referenced
this issue
Nov 23, 2023
uyarn
added a commit
that referenced
this issue
Nov 23, 2023
* fix(tree): tree 组件,解决 watch 回调时间过迟的问题 (#2873) * fix(tree): tree 组件,解决 watch 回调时间过迟的问题 * style(tree): tree 组件,代码样式改进 * test(tree): tree 组件,完善单元测试,验证 mounted 赋值可在 nextTick 触发数据变更 * [cascader]选项disabled修改后,选项不是禁用状态#2859 (#2872) * [cascader]选项disabled修改后,选项不是禁用状态#2859 * chore: fix lint --------- Co-authored-by: wū yāng <uyarnchen@gmail.com> * feat(tree): add api getTreeData (#2888) * refactor(tree): tree 组件完善数据初始化时机问题的解决方案 * feat(tree): tree 组件添加 api: getTreeData * test(tree): tree 组件,完善 getTreeData 方法的单元测试 * test(tree): 完善单元测试 * docs(tree): tree 组件完善文档 * feat(upload): support fileListDisplay=null to hide file list (#2889) * feat(image-viewer): support closeOnEscKeydown (#2890) * feat(Upload): add Some Features and Bugs (#2891) * feat: rebase develo * feat(upload): some features * test: update snapshots * fix: remove unsued code * feat(select): props collapsedItems to add onClose function (#2863) * fix: 修正 lodash 引入 (#2893) * fix(slider): step < 1 is not working (#2894) * fix(slider): fix step is not working * chore: update common * chore: update demo * fix(checkbox): value.splice does not work (#2896) * feat(checkbox): support Array.splice * revert: demo * chore: release 1.7.2 (#2895) * chore: release 1.7.2 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: fix api docs (#2904) * chore: fix api docs * chore: fix api docs * fix: 误判断删除键(backspace)是空格键(space) (#2905) * docs(Input): value type remove Number * fix: 删除键(backspace)触发误判断成空格(space) * fix(popup): ignore mouseenter when destroyOnClose is true and is leaving (#2898) * feat(loading): support v-loading unbind (#2902) * fix(table): do not calculate th width if props.showHeader=false (#2909) * feat(space): compatibility problems (#2887) * fix(space): compatibility problems * test: unit tests * feat: update common and snapshots * test: update common and unit tests * test: update snapshots * chore: add ignore async expamle list test * fix(checkbox): unexpected behavior when disabled is handled (#2911) * fix(checkbox): unexpected behavior when disabled is handled * fix(checkbox): max disabled state --------- Co-authored-by: chaishi <974383157@qq.com> * feat(table): support update edited cell value (#2917) * [Checkbox] fix set value checked before options pushed, while checkbox UI is not checked (#2914) * fix: useElementLazyRender default value * fix(checkbox): set value before options change does not work * fix: useElementLazyRender * [Table] fix column resize problem; column controller of multiple header improvement (#2916) * docs: demo inprovement * fix(table): multi header column config * fix: 修复列宽调整问题 * fix(table): column controller of multiple header does not work * test: update snapshots * test: update snapshots * feat(input): support number type (#2906) * feat(input): support number type * feat(input): default type is string * fix: add ts * feat: inputvalue string * fix: lint error * feat(taginput): support prefixIcon * chore: remove api not implemented --------- Co-authored-by: wū yāng <uyarnchen@gmail.com> * feat(statistic): add Statistic component (#2397) * Merge branch 'docs/statistic' into feat/statistic * feat(statistic): add new component for statistic add new component for statistic BREAKING CHANGE: add statistic * perf(renamed icons for consistency): renamed icons for consistency Renamed icons for consistency * feat(statistic): add component tests and update examples add component tests and update examples * chore(submodules): submodules * docs(statistic): add file description * chore: update snapshot * chore: fix ui feedback * chore: update snapshot * chore: update common * chore: update common --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * fix(Textarea): autosize nextTick null err (#2921) * feat(table): lazyLoad works not properly (#2915) * fix: useElementLazyRender * test: update snapshots --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * chore: update docs (#2923) * chore: update docs * chore: update docs * chore: update CONTRIBUTING.md * fix(cascader): fix placeholder warning (#2924) * chore: release 1.8.0 (#2925) * chore: release 1.8.0 * chore: remove deprecated CHANGELOG * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: release 1.8.0-naruto --------- Co-authored-by: TabSpace <pillar0514@163.com> Co-authored-by: lxc-orange <108909689+lxc-orange@users.noreply.github.com> Co-authored-by: sheepluo <yaoyanhuoyi@qq.com> Co-authored-by: bloglab <37498563+ubloglab@users.noreply.github.com> Co-authored-by: fennghuang <89014758+fennghuang@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: Guxi11 <zhang.yuanyuan@pku.edu.cn> Co-authored-by: Zz-ZzzZ <48228016+Zz-ZzzZ@users.noreply.github.com> Co-authored-by: betavs <34408516+betavs@users.noreply.github.com> Co-authored-by: chaishi <974383157@qq.com> Co-authored-by: 李江辰 <SpaceCode@foxmail.com> Co-authored-by: Nined <nined@protonmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-vue 版本
1.7.0
重现链接
https://codesandbox.io/s/tdesign-vue-demo-forked-77nzcc?file=/src/demo.vue
重现步骤
选中选项三后,在change事件中修改options中每一个选项的disabled为true,options中的数据已经被修改,但不是禁用状态。期望结果
No response
实际结果
No response
框架版本
vue(~2.6.14)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: