|
@@ -82,7 +82,7 @@
|
|
|
|
|
|
name: 'ElSelect',
|
|
|
|
|
|
- componentName: 'select',
|
|
|
+ componentName: 'ElSelect',
|
|
|
|
|
|
computed: {
|
|
|
iconClass() {
|
|
@@ -242,7 +242,7 @@
|
|
|
|
|
|
this.$emit('input', result);
|
|
|
this.$emit('change', result);
|
|
|
- this.dispatch('form-item', 'el.form.change', val);
|
|
|
+ this.dispatch('ElFormItem', 'el.form.change', val);
|
|
|
if (this.filterable) {
|
|
|
this.query = '';
|
|
|
this.hoverIndex = -1;
|
|
@@ -262,7 +262,7 @@
|
|
|
|
|
|
query(val) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.broadcast('select-dropdown', 'updatePopper');
|
|
|
+ this.broadcast('ElSelectDropdown', 'updatePopper');
|
|
|
});
|
|
|
if (this.multiple && this.filterable) {
|
|
|
this.resetInputHeight();
|
|
@@ -271,12 +271,12 @@
|
|
|
this.hoverIndex = -1;
|
|
|
this.remoteMethod(val);
|
|
|
this.voidRemoteQuery = val === '';
|
|
|
- this.broadcast('option', 'resetIndex');
|
|
|
+ this.broadcast('ElOption', 'resetIndex');
|
|
|
} else if (typeof this.filterMethod === 'function') {
|
|
|
this.filterMethod(val);
|
|
|
} else {
|
|
|
this.filteredOptionsCount = this.optionsCount;
|
|
|
- this.broadcast('option', 'queryChange', val);
|
|
|
+ this.broadcast('ElOption', 'queryChange', val);
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -286,7 +286,7 @@
|
|
|
if (this.$el.querySelector('.el-input__icon')) {
|
|
|
removeClass(this.$el.querySelector('.el-input__icon'), 'is-reverse');
|
|
|
}
|
|
|
- this.broadcast('select-dropdown', 'destroyPopper');
|
|
|
+ this.broadcast('ElSelectDropdown', 'destroyPopper');
|
|
|
if (this.$refs.input) {
|
|
|
this.$refs.input.blur();
|
|
|
}
|
|
@@ -304,13 +304,13 @@
|
|
|
if (icon && !hasClass(icon, 'el-icon-circle-close')) {
|
|
|
addClass(this.$el.querySelector('.el-input__icon'), 'is-reverse');
|
|
|
}
|
|
|
- this.broadcast('select-dropdown', 'updatePopper');
|
|
|
+ this.broadcast('ElSelectDropdown', 'updatePopper');
|
|
|
if (this.filterable) {
|
|
|
this.query = this.selectedLabel;
|
|
|
if (this.multiple) {
|
|
|
this.$refs.input.focus();
|
|
|
} else {
|
|
|
- this.broadcast('input', 'inputSelect');
|
|
|
+ this.broadcast('ElInput', 'inputSelect');
|
|
|
}
|
|
|
}
|
|
|
if (!this.dropdownUl) {
|
|
@@ -398,7 +398,7 @@
|
|
|
let inputChildNodes = this.$refs.reference.$el.childNodes;
|
|
|
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
|
|
|
input.style.height = Math.max(this.$refs.tags.clientHeight + 6, this.size === 'small' ? 28 : 36) + 'px';
|
|
|
- this.broadcast('select-dropdown', 'updatePopper');
|
|
|
+ this.broadcast('ElSelectDropdown', 'updatePopper');
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -525,7 +525,7 @@
|
|
|
if (index > -1) {
|
|
|
this.options.splice(index, 1);
|
|
|
}
|
|
|
- this.broadcast('option', 'resetIndex');
|
|
|
+ this.broadcast('ElOption', 'resetIndex');
|
|
|
},
|
|
|
|
|
|
resetInputWidth() {
|