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