Commit c952376818996bc40a50a38c36854856daca35d5
1 parent
e31c2093
Exists in
master
and in
1 other branch
修复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,6 +119,8 @@ export default { | ||
| 119 | Object.keys(this.listKeySet).forEach(key => { | 119 | Object.keys(this.listKeySet).forEach(key => { |
| 120 | this.model[key] = this.listKeySet[key] ? this.listKeySet[key].default : undefined; | 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 | } else { | 124 | } else { |
| 123 | Object.keys(this.model).forEach(key => { | 125 | Object.keys(this.model).forEach(key => { |
| 124 | this.model[key] = value ? value[key] : undefined; | 126 | this.model[key] = value ? value[key] : undefined; |