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