Skip to content
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异步加载初始化回显问题 #3058

Closed
CrystalCoCo opened this issue Jun 8, 2022 · 2 comments
Closed

Cascader异步加载初始化回显问题 #3058

CrystalCoCo opened this issue Jun 8, 2022 · 2 comments

Comments

@CrystalCoCo
Copy link

TuSimple/naive-ui version (版本)

2.30.2

Vue version (Vue 版本)

3.2.31

Browser and its version (浏览器及其版本)

Chrome(102.0.5005.63)

System and its version (系统及其版本)

Win10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/youthful-roentgen-c86gko?file=/src/Demo.vue

Reappearance steps (重现步骤)

Cascader异步加载,在初始化时(例如初始化显示:北京市/市辖区/海淀区),设置了初始化的值(利用v-model设置的),而非default-value

Expected results (期望的结果)

Cascader显示初始化值,并且展开到相应的子级

Actual results (实际的结果)

初始化的北京市/市辖区/海淀区能够正常显示,但是并且展开到相应的子级,在按照初始化的值进行选择,展开到海淀区那一级时,发现是被勾选上了的,只是无法展开

Remarks (补充说明)

@Y-Lao
Copy link

Y-Lao commented Jun 26, 2024

有解决方法吗

@JS-mark
Copy link

JS-mark commented Jun 26, 2024

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants