@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,22 +1,144 @@
1
- var p = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var l = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
1
+ var b = Object.defineProperty, v = Object.defineProperties;
2
+ var $ = Object.getOwnPropertyDescriptors;
3
+ var p = Object.getOwnPropertySymbols;
4
+ var M = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
+ var d = (e, r, t) => r in e ? b(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, o = (e, r) => {
5
6
  for (var t in r || (r = {}))
6
- c.call(r, t) && l(e, t, r[t]);
7
- if (a)
8
- for (var t of a(r))
9
- m.call(r, t) && l(e, t, r[t]);
7
+ M.call(r, t) && d(e, t, r[t]);
8
+ if (p)
9
+ for (var t of p(r))
10
+ V.call(r, t) && d(e, t, r[t]);
10
11
  return e;
11
- };
12
- import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
14
- import s from "@web-utils/component/x-input-tag";
12
+ }, c = (e, r) => v(e, $(r));
13
+ var l = (e, r, t) => new Promise((n, a) => {
14
+ var g = (s) => {
15
+ try {
16
+ i(t.next(s));
17
+ } catch (u) {
18
+ a(u);
19
+ }
20
+ }, y = (s) => {
21
+ try {
22
+ i(t.throw(s));
23
+ } catch (u) {
24
+ a(u);
25
+ }
26
+ }, i = (s) => s.done ? n(s.value) : Promise.resolve(s.value).then(g, y);
27
+ i((t = t.apply(e, r)).next());
28
+ });
29
+ import { _ as j, f as x } from "../chunks/FormItem.2920ac0c.mjs";
30
+ import { h as I, n as T } from "../chunks/index.d91bd77a.mjs";
31
+ import f from "@web-utils/component/x-input-tag";
15
32
  import "@web-utils/component/x-input-tag/style.css";
16
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var b = function() {
33
+ import { s as k, r as F } from "../chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs";
34
+ import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
35
+ const w = {
36
+ name: "XInputTag",
37
+ inject: {
38
+ elForm: {
39
+ default: ""
40
+ },
41
+ elFormItem: {
42
+ default: ""
43
+ }
44
+ },
45
+ props: {
46
+ value: {
47
+ type: [Array, String],
48
+ default: () => []
49
+ },
50
+ disabled: Boolean,
51
+ separator: {
52
+ type: String,
53
+ default: ","
54
+ },
55
+ count: {
56
+ type: Boolean,
57
+ default: !0
58
+ },
59
+ arrayMode: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ objectMode: {
64
+ type: Boolean,
65
+ default: !0
66
+ }
67
+ },
68
+ data() {
69
+ return {
70
+ inputVisible: !1,
71
+ inputValue: "",
72
+ maxTag: 20
73
+ };
74
+ },
75
+ computed: {
76
+ inputDisabled() {
77
+ return this.disabled || (this.elForm || {}).disabled;
78
+ },
79
+ tags: {
80
+ get() {
81
+ var e, r;
82
+ if (this.arrayMode)
83
+ return (e = this.value) != null && e.length ? this.objectMode ? this.value.map((t) => t.id > 0 ? t : c(o({}, t), { id: Math.random() })) : this.value : [];
84
+ {
85
+ const t = ((r = this.value) == null ? void 0 : r.split(this.separator)) || [];
86
+ return t.length && t[0] ? t.map((n) => this.objectMode ? { name: n, id: Math.random() } : n) : [];
87
+ }
88
+ }
89
+ }
90
+ },
91
+ methods: {
92
+ showInput() {
93
+ return l(this, null, function* () {
94
+ this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
95
+ });
96
+ },
97
+ handleClose(e) {
98
+ const r = this.tags.filter((t) => t !== e);
99
+ this.$emit("input", this.arrayMode ? r : r.map((t) => t.name || t).join(this.separator));
100
+ },
101
+ handleInputConfirm() {
102
+ return l(this, null, function* () {
103
+ var r;
104
+ if (this.tags.length >= this.maxTag) {
105
+ this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
106
+ return;
107
+ }
108
+ const e = this.inputValue;
109
+ if (e) {
110
+ if (this.tags.some((n) => (n.name || n) === e)) {
111
+ this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
112
+ return;
113
+ }
114
+ const t = [...this.tags];
115
+ t.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? t : t.map((n) => n.name || n).join(this.separator)), yield this.$nextTick(), (r = this.elFormItem) == null || r.clearValidate();
116
+ }
117
+ this.inputVisible = !1, this.inputValue = "";
118
+ });
119
+ }
120
+ }
121
+ }, m = {};
122
+ var B = /* @__PURE__ */ _(
123
+ w,
124
+ F,
125
+ k,
126
+ !1,
127
+ P,
128
+ null,
129
+ null,
130
+ null
131
+ );
132
+ function P(e) {
133
+ for (let r in m)
134
+ this[r] = m[r];
135
+ }
136
+ const S = /* @__PURE__ */ function() {
137
+ return B.exports;
138
+ }();
139
+ var C = function() {
18
140
  var e = this, r = e.$createElement, t = e._self._c || r;
19
- return t("FormItem", e._b({
141
+ return t(j, e._b({
20
142
  attrs: {
21
143
  block: e.block,
22
144
  rules: e.computeRules,
@@ -25,7 +147,7 @@ var b = function() {
25
147
  scopedSlots: e._u([{
26
148
  key: "default",
27
149
  fn: function() {
28
- return [t("XInputTag", e._g(e._b({
150
+ return [t(S, e._g(e._b({
29
151
  attrs: {
30
152
  value: e.value,
31
153
  readonly: e.readonly,
@@ -35,8 +157,8 @@ var b = function() {
35
157
  "object-mode": e.objectMode
36
158
  },
37
159
  on: {
38
- input: function(o) {
39
- return e.$emit("input", o);
160
+ input: function(n) {
161
+ return e.$emit("input", n);
40
162
  }
41
163
  }
42
164
  }, "XInputTag", e.inputProps, !1), e.listeners))];
@@ -44,10 +166,10 @@ var b = function() {
44
166
  proxy: !0
45
167
  }, {
46
168
  key: "error",
47
- fn: function(o) {
48
- var i = o.error;
169
+ fn: function(n) {
170
+ var a = n.error;
49
171
  return [e._t("error", null, {
50
- error: i
172
+ error: a
51
173
  })];
52
174
  }
53
175
  }, {
@@ -58,13 +180,13 @@ var b = function() {
58
180
  proxy: !0
59
181
  }], null, !0)
60
182
  }, "FormItem", e.formItemProps, !1));
61
- }, v = [];
62
- const I = Object.keys(s.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), h = {
183
+ }, D = [];
184
+ const R = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), X = {
63
185
  name: "FormInputTag",
64
186
  components: {
65
- XInputTag: s
187
+ XInputTag: f
66
188
  },
67
- mixins: [d],
189
+ mixins: [x],
68
190
  props: {
69
191
  value: [Array, String],
70
192
  block: {
@@ -82,27 +204,27 @@ const I = Object.keys(s.props).filter((e) => !["value", "placeholder", "disabled
82
204
  },
83
205
  computed: {
84
206
  inputProps() {
85
- return f(n(n({}, _(this.$attrs)), this.$props), I);
207
+ return I(o(o({}, T(this.$attrs)), this.$props), R);
86
208
  }
87
209
  }
88
- }, u = {};
89
- var g = /* @__PURE__ */ y(
90
- h,
91
- b,
92
- v,
210
+ }, h = {};
211
+ var z = /* @__PURE__ */ _(
212
+ X,
213
+ C,
214
+ D,
93
215
  !1,
94
- k,
216
+ A,
95
217
  null,
96
218
  null,
97
219
  null
98
220
  );
99
- function k(e) {
100
- for (let r in u)
101
- this[r] = u[r];
221
+ function A(e) {
222
+ for (let r in h)
223
+ this[r] = h[r];
102
224
  }
103
- const B = /* @__PURE__ */ function() {
104
- return g.exports;
225
+ const L = /* @__PURE__ */ function() {
226
+ return z.exports;
105
227
  }();
106
228
  export {
107
- B as default
229
+ L as default
108
230
  };
@@ -1,21 +1,21 @@
1
- var m = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var i = (e, t, r) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, a = (e, t) => {
1
+ var p = Object.defineProperty;
2
+ var l = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
+ var i = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, a = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
- p.call(t, r) && i(e, r, t[r]);
7
- if (o)
8
- for (var r of o(t))
6
+ m.call(t, r) && i(e, r, t[r]);
7
+ if (l)
8
+ for (var r of l(t))
9
9
  c.call(t, r) && i(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import l from "element-ui/lib/time-picker";
14
- import { d, n as _ } from "../chunks/index.57f871af.mjs";
12
+ import { _ as f, f as d } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import o from "element-ui/lib/time-picker";
14
+ import { h as _, n as g } from "../chunks/index.d91bd77a.mjs";
15
15
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
16
  var y = function() {
17
17
  var e = this, t = e.$createElement, r = e._self._c || t;
18
- return r("FormItem", e._b({
18
+ return r(f, e._b({
19
19
  attrs: {
20
20
  rules: e.computeRules,
21
21
  disabled: e.inputDisabled
@@ -23,7 +23,7 @@ var y = function() {
23
23
  scopedSlots: e._u([{
24
24
  key: "default",
25
25
  fn: function() {
26
- return [r("ElTimePicker", e._g(e._b({
26
+ return [r(o, e._g(e._b({
27
27
  attrs: {
28
28
  "is-range": e.range,
29
29
  value: e.value,
@@ -67,12 +67,12 @@ var y = function() {
67
67
  proxy: !0
68
68
  }], null, !0)
69
69
  }, "FormItem", e.formItemProps, !1));
70
- }, g = [];
71
- const b = Object.keys(l.props || l.default.props).filter(
70
+ }, b = [];
71
+ const h = Object.keys(o.props || o.default.props).filter(
72
72
  (e) => !["value", "placeholder", "disabled"].includes(e)
73
73
  ), x = {
74
74
  name: "FormInputTime",
75
- mixins: [f],
75
+ mixins: [d],
76
76
  props: {
77
77
  range: Boolean,
78
78
  format: {
@@ -111,27 +111,27 @@ const b = Object.keys(l.props || l.default.props).filter(
111
111
  return "请选择";
112
112
  },
113
113
  inputProps() {
114
- return d(a(a({}, _(this.$attrs)), this.$props), b);
114
+ return _(a(a({}, g(this.$attrs)), this.$props), h);
115
115
  }
116
116
  }
117
117
  }, s = {};
118
- var T = /* @__PURE__ */ v(
118
+ var S = /* @__PURE__ */ v(
119
119
  x,
120
120
  y,
121
- g,
121
+ b,
122
122
  !1,
123
- h,
123
+ T,
124
124
  null,
125
125
  null,
126
126
  null
127
127
  );
128
- function h(e) {
128
+ function T(e) {
129
129
  for (let t in s)
130
130
  this[t] = s[t];
131
131
  }
132
- const R = /* @__PURE__ */ function() {
133
- return T.exports;
132
+ const $ = /* @__PURE__ */ function() {
133
+ return S.exports;
134
134
  }();
135
135
  export {
136
- R as default
136
+ $ as default
137
137
  };
@@ -1,153 +1,24 @@
1
- var M = Object.defineProperty;
2
- var q = Object.getOwnPropertySymbols;
3
- var P = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
4
- var F = (e, r, t) => r in e ? M(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, _ = (e, r) => {
5
- for (var t in r || (r = {}))
6
- P.call(r, t) && F(e, t, r[t]);
7
- if (q)
8
- for (var t of q(r))
9
- T.call(r, t) && F(e, t, r[t]);
10
- return e;
11
- };
12
- var h = (e, r, t) => new Promise((i, f) => {
13
- var s = (l) => {
14
- try {
15
- a(t.next(l));
16
- } catch (n) {
17
- f(n);
18
- }
19
- }, o = (l) => {
20
- try {
21
- a(t.throw(l));
22
- } catch (n) {
23
- f(n);
24
- }
25
- }, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, o);
26
- a((t = t.apply(e, r)).next());
27
- });
28
- import { f as V } from "../chunks/form-item-mixin.ad148e7b.mjs";
29
- import { hasOwn as w } from "@web-utils/core";
30
- import { n as z } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
31
- const B = {
32
- name: "FormItem",
33
- mixins: [V],
34
- inject: {
35
- formHolder: {
36
- default: ""
37
- },
38
- formItemConfig: {
39
- default: null
40
- }
41
- },
42
- computed: {
43
- gutter() {
44
- var r;
45
- let e = this.$parent;
46
- for (; e && e.$options.componentName !== "ElRow"; )
47
- e = e.$parent;
48
- return (r = e == null ? void 0 : e.gutter) != null ? r : 0;
49
- }
50
- },
51
- methods: {
52
- renderFormItem() {
53
- var v, b, g;
54
- const e = this.$createElement, {
55
- label: r,
56
- labelWidth: t,
57
- prop: i,
58
- rules: f,
59
- $scopedSlots: s,
60
- elFormItemProps: o,
61
- elForm: a,
62
- formHolder: l,
63
- formItemClass: n,
64
- required: u,
65
- block: k,
66
- half: y,
67
- wrapCol: $,
68
- wrapFormItem: R,
69
- disabled: E,
70
- formItemConfig: d,
71
- getRequireRule: W
72
- } = this;
73
- let m = f, c = u, p = u, I = k, C = $;
74
- d && (w(d, "block") && (I = d.block), w(d, "wrapCol") && (C = d.wrapCol));
75
- const j = I && y && C ? `calc( 50% - ${this.gutter / 2}px)` : "";
76
- return E || a != null && a.disabled ? (m = [], l && !l.required && !((v = l.requiredFields) != null && v.includes(i)) && (p = !1)) : (l && !l.required && !((b = l.requiredFields) != null && b.includes(i)) && (c = !1), c && !(m != null && m.length) && i ? m = [W()] : c || (p = !1, m && (m = m.filter((H) => !H.required)))), R ? (
77
- // eslint-disable-next-line no-undef
78
- e("ElFormItem", {
79
- style: {
80
- width: j
81
- },
82
- key: `${i}-${c}`,
83
- class: p ? `form-item required ${n || ""}` : `${n || ""}`,
84
- scopedSlots: s,
85
- props: _({}, o),
86
- attrs: {
87
- label: r,
88
- "label-width": t,
89
- prop: i,
90
- rules: m
91
- },
92
- ref: "formItem"
93
- })
94
- ) : e("div", [(g = s.default) == null ? void 0 : g.call(s)]);
95
- },
96
- clearValidate() {
97
- return h(this, null, function* () {
98
- var e, r;
99
- yield this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
100
- });
101
- },
102
- validate() {
103
- return h(this, null, function* () {
104
- var e, r;
105
- yield this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
106
- });
107
- }
108
- },
109
- render() {
110
- var n, u;
111
- const e = arguments[0], {
112
- computeSpan: r,
113
- wrapCol: t,
114
- formItemConfig: i,
115
- renderFormItem: f,
116
- elColProps: s,
117
- $scopedSlots: o,
118
- unwrap: a
119
- } = this;
120
- let l = t;
121
- return i && w(i, "wrapCol") && (l = i.wrapCol), a ? e("div", [(n = o.default) == null ? void 0 : n.call(o)]) : l ? (
122
- // eslint-disable-next-line no-undef
123
- e("ElCol", {
124
- props: _({}, s),
125
- attrs: {
126
- span: r
127
- }
128
- }, [f(), (u = o == null ? void 0 : o.below) == null ? void 0 : u.call(o)])
129
- ) : f();
130
- }
131
- };
132
- let N, O;
133
- const x = {};
134
- var A = /* @__PURE__ */ z(
135
- B,
136
- N,
137
- O,
1
+ import { _ as n } from "../chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ let _, r;
4
+ const t = {};
5
+ var s = /* @__PURE__ */ o(
6
+ n,
7
+ _,
8
+ r,
138
9
  !1,
139
- D,
10
+ l,
140
11
  null,
141
12
  null,
142
13
  null
143
14
  );
144
- function D(e) {
145
- for (let r in x)
146
- this[r] = x[r];
15
+ function l(u) {
16
+ for (let e in t)
17
+ this[e] = t[e];
147
18
  }
148
- const Q = /* @__PURE__ */ function() {
149
- return A.exports;
19
+ const m = /* @__PURE__ */ function() {
20
+ return s.exports;
150
21
  }();
151
22
  export {
152
- Q as default
23
+ m as default
153
24
  };
@@ -1,172 +1,24 @@
1
- import { isFunction as m } from "@web-utils/core";
2
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], c = ["$emit", "validate", "clearValidate"], p = {
4
- name: "FormItemGroup",
5
- inject: {
6
- elForm: {
7
- default: {}
8
- }
9
- },
10
- provide() {
11
- return {
12
- elForm: this.formConfig,
13
- formItemGroup: this
14
- };
15
- },
16
- props: {
17
- blockTitle: {
18
- type: String
19
- },
20
- active: Boolean,
21
- enabled: Boolean,
22
- disabled: Boolean,
23
- wrapRow: {
24
- type: Boolean,
25
- default: !0
26
- },
27
- gutter: {
28
- type: Number,
29
- default: 20
30
- },
31
- collapse: Boolean
32
- },
33
- data() {
34
- const e = {};
35
- return r.forEach((t) => {
36
- e[t] = null;
37
- }), {
38
- expand: !0,
39
- formConfig: e
40
- };
41
- },
42
- computed: {
43
- formCfg() {
44
- const e = {
45
- enabled: this.enabled,
46
- forbidden: this.disabled
47
- };
48
- return r.forEach((t) => {
49
- e[t] = this.elForm[t];
50
- }), e;
51
- }
52
- },
53
- watch: {
54
- collapse: {
55
- immediate: !0,
56
- handler(e) {
57
- this.expand = !e;
58
- }
59
- },
60
- formCfg: {
61
- immediate: !0,
62
- handler() {
63
- this.formConfig.disabled = this.isDisabled(), r.forEach((e) => {
64
- var t;
65
- e !== "disabled" && (c.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
66
- });
67
- }
68
- }
69
- },
70
- mounted() {
71
- this.dispatch("FormView", "FormView.addGroup", [this]);
72
- },
73
- beforeDestroy() {
74
- this.dispatch("FormView", "FormView.removeGroup", [this]);
75
- },
76
- methods: {
77
- isDisabled() {
78
- return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
79
- },
80
- dispatch(e, t, s) {
81
- let i = this.$parent || this.$root, o = i.$options.name;
82
- for (; i && (!o || o !== e); )
83
- i = i.$parent, i && (o = i.$options.name);
84
- i && i.$emit.apply(i, [t].concat(s));
85
- },
86
- renderDefault() {
87
- const e = this.$createElement, {
88
- wrapRow: t,
89
- gutter: s,
90
- formConfig: i,
91
- $scopedSlots: o
92
- } = this;
93
- return m(o.default) ? t ? (
94
- // eslint-disable-next-line no-undef
95
- e("ElRow", {
96
- attrs: {
97
- gutter: s
98
- },
99
- class: "form-item-group-row"
100
- }, [o.default({
101
- disabled: i.disabled
102
- })])
103
- ) : o.default({
104
- disabled: i.disabled
105
- }) : e("EmptyView", {
106
- attrs: {
107
- "font-size": "14px",
108
- "empty-tips": "暂无信息"
109
- }
110
- });
111
- },
112
- toggle() {
113
- this.expand = !this.expand;
114
- },
115
- open() {
116
- this.expand = !0;
117
- }
118
- },
119
- render() {
120
- const e = arguments[0], {
121
- renderDefault: t,
122
- blockTitle: s,
123
- active: i,
124
- expand: o,
125
- toggle: n,
126
- $scopedSlots: a,
127
- isDisabled: d
128
- } = this;
129
- return e("div", {
130
- class: ["form-item-group", {
131
- "default-active": i,
132
- "is-disabled": d()
133
- }]
134
- }, [e("div", {
135
- class: "form-item-group-title",
136
- on: {
137
- click: n
138
- }
139
- }, [e("span", {
140
- class: "flex-item"
141
- }, [s, a["title-right"] ? a["title-right"]() : null]), " ", e("i", {
142
- class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
143
- })]), e("ElCollapseTransition", [e("div", {
144
- directives: [{
145
- name: "show",
146
- value: o
147
- }]
148
- }, [t()])])]);
149
- }
150
- };
151
- let f, h;
152
- const l = {};
153
- var b = /* @__PURE__ */ u(
154
- p,
155
- f,
156
- h,
1
+ import { _ as n } from "../chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ let _, r;
4
+ const t = {};
5
+ var s = /* @__PURE__ */ o(
6
+ n,
7
+ _,
8
+ r,
157
9
  !1,
158
- g,
10
+ l,
159
11
  null,
160
12
  null,
161
13
  null
162
14
  );
163
- function g(e) {
164
- for (let t in l)
165
- this[t] = l[t];
15
+ function l(u) {
16
+ for (let e in t)
17
+ this[e] = t[e];
166
18
  }
167
- const w = /* @__PURE__ */ function() {
168
- return b.exports;
19
+ const m = /* @__PURE__ */ function() {
20
+ return s.exports;
169
21
  }();
170
22
  export {
171
- w as default
23
+ m as default
172
24
  };