@pungfe/element 0.4.7 → 0.4.9
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/dist/{advance-9uSUvfSa.cjs → advance-CGJooJ9e.cjs} +1 -1
- package/dist/{advance-_prBMiWi.js → advance-Ul1rTNcG.js} +5 -4
- package/dist/advance.cjs +1 -1
- package/dist/advance.js +1 -1
- package/dist/basic-CpsUaTZ6.cjs +1 -0
- package/dist/{basic-WMdw-HTg.js → basic-SegFTcxw.js} +155 -154
- package/dist/basic.cjs +1 -1
- package/dist/basic.js +1 -1
- package/dist/components/advance/XCascaderRequest.vue.d.ts +1 -1
- package/dist/components/advance/XFormRequestNext.vue.d.ts +1 -1
- package/dist/components/advance/XRequest.vue.d.ts +1 -1
- package/dist/components/advance/XSelectRequest.vue.d.ts +1 -1
- package/dist/components/advance/XTableFlex.vue.d.ts +1 -1
- package/dist/components/advance/XUploadOssNext.vue.d.ts +1 -1
- package/dist/components/basic/DatePicker.vue.d.ts +5 -2
- package/dist/components/basic/Form.vue.d.ts +1 -1
- package/dist/components/basic/Tabs.vue.d.ts +1 -1
- package/dist/constants/index.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/install.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +19 -19
- package/dist/basic-CUkdG8Cj.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./locales-DWPf4a6G.js";
|
|
2
|
-
import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as
|
|
3
|
-
import { Fragment as
|
|
2
|
+
import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as d, ElSelect as te, ElTabPane as f, ElTable as p, ElTableColumn as ne, ElTabs as m, ElUpload as h, useLocale as g } from "element-plus";
|
|
3
|
+
import { Fragment as _, computed as v, createBlock as y, createElementBlock as re, createSlots as b, createVNode as x, defineComponent as S, getCurrentInstance as C, getCurrentScope as ie, guardReactiveProps as w, inject as T, mergeModels as E, mergeProps as D, nextTick as ae, normalizeProps as O, onMounted as k, onScopeDispose as oe, onUnmounted as se, openBlock as A, provide as j, ref as ce, renderList as M, renderSlot as N, shallowRef as P, toValue as F, unref as I, useId as le, useModel as L, useTemplateRef as R, watch as z, withCtx as B } from "vue";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
5
|
var V = Object.defineProperty, H = (e, t) => {
|
|
6
6
|
let n = {};
|
|
@@ -13,9 +13,9 @@ var V = Object.defineProperty, H = (e, t) => {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
15
15
|
function U(e, t) {
|
|
16
|
-
return
|
|
16
|
+
return ie() ? (oe(e, t), !0) : !1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ue() {
|
|
19
19
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
20
20
|
e.delete(t);
|
|
21
21
|
};
|
|
@@ -35,7 +35,7 @@ function de() {
|
|
|
35
35
|
var W = typeof window < "u" && typeof document < "u";
|
|
36
36
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
37
37
|
var G = () => {};
|
|
38
|
-
function
|
|
38
|
+
function de(e, t) {
|
|
39
39
|
function n(...n) {
|
|
40
40
|
return new Promise((r, i) => {
|
|
41
41
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -47,7 +47,7 @@ function fe(e, t) {
|
|
|
47
47
|
}
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function fe(e, t = {}) {
|
|
51
51
|
let n, r, i = G, a = (e) => {
|
|
52
52
|
clearTimeout(e), i(), i = G;
|
|
53
53
|
}, o;
|
|
@@ -62,47 +62,47 @@ function pe(e, t = {}) {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function pe(e) {
|
|
66
66
|
return Array.isArray(e) ? e : [e];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return e ||
|
|
68
|
+
function me(e) {
|
|
69
|
+
return e || C();
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return fe(
|
|
71
|
+
function he(e, t = 200, n = {}) {
|
|
72
|
+
return de(fe(t, n), e);
|
|
73
73
|
}
|
|
74
74
|
function K(e, t = !0, n) {
|
|
75
|
-
|
|
75
|
+
me(n) ? k(e, n) : t ? e() : ae(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
77
|
+
function ge(e, t) {
|
|
78
|
+
return v(() => F(e).map((e) => F(e)).filter(t));
|
|
79
79
|
}
|
|
80
80
|
function q(e, t) {
|
|
81
|
-
return
|
|
81
|
+
return v(() => F(e).map((e) => F(e)).map(t));
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region node_modules/@vueuse/core/dist/index.js
|
|
85
|
-
var J = W ? window : void 0,
|
|
85
|
+
var J = W ? window : void 0, _e = W ? window.document : void 0;
|
|
86
86
|
W && window.navigator, W && window.location;
|
|
87
87
|
function Y(e) {
|
|
88
88
|
let t = F(e);
|
|
89
89
|
return t?.$el ?? t;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
let e = P(!1), t =
|
|
93
|
-
return t &&
|
|
91
|
+
function ve() {
|
|
92
|
+
let e = P(!1), t = C();
|
|
93
|
+
return t && k(() => {
|
|
94
94
|
e.value = !0;
|
|
95
95
|
}, t), e;
|
|
96
96
|
}
|
|
97
97
|
/* @__NO_SIDE_EFFECTS__ */
|
|
98
|
-
function
|
|
99
|
-
let t =
|
|
100
|
-
return
|
|
98
|
+
function ye(e) {
|
|
99
|
+
let t = ve();
|
|
100
|
+
return v(() => (t.value, !!e()));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
let { window: r = J, ...i } = n, a, o = /* @__PURE__ */
|
|
102
|
+
function be(e, t, n = {}) {
|
|
103
|
+
let { window: r = J, ...i } = n, a, o = /* @__PURE__ */ ye(() => r && "ResizeObserver" in r), s = () => {
|
|
104
104
|
a &&= (a.disconnect(), void 0);
|
|
105
|
-
}, c = z(
|
|
105
|
+
}, c = z(v(() => {
|
|
106
106
|
let t = F(e);
|
|
107
107
|
return Array.isArray(t) ? t.map((e) => Y(e)) : [Y(t)];
|
|
108
108
|
}), (e) => {
|
|
@@ -121,14 +121,14 @@ function xe(e, t, n = {}) {
|
|
|
121
121
|
stop: l
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function xe(e, t = {
|
|
125
125
|
width: 0,
|
|
126
126
|
height: 0
|
|
127
127
|
}, n = {}) {
|
|
128
|
-
let { window: r = J, box: i = "content-box" } = n, a =
|
|
128
|
+
let { window: r = J, box: i = "content-box" } = n, a = v(() => {
|
|
129
129
|
var t;
|
|
130
130
|
return (t = Y(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
131
|
-
}), o = P(t.width), s = P(t.height), { stop: c } =
|
|
131
|
+
}), o = P(t.width), s = P(t.height), { stop: c } = be(e, ([t]) => {
|
|
132
132
|
let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
133
133
|
if (r && a.value) {
|
|
134
134
|
let t = Y(e);
|
|
@@ -137,7 +137,7 @@ function Se(e, t = {
|
|
|
137
137
|
o.value = e.width, s.value = e.height;
|
|
138
138
|
}
|
|
139
139
|
} else if (n) {
|
|
140
|
-
let e =
|
|
140
|
+
let e = pe(n);
|
|
141
141
|
o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
142
142
|
} else o.value = t.contentRect.width, s.value = t.contentRect.height;
|
|
143
143
|
}, n);
|
|
@@ -159,7 +159,7 @@ function Se(e, t = {
|
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/components/basic/Button.vue
|
|
162
|
-
var
|
|
162
|
+
var Se = /* @__PURE__ */ S({
|
|
163
163
|
__name: "Button",
|
|
164
164
|
props: {
|
|
165
165
|
disabled: {
|
|
@@ -178,7 +178,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
178
178
|
emits: ["click"],
|
|
179
179
|
setup(e, { emit: n }) {
|
|
180
180
|
let r = n;
|
|
181
|
-
return (n, i) => (
|
|
181
|
+
return (n, i) => (A(), y(I(t), D({
|
|
182
182
|
type: e.type,
|
|
183
183
|
text: e.text,
|
|
184
184
|
link: e.link,
|
|
@@ -190,9 +190,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
190
190
|
_: 3
|
|
191
191
|
}, 16));
|
|
192
192
|
}
|
|
193
|
-
}), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"),
|
|
193
|
+
}), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"), Ce = Symbol("X_ELEMENT_INSTALLED"), we = Symbol("X_ELEMENT_IN_TABLE"), Te = Symbol("X_ELEMENT_IN_FORM"), Ee = Symbol("X_ELEMENT_IN_TABS"), De = Symbol("X_ELEMENT_IN_TAB_PANE"), Oe = Symbol("X_FORM_VALIDATIONS"), Q = Symbol("X_FORM_ITEM_VALIDATION"), ke = Symbol("X_TAB_PANE"), Ae = Symbol("X_TABS_MODEL_UPDATE_HOOK"), je = /* @__PURE__ */ S({
|
|
194
194
|
__name: "Cascader",
|
|
195
|
-
props: /* @__PURE__ */
|
|
195
|
+
props: /* @__PURE__ */ E({
|
|
196
196
|
data: {},
|
|
197
197
|
factory: { type: Function },
|
|
198
198
|
clearable: { type: Boolean },
|
|
@@ -210,17 +210,17 @@ var Ce = /* @__PURE__ */ x({
|
|
|
210
210
|
}),
|
|
211
211
|
emits: ["update:modelValue"],
|
|
212
212
|
setup(e) {
|
|
213
|
-
let { t } =
|
|
213
|
+
let { t } = g(T(X)), r = L(e, "modelValue"), i = v(() => e.data ?? []), a = v({
|
|
214
214
|
get: () => r.value,
|
|
215
215
|
set: (e) => {
|
|
216
216
|
r.value = e;
|
|
217
217
|
}
|
|
218
|
-
}), o =
|
|
218
|
+
}), o = T(Q, void 0);
|
|
219
219
|
if (o?.required) {
|
|
220
220
|
let { label: e, validator: n } = o;
|
|
221
221
|
o.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? t("el.validation.cascader", { label: e }) : n?.();
|
|
222
222
|
}
|
|
223
|
-
return (r, o) => (
|
|
223
|
+
return (r, o) => (A(), y(I(n), D({
|
|
224
224
|
modelValue: a.value,
|
|
225
225
|
"onUpdate:modelValue": o[0] ||= (e) => a.value = e
|
|
226
226
|
}, {
|
|
@@ -233,9 +233,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
233
233
|
placeholder: e.placeholder ?? I(t)("el.select.placeholder")
|
|
234
234
|
}), null, 16, ["modelValue"]));
|
|
235
235
|
}
|
|
236
|
-
}),
|
|
236
|
+
}), Me = /* @__PURE__ */ S({
|
|
237
237
|
__name: "Checkbox",
|
|
238
|
-
props: /* @__PURE__ */
|
|
238
|
+
props: /* @__PURE__ */ E({
|
|
239
239
|
disabled: {
|
|
240
240
|
type: Boolean,
|
|
241
241
|
default: () => void 0
|
|
@@ -257,31 +257,31 @@ var Ce = /* @__PURE__ */ x({
|
|
|
257
257
|
] },
|
|
258
258
|
modelModifiers: {}
|
|
259
259
|
}),
|
|
260
|
-
emits: /* @__PURE__ */
|
|
260
|
+
emits: /* @__PURE__ */ E(["blur", "focus"], ["update:modelValue"]),
|
|
261
261
|
setup(e) {
|
|
262
|
-
let t = L(e, "modelValue"), { t: n } =
|
|
262
|
+
let t = L(e, "modelValue"), { t: n } = g(T(X)), i = T(Q, void 0);
|
|
263
263
|
if (i?.required) {
|
|
264
264
|
let { label: e, validator: r } = i;
|
|
265
265
|
i.validator = () => e && !t.value ? n("el.validation.input", { label: e }) : r?.();
|
|
266
266
|
}
|
|
267
|
-
return (n, i) => (
|
|
267
|
+
return (n, i) => (A(), y(I(r), D({ disabled: e.disabled }, {
|
|
268
268
|
modelValue: t.value,
|
|
269
269
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
270
270
|
}), null, 16, ["modelValue"]));
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
272
|
+
}), Ne = /* @__PURE__ */ S({
|
|
273
273
|
__name: "ConfigProvider",
|
|
274
274
|
props: { locale: {} },
|
|
275
275
|
setup(t) {
|
|
276
|
-
let n =
|
|
277
|
-
return
|
|
276
|
+
let n = v(() => t.locale ?? e);
|
|
277
|
+
return j(X, n), (e, t) => (A(), y(I(i), { locale: n.value }, {
|
|
278
278
|
default: B(() => [N(e.$slots, "default")]),
|
|
279
279
|
_: 3
|
|
280
280
|
}, 8, ["locale"]));
|
|
281
281
|
}
|
|
282
|
-
}),
|
|
282
|
+
}), Pe = /* @__PURE__ */ S({
|
|
283
283
|
__name: "DatePicker",
|
|
284
|
-
props: /* @__PURE__ */
|
|
284
|
+
props: /* @__PURE__ */ E({
|
|
285
285
|
disabled: {
|
|
286
286
|
type: Boolean,
|
|
287
287
|
default: () => void 0
|
|
@@ -292,6 +292,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
292
292
|
shortcuts: {},
|
|
293
293
|
startPlaceholder: {},
|
|
294
294
|
type: { default: "date" },
|
|
295
|
+
size: {},
|
|
295
296
|
valueFormat: {}
|
|
296
297
|
}, {
|
|
297
298
|
modelValue: {},
|
|
@@ -301,44 +302,44 @@ var Ce = /* @__PURE__ */ x({
|
|
|
301
302
|
end: {},
|
|
302
303
|
endModifiers: {}
|
|
303
304
|
}),
|
|
304
|
-
emits: /* @__PURE__ */
|
|
305
|
+
emits: /* @__PURE__ */ E(["blur", "focus"], [
|
|
305
306
|
"update:modelValue",
|
|
306
307
|
"update:start",
|
|
307
308
|
"update:end"
|
|
308
309
|
]),
|
|
309
310
|
setup(e) {
|
|
310
|
-
let t =
|
|
311
|
+
let t = L(e, "modelValue"), n = L(e, "start"), r = L(e, "end"), i = T(Z), { t: o } = g(T(X)), s = v({
|
|
311
312
|
get() {
|
|
312
|
-
return e.type.includes("range") &&
|
|
313
|
+
return e.type.includes("range") && n.value && r.value ? [n.value, r.value] : e.type.includes("range") ? null : t.value;
|
|
313
314
|
},
|
|
314
|
-
set(
|
|
315
|
-
e.type.includes("range") && Array.isArray(
|
|
315
|
+
set(i) {
|
|
316
|
+
e.type.includes("range") && Array.isArray(i) ? (n.value = i?.[0], r.value = i?.[1]) : t.value = i;
|
|
316
317
|
}
|
|
317
|
-
}), c =
|
|
318
|
+
}), c = T(Q, void 0);
|
|
318
319
|
if (c?.required) {
|
|
319
|
-
let { label:
|
|
320
|
-
c.validator = () =>
|
|
320
|
+
let { label: i, validator: a } = c;
|
|
321
|
+
c.validator = () => i && e.type.includes("range") && (!n.value || !r.value) || i && !t.value ? o("el.validation.datepicker", { label: i }) : a?.();
|
|
321
322
|
}
|
|
322
|
-
return (
|
|
323
|
+
return (t, n) => (A(), y(I(a), D({
|
|
323
324
|
disabled: e.disabled,
|
|
324
325
|
disabledDate: e.disabledDate,
|
|
325
326
|
type: e.type,
|
|
326
|
-
valueFormat: e.valueFormat,
|
|
327
|
+
valueFormat: e.valueFormat ?? I(i)?.datePicker?.valueFormat,
|
|
327
328
|
placeholder: e.placeholder ?? I(o)("el.datepicker.placeholder"),
|
|
328
|
-
startPlaceholder: e.placeholder ?? I(o)("el.datepicker.startPlaceholder"),
|
|
329
|
-
endPlaceholder: e.placeholder ?? I(o)("el.datepicker.endPlaceholder"),
|
|
329
|
+
startPlaceholder: e.startPlaceholder ?? e.placeholder ?? I(o)("el.datepicker.startPlaceholder"),
|
|
330
|
+
endPlaceholder: e.endPlaceholder ?? e.placeholder ?? I(o)("el.datepicker.endPlaceholder"),
|
|
330
331
|
shortcuts: e.shortcuts,
|
|
331
|
-
|
|
332
|
+
size: e.size
|
|
332
333
|
}, {
|
|
333
334
|
modelValue: s.value,
|
|
334
|
-
"onUpdate:modelValue":
|
|
335
|
-
onBlur:
|
|
336
|
-
onFocus:
|
|
335
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
336
|
+
onBlur: n[1] ||= (e) => t.$emit("blur", e),
|
|
337
|
+
onFocus: n[2] ||= (e) => t.$emit("focus", e)
|
|
337
338
|
}), null, 16, ["modelValue"]));
|
|
338
339
|
}
|
|
339
|
-
}),
|
|
340
|
+
}), $ = /* @__PURE__ */ S({
|
|
340
341
|
__name: "Dialog",
|
|
341
|
-
props: /* @__PURE__ */
|
|
342
|
+
props: /* @__PURE__ */ E({
|
|
342
343
|
bodyClass: {},
|
|
343
344
|
width: {},
|
|
344
345
|
showClose: {
|
|
@@ -364,7 +365,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
364
365
|
emits: ["update:modelValue"],
|
|
365
366
|
setup(e) {
|
|
366
367
|
let t = L(e, "modelValue");
|
|
367
|
-
return (n, r) => (
|
|
368
|
+
return (n, r) => (A(), y(I(o), D({
|
|
368
369
|
modelValue: t.value,
|
|
369
370
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e
|
|
370
371
|
}, {
|
|
@@ -377,7 +378,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
377
378
|
draggable: e.draggable,
|
|
378
379
|
closeOnClickModal: e.closeOnClickModal,
|
|
379
380
|
closeOnPressEscape: e.closeOnPressEscape
|
|
380
|
-
}),
|
|
381
|
+
}), b({
|
|
381
382
|
default: B(() => [N(n.$slots, "default")]),
|
|
382
383
|
_: 2
|
|
383
384
|
}, ["header" in n.$slots ? {
|
|
@@ -390,7 +391,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
390
391
|
key: "1"
|
|
391
392
|
} : void 0]), 1040, ["modelValue"]));
|
|
392
393
|
}
|
|
393
|
-
}),
|
|
394
|
+
}), Fe = /* @__PURE__ */ S({
|
|
394
395
|
__name: "Form",
|
|
395
396
|
props: {
|
|
396
397
|
content: { type: Function },
|
|
@@ -407,9 +408,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
407
408
|
},
|
|
408
409
|
setup(e, { expose: t }) {
|
|
409
410
|
let n = R("form"), r = () => e.content?.({ data: e.data ?? {} });
|
|
410
|
-
|
|
411
|
+
j(Te, !0);
|
|
411
412
|
let i = [];
|
|
412
|
-
|
|
413
|
+
j(Oe, i);
|
|
413
414
|
let a = () => i.every((e) => e.validate()), o = () => i.forEach((e) => e.clearValidate());
|
|
414
415
|
return t({
|
|
415
416
|
clearValidate: o,
|
|
@@ -418,7 +419,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
418
419
|
resetFields: () => {
|
|
419
420
|
o(), n.value?.resetFields();
|
|
420
421
|
}
|
|
421
|
-
}), (t, i) => (
|
|
422
|
+
}), (t, i) => (A(), y(I(s), D({
|
|
422
423
|
ref_key: "form",
|
|
423
424
|
ref: n
|
|
424
425
|
}, {
|
|
@@ -430,11 +431,11 @@ var Ce = /* @__PURE__ */ x({
|
|
|
430
431
|
labelSuffix: e.labelSuffix,
|
|
431
432
|
size: e.size
|
|
432
433
|
}), {
|
|
433
|
-
default: B(() => [
|
|
434
|
+
default: B(() => [x(r)]),
|
|
434
435
|
_: 1
|
|
435
436
|
}, 16));
|
|
436
437
|
}
|
|
437
|
-
}),
|
|
438
|
+
}), Ie = /* @__PURE__ */ S({
|
|
438
439
|
__name: "FormItem",
|
|
439
440
|
props: {
|
|
440
441
|
content: { type: Function },
|
|
@@ -443,7 +444,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
443
444
|
validator: { type: Function }
|
|
444
445
|
},
|
|
445
446
|
setup(e) {
|
|
446
|
-
let t =
|
|
447
|
+
let t = T(Oe, void 0), n = T(Ee, void 0), r = T(De, void 0), i = T(ke, void 0), a = T(Ae, void 0), o = ce(), s = le(), l = {
|
|
447
448
|
id: s,
|
|
448
449
|
clearValidate: () => o.value = void 0,
|
|
449
450
|
label: e.label,
|
|
@@ -451,19 +452,19 @@ var Ce = /* @__PURE__ */ x({
|
|
|
451
452
|
validator: e.validator,
|
|
452
453
|
validate: () => (o.value = l.validator?.() ?? void 0, o.value && n && r && i && a?.trigger(i), !o.value)
|
|
453
454
|
};
|
|
454
|
-
|
|
455
|
+
j(Q, l), k(() => {
|
|
455
456
|
t?.some((e) => e.id === s) || t?.push(l);
|
|
456
|
-
}),
|
|
457
|
+
}), se(() => {
|
|
457
458
|
let e = t?.findIndex((e) => e.id === s);
|
|
458
459
|
e && e > -1 && t?.splice(e, 1);
|
|
459
460
|
});
|
|
460
461
|
let u = () => e.content?.();
|
|
461
|
-
return (t, n) => (
|
|
462
|
+
return (t, n) => (A(), y(I(c), {
|
|
462
463
|
label: e.label,
|
|
463
464
|
required: e.required,
|
|
464
465
|
error: o.value
|
|
465
|
-
},
|
|
466
|
-
default: B(() => [N(t.$slots, "default", {}, () => [
|
|
466
|
+
}, b({
|
|
467
|
+
default: B(() => [N(t.$slots, "default", {}, () => [x(u)])]),
|
|
467
468
|
_: 2
|
|
468
469
|
}, ["label" in t.$slots ? {
|
|
469
470
|
name: "label",
|
|
@@ -475,9 +476,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
475
476
|
"error"
|
|
476
477
|
]));
|
|
477
478
|
}
|
|
478
|
-
}),
|
|
479
|
+
}), Le = /* @__PURE__ */ S({
|
|
479
480
|
__name: "Input",
|
|
480
|
-
props: /* @__PURE__ */
|
|
481
|
+
props: /* @__PURE__ */ E({
|
|
481
482
|
clearable: { type: Boolean },
|
|
482
483
|
disabled: {
|
|
483
484
|
type: Boolean,
|
|
@@ -495,13 +496,13 @@ var Ce = /* @__PURE__ */ x({
|
|
|
495
496
|
modelValue: {},
|
|
496
497
|
modelModifiers: {}
|
|
497
498
|
}),
|
|
498
|
-
emits: /* @__PURE__ */
|
|
499
|
+
emits: /* @__PURE__ */ E([
|
|
499
500
|
"blur",
|
|
500
501
|
"focus",
|
|
501
502
|
"change"
|
|
502
503
|
], ["update:modelValue"]),
|
|
503
504
|
setup(e, { emit: t }) {
|
|
504
|
-
let n = t, r = L(e, "modelValue"), { t: i } =
|
|
505
|
+
let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
|
|
505
506
|
if (a?.required) {
|
|
506
507
|
let { label: e, validator: t } = a;
|
|
507
508
|
a.validator = () => e && !r.value ? i("el.validation.input", { label: e }) : t?.();
|
|
@@ -513,7 +514,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
513
514
|
}, c = (e) => {
|
|
514
515
|
n("change", e);
|
|
515
516
|
};
|
|
516
|
-
return (t, n) => (
|
|
517
|
+
return (t, n) => (A(), y(I(l), D({
|
|
517
518
|
disabled: e.disabled,
|
|
518
519
|
type: e.type,
|
|
519
520
|
size: e.size,
|
|
@@ -528,7 +529,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
528
529
|
onBlur: o,
|
|
529
530
|
onFocus: s,
|
|
530
531
|
onChange: c
|
|
531
|
-
}),
|
|
532
|
+
}), b({ _: 2 }, [
|
|
532
533
|
"append" in t.$slots ? {
|
|
533
534
|
name: "append",
|
|
534
535
|
fn: B(() => [N(t.$slots, "append")]),
|
|
@@ -551,9 +552,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
551
552
|
} : void 0
|
|
552
553
|
]), 1040, ["modelValue"]));
|
|
553
554
|
}
|
|
554
|
-
}),
|
|
555
|
+
}), Re = /* @__PURE__ */ S({
|
|
555
556
|
__name: "InputNumber",
|
|
556
|
-
props: /* @__PURE__ */
|
|
557
|
+
props: /* @__PURE__ */ E({
|
|
557
558
|
align: {},
|
|
558
559
|
controls: { type: Boolean },
|
|
559
560
|
disabled: {
|
|
@@ -572,9 +573,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
572
573
|
modelValue: {},
|
|
573
574
|
modelModifiers: {}
|
|
574
575
|
}),
|
|
575
|
-
emits: /* @__PURE__ */
|
|
576
|
+
emits: /* @__PURE__ */ E(["blur", "focus"], ["update:modelValue"]),
|
|
576
577
|
setup(e, { emit: t }) {
|
|
577
|
-
let n = t, r = L(e, "modelValue"), { t: i } =
|
|
578
|
+
let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
|
|
578
579
|
if (a?.required) {
|
|
579
580
|
let { label: e, validator: t } = a;
|
|
580
581
|
a.validator = () => e && !r.value ? i("el.validation.inputNumber", { label: e }) : t?.();
|
|
@@ -584,7 +585,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
584
585
|
}, s = (e) => {
|
|
585
586
|
n("blur", e);
|
|
586
587
|
};
|
|
587
|
-
return (t, n) => (
|
|
588
|
+
return (t, n) => (A(), y(I(u), D({
|
|
588
589
|
align: e.align,
|
|
589
590
|
controls: e.controls,
|
|
590
591
|
disabled: e.disabled,
|
|
@@ -601,7 +602,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
601
602
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
602
603
|
onBlur: s,
|
|
603
604
|
onFocus: o
|
|
604
|
-
}),
|
|
605
|
+
}), b({ _: 2 }, ["prefix" in t.$slots ? {
|
|
605
606
|
name: "prefix",
|
|
606
607
|
fn: B(() => [N(t.$slots, "prefix")]),
|
|
607
608
|
key: "0"
|
|
@@ -611,9 +612,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
611
612
|
key: "1"
|
|
612
613
|
} : void 0]), 1040, ["modelValue"]));
|
|
613
614
|
}
|
|
614
|
-
}),
|
|
615
|
+
}), ze = /* @__PURE__ */ S({
|
|
615
616
|
__name: "Pagination",
|
|
616
|
-
props: /* @__PURE__ */
|
|
617
|
+
props: /* @__PURE__ */ E({
|
|
617
618
|
pageSizes: {},
|
|
618
619
|
background: { type: Boolean },
|
|
619
620
|
size: {},
|
|
@@ -626,10 +627,10 @@ var Ce = /* @__PURE__ */ x({
|
|
|
626
627
|
pageSize: {},
|
|
627
628
|
pageSizeModifiers: {}
|
|
628
629
|
}),
|
|
629
|
-
emits: /* @__PURE__ */
|
|
630
|
+
emits: /* @__PURE__ */ E(["sizeChange", "currentChange"], ["update:currentPage", "update:pageSize"]),
|
|
630
631
|
setup(e, { emit: t }) {
|
|
631
|
-
let n =
|
|
632
|
-
return
|
|
632
|
+
let n = T(Z), r = t, i = L(e, "currentPage"), a = L(e, "pageSize"), o = n?.pagination;
|
|
633
|
+
return g(T(X)), (t, n) => (A(), y(I(d), D({
|
|
633
634
|
size: e.size,
|
|
634
635
|
total: e.total,
|
|
635
636
|
pageSizes: e.pageSizes,
|
|
@@ -652,9 +653,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
652
653
|
"default-page-size"
|
|
653
654
|
]));
|
|
654
655
|
}
|
|
655
|
-
}),
|
|
656
|
+
}), Be = /* @__PURE__ */ S({
|
|
656
657
|
__name: "Select",
|
|
657
|
-
props: /* @__PURE__ */
|
|
658
|
+
props: /* @__PURE__ */ E({
|
|
658
659
|
collapseTagsTooltip: { type: Boolean },
|
|
659
660
|
defaultFirstOption: { type: Boolean },
|
|
660
661
|
clearable: { type: Boolean },
|
|
@@ -679,13 +680,13 @@ var Ce = /* @__PURE__ */ x({
|
|
|
679
680
|
modelValue: {},
|
|
680
681
|
modelModifiers: {}
|
|
681
682
|
}),
|
|
682
|
-
emits: /* @__PURE__ */
|
|
683
|
+
emits: /* @__PURE__ */ E([
|
|
683
684
|
"blur",
|
|
684
685
|
"change",
|
|
685
686
|
"focus"
|
|
686
687
|
], ["update:modelValue"]),
|
|
687
688
|
setup(e, { emit: t }) {
|
|
688
|
-
let n = t, r = L(e, "modelValue"), { t: i } =
|
|
689
|
+
let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = ce([]), o = q(() => e.data ?? [], e.factory), s = v(() => [...q(a, e.factory).value, ...o.value]), c = (t) => {
|
|
689
690
|
if (typeof t == "object") {
|
|
690
691
|
if (e.identify) return e.identify(t);
|
|
691
692
|
throw Error("`identify` is required when value's type extends `object` or `object[]`");
|
|
@@ -697,7 +698,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
697
698
|
n === u && i && (a.value = i);
|
|
698
699
|
} else a.value = [];
|
|
699
700
|
}, { immediate: !0 });
|
|
700
|
-
let
|
|
701
|
+
let d = v(() => s.value.map((e) => {
|
|
701
702
|
let t = c(e.value);
|
|
702
703
|
return {
|
|
703
704
|
disabled: e.disabled,
|
|
@@ -706,28 +707,28 @@ var Ce = /* @__PURE__ */ x({
|
|
|
706
707
|
value: t,
|
|
707
708
|
render: e.render
|
|
708
709
|
};
|
|
709
|
-
})),
|
|
710
|
+
})), f = v({
|
|
710
711
|
get: () => r.value && (Array.isArray(r.value) ? r.value.map(c) : c(r.value)),
|
|
711
712
|
set: (t) => {
|
|
712
713
|
Array.isArray(t) ? r.value = t.map((e) => l(e)) : r.value = t === void 0 ? void 0 : l(t) ?? (e.allowCreate ? t : void 0);
|
|
713
714
|
}
|
|
714
|
-
}),
|
|
715
|
-
if (
|
|
716
|
-
let { label: e, validator: t } =
|
|
717
|
-
|
|
715
|
+
}), p = T(Q, void 0);
|
|
716
|
+
if (p?.required) {
|
|
717
|
+
let { label: e, validator: t } = p;
|
|
718
|
+
p.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? i("el.validation.select", { label: e }) : t?.();
|
|
718
719
|
}
|
|
719
|
-
let
|
|
720
|
-
n("blur", e),
|
|
721
|
-
}, p = (e) => {
|
|
722
|
-
n("focus", e);
|
|
720
|
+
let ne = (e) => {
|
|
721
|
+
n("blur", e), p?.validate?.();
|
|
723
722
|
}, m = (e) => {
|
|
723
|
+
n("focus", e);
|
|
724
|
+
}, h = (e) => {
|
|
724
725
|
n("change", e);
|
|
725
|
-
},
|
|
726
|
+
}, b = (e) => x(ee, {
|
|
726
727
|
disabled: e.disabled,
|
|
727
728
|
label: e.label,
|
|
728
729
|
value: e.value
|
|
729
730
|
}, { default: () => [e.render ?? e.label] });
|
|
730
|
-
return (t, n) => (
|
|
731
|
+
return (t, n) => (A(), y(I(te), D({
|
|
731
732
|
placeholder: e.placeholder ?? I(i)("el.select.placeholder"),
|
|
732
733
|
disabled: e.disabled,
|
|
733
734
|
allowCreate: e.allowCreate,
|
|
@@ -742,13 +743,13 @@ var Ce = /* @__PURE__ */ x({
|
|
|
742
743
|
collapseTagsTooltip: e.collapseTagsTooltip,
|
|
743
744
|
defaultFirstOption: e.defaultFirstOption || e.allowCreate
|
|
744
745
|
}, {
|
|
745
|
-
modelValue:
|
|
746
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
747
|
-
onBlur:
|
|
748
|
-
onFocus:
|
|
749
|
-
onChange:
|
|
746
|
+
modelValue: f.value,
|
|
747
|
+
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
748
|
+
onBlur: ne,
|
|
749
|
+
onFocus: m,
|
|
750
|
+
onChange: h
|
|
750
751
|
}), {
|
|
751
|
-
default: B(() => [(
|
|
752
|
+
default: B(() => [(A(!0), re(_, null, M(d.value, (e) => (A(), y(b, {
|
|
752
753
|
label: e.label,
|
|
753
754
|
value: e.value,
|
|
754
755
|
disabled: e.disabled,
|
|
@@ -762,7 +763,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
762
763
|
_: 1
|
|
763
764
|
}, 16, ["modelValue"]));
|
|
764
765
|
}
|
|
765
|
-
}),
|
|
766
|
+
}), Ve = /* @__PURE__ */ S({
|
|
766
767
|
__name: "Table",
|
|
767
768
|
props: {
|
|
768
769
|
cellClassName: { type: [Function, String] },
|
|
@@ -800,7 +801,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
800
801
|
"selectionChange"
|
|
801
802
|
],
|
|
802
803
|
setup(e, { expose: t, emit: n }) {
|
|
803
|
-
let r = n, i =
|
|
804
|
+
let r = n, i = T(Z)?.table, a = R("table");
|
|
804
805
|
t({
|
|
805
806
|
clearSelection: () => a.value?.clearSelection(),
|
|
806
807
|
getSelectionRows: () => a.value?.getSelectionRows(),
|
|
@@ -811,8 +812,8 @@ var Ce = /* @__PURE__ */ x({
|
|
|
811
812
|
setScrollTop: (e) => a.value?.setScrollTop(e),
|
|
812
813
|
doLayout: () => a.value?.doLayout(),
|
|
813
814
|
toggleRowSelection: (e, t, n) => a.value?.toggleRowSelection(e, t, n)
|
|
814
|
-
}),
|
|
815
|
-
let o = /* @__PURE__ */
|
|
815
|
+
}), j(we, !0);
|
|
816
|
+
let o = /* @__PURE__ */ S((e) => () => x(ne, {
|
|
816
817
|
fixed: e.fixed,
|
|
817
818
|
label: e.label,
|
|
818
819
|
prop: e.prop,
|
|
@@ -839,7 +840,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
839
840
|
"type",
|
|
840
841
|
"width"
|
|
841
842
|
] });
|
|
842
|
-
return (t, n) => (
|
|
843
|
+
return (t, n) => (A(), y(I(p), D({
|
|
843
844
|
ref_key: "table",
|
|
844
845
|
ref: a
|
|
845
846
|
}, {
|
|
@@ -863,7 +864,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
863
864
|
onSelectionChange: n[2] ||= (e) => r("selectionChange", e),
|
|
864
865
|
onHeaderDragend: n[3] ||= (e, t, n) => r("headerDragend", e, t, n)
|
|
865
866
|
}), {
|
|
866
|
-
default: B(() => [(
|
|
867
|
+
default: B(() => [(A(!0), re(_, null, M(e.columns, (t) => (A(), y(I(o), D({ ref_for: !0 }, {
|
|
867
868
|
align: e.align ?? I(i)?.align,
|
|
868
869
|
headerAlign: e.headerAlign ?? I(i)?.headerAlign,
|
|
869
870
|
...t
|
|
@@ -871,7 +872,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
871
872
|
_: 1
|
|
872
873
|
}, 16));
|
|
873
874
|
}
|
|
874
|
-
}),
|
|
875
|
+
}), He = /* @__PURE__ */ S({
|
|
875
876
|
__name: "TabPane",
|
|
876
877
|
props: {
|
|
877
878
|
closable: { type: Boolean },
|
|
@@ -884,7 +885,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
884
885
|
return t({
|
|
885
886
|
label: e.label,
|
|
886
887
|
name: e.name
|
|
887
|
-
}),
|
|
888
|
+
}), j(De, !0), j(ke, e.name), (t, n) => (A(), y(I(f), O(w({
|
|
888
889
|
label: e.label,
|
|
889
890
|
name: e.name,
|
|
890
891
|
disabled: e.disabled,
|
|
@@ -895,9 +896,9 @@ var Ce = /* @__PURE__ */ x({
|
|
|
895
896
|
_: 3
|
|
896
897
|
}, 16));
|
|
897
898
|
}
|
|
898
|
-
}),
|
|
899
|
+
}), Ue = /* @__PURE__ */ S({
|
|
899
900
|
__name: "Tabs",
|
|
900
|
-
props: /* @__PURE__ */
|
|
901
|
+
props: /* @__PURE__ */ E({
|
|
901
902
|
addable: { type: Boolean },
|
|
902
903
|
editable: { type: Boolean },
|
|
903
904
|
tabPosition: {},
|
|
@@ -906,16 +907,16 @@ var Ce = /* @__PURE__ */ x({
|
|
|
906
907
|
modelValue: {},
|
|
907
908
|
modelModifiers: {}
|
|
908
909
|
}),
|
|
909
|
-
emits: /* @__PURE__ */
|
|
910
|
+
emits: /* @__PURE__ */ E([
|
|
910
911
|
"change",
|
|
911
912
|
"remove",
|
|
912
913
|
"edit"
|
|
913
914
|
], ["update:modelValue"]),
|
|
914
915
|
setup(e) {
|
|
915
916
|
let t = L(e, "modelValue");
|
|
916
|
-
|
|
917
|
-
let n =
|
|
918
|
-
return
|
|
917
|
+
j(Ee, !0);
|
|
918
|
+
let n = ue();
|
|
919
|
+
return j(Ae, n), n.on((e) => t.value = e), (n, r) => (A(), y(I(m), D({
|
|
919
920
|
addable: e.addable,
|
|
920
921
|
editable: e.editable,
|
|
921
922
|
tabPosition: e.tabPosition,
|
|
@@ -926,7 +927,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
926
927
|
onTabChange: r[1] ||= (e) => n.$emit("change", e),
|
|
927
928
|
onTabRemove: r[2] ||= (e) => n.$emit("remove", e),
|
|
928
929
|
onEdit: r[3] ||= (e, t) => n.$emit("edit", e, t)
|
|
929
|
-
}),
|
|
930
|
+
}), b({
|
|
930
931
|
default: B(() => [N(n.$slots, "default")]),
|
|
931
932
|
_: 2
|
|
932
933
|
}, ["addIcon" in n.$slots ? {
|
|
@@ -935,7 +936,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
935
936
|
key: "0"
|
|
936
937
|
} : void 0]), 1040, ["modelValue"]));
|
|
937
938
|
}
|
|
938
|
-
}),
|
|
939
|
+
}), We = /* @__PURE__ */ S({
|
|
939
940
|
__name: "Upload",
|
|
940
941
|
props: {
|
|
941
942
|
action: {},
|
|
@@ -955,7 +956,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
955
956
|
onPreview: { type: Function }
|
|
956
957
|
},
|
|
957
958
|
setup(e) {
|
|
958
|
-
let t =
|
|
959
|
+
let t = T(Q, void 0);
|
|
959
960
|
if (t?.required) {
|
|
960
961
|
let { validator: e } = t;
|
|
961
962
|
t.validator = () => e?.();
|
|
@@ -967,7 +968,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
967
968
|
}, i = (t) => {
|
|
968
969
|
e.onPreview?.(t);
|
|
969
970
|
};
|
|
970
|
-
return (t, a) => (
|
|
971
|
+
return (t, a) => (A(), y(I(h), O(w({
|
|
971
972
|
action: e.action,
|
|
972
973
|
disabled: e.disabled,
|
|
973
974
|
accept: e.accept,
|
|
@@ -980,7 +981,7 @@ var Ce = /* @__PURE__ */ x({
|
|
|
980
981
|
onPreview: i,
|
|
981
982
|
onSuccess: n,
|
|
982
983
|
onRemove: r
|
|
983
|
-
})),
|
|
984
|
+
})), b({
|
|
984
985
|
default: B(() => [N(t.$slots, "default")]),
|
|
985
986
|
_: 2
|
|
986
987
|
}, [
|
|
@@ -1004,23 +1005,23 @@ var Ce = /* @__PURE__ */ x({
|
|
|
1004
1005
|
} : void 0
|
|
1005
1006
|
]), 1040));
|
|
1006
1007
|
}
|
|
1007
|
-
}),
|
|
1008
|
-
XButton: () =>
|
|
1009
|
-
XCascader: () =>
|
|
1010
|
-
XCheckbox: () =>
|
|
1011
|
-
XConfigProvider: () =>
|
|
1012
|
-
XDatePicker: () =>
|
|
1013
|
-
XDialog: () =>
|
|
1014
|
-
XForm: () =>
|
|
1015
|
-
XFormItem: () =>
|
|
1016
|
-
XInput: () =>
|
|
1017
|
-
XInputNumber: () =>
|
|
1018
|
-
XPagination: () =>
|
|
1019
|
-
XSelect: () =>
|
|
1020
|
-
XTabPane: () =>
|
|
1021
|
-
XTable: () =>
|
|
1022
|
-
XTabs: () =>
|
|
1023
|
-
XUpload: () =>
|
|
1008
|
+
}), Ge = /* @__PURE__ */ H({
|
|
1009
|
+
XButton: () => Se,
|
|
1010
|
+
XCascader: () => je,
|
|
1011
|
+
XCheckbox: () => Me,
|
|
1012
|
+
XConfigProvider: () => Ne,
|
|
1013
|
+
XDatePicker: () => Pe,
|
|
1014
|
+
XDialog: () => $,
|
|
1015
|
+
XForm: () => Fe,
|
|
1016
|
+
XFormItem: () => Ie,
|
|
1017
|
+
XInput: () => Le,
|
|
1018
|
+
XInputNumber: () => Re,
|
|
1019
|
+
XPagination: () => ze,
|
|
1020
|
+
XSelect: () => Be,
|
|
1021
|
+
XTabPane: () => He,
|
|
1022
|
+
XTable: () => Ve,
|
|
1023
|
+
XTabs: () => Ue,
|
|
1024
|
+
XUpload: () => We
|
|
1024
1025
|
});
|
|
1025
1026
|
//#endregion
|
|
1026
|
-
export { H as A, Y as C,
|
|
1027
|
+
export { H as A, Y as C, ge as D, U as E, q as O, _e as S, K as T, Z as _, Ve as a, X as b, Re as c, Fe as d, $ as f, je as g, Me as h, He as i, he as k, Le as l, Ne as m, We as n, Be as o, Pe as p, Ue as r, ze as s, Ge as t, Ie as u, Ce as v, xe as w, Se as x, we as y };
|