kz-ui-base 2.5.169 → 2.5.170
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.
|
@@ -214,26 +214,16 @@ export default class textBox extends Vue {
|
|
|
214
214
|
public enter = false;
|
|
215
215
|
public currentValue = undefined;
|
|
216
216
|
timeout = null;
|
|
217
|
-
debounceTimer = null;
|
|
218
217
|
public onInputEvent(value, type) {
|
|
219
|
-
if (this.setting && this.setting.
|
|
220
|
-
|
|
221
|
-
this.debounceTimer = setTimeout(() => {
|
|
222
|
-
this.$emit("change", {
|
|
223
|
-
property: this.column.property,
|
|
224
|
-
entity: this.entity,
|
|
225
|
-
column: this.column,
|
|
226
|
-
value: value,
|
|
227
|
-
});
|
|
228
|
-
}, this.setting.debounceDelay || 500);
|
|
229
|
-
} else {
|
|
230
|
-
this.$emit("change", {
|
|
231
|
-
property: this.column.property,
|
|
232
|
-
entity: this.entity,
|
|
233
|
-
column: this.column,
|
|
234
|
-
value: value,
|
|
235
|
-
});
|
|
218
|
+
if (this.setting && this.setting.blurChange) {
|
|
219
|
+
return;
|
|
236
220
|
}
|
|
221
|
+
this.$emit("change", {
|
|
222
|
+
property: this.column.property,
|
|
223
|
+
entity: this.entity,
|
|
224
|
+
column: this.column,
|
|
225
|
+
value: value,
|
|
226
|
+
});
|
|
237
227
|
}
|
|
238
228
|
public onChangeEvent(value) {
|
|
239
229
|
// if (value.constructor != Array && value == "") {
|