@lingshugroup/web-plus 1.3.3 → 1.4.0

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 (31) hide show
  1. package/lib/index.css +1 -1
  2. package/lib/index.css.br +0 -0
  3. package/lib/index.css.gz +0 -0
  4. package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
  5. package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
  6. package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
  7. package/lib/packages/ls-components/components/form/Form.vue/index2.js +29 -29
  8. package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
  9. package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
  10. package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
  11. package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
  12. package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
  13. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +517 -477
  14. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
  15. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
  16. package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
  17. package/lib/packages/ls-components/components/form/types/index.js +8 -0
  18. package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
  19. package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
  20. package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
  21. package/lib/packages/ls-components/components/list/List.vue/index.js +2 -2
  22. package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
  23. package/lib/packages/ls-components/components/list/List.vue/index2.js +120 -107
  24. package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
  25. package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
  26. package/lib/types/components/form/FormItem.vue.d.ts +44 -0
  27. package/lib/types/components/form/index.d.ts +50 -0
  28. package/lib/types/components/form/types.d.ts +2 -0
  29. package/lib/types/components/list/List.vue.d.ts +2 -0
  30. package/lib/types/components/list/index.d.ts +6 -0
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- var Ve = Object.defineProperty;
2
- var g = (K, Q) => Ve(K, "name", { value: Q, configurable: !0 });
1
+ var Ae = Object.defineProperty;
2
+ var E = (K, Q) => Ae(K, "name", { value: Q, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
@@ -24,95 +24,95 @@ var g = (K, Q) => Ve(K, "name", { value: Q, configurable: !0 });
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import { defineComponent as ie, mergeModels as se, useModel as ge, ref as j, computed as ue, watch as z, renderSlot as b, openBlock as s, createBlock as f, normalizeClass as H, createSlots as D, withCtx as m, createElementBlock as V, Fragment as w, toDisplayString as C, unref as h, createTextVNode as P, createCommentVNode as B, mergeProps as $, toHandlers as k, renderList as J, createVNode as I, createElementVNode as ne } from "vue";
28
- import { isEmpty as v } from "../../_utils/utils/index.js";
29
- import { lsFormItemProps as he } from "../types/index.js";
30
- import Z from "../../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min/index.js";
31
- import E from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
32
- import Ee from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual/index.js";
33
- import de from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
34
- import { ElIcon as Re } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/icon/index/index.js";
35
- import { ElTooltip as Ce } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
36
- import { ElText as we } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/text/index/index.js";
37
- import { ElInput as Pe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input/index/index.js";
38
- import { ElInputNumber as Ue } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input-number/index/index.js";
39
- import { ElRadio as Ae, ElRadioButton as Se, ElRadioGroup as Fe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.js";
40
- import { ElCheckbox as Me, ElCheckboxGroup as Ne } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/checkbox/index/index.js";
41
- import { ElOption as Te, ElSelect as Le } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/select/index/index.js";
42
- import { ElDatePicker as Oe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/date-picker/index/index.js";
43
- import { ElTimePicker as Be } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/time-picker/index/index.js";
44
- import { ElTimeSelect as Ie } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/time-select/index/index.js";
45
- import { ElCascader as je } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/cascader/index/index.js";
46
- import { ElSwitch as De } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/switch/index/index.js";
47
- import { ElFormItem as Ke } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
48
- const Ge = { class: "ls-form-item-label" }, qe = {
27
+ import { defineComponent as he, mergeModels as ye, useModel as Fe, ref as j, computed as $e, watch as z, renderSlot as $, openBlock as r, createBlock as y, normalizeClass as H, createSlots as D, withCtx as v, createElementBlock as f, Fragment as P, toDisplayString as k, unref as R, createTextVNode as U, createCommentVNode as w, mergeProps as V, toHandlers as h, renderList as J, createVNode as I, createElementVNode as ke } from "vue";
28
+ import { isEmpty as b } from "../../_utils/utils/index.js";
29
+ import { lsFormItemProps as Me } from "../types/index.js";
30
+ import c from "../../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min/index.js";
31
+ import C from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
32
+ import Ne from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual/index.js";
33
+ import Ve from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
34
+ import { ElIcon as Te } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/icon/index/index.js";
35
+ import { ElTooltip as Le } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
36
+ import { ElText as Oe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/text/index/index.js";
37
+ import { ElInput as Be } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input/index/index.js";
38
+ import { ElInputNumber as Ie } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input-number/index/index.js";
39
+ import { ElRadio as je, ElRadioButton as De, ElRadioGroup as Ke } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.js";
40
+ import { ElCheckbox as Ge, ElCheckboxGroup as qe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/checkbox/index/index.js";
41
+ import { ElOption as ze, ElSelect as He } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/select/index/index.js";
42
+ import { ElDatePicker as Je } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/date-picker/index/index.js";
43
+ import { ElTimePicker as Qe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/time-picker/index/index.js";
44
+ import { ElTimeSelect as We } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/time-select/index/index.js";
45
+ import { ElCascader as Xe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/cascader/index/index.js";
46
+ import { ElSwitch as Ye } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/switch/index/index.js";
47
+ import { ElFormItem as Ze } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
48
+ const ce = { class: "ls-form-item-label" }, _e = {
49
49
  key: 3,
50
50
  class: "ls-read-text-container"
51
- }, ze = { key: 0 }, He = {
51
+ }, xe = { key: 0 }, el = { key: 1 }, ll = { key: 1 }, al = { key: 1 }, tl = { key: 1 }, ol = {
52
52
  key: 14,
53
53
  class: "ls-input-range"
54
- }, Je = {
54
+ }, rl = { key: 1 }, sl = { key: 1 }, ul = { key: 1 }, il = { key: 1 }, dl = {
55
55
  key: 15,
56
56
  class: "ls-input-range"
57
- }, Qe = ie({
57
+ }, nl = { key: 1 }, pl = { key: 1 }, ml = he({
58
58
  name: "LSFormItem"
59
- }), Dl = /* @__PURE__ */ ie({
60
- ...Qe,
61
- props: /* @__PURE__ */ se(he, {
59
+ }), ra = /* @__PURE__ */ he({
60
+ ...ml,
61
+ props: /* @__PURE__ */ ye(Me, {
62
62
  modelValue: {},
63
63
  modelModifiers: {}
64
64
  }),
65
- emits: /* @__PURE__ */ se(["update:value", "onChange"], ["update:modelValue"]),
66
- setup(K, { expose: Q, emit: pe }) {
67
- const l = K, c = pe, t = ge(K, "modelValue"), x = j(), me = ue(() => {
68
- var a;
65
+ emits: /* @__PURE__ */ ye(["update:value", "onChange"], ["update:modelValue"]),
66
+ setup(K, { expose: Q, emit: ge }) {
67
+ const l = K, _ = ge, o = Fe(K, "modelValue"), W = j(), we = $e(() => {
68
+ var t;
69
69
  let e = {};
70
70
  return l.type === "multipleCascader" && (e = {
71
- ...(a = l.attrs) == null ? void 0 : a.props
71
+ ...(t = l.attrs) == null ? void 0 : t.props
72
72
  }), { ...e, multiple: !0 };
73
73
  }), G = j(!1), q = j(!1);
74
- function ve(e) {
75
- q.value = !1, e && l.options && l.options.length ? t.value = l.options.map((a) => a.value) : t.value = [];
74
+ function Ee(e) {
75
+ q.value = !1, e && l.options && l.options.length ? o.value = l.options.map((t) => t.value) : o.value = [];
76
76
  }
77
- g(ve, "handleSelectCheckAll");
78
- const U = j(), A = j();
77
+ E(Ee, "handleSelectCheckAll");
78
+ const A = j(), F = j();
79
79
  z(
80
80
  () => l.value,
81
81
  (e) => {
82
- l.isValue && (t.value = e);
82
+ l.isValue && (o.value = e);
83
83
  },
84
84
  {
85
85
  immediate: !0,
86
86
  deep: !0
87
87
  }
88
88
  ), z(
89
- () => t,
89
+ () => o,
90
90
  (e) => {
91
- ["inputRange", "inputNumberRange"].includes(l.type || "") && (U.value = E(e.value, (l == null ? void 0 : l.rangeProps[0]) || "start"), A.value = E(e.value, (l == null ? void 0 : l.rangeProps[1]) || "end")), v(l.prop) || c("update:value", l.prop, e);
91
+ ["inputRange", "inputNumberRange"].includes(l.type || "") && (A.value = C(e.value, (l == null ? void 0 : l.rangeProps[0]) || "start"), F.value = C(e.value, (l == null ? void 0 : l.rangeProps[1]) || "end")), b(l.prop) || _("update:value", l.prop, e), l.manualValidate && !["slot"].includes(l.type || "") && W.value.validate();
92
92
  },
93
93
  {
94
94
  immediate: !0,
95
95
  deep: !0
96
96
  }
97
97
  ), z(
98
- [() => t, () => l.type, () => l.attrs, () => l.options],
99
- ([e, a, i, r]) => {
100
- if (a === "select" && r && r.length && !v(r)) {
101
- const n = r.map((p) => p.value);
102
- if (i && i.multiple) {
103
- if (!v(e.value) && Array.isArray(e.value)) {
104
- const p = [];
105
- e.value.forEach((y) => {
106
- n.includes(y) && p.push(y);
107
- }), Ee(p, e.value) || (t.value = p);
98
+ [() => o, () => l.type, () => l.attrs, () => l.options],
99
+ ([e, t, m, s]) => {
100
+ if (t === "select" && s && s.length && !b(s)) {
101
+ const d = s.map((n) => n.value);
102
+ if (m && m.multiple) {
103
+ if (!b(e.value) && Array.isArray(e.value)) {
104
+ const n = [];
105
+ e.value.forEach((g) => {
106
+ d.includes(g) && n.push(g);
107
+ }), Ne(n, e.value) || (o.value = n);
108
108
  }
109
- if (v(e.value))
109
+ if (b(e.value))
110
110
  G.value = !1, q.value = !1;
111
111
  else {
112
- const p = e.value.length === r.length;
113
- G.value = p, q.value = !p;
112
+ const n = e.value.length === s.length;
113
+ G.value = n, q.value = !n;
114
114
  }
115
- } else i && i.filterable && i["allow-create"] ? t.value = e.value : !v(n) && !v(e.value) && (n.includes(e.value) || (t.value = ""));
115
+ } else m && m.filterable && m["allow-create"] ? o.value = e.value : !b(d) && !b(e.value) && (d.includes(e.value) || (o.value = ""));
116
116
  }
117
117
  },
118
118
  {
@@ -120,523 +120,563 @@ const Ge = { class: "ls-form-item-label" }, qe = {
120
120
  deep: !0
121
121
  }
122
122
  ), z(
123
- [() => U.value, () => A.value],
124
- ([e, a]) => {
125
- let i = {};
126
- i = de(i, (l == null ? void 0 : l.rangeProps[0]) || "start", e), i = de(i, (l == null ? void 0 : l.rangeProps[1]) || "end", a), t.value = i;
123
+ [() => A.value, () => F.value],
124
+ ([e, t]) => {
125
+ let m = {};
126
+ m = Ve(m, (l == null ? void 0 : l.rangeProps[0]) || "start", e), m = Ve(m, (l == null ? void 0 : l.rangeProps[1]) || "end", t), o.value = m;
127
127
  },
128
128
  {
129
129
  deep: !0
130
130
  }
131
131
  );
132
- function W(e, a, i) {
133
- var n;
134
- let r = l == null ? void 0 : l.labelEmpty;
135
- return a && !v(e) && (i && Array.isArray(e) ? r = e.map((p) => {
136
- var y;
137
- return (y = a.find((R) => R.value === p)) == null ? void 0 : y.label;
138
- }).join(",") : r = (n = a.find((p) => p.value === e)) == null ? void 0 : n.label), r;
132
+ function X(e, t, m) {
133
+ var d;
134
+ let s = l == null ? void 0 : l.labelEmpty;
135
+ return t && !b(e) && (m && Array.isArray(e) ? s = e.map((n) => {
136
+ var g;
137
+ return (g = t.find((S) => S.value === n)) == null ? void 0 : g.label;
138
+ }).join(",") : s = (d = t.find((n) => n.value === e)) == null ? void 0 : d.label), s;
139
139
  }
140
- g(W, "getOptionsLabel");
141
- function _(e, a, i = "") {
142
- var p, y, R, F;
143
- let r = i, n = !1;
144
- if (!v(e) && !v(a)) {
145
- let M = !0;
146
- l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (M = !1);
147
- const L = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", N = ((F = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : F.label) || "label";
148
- for (const d of a) {
149
- if (d[L] === e)
150
- return M ? r = `${r ? `${r}/` : ""}${d == null ? void 0 : d[N]}` : r = d == null ? void 0 : d[N], {
151
- labelText: r,
140
+ E(X, "getOptionsLabel");
141
+ function x(e, t, m = "") {
142
+ var n, g, S, N;
143
+ let s = m, d = !1;
144
+ if (!b(e) && !b(t)) {
145
+ let T = !0;
146
+ l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (T = !1);
147
+ const O = ((g = (n = l.attrs) == null ? void 0 : n.props) == null ? void 0 : g.value) || "value", L = ((N = (S = l.attrs) == null ? void 0 : S.props) == null ? void 0 : N.label) || "label";
148
+ for (const p of t) {
149
+ if (p[O] === e)
150
+ return T ? s = `${s ? `${s}/` : ""}${p == null ? void 0 : p[L]}` : s = p == null ? void 0 : p[L], {
151
+ labelText: s,
152
152
  found: !0
153
153
  };
154
- if (!v(d == null ? void 0 : d.children) && !n) {
155
- const O = _(e, d == null ? void 0 : d.children, r);
156
- if (r = O.labelText, n = O.found, n)
154
+ if (!b(p == null ? void 0 : p.children) && !d) {
155
+ const B = x(e, p == null ? void 0 : p.children, s);
156
+ if (s = B.labelText, d = B.found, d)
157
157
  return {
158
- labelText: r,
159
- found: n
158
+ labelText: s,
159
+ found: d
160
160
  };
161
161
  }
162
162
  }
163
163
  }
164
164
  return {
165
- labelText: r,
166
- found: n
165
+ labelText: s,
166
+ found: d
167
167
  };
168
168
  }
169
- g(_, "getCascaderOptionLabel");
170
- function ee(e, a, i = "", r = 0) {
171
- var p, y, R, F;
172
- let n = i;
173
- if (!v(e) && !v(a)) {
174
- let M = !0;
175
- l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (M = !1);
176
- const L = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", N = ((F = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : F.label) || "label", d = a.find((O) => O[L] === e[r]);
177
- v(d) || (M ? n = `${n ? `${n}/` : ""}${d == null ? void 0 : d[N]}` : n = d == null ? void 0 : d[N], r < e.length - 1 && !v(d == null ? void 0 : d.children) && (n = ee(e, d == null ? void 0 : d.children, n, r + 1)));
169
+ E(x, "getCascaderOptionLabel");
170
+ function ee(e, t, m = "", s = 0) {
171
+ var n, g, S, N;
172
+ let d = m;
173
+ if (!b(e) && !b(t)) {
174
+ let T = !0;
175
+ l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (T = !1);
176
+ const O = ((g = (n = l.attrs) == null ? void 0 : n.props) == null ? void 0 : g.value) || "value", L = ((N = (S = l.attrs) == null ? void 0 : S.props) == null ? void 0 : N.label) || "label", p = t.find((B) => B[O] === e[s]);
177
+ b(p) || (T ? d = `${d ? `${d}/` : ""}${p == null ? void 0 : p[L]}` : d = p == null ? void 0 : p[L], s < e.length - 1 && !b(p == null ? void 0 : p.children) && (d = ee(e, p == null ? void 0 : p.children, d, s + 1)));
178
178
  }
179
- return n;
179
+ return d;
180
180
  }
181
- g(ee, "getCascaderOptionLabelLevelMatch");
182
- function le(e, a, i = "") {
183
- let r = i;
184
- return !v(e) && !v(a) && (l != null && l.levelMatch ? r = ee(e, a, r) : e.forEach((n) => {
185
- r = _(n, a, r).labelText;
186
- })), r;
181
+ E(ee, "getCascaderOptionLabelLevelMatch");
182
+ function le(e, t, m = "") {
183
+ let s = m;
184
+ return !b(e) && !b(t) && (l != null && l.levelMatch ? s = ee(e, t, s) : e.forEach((d) => {
185
+ s = x(d, t, s).labelText;
186
+ })), s;
187
187
  }
188
- g(le, "buildCascaderPathLabels");
189
- function ae(e, a, i) {
190
- let r = l == null ? void 0 : l.labelEmpty;
191
- if (a && !v(e)) {
192
- const n = Array.isArray(e) ? e : [e];
193
- i ? (r = "", n.forEach((p) => {
194
- const y = Array.isArray(p) ? p : [p];
195
- r = `${r ? `${r},` : ""}${le(y, a)}`;
196
- }), v(r) && (r = l == null ? void 0 : l.labelEmpty)) : r = le(n, a);
188
+ E(le, "buildCascaderPathLabels");
189
+ function ae(e, t, m) {
190
+ let s = l == null ? void 0 : l.labelEmpty;
191
+ if (t && !b(e)) {
192
+ const d = Array.isArray(e) ? e : [e];
193
+ m ? (s = "", d.forEach((n) => {
194
+ const g = Array.isArray(n) ? n : [n];
195
+ s = `${s ? `${s},` : ""}${le(g, t)}`;
196
+ }), b(s) && (s = l == null ? void 0 : l.labelEmpty)) : s = le(d, t);
197
197
  }
198
- return r;
198
+ return s;
199
199
  }
200
- g(ae, "getCascaderVal");
201
- function fe(e) {
202
- return v(e) && !Z(e).isValid() ? l == null ? void 0 : l.labelEmpty : Array.isArray(e) ? e.map((a) => l.dateFormat ? Z(a).format(l.dateFormat) : a).join(` ${l.rangeSeparator} `) : l.dateFormat ? Z(e).format(l.dateFormat) : e;
200
+ E(ae, "getCascaderVal");
201
+ function Re(e) {
202
+ return b(e) && !c(e).isValid() ? l == null ? void 0 : l.labelEmpty : Array.isArray(e) ? e.map((t) => l.dateFormat ? c(t).format(l.dateFormat) : t).join(` ${l.rangeSeparator} `) : l.dateFormat ? c(e).format(l.dateFormat) : e;
203
203
  }
204
- g(fe, "getDateValue");
205
- function X(e) {
206
- var i, r, n;
207
- const a = t.value;
204
+ E(Re, "getDateValue");
205
+ function Y(e) {
206
+ var m, s, d;
207
+ const t = o.value;
208
208
  if (l != null && l.formatReadValue)
209
- return l.formatReadValue(a);
209
+ return l.formatReadValue(t);
210
210
  switch (e) {
211
211
  case "switch":
212
- return a ? "是" : "否";
212
+ return t ? "是" : "否";
213
213
  case "date":
214
214
  case "datetimerange":
215
- return fe(a);
215
+ return Re(t);
216
216
  case "radio":
217
- return W(a, l.options);
217
+ return X(t, l.options);
218
218
  case "checkbox":
219
- return W(a, l.options, !0);
219
+ return X(t, l.options, !0);
220
220
  case "select":
221
- return W(a, l.options, (i = l.attrs) == null ? void 0 : i.multiple);
221
+ return X(t, l.options, (m = l.attrs) == null ? void 0 : m.multiple);
222
222
  case "cascader":
223
- return ae(a, l.options, ((n = (r = l.attrs) == null ? void 0 : r.props) == null ? void 0 : n.multiple) || !1);
223
+ return ae(t, l.options, ((d = (s = l.attrs) == null ? void 0 : s.props) == null ? void 0 : d.multiple) || !1);
224
224
  case "multipleCascader":
225
- return ae(a, l.options, !0);
225
+ return ae(t, l.options, !0);
226
226
  case "inputRange":
227
227
  case "inputNumberRange":
228
- return `${U.value || (l == null ? void 0 : l.labelEmpty)} ${l.rangeSeparator} ${A.value || (l == null ? void 0 : l.labelEmpty)}`;
228
+ return `${A.value || (l == null ? void 0 : l.labelEmpty)} ${l.rangeSeparator} ${F.value || (l == null ? void 0 : l.labelEmpty)}`;
229
229
  default:
230
- return v(a) ? l == null ? void 0 : l.labelEmpty : a;
230
+ return b(t) ? l == null ? void 0 : l.labelEmpty : t;
231
231
  }
232
232
  }
233
- g(X, "readValue");
234
- function S(e, a, i) {
235
- c("onChange", e, a, i);
233
+ E(Y, "readValue");
234
+ function M(e) {
235
+ _("onChange", e, l.prop, l.index);
236
236
  }
237
- g(S, "onChange");
238
- function Y(e) {
239
- t.value = e;
237
+ E(M, "onChange");
238
+ function Z(e) {
239
+ o.value = e;
240
240
  }
241
- g(Y, "updateModelValue");
242
- const u = ue(() => l.slotKey || l.prop);
241
+ E(Z, "updateModelValue");
242
+ const u = $e(() => l.slotKey || l.prop);
243
243
  return Q({
244
- FormItemRef: x
245
- }), (e, a) => {
246
- const i = Re, r = Ce, n = we, p = Pe, y = Ue, R = Ae, F = Se, M = Fe, L = Me, N = Ne, d = Te, O = Le, oe = Oe, be = Be, ye = Ie, te = je, $e = De, ke = Ke;
247
- return e.type === "slot" ? b(e.$slots, u.value, {
244
+ FormItemRef: W
245
+ }), (e, t) => {
246
+ const m = Te, s = Le, d = Oe, n = Be, g = Ie, S = je, N = De, T = Ke, O = Ge, L = qe, p = ze, B = He, te = Je, Ce = Qe, Se = We, oe = Xe, Pe = Ye, Ue = Ze;
247
+ return e.type === "slot" ? $(e.$slots, u.value, {
248
248
  key: 0,
249
249
  slotRow: { ...l },
250
- value: t.value,
251
- updateModelValue: Y
252
- }, void 0, !0) : (s(), f(ke, {
250
+ value: o.value,
251
+ updateModelValue: Z
252
+ }, void 0, !0) : (r(), y(Ue, {
253
253
  key: 1,
254
254
  ref_key: "FormItemRef",
255
- ref: x,
255
+ ref: W,
256
256
  label: e.colon ? `${e.label}:` : e.label,
257
257
  prop: e.prop,
258
258
  rules: e.rules,
259
259
  class: H(e.className)
260
260
  }, D({
261
- default: m(() => [
262
- b(e.$slots, `${u.value}-prepend`, {
263
- slotRow: { props: l }
264
- }, void 0, !0),
265
- e.read ? (s(), V(w, { key: 0 }, [
266
- e.type === "itemSlot" && e.$slots[`${u.value}-slot`] ? b(e.$slots, `${u.value}-slot`, {
267
- key: 0,
268
- slotRow: { ...l },
269
- value: t.value,
270
- updateModelValue: Y
271
- }, void 0, !0) : e.$slots[`${u.value}-read-slot`] ? b(e.$slots, `${u.value}-read-slot`, {
272
- key: 1,
273
- value: X(e.type),
274
- slotRow: { ...l }
275
- }, void 0, !0) : e.$slots[`${e.type}-read-slot`] ? b(e.$slots, `${e.type}-read-slot`, {
276
- key: 2,
277
- value: X(e.type),
278
- slotRow: { ...l }
279
- }, void 0, !0) : (s(), V("div", qe, C(X(e.type)), 1))
280
- ], 64)) : (s(), V(w, { key: 1 }, [
281
- e.type === "label" ? (s(), V("span", ze, [
282
- h(v)(t.value) ? (s(), V(w, { key: 0 }, [
283
- P(C((l == null ? void 0 : l.labelEmpty) || "--"), 1)
284
- ], 64)) : B("", !0),
285
- e.labelNumber ? (s(), f(n, {
261
+ default: v(() => {
262
+ var re, se, ue, ie, de, ne, pe, me, fe, ve;
263
+ return [
264
+ $(e.$slots, `${u.value}-prepend`, {
265
+ slotRow: { props: l }
266
+ }, void 0, !0),
267
+ e.read ? (r(), f(P, { key: 0 }, [
268
+ e.type === "itemSlot" && e.$slots[`${u.value}-slot`] ? $(e.$slots, `${u.value}-slot`, {
269
+ key: 0,
270
+ slotRow: { ...l },
271
+ value: o.value,
272
+ updateModelValue: Z
273
+ }, void 0, !0) : e.$slots[`${u.value}-read-slot`] ? $(e.$slots, `${u.value}-read-slot`, {
286
274
  key: 1,
287
- type: Number(t.value) < 0 ? "danger" : ""
288
- }, {
289
- default: m(() => [
290
- P(C(t.value), 1)
291
- ]),
292
- _: 1
293
- }, 8, ["type"])) : (s(), V(w, { key: 2 }, [
294
- P(C(t.value), 1)
295
- ], 64))
296
- ])) : e.type === "input" ? (s(), f(p, $({
297
- key: 1,
298
- modelValue: t.value,
299
- "onUpdate:modelValue": a[0] || (a[0] = (o) => t.value = o),
300
- modelModifiers: { trim: !0 },
301
- clearable: !0,
302
- placeholder: `请输入${e.label}`,
303
- disabled: e.disabled
304
- }, e.attrs, k(e.listeners || {}), {
305
- onChange: a[1] || (a[1] = (o) => S(t.value, e.prop, e.index))
306
- }), D({ _: 2 }, [
307
- e.$slots[`${u.value}-input-prefix`] ? {
308
- name: "prefix",
309
- fn: m(() => [
310
- b(e.$slots, `${u.value}-input-prefix`, {
311
- slotRow: { ...l }
312
- }, void 0, !0)
313
- ]),
314
- key: "0"
315
- } : void 0,
316
- e.$slots[`${u.value}-input-suffix`] ? {
317
- name: "suffix",
318
- fn: m(() => [
319
- b(e.$slots, `${u.value}-input-suffix`, {
320
- slotRow: { ...l }
321
- }, void 0, !0)
322
- ]),
323
- key: "1"
324
- } : void 0,
325
- e.$slots[`${u.value}-input-prepend`] ? {
326
- name: "prepend",
327
- fn: m(() => [
328
- b(e.$slots, `${u.value}-input-prepend`, {
329
- slotRow: { ...l }
330
- }, void 0, !0)
331
- ]),
332
- key: "2"
333
- } : void 0,
334
- e.$slots[`${u.value}-input-append`] ? {
335
- name: "append",
336
- fn: m(() => [
337
- b(e.$slots, `${u.value}-input-append`, {
338
- slotRow: { ...l }
339
- }, void 0, !0)
340
- ]),
341
- key: "3"
342
- } : void 0
343
- ]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "textarea" ? (s(), f(p, $({
344
- key: 2,
345
- modelValue: t.value,
346
- "onUpdate:modelValue": a[2] || (a[2] = (o) => t.value = o),
347
- modelModifiers: { trim: !0 },
348
- type: "textarea",
349
- rows: 4,
350
- "show-word-limit": "",
351
- maxlength: "100",
352
- placeholder: `请输入${e.label}`,
353
- disabled: e.disabled
354
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "number" ? (s(), f(y, $({
355
- key: 3,
356
- modelValue: t.value,
357
- "onUpdate:modelValue": a[3] || (a[3] = (o) => t.value = o),
358
- modelModifiers: { trim: !0 },
359
- placeholder: `请输入${e.label}`,
360
- max: 99999999,
361
- min: 0,
362
- disabled: e.disabled
363
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (s(), f(M, $({
364
- key: 4,
365
- modelValue: t.value,
366
- "onUpdate:modelValue": a[4] || (a[4] = (o) => t.value = o),
367
- disabled: e.disabled
368
- }, e.attrs, k(e.listeners || {}), {
369
- onChange: a[5] || (a[5] = (o) => S(t.value, e.prop, e.index))
370
- }), {
371
- default: m(() => [
372
- e.radioType ? e.radioType === "button" ? (s(!0), V(w, { key: 1 }, J(e.options, (o, T) => (s(), f(F, {
373
- key: T,
374
- value: o.value,
375
- disabled: o.disabled
376
- }, {
377
- default: m(() => [
378
- P(C(o.label), 1)
379
- ]),
380
- _: 2
381
- }, 1032, ["value", "disabled"]))), 128)) : B("", !0) : (s(!0), V(w, { key: 0 }, J(e.options, (o, T) => (s(), f(R, {
382
- key: T,
383
- value: o.value,
384
- disabled: o.disabled
275
+ value: Y(e.type),
276
+ slotRow: { ...l }
277
+ }, void 0, !0) : e.$slots[`${e.type}-read-slot`] ? $(e.$slots, `${e.type}-read-slot`, {
278
+ key: 2,
279
+ value: Y(e.type),
280
+ slotRow: { ...l }
281
+ }, void 0, !0) : (r(), f("div", _e, k(Y(e.type)), 1))
282
+ ], 64)) : (r(), f(P, { key: 1 }, [
283
+ e.type === "label" ? (r(), f("span", xe, [
284
+ R(b)(o.value) ? (r(), f(P, { key: 0 }, [
285
+ U(k((l == null ? void 0 : l.labelEmpty) || "--"), 1)
286
+ ], 64)) : w("", !0),
287
+ e.labelNumber ? (r(), y(d, {
288
+ key: 1,
289
+ type: Number(o.value) < 0 ? "danger" : ""
385
290
  }, {
386
- default: m(() => [
387
- P(C(o.label), 1)
291
+ default: v(() => [
292
+ U(k(o.value), 1)
388
293
  ]),
389
- _: 2
390
- }, 1032, ["value", "disabled"]))), 128))
391
- ]),
392
- _: 1
393
- }, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (s(), f(N, $({
394
- key: 5,
395
- modelValue: t.value,
396
- "onUpdate:modelValue": a[6] || (a[6] = (o) => t.value = o),
397
- disabled: e.disabled
398
- }, e.attrs, k(e.listeners || {}), {
399
- onChange: a[7] || (a[7] = (o) => S(t.value, e.prop, e.index))
400
- }), {
401
- default: m(() => [
402
- (s(!0), V(w, null, J(e.options, (o, T) => (s(), f(L, {
403
- key: T,
404
- value: o.value,
405
- label: o.label,
406
- disabled: o.disabled
407
- }, null, 8, ["value", "label", "disabled"]))), 128))
408
- ]),
409
- _: 1
410
- }, 16, ["modelValue", "disabled"])) : e.type === "select" ? (s(), f(O, $({
411
- key: 6,
412
- modelValue: t.value,
413
- "onUpdate:modelValue": a[9] || (a[9] = (o) => t.value = o),
414
- clearable: !0,
415
- placeholder: `请选择${e.label}`,
416
- disabled: e.disabled
417
- }, e.attrs, k(e.listeners || {}), {
418
- onChange: a[10] || (a[10] = (o) => S(t.value, e.prop, e.index))
419
- }), D({
420
- default: m(() => [
421
- (s(!0), V(w, null, J(e.options, (o, T) => {
422
- var re;
423
- return s(), f(d, {
424
- key: `${T}-${(re = e.attrs) != null && re.valueKey ? o[e.attrs.valueKey] || o.label : o.value}`,
425
- label: o.label,
426
- value: o.value,
427
- disabled: o.disabled
428
- }, null, 8, ["label", "value", "disabled"]);
429
- }), 128))
430
- ]),
431
- _: 2
432
- }, [
433
- e.attrs && e.attrs.multiple && !h(v)(e.options) && e.selectAll ? {
434
- name: "header",
435
- fn: m(() => [
436
- I(L, {
437
- modelValue: G.value,
438
- "onUpdate:modelValue": a[8] || (a[8] = (o) => G.value = o),
439
- indeterminate: q.value,
440
- onChange: ve
441
- }, {
442
- default: m(() => a[25] || (a[25] = [
443
- P(" 全部 ")
444
- ])),
445
- _: 1
446
- }, 8, ["modelValue", "indeterminate"])
447
- ]),
448
- key: "0"
449
- } : void 0
450
- ]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "date" ? (s(), f(oe, $({
451
- key: 7,
452
- modelValue: t.value,
453
- "onUpdate:modelValue": a[11] || (a[11] = (o) => t.value = o),
454
- type: "date",
455
- clearable: !0,
456
- placeholder: `请选择${e.label}`,
457
- disabled: e.disabled
458
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "datetimerange" ? (s(), f(oe, $({
459
- key: 8,
460
- modelValue: t.value,
461
- "onUpdate:modelValue": a[12] || (a[12] = (o) => t.value = o),
462
- type: "daterange",
463
- clearable: !0,
464
- "start-placeholder": "开始时间",
465
- "end-placeholder": "结束时间"
466
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "timePicker" ? (s(), f(be, $({
467
- key: 9,
468
- modelValue: t.value,
469
- "onUpdate:modelValue": a[13] || (a[13] = (o) => t.value = o),
470
- placeholder: `请选择${e.label}`
471
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "timeSelect" ? (s(), f(ye, $({
472
- key: 10,
473
- modelValue: t.value,
474
- "onUpdate:modelValue": a[14] || (a[14] = (o) => t.value = o),
475
- placeholder: `请选择${e.label}`
476
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "cascader" ? (s(), f(te, $({
477
- key: 11,
478
- modelValue: t.value,
479
- "onUpdate:modelValue": a[15] || (a[15] = (o) => t.value = o),
480
- clearable: !0,
481
- placeholder: `请选择${e.label}`,
482
- options: e.options
483
- }, e.attrs, k(e.listeners || {}), {
484
- onChange: a[16] || (a[16] = (o) => S(t.value, e.prop, e.index))
485
- }), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (s(), f(te, $({
486
- key: 12,
487
- modelValue: t.value,
488
- "onUpdate:modelValue": a[17] || (a[17] = (o) => t.value = o),
489
- clearable: !0,
490
- placeholder: `请选择${e.label}`,
491
- options: e.options
492
- }, e.attrs, { props: me.value }, k(e.listeners || {}), {
493
- onChange: a[18] || (a[18] = (o) => S(t.value, e.prop, e.index))
494
- }), null, 16, ["modelValue", "placeholder", "options", "props"])) : e.type === "switch" ? (s(), f($e, $({
495
- key: 13,
496
- modelValue: t.value,
497
- "onUpdate:modelValue": a[19] || (a[19] = (o) => t.value = o)
498
- }, e.attrs, k(e.listeners || {}), {
499
- onChange: a[20] || (a[20] = (o) => S(t.value, e.prop, e.index))
500
- }), null, 16, ["modelValue"])) : e.type === "inputRange" ? (s(), V("div", He, [
501
- I(p, $({
502
- modelValue: U.value,
503
- "onUpdate:modelValue": a[21] || (a[21] = (o) => U.value = o),
504
- modelModifiers: { trim: !0 },
505
- clearable: !0,
506
- placeholder: `请输入起始${e.label}`,
507
- disabled: e.disabled
508
- }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[0] || "start"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
509
- P("   " + C(e.rangeSeparator) + "   ", 1),
510
- I(p, $({
511
- modelValue: A.value,
512
- "onUpdate:modelValue": a[22] || (a[22] = (o) => A.value = o),
294
+ _: 1
295
+ }, 8, ["type"])) : (r(), f(P, { key: 2 }, [
296
+ U(k(o.value), 1)
297
+ ], 64))
298
+ ])) : e.type === "input" ? (r(), y(n, V({
299
+ key: 1,
300
+ modelValue: o.value,
301
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => o.value = a),
513
302
  modelModifiers: { trim: !0 },
514
303
  clearable: !0,
515
- placeholder: `请输入截止${e.label}`,
304
+ placeholder: `请输入${e.label}`,
516
305
  disabled: e.disabled
517
- }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[1] || "end"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[1] || "end") || {})), D({ _: 2 }, [
518
- e.$slots[`${u.value}-input-prefix`] ? {
306
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), D({ _: 2 }, [
307
+ e.$slots[`${u.value}-input-prefix`] || (re = e.attrs) != null && re.prefixStr ? {
519
308
  name: "prefix",
520
- fn: m(() => [
521
- b(e.$slots, `${u.value}-input-prefix`, {
522
- slotRow: { ...l }
523
- }, void 0, !0)
524
- ]),
309
+ fn: v(() => {
310
+ var a, i;
311
+ return [
312
+ e.$slots[`${u.value}-input-prefix`] ? $(e.$slots, `${u.value}-input-prefix`, {
313
+ key: 0,
314
+ slotRow: { ...l }
315
+ }, void 0, !0) : (a = e.attrs) != null && a.prefixStr ? (r(), f("span", el, k((i = e.attrs) == null ? void 0 : i.prefixStr), 1)) : w("", !0)
316
+ ];
317
+ }),
525
318
  key: "0"
526
319
  } : void 0,
527
- e.$slots[`${u.value}-input-suffix`] ? {
320
+ e.$slots[`${u.value}-input-suffix`] || (se = e.attrs) != null && se.suffix ? {
528
321
  name: "suffix",
529
- fn: m(() => [
530
- b(e.$slots, `${u.value}-input-suffix`, {
531
- slotRow: { ...l }
532
- }, void 0, !0)
533
- ]),
322
+ fn: v(() => {
323
+ var a, i;
324
+ return [
325
+ e.$slots[`${u.value}-input-suffix`] ? $(e.$slots, `${u.value}-input-suffix`, {
326
+ key: 0,
327
+ slotRow: { ...l }
328
+ }, void 0, !0) : (a = e.attrs) != null && a.suffix ? (r(), f("span", ll, k((i = e.attrs) == null ? void 0 : i.suffix), 1)) : w("", !0)
329
+ ];
330
+ }),
534
331
  key: "1"
535
332
  } : void 0,
536
- e.$slots[`${u.value}-input-prepend`] ? {
333
+ e.$slots[`${u.value}-input-prepend`] || (ue = e.attrs) != null && ue.prepend ? {
537
334
  name: "prepend",
538
- fn: m(() => [
539
- b(e.$slots, `${u.value}-input-prepend`, {
540
- slotRow: { ...l }
541
- }, void 0, !0)
542
- ]),
335
+ fn: v(() => {
336
+ var a, i;
337
+ return [
338
+ e.$slots[`${u.value}-input-prepend`] ? $(e.$slots, `${u.value}-input-prepend`, {
339
+ key: 0,
340
+ slotRow: { ...l }
341
+ }, void 0, !0) : (a = e.attrs) != null && a.prepend ? (r(), f("span", al, k((i = e.attrs) == null ? void 0 : i.prepend), 1)) : w("", !0)
342
+ ];
343
+ }),
543
344
  key: "2"
544
345
  } : void 0,
545
- e.$slots[`${u.value}-input-append`] ? {
346
+ e.$slots[`${u.value}-input-append`] || (ie = e.attrs) != null && ie.append ? {
546
347
  name: "append",
547
- fn: m(() => [
548
- b(e.$slots, `${u.value}-input-append`, {
549
- slotRow: { ...l }
550
- }, void 0, !0)
551
- ]),
348
+ fn: v(() => {
349
+ var a, i;
350
+ return [
351
+ e.$slots[`${u.value}-input-append`] ? $(e.$slots, `${u.value}-input-append`, {
352
+ key: 0,
353
+ slotRow: { ...l }
354
+ }, void 0, !0) : (a = e.attrs) != null && a.append ? (r(), f("span", tl, k((i = e.attrs) == null ? void 0 : i.append), 1)) : w("", !0)
355
+ ];
356
+ }),
552
357
  key: "3"
553
358
  } : void 0
554
- ]), 1040, ["modelValue", "placeholder", "disabled"])
555
- ])) : e.type === "inputNumberRange" ? (s(), V("div", Je, [
556
- I(y, $({
557
- modelValue: U.value,
558
- "onUpdate:modelValue": a[23] || (a[23] = (o) => U.value = o),
359
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "textarea" ? (r(), f(P, { key: 2 }, [
360
+ e.trim ? (r(), y(n, V({
361
+ key: 0,
362
+ modelValue: o.value,
363
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o.value = a),
364
+ modelModifiers: { trim: !0 },
365
+ type: "textarea",
366
+ rows: 4,
367
+ "show-word-limit": "",
368
+ maxlength: "100",
369
+ placeholder: `请输入${e.label}`,
370
+ disabled: e.disabled
371
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : (r(), y(n, V({
372
+ key: 1,
373
+ modelValue: o.value,
374
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o.value = a),
375
+ type: "textarea",
376
+ rows: 4,
377
+ "show-word-limit": "",
378
+ placeholder: `请输入${e.label}`,
379
+ disabled: e.disabled
380
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"]))
381
+ ], 64)) : e.type === "number" ? (r(), y(g, V({
382
+ key: 3,
383
+ modelValue: o.value,
384
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o.value = a),
559
385
  modelModifiers: { trim: !0 },
560
- clearable: !0,
561
- placeholder: `请输入起始${e.label}`,
386
+ placeholder: `请输入${e.label}`,
387
+ max: 99999999,
388
+ min: 0,
562
389
  disabled: e.disabled
563
- }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[0] || "start"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
564
- P("   " + C(e.rangeSeparator) + "   ", 1),
565
- I(y, $({
566
- modelValue: A.value,
567
- "onUpdate:modelValue": a[24] || (a[24] = (o) => A.value = o),
568
- modelModifiers: { trim: !0 },
390
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (r(), y(T, V({
391
+ key: 4,
392
+ modelValue: o.value,
393
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => o.value = a),
394
+ disabled: e.disabled
395
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), {
396
+ default: v(() => [
397
+ e.radioType ? e.radioType === "button" ? (r(!0), f(P, { key: 1 }, J(e.options, (a, i) => (r(), y(N, {
398
+ key: i,
399
+ value: a.value,
400
+ disabled: a.disabled
401
+ }, {
402
+ default: v(() => [
403
+ U(k(a.label), 1)
404
+ ]),
405
+ _: 2
406
+ }, 1032, ["value", "disabled"]))), 128)) : w("", !0) : (r(!0), f(P, { key: 0 }, J(e.options, (a, i) => (r(), y(S, {
407
+ key: i,
408
+ value: a.value,
409
+ disabled: a.disabled
410
+ }, {
411
+ default: v(() => [
412
+ U(k(a.label), 1)
413
+ ]),
414
+ _: 2
415
+ }, 1032, ["value", "disabled"]))), 128))
416
+ ]),
417
+ _: 1
418
+ }, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (r(), y(L, V({
419
+ key: 5,
420
+ modelValue: o.value,
421
+ "onUpdate:modelValue": t[5] || (t[5] = (a) => o.value = a),
422
+ disabled: e.disabled
423
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), {
424
+ default: v(() => [
425
+ (r(!0), f(P, null, J(e.options, (a, i) => (r(), y(O, {
426
+ key: i,
427
+ value: a.value,
428
+ label: a.label,
429
+ disabled: a.disabled
430
+ }, null, 8, ["value", "label", "disabled"]))), 128))
431
+ ]),
432
+ _: 1
433
+ }, 16, ["modelValue", "disabled"])) : e.type === "select" ? (r(), y(B, V({
434
+ key: 6,
435
+ modelValue: o.value,
436
+ "onUpdate:modelValue": t[7] || (t[7] = (a) => o.value = a),
569
437
  clearable: !0,
570
- placeholder: `请输入截止${e.label}`,
438
+ placeholder: `请选择${e.label}`,
571
439
  disabled: e.disabled
572
- }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[1] || "end"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[1] || "end") || {})), D({ _: 2 }, [
573
- e.$slots[`${u.value}-input-prefix`] ? {
574
- name: "prefix",
575
- fn: m(() => [
576
- b(e.$slots, `${u.value}-input-prefix`, {
577
- slotRow: { ...l }
578
- }, void 0, !0)
440
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), D({
441
+ default: v(() => [
442
+ (r(!0), f(P, null, J(e.options, (a, i) => {
443
+ var be;
444
+ return r(), y(p, {
445
+ key: `${i}-${(be = e.attrs) != null && be.valueKey ? a[e.attrs.valueKey] || a.label : a.value}`,
446
+ label: a.label,
447
+ value: a.value,
448
+ disabled: a.disabled
449
+ }, null, 8, ["label", "value", "disabled"]);
450
+ }), 128))
451
+ ]),
452
+ _: 2
453
+ }, [
454
+ e.attrs && e.attrs.multiple && !R(b)(e.options) && e.selectAll ? {
455
+ name: "header",
456
+ fn: v(() => [
457
+ I(O, {
458
+ modelValue: G.value,
459
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => G.value = a),
460
+ indeterminate: q.value,
461
+ onChange: Ee
462
+ }, {
463
+ default: v(() => t[19] || (t[19] = [
464
+ U(" 全部 ")
465
+ ])),
466
+ _: 1
467
+ }, 8, ["modelValue", "indeterminate"])
579
468
  ]),
580
469
  key: "0"
581
- } : void 0,
582
- e.$slots[`${u.value}-input-suffix`] ? {
583
- name: "suffix",
584
- fn: m(() => [
585
- b(e.$slots, `${u.value}-input-suffix`, {
586
- slotRow: { ...l }
587
- }, void 0, !0)
588
- ]),
589
- key: "1"
590
470
  } : void 0
591
- ]), 1040, ["modelValue", "placeholder", "disabled"])
592
- ])) : e.type === "itemSlot" ? b(e.$slots, `${u.value}-slot`, {
593
- key: 16,
594
- slotRow: { ...l },
595
- value: t.value,
596
- updateModelValue: Y
597
- }, void 0, !0) : B("", !0)
598
- ], 64)),
599
- b(e.$slots, `${u.value}-append`, {
600
- slotRow: { ...l }
601
- }, void 0, !0)
602
- ]),
471
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "date" ? (r(), y(te, V({
472
+ key: 7,
473
+ modelValue: o.value,
474
+ "onUpdate:modelValue": t[8] || (t[8] = (a) => o.value = a),
475
+ type: "date",
476
+ clearable: !0,
477
+ placeholder: `请选择${e.label}`,
478
+ disabled: e.disabled
479
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "datetimerange" ? (r(), y(te, V({
480
+ key: 8,
481
+ modelValue: o.value,
482
+ "onUpdate:modelValue": t[9] || (t[9] = (a) => o.value = a),
483
+ type: "daterange",
484
+ clearable: !0,
485
+ "start-placeholder": "开始时间",
486
+ "end-placeholder": "结束时间"
487
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "timePicker" ? (r(), y(Ce, V({
488
+ key: 9,
489
+ modelValue: o.value,
490
+ "onUpdate:modelValue": t[10] || (t[10] = (a) => o.value = a),
491
+ placeholder: `请选择${e.label}`
492
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "timeSelect" ? (r(), y(Se, V({
493
+ key: 10,
494
+ modelValue: o.value,
495
+ "onUpdate:modelValue": t[11] || (t[11] = (a) => o.value = a),
496
+ placeholder: `请选择${e.label}`
497
+ }, e.attrs, h(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "cascader" ? (r(), y(oe, V({
498
+ key: 11,
499
+ modelValue: o.value,
500
+ "onUpdate:modelValue": t[12] || (t[12] = (a) => o.value = a),
501
+ clearable: !0,
502
+ placeholder: `请选择${e.label}`,
503
+ options: e.options
504
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (r(), y(oe, V({
505
+ key: 12,
506
+ modelValue: o.value,
507
+ "onUpdate:modelValue": t[13] || (t[13] = (a) => o.value = a),
508
+ clearable: !0,
509
+ placeholder: `请选择${e.label}`,
510
+ options: e.options
511
+ }, e.attrs, { props: we.value }, h(e.listeners || {}), { onChange: M }), null, 16, ["modelValue", "placeholder", "options", "props"])) : e.type === "switch" ? (r(), y(Pe, V({
512
+ key: 13,
513
+ modelValue: o.value,
514
+ "onUpdate:modelValue": t[14] || (t[14] = (a) => o.value = a)
515
+ }, e.attrs, h(e.listeners || {}), { onChange: M }), null, 16, ["modelValue"])) : e.type === "inputRange" ? (r(), f("div", ol, [
516
+ I(n, V({
517
+ modelValue: A.value,
518
+ "onUpdate:modelValue": t[15] || (t[15] = (a) => A.value = a),
519
+ modelModifiers: { trim: !0 },
520
+ clearable: !0,
521
+ placeholder: `请输入起始${e.label}`,
522
+ disabled: e.disabled
523
+ }, e.attrs && R(C)(e.attrs || {}, e.rangeProps[0] || "start"), h(e.listeners && R(C)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
524
+ U("   " + k(e.rangeSeparator) + "   ", 1),
525
+ I(n, V({
526
+ modelValue: F.value,
527
+ "onUpdate:modelValue": t[16] || (t[16] = (a) => F.value = a),
528
+ modelModifiers: { trim: !0 },
529
+ clearable: !0,
530
+ placeholder: `请输入截止${e.label}`,
531
+ disabled: e.disabled
532
+ }, e.attrs && R(C)(e.attrs || {}, e.rangeProps[1] || "end"), h(e.listeners && R(C)(e.listeners || {}, e.rangeProps[1] || "end") || {})), D({ _: 2 }, [
533
+ e.$slots[`${u.value}-input-prefix`] || (de = e.attrs) != null && de.prefixStr ? {
534
+ name: "prefix",
535
+ fn: v(() => {
536
+ var a, i;
537
+ return [
538
+ e.$slots[`${u.value}-input-prefix`] ? $(e.$slots, `${u.value}-input-prefix`, {
539
+ key: 0,
540
+ slotRow: { ...l }
541
+ }, void 0, !0) : (a = e.attrs) != null && a.prefixStr ? (r(), f("span", rl, k((i = e.attrs) == null ? void 0 : i.prefixStr), 1)) : w("", !0)
542
+ ];
543
+ }),
544
+ key: "0"
545
+ } : void 0,
546
+ e.$slots[`${u.value}-input-suffix`] || (ne = e.attrs) != null && ne.suffix ? {
547
+ name: "suffix",
548
+ fn: v(() => {
549
+ var a, i;
550
+ return [
551
+ e.$slots[`${u.value}-input-suffix`] ? $(e.$slots, `${u.value}-input-suffix`, {
552
+ key: 0,
553
+ slotRow: { ...l }
554
+ }, void 0, !0) : (a = e.attrs) != null && a.suffix ? (r(), f("span", sl, k((i = e.attrs) == null ? void 0 : i.suffix), 1)) : w("", !0)
555
+ ];
556
+ }),
557
+ key: "1"
558
+ } : void 0,
559
+ e.$slots[`${u.value}-input-prepend`] || (pe = e.attrs) != null && pe.prepend ? {
560
+ name: "prepend",
561
+ fn: v(() => {
562
+ var a, i;
563
+ return [
564
+ e.$slots[`${u.value}-input-prepend`] ? $(e.$slots, `${u.value}-input-prepend`, {
565
+ key: 0,
566
+ slotRow: { ...l }
567
+ }, void 0, !0) : (a = e.attrs) != null && a.prepend ? (r(), f("span", ul, k((i = e.attrs) == null ? void 0 : i.prepend), 1)) : w("", !0)
568
+ ];
569
+ }),
570
+ key: "2"
571
+ } : void 0,
572
+ e.$slots[`${u.value}-input-append`] || (me = e.attrs) != null && me.append ? {
573
+ name: "append",
574
+ fn: v(() => {
575
+ var a, i;
576
+ return [
577
+ e.$slots[`${u.value}-input-append`] ? $(e.$slots, `${u.value}-input-append`, {
578
+ key: 0,
579
+ slotRow: { ...l }
580
+ }, void 0, !0) : (a = e.attrs) != null && a.append ? (r(), f("span", il, k((i = e.attrs) == null ? void 0 : i.append), 1)) : w("", !0)
581
+ ];
582
+ }),
583
+ key: "3"
584
+ } : void 0
585
+ ]), 1040, ["modelValue", "placeholder", "disabled"])
586
+ ])) : e.type === "inputNumberRange" ? (r(), f("div", dl, [
587
+ I(g, V({
588
+ modelValue: A.value,
589
+ "onUpdate:modelValue": t[17] || (t[17] = (a) => A.value = a),
590
+ modelModifiers: { trim: !0 },
591
+ clearable: !0,
592
+ placeholder: `请输入起始${e.label}`,
593
+ disabled: e.disabled
594
+ }, e.attrs && R(C)(e.attrs || {}, e.rangeProps[0] || "start"), h(e.listeners && R(C)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
595
+ U("   " + k(e.rangeSeparator) + "   ", 1),
596
+ I(g, V({
597
+ modelValue: F.value,
598
+ "onUpdate:modelValue": t[18] || (t[18] = (a) => F.value = a),
599
+ modelModifiers: { trim: !0 },
600
+ clearable: !0,
601
+ placeholder: `请输入截止${e.label}`,
602
+ disabled: e.disabled
603
+ }, e.attrs && R(C)(e.attrs || {}, e.rangeProps[1] || "end"), h(e.listeners && R(C)(e.listeners || {}, e.rangeProps[1] || "end") || {})), D({ _: 2 }, [
604
+ e.$slots[`${u.value}-input-prefix`] || (fe = e.attrs) != null && fe.prefixStr ? {
605
+ name: "prefix",
606
+ fn: v(() => {
607
+ var a, i;
608
+ return [
609
+ e.$slots[`${u.value}-input-prefix`] ? $(e.$slots, `${u.value}-input-prefix`, {
610
+ key: 0,
611
+ slotRow: { ...l }
612
+ }, void 0, !0) : (a = e.attrs) != null && a.prefixStr ? (r(), f("span", nl, k((i = e.attrs) == null ? void 0 : i.prefixStr), 1)) : w("", !0)
613
+ ];
614
+ }),
615
+ key: "0"
616
+ } : void 0,
617
+ e.$slots[`${u.value}-input-suffix`] || (ve = e.attrs) != null && ve.suffix ? {
618
+ name: "suffix",
619
+ fn: v(() => {
620
+ var a, i;
621
+ return [
622
+ e.$slots[`${u.value}-input-suffix`] ? $(e.$slots, `${u.value}-input-suffix`, {
623
+ key: 0,
624
+ slotRow: { ...l }
625
+ }, void 0, !0) : (a = e.attrs) != null && a.suffix ? (r(), f("span", pl, k((i = e.attrs) == null ? void 0 : i.suffix), 1)) : w("", !0)
626
+ ];
627
+ }),
628
+ key: "1"
629
+ } : void 0
630
+ ]), 1040, ["modelValue", "placeholder", "disabled"])
631
+ ])) : e.type === "itemSlot" ? $(e.$slots, `${u.value}-slot`, {
632
+ key: 16,
633
+ slotRow: { ...l },
634
+ value: o.value,
635
+ updateModelValue: Z
636
+ }, void 0, !0) : w("", !0)
637
+ ], 64)),
638
+ $(e.$slots, `${u.value}-append`, {
639
+ slotRow: { ...l }
640
+ }, void 0, !0)
641
+ ];
642
+ }),
603
643
  _: 2
604
644
  }, [
605
645
  e.labelClass || e.tooltip ? {
606
646
  name: "label",
607
- fn: m(() => [
608
- ne("div", Ge, [
609
- ne("span", {
647
+ fn: v(() => [
648
+ ke("div", ce, [
649
+ ke("span", {
610
650
  class: H(e.labelClass)
611
- }, C(e.label), 3),
612
- e.tooltip ? (s(), f(r, {
651
+ }, k(e.label), 3),
652
+ e.tooltip ? (r(), y(s, {
613
653
  key: 0,
614
654
  effect: "dark",
615
655
  placement: "top",
616
656
  content: e.tooltip
617
657
  }, {
618
- default: m(() => [
619
- I(i, {
658
+ default: v(() => [
659
+ I(m, {
620
660
  class: H(["ml-4", e.labelIconClass])
621
661
  }, {
622
- default: m(() => [
623
- e.$slots["tooltip-icon"] ? b(e.$slots, "tooltip-icon", {
662
+ default: v(() => [
663
+ e.$slots["tooltip-icon"] ? $(e.$slots, "tooltip-icon", {
624
664
  key: 0,
625
665
  slotRow: { ...l }
626
- }, void 0, !0) : e.$slots[`${u.value}-label-icon`] ? b(e.$slots, `${u.value}-label-icon`, {
666
+ }, void 0, !0) : e.$slots[`${u.value}-label-icon`] ? $(e.$slots, `${u.value}-label-icon`, {
627
667
  key: 1,
628
668
  slotRow: { ...l }
629
- }, void 0, !0) : B("", !0)
669
+ }, void 0, !0) : w("", !0)
630
670
  ]),
631
671
  _: 3
632
672
  }, 8, ["class"])
633
673
  ]),
634
674
  _: 3
635
- }, 8, ["content"])) : B("", !0),
636
- e.colon ? (s(), V("span", {
675
+ }, 8, ["content"])) : w("", !0),
676
+ e.colon ? (r(), f("span", {
637
677
  key: 1,
638
678
  class: H(e.labelClass)
639
- }, ":", 2)) : B("", !0)
679
+ }, ":", 2)) : w("", !0)
640
680
  ])
641
681
  ]),
642
682
  key: "0"
@@ -646,5 +686,5 @@ const Ge = { class: "ls-form-item-label" }, qe = {
646
686
  }
647
687
  });
648
688
  export {
649
- Dl as default
689
+ ra as default
650
690
  };