@web-utils/form-ui 1.0.0-beta51 → 1.0.0-beta53

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 (119) hide show
  1. package/chunks/{Dt3lfDnL.mjs → 7GmKqdbC.mjs} +48 -33
  2. package/chunks/{6yfBZFOB.mjs → 9MExJqL-.mjs} +4 -3
  3. package/chunks/{BQk3-Ppb2.mjs → B3yVc-P62.mjs} +38 -39
  4. package/chunks/{bFbPPcdq.mjs → B6yWUT6z.mjs} +2 -2
  5. package/chunks/BEvOkSfB.mjs +417 -0
  6. package/chunks/{D_qiRmiE.mjs → BHbMJZPp.mjs} +69 -62
  7. package/chunks/{B9gA65rt2.mjs → BJYlobMz2.mjs} +2 -2
  8. package/chunks/{CJdkjadi.mjs → BNXbI4OG.mjs} +1 -1
  9. package/chunks/{V2p-PCpL.mjs → BV-XUugQ.mjs} +3 -3
  10. package/chunks/B_RAcbs_.mjs +108 -0
  11. package/chunks/{CqVd8D222.mjs → BgTCTXs72.mjs} +4 -3
  12. package/chunks/{BtcjAHE6.mjs → BjGlxyi6.mjs} +2 -2
  13. package/chunks/{pIzhYsBe.mjs → BqC_VU52.mjs} +2 -2
  14. package/chunks/{eae6huQB.mjs → BqzJ6vY6.mjs} +2 -2
  15. package/chunks/ByTyNsWf.mjs +653 -0
  16. package/chunks/{BfxDxIg0.mjs → CB9QUXUX.mjs} +2 -2
  17. package/chunks/CGDnQr1c.mjs +67 -0
  18. package/chunks/{DKwp6AMl.mjs → CGuDBVCB.mjs} +4 -3
  19. package/chunks/{C7G-cAoI.mjs → CPvdsnRN.mjs} +1 -1
  20. package/chunks/{Bwbtu2cp.mjs → CgN7m-1v.mjs} +4 -3
  21. package/chunks/{D_Fs3bkZ.mjs → D5EQJdPL.mjs} +3 -3
  22. package/chunks/D7R9Or2m2.mjs +87 -0
  23. package/chunks/D9IFsT272.mjs +513 -0
  24. package/chunks/{CuAoMR3n.mjs → DFFNxlqD.mjs} +5 -16
  25. package/chunks/{BWh6u1O0.mjs → DWMePN6q.mjs} +1 -1
  26. package/chunks/{CAd1zK9Q.mjs → DawYTjoT.mjs} +2 -2
  27. package/chunks/{BqWvBF14.mjs → DjnHvHXo.mjs} +2 -2
  28. package/chunks/{CabldOLo.mjs → DwkOWXIR.mjs} +6 -5
  29. package/chunks/{BQyL45PF2.mjs → DyCO22Ia2.mjs} +1 -1
  30. package/chunks/{B1IPSTA6.mjs → Dytof5EW.mjs} +2 -2
  31. package/chunks/{wXeqV-_7.mjs → H70Z56YY.mjs} +9 -3
  32. package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
  33. package/chunks/{ByHz4mmh.mjs → XwerN1TU.mjs} +2 -2
  34. package/chunks/{DA7oGHSX.mjs → c0Niqotr.mjs} +2 -2
  35. package/chunks/{C2zgFLYO.mjs → oVFbZ6yk.mjs} +30 -30
  36. package/chunks/{BbSPWDDZ.mjs → z5FJgzdc.mjs} +4 -3
  37. package/constants/index.d.ts +1 -0
  38. package/editable-tree/index.mjs +1 -1
  39. package/element-dialog/index.d.ts +2 -2
  40. package/form-cascader/index.d.ts +8 -2
  41. package/form-cascader/index.mjs +1 -1
  42. package/form-checkbox/index.d.ts +10 -4
  43. package/form-checkbox/index.mjs +1 -1
  44. package/form-checkbox-group/index.d.ts +8 -2
  45. package/form-checkbox-group/index.mjs +1 -1
  46. package/form-date-picker/index.d.ts +8 -2
  47. package/form-date-picker/index.mjs +1 -1
  48. package/form-holder/index.mjs +1 -1
  49. package/form-image/index.d.ts +8 -2
  50. package/form-image/index.mjs +1 -1
  51. package/form-input/index.d.ts +8 -2
  52. package/form-input/index.mjs +1 -1
  53. package/form-input-cron-expression/index.d.ts +8 -2
  54. package/form-input-cron-expression/index.mjs +1 -1
  55. package/form-input-email/index.d.ts +8 -2
  56. package/form-input-email/index.mjs +1 -1
  57. package/form-input-id-card/index.d.ts +8 -2
  58. package/form-input-id-card/index.mjs +1 -1
  59. package/form-input-number/index.d.ts +8 -2
  60. package/form-input-number/index.mjs +1 -1
  61. package/form-input-phone-number/index.d.ts +8 -2
  62. package/form-input-phone-number/index.mjs +1 -1
  63. package/form-input-tag/index.d.ts +8 -2
  64. package/form-input-tag/index.mjs +1 -1
  65. package/form-input-time/index.d.ts +8 -2
  66. package/form-input-time/index.mjs +1 -1
  67. package/form-item-group/index.mjs +1 -1
  68. package/form-item-x/index.d.ts +8 -2
  69. package/form-item-x/index.mjs +1 -1
  70. package/form-item-x/style.css +1 -1
  71. package/form-radio-group/index.d.ts +8 -2
  72. package/form-radio-group/index.mjs +1 -1
  73. package/form-rate/index.d.ts +8 -2
  74. package/form-rate/index.mjs +1 -1
  75. package/form-select/index.d.ts +8 -2
  76. package/form-select/index.mjs +1 -1
  77. package/form-slider/index.d.ts +8 -2
  78. package/form-slider/index.mjs +1 -1
  79. package/form-switch/index.d.ts +8 -2
  80. package/form-switch/index.mjs +1 -1
  81. package/form-table/index.d.ts +43 -25
  82. package/form-table/index.mjs +1 -1
  83. package/form-table-plus/index.d.ts +8 -8
  84. package/form-table-plus/index.mjs +1 -1
  85. package/form-text/index.d.ts +8 -2
  86. package/form-text/index.mjs +1 -1
  87. package/form-textarea/index.d.ts +12 -12
  88. package/form-textarea/index.mjs +1 -1
  89. package/form-time-select/index.d.ts +8 -2
  90. package/form-time-select/index.mjs +1 -1
  91. package/helper/sub-table-plus.d.ts +38 -0
  92. package/helper/sub-table-plus.mjs +4 -0
  93. package/index.css +1 -1
  94. package/index.mjs +35 -35
  95. package/package.json +1 -1
  96. package/pageable-table/index.d.ts +11 -11
  97. package/pageable-table/index.mjs +1 -1
  98. package/sub-table/index.d.ts +36 -30
  99. package/sub-table/index.mjs +2 -537
  100. package/sub-table-plus/index.d.ts +11 -2
  101. package/sub-table-plus/index.mjs +1 -1
  102. package/table-column/index.d.ts +8 -5
  103. package/table-column/index.mjs +1 -1
  104. package/table-column-def/index.d.ts +14 -12
  105. package/table-column-def/index.mjs +1 -1
  106. package/table-view/index.d.ts +4 -0
  107. package/table-view/index.mjs +16 -8
  108. package/toolbar/index.mjs +1 -1
  109. package/toolbar-button/index.mjs +1 -1
  110. package/toolbar-button/style.css +1 -0
  111. package/vue-cron/index.mjs +1 -1
  112. package/web-types.json +1 -1
  113. package/x-input-tag/index.mjs +1 -1
  114. package/chunks/BG8z3V9d2.mjs +0 -643
  115. package/chunks/BsZgAJX_2.mjs +0 -81
  116. package/chunks/YFiU0ngn.mjs +0 -622
  117. package/chunks/gCeDFHo1.mjs +0 -32
  118. package/chunks/hlha6Bhc.mjs +0 -107
  119. package/chunks/wDS9KBFw.mjs +0 -67
@@ -1,11 +1,11 @@
1
1
  import { f as e, o as t, p as n } from "./DcTVYqeJ.mjs";
2
- import { formHolderContextKey as r, formItemConfigProviderContextKey as i, formItemGroupContextKey as a } from "../constants/index.mjs";
3
- import { isArray as o, isPlainObject as s, isString as c } from "@web-utils/core";
4
- import { computed as l, createVNode as u, h as d, inject as f, mergeProps as p, nextTick as m, unref as h, useTemplateRef as g } from "vue";
5
- import { ElCol as _, rowContextKey as v } from "element-plus";
6
- import { ElCol as y, ElFormItem as b, ElTooltip as x } from "element-plus/es";
2
+ import { formHolderContextKey as r, formItemConfigProviderContextKey as i, formItemGroupContextKey as a, formViewContextKey as o } from "../constants/index.mjs";
3
+ import { isArray as s, isPlainObject as c, isString as l } from "@web-utils/core";
4
+ import { computed as u, createVNode as d, h as f, inject as p, mergeProps as m, nextTick as h, unref as g, useTemplateRef as _ } from "vue";
5
+ import { ElCol as v, rowContextKey as y } from "element-plus";
6
+ import { ElCol as b, ElFormItem as x, ElTooltip as S } from "element-plus/es";
7
7
  //#region src/components/form/props/form-item.ts
8
- var S = {
8
+ var C = {
9
9
  prop: [String, Array],
10
10
  label: String,
11
11
  labelPosition: {
@@ -37,7 +37,10 @@ var S = {
37
37
  default: !0
38
38
  },
39
39
  fixedSpan: Number,
40
- block: Boolean,
40
+ block: {
41
+ type: Boolean,
42
+ default: void 0
43
+ },
41
44
  unwrap: Boolean,
42
45
  half: Boolean,
43
46
  formItemClass: String,
@@ -51,7 +54,7 @@ var S = {
51
54
  inputColspan: [Number, String],
52
55
  labelRowspan: [Number, String],
53
56
  inputRowspan: [Number, String]
54
- }, C = {
57
+ }, w = {
55
58
  required: !0,
56
59
  rules: !0,
57
60
  messagePrefix: !0,
@@ -69,7 +72,7 @@ var S = {
69
72
  inputColspan: !0,
70
73
  labelRowspan: !0,
71
74
  inputRowspan: !0
72
- }, w = (e) => S[e] !== void 0 && C[e] !== !0, T = (e, { emit: n, events: r, predicate: i }) => l(() => t(e, i, r, n)), E = {
75
+ }, T = (e) => C[e] !== void 0 && w[e] !== !0, E = (e, { emit: n, events: r, predicate: i }) => u(() => t(e, i, r, n)), D = {
73
76
  span: {
74
77
  type: Number,
75
78
  default: 12
@@ -95,34 +98,34 @@ var S = {
95
98
  type: String,
96
99
  default: "div"
97
100
  }
98
- }, D = { span: !0 }, O = (e) => E[e] !== void 0 && D[e] !== !0, k = (e, { emit: n, events: r, predicate: i }) => l(() => t(e, i, r, n)), A = (e) => {
99
- let t = f(r, null);
100
- return l(() => e.required === !0 ? !0 : (t == null ? void 0 : t.requiredFieldsMap[e.prop]) === !0);
101
- }, j = (e, t) => {
102
- c(t) ? e.push(t) : o(t) ? e.push(...t) : s(t) && e.push(t);
103
- }, M = (e, { rules: t, attrs: n, messagePrefix: r, message: i, ...a } = {}) => {
104
- let o = A(e);
105
- return l(() => {
106
- let s = { message: i }, c = h(t);
101
+ }, O = { span: !0 }, k = (e) => D[e] !== void 0 && O[e] !== !0, A = (e, { emit: n, events: r, predicate: i }) => u(() => t(e, i, r, n)), j = (e) => {
102
+ let t = p(r, null);
103
+ return u(() => e.required === !0 ? !0 : (t == null ? void 0 : t.requiredFieldsMap[e.prop]) === !0);
104
+ }, M = (e, t) => {
105
+ l(t) ? e.push(t) : s(t) ? e.push(...t) : c(t) && e.push(t);
106
+ }, N = (e, { rules: t, attrs: n, block: r, class: i, messagePrefix: a, message: o } = {}) => {
107
+ let s = j(e);
108
+ return u(() => {
109
+ let c = { message: o }, l = g(t);
107
110
  Object.keys({
108
- ...S,
109
- ...E
111
+ ...C,
112
+ ...D
110
113
  }).forEach((t) => {
111
- t === "rules" ? e[t] && c ? s[t] = [...e[t], ...c] : e[t] ? s[t] = e[t] : c && (s[t] = c) : t === "messagePrefix" ? s[t] = e.messagePrefix || r : s[t] = e[t];
114
+ t === "rules" ? e[t] && l ? c[t] = [...e[t], ...l] : e[t] ? c[t] = e[t] : l && (c[t] = l) : t === "messagePrefix" ? c[t] = e.messagePrefix || a : t === "block" ? c[t] = r ?? e.block : c[t] = e[t];
112
115
  });
113
- let l = [];
114
- return j(l, h(n == null ? void 0 : n.class)), j(l, h(a == null ? void 0 : a.class)), s.required = o.value, s.class = l, s.style = n == null ? void 0 : n.style, s;
116
+ let u = [];
117
+ return M(u, g(n == null ? void 0 : n.class)), M(u, g(i)), c.required = s.value, c.class = u, c.style = n == null ? void 0 : n.style, c;
115
118
  });
116
- }, N = {
119
+ }, P = {
117
120
  name: "FormItemX",
118
121
  inheritAttrs: !1,
119
122
  props: {
120
- ...S,
121
- ...E
123
+ ...C,
124
+ ...D
122
125
  },
123
126
  setup(e, { attrs: t, slots: n, expose: a }) {
124
- let o = f(v, null), s = f(i, null), c = f(r, null), d = t.embed ? l(() => t.disabled) : F(e), h = T(e, { predicate: w }), _ = k(e, { predicate: O }), S = l(() => (s == null ? void 0 : s.reactive) === !0 && s.block === !1 && e.fixedSpan === void 0 && !e.half), C = A(e), E = g("formItem"), D = l(() => (s == null ? void 0 : s.wrapCol) === !1 ? !1 : !!o && e.wrapCol), j = l(() => c != null && c.tableForm ? "" : s != null && s.block ? "100%" : e.half && D.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = l(() => (s == null ? void 0 : s.block) === !0 || e.block || e.half ? 24 : e.span), N = l(() => {
125
- if (d.value) return [];
127
+ let o = p(y, null), s = p(i, null), c = p(r, null), l = t.embed ? u(() => t.disabled) : I(e), f = E(e, { predicate: T }), g = A(e, { predicate: k }), v = u(() => (s == null ? void 0 : s.reactive) === !0 && s.block === !1 && e.fixedSpan === void 0 && !e.half), C = j(e), w = _("formItem"), D = u(() => (s == null ? void 0 : s.wrapCol) === !1 ? !1 : !!o && e.wrapCol), O = u(() => c != null && c.tableForm ? "" : s != null && s.block ? "100%" : e.half && D.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = u(() => (s == null ? void 0 : s.block) === !0 || e.block || e.half ? 24 : e.span), N = u(() => {
128
+ if (l.value) return [];
126
129
  if (C.value) {
127
130
  let t = {
128
131
  required: !0,
@@ -135,31 +138,31 @@ var S = {
135
138
  return a({
136
139
  clearValidate: async () => {
137
140
  var e;
138
- await m(), (e = E.value) == null || e.clearValidate();
141
+ await h(), (e = w.value) == null || e.clearValidate();
139
142
  },
140
143
  validate: async () => {
141
144
  var e;
142
- await m(), (e = E.value) == null || e.validate();
145
+ await h(), (e = w.value) == null || e.validate();
143
146
  }
144
147
  }), () => {
145
148
  var r;
146
- let i = n.tips || e.tips, a = i ? u(x, {
149
+ let i = n.tips || e.tips, a = i ? d(S, {
147
150
  effect: "light",
148
151
  content: e.tips,
149
152
  offset: 4
150
153
  }, {
151
- default: () => u("i", { class: "el-icon-info form-item-input-info" }, null),
154
+ default: () => d("i", { class: "el-icon-info form-item-input-info" }, null),
152
155
  content: n.tips ? n.tips : null
153
- }) : null, o = u(b, p(h.value, t, {
156
+ }) : null, o = d(x, m(f.value, t, {
154
157
  ref: "formItem",
155
- style: { width: j.value },
158
+ style: { width: O.value },
156
159
  class: [
157
160
  "form-item",
158
161
  e.formItemClass,
159
162
  {
160
163
  "form-item-hide-label": e.hideLabel,
161
164
  "with-tips": !e.tipsAfterLabel && i,
162
- required: d.value === !1 && C.value
165
+ required: l.value === !1 && C.value
163
166
  }
164
167
  ],
165
168
  rules: N.value
@@ -168,13 +171,13 @@ var S = {
168
171
  default: () => {
169
172
  var t;
170
173
  return [(t = n.default) == null ? void 0 : t.call(n, {
171
- disabled: d.value,
174
+ disabled: l.value,
172
175
  required: C.value
173
176
  }), i && !e.tipsAfterLabel ? a : null];
174
177
  },
175
178
  label: () => [n.label ? n.label() : e.label, e.tipsAfterLabel ? a : null]
176
179
  }), s = [o, (r = n.below) == null ? void 0 : r.call(n)];
177
- return e.unwrap ? s : D.value ? u(y, p(_.value, S.value ? {
180
+ return e.unwrap ? s : D.value ? d(b, m(g.value, v.value ? {
178
181
  xs: 24,
179
182
  sm: 12,
180
183
  md: 12,
@@ -183,9 +186,9 @@ var S = {
183
186
  } : {}, { span: M.value }), { default: () => s }) : o;
184
187
  };
185
188
  }
186
- }, P = "update:modelValue", F = (e) => {
187
- let t = f(r, null), n = f(a, null);
188
- return l(() => {
189
+ }, F = "update:modelValue", I = (e) => {
190
+ let t = p(r, null), n = p(a, null);
191
+ return u(() => {
189
192
  if (e.disabled !== void 0) return e.disabled;
190
193
  if (t) {
191
194
  if (t.requiredFieldsMap[e.prop] === !0 || t.enabledFieldsMap[e.prop] === !0) return !1;
@@ -193,7 +196,7 @@ var S = {
193
196
  }
194
197
  return (n == null ? void 0 : n.enabled) === !0 ? !1 : (n == null ? void 0 : n.disabled) === !0 ? !0 : (t == null ? void 0 : t.disabled) === !0;
195
198
  });
196
- }, I = { [P]: null }, L = (e, t) => e(P, t), R = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? d(N, {
199
+ }, L = { [F]: null }, R = (e, t) => e(F, t), z = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? f(P, {
197
200
  ...n.value,
198
201
  embed: !0,
199
202
  disabled: i == null ? void 0 : i.value
@@ -203,28 +206,32 @@ var S = {
203
206
  error: r.error,
204
207
  tips: r.tips,
205
208
  below: r.below
206
- }) : t, z = (r, { emit: i, slots: a, attrs: o, rules: s, events: c, predicate: u, messagePrefix: f = "请输入", removeOn: p = !1, ...m }) => {
207
- let h = F(r), g = l(() => h.value ? "" : `${f}${r.label}`), v = M(r, {
208
- rules: s,
209
- attrs: o,
210
- message: g.value,
211
- ...m
212
- }), y = (e) => L(i, e), b = (e) => r.col ? d(_, { span: r.block ? 24 : r.span }, { default: () => e }) : e, x = ({ vNodes: e }) => R(r, {
213
- vNodes: b(e),
214
- formItemProps: v,
209
+ }) : t, B = (r, { emit: i, slots: a, events: s, predicate: c, removeOn: l = !1, attrs: d, block: m, class: h, rules: g, messagePrefix: _ = "请输入", extraFormItemProps: y }) => {
210
+ let b = I(r), x = p(o, null), S = u(() => b.value ? "" : `${_}${r.label}`), C = N(r, {
211
+ rules: g,
212
+ block: m === void 0 ? r.type === "textarea" && r.block === void 0 ? !0 : r.block : m,
213
+ attrs: d,
214
+ class: h,
215
+ message: S.value,
216
+ messagePrefix: _,
217
+ ...y
218
+ }), w = (e) => R(i, e), T = (e) => r.col ? f(v, { span: r.block ? 24 : r.span }, { default: () => e }) : e, E = ({ vNodes: e }) => z(r, {
219
+ vNodes: T(e),
220
+ formItemProps: C,
215
221
  slots: a,
216
- disabled: h
217
- }), S = l(() => t(r, u, c, i)), C = n({ removeOn: p });
222
+ disabled: b
223
+ }), D = u(() => t(r, c, s, i)), O = n({ removeOn: l });
218
224
  return {
219
- emitInput: y,
220
- render: x,
221
- placeholder: g,
222
- disabled: h,
223
- formItemProps: v,
224
- autoBind: S,
225
- inputProps: e(r, u),
226
- listeners: C
225
+ emitInput: w,
226
+ render: E,
227
+ placeholder: S,
228
+ disabled: b,
229
+ formItemProps: C,
230
+ autoBind: D,
231
+ inputProps: e(r, c),
232
+ listeners: O,
233
+ printing: u(() => (x == null ? void 0 : x.printing) === !0)
227
234
  };
228
- }, B = (e) => e.icon ? d("i", { class: e.icon }) : null;
235
+ }, V = (e) => e.icon ? f("i", { class: e.icon }) : null;
229
236
  //#endregion
230
- export { N as a, S as c, z as i, I as n, M as o, R as r, E as s, B as t };
237
+ export { P as a, C as c, B as i, L as n, N as o, z as r, D as s, V as t };
@@ -1,6 +1,6 @@
1
1
  import { f as e } from "./DcTVYqeJ.mjs";
2
- import { o as t, r as n } from "./D_qiRmiE.mjs";
3
- import { n as r } from "./CJdkjadi.mjs";
2
+ import { o as t, r as n } from "./BHbMJZPp.mjs";
3
+ import { n as r } from "./BNXbI4OG.mjs";
4
4
  import { createVNode as i, mergeProps as a } from "vue";
5
5
  import { ElText as o } from "element-plus/es";
6
6
  //#region src/components/form/props/text.ts
@@ -1,4 +1,4 @@
1
- import { c as e, s as t } from "./D_qiRmiE.mjs";
1
+ import { c as e, s as t } from "./BHbMJZPp.mjs";
2
2
  //#region src/components/form/props/common.ts
3
3
  var n = {
4
4
  ...e,
@@ -1,7 +1,7 @@
1
- import { i as e, n as t } from "./D_qiRmiE.mjs";
2
- import { n } from "./CJdkjadi.mjs";
1
+ import { i as e, n as t } from "./BHbMJZPp.mjs";
2
+ import { n } from "./BNXbI4OG.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
- import { t as i } from "./CabldOLo.mjs";
4
+ import { t as i } from "./DwkOWXIR.mjs";
5
5
  import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
6
6
  import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
7
7
  //#region src/components/form/props/checkbox-group.ts
@@ -0,0 +1,108 @@
1
+ import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
2
+ import n from "../empty-view/index.mjs";
3
+ import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, useTemplateRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
4
+ import { ElCol as b, ElCollapseTransition as x } from "element-plus";
5
+ import { ElRow as S } from "element-plus/es";
6
+ //#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
7
+ function C(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
9
+ }
10
+ //#endregion
11
+ //#region src/components/form/FormItemGroup.vue
12
+ var w = {
13
+ name: "FormItemGroup",
14
+ props: {
15
+ blockTitle: String,
16
+ tips: String,
17
+ active: Boolean,
18
+ enabled: {
19
+ type: Boolean,
20
+ default: void 0
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: void 0
25
+ },
26
+ tag: {
27
+ type: String,
28
+ default: "ElCol"
29
+ },
30
+ span: {
31
+ type: Number,
32
+ default: 24
33
+ },
34
+ block: {
35
+ type: Boolean,
36
+ default: !0
37
+ },
38
+ wrapRow: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ gutter: {
43
+ type: Number,
44
+ default: 20
45
+ },
46
+ collapse: Boolean,
47
+ showTitle: {
48
+ type: Boolean,
49
+ default: !0
50
+ },
51
+ notDispatch: Boolean
52
+ },
53
+ setup(l, { expose: w, slots: T }) {
54
+ let E = c(t, null), D = g("root"), O = m(!0), k = h(() => l.enabled), A = h(() => l.disabled), j = i(() => l.enabled === !0 ? !1 : l.disabled === !0), M = i(() => l.tag === "ElCol"), N = () => O.value = !O.value, P = () => {
55
+ O.value = !0;
56
+ };
57
+ v(() => {
58
+ O.value = !l.collapse;
59
+ });
60
+ let F = {
61
+ $el: h(() => M.value ? D.value.$el : D.value),
62
+ enabled: k,
63
+ disabled: A,
64
+ open: P,
65
+ expand: O,
66
+ blockTitle: h(() => l.blockTitle)
67
+ }, I = p(F);
68
+ return f(e, I), d(() => {
69
+ l.notDispatch || E == null || E.addGroup(I);
70
+ }), u(() => {
71
+ l.notDispatch || E == null || E.removeGroup(I);
72
+ }), w(F), () => {
73
+ let e = () => {
74
+ var e;
75
+ return o(r, null, [y(o("div", {
76
+ class: "form-item-group-title",
77
+ onClick: N
78
+ }, [o("span", {
79
+ class: "flex-item",
80
+ style: "flex: 1"
81
+ }, [
82
+ T.title ? T.title() : l.blockTitle,
83
+ T.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
84
+ a("("),
85
+ T.tips ? T.tips() : l.tips,
86
+ a(")")
87
+ ]) : null,
88
+ (e = T["title-right"]) == null ? void 0 : e.call(T)
89
+ ]), o("i", { class: O.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, l.showTitle]]), o(x, null, { default: () => {
90
+ let e;
91
+ return T.default ? l.wrapRow ? y(o(S, { gutter: l.gutter }, C(e = T.default()) ? e : { default: () => [e] }), [[_, O.value]]) : y(o("div", null, [T.default()]), [[_, O.value]]) : y(o(n, {
92
+ "font-size": "14px",
93
+ "empty-tips": "暂无信息"
94
+ }, null), [[_, O.value]]);
95
+ } })]);
96
+ }, t = {
97
+ ref: "root",
98
+ class: ["form-item-group", {
99
+ "default-active": l.active,
100
+ "is-disabled": j.value
101
+ }]
102
+ };
103
+ return M.value && (t.span = l.block ? 24 : l.span), s(M.value ? b : "div", t, M.value ? e : e());
104
+ };
105
+ }
106
+ };
107
+ //#endregion
108
+ export { w as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./D_qiRmiE.mjs";
2
- import { n, t as r } from "./CJdkjadi.mjs";
1
+ import { i as e, n as t } from "./BHbMJZPp.mjs";
2
+ import { n, t as r } from "./BNXbI4OG.mjs";
3
3
  import { createVNode as i, mergeProps as a } from "vue";
4
4
  import { ElTimeSelect as o } from "element-plus/es";
5
5
  //#region src/components/form/props/time-select.ts
@@ -63,7 +63,8 @@ var s = {
63
63
  popperStyle: [String, Object]
64
64
  }, c = {
65
65
  disabled: !0,
66
- modelValue: !0
66
+ modelValue: !0,
67
+ valueOnClear: !0
67
68
  }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
68
69
  name: "FormTimeSelect",
69
70
  inheritAttrs: !1,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./D_qiRmiE.mjs";
2
- import { n } from "./CJdkjadi.mjs";
1
+ import { i as e, n as t } from "./BHbMJZPp.mjs";
2
+ import { n } from "./BNXbI4OG.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
4
  import { isNumber as i, isPlainObject as a, isString as o } from "@web-utils/core";
5
5
  import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./D_qiRmiE.mjs";
2
- import { n } from "./CJdkjadi.mjs";
1
+ import { i as e, n as t } from "./BHbMJZPp.mjs";
2
+ import { n } from "./BNXbI4OG.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElSlider as o } from "element-plus/es";
5
5
  //#region src/components/form/props/slide.ts
@@ -1,5 +1,5 @@
1
- import { n as e } from "./D_qiRmiE.mjs";
2
- import { n as t, t as n } from "./CabldOLo.mjs";
1
+ import { n as e } from "./BHbMJZPp.mjs";
2
+ import { n as t, t as n } from "./DwkOWXIR.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
5
5
  function s(e) {