docs(Form): fix Area demo (#7249)
This commit is contained in:
+4
-1
@@ -379,7 +379,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onConfirm(values) {
|
||||
this.value = values.map((item) => item.name).join('/');
|
||||
this.value = values
|
||||
.filter((item) => !!item)
|
||||
.map((item) => item.name)
|
||||
.join('/');
|
||||
this.showArea = false;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -412,7 +412,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onConfirm(values) {
|
||||
this.value = values.map((item) => item.name).join('/');
|
||||
this.value = values
|
||||
.filter((item) => !!item)
|
||||
.map((item) => item.name)
|
||||
.join('/');
|
||||
this.showArea = false;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -52,7 +52,10 @@ export default {
|
||||
|
||||
methods: {
|
||||
onConfirm(values) {
|
||||
this.value = values.map((item) => item.name).join('/');
|
||||
this.value = values
|
||||
.filter((item) => !!item)
|
||||
.map((item) => item.name)
|
||||
.join('/');
|
||||
this.showArea = false;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user