Element UI version
2.13.2
OS/Browsers version
win8.1 edge89
Vue version
2.6.12
Reproduction Link
https://codepen.io/sunsonghao/pen/yLgLrJX
Steps to reproduce
1.Cascader组件props.lazy为true,props.checkStrictly为true
2.首次 点击某个有子级的节点的选中按钮,子级菜单弹出显示“暂无数据”。
3.数据加载过之后,第二次点击选中按钮,子级菜单中会展示对应的数据。
What is Expected?
点击节点的选中按钮,不展示子级菜单menu面板(目前代码中展示子级menu是为修复bug:点击同级的没有子级的节点,上一节点的子级menu不消失)。或者展示子级menu面板但同时把子级数据加载出来。
What is actually happening?
首次点击节点选中,由于数据动态加载的缘故,其实只是子级数据未加载,确给用户以该节点没有子级的假象。只要点击在该节点label上,就会动态加载下级数据。
2条答案
按热度按时间yvt65v4c1#
Translation of this issue:
Element UI version
2.13.2
OS/Browsers version
win8.1 edge89
Vue version
2.6.12
Reproduction Link
https://codepen.io/sunsonghao/pen/yLgLrJX
Steps to reproduce
What is Expected?
Click the select button of the node, and the sub level menu panel will not be displayed (at present, the sub level menu is displayed in the code to fix bugs: click the node of the same level that has no sub level, and the sub level menu of the previous node will not disappear). Or display the child menu panel and load the child data at the same time.
What is actually happening?
When the node is selected for the first time, due to the dynamic loading of data, only the child data is not loaded, which gives the user the illusion that the node has no children. As long as you click on the label of the node, the lower level data will be loaded dynamically.
pieyvz9o2#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.