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