docs(cascader): fix async demo (#908)

This commit is contained in:
Wankko Ree 2021-08-19 00:20:04 +08:00 committed by GitHub
parent 0bf7290be4
commit 0c97b97d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function genChildren (option) {
for (let i = 0; i <= option.depth; ++i) {
children.push({
label: option.label + '-' + i,
value: option.label + '-' + i,
value: option.value + '-' + i,
depth: option.depth + 1,
isLeaf: option.depth === 3
})

View File

@ -26,7 +26,7 @@ function genChildren (option) {
for (let i = 0; i <= option.depth; ++i) {
children.push({
label: option.label + '-' + i,
value: option.label + '-' + i,
value: option.value + '-' + i,
depth: option.depth + 1,
isLeaf: option.depth === 3
})