ElemeFE / ElemeFE/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

Open
#20,869 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.