dfish-widget 1.0.101 → 1.0.103

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/lib/index.esm.js CHANGED
@@ -11442,7 +11442,8 @@ var script$b = {
11442
11442
  this.baseFocus(e);
11443
11443
  },
11444
11444
  onkeyup() {
11445
- this.showDrop = true;
11445
+ if (this.isNormal)
11446
+ this.showDrop = true;
11446
11447
  },
11447
11448
  // implement
11448
11449
  onCloseDrop() {
@@ -12004,6 +12005,13 @@ var script$6 = {
12004
12005
  this.$refs.input.value = '';
12005
12006
  }
12006
12007
  },
12008
+ // implement
12009
+ // @empty -> 是否强制清空
12010
+ reset(empty) {
12011
+ this.warn(false);
12012
+ this.clear();
12013
+ this.val(empty || this.defaultValue == null ? '' : this.defaultValue);
12014
+ },
12007
12015
  focus(toEnd) {
12008
12016
  if (this.isNormal) {
12009
12017
  this.$refs.input.focus();