[Feature Request] Cascader dynamic loading back display

An0nymous0
创建于
2017-05-18 03:40:28

Existing Component

Component Name

Cascader

Description

在动态加载的情况下,是否可以根据value数组内的内容自动获取多级数据并回显?现在貌似只能手工处理,而且还没有什么省事的办法。

https://jsfiddle.net/jyvssgty/

8条回答
element-bot
回复于
2017-05-18 03:40:31
#1

Translation of this issue:

Existing Component

yes

Component Name

Cascader

Description

In case of dynamic loading, is it possible to automatically retrieve multiple levels of data and to retrieve them based on content within the value array? It can only be handled manually, and there is no easy way to save it.

Https://jsfiddle.net/jyvssgty/

baiyaaaaa
回复于
2017-06-04 14:51:00
#2

不太清楚你的意思,这个不是本来就是要自己处理的吗。你可以再说清楚点嘛?

An0nymous0
回复于
2017-06-05 02:25:14
#3

@baiyaaaaa 根据el-cascader中的v-model数组字段自动带出下级。当然这个也可以自己手动处理。

blankPage0806
回复于
2017-06-06 08:00:36
#4

动态加载次级项 是否可以加载更多级呢?

slipkinem
回复于
2018-04-09 12:45:16
#5

请问这个问题如果手动解决怎么弄?

An0nymous0
回复于
2018-04-10 02:07:47
#6

@slipkinem 手动触发一下handleItemChange带出下级。 然后在给次级默认值

lmy1991
回复于
2019-01-14 06:10:23
#7

官方给的例子根本不能算是动态加载。
例子给的只是两级,而且下标还是写死的情况下。
那么请问实际使用,四级或者更多的情况下,我的要怎么给我的子级赋值。考虑过么?

hanxiaosss
回复于
2019-10-31 03:58:09
#8

手动有比较好的解决方案吗

当前位于第1页,总计8 条回复

推荐相似问题

Can't formatter the table cell Info.

When I set el-table-column props :formatter="callback", When creating components does not enter into my method!~ Can you
讨论数 2
element
创建时间:2017-05-18 03:01:54

[Bug Report] Checkbox can't be disabled in the table.

Element UI version 1.3.3 OS/Browsers version google Vue version 2.3.3 Reproduction Link https://jsfiddle.net/v9L9f3ks/ S
讨论数 3
element
创建时间:2017-05-18 01:54:39

[Bug Report] Year DatePicker initializes with 1969

Element UI version 1.3.3 OS/Browsers version Windows 10, Chrome v59 Vue version 2.3.3 Reproduction Link https://jsfiddle
讨论数 3
element
创建时间:2017-05-18 00:59:27

[Bug Report] Year DatePicker selects wrong year

Element UI version 1.3.3 OS/Browsers version Windows 10, Chrome v59 Vue version 2.3.3 Reproduction Link https://jsfiddle
讨论数 3
element
创建时间:2017-05-18 00:58:28

[Feature Request] Select component does not auto-select items when typing

Existing Component Yes Component Name Select Description I believe this is a FR and not a bug, but I could be wrong. Her
讨论数 5
element
创建时间:2017-05-17 18:49:25

[Feature Request] Option to set position in Notification

Existing Component Yes Component Name Notification Description The Notification component could have a set position opti
讨论数 2
element
创建时间:2017-05-17 16:32:12

[Feature Request] Want an attribute to setup whether to show Radio/Checkbox‘s label text

Existing Component Yes Component Name Radio/Checkbox Description Can't use Radio/Checkbox component without label text,
讨论数 7
element
创建时间:2017-05-17 12:25:03

[Feature Request] Custom template for sum in el-table

Existing Component Yes Component Name el-table Description Hello! Glad you added sum row and sum-method in el-table comp
讨论数 2
element
创建时间:2017-05-17 10:41:29

[Feature Request] Render function for table sum

Existing Component Yes Component Name el-table Description Hello! Glad you added sum row and sum-method in el-table comp
讨论数 2
element
创建时间:2017-05-17 10:39:06