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

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 (81) hide show
  1. package/chunks/{B3yVc-P62.mjs → 5KomemiE2.mjs} +20 -20
  2. package/chunks/{H70Z56YY.mjs → 6GcIyEQV.mjs} +8 -8
  3. package/chunks/{DjnHvHXo.mjs → 8c9TEVNY.mjs} +3 -2
  4. package/chunks/AAZfNtly.mjs +119 -0
  5. package/chunks/{ByTyNsWf.mjs → B3A-CnYr.mjs} +2 -2
  6. package/chunks/{D5EQJdPL.mjs → BKlMENhV.mjs} +8 -8
  7. package/chunks/{9MExJqL-.mjs → BNVYEWWW.mjs} +7 -7
  8. package/chunks/{c0Niqotr.mjs → BTuzBfTA.mjs} +18 -18
  9. package/chunks/{DawYTjoT.mjs → BpCiVuKL.mjs} +2 -2
  10. package/chunks/{D7R9Or2m2.mjs → Bq62m7IR2.mjs} +13 -13
  11. package/chunks/BvKUeniN.mjs +127 -0
  12. package/chunks/{CGuDBVCB.mjs → C3MF_-bN.mjs} +11 -11
  13. package/chunks/{BNXbI4OG.mjs → C6Dq9Dgb.mjs} +1 -1
  14. package/chunks/{DwkOWXIR.mjs → C6u76g6o.mjs} +21 -21
  15. package/chunks/{B6yWUT6z.mjs → C7Mak2La.mjs} +2 -2
  16. package/chunks/{BV-XUugQ.mjs → CLO5X9Lb.mjs} +34 -34
  17. package/chunks/{DFFNxlqD.mjs → CNK4mfga.mjs} +3 -3
  18. package/chunks/{BEvOkSfB.mjs → CauzhVSa2.mjs} +10 -10
  19. package/chunks/{BJYlobMz2.mjs → CdoiMj7L2.mjs} +3 -2
  20. package/chunks/{CgN7m-1v.mjs → Czz_49pC.mjs} +22 -22
  21. package/chunks/{XwerN1TU.mjs → D0kIhzQo.mjs} +5 -5
  22. package/chunks/{CGDnQr1c.mjs → D2B9Y3oT.mjs} +1 -1
  23. package/chunks/{oVFbZ6yk.mjs → DTVTvvq-.mjs} +5 -1
  24. package/chunks/{BjGlxyi6.mjs → DWE67l1f.mjs} +47 -47
  25. package/chunks/{BqC_VU52.mjs → DZrQmH9Y.mjs} +5 -5
  26. package/chunks/{BgTCTXs72.mjs → D_L1p3vm2.mjs} +6 -6
  27. package/chunks/{BqzJ6vY6.mjs → Dluor05A.mjs} +2 -2
  28. package/chunks/{z5FJgzdc.mjs → Dy_5vPdP.mjs} +8 -8
  29. package/chunks/{Dytof5EW.mjs → Goee5Y-H.mjs} +13 -13
  30. package/chunks/{CB9QUXUX.mjs → ecpQ-ODX.mjs} +5 -5
  31. package/chunks/{D9IFsT272.mjs → g8MIBMw92.mjs} +10 -10
  32. package/form-cascader/index.mjs +1 -1
  33. package/form-checkbox/index.mjs +1 -1
  34. package/form-checkbox-group/index.mjs +1 -1
  35. package/form-date-picker/index.mjs +1 -1
  36. package/form-holder/index.mjs +1 -1
  37. package/form-image/index.mjs +1 -1
  38. package/form-input/index.mjs +1 -1
  39. package/form-input-cron-expression/index.mjs +1 -1
  40. package/form-input-email/index.mjs +1 -1
  41. package/form-input-id-card/index.mjs +1 -1
  42. package/form-input-number/index.mjs +1 -1
  43. package/form-input-phone-number/index.mjs +1 -1
  44. package/form-input-tag/index.mjs +1 -1
  45. package/form-input-time/index.mjs +1 -1
  46. package/form-item-group/index.mjs +1 -1
  47. package/form-item-x/index.mjs +1 -1
  48. package/form-radio-group/index.mjs +1 -1
  49. package/form-rate/index.mjs +1 -1
  50. package/form-row/index.mjs +1 -1
  51. package/form-select/index.mjs +1 -1
  52. package/form-slider/index.mjs +1 -1
  53. package/form-switch/index.mjs +1 -1
  54. package/form-table/index.mjs +1 -1
  55. package/form-table-plus/index.mjs +1 -1
  56. package/form-text/index.mjs +1 -1
  57. package/form-textarea/index.mjs +1 -1
  58. package/form-time-select/index.mjs +1 -1
  59. package/helper/form-item.d.ts +10 -0
  60. package/helper/form-item.mjs +2 -0
  61. package/helper/input.d.ts +44 -0
  62. package/helper/input.mjs +2 -0
  63. package/index.mjs +34 -34
  64. package/package.json +1 -1
  65. package/pageable-table/index.mjs +1 -1
  66. package/sub-table/index.mjs +1 -1
  67. package/sub-table-plus/index.mjs +1 -1
  68. package/table-column/index.mjs +1 -1
  69. package/table-column-def/index.mjs +1 -1
  70. package/table-view/index.mjs +3 -3
  71. package/toolbar/index.mjs +1 -1
  72. package/vue-cron/index.mjs +1 -1
  73. package/web-types.json +1 -1
  74. package/year-calendar/index.mjs +1 -1
  75. package/chunks/BHbMJZPp.mjs +0 -237
  76. /package/chunks/{B_RAcbs_.mjs → BNqVEHk_.mjs} +0 -0
  77. /package/chunks/{DOP3aBxf.mjs → BlxLaWcU.mjs} +0 -0
  78. /package/chunks/{CPvdsnRN.mjs → BoJgSMkL.mjs} +0 -0
  79. /package/chunks/{GI8krYU82.mjs → Dg4R65aG2.mjs} +0 -0
  80. /package/chunks/{DyCO22Ia2.mjs → Dt_s96gL2.mjs} +0 -0
  81. /package/chunks/{XoImEoke.mjs → xq_LR6R2.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as e, n as t, t as n } from "./BHbMJZPp.mjs";
2
- import { n as r, t as i } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t, t as n } from "./BvKUeniN.mjs";
2
+ import { n as r, t as i } from "./C6Dq9Dgb.mjs";
3
3
  import { validatePhoneNum as a } from "@web-utils/core";
4
4
  import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
5
5
  import { ElInput as u } from "element-plus/es";
@@ -113,44 +113,44 @@ var m = {
113
113
  name: "FormInput",
114
114
  inheritAttrs: !1,
115
115
  props: { ...m },
116
- emits: { ...t },
117
- setup(t, { emit: r, slots: i, attrs: p }) {
118
- let m = l(t, "modelValue"), h = `请输入正确的${t.label}!`, { render: _, placeholder: v, disabled: y, listeners: b, inputProps: x, printing: S } = e(t, {
116
+ emits: { ...e },
117
+ setup(e, { emit: r, slots: i, attrs: p }) {
118
+ let m = l(e, "modelValue"), h = `请输入正确的${e.label}!`, { render: _, placeholder: v, disabled: y, listeners: b, inputProps: x, printing: S } = t(e, {
119
119
  emit: r,
120
120
  slots: i,
121
121
  attrs: p,
122
122
  rules: o(() => {
123
- if (!t.type || t.type === "textarea") return null;
124
- let e = {
123
+ if (!e.type || e.type === "textarea") return null;
124
+ let t = {
125
125
  message: h,
126
126
  trigger: "blur"
127
127
  };
128
- if (t.type === "email") e.validator = d;
129
- else if (t.type === "idcard") e.validator = f;
130
- else if (t.type === "phone") e.validator = a;
128
+ if (e.type === "email") t.validator = d;
129
+ else if (e.type === "idcard") t.validator = f;
130
+ else if (e.type === "phone") t.validator = a;
131
131
  else return null;
132
- return [e];
132
+ return [t];
133
133
  }),
134
134
  predicate: g
135
135
  });
136
- return () => _({ vNodes: S.value ? t.modelValue : s(u, c(b.value, x.value, {
136
+ return () => _({ vNodes: S.value ? e.modelValue : s(u, c(b.value, x.value, {
137
137
  class: ["form-input", {
138
- "is-readonly": t.readonlyGrey && t.readonly && !t.picker,
139
- "el-input-cursor-pointer": t.picker && !y.value
138
+ "is-readonly": e.readonlyGrey && e.readonly && !e.picker,
139
+ "el-input-cursor-pointer": e.picker && !y.value
140
140
  }],
141
141
  modelValue: m.value,
142
142
  "onUpdate:modelValue": (e) => m.value = e,
143
143
  disabled: y.value,
144
144
  placeholder: v.value,
145
- readonly: t.readonly || t.picker,
146
- "prefix-icon": n({ icon: t.picker ? "el-icon-search" : t.prefixIcon }),
147
- "suffix-icon": n({ icon: t.suffixIcon })
145
+ readonly: e.readonly || e.picker,
146
+ "prefix-icon": n({ icon: e.picker ? "el-icon-search" : e.prefixIcon }),
147
+ "suffix-icon": n({ icon: e.suffixIcon })
148
148
  }), {
149
- prefix: i.prefix || t.prefix ? () => t.prefix : null,
150
- suffix: i.suffix || t.suffix ? () => t.suffix : null,
149
+ prefix: i.prefix || e.prefix ? () => e.prefix : null,
150
+ suffix: i.suffix || e.suffix ? () => e.suffix : null,
151
151
  "password-icon": i["password-icon"],
152
- prepend: i.prepend || t.prepend ? () => t.prepend : null,
153
- append: i.append || t.append ? () => t.append : null
152
+ prepend: i.prepend || e.prepend ? () => e.prepend : null,
153
+ append: i.append || e.append ? () => e.append : null
154
154
  }) });
155
155
  }
156
156
  };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./BHbMJZPp.mjs";
2
- import { n as t, t as n } from "./DwkOWXIR.mjs";
1
+ import { n as e } from "./BvKUeniN.mjs";
2
+ import { n as t, t as n } from "./C6u76g6o.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
5
5
  function s(e) {
@@ -1,7 +1,7 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n } from "./C6Dq9Dgb.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
- import { t as i } from "./DwkOWXIR.mjs";
4
+ import { t as i } from "./C6u76g6o.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
@@ -96,43 +96,43 @@ var v = /* @__PURE__ */ s({
96
96
  inheritAttrs: !1,
97
97
  props: { ...m },
98
98
  emits: {
99
- ...t,
99
+ ...e,
100
100
  "update:other": null
101
101
  },
102
- setup(t, { emit: n, slots: s, attrs: c }) {
103
- let m = u(t, "other"), { emitInput: h, render: v, disabled: y, listeners: b, inputProps: x } = e(t, {
102
+ setup(e, { emit: n, slots: s, attrs: c }) {
103
+ let m = u(e, "other"), { emitInput: h, render: v, disabled: y, listeners: b, inputProps: x } = t(e, {
104
104
  emit: n,
105
105
  slots: s,
106
106
  attrs: c,
107
107
  predicate: g,
108
108
  messagePrefix: "请选择",
109
109
  class: a(() => ["form-checkbox-group", {
110
- "form-checkbox-group-row": t.fillRow,
111
- "form-checkbox-group-row-break-word": t.fillRow,
112
- "form-checkbox-group-row-ellipsis": t.ellipsis
110
+ "form-checkbox-group-row": e.fillRow,
111
+ "form-checkbox-group-row-break-word": e.fillRow,
112
+ "form-checkbox-group-row-ellipsis": e.ellipsis
113
113
  }])
114
- }), S = (e) => {
115
- let n = e;
116
- t.sort && (n = e.sort()), t.stringMode || t.split ? h(n.join(",")) : h(n);
114
+ }), S = (t) => {
115
+ let n = t;
116
+ e.sort && (n = t.sort()), e.stringMode || e.split ? h(n.join(",")) : h(n);
117
117
  }, C = a(() => {
118
- if (t.stringMode || t.split) {
119
- var e;
120
- return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
118
+ if (e.stringMode || e.split) {
119
+ var t;
120
+ return Array.isArray(e.modelValue) ? e.modelValue.filter((e) => e) : ((t = e.modelValue) == null ? void 0 : t.split(e.delimiter).filter((e) => e)) ?? [];
121
121
  }
122
- return t.modelValue || [];
123
- }), w = a(() => t.classic ? "label" : t.labelProp), T = a(() => t.classic ? "value" : t.valueProp), { dictItems: E } = r(t), D = a(() => t.dictType ? E.value : t.gender ? [{
122
+ return e.modelValue || [];
123
+ }), w = a(() => e.classic ? "label" : e.labelProp), T = a(() => e.classic ? "value" : e.valueProp), { dictItems: E } = r(e), D = a(() => e.dictType ? E.value : e.gender ? [{
124
124
  [w.value]: "男",
125
125
  [T.value]: "男"
126
126
  }, {
127
127
  [w.value]: "女",
128
128
  [T.value]: "女"
129
- }] : t.confirm ? [{
129
+ }] : e.confirm ? [{
130
130
  [w.value]: "是",
131
131
  [T.value]: "是"
132
132
  }, {
133
133
  [w.value]: "否",
134
134
  [T.value]: "否"
135
- }] : t.options);
135
+ }] : e.options);
136
136
  return () => v({ vNodes: [o(p, l(b.value, x.value, {
137
137
  modelValue: C.value,
138
138
  disabled: y.value,
@@ -140,35 +140,35 @@ var v = /* @__PURE__ */ s({
140
140
  }), {
141
141
  ...s,
142
142
  default: s.default || (() => {
143
- var e;
144
- return (e = D.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" ? o(f, {
145
- key: e,
146
- value: e,
143
+ var t;
144
+ return (t = D.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" ? o(f, {
145
+ key: t,
146
+ value: t,
147
147
  disabled: r
148
148
  }, _(n) ? n : { default: () => [n] }) : o(d, {
149
- key: e,
150
- value: e,
149
+ key: t,
150
+ value: t,
151
151
  disabled: r
152
152
  }, _(n) ? n : { default: () => [n] }));
153
153
  })
154
- }), C.value.includes(t.otherVal) ? o(i, {
154
+ }), C.value.includes(e.otherVal) ? o(i, {
155
155
  "wrap-col": !1,
156
156
  class: "form-checkbox-group-other",
157
157
  "hide-label": !0,
158
158
  "label-width": "0",
159
- prop: t.otherProp,
159
+ prop: e.otherProp,
160
160
  disabled: y.value,
161
- required: !!t.otherProp,
162
- placeholder: t.otherPlaceholder,
163
- label: t.otherLabel,
164
- "show-message": !!t.otherLabel,
165
- style: t.otherLabel ? { width: t.otherWidth } : {
161
+ required: !!e.otherProp,
162
+ placeholder: e.otherPlaceholder,
163
+ label: e.otherLabel,
164
+ "show-message": !!e.otherLabel,
165
+ style: e.otherLabel ? { width: e.otherWidth } : {
166
166
  marginBottom: 0,
167
- width: t.otherWidth
167
+ width: e.otherWidth
168
168
  },
169
169
  modelValue: m.value,
170
170
  "onUpdate:modelValue": (e) => m.value = e,
171
- "max-length": t.otherMaxLength
171
+ "max-length": e.otherMaxLength
172
172
  }, null) : null] });
173
173
  }
174
174
  });
@@ -1,6 +1,6 @@
1
- import { n as e } from "./BHbMJZPp.mjs";
2
- import { n as t, t as n } from "./BNXbI4OG.mjs";
3
- import { t as r } from "./DwkOWXIR.mjs";
1
+ import { n as e } from "./BvKUeniN.mjs";
2
+ import { n as t, t as n } from "./C6Dq9Dgb.mjs";
3
+ import { t as r } from "./C6u76g6o.mjs";
4
4
  import { createVNode as i, isVNode as a, mergeProps as o, useModel as s } from "vue";
5
5
  //#region src/components/form/props/textarea.ts
6
6
  var c = {
@@ -1,17 +1,17 @@
1
1
  import { t as e } from "./DOZRzqlo.mjs";
2
2
  import { t } from "./7GmKqdbC.mjs";
3
3
  import { t as n } from "./CkOD-_VV.mjs";
4
- import { n as r } from "./BHbMJZPp.mjs";
5
- import { t as i } from "./CgN7m-1v.mjs";
6
- import { t as a } from "./DwkOWXIR.mjs";
7
- import { t as o } from "./BV-XUugQ.mjs";
8
- import { t as s } from "./Dytof5EW.mjs";
9
- import { t as c } from "./z5FJgzdc.mjs";
10
- import { t as l } from "./B6yWUT6z.mjs";
11
- import { t as u } from "./BjGlxyi6.mjs";
12
- import { t as d } from "./ByTyNsWf.mjs";
4
+ import { n as r } from "./BvKUeniN.mjs";
5
+ import { t as i } from "./Czz_49pC.mjs";
6
+ import { t as a } from "./C6u76g6o.mjs";
7
+ import { t as o } from "./CLO5X9Lb.mjs";
8
+ import { t as s } from "./Goee5Y-H.mjs";
9
+ import { t as c } from "./Dy_5vPdP.mjs";
10
+ import { t as l } from "./C7Mak2La.mjs";
11
+ import { t as u } from "./DWE67l1f.mjs";
12
+ import { t as d } from "./B3A-CnYr.mjs";
13
13
  import f from "../table-column-def/index.mjs";
14
- import { t as p } from "./DFFNxlqD.mjs";
14
+ import { t as p } from "./CNK4mfga.mjs";
15
15
  import { findTreeChildren as m, isFunction as h } from "@web-utils/core";
16
16
  import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
17
17
  import { formContextKey as M, formItemContextKey as N } from "element-plus";
@@ -1,6 +1,7 @@
1
1
  import { f as e } from "./DcTVYqeJ.mjs";
2
- import { o as t, r as n } from "./BHbMJZPp.mjs";
3
- import { n as r } from "./BNXbI4OG.mjs";
2
+ import { t } from "./AAZfNtly.mjs";
3
+ import { r as n } from "./BvKUeniN.mjs";
4
+ import { n as r } from "./C6Dq9Dgb.mjs";
4
5
  import { createVNode as i, mergeProps as a } from "vue";
5
6
  import { ElText as o } from "element-plus/es";
6
7
  //#region src/components/form/props/text.ts
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n, t as r } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n, t as r } from "./C6Dq9Dgb.mjs";
3
3
  import { useDictionary as i } from "../hook/useDictionary.mjs";
4
4
  import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
5
  import { computed as l, createVNode as u, mergeProps as d } from "vue";
@@ -149,40 +149,40 @@ var m = {
149
149
  }, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
150
150
  name: "FormCascader",
151
151
  props: { ...m },
152
- emits: { ...t },
153
- setup(t, { emit: n, slots: r, attrs: m }) {
154
- let { emitInput: h, render: _, placeholder: v, disabled: y, listeners: b, inputProps: x } = e(t, {
152
+ emits: { ...e },
153
+ setup(e, { emit: n, slots: r, attrs: m }) {
154
+ let { emitInput: h, render: _, placeholder: v, disabled: y, listeners: b, inputProps: x } = t(e, {
155
155
  emit: n,
156
156
  slots: r,
157
157
  attrs: m,
158
158
  predicate: g
159
- }), { dictItems: S } = i(t), C = l(() => {
160
- if (t.dictType) return S.value;
161
- if (t.options) {
162
- let e = f(t.options);
163
- return t.last && c(e), e;
159
+ }), { dictItems: S } = i(e), C = l(() => {
160
+ if (e.dictType) return S.value;
161
+ if (e.options) {
162
+ let t = f(e.options);
163
+ return e.last && c(t), t;
164
164
  } else return [];
165
165
  }), w = l(() => {
166
- if (t.join) return o(t.modelValue) ? t.modelValue : s(t.modelValue) ? t.modelValue.split(t.separator) : [];
167
- if (t.last) {
168
- let [e] = a(C.value, (e) => e[t.valueKey] === t.modelValue), n = [];
169
- for (; e;) n.push(e[t.valueKey]), e = e.parent;
166
+ if (e.join) return o(e.modelValue) ? e.modelValue : s(e.modelValue) ? e.modelValue.split(e.separator) : [];
167
+ if (e.last) {
168
+ let [t] = a(C.value, (t) => t[e.valueKey] === e.modelValue), n = [];
169
+ for (; t;) n.push(t[e.valueKey]), t = t.parent;
170
170
  return n.reverse();
171
171
  }
172
- return t.modelValue;
173
- }), T = (e) => {
174
- t.join && o(e) ? h(e.join(t.separator)) : h(t.last ? e[e.length - 1] : e);
172
+ return e.modelValue;
173
+ }), T = (t) => {
174
+ e.join && o(t) ? h(t.join(e.separator)) : h(e.last ? t[t.length - 1] : t);
175
175
  };
176
176
  return () => _({ vNodes: u(p, d(b.value, x.value, {
177
177
  style: "width: 100%",
178
- class: { "is-readonly": t.readonly },
178
+ class: { "is-readonly": e.readonly },
179
179
  "model-value": w.value,
180
180
  options: C.value,
181
181
  props: {
182
- checkStrictly: t.checkStrictly,
183
- label: t.labelKey,
184
- value: t.valueKey,
185
- emitPath: t.emitPath,
182
+ checkStrictly: e.checkStrictly,
183
+ label: e.labelKey,
184
+ value: e.valueKey,
185
+ emitPath: e.emitPath,
186
186
  expandTrigger: "hover"
187
187
  },
188
188
  disabled: y.value,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n } from "./C6Dq9Dgb.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElRate as o } from "element-plus/es";
5
5
  //#region src/components/form/props/rate.ts
@@ -68,9 +68,9 @@ var s = {
68
68
  name: "FormRate",
69
69
  inheritAttrs: !1,
70
70
  props: { ...s },
71
- emits: { ...t },
72
- setup(t, { emit: n, slots: s, attrs: c }) {
73
- let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
71
+ emits: { ...e },
72
+ setup(e, { emit: n, slots: s, attrs: c }) {
73
+ let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
74
74
  emit: n,
75
75
  slots: s,
76
76
  attrs: c,
@@ -1,7 +1,7 @@
1
1
  import { a as e, f as t } from "./DcTVYqeJ.mjs";
2
2
  import { t as n } from "./DOZRzqlo.mjs";
3
3
  import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
4
- import { n as i, t as a } from "./XoImEoke.mjs";
4
+ import { n as i, t as a } from "./xq_LR6R2.mjs";
5
5
  import { createVNode as o, inject as s, mergeProps as c } from "vue";
6
6
  import { ElTableColumn as l } from "element-plus/es";
7
7
  //#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
@@ -150,7 +150,11 @@ var _ = {
150
150
  });
151
151
  return d(t, I), b(I), () => s(h, l(C.value, S.value, x, {
152
152
  ref: "form",
153
- class: "form-holder",
153
+ class: [
154
+ "form-holder",
155
+ "clear-fix",
156
+ { "red-form": E }
157
+ ],
154
158
  "show-message": D.value
155
159
  }), { default: () => {
156
160
  if (E.value) {
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n } from "./C6Dq9Dgb.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";
@@ -222,9 +222,9 @@ var m = {
222
222
  name: "FormSelect",
223
223
  inheritAttrs: !1,
224
224
  props: { ...m },
225
- emits: { ...t },
226
- setup(t, { emit: n, slots: m, attrs: h }) {
227
- let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = e(t, {
225
+ emits: { ...e },
226
+ setup(e, { emit: n, slots: m, attrs: h }) {
227
+ let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = t(e, {
228
228
  emit: n,
229
229
  slots: m,
230
230
  attrs: h,
@@ -232,70 +232,70 @@ var m = {
232
232
  messagePrefix: "请选择"
233
233
  }), C = u(null), w = u(!1);
234
234
  d(() => {
235
- if (t.multiple && t.multipleStringMode) {
236
- var e;
237
- C.value = (e = t.modelValue) == null ? void 0 : e.split(",").filter((e) => e);
238
- } else C.value = t.modelValue;
235
+ if (e.multiple && e.multipleStringMode) {
236
+ var t;
237
+ C.value = (t = e.modelValue) == null ? void 0 : t.split(",").filter((e) => e);
238
+ } else C.value = e.modelValue;
239
239
  });
240
- let T = (e) => {
241
- if (t.multiple && t.multipleStringMode ? _(e.join(t.multipleStringSeparator)) : _(e), t.emitLabel) {
242
- let r = O.value.find((n) => n[t.props.value] === e), i = r == null ? void 0 : r[t.props.label];
243
- i !== t.optionLabel && n("update:optionLabel", i);
240
+ let T = (t) => {
241
+ if (e.multiple && e.multipleStringMode ? _(t.join(e.multipleStringSeparator)) : _(t), e.emitLabel) {
242
+ let r = O.value.find((n) => n[e.props.value] === t), i = r == null ? void 0 : r[e.props.label];
243
+ i !== e.optionLabel && n("update:optionLabel", i);
244
244
  }
245
- }, { dictItems: E } = r(t), D = u([]), O = s(() => {
246
- if (t.dictType) return E.value;
247
- if (t.remote) return D.value;
248
- if (t.gender) return [{
249
- [t.props.label]: "男",
250
- [t.props.value]: t.chinese ? "男" : t.typing ? 1 : "1"
245
+ }, { dictItems: E } = r(e), D = u([]), O = s(() => {
246
+ if (e.dictType) return E.value;
247
+ if (e.remote) return D.value;
248
+ if (e.gender) return [{
249
+ [e.props.label]: "男",
250
+ [e.props.value]: e.chinese ? "男" : e.typing ? 1 : "1"
251
251
  }, {
252
- [t.props.label]: "女",
253
- [t.props.value]: t.chinese ? "女" : t.typing ? 2 : "2"
252
+ [e.props.label]: "女",
253
+ [e.props.value]: e.chinese ? "女" : e.typing ? 2 : "2"
254
254
  }];
255
- if (t.confirm) return [{
256
- [t.props.label]: "是",
257
- [t.props.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
255
+ if (e.confirm) return [{
256
+ [e.props.label]: "是",
257
+ [e.props.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
258
258
  }, {
259
- [t.props.label]: "否",
260
- [t.props.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
259
+ [e.props.label]: "否",
260
+ [e.props.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
261
261
  }];
262
- if (t.all) return [{
263
- [t.props.value]: "",
264
- [t.props.label]: "全部"
265
- }, ...t.options];
266
- if (t.start && t.end) return Array(t.end - t.start + 1).fill(1).map((e, n) => ({
267
- [t.props.label]: t.start + n,
268
- [t.props.value]: t.start + n
262
+ if (e.all) return [{
263
+ [e.props.value]: "",
264
+ [e.props.label]: "全部"
265
+ }, ...e.options];
266
+ if (e.start && e.end) return Array(e.end - e.start + 1).fill(1).map((t, n) => ({
267
+ [e.props.label]: e.start + n,
268
+ [e.props.value]: e.start + n
269
269
  }));
270
- if (t.year) {
271
- let e = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
272
- i(t.year) && (r = t.year);
270
+ if (e.year) {
271
+ let t = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
272
+ i(e.year) && (r = e.year);
273
273
  for (let i = -r; i <= r; i++) {
274
- let r = e + i;
274
+ let r = t + i;
275
275
  n.push({
276
- [t.props.label]: r,
277
- [t.props.value]: r
276
+ [e.props.label]: r,
277
+ [e.props.value]: r
278
278
  });
279
279
  }
280
280
  return n;
281
281
  }
282
- return t.options ? t.options.map((e) => (e[t.props.value] = e[t.props.value] ?? e[t.props.label], e)) : [];
283
- }), k = async (e) => {
282
+ return e.options ? e.options.map((t) => (t[e.props.value] = t[e.props.value] ?? t[e.props.label], t)) : [];
283
+ }), k = async (t) => {
284
284
  try {
285
285
  var n;
286
286
  w.value = !0;
287
- let r = await t.remoteMethod(e, t.prop);
288
- ((n = r.data.data) == null ? void 0 : n.length) >= 0 ? o(r.data.data[0]) ? D.value = r.data.data.map((e) => ({
289
- [t.props.value]: e,
290
- [t.props.label]: e
287
+ let r = await e.remoteMethod(t, e.prop);
288
+ ((n = r.data.data) == null ? void 0 : n.length) >= 0 ? o(r.data.data[0]) ? D.value = r.data.data.map((t) => ({
289
+ [e.props.value]: t,
290
+ [e.props.label]: t
291
291
  })) : a(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
292
292
  } catch {}
293
293
  w.value = !1;
294
294
  };
295
295
  return d(() => {
296
- t.remote && k();
296
+ e.remote && k();
297
297
  }), () => v({ vNodes: c(p, l(x.value, S.value, {
298
- offset: t.dropDownOffset,
298
+ offset: e.dropDownOffset,
299
299
  "model-value": C.value,
300
300
  "onUpdate:modelValue": T,
301
301
  disabled: b.value,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n } from "./C6Dq9Dgb.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
@@ -74,9 +74,9 @@ var s = {
74
74
  name: "FormSlider",
75
75
  inheritAttrs: !1,
76
76
  props: { ...s },
77
- emits: { ...t },
78
- setup(t, { emit: n, slots: s, attrs: c }) {
79
- let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
77
+ emits: { ...e },
78
+ setup(e, { emit: n, slots: s, attrs: c }) {
79
+ let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
80
80
  emit: n,
81
81
  slots: s,
82
82
  predicate: l,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n, t as r } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n, t as r } from "./C6Dq9Dgb.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
@@ -69,9 +69,9 @@ var s = {
69
69
  name: "FormTimeSelect",
70
70
  inheritAttrs: !1,
71
71
  props: { ...s },
72
- emits: { ...t },
73
- setup(t, { emit: n, slots: r, attrs: s }) {
74
- let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = e(t, {
72
+ emits: { ...e },
73
+ setup(e, { emit: n, slots: r, attrs: s }) {
74
+ let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
75
75
  emit: n,
76
76
  slots: r,
77
77
  attrs: s,
@@ -79,7 +79,7 @@ var s = {
79
79
  });
80
80
  return () => u({ vNodes: i(o, a(p.value, m.value, {
81
81
  style: "width: 100%",
82
- modelValue: t.modelValue,
82
+ modelValue: e.modelValue,
83
83
  disabled: f.value,
84
84
  "onUpdate:modelValue": c,
85
85
  placeholder: d.value
@@ -1,5 +1,5 @@
1
- import { n as e } from "./BHbMJZPp.mjs";
2
- import { n as t, t as n } from "./DwkOWXIR.mjs";
1
+ import { n as e } from "./BvKUeniN.mjs";
2
+ import { n as t, t as n } from "./C6u76g6o.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) {
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BHbMJZPp.mjs";
2
- import { n, t as r } from "./BNXbI4OG.mjs";
1
+ import { n as e, o as t } from "./BvKUeniN.mjs";
2
+ import { n, t as r } from "./C6Dq9Dgb.mjs";
3
3
  import { isString as i } from "@web-utils/core";
4
4
  import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
5
  import { ElInputNumber as c } from "element-plus/es";
@@ -75,14 +75,14 @@ var l = {
75
75
  name: "FormInputNumber",
76
76
  inheritAttrs: !1,
77
77
  props: { ...l },
78
- emits: { ...t },
79
- setup(t, { emit: n, slots: r, attrs: l }) {
80
- let { emitInput: u, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
78
+ emits: { ...e },
79
+ setup(e, { emit: n, slots: r, attrs: l }) {
80
+ let { emitInput: u, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = t(e, {
81
81
  emit: n,
82
82
  slots: r,
83
83
  attrs: l,
84
84
  predicate: d
85
- }), _ = a(() => i(t.modelValue) ? Number(t.modelValue) : t.modelValue);
85
+ }), _ = a(() => i(e.modelValue) ? Number(e.modelValue) : e.modelValue);
86
86
  return () => f({ vNodes: o(c, s(h.value, g.value, {
87
87
  style: "width: 100%",
88
88
  modelValue: _.value,
@@ -90,8 +90,8 @@ var l = {
90
90
  "onUpdate:modelValue": u,
91
91
  placeholder: p.value
92
92
  }), {
93
- prefix: r.prefix || t.prefix ? () => t.prefix : null,
94
- suffix: r.suffix || t.suffix ? () => t.suffix : t.append,
93
+ prefix: r.prefix || e.prefix ? () => e.prefix : null,
94
+ suffix: r.suffix || e.suffix ? () => e.suffix : e.append,
95
95
  "decrease-icon": r["decrease-icon"],
96
96
  "increase-icon": r["increase-icon"]
97
97
  }) });