@web-utils/component 2.70.0 → 3.0.1

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.
Files changed (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -1,122 +1,13 @@
1
1
  import u from "element-ui/src/mixins/focus";
2
2
  import o from "element-ui/src/directives/repeat-click";
3
- import { i as a } from "../chunks/input-number-mixin.41a066be.mjs";
3
+ import { i as h, s as a, r as c } from "../chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs";
4
4
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var c = function() {
6
- var e = this, t = e.$createElement, n = e._self._c || t;
7
- return n("div", {
8
- class: ["input-number", "el-input-number", e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "", {
9
- "is-disabled": e.inputNumberDisabled,
10
- "is-without-controls": !e.controls,
11
- "is-controls-right": e.controlsAtRight
12
- }],
13
- on: {
14
- dragstart: function(i) {
15
- i.preventDefault();
16
- }
17
- }
18
- }, [e.controls ? n("span", {
19
- directives: [{
20
- name: "repeat-click",
21
- rawName: "v-repeat-click",
22
- value: e.decrease,
23
- expression: "decrease"
24
- }],
25
- staticClass: "el-input-number__decrease",
26
- class: {
27
- "is-disabled": e.minDisabled
28
- },
29
- attrs: {
30
- role: "button"
31
- },
32
- on: {
33
- keydown: function(i) {
34
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.decrease.apply(null, arguments);
35
- }
36
- }
37
- }, [n("i", {
38
- class: `el-icon-${e.controlsAtRight ? "arrow-down" : "minus"}`
39
- })]) : e._e(), e.controls ? n("span", {
40
- directives: [{
41
- name: "repeat-click",
42
- rawName: "v-repeat-click",
43
- value: e.increase,
44
- expression: "increase"
45
- }],
46
- staticClass: "el-input-number__increase",
47
- class: {
48
- "is-disabled": e.maxDisabled
49
- },
50
- attrs: {
51
- role: "button"
52
- },
53
- on: {
54
- keydown: function(i) {
55
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.increase.apply(null, arguments);
56
- }
57
- }
58
- }, [n("i", {
59
- class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}`
60
- })]) : e._e(), n("ElInput", {
61
- ref: "input",
62
- attrs: {
63
- value: e.displayValue,
64
- placeholder: e.placeholder,
65
- disabled: e.inputNumberDisabled,
66
- size: e.inputNumberSize,
67
- max: e.max,
68
- "prefix-icon": e.prefixIcon,
69
- "suffix-icon": e.suffixIcon,
70
- min: e.min,
71
- name: e.name,
72
- label: e.label
73
- },
74
- on: {
75
- blur: e.handleBlur,
76
- focus: e.handleFocus,
77
- input: e.handleInput,
78
- change: e.handleInputChange
79
- },
80
- nativeOn: {
81
- keydown: [function(i) {
82
- return !i.type.indexOf("key") && e._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : (i.preventDefault(), e.increase.apply(null, arguments));
83
- }, function(i) {
84
- return !i.type.indexOf("key") && e._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : (i.preventDefault(), e.decrease.apply(null, arguments));
85
- }]
86
- },
87
- scopedSlots: e._u([{
88
- key: "append",
89
- fn: function() {
90
- return [e._t("append")];
91
- },
92
- proxy: !0
93
- }, {
94
- key: "prefix",
95
- fn: function() {
96
- return [e._t("prefix")];
97
- },
98
- proxy: !0
99
- }, {
100
- key: "prepend",
101
- fn: function() {
102
- return [e._t("prepend")];
103
- },
104
- proxy: !0
105
- }, {
106
- key: "suffix",
107
- fn: function() {
108
- return [e._t("suffix")];
109
- },
110
- proxy: !0
111
- }], null, !0)
112
- })], 1);
113
- }, p = [];
114
- const h = {
5
+ const p = {
115
6
  name: "InputNumber",
116
7
  directives: {
117
8
  repeatClick: o
118
9
  },
119
- mixins: [u("input"), a],
10
+ mixins: [u("input"), h],
120
11
  inject: {
121
12
  elForm: {
122
13
  default: ""
@@ -139,8 +30,8 @@ const h = {
139
30
  return this._increase(this.value, this.step) > this.max;
140
31
  },
141
32
  numPrecision() {
142
- const { value: e, step: t, getPrecision: n, precision: i } = this, r = n(t);
143
- return i !== void 0 ? (r > i && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), i) : Math.max(n(e), r);
33
+ const { value: t, step: e, getPrecision: i, precision: s } = this, n = i(e);
34
+ return s !== void 0 ? (n > s && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), s) : Math.max(i(t), n);
144
35
  },
145
36
  controlsAtRight() {
146
37
  return this.controls && this.controlsPosition === "right";
@@ -157,38 +48,38 @@ const h = {
157
48
  displayValue() {
158
49
  if (this.userInput !== null)
159
50
  return this.userInput;
160
- let e = this.currentValue;
161
- if (typeof e == "number") {
51
+ let t = this.currentValue;
52
+ if (typeof t == "number") {
162
53
  if (this.stepStrictly) {
163
- const t = this.getPrecision(this.step), n = Math.pow(10, t);
164
- e = Math.round(e / this.step) * n * this.step / n;
54
+ const e = this.getPrecision(this.step), i = Math.pow(10, e);
55
+ t = Math.round(t / this.step) * i * this.step / i;
165
56
  }
166
- this.precision !== void 0 && (e = e.toFixed(this.precision));
57
+ this.precision !== void 0 && (t = t.toFixed(this.precision));
167
58
  }
168
- return e;
59
+ return t;
169
60
  }
170
61
  },
171
62
  watch: {
172
63
  value: {
173
64
  immediate: !0,
174
- handler(e) {
175
- let t = e === void 0 ? e : Number(e);
176
- if (t !== void 0) {
177
- if (isNaN(t))
65
+ handler(t) {
66
+ let e = t === void 0 ? t : Number(t);
67
+ if (e !== void 0) {
68
+ if (isNaN(e))
178
69
  return;
179
70
  if (this.stepStrictly) {
180
- const n = this.getPrecision(this.step), i = Math.pow(10, n);
181
- t = Math.round(t / this.step) * i * this.step / i;
71
+ const i = this.getPrecision(this.step), s = Math.pow(10, i);
72
+ e = Math.round(e / this.step) * s * this.step / s;
182
73
  }
183
- this.precision !== void 0 && (t = this.toPrecision(t, this.precision));
74
+ this.precision !== void 0 && (e = this.toPrecision(e, this.precision));
184
75
  }
185
- t >= this.max && (t = this.max), t <= this.min && (t = this.min), this.currentValue = t, this.userInput = null, this.$emit("input", t);
76
+ e >= this.max && (e = this.max), e <= this.min && (e = this.min), this.currentValue = e, this.userInput = null, this.$emit("input", e);
186
77
  }
187
78
  }
188
79
  },
189
80
  mounted() {
190
- const e = this.$refs.input.$refs.input;
191
- e.setAttribute("role", "spinbutton"), e.setAttribute("aria-valuemax", this.max), e.setAttribute("aria-valuemin", this.min), e.setAttribute("aria-valuenow", this.currentValue), e.setAttribute("aria-disabled", this.inputNumberDisabled);
81
+ const t = this.$refs.input.$refs.input;
82
+ t.setAttribute("role", "spinbutton"), t.setAttribute("aria-valuemax", this.max), t.setAttribute("aria-valuemin", this.min), t.setAttribute("aria-valuenow", this.currentValue), t.setAttribute("aria-disabled", this.inputNumberDisabled);
192
83
  },
193
84
  updated() {
194
85
  if (!this.$refs || !this.$refs.input)
@@ -196,79 +87,79 @@ const h = {
196
87
  this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
197
88
  },
198
89
  methods: {
199
- toPrecision(e, t) {
200
- return t === void 0 && (t = this.numPrecision), parseFloat(Math.round(e * Math.pow(10, t)) / Math.pow(10, t));
90
+ toPrecision(t, e) {
91
+ return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
201
92
  },
202
- getPrecision(e) {
203
- if (e === void 0)
93
+ getPrecision(t) {
94
+ if (t === void 0)
204
95
  return 0;
205
- const t = e.toString(), n = t.indexOf(".");
206
- let i = 0;
207
- return n !== -1 && (i = t.length - n - 1), i;
96
+ const e = t.toString(), i = e.indexOf(".");
97
+ let s = 0;
98
+ return i !== -1 && (s = e.length - i - 1), s;
208
99
  },
209
- _increase(e, t) {
210
- if (typeof e != "number" && e !== void 0)
100
+ _increase(t, e) {
101
+ if (typeof t != "number" && t !== void 0)
211
102
  return this.currentValue;
212
- const n = Math.pow(10, this.numPrecision);
213
- return this.toPrecision((n * e + n * t) / n);
103
+ const i = Math.pow(10, this.numPrecision);
104
+ return this.toPrecision((i * t + i * e) / i);
214
105
  },
215
- _decrease(e, t) {
216
- if (typeof e != "number" && e !== void 0)
106
+ _decrease(t, e) {
107
+ if (typeof t != "number" && t !== void 0)
217
108
  return this.currentValue;
218
- const n = Math.pow(10, this.numPrecision);
219
- return this.toPrecision((n * e - n * t) / n);
109
+ const i = Math.pow(10, this.numPrecision);
110
+ return this.toPrecision((i * t - i * e) / i);
220
111
  },
221
112
  increase() {
222
113
  if (this.inputNumberDisabled || this.maxDisabled)
223
114
  return;
224
- const e = this.value || 0, t = this._increase(e, this.step);
225
- this.setCurrentValue(t);
115
+ const t = this.value || 0, e = this._increase(t, this.step);
116
+ this.setCurrentValue(e);
226
117
  },
227
118
  decrease() {
228
119
  if (this.inputNumberDisabled || this.minDisabled)
229
120
  return;
230
- const e = this.value || 0, t = this._decrease(e, this.step);
231
- this.setCurrentValue(t);
121
+ const t = this.value || 0, e = this._decrease(t, this.step);
122
+ this.setCurrentValue(e);
232
123
  },
233
- handleBlur(e) {
234
- this.$emit("blur", e);
124
+ handleBlur(t) {
125
+ this.$emit("blur", t);
235
126
  },
236
- handleFocus(e) {
237
- this.$emit("focus", e);
127
+ handleFocus(t) {
128
+ this.$emit("focus", t);
238
129
  },
239
- setCurrentValue(e) {
240
- const t = this.currentValue;
241
- typeof e == "number" && this.precision !== void 0 && (e = this.toPrecision(e, this.precision)), e >= this.max && (e = this.max), e <= this.min && (e = this.min), t !== e && (this.userInput = null, this.$emit("input", e), this.$emit("change", e, t), this.currentValue = e);
130
+ setCurrentValue(t) {
131
+ const e = this.currentValue;
132
+ typeof t == "number" && this.precision !== void 0 && (t = this.toPrecision(t, this.precision)), t >= this.max && (t = this.max), t <= this.min && (t = this.min), e !== t && (this.userInput = null, this.$emit("input", t), this.$emit("change", t, e), this.currentValue = t);
242
133
  },
243
- handleInput(e) {
244
- this.userInput = e;
134
+ handleInput(t) {
135
+ this.userInput = t;
245
136
  },
246
- handleInputChange(e) {
247
- const t = e === "" ? void 0 : Number(e);
248
- (!isNaN(t) || e === "") && this.setCurrentValue(t), this.userInput = null;
137
+ handleInputChange(t) {
138
+ const e = t === "" ? void 0 : Number(t);
139
+ (!isNaN(e) || t === "") && this.setCurrentValue(e), this.userInput = null;
249
140
  },
250
141
  select() {
251
142
  this.$refs.input.select();
252
143
  }
253
144
  }
254
- }, s = {};
255
- var d = /* @__PURE__ */ l(
256
- h,
257
- c,
145
+ }, r = {};
146
+ var m = /* @__PURE__ */ l(
258
147
  p,
148
+ c,
149
+ a,
259
150
  !1,
260
- m,
151
+ d,
261
152
  null,
262
153
  null,
263
154
  null
264
155
  );
265
- function m(e) {
266
- for (let t in s)
267
- this[t] = s[t];
156
+ function d(t) {
157
+ for (let e in r)
158
+ this[e] = r[e];
268
159
  }
269
- const x = /* @__PURE__ */ function() {
270
- return d.exports;
160
+ const P = /* @__PURE__ */ function() {
161
+ return m.exports;
271
162
  }();
272
163
  export {
273
- x as default
164
+ P as default
274
165
  };
@@ -1,10 +1,11 @@
1
- import { isNotEmpty as i } from "@web-utils/core";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var r = function() {
1
+ import { isNotEmpty as s } from "@web-utils/core";
2
+ import a from "element-ui/lib/input-number";
3
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var l = function() {
4
5
  var t = this, e = t.$createElement, n = t._self._c || e;
5
6
  return n("div", {
6
7
  staticClass: "input-number-range"
7
- }, [n("ElInputNumber", {
8
+ }, [n(a, {
8
9
  staticClass: "flex-item",
9
10
  staticStyle: {
10
11
  width: "auto"
@@ -19,8 +20,8 @@ var r = function() {
19
20
  },
20
21
  model: {
21
22
  value: t.val[0],
22
- callback: function(s) {
23
- t.$set(t.val, 0, s);
23
+ callback: function(i) {
24
+ t.$set(t.val, 0, i);
24
25
  },
25
26
  expression: "val[0]"
26
27
  }
@@ -29,7 +30,7 @@ var r = function() {
29
30
  padding: "0 6px",
30
31
  "font-size": "12px"
31
32
  }
32
- }, [t._v(t._s(t.separator))]), n("ElInputNumber", {
33
+ }, [t._v(t._s(t.separator))]), n(a, {
33
34
  staticClass: "flex-item",
34
35
  staticStyle: {
35
36
  width: "auto"
@@ -44,14 +45,14 @@ var r = function() {
44
45
  },
45
46
  model: {
46
47
  value: t.val[1],
47
- callback: function(s) {
48
- t.$set(t.val, 1, s);
48
+ callback: function(i) {
49
+ t.$set(t.val, 1, i);
49
50
  },
50
51
  expression: "val[1]"
51
52
  }
52
53
  })], 1);
53
- }, l = [];
54
- const u = {
54
+ }, u = [];
55
+ const d = {
55
56
  name: "InputNumberRange",
56
57
  props: {
57
58
  value: {
@@ -78,7 +79,7 @@ const u = {
78
79
  immediate: !0,
79
80
  handler(t) {
80
81
  const e = [void 0, void 0];
81
- i(t == null ? void 0 : t[0]) && (e[0] = t[0]), i(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
82
+ s(t == null ? void 0 : t[0]) && (e[0] = t[0]), s(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
82
83
  }
83
84
  }
84
85
  },
@@ -87,24 +88,24 @@ const u = {
87
88
  this.$emit("input", this.val);
88
89
  }
89
90
  }
90
- }, a = {};
91
- var d = /* @__PURE__ */ o(
92
- u,
93
- r,
91
+ }, o = {};
92
+ var c = /* @__PURE__ */ r(
93
+ d,
94
94
  l,
95
+ u,
95
96
  !1,
96
- c,
97
+ p,
97
98
  null,
98
99
  null,
99
100
  null
100
101
  );
101
- function c(t) {
102
- for (let e in a)
103
- this[e] = a[e];
102
+ function p(t) {
103
+ for (let e in o)
104
+ this[e] = o[e];
104
105
  }
105
- const v = /* @__PURE__ */ function() {
106
- return d.exports;
106
+ const f = /* @__PURE__ */ function() {
107
+ return c.exports;
107
108
  }();
108
109
  export {
109
- v as default
110
+ f as default
110
111
  };
package/license/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as l } from "../chunks/util.ae730cde.mjs";
1
+ import { C as l } from "../chunks/util.7844e2c2.mjs";
2
2
  import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var m = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
@@ -1,24 +1,6 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "loading-view",
6
- style: {
7
- fontSize: t.fontSize,
8
- height: t.height
9
- }
10
- }, [t._t("default", function() {
11
- return [n("div", {
12
- staticClass: "flex-column horizon-center"
13
- }, [n("i", {
14
- staticClass: "el-icon-loading",
15
- style: {
16
- fontSize: t.iconSize
17
- }
18
- }), n("p", [t._v(t._s(t.loadingTips))])])];
19
- })], 2);
20
- }, a = [];
21
- const l = {
1
+ import { s as n, r as o } from "../chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs";
2
+ import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ const r = {
22
4
  name: "LoadingView",
23
5
  props: {
24
6
  loadingTips: {
@@ -38,24 +20,24 @@ const l = {
38
20
  default: "100%"
39
21
  }
40
22
  }
41
- }, i = {};
42
- var r = /* @__PURE__ */ o(
43
- l,
44
- s,
45
- a,
23
+ }, e = {};
24
+ var s = /* @__PURE__ */ i(
25
+ r,
26
+ o,
27
+ n,
46
28
  !1,
47
- _,
29
+ a,
48
30
  null,
49
31
  null,
50
32
  null
51
33
  );
52
- function _(t) {
53
- for (let e in i)
54
- this[e] = i[e];
34
+ function a(l) {
35
+ for (let t in e)
36
+ this[t] = e[t];
55
37
  }
56
- const u = /* @__PURE__ */ function() {
57
- return r.exports;
38
+ const c = /* @__PURE__ */ function() {
39
+ return s.exports;
58
40
  }();
59
41
  export {
60
- u as default
42
+ c as default
61
43
  };
package/login/index.mjs CHANGED
@@ -1,34 +1,39 @@
1
- import { s as l } from "../chunks/util.ae730cde.mjs";
2
- import { isBlank as a } from "@web-utils/core";
3
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var p = function() {
1
+ import { s as m } from "../chunks/util.7844e2c2.mjs";
2
+ import { isBlank as d } from "@web-utils/core";
3
+ import l from "element-ui/lib/button";
4
+ import r from "element-ui/lib/form-item";
5
+ import n from "element-ui/lib/input";
6
+ import i from "element-ui/lib/tooltip";
7
+ import u from "element-ui/lib/form";
8
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
9
+ var f = function() {
5
10
  var e = this, s = e.$createElement, t = e._self._c || s;
6
11
  return t("div", {
7
12
  staticClass: "avue-login",
8
13
  style: {
9
14
  width: e.setPx(e.width)
10
15
  }
11
- }, [t("ElForm", {
16
+ }, [t(u, {
12
17
  ref: "form",
13
18
  attrs: {
14
19
  model: e.form,
15
20
  "label-suffix": ":",
16
21
  "label-width": e.setPx(e.labelWidth)
17
22
  }
18
- }, [e.username.hide ? e._e() : t("ElFormItem", {
23
+ }, [e.username.hide ? e._e() : t(r, {
19
24
  attrs: {
20
25
  label: e.username.label || "用户名",
21
26
  rules: e.username.rules,
22
27
  "label-width": e.setPx(e.username.labelWidth),
23
28
  prop: "username"
24
29
  }
25
- }, [t("ElTooltip", {
30
+ }, [t(i, {
26
31
  attrs: {
27
32
  content: e.username.tip,
28
33
  disabled: e.username.tip === void 0,
29
34
  placement: "top-start"
30
35
  }
31
- }, [t("ElInput", {
36
+ }, [t(n, {
32
37
  attrs: {
33
38
  size: "small",
34
39
  "prefix-icon": e.username.prefixIcon || "el-icon-user",
@@ -42,20 +47,20 @@ var p = function() {
42
47
  },
43
48
  expression: "form.username"
44
49
  }
45
- })], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", {
50
+ })], 1)], 1), e.password.hide ? e._e() : t(r, {
46
51
  attrs: {
47
52
  label: e.password.label || "密码",
48
53
  rules: e.password.rules,
49
54
  "label-width": e.setPx(e.password.labelWidth),
50
55
  prop: "password"
51
56
  }
52
- }, [t("ElTooltip", {
57
+ }, [t(i, {
53
58
  attrs: {
54
59
  content: e.password.tip,
55
60
  disabled: e.password.tip === void 0,
56
61
  placement: "top-start"
57
62
  }
58
- }, [t("ElInput", {
63
+ }, [t(n, {
59
64
  attrs: {
60
65
  type: "password",
61
66
  size: "small",
@@ -71,20 +76,20 @@ var p = function() {
71
76
  },
72
77
  expression: "form.password"
73
78
  }
74
- })], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", {
79
+ })], 1)], 1), e.code.hide ? e._e() : t(r, {
75
80
  attrs: {
76
81
  label: e.code.label || "验证码",
77
82
  rules: e.code.rules,
78
83
  "label-width": e.setPx(e.code.labelWidth),
79
84
  prop: "code"
80
85
  }
81
- }, [t("ElTooltip", {
86
+ }, [t(i, {
82
87
  attrs: {
83
88
  content: e.code.tip,
84
89
  disabled: e.code.tip === void 0,
85
90
  placement: "top-start"
86
91
  }
87
- }, [t("ElInput", {
92
+ }, [t(n, {
88
93
  attrs: {
89
94
  size: "small",
90
95
  "prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
@@ -94,7 +99,7 @@ var p = function() {
94
99
  scopedSlots: e._u([{
95
100
  key: "append",
96
101
  fn: function() {
97
- return [e.isPhone ? t("ElButton", {
102
+ return [e.isPhone ? t(l, {
98
103
  staticClass: "avue-login__send",
99
104
  attrs: {
100
105
  type: "primary",
@@ -124,7 +129,7 @@ var p = function() {
124
129
  },
125
130
  expression: "form.code"
126
131
  }
127
- })], 1)], 1), t("ElFormItem", [t("ElButton", {
132
+ })], 1)], 1), t(r, [t(l, {
128
133
  staticClass: "avue-login__submit",
129
134
  attrs: {
130
135
  type: "primary"
@@ -133,8 +138,8 @@ var p = function() {
133
138
  click: e.onSubmit
134
139
  }
135
140
  }, [e._v(" 登录 ")])], 1)], 1)], 1);
136
- }, d = [];
137
- const r = "发送验证码", i = "{{time}}s后重获取", m = {
141
+ }, _ = [];
142
+ const a = "发送验证码", c = "{{time}}s后重获取", b = {
138
143
  name: "Login",
139
144
  props: {
140
145
  value: {
@@ -151,7 +156,7 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
151
156
  },
152
157
  data() {
153
158
  return {
154
- text: r,
159
+ text: a,
155
160
  nowtime: "",
156
161
  check: {},
157
162
  flag: !1
@@ -197,15 +202,15 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
197
202
  return this.option.column || {};
198
203
  },
199
204
  sendDisabled() {
200
- return !a(this.check);
205
+ return !d(this.check);
201
206
  }
202
207
  },
203
208
  methods: {
204
- setPx: l,
209
+ setPx: m,
205
210
  onSend() {
206
211
  const e = () => {
207
- this.nowtime = this.time, this.text = i.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
208
- this.nowtime--, this.nowtime === 0 ? (this.text = r, clearInterval(this.check), this.check = null) : this.text = i.replace("{{time}}", this.nowtime);
212
+ this.nowtime = this.time, this.text = c.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
213
+ this.nowtime--, this.nowtime === 0 ? (this.text = a, clearInterval(this.check), this.check = null) : this.text = c.replace("{{time}}", this.nowtime);
209
214
  }, 1e3);
210
215
  };
211
216
  this.sendDisabled || this.$emit("send", e);
@@ -227,24 +232,24 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
227
232
  });
228
233
  }
229
234
  }
230
- }, n = {};
231
- var u = /* @__PURE__ */ c(
232
- m,
233
- p,
234
- d,
235
+ }, p = {};
236
+ var w = /* @__PURE__ */ h(
237
+ b,
238
+ f,
239
+ _,
235
240
  !1,
236
- h,
241
+ x,
237
242
  null,
238
243
  null,
239
244
  null
240
245
  );
241
- function h(e) {
242
- for (let s in n)
243
- this[s] = n[s];
246
+ function x(e) {
247
+ for (let s in p)
248
+ this[s] = p[s];
244
249
  }
245
- const w = /* @__PURE__ */ function() {
246
- return u.exports;
250
+ const S = /* @__PURE__ */ function() {
251
+ return w.exports;
247
252
  }();
248
253
  export {
249
- w as default
254
+ S as default
250
255
  };