@lingshugroup/web-plus 1.0.13 → 1.0.15
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.
- package/README.md +1 -3
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs +1 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js +4 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.br +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.gz +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +220 -195
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js +58 -52
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview/composable/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview/composable/index.js +1 -1
- package/lib/packages/ls-components/components/preview/composable/index.js.br +0 -0
- package/lib/packages/ls-components/components/preview/composable/index.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +277 -241
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs +0 -1
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js +0 -4
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.br +0 -0
- package/lib/node_modules/.pnpm/pdfjs-dist@4.6.82/node_modules/pdfjs-dist/build/pdf.worker.min/index.js.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var pe = Object.defineProperty;
|
|
2
|
+
var R = (B, K) => pe(B, "name", { value: K, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
@@ -22,57 +22,57 @@ var h = (I, L) => ie(I, "name", { value: L, configurable: !0 });
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { defineComponent as
|
|
25
|
+
import { defineComponent as de, mergeModels as re, useModel as me, ref as T, computed as ve, watch as z, renderSlot as $, openBlock as t, createBlock as p, normalizeClass as H, createSlots as x, withCtx as m, createElementBlock as k, Fragment as w, toDisplayString as C, unref as g, createTextVNode as S, createCommentVNode as N, mergeProps as v, toHandlers as b, renderList as J, createVNode as I, createElementVNode as te } from "vue";
|
|
26
26
|
import { isEmpty as f } from "../../_utils/utils/index.js";
|
|
27
|
-
import { lsFormItemProps as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { ElIcon as
|
|
33
|
-
import { ElTooltip as
|
|
34
|
-
import { ElText as
|
|
35
|
-
import { ElInput as
|
|
36
|
-
import { ElInputNumber as
|
|
37
|
-
import { ElRadio as
|
|
38
|
-
import { ElCheckbox as
|
|
27
|
+
import { lsFormItemProps as be } from "../types/index.js";
|
|
28
|
+
import fe from "../../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min/index.js";
|
|
29
|
+
import h from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get/index.js";
|
|
30
|
+
import ye from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual/index.js";
|
|
31
|
+
import se from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
|
|
32
|
+
import { ElIcon as $e } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/icon/index/index.js";
|
|
33
|
+
import { ElTooltip as ke } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
|
|
34
|
+
import { ElText as Ve } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/text/index/index.js";
|
|
35
|
+
import { ElInput as ge } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/input/index/index.js";
|
|
36
|
+
import { ElInputNumber as he } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/input-number/index/index.js";
|
|
37
|
+
import { ElRadio as Ee, ElRadioButton as Re, ElRadioGroup as Ce } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.js";
|
|
38
|
+
import { ElCheckbox as we, ElCheckboxGroup as Se } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/checkbox/index/index.js";
|
|
39
39
|
import { ElOption as Pe, ElSelect as Ue } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/select/index/index.js";
|
|
40
|
-
import { ElDatePicker as
|
|
41
|
-
import { ElCascader as
|
|
42
|
-
import { ElSwitch as
|
|
43
|
-
import { ElFormItem as
|
|
44
|
-
const
|
|
40
|
+
import { ElDatePicker as Me } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/date-picker/index/index.js";
|
|
41
|
+
import { ElCascader as Ne } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/cascader/index/index.js";
|
|
42
|
+
import { ElSwitch as Ie } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/switch/index/index.js";
|
|
43
|
+
import { ElFormItem as Fe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/form/index/index.js";
|
|
44
|
+
const Oe = { class: "ls-form-item-label" }, Ae = {
|
|
45
45
|
key: 3,
|
|
46
46
|
class: "ls-read-text-container"
|
|
47
|
-
},
|
|
47
|
+
}, Te = { key: 0 }, Be = {
|
|
48
48
|
key: 12,
|
|
49
49
|
class: "ls-input-range"
|
|
50
|
-
},
|
|
50
|
+
}, Le = {
|
|
51
51
|
key: 13,
|
|
52
52
|
class: "ls-input-range"
|
|
53
|
-
},
|
|
53
|
+
}, je = de({
|
|
54
54
|
name: "LSFormItem"
|
|
55
|
-
}), Pl = /* @__PURE__ */
|
|
56
|
-
...
|
|
57
|
-
props: /* @__PURE__ */
|
|
55
|
+
}), Pl = /* @__PURE__ */ de({
|
|
56
|
+
...je,
|
|
57
|
+
props: /* @__PURE__ */ re(be, {
|
|
58
58
|
modelValue: {},
|
|
59
59
|
modelModifiers: {}
|
|
60
60
|
}),
|
|
61
|
-
emits: /* @__PURE__ */
|
|
62
|
-
setup(
|
|
63
|
-
const l =
|
|
61
|
+
emits: /* @__PURE__ */ re(["update:value", "onChange"], ["update:modelValue"]),
|
|
62
|
+
setup(B, { expose: K, emit: ue }) {
|
|
63
|
+
const l = B, ee = ue, r = me(B, "modelValue"), le = T(), ne = ve(() => {
|
|
64
64
|
var a;
|
|
65
65
|
let e = {};
|
|
66
66
|
return l.type === "multipleCascader" && (e = {
|
|
67
67
|
...(a = l.attrs) == null ? void 0 : a.props
|
|
68
68
|
}), { ...e, multiple: !0 };
|
|
69
|
-
}),
|
|
70
|
-
function
|
|
71
|
-
|
|
69
|
+
}), L = T(!1), j = T(!1);
|
|
70
|
+
function ie(e) {
|
|
71
|
+
j.value = !1, e && l.options && l.options.length ? r.value = l.options.map((a) => a.value) : r.value = [];
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
73
|
+
R(ie, "handleSelectCheckAll");
|
|
74
|
+
const P = T(), U = T();
|
|
75
|
+
z(
|
|
76
76
|
() => l.value,
|
|
77
77
|
(e) => {
|
|
78
78
|
l.isValue && (r.value = e);
|
|
@@ -81,80 +81,103 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
81
81
|
immediate: !0,
|
|
82
82
|
deep: !0
|
|
83
83
|
}
|
|
84
|
-
),
|
|
84
|
+
), z(
|
|
85
85
|
() => r,
|
|
86
86
|
(e) => {
|
|
87
|
-
["inputRange", "inputNumberRange"].includes(l.type || "") && (
|
|
87
|
+
["inputRange", "inputNumberRange"].includes(l.type || "") && (P.value = h(e.value, (l == null ? void 0 : l.rangeProps[0]) || "start"), U.value = h(e.value, (l == null ? void 0 : l.rangeProps[1]) || "end")), f(l.prop) || ee("update:value", l.prop, e);
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
immediate: !0,
|
|
91
91
|
deep: !0
|
|
92
92
|
}
|
|
93
|
-
),
|
|
93
|
+
), z(
|
|
94
94
|
[() => r, () => l.type, () => l.attrs, () => l.options],
|
|
95
95
|
([e, a, s, d]) => {
|
|
96
96
|
if (a === "select" && d && d.length && !f(d)) {
|
|
97
|
-
const
|
|
97
|
+
const u = d.map((n) => n.value);
|
|
98
98
|
if (s && s.multiple) {
|
|
99
99
|
if (!f(e.value)) {
|
|
100
|
-
const
|
|
101
|
-
e.value.forEach((
|
|
102
|
-
|
|
103
|
-
}),
|
|
100
|
+
const n = [];
|
|
101
|
+
e.value.forEach((y) => {
|
|
102
|
+
u.includes(y) && n.push(y);
|
|
103
|
+
}), ye(n, e.value) || (r.value = n);
|
|
104
104
|
}
|
|
105
105
|
if (f(e.value))
|
|
106
|
-
|
|
106
|
+
L.value = !1, j.value = !1;
|
|
107
107
|
else {
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
const n = e.value.length === d.length;
|
|
109
|
+
L.value = n, j.value = !n;
|
|
110
110
|
}
|
|
111
|
-
} else s && s.filterable && s["allow-create"] ? r.value = e.value : !f(
|
|
111
|
+
} else s && s.filterable && s["allow-create"] ? r.value = e.value : !f(u) && !f(e.value) && (u.includes(e.value) || (r.value = ""));
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
immediate: !0,
|
|
116
116
|
deep: !0
|
|
117
117
|
}
|
|
118
|
-
),
|
|
119
|
-
[() =>
|
|
118
|
+
), z(
|
|
119
|
+
[() => P.value, () => U.value],
|
|
120
120
|
([e, a]) => {
|
|
121
121
|
let s = {};
|
|
122
|
-
s =
|
|
122
|
+
s = se(s, (l == null ? void 0 : l.rangeProps[0]) || "start", e), s = se(s, (l == null ? void 0 : l.rangeProps[1]) || "end", a), r.value = s;
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
deep: !0
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
|
-
function
|
|
129
|
-
var
|
|
128
|
+
function Q(e, a, s) {
|
|
129
|
+
var u;
|
|
130
130
|
let d = l == null ? void 0 : l.labelEmpty;
|
|
131
|
-
return a && !f(e) && (s && Array.isArray(e) ? d = e.map((
|
|
132
|
-
var
|
|
133
|
-
return (
|
|
134
|
-
}).join(",") : d = (
|
|
131
|
+
return a && !f(e) && (s && Array.isArray(e) ? d = e.map((n) => {
|
|
132
|
+
var y;
|
|
133
|
+
return (y = a.find((E) => E.value === n)) == null ? void 0 : y.label;
|
|
134
|
+
}).join(",") : d = (u = a.find((n) => n.value === e)) == null ? void 0 : u.label), d;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
R(Q, "getOptionsLabel");
|
|
137
|
+
function W(e, a, s = 0, d = "") {
|
|
138
|
+
var n, y, E, D, G, F;
|
|
139
|
+
let u = d;
|
|
139
140
|
if (!f(e) && !f(a)) {
|
|
140
|
-
const
|
|
141
|
-
if (!f(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
const q = ((y = (n = l.attrs) == null ? void 0 : n.props) == null ? void 0 : y.value) || "value", O = ((D = (E = l.attrs) == null ? void 0 : E.props) == null ? void 0 : D.label) || "label", A = e[s];
|
|
142
|
+
if (!f(A))
|
|
143
|
+
if ((F = (G = l.attrs) == null ? void 0 : G.props) == null ? void 0 : F.checkStrictly) {
|
|
144
|
+
const i = /* @__PURE__ */ R((_, o) => {
|
|
145
|
+
for (const V of _) {
|
|
146
|
+
if (V[q] === o)
|
|
147
|
+
return V;
|
|
148
|
+
if (V.children) {
|
|
149
|
+
const oe = i(V.children, o);
|
|
150
|
+
if (oe) return oe;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}, "findOption"), M = i(a, A);
|
|
155
|
+
M && (u = M[O]);
|
|
156
|
+
} else {
|
|
157
|
+
const i = a.find((M) => M[q] === A);
|
|
158
|
+
l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 ? u = `${i == null ? void 0 : i[O]}` : u = `${u ? `${u}/` : ""}${i == null ? void 0 : i[O]}`, f(i == null ? void 0 : i.children) || (u = W(e, i == null ? void 0 : i.children, s + 1, u));
|
|
159
|
+
}
|
|
145
160
|
}
|
|
146
|
-
return
|
|
161
|
+
return u;
|
|
147
162
|
}
|
|
148
|
-
|
|
149
|
-
function
|
|
163
|
+
R(W, "seachCascaderOptions");
|
|
164
|
+
function ae(e, a, s) {
|
|
165
|
+
var u, n;
|
|
150
166
|
let d = l == null ? void 0 : l.labelEmpty;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
167
|
+
if (a && !f(e))
|
|
168
|
+
if (s) {
|
|
169
|
+
d = "";
|
|
170
|
+
const y = (n = (u = l.attrs) == null ? void 0 : u.props) == null ? void 0 : n.checkStrictly;
|
|
171
|
+
e.forEach((E) => {
|
|
172
|
+
d = `${d ? `${d},` : ""}${W(y ? [E] : E, a)}`;
|
|
173
|
+
});
|
|
174
|
+
} else
|
|
175
|
+
d = W(e, a);
|
|
176
|
+
return d;
|
|
154
177
|
}
|
|
155
|
-
|
|
156
|
-
function
|
|
157
|
-
var s, d,
|
|
178
|
+
R(ae, "getCascaderOptionsLabel");
|
|
179
|
+
function X(e) {
|
|
180
|
+
var s, d, u;
|
|
158
181
|
const a = r.value;
|
|
159
182
|
if (l != null && l.formatReadValue)
|
|
160
183
|
return l.formatReadValue(a);
|
|
@@ -162,86 +185,86 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
162
185
|
case "switch":
|
|
163
186
|
return a ? "是" : "否";
|
|
164
187
|
case "date":
|
|
165
|
-
return a ?
|
|
188
|
+
return a ? fe(a).format(l.dateFormat) : l == null ? void 0 : l.labelEmpty;
|
|
166
189
|
case "radio":
|
|
167
|
-
return
|
|
190
|
+
return Q(a, l.options);
|
|
168
191
|
case "checkbox":
|
|
169
|
-
return
|
|
192
|
+
return Q(a, l.options, !0);
|
|
170
193
|
case "select":
|
|
171
|
-
return
|
|
194
|
+
return Q(a, l.options, (s = l.attrs) == null ? void 0 : s.multiple);
|
|
172
195
|
case "cascader":
|
|
173
|
-
return
|
|
196
|
+
return ae(a, l.options, ((u = (d = l.attrs) == null ? void 0 : d.props) == null ? void 0 : u.multiple) || !1);
|
|
174
197
|
case "multipleCascader":
|
|
175
|
-
return
|
|
198
|
+
return ae(a, l.options, !0);
|
|
176
199
|
case "inputRange":
|
|
177
200
|
case "inputNumberRange":
|
|
178
|
-
return `${
|
|
201
|
+
return `${P.value || (l == null ? void 0 : l.labelEmpty)} ${l.rangeSeparator} ${U.value || (l == null ? void 0 : l.labelEmpty)}`;
|
|
179
202
|
default:
|
|
180
203
|
return f(a) ? l == null ? void 0 : l.labelEmpty : a;
|
|
181
204
|
}
|
|
182
205
|
}
|
|
183
|
-
|
|
184
|
-
function
|
|
185
|
-
|
|
206
|
+
R(X, "readValue");
|
|
207
|
+
function Y(e, a) {
|
|
208
|
+
ee("onChange", e, a);
|
|
186
209
|
}
|
|
187
|
-
|
|
188
|
-
function
|
|
210
|
+
R(Y, "onChange");
|
|
211
|
+
function Z(e) {
|
|
189
212
|
r.value = e;
|
|
190
213
|
}
|
|
191
|
-
return
|
|
192
|
-
FormItemRef:
|
|
214
|
+
return R(Z, "updateModelValue"), K({
|
|
215
|
+
FormItemRef: le
|
|
193
216
|
}), (e, a) => {
|
|
194
|
-
const s =
|
|
195
|
-
return e.type === "slot" ?
|
|
217
|
+
const s = $e, d = ke, u = Ve, n = ge, y = he, E = Ee, D = Re, G = Ce, F = we, q = Se, O = Pe, A = Ue, c = Me, i = Ne, M = Ie, _ = Fe;
|
|
218
|
+
return e.type === "slot" ? $(e.$slots, e.prop, {
|
|
196
219
|
key: 0,
|
|
197
220
|
slotRow: { ...l },
|
|
198
221
|
value: r.value,
|
|
199
|
-
updateModelValue:
|
|
200
|
-
}, void 0, !0) : (t(), p(
|
|
222
|
+
updateModelValue: Z
|
|
223
|
+
}, void 0, !0) : (t(), p(_, {
|
|
201
224
|
key: 1,
|
|
202
225
|
ref_key: "FormItemRef",
|
|
203
|
-
ref:
|
|
226
|
+
ref: le,
|
|
204
227
|
label: e.colon ? `${e.label}:` : e.label,
|
|
205
228
|
prop: e.prop,
|
|
206
229
|
rules: e.rules,
|
|
207
|
-
class:
|
|
208
|
-
},
|
|
230
|
+
class: H(e.className)
|
|
231
|
+
}, x({
|
|
209
232
|
default: m(() => [
|
|
210
|
-
|
|
233
|
+
$(e.$slots, `${e.prop}-prepend`, {
|
|
211
234
|
slotRow: { props: l }
|
|
212
235
|
}, void 0, !0),
|
|
213
|
-
e.read ? (t(),
|
|
214
|
-
e.type === "itemSlot" && e.$slots[`${e.prop}-slot`] ?
|
|
236
|
+
e.read ? (t(), k(w, { key: 0 }, [
|
|
237
|
+
e.type === "itemSlot" && e.$slots[`${e.prop}-slot`] ? $(e.$slots, `${e.prop}-slot`, {
|
|
215
238
|
key: 0,
|
|
216
239
|
slotRow: { ...l },
|
|
217
240
|
value: r.value,
|
|
218
|
-
updateModelValue:
|
|
219
|
-
}, void 0, !0) : e.$slots[`${e.prop}-read-slot`] ?
|
|
241
|
+
updateModelValue: Z
|
|
242
|
+
}, void 0, !0) : e.$slots[`${e.prop}-read-slot`] ? $(e.$slots, `${e.prop}-read-slot`, {
|
|
220
243
|
key: 1,
|
|
221
|
-
value:
|
|
244
|
+
value: X(e.type),
|
|
222
245
|
slotRow: { ...l }
|
|
223
|
-
}, void 0, !0) : e.$slots[`${e.type}-read-slot`] ?
|
|
246
|
+
}, void 0, !0) : e.$slots[`${e.type}-read-slot`] ? $(e.$slots, `${e.type}-read-slot`, {
|
|
224
247
|
key: 2,
|
|
225
|
-
value:
|
|
248
|
+
value: X(e.type),
|
|
226
249
|
slotRow: { ...l }
|
|
227
|
-
}, void 0, !0) : (t(),
|
|
228
|
-
], 64)) : (t(),
|
|
229
|
-
e.type === "label" ? (t(),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
], 64)) :
|
|
233
|
-
e.labelNumber ? (t(), p(
|
|
250
|
+
}, void 0, !0) : (t(), k("div", Ae, C(X(e.type)), 1))
|
|
251
|
+
], 64)) : (t(), k(w, { key: 1 }, [
|
|
252
|
+
e.type === "label" ? (t(), k("span", Te, [
|
|
253
|
+
g(f)(r.value) ? (t(), k(w, { key: 0 }, [
|
|
254
|
+
S(C((l == null ? void 0 : l.labelEmpty) || "--"), 1)
|
|
255
|
+
], 64)) : N("", !0),
|
|
256
|
+
e.labelNumber ? (t(), p(u, {
|
|
234
257
|
key: 1,
|
|
235
258
|
type: Number(r.value) < 0 ? "danger" : ""
|
|
236
259
|
}, {
|
|
237
260
|
default: m(() => [
|
|
238
|
-
|
|
261
|
+
S(C(r.value), 1)
|
|
239
262
|
]),
|
|
240
263
|
_: 1
|
|
241
|
-
}, 8, ["type"])) : (t(),
|
|
242
|
-
|
|
264
|
+
}, 8, ["type"])) : (t(), k(w, { key: 2 }, [
|
|
265
|
+
S(C(r.value), 1)
|
|
243
266
|
], 64))
|
|
244
|
-
])) : e.type === "input" ? (t(), p(
|
|
267
|
+
])) : e.type === "input" ? (t(), p(n, v({
|
|
245
268
|
key: 1,
|
|
246
269
|
modelValue: r.value,
|
|
247
270
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => r.value = o),
|
|
@@ -249,11 +272,13 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
249
272
|
clearable: !0,
|
|
250
273
|
placeholder: `请输入${e.label}`,
|
|
251
274
|
disabled: e.disabled
|
|
252
|
-
}, e.attrs, b(e.listeners || {})
|
|
275
|
+
}, e.attrs, b(e.listeners || {}), {
|
|
276
|
+
onChange: a[1] || (a[1] = (o) => Y(r.value, e.prop))
|
|
277
|
+
}), x({ _: 2 }, [
|
|
253
278
|
e.$slots[`${e.prop}-input-prefix`] ? {
|
|
254
279
|
name: "prefix",
|
|
255
280
|
fn: m(() => [
|
|
256
|
-
|
|
281
|
+
$(e.$slots, `${e.prop}-input-prefix`, {
|
|
257
282
|
slotRow: { ...l }
|
|
258
283
|
}, void 0, !0)
|
|
259
284
|
]),
|
|
@@ -262,7 +287,7 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
262
287
|
e.$slots[`${e.prop}-input-suffix`] ? {
|
|
263
288
|
name: "suffix",
|
|
264
289
|
fn: m(() => [
|
|
265
|
-
|
|
290
|
+
$(e.$slots, `${e.prop}-input-suffix`, {
|
|
266
291
|
slotRow: { ...l }
|
|
267
292
|
}, void 0, !0)
|
|
268
293
|
]),
|
|
@@ -271,7 +296,7 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
271
296
|
e.$slots[`${e.prop}-input-prepend`] ? {
|
|
272
297
|
name: "prepend",
|
|
273
298
|
fn: m(() => [
|
|
274
|
-
|
|
299
|
+
$(e.$slots, `${e.prop}-input-prepend`, {
|
|
275
300
|
slotRow: { ...l }
|
|
276
301
|
}, void 0, !0)
|
|
277
302
|
]),
|
|
@@ -280,16 +305,16 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
280
305
|
e.$slots[`${e.prop}-input-append`] ? {
|
|
281
306
|
name: "append",
|
|
282
307
|
fn: m(() => [
|
|
283
|
-
|
|
308
|
+
$(e.$slots, `${e.prop}-input-append`, {
|
|
284
309
|
slotRow: { ...l }
|
|
285
310
|
}, void 0, !0)
|
|
286
311
|
]),
|
|
287
312
|
key: "3"
|
|
288
313
|
} : void 0
|
|
289
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "textarea" ? (t(), p(
|
|
314
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "textarea" ? (t(), p(n, v({
|
|
290
315
|
key: 2,
|
|
291
316
|
modelValue: r.value,
|
|
292
|
-
"onUpdate:modelValue": a[
|
|
317
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => r.value = o),
|
|
293
318
|
modelModifiers: { trim: !0 },
|
|
294
319
|
type: "textarea",
|
|
295
320
|
rows: 4,
|
|
@@ -297,73 +322,73 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
297
322
|
maxlength: "100",
|
|
298
323
|
placeholder: `请输入${e.label}`,
|
|
299
324
|
disabled: e.disabled
|
|
300
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "number" ? (t(), p(
|
|
325
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "number" ? (t(), p(y, v({
|
|
301
326
|
key: 3,
|
|
302
327
|
modelValue: r.value,
|
|
303
|
-
"onUpdate:modelValue": a[
|
|
328
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => r.value = o),
|
|
304
329
|
modelModifiers: { trim: !0 },
|
|
305
330
|
placeholder: `请输入${e.label}`,
|
|
306
331
|
max: 99999999,
|
|
307
332
|
min: 0,
|
|
308
333
|
disabled: e.disabled
|
|
309
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (t(), p(
|
|
334
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (t(), p(G, v({
|
|
310
335
|
key: 4,
|
|
311
336
|
modelValue: r.value,
|
|
312
|
-
"onUpdate:modelValue": a[
|
|
337
|
+
"onUpdate:modelValue": a[4] || (a[4] = (o) => r.value = o),
|
|
313
338
|
disabled: e.disabled
|
|
314
339
|
}, e.attrs, b(e.listeners || {}), {
|
|
315
|
-
onChange: a[
|
|
340
|
+
onChange: a[5] || (a[5] = (o) => Y(r.value, e.prop))
|
|
316
341
|
}), {
|
|
317
342
|
default: m(() => [
|
|
318
|
-
e.radioType ? e.radioType === "button" ? (t(!0),
|
|
319
|
-
key:
|
|
343
|
+
e.radioType ? e.radioType === "button" ? (t(!0), k(w, { key: 1 }, J(e.options, (o, V) => (t(), p(D, {
|
|
344
|
+
key: V,
|
|
320
345
|
value: o.value,
|
|
321
346
|
disabled: o.disabled
|
|
322
347
|
}, {
|
|
323
348
|
default: m(() => [
|
|
324
|
-
|
|
349
|
+
S(C(o.label), 1)
|
|
325
350
|
]),
|
|
326
351
|
_: 2
|
|
327
|
-
}, 1032, ["value", "disabled"]))), 128)) :
|
|
328
|
-
key:
|
|
352
|
+
}, 1032, ["value", "disabled"]))), 128)) : N("", !0) : (t(!0), k(w, { key: 0 }, J(e.options, (o, V) => (t(), p(E, {
|
|
353
|
+
key: V,
|
|
329
354
|
value: o.value,
|
|
330
355
|
disabled: o.disabled
|
|
331
356
|
}, {
|
|
332
357
|
default: m(() => [
|
|
333
|
-
|
|
358
|
+
S(C(o.label), 1)
|
|
334
359
|
]),
|
|
335
360
|
_: 2
|
|
336
361
|
}, 1032, ["value", "disabled"]))), 128))
|
|
337
362
|
]),
|
|
338
363
|
_: 1
|
|
339
|
-
}, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (t(), p(
|
|
364
|
+
}, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (t(), p(q, v({
|
|
340
365
|
key: 5,
|
|
341
366
|
modelValue: r.value,
|
|
342
|
-
"onUpdate:modelValue": a[
|
|
367
|
+
"onUpdate:modelValue": a[6] || (a[6] = (o) => r.value = o),
|
|
343
368
|
disabled: e.disabled
|
|
344
369
|
}, e.attrs, b(e.listeners || {})), {
|
|
345
370
|
default: m(() => [
|
|
346
|
-
(t(!0),
|
|
347
|
-
key:
|
|
371
|
+
(t(!0), k(w, null, J(e.options, (o, V) => (t(), p(F, {
|
|
372
|
+
key: V,
|
|
348
373
|
value: o.value,
|
|
349
374
|
label: o.label,
|
|
350
375
|
disabled: o.disabled
|
|
351
376
|
}, null, 8, ["value", "label", "disabled"]))), 128))
|
|
352
377
|
]),
|
|
353
378
|
_: 1
|
|
354
|
-
}, 16, ["modelValue", "disabled"])) : e.type === "select" ? (t(), p(
|
|
379
|
+
}, 16, ["modelValue", "disabled"])) : e.type === "select" ? (t(), p(A, v({
|
|
355
380
|
key: 6,
|
|
356
381
|
modelValue: r.value,
|
|
357
|
-
"onUpdate:modelValue": a[
|
|
382
|
+
"onUpdate:modelValue": a[8] || (a[8] = (o) => r.value = o),
|
|
358
383
|
clearable: !0,
|
|
359
384
|
placeholder: `请选择${e.label}`,
|
|
360
385
|
disabled: e.disabled
|
|
361
386
|
}, e.attrs, b(e.listeners || {}), {
|
|
362
|
-
onChange: a[
|
|
363
|
-
}),
|
|
387
|
+
onChange: a[9] || (a[9] = (o) => Y(r.value, e.prop))
|
|
388
|
+
}), x({
|
|
364
389
|
default: m(() => [
|
|
365
|
-
(t(!0),
|
|
366
|
-
key: `${
|
|
390
|
+
(t(!0), k(w, null, J(e.options, (o, V) => (t(), p(O, {
|
|
391
|
+
key: `${V}-${o.value}`,
|
|
367
392
|
label: o.label,
|
|
368
393
|
value: o.value,
|
|
369
394
|
disabled: o.disabled
|
|
@@ -371,101 +396,101 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
371
396
|
]),
|
|
372
397
|
_: 2
|
|
373
398
|
}, [
|
|
374
|
-
e.attrs && e.attrs.multiple && !
|
|
399
|
+
e.attrs && e.attrs.multiple && !g(f)(e.options) && e.selectAll ? {
|
|
375
400
|
name: "header",
|
|
376
401
|
fn: m(() => [
|
|
377
|
-
|
|
378
|
-
modelValue:
|
|
379
|
-
"onUpdate:modelValue": a[
|
|
380
|
-
indeterminate:
|
|
381
|
-
onChange:
|
|
402
|
+
I(F, {
|
|
403
|
+
modelValue: L.value,
|
|
404
|
+
"onUpdate:modelValue": a[7] || (a[7] = (o) => L.value = o),
|
|
405
|
+
indeterminate: j.value,
|
|
406
|
+
onChange: ie
|
|
382
407
|
}, {
|
|
383
408
|
default: m(() => [
|
|
384
|
-
|
|
409
|
+
S(" 全部 ")
|
|
385
410
|
]),
|
|
386
411
|
_: 1
|
|
387
412
|
}, 8, ["modelValue", "indeterminate"])
|
|
388
413
|
]),
|
|
389
414
|
key: "0"
|
|
390
415
|
} : void 0
|
|
391
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "date" ? (t(), p(
|
|
416
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "date" ? (t(), p(c, v({
|
|
392
417
|
key: 7,
|
|
393
418
|
modelValue: r.value,
|
|
394
|
-
"onUpdate:modelValue": a[
|
|
419
|
+
"onUpdate:modelValue": a[10] || (a[10] = (o) => r.value = o),
|
|
395
420
|
type: "date",
|
|
396
421
|
clearable: !0,
|
|
397
422
|
placeholder: `请选择${e.label}`,
|
|
398
423
|
disabled: e.disabled
|
|
399
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "datetimerange" ? (t(), p(
|
|
424
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "datetimerange" ? (t(), p(c, v({
|
|
400
425
|
key: 8,
|
|
401
426
|
modelValue: r.value,
|
|
402
|
-
"onUpdate:modelValue": a[
|
|
427
|
+
"onUpdate:modelValue": a[11] || (a[11] = (o) => r.value = o),
|
|
403
428
|
type: "datetimerange",
|
|
404
429
|
clearable: !0,
|
|
405
430
|
"start-placeholder": "开始时间",
|
|
406
431
|
"end-placeholder": "结束时间"
|
|
407
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "cascader" ? (t(), p(
|
|
432
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "cascader" ? (t(), p(i, v({
|
|
408
433
|
key: 9,
|
|
409
434
|
modelValue: r.value,
|
|
410
|
-
"onUpdate:modelValue": a[
|
|
435
|
+
"onUpdate:modelValue": a[12] || (a[12] = (o) => r.value = o),
|
|
411
436
|
clearable: !0,
|
|
412
437
|
placeholder: `请选择${e.label}`,
|
|
413
438
|
options: e.options
|
|
414
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (t(), p(
|
|
439
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (t(), p(i, v({
|
|
415
440
|
key: 10,
|
|
416
441
|
modelValue: r.value,
|
|
417
|
-
"onUpdate:modelValue": a[
|
|
442
|
+
"onUpdate:modelValue": a[13] || (a[13] = (o) => r.value = o),
|
|
418
443
|
clearable: !0,
|
|
419
444
|
placeholder: `请选择${e.label}`,
|
|
420
445
|
options: e.options
|
|
421
|
-
}, e.attrs, { props:
|
|
446
|
+
}, e.attrs, { props: ne.value }, b(e.listeners || {})), null, 16, ["modelValue", "placeholder", "options", "props"])) : e.type === "switch" ? (t(), p(M, v({
|
|
422
447
|
key: 11,
|
|
423
448
|
modelValue: r.value,
|
|
424
|
-
"onUpdate:modelValue": a[
|
|
425
|
-
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "inputRange" ? (t(),
|
|
426
|
-
|
|
427
|
-
modelValue:
|
|
428
|
-
"onUpdate:modelValue": a[
|
|
449
|
+
"onUpdate:modelValue": a[14] || (a[14] = (o) => r.value = o)
|
|
450
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "inputRange" ? (t(), k("div", Be, [
|
|
451
|
+
I(n, v({
|
|
452
|
+
modelValue: P.value,
|
|
453
|
+
"onUpdate:modelValue": a[15] || (a[15] = (o) => P.value = o),
|
|
429
454
|
modelModifiers: { trim: !0 },
|
|
430
455
|
clearable: !0,
|
|
431
456
|
placeholder: `请输入起始${e.label}`,
|
|
432
457
|
disabled: e.disabled
|
|
433
|
-
}, e.attrs &&
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
modelValue:
|
|
437
|
-
"onUpdate:modelValue": a[
|
|
458
|
+
}, e.attrs && g(h)(e.attrs || {}, e.rangeProps[0] || "start"), b(e.listeners && g(h)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
|
|
459
|
+
S(" " + C(e.rangeSeparator) + " ", 1),
|
|
460
|
+
I(n, v({
|
|
461
|
+
modelValue: U.value,
|
|
462
|
+
"onUpdate:modelValue": a[16] || (a[16] = (o) => U.value = o),
|
|
438
463
|
modelModifiers: { trim: !0 },
|
|
439
464
|
clearable: !0,
|
|
440
465
|
placeholder: `请输入截止${e.label}`,
|
|
441
466
|
disabled: e.disabled
|
|
442
|
-
}, e.attrs &&
|
|
443
|
-
])) : e.type === "inputNumberRange" ? (t(),
|
|
444
|
-
|
|
445
|
-
modelValue:
|
|
446
|
-
"onUpdate:modelValue": a[
|
|
467
|
+
}, e.attrs && g(h)(e.attrs || {}, e.rangeProps[1] || "end"), b(e.listeners && g(h)(e.listeners || {}, e.rangeProps[1] || "end") || {})), null, 16, ["modelValue", "placeholder", "disabled"])
|
|
468
|
+
])) : e.type === "inputNumberRange" ? (t(), k("div", Le, [
|
|
469
|
+
I(y, v({
|
|
470
|
+
modelValue: P.value,
|
|
471
|
+
"onUpdate:modelValue": a[17] || (a[17] = (o) => P.value = o),
|
|
447
472
|
modelModifiers: { trim: !0 },
|
|
448
473
|
clearable: !0,
|
|
449
474
|
placeholder: `请输入起始${e.label}`,
|
|
450
475
|
disabled: e.disabled
|
|
451
|
-
}, e.attrs &&
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue": a[
|
|
476
|
+
}, e.attrs && g(h)(e.attrs || {}, e.rangeProps[0] || "start"), b(e.listeners && g(h)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
|
|
477
|
+
S(" " + C(e.rangeSeparator) + " ", 1),
|
|
478
|
+
I(y, v({
|
|
479
|
+
modelValue: U.value,
|
|
480
|
+
"onUpdate:modelValue": a[18] || (a[18] = (o) => U.value = o),
|
|
456
481
|
modelModifiers: { trim: !0 },
|
|
457
482
|
clearable: !0,
|
|
458
483
|
placeholder: `请输入截止${e.label}`,
|
|
459
484
|
disabled: e.disabled
|
|
460
|
-
}, e.attrs &&
|
|
461
|
-
])) : e.type === "itemSlot" ?
|
|
485
|
+
}, e.attrs && g(h)(e.attrs || {}, e.rangeProps[1] || "end"), b(e.listeners && g(h)(e.listeners || {}, e.rangeProps[1] || "end") || {})), null, 16, ["modelValue", "placeholder", "disabled"])
|
|
486
|
+
])) : e.type === "itemSlot" ? $(e.$slots, `${e.prop}-slot`, {
|
|
462
487
|
key: 14,
|
|
463
488
|
slotRow: { ...l },
|
|
464
489
|
value: r.value,
|
|
465
|
-
updateModelValue:
|
|
466
|
-
}, void 0, !0) :
|
|
490
|
+
updateModelValue: Z
|
|
491
|
+
}, void 0, !0) : N("", !0)
|
|
467
492
|
], 64)),
|
|
468
|
-
|
|
493
|
+
$(e.$slots, `${e.prop}-append`, {
|
|
469
494
|
slotRow: { ...l }
|
|
470
495
|
}, void 0, !0)
|
|
471
496
|
]),
|
|
@@ -474,10 +499,10 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
474
499
|
e.labelClass || e.tooltip ? {
|
|
475
500
|
name: "label",
|
|
476
501
|
fn: m(() => [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
class:
|
|
480
|
-
},
|
|
502
|
+
te("div", Oe, [
|
|
503
|
+
te("span", {
|
|
504
|
+
class: H(e.labelClass)
|
|
505
|
+
}, C(e.label), 3),
|
|
481
506
|
e.tooltip ? (t(), p(d, {
|
|
482
507
|
key: 0,
|
|
483
508
|
effect: "dark",
|
|
@@ -485,27 +510,27 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
485
510
|
content: e.tooltip
|
|
486
511
|
}, {
|
|
487
512
|
default: m(() => [
|
|
488
|
-
|
|
489
|
-
class:
|
|
513
|
+
I(s, {
|
|
514
|
+
class: H(["ml-4", e.labelIconClass])
|
|
490
515
|
}, {
|
|
491
516
|
default: m(() => [
|
|
492
|
-
e.$slots["tooltip-icon"] ?
|
|
517
|
+
e.$slots["tooltip-icon"] ? $(e.$slots, "tooltip-icon", {
|
|
493
518
|
key: 0,
|
|
494
519
|
slotRow: { ...l }
|
|
495
|
-
}, void 0, !0) : e.$slots[`${e.prop}-label-icon`] ?
|
|
520
|
+
}, void 0, !0) : e.$slots[`${e.prop}-label-icon`] ? $(e.$slots, `${e.prop}-label-icon`, {
|
|
496
521
|
key: 1,
|
|
497
522
|
slotRow: { ...l }
|
|
498
|
-
}, void 0, !0) :
|
|
523
|
+
}, void 0, !0) : N("", !0)
|
|
499
524
|
]),
|
|
500
525
|
_: 3
|
|
501
526
|
}, 8, ["class"])
|
|
502
527
|
]),
|
|
503
528
|
_: 3
|
|
504
|
-
}, 8, ["content"])) :
|
|
505
|
-
e.colon ? (t(),
|
|
529
|
+
}, 8, ["content"])) : N("", !0),
|
|
530
|
+
e.colon ? (t(), k("span", {
|
|
506
531
|
key: 1,
|
|
507
|
-
class:
|
|
508
|
-
}, ":", 2)) :
|
|
532
|
+
class: H(e.labelClass)
|
|
533
|
+
}, ":", 2)) : N("", !0)
|
|
509
534
|
])
|
|
510
535
|
]),
|
|
511
536
|
key: "0"
|