element [bug report] when the cascade component is dynamically loaded and radio selected at any level, select a node, and the lower level menu will expand to display "no data at present". In fact, the data is not loaded. Give people the illusion that there is no subordinate data

oogrdqng  于 2023-02-04  发布在  其他
关注(0)|答案(2)|浏览(133)

Element UI version

2.13.2

OS/Browsers version

win8.1 edge89

Vue version

2.6.12

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上,就会动态加载下级数据。

yvt65v4c

yvt65v4c1#

Translation of this issue:

Element UI version

2.13.2

OS/Browsers version

win8.1 edge89

Vue version

2.6.12

https://codepen.io/sunsonghao/pen/yLgLrJX

Steps to reproduce

  1. Cascade component props.lazy Is true, props.checkStrictly Is true
  2. Click the select button of a node with child for the first time, and the child menu will pop up to show "no data at present".
  3. After the data is loaded, click the select button for the second time, and the corresponding data will be displayed in the submenu.

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.

pieyvz9o

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.

相关问题