dfish-widget 1.0.101 → 1.0.102
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 +7 -0
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -12004,6 +12004,13 @@ var script$6 = {
|
|
|
12004
12004
|
this.$refs.input.value = '';
|
|
12005
12005
|
}
|
|
12006
12006
|
},
|
|
12007
|
+
// implement
|
|
12008
|
+
// @empty -> 是否强制清空
|
|
12009
|
+
reset(empty) {
|
|
12010
|
+
this.warn(false);
|
|
12011
|
+
this.clear();
|
|
12012
|
+
this.val(empty || this.defaultValue == null ? '' : this.defaultValue);
|
|
12013
|
+
},
|
|
12007
12014
|
focus(toEnd) {
|
|
12008
12015
|
if (this.isNormal) {
|
|
12009
12016
|
this.$refs.input.focus();
|