This commit is contained in:
梁灏 2017-04-10 22:43:24 +08:00
parent 96a6cb6c2e
commit 65b41a2d6f
2 changed files with 28 additions and 129 deletions

View file

@ -112,7 +112,7 @@
];
},
showCloseIcon () {
return this.currentValue && this.currentValue.length && this.clearable;
return this.currentValue && this.currentValue.length && this.clearable && !this.disabled;
},
displayRender () {
let label = [];
@ -125,6 +125,7 @@
},
methods: {
clearSelect () {
if (this.disabled) return false;
const oldVal = JSON.stringify(this.currentValue);
this.currentValue = this.selected = this.tmpSelected = [];
this.handleClose();