Skip to content

[Cascader] Asynchronous loading supports default values #4469

@snowchenlei

Description

@snowchenlei
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

当前版本:2.2.2
重新链接:https://stackblitz.com/edit/vue-urjsjw?file=src/App.vue
1、Cascader使用异步加载数据(并默认加载了第一层)。设置defaultValue后只能默认加载第一层,不会触发change事件也无法异步加载默认值,希望可以支持异步数据默认值。
2、支持选项改变时触发事件。change仅在selected或整个值变化是才触发,设置了第一层值并不会触发
change在选项改变时应该触发

What does the proposed API look like?

(参考ng.antd)
https://ng.ant.design/components/cascader/zh#components-cascader-demo-default-value-and-lazyload

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions