Ant-design-vue: tree在异步加载数据后默认展开失效

Created on 22 Jun 2019  ·  6Comments  ·  Source: vueComponent/ant-design-vue

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

Version

1.3.10

Environment

vue2.5 Chrome75

Reproduction link

Edit on CodeSandbox

Steps to reproduce

。。。

What is expected?

修复autoExpandParent、defaultExpandAll、defaultExpandedKeys、defaultExpandParent API 在异步加载数据后无法正常展开的bug

What is actually happening?

无法正常展开

outdated

Most helpful comment

v-if="data.length>0" 试下

All 6 comments

v-if="data.length>0" 试下

谢谢

解决了吗?

https://vue.ant.design/docs/vue/faq-cn/#%E5%BD%93%E6%88%91%E5%8A%A8%E6%80%81%E6%94%B9%E5%8F%98-defaultValue,defaultOpenKeys,-initialValue%E7%AD%89defaultXxxx%E7%9A%84%E6%97%B6%E5%80%99%E5%AE%83%E5%B9%B6%E6%B2%A1%E6%9C%89%E7%94%9F%E6%95%88%E3%80%82

解决了吗?
用这个API expandedKeys解决了问题;

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings