|
|
|
@ -105,14 +105,14 @@ Element.DatePicker.props.firstDayOfWeek = {type: Number, default: 1}
|
|
|
|
|
|
|
|
|
|
Element.Select.methods.deleteSelected =
|
|
|
|
|
function deleteSelected(event) {
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
// 改动在这,原始的是这样 var value = this.multiple ? [] : '';
|
|
|
|
|
var value = this.multiple ? [] : null;
|
|
|
|
|
this.$emit("input", value);
|
|
|
|
|
this.emitChange(value);
|
|
|
|
|
this.visible = false;
|
|
|
|
|
this.$emit("clear");
|
|
|
|
|
};
|
|
|
|
|
event.stopPropagation()
|
|
|
|
|
// 改动在这,原始的是这样 var value = this.multiple ? [] : ''
|
|
|
|
|
var value = this.multiple ? [] : null
|
|
|
|
|
this.$emit("input", value)
|
|
|
|
|
this.emitChange(value)
|
|
|
|
|
this.visible = false
|
|
|
|
|
this.$emit("clear")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Vue.use(Element, {
|
|
|
|
|
size: Cookies.get('size') || 'mini' // set element-ui default size
|
|
|
|
|