mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(cascader): fix async demo (#908)
This commit is contained in:
parent
0bf7290be4
commit
0c97b97d22
@ -27,7 +27,7 @@ function genChildren (option) {
|
|||||||
for (let i = 0; i <= option.depth; ++i) {
|
for (let i = 0; i <= option.depth; ++i) {
|
||||||
children.push({
|
children.push({
|
||||||
label: option.label + '-' + i,
|
label: option.label + '-' + i,
|
||||||
value: option.label + '-' + i,
|
value: option.value + '-' + i,
|
||||||
depth: option.depth + 1,
|
depth: option.depth + 1,
|
||||||
isLeaf: option.depth === 3
|
isLeaf: option.depth === 3
|
||||||
})
|
})
|
||||||
|
@ -26,7 +26,7 @@ function genChildren (option) {
|
|||||||
for (let i = 0; i <= option.depth; ++i) {
|
for (let i = 0; i <= option.depth; ++i) {
|
||||||
children.push({
|
children.push({
|
||||||
label: option.label + '-' + i,
|
label: option.label + '-' + i,
|
||||||
value: option.label + '-' + i,
|
value: option.value + '-' + i,
|
||||||
depth: option.depth + 1,
|
depth: option.depth + 1,
|
||||||
isLeaf: option.depth === 3
|
isLeaf: option.depth === 3
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user