mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 12:48:45 +08:00
This commit is contained in:
parent
855062423c
commit
66762ffa23
@ -750,7 +750,7 @@
|
|||||||
|
|
||||||
deleteSelected(event) {
|
deleteSelected(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const value = this.multiple ? [] : null;
|
const value = this.multiple ? [] : '';
|
||||||
this.$emit('input', value);
|
this.$emit('input', value);
|
||||||
this.emitChange(value);
|
this.emitChange(value);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
@ -288,7 +288,7 @@ describe('Select', () => {
|
|||||||
const iconClear = vm.$el.querySelector('.el-input__icon.el-icon-circle-close');
|
const iconClear = vm.$el.querySelector('.el-input__icon.el-icon-circle-close');
|
||||||
expect(iconClear).to.exist;
|
expect(iconClear).to.exist;
|
||||||
iconClear.click();
|
iconClear.click();
|
||||||
expect(vm.value).to.equal(null);
|
expect(vm.value).to.equal('');
|
||||||
done();
|
done();
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user