|
@@ -80,11 +80,12 @@ export default {
|
|
|
watch: {
|
|
|
"$props.value": {
|
|
|
handler: function (newProp, oldProp) {
|
|
|
- if (!newProp) {
|
|
|
+ if (newProp) {
|
|
|
+ const { multiple } = this.$props;
|
|
|
+ this.showValue = multiple ? "" : newProp;
|
|
|
+ } else {
|
|
|
this.data = [];
|
|
|
this.showValue = "";
|
|
|
- } else {
|
|
|
- this.showValue = newProp;
|
|
|
}
|
|
|
},
|
|
|
immediate: true,
|