@lingshugroup/web-plus 1.0.14 → 1.0.16
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 -2
- 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/dialog/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +74 -56
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +55 -51
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.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 +2 -2
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +218 -189
- 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/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 +218 -193
- 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 C = (L, Q) => pe(L, "name", { value: Q, 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 B, computed as ve, watch as H, renderSlot as $, openBlock as t, createBlock as p, normalizeClass as J, createSlots as x, withCtx as m, createElementBlock as k, Fragment as w, toDisplayString as R, unref as g, createTextVNode as S, createCommentVNode as N, mergeProps as v, toHandlers as b, renderList as K, 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 Ce, ElRadioGroup as Re } 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(L, { expose: Q, emit: ne }) {
|
|
63
|
+
const l = L, ee = ne, r = me(L, "modelValue"), le = B(), ue = 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
|
+
}), j = B(!1), D = B(!1);
|
|
70
|
+
function ie(e) {
|
|
71
|
+
D.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
|
+
C(ie, "handleSelectCheckAll");
|
|
74
|
+
const P = B(), U = B();
|
|
75
|
+
H(
|
|
76
76
|
() => l.value,
|
|
77
77
|
(e) => {
|
|
78
78
|
l.isValue && (r.value = e);
|
|
@@ -81,32 +81,32 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
81
81
|
immediate: !0,
|
|
82
82
|
deep: !0
|
|
83
83
|
}
|
|
84
|
-
),
|
|
84
|
+
), H(
|
|
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
|
+
), H(
|
|
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 n = d.map((
|
|
97
|
+
const n = d.map((u) => u.value);
|
|
98
98
|
if (s && s.multiple) {
|
|
99
99
|
if (!f(e.value)) {
|
|
100
|
-
const
|
|
101
|
-
e.value.forEach((
|
|
102
|
-
n.includes(
|
|
103
|
-
}),
|
|
100
|
+
const u = [];
|
|
101
|
+
e.value.forEach((y) => {
|
|
102
|
+
n.includes(y) && u.push(y);
|
|
103
|
+
}), ye(u, e.value) || (r.value = u);
|
|
104
104
|
}
|
|
105
105
|
if (f(e.value))
|
|
106
|
-
|
|
106
|
+
j.value = !1, D.value = !1;
|
|
107
107
|
else {
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
const u = e.value.length === d.length;
|
|
109
|
+
j.value = u, D.value = !u;
|
|
110
110
|
}
|
|
111
111
|
} else s && s.filterable && s["allow-create"] ? r.value = e.value : !f(n) && !f(e.value) && (n.includes(e.value) || (r.value = ""));
|
|
112
112
|
}
|
|
@@ -115,45 +115,68 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
115
115
|
immediate: !0,
|
|
116
116
|
deep: !0
|
|
117
117
|
}
|
|
118
|
-
),
|
|
119
|
-
[() =>
|
|
118
|
+
), H(
|
|
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
|
|
128
|
+
function W(e, a, s) {
|
|
129
129
|
var n;
|
|
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 = (n = a.find((
|
|
131
|
+
return a && !f(e) && (s && Array.isArray(e) ? d = e.map((u) => {
|
|
132
|
+
var y;
|
|
133
|
+
return (y = a.find((E) => E.value === u)) == null ? void 0 : y.label;
|
|
134
|
+
}).join(",") : d = (n = a.find((u) => u.value === e)) == null ? void 0 : n.label), d;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
C(W, "getOptionsLabel");
|
|
137
|
+
function X(e, a, s = 0, d = "") {
|
|
138
|
+
var u, y, E, G, q, O;
|
|
138
139
|
let n = d;
|
|
139
140
|
if (!f(e) && !f(a)) {
|
|
140
|
-
const
|
|
141
|
-
if (!f(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
const z = ((y = (u = l.attrs) == null ? void 0 : u.props) == null ? void 0 : y.value) || "value", A = ((G = (E = l.attrs) == null ? void 0 : E.props) == null ? void 0 : G.label) || "label", T = e[s];
|
|
142
|
+
if (!f(T))
|
|
143
|
+
if ((O = (q = l.attrs) == null ? void 0 : q.props) == null ? void 0 : O.checkStrictly) {
|
|
144
|
+
const i = /* @__PURE__ */ C((_, o) => {
|
|
145
|
+
for (const V of _) {
|
|
146
|
+
if (V[z] === 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, T);
|
|
155
|
+
M && (n = M[A]);
|
|
156
|
+
} else {
|
|
157
|
+
const i = a.find((M) => M[z] === T);
|
|
158
|
+
l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 ? n = `${i == null ? void 0 : i[A]}` : n = `${n ? `${n}/` : ""}${i == null ? void 0 : i[A]}`, f(i == null ? void 0 : i.children) || (n = X(e, i == null ? void 0 : i.children, s + 1, n));
|
|
159
|
+
}
|
|
145
160
|
}
|
|
146
161
|
return n;
|
|
147
162
|
}
|
|
148
|
-
|
|
149
|
-
function
|
|
163
|
+
C(X, "seachCascaderOptions");
|
|
164
|
+
function ae(e, a, s) {
|
|
165
|
+
var n, u;
|
|
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 = (u = (n = l.attrs) == null ? void 0 : n.props) == null ? void 0 : u.checkStrictly;
|
|
171
|
+
e.forEach((E) => {
|
|
172
|
+
d = `${d ? `${d},` : ""}${X(y ? [E] : E, a)}`;
|
|
173
|
+
});
|
|
174
|
+
} else
|
|
175
|
+
d = X(e, a);
|
|
176
|
+
return d;
|
|
154
177
|
}
|
|
155
|
-
|
|
156
|
-
function
|
|
178
|
+
C(ae, "getCascaderOptionsLabel");
|
|
179
|
+
function Y(e) {
|
|
157
180
|
var s, d, n;
|
|
158
181
|
const a = r.value;
|
|
159
182
|
if (l != null && l.formatReadValue)
|
|
@@ -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 W(a, l.options);
|
|
168
191
|
case "checkbox":
|
|
169
|
-
return
|
|
192
|
+
return W(a, l.options, !0);
|
|
170
193
|
case "select":
|
|
171
|
-
return
|
|
194
|
+
return W(a, l.options, (s = l.attrs) == null ? void 0 : s.multiple);
|
|
172
195
|
case "cascader":
|
|
173
|
-
return
|
|
196
|
+
return ae(a, l.options, ((n = (d = l.attrs) == null ? void 0 : d.props) == null ? void 0 : n.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
|
+
C(Y, "readValue");
|
|
207
|
+
function F(e, a) {
|
|
208
|
+
ee("onChange", e, a);
|
|
186
209
|
}
|
|
187
|
-
|
|
188
|
-
function
|
|
210
|
+
C(F, "onChange");
|
|
211
|
+
function Z(e) {
|
|
189
212
|
r.value = e;
|
|
190
213
|
}
|
|
191
|
-
return
|
|
192
|
-
FormItemRef:
|
|
214
|
+
return C(Z, "updateModelValue"), Q({
|
|
215
|
+
FormItemRef: le
|
|
193
216
|
}), (e, a) => {
|
|
194
|
-
const s =
|
|
195
|
-
return e.type === "slot" ?
|
|
217
|
+
const s = $e, d = ke, n = Ve, u = ge, y = he, E = Ee, G = Ce, q = Re, O = we, z = Se, A = Pe, T = 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: J(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: Y(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: Y(e.type),
|
|
226
249
|
slotRow: { ...l }
|
|
227
|
-
}, void 0, !0) : (t(),
|
|
228
|
-
], 64)) : (t(),
|
|
229
|
-
e.type === "label" ? (t(),
|
|
230
|
-
|
|
231
|
-
R(
|
|
232
|
-
], 64)) :
|
|
250
|
+
}, void 0, !0) : (t(), k("div", Ae, R(Y(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(R((l == null ? void 0 : l.labelEmpty) || "--"), 1)
|
|
255
|
+
], 64)) : N("", !0),
|
|
233
256
|
e.labelNumber ? (t(), p(n, {
|
|
234
257
|
key: 1,
|
|
235
258
|
type: Number(r.value) < 0 ? "danger" : ""
|
|
236
259
|
}, {
|
|
237
260
|
default: m(() => [
|
|
238
|
-
R(
|
|
261
|
+
S(R(r.value), 1)
|
|
239
262
|
]),
|
|
240
263
|
_: 1
|
|
241
|
-
}, 8, ["type"])) : (t(),
|
|
242
|
-
R(
|
|
264
|
+
}, 8, ["type"])) : (t(), k(w, { key: 2 }, [
|
|
265
|
+
S(R(r.value), 1)
|
|
243
266
|
], 64))
|
|
244
|
-
])) : e.type === "input" ? (t(), p(
|
|
267
|
+
])) : e.type === "input" ? (t(), p(u, 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) => F(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(u, 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(q, 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) => F(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 }, K(e.options, (o, V) => (t(), p(G, {
|
|
344
|
+
key: V,
|
|
320
345
|
value: o.value,
|
|
321
346
|
disabled: o.disabled
|
|
322
347
|
}, {
|
|
323
348
|
default: m(() => [
|
|
324
|
-
R(
|
|
349
|
+
S(R(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 }, K(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
|
-
R(
|
|
358
|
+
S(R(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(z, 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, K(e.options, (o, V) => (t(), p(O, {
|
|
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(T, 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) => F(r.value, e.prop))
|
|
388
|
+
}), x({
|
|
364
389
|
default: m(() => [
|
|
365
|
-
(t(!0),
|
|
366
|
-
key: `${
|
|
390
|
+
(t(!0), k(w, null, K(e.options, (o, V) => (t(), p(A, {
|
|
391
|
+
key: `${V}-${o.value}`,
|
|
367
392
|
label: o.label,
|
|
368
393
|
value: o.value,
|
|
369
394
|
disabled: o.disabled
|
|
@@ -371,101 +396,105 @@ 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(O, {
|
|
403
|
+
modelValue: j.value,
|
|
404
|
+
"onUpdate:modelValue": a[7] || (a[7] = (o) => j.value = o),
|
|
405
|
+
indeterminate: D.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 || {})
|
|
439
|
+
}, e.attrs, b(e.listeners || {}), {
|
|
440
|
+
onChange: a[13] || (a[13] = (o) => F(r.value, e.prop))
|
|
441
|
+
}), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (t(), p(i, v({
|
|
415
442
|
key: 10,
|
|
416
443
|
modelValue: r.value,
|
|
417
|
-
"onUpdate:modelValue": a[
|
|
444
|
+
"onUpdate:modelValue": a[14] || (a[14] = (o) => r.value = o),
|
|
418
445
|
clearable: !0,
|
|
419
446
|
placeholder: `请选择${e.label}`,
|
|
420
447
|
options: e.options
|
|
421
|
-
}, e.attrs, { props:
|
|
448
|
+
}, e.attrs, { props: ue.value }, b(e.listeners || {}), {
|
|
449
|
+
onChange: a[15] || (a[15] = (o) => F(r.value, e.prop))
|
|
450
|
+
}), null, 16, ["modelValue", "placeholder", "options", "props"])) : e.type === "switch" ? (t(), p(M, v({
|
|
422
451
|
key: 11,
|
|
423
452
|
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[
|
|
453
|
+
"onUpdate:modelValue": a[16] || (a[16] = (o) => r.value = o)
|
|
454
|
+
}, e.attrs, b(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "inputRange" ? (t(), k("div", Be, [
|
|
455
|
+
I(u, v({
|
|
456
|
+
modelValue: P.value,
|
|
457
|
+
"onUpdate:modelValue": a[17] || (a[17] = (o) => P.value = o),
|
|
429
458
|
modelModifiers: { trim: !0 },
|
|
430
459
|
clearable: !0,
|
|
431
460
|
placeholder: `请输入起始${e.label}`,
|
|
432
461
|
disabled: e.disabled
|
|
433
|
-
}, e.attrs &&
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
modelValue:
|
|
437
|
-
"onUpdate:modelValue": a[
|
|
462
|
+
}, 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"]),
|
|
463
|
+
S(" " + R(e.rangeSeparator) + " ", 1),
|
|
464
|
+
I(u, v({
|
|
465
|
+
modelValue: U.value,
|
|
466
|
+
"onUpdate:modelValue": a[18] || (a[18] = (o) => U.value = o),
|
|
438
467
|
modelModifiers: { trim: !0 },
|
|
439
468
|
clearable: !0,
|
|
440
469
|
placeholder: `请输入截止${e.label}`,
|
|
441
470
|
disabled: e.disabled
|
|
442
|
-
}, e.attrs &&
|
|
443
|
-
])) : e.type === "inputNumberRange" ? (t(),
|
|
444
|
-
|
|
445
|
-
modelValue:
|
|
446
|
-
"onUpdate:modelValue": a[
|
|
471
|
+
}, 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"])
|
|
472
|
+
])) : e.type === "inputNumberRange" ? (t(), k("div", Le, [
|
|
473
|
+
I(y, v({
|
|
474
|
+
modelValue: P.value,
|
|
475
|
+
"onUpdate:modelValue": a[19] || (a[19] = (o) => P.value = o),
|
|
447
476
|
modelModifiers: { trim: !0 },
|
|
448
477
|
clearable: !0,
|
|
449
478
|
placeholder: `请输入起始${e.label}`,
|
|
450
479
|
disabled: e.disabled
|
|
451
|
-
}, e.attrs &&
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue": a[
|
|
480
|
+
}, 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"]),
|
|
481
|
+
S(" " + R(e.rangeSeparator) + " ", 1),
|
|
482
|
+
I(y, v({
|
|
483
|
+
modelValue: U.value,
|
|
484
|
+
"onUpdate:modelValue": a[20] || (a[20] = (o) => U.value = o),
|
|
456
485
|
modelModifiers: { trim: !0 },
|
|
457
486
|
clearable: !0,
|
|
458
487
|
placeholder: `请输入截止${e.label}`,
|
|
459
488
|
disabled: e.disabled
|
|
460
|
-
}, e.attrs &&
|
|
461
|
-
])) : e.type === "itemSlot" ?
|
|
489
|
+
}, 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"])
|
|
490
|
+
])) : e.type === "itemSlot" ? $(e.$slots, `${e.prop}-slot`, {
|
|
462
491
|
key: 14,
|
|
463
492
|
slotRow: { ...l },
|
|
464
493
|
value: r.value,
|
|
465
|
-
updateModelValue:
|
|
466
|
-
}, void 0, !0) :
|
|
494
|
+
updateModelValue: Z
|
|
495
|
+
}, void 0, !0) : N("", !0)
|
|
467
496
|
], 64)),
|
|
468
|
-
|
|
497
|
+
$(e.$slots, `${e.prop}-append`, {
|
|
469
498
|
slotRow: { ...l }
|
|
470
499
|
}, void 0, !0)
|
|
471
500
|
]),
|
|
@@ -474,10 +503,10 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
474
503
|
e.labelClass || e.tooltip ? {
|
|
475
504
|
name: "label",
|
|
476
505
|
fn: m(() => [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
class:
|
|
480
|
-
},
|
|
506
|
+
te("div", Oe, [
|
|
507
|
+
te("span", {
|
|
508
|
+
class: J(e.labelClass)
|
|
509
|
+
}, R(e.label), 3),
|
|
481
510
|
e.tooltip ? (t(), p(d, {
|
|
482
511
|
key: 0,
|
|
483
512
|
effect: "dark",
|
|
@@ -485,27 +514,27 @@ const Fe = { class: "ls-form-item-label" }, Ae = {
|
|
|
485
514
|
content: e.tooltip
|
|
486
515
|
}, {
|
|
487
516
|
default: m(() => [
|
|
488
|
-
|
|
489
|
-
class:
|
|
517
|
+
I(s, {
|
|
518
|
+
class: J(["ml-4", e.labelIconClass])
|
|
490
519
|
}, {
|
|
491
520
|
default: m(() => [
|
|
492
|
-
e.$slots["tooltip-icon"] ?
|
|
521
|
+
e.$slots["tooltip-icon"] ? $(e.$slots, "tooltip-icon", {
|
|
493
522
|
key: 0,
|
|
494
523
|
slotRow: { ...l }
|
|
495
|
-
}, void 0, !0) : e.$slots[`${e.prop}-label-icon`] ?
|
|
524
|
+
}, void 0, !0) : e.$slots[`${e.prop}-label-icon`] ? $(e.$slots, `${e.prop}-label-icon`, {
|
|
496
525
|
key: 1,
|
|
497
526
|
slotRow: { ...l }
|
|
498
|
-
}, void 0, !0) :
|
|
527
|
+
}, void 0, !0) : N("", !0)
|
|
499
528
|
]),
|
|
500
529
|
_: 3
|
|
501
530
|
}, 8, ["class"])
|
|
502
531
|
]),
|
|
503
532
|
_: 3
|
|
504
|
-
}, 8, ["content"])) :
|
|
505
|
-
e.colon ? (t(),
|
|
533
|
+
}, 8, ["content"])) : N("", !0),
|
|
534
|
+
e.colon ? (t(), k("span", {
|
|
506
535
|
key: 1,
|
|
507
|
-
class:
|
|
508
|
-
}, ":", 2)) :
|
|
536
|
+
class: J(e.labelClass)
|
|
537
|
+
}, ":", 2)) : N("", !0)
|
|
509
538
|
])
|
|
510
539
|
]),
|
|
511
540
|
key: "0"
|