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