Commit c952376818996bc40a50a38c36854856daca35d5

Authored by Aaron
1 parent e31c2093
Exists in master and in 1 other branch legacy

修复Search默认值model

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
packages/search/index.vue
... ... @@ -119,6 +119,8 @@ export default {
119 119 Object.keys(this.listKeySet).forEach(key => {
120 120 this.model[key] = this.listKeySet[key] ? this.listKeySet[key].default : undefined;
121 121 });
  122 + this.$emit("input", this.model);
  123 + this.$emit("change", this.model);
122 124 } else {
123 125 Object.keys(this.model).forEach(key => {
124 126 this.model[key] = value ? value[key] : undefined;
... ...