mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Form): fix Area demo (#7249)
This commit is contained in:
parent
15d8f8fad9
commit
0a837e49a9
@ -379,7 +379,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onConfirm(values) {
|
onConfirm(values) {
|
||||||
this.value = values.map((item) => item.name).join('/');
|
this.value = values
|
||||||
|
.filter((item) => !!item)
|
||||||
|
.map((item) => item.name)
|
||||||
|
.join('/');
|
||||||
this.showArea = false;
|
this.showArea = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -412,7 +412,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onConfirm(values) {
|
onConfirm(values) {
|
||||||
this.value = values.map((item) => item.name).join('/');
|
this.value = values
|
||||||
|
.filter((item) => !!item)
|
||||||
|
.map((item) => item.name)
|
||||||
|
.join('/');
|
||||||
this.showArea = false;
|
this.showArea = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -52,7 +52,10 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onConfirm(values) {
|
onConfirm(values) {
|
||||||
this.value = values.map((item) => item.name).join('/');
|
this.value = values
|
||||||
|
.filter((item) => !!item)
|
||||||
|
.map((item) => item.name)
|
||||||
|
.join('/');
|
||||||
this.showArea = false;
|
this.showArea = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user