n20-common-lib 2.20.29 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -115,14 +115,15 @@ export default {
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
changeFn(val) {
|
|
118
|
+
// 只同步 input 事件,change 事件由 $listeners 处理
|
|
118
119
|
this.$emit('input', val)
|
|
119
|
-
this.$emit('change', val)
|
|
120
120
|
},
|
|
121
121
|
searchFn() {
|
|
122
122
|
this.$emit('search', this.value)
|
|
123
123
|
},
|
|
124
124
|
closeFn() {
|
|
125
125
|
this.$emit('input', undefined)
|
|
126
|
+
// 清空时也触发 change
|
|
126
127
|
this.$emit('change', undefined)
|
|
127
128
|
}
|
|
128
129
|
}
|