@pungfe/element 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{advance-Dk2hP5Pb.js → advance-LbUKsIuN.js} +14 -13
- package/dist/advance-aOeA4WAc.cjs +1 -0
- package/dist/advance.cjs +1 -1
- package/dist/advance.js +1 -1
- package/dist/{basic-BpyJELHo.js → basic-Cf8HiYwr.js} +179 -194
- package/dist/basic-DqsqEymT.cjs +1 -0
- package/dist/basic.cjs +1 -1
- package/dist/basic.js +1 -1
- package/dist/components/advance/XTableRequestNext.vue.d.ts +1 -0
- package/dist/components/basic/Pagination.vue.d.ts +3 -0
- package/dist/components/basic/Select.vue.d.ts +0 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -4
- package/dist/locales-G1O2xEPc.cjs +1 -0
- package/dist/{locales-PXHtDoUh.js → locales-iWu_uWKo.js} +16 -4
- package/dist/locales.cjs +1 -1
- package/dist/locales.js +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/dist/advance-hWKyeV41.cjs +0 -1
- package/dist/basic-S-sl5Asp.cjs +0 -1
- package/dist/locales-CgMjypnK.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as e } from "./locales-
|
|
1
|
+
import { r as e } from "./locales-iWu_uWKo.js";
|
|
2
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 m, ElTabs as h, ElUpload as g, useLocale as _ } from "element-plus";
|
|
3
|
-
import { Fragment as v, computed as y, createBlock as b, createElementBlock as x, createSlots as S, createVNode as C, defineComponent as w, getCurrentInstance as ne, getCurrentScope as re, guardReactiveProps as T, inject as E, mergeModels as D, mergeProps as O, nextTick as ie, normalizeProps as k, onMounted as A, onScopeDispose as ae, onUnmounted as oe, openBlock as j, provide as M, ref as
|
|
3
|
+
import { Fragment as v, computed as y, createBlock as b, createElementBlock as x, createSlots as S, createVNode as C, defineComponent as w, getCurrentInstance as ne, getCurrentScope as re, guardReactiveProps as T, inject as E, mergeModels as D, mergeProps as O, nextTick as ie, normalizeProps as k, onMounted as A, onScopeDispose as ae, onUnmounted as oe, openBlock as j, provide as M, ref as se, renderList as N, renderSlot as P, shallowRef as F, toValue as I, unref as L, useAttrs as ce, useId as le, useModel as R, useTemplateRef as z, watch as B, watchEffect as ue, withCtx as V } from "vue";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
5
|
+
var H = Object.defineProperty, U = (e, t) => {
|
|
6
6
|
let n = {};
|
|
7
|
-
for (var r in e)
|
|
7
|
+
for (var r in e) H(n, r, {
|
|
8
8
|
get: e[r],
|
|
9
9
|
enumerable: !0
|
|
10
10
|
});
|
|
11
|
-
return t ||
|
|
11
|
+
return t || H(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
15
|
-
function
|
|
15
|
+
function W(e, t) {
|
|
16
16
|
return re() ? (ae(e, t), !0) : !1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function de() {
|
|
19
19
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
20
20
|
e.delete(t);
|
|
21
21
|
};
|
|
@@ -23,7 +23,7 @@ function ue() {
|
|
|
23
23
|
on: (n) => {
|
|
24
24
|
e.add(n);
|
|
25
25
|
let r = () => t(n);
|
|
26
|
-
return
|
|
26
|
+
return W(r), { off: r };
|
|
27
27
|
},
|
|
28
28
|
off: t,
|
|
29
29
|
trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
|
|
@@ -32,10 +32,10 @@ function ue() {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var G = typeof window < "u" && typeof document < "u";
|
|
36
36
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
37
|
-
var
|
|
38
|
-
function
|
|
37
|
+
var K = () => {};
|
|
38
|
+
function fe(e, t) {
|
|
39
39
|
function n(...n) {
|
|
40
40
|
return new Promise((r, i) => {
|
|
41
41
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -47,12 +47,12 @@ function de(e, t) {
|
|
|
47
47
|
}
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
let n, r, i =
|
|
52
|
-
clearTimeout(e), i(), i =
|
|
50
|
+
function pe(e, t = {}) {
|
|
51
|
+
let n, r, i = K, a = (e) => {
|
|
52
|
+
clearTimeout(e), i(), i = K;
|
|
53
53
|
}, o;
|
|
54
54
|
return (s) => {
|
|
55
|
-
let c =
|
|
55
|
+
let c = I(e), l = I(t.maxWait);
|
|
56
56
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
57
57
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
58
58
|
n && a(n), r = void 0, e(o());
|
|
@@ -62,34 +62,34 @@ function fe(e, t = {}) {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function me(e) {
|
|
66
66
|
return Array.isArray(e) ? e : [e];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function he(e) {
|
|
69
69
|
return e || ne();
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function ge(e, t = 200, n = {}) {
|
|
72
|
+
return fe(pe(t, n), e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function q(e, t = !0, n) {
|
|
75
|
+
he(n) ? A(e, n) : t ? e() : ie(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return y(() =>
|
|
77
|
+
function _e(e, t) {
|
|
78
|
+
return y(() => I(e).map((e) => I(e)).filter(t));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return y(() =>
|
|
80
|
+
function J(e, t) {
|
|
81
|
+
return y(() => I(e).map((e) => I(e)).map(t));
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region node_modules/@vueuse/core/dist/index.js
|
|
85
|
-
var
|
|
86
|
-
|
|
85
|
+
var Y = G ? window : void 0, ve = G ? window.document : void 0;
|
|
86
|
+
G && window.navigator, G && window.location;
|
|
87
87
|
function X(e) {
|
|
88
|
-
let t =
|
|
88
|
+
let t = I(e);
|
|
89
89
|
return t?.$el ?? t;
|
|
90
90
|
}
|
|
91
91
|
function ye() {
|
|
92
|
-
let e =
|
|
92
|
+
let e = F(!1), t = ne();
|
|
93
93
|
return t && A(() => {
|
|
94
94
|
e.value = !0;
|
|
95
95
|
}, t), e;
|
|
@@ -100,10 +100,10 @@ function be(e) {
|
|
|
100
100
|
return y(() => (t.value, !!e()));
|
|
101
101
|
}
|
|
102
102
|
function xe(e, t, n = {}) {
|
|
103
|
-
let { window: r =
|
|
103
|
+
let { window: r = Y, ...i } = n, a, o = /* @__PURE__ */ be(() => r && "ResizeObserver" in r), s = () => {
|
|
104
104
|
a &&= (a.disconnect(), void 0);
|
|
105
|
-
}, c =
|
|
106
|
-
let t =
|
|
105
|
+
}, c = B(y(() => {
|
|
106
|
+
let t = I(e);
|
|
107
107
|
return Array.isArray(t) ? t.map((e) => X(e)) : [X(t)];
|
|
108
108
|
}), (e) => {
|
|
109
109
|
if (s(), o.value && r) {
|
|
@@ -116,7 +116,7 @@ function xe(e, t, n = {}) {
|
|
|
116
116
|
}), l = () => {
|
|
117
117
|
s(), c();
|
|
118
118
|
};
|
|
119
|
-
return
|
|
119
|
+
return W(l), {
|
|
120
120
|
isSupported: o,
|
|
121
121
|
stop: l
|
|
122
122
|
};
|
|
@@ -125,10 +125,10 @@ function Se(e, t = {
|
|
|
125
125
|
width: 0,
|
|
126
126
|
height: 0
|
|
127
127
|
}, n = {}) {
|
|
128
|
-
let { window: r =
|
|
128
|
+
let { window: r = Y, box: i = "content-box" } = n, a = y(() => {
|
|
129
129
|
var t;
|
|
130
130
|
return (t = X(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
131
|
-
}), o =
|
|
131
|
+
}), o = F(t.width), s = F(t.height), { stop: c } = xe(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 = X(e);
|
|
@@ -137,15 +137,15 @@ 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 = me(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);
|
|
144
|
-
|
|
144
|
+
q(() => {
|
|
145
145
|
let n = X(e);
|
|
146
146
|
n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
|
|
147
147
|
});
|
|
148
|
-
let l =
|
|
148
|
+
let l = B(() => X(e), (e) => {
|
|
149
149
|
o.value = e ? t.width : 0, s.value = e ? t.height : 0;
|
|
150
150
|
});
|
|
151
151
|
function u() {
|
|
@@ -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 Ce = /* @__PURE__ */ w({
|
|
163
163
|
__name: "Button",
|
|
164
164
|
props: {
|
|
165
165
|
disabled: {
|
|
@@ -178,7 +178,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
178
178
|
emits: ["click"],
|
|
179
179
|
setup(e, { emit: n }) {
|
|
180
180
|
let r = n;
|
|
181
|
-
return (n, i) => (j(), b(
|
|
181
|
+
return (n, i) => (j(), b(L(t), O({
|
|
182
182
|
type: e.type,
|
|
183
183
|
text: e.text,
|
|
184
184
|
link: e.link,
|
|
@@ -186,11 +186,11 @@ var Z = /* @__PURE__ */ w({
|
|
|
186
186
|
size: e.size,
|
|
187
187
|
icon: e.icon
|
|
188
188
|
}, { onClick: i[0] ||= (e) => r("click", e) }), {
|
|
189
|
-
default:
|
|
189
|
+
default: V(() => [P(n.$slots, "default")]),
|
|
190
190
|
_: 3
|
|
191
191
|
}, 16));
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), Z = Symbol("X_LOCALE_CONFIG"), Q = Symbol("X_ELEMENT_CONFIG"), we = Symbol("X_ELEMENT_INSTALLED"), Te = Symbol("X_ELEMENT_IN_TABLE"), Ee = Symbol("X_ELEMENT_IN_FORM"), De = Symbol("X_ELEMENT_IN_TABS"), Oe = Symbol("X_ELEMENT_IN_TAB_PANE"), ke = Symbol("X_FORM_VALIDATIONS"), $ = Symbol("X_FORM_ITEM_VALIDATION"), Ae = Symbol("X_TAB_PANE"), je = Symbol("X_TABS_MODEL_UPDATE_HOOK"), Me = /* @__PURE__ */ w({
|
|
194
194
|
__name: "Cascader",
|
|
195
195
|
props: /* @__PURE__ */ D({
|
|
196
196
|
data: {},
|
|
@@ -210,7 +210,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
210
210
|
}),
|
|
211
211
|
emits: ["update:modelValue"],
|
|
212
212
|
setup(e) {
|
|
213
|
-
let { t } = _(E(
|
|
213
|
+
let { t } = _(E(Z)), r = R(e, "modelValue"), i = y(() => e.data ?? []), a = y({
|
|
214
214
|
get: () => r.value,
|
|
215
215
|
set: (e) => {
|
|
216
216
|
r.value = e;
|
|
@@ -220,9 +220,9 @@ var Z = /* @__PURE__ */ w({
|
|
|
220
220
|
let { label: e, validator: t } = o;
|
|
221
221
|
o.validator = () => !r.value || Array.isArray(r.value) && r.value.length === 0 ? `请选择${e}` : t?.();
|
|
222
222
|
}
|
|
223
|
-
return
|
|
223
|
+
return ue(() => {
|
|
224
224
|
console.log(i.value);
|
|
225
|
-
}), (r, o) => (j(), b(
|
|
225
|
+
}), (r, o) => (j(), b(L(n), O({
|
|
226
226
|
modelValue: a.value,
|
|
227
227
|
"onUpdate:modelValue": o[0] ||= (e) => a.value = e
|
|
228
228
|
}, {
|
|
@@ -232,7 +232,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
232
232
|
size: e.size,
|
|
233
233
|
options: i.value,
|
|
234
234
|
props: e.props,
|
|
235
|
-
placeholder: e.placeholder ??
|
|
235
|
+
placeholder: e.placeholder ?? L(t)("el.select.placeholder")
|
|
236
236
|
}), null, 16, ["modelValue"]));
|
|
237
237
|
}
|
|
238
238
|
}), Ne = /* @__PURE__ */ w({
|
|
@@ -261,12 +261,12 @@ var Z = /* @__PURE__ */ w({
|
|
|
261
261
|
}),
|
|
262
262
|
emits: /* @__PURE__ */ D(["blur", "focus"], ["update:modelValue"]),
|
|
263
263
|
setup(e) {
|
|
264
|
-
let t =
|
|
264
|
+
let t = R(e, "modelValue"), n = E($, void 0);
|
|
265
265
|
if (n?.required) {
|
|
266
266
|
let { label: e, validator: r } = n;
|
|
267
267
|
n.validator = () => t.value ? r?.() : `请选择${e}`;
|
|
268
268
|
}
|
|
269
|
-
return (n, i) => (j(), b(
|
|
269
|
+
return (n, i) => (j(), b(L(r), O({ disabled: e.disabled }, {
|
|
270
270
|
modelValue: t.value,
|
|
271
271
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
272
272
|
}), null, 16, ["modelValue"]));
|
|
@@ -275,7 +275,11 @@ var Z = /* @__PURE__ */ w({
|
|
|
275
275
|
__name: "ConfigProvider",
|
|
276
276
|
props: { locale: {} },
|
|
277
277
|
setup(t) {
|
|
278
|
-
|
|
278
|
+
let n = y(() => t.locale ?? e);
|
|
279
|
+
return M(Z, n), (e, t) => (j(), b(L(i), { locale: n.value }, {
|
|
280
|
+
default: V(() => [P(e.$slots, "default")]),
|
|
281
|
+
_: 3
|
|
282
|
+
}, 8, ["locale"]));
|
|
279
283
|
}
|
|
280
284
|
}), Fe = /* @__PURE__ */ w({
|
|
281
285
|
__name: "DatePicker",
|
|
@@ -305,37 +309,34 @@ var Z = /* @__PURE__ */ w({
|
|
|
305
309
|
"update:end"
|
|
306
310
|
]),
|
|
307
311
|
setup(e) {
|
|
308
|
-
let t =
|
|
312
|
+
let t = ce(), n = R(e, "modelValue"), r = R(e, "start"), i = R(e, "end"), { t: o } = _(E(Z)), s = y({
|
|
309
313
|
get() {
|
|
310
|
-
return e.type.includes("range") && r.value &&
|
|
314
|
+
return e.type.includes("range") && r.value && i.value ? [r.value, i.value] : e.type.includes("range") ? null : n.value;
|
|
311
315
|
},
|
|
312
316
|
set(t) {
|
|
313
|
-
e.type.includes("range") && Array.isArray(t) ? (r.value = t?.[0],
|
|
317
|
+
e.type.includes("range") && Array.isArray(t) ? (r.value = t?.[0], i.value = t?.[1]) : n.value = t;
|
|
314
318
|
}
|
|
315
|
-
}),
|
|
316
|
-
if (
|
|
317
|
-
let { label: t, validator:
|
|
318
|
-
|
|
319
|
+
}), c = E($, void 0);
|
|
320
|
+
if (c?.required) {
|
|
321
|
+
let { label: t, validator: a } = c;
|
|
322
|
+
c.validator = () => e.type.includes("range") && (!r.value || !i.value) ? `请选择${t}` : n.value ? a?.() : `请选择${t}`;
|
|
319
323
|
}
|
|
320
|
-
return (n, r) => (j(), b(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}), null, 16, ["modelValue"])]),
|
|
337
|
-
_: 1
|
|
338
|
-
}, 8, ["locale"]));
|
|
324
|
+
return (n, r) => (j(), b(L(a), O({
|
|
325
|
+
disabled: e.disabled,
|
|
326
|
+
disabledDate: e.disabledDate,
|
|
327
|
+
type: e.type,
|
|
328
|
+
valueFormat: e.valueFormat,
|
|
329
|
+
placeholder: e.placeholder ?? L(o)("el.datepicker.placeholder"),
|
|
330
|
+
startPlaceholder: e.placeholder ?? L(o)("el.datepicker.startPlaceholder"),
|
|
331
|
+
endPlaceholder: e.placeholder ?? L(o)("el.datepicker.endPlaceholder"),
|
|
332
|
+
shortcuts: e.shortcuts,
|
|
333
|
+
...L(t)
|
|
334
|
+
}, {
|
|
335
|
+
modelValue: s.value,
|
|
336
|
+
"onUpdate:modelValue": r[0] ||= (e) => s.value = e,
|
|
337
|
+
onBlur: r[1] ||= (e) => n.$emit("blur", e),
|
|
338
|
+
onFocus: r[2] ||= (e) => n.$emit("focus", e)
|
|
339
|
+
}), null, 16, ["modelValue"]));
|
|
339
340
|
}
|
|
340
341
|
}), Ie = /* @__PURE__ */ w({
|
|
341
342
|
__name: "Dialog",
|
|
@@ -364,8 +365,8 @@ var Z = /* @__PURE__ */ w({
|
|
|
364
365
|
}),
|
|
365
366
|
emits: ["update:modelValue"],
|
|
366
367
|
setup(e) {
|
|
367
|
-
let t =
|
|
368
|
-
return (n, r) => (j(), b(
|
|
368
|
+
let t = R(e, "modelValue");
|
|
369
|
+
return (n, r) => (j(), b(L(o), O({
|
|
369
370
|
modelValue: t.value,
|
|
370
371
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e
|
|
371
372
|
}, {
|
|
@@ -379,15 +380,15 @@ var Z = /* @__PURE__ */ w({
|
|
|
379
380
|
closeOnClickModal: e.closeOnClickModal,
|
|
380
381
|
closeOnPressEscape: e.closeOnPressEscape
|
|
381
382
|
}), S({
|
|
382
|
-
default:
|
|
383
|
+
default: V(() => [P(n.$slots, "default")]),
|
|
383
384
|
_: 2
|
|
384
385
|
}, ["header" in n.$slots ? {
|
|
385
386
|
name: "header",
|
|
386
|
-
fn:
|
|
387
|
+
fn: V(() => [P(n.$slots, "header")]),
|
|
387
388
|
key: "0"
|
|
388
389
|
} : void 0, "footer" in n.$slots ? {
|
|
389
390
|
name: "footer",
|
|
390
|
-
fn:
|
|
391
|
+
fn: V(() => [P(n.$slots, "footer")]),
|
|
391
392
|
key: "1"
|
|
392
393
|
} : void 0]), 1040, ["modelValue"]));
|
|
393
394
|
}
|
|
@@ -407,7 +408,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
407
408
|
size: {}
|
|
408
409
|
},
|
|
409
410
|
setup(e, { expose: t }) {
|
|
410
|
-
let n =
|
|
411
|
+
let n = z("form"), r = () => e.content?.({ data: e.data ?? {} });
|
|
411
412
|
M(Ee, !0);
|
|
412
413
|
let i = [];
|
|
413
414
|
M(ke, i);
|
|
@@ -419,7 +420,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
419
420
|
resetFields: () => {
|
|
420
421
|
o(), n.value?.resetFields();
|
|
421
422
|
}
|
|
422
|
-
}), (t, i) => (j(), b(
|
|
423
|
+
}), (t, i) => (j(), b(L(s), O({
|
|
423
424
|
ref_key: "form",
|
|
424
425
|
ref: n
|
|
425
426
|
}, {
|
|
@@ -431,7 +432,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
431
432
|
labelSuffix: e.labelSuffix,
|
|
432
433
|
size: e.size
|
|
433
434
|
}), {
|
|
434
|
-
default:
|
|
435
|
+
default: V(() => [C(r)]),
|
|
435
436
|
_: 1
|
|
436
437
|
}, 16));
|
|
437
438
|
}
|
|
@@ -444,7 +445,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
444
445
|
validator: { type: Function }
|
|
445
446
|
},
|
|
446
447
|
setup(e) {
|
|
447
|
-
let t = E(ke, void 0), n = E(De, void 0), r = E(Oe, void 0), i = E(Ae, void 0), a = E(je, void 0), o =
|
|
448
|
+
let t = E(ke, void 0), n = E(De, void 0), r = E(Oe, void 0), i = E(Ae, void 0), a = E(je, void 0), o = se(), s = le(), l = {
|
|
448
449
|
id: s,
|
|
449
450
|
clearValidate: () => o.value = void 0,
|
|
450
451
|
label: e.label,
|
|
@@ -458,12 +459,12 @@ var Z = /* @__PURE__ */ w({
|
|
|
458
459
|
e && e > -1 && t?.splice(e, 1);
|
|
459
460
|
});
|
|
460
461
|
let u = () => e.content?.();
|
|
461
|
-
return (t, n) => (j(), b(
|
|
462
|
+
return (t, n) => (j(), b(L(c), {
|
|
462
463
|
label: e.label,
|
|
463
464
|
required: e.required,
|
|
464
465
|
error: o.value
|
|
465
466
|
}, {
|
|
466
|
-
default:
|
|
467
|
+
default: V(() => [C(u)]),
|
|
467
468
|
_: 1
|
|
468
469
|
}, 8, [
|
|
469
470
|
"label",
|
|
@@ -497,7 +498,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
497
498
|
"change"
|
|
498
499
|
], ["update:modelValue"]),
|
|
499
500
|
setup(e, { emit: t }) {
|
|
500
|
-
let n = t, r =
|
|
501
|
+
let n = t, r = R(e, "modelValue"), { t: i } = _(E(Z)), a = E($, void 0);
|
|
501
502
|
if (a?.required) {
|
|
502
503
|
let { label: e, validator: t } = a;
|
|
503
504
|
a.validator = () => r.value ? t?.() : `请输入${e}`;
|
|
@@ -509,7 +510,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
509
510
|
}, c = (e) => {
|
|
510
511
|
n("change", e);
|
|
511
512
|
};
|
|
512
|
-
return (t, n) => (j(), b(
|
|
513
|
+
return (t, n) => (j(), b(L(l), O({
|
|
513
514
|
disabled: e.disabled,
|
|
514
515
|
type: e.type,
|
|
515
516
|
size: e.size,
|
|
@@ -517,7 +518,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
517
518
|
showPassword: e.showPassword,
|
|
518
519
|
autocomplete: e.autocomplete,
|
|
519
520
|
autosize: e.autosize,
|
|
520
|
-
placeholder: e.placeholder ??
|
|
521
|
+
placeholder: e.placeholder ?? L(i)("el.input.placeholder")
|
|
521
522
|
}, {
|
|
522
523
|
modelValue: r.value,
|
|
523
524
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -527,22 +528,22 @@ var Z = /* @__PURE__ */ w({
|
|
|
527
528
|
}), S({ _: 2 }, [
|
|
528
529
|
"append" in t.$slots ? {
|
|
529
530
|
name: "append",
|
|
530
|
-
fn:
|
|
531
|
+
fn: V(() => [P(t.$slots, "append")]),
|
|
531
532
|
key: "0"
|
|
532
533
|
} : void 0,
|
|
533
534
|
"prepend" in t.$slots ? {
|
|
534
535
|
name: "prepend",
|
|
535
|
-
fn:
|
|
536
|
+
fn: V(() => [P(t.$slots, "prepend")]),
|
|
536
537
|
key: "1"
|
|
537
538
|
} : void 0,
|
|
538
539
|
"prefix" in t.$slots ? {
|
|
539
540
|
name: "prefix",
|
|
540
|
-
fn:
|
|
541
|
+
fn: V(() => [P(t.$slots, "prefix")]),
|
|
541
542
|
key: "2"
|
|
542
543
|
} : void 0,
|
|
543
544
|
"suffix" in t.$slots ? {
|
|
544
545
|
name: "suffix",
|
|
545
|
-
fn:
|
|
546
|
+
fn: V(() => [P(t.$slots, "suffix")]),
|
|
546
547
|
key: "3"
|
|
547
548
|
} : void 0
|
|
548
549
|
]), 1040, ["modelValue"]));
|
|
@@ -570,7 +571,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
570
571
|
}),
|
|
571
572
|
emits: /* @__PURE__ */ D(["blur", "focus"], ["update:modelValue"]),
|
|
572
573
|
setup(e, { emit: t }) {
|
|
573
|
-
let n = t, r =
|
|
574
|
+
let n = t, r = R(e, "modelValue"), { t: i } = _(E(Z)), a = E($, void 0);
|
|
574
575
|
if (a?.required) {
|
|
575
576
|
let { label: e, validator: t } = a;
|
|
576
577
|
a.validator = () => r.value ? t?.() : `请输入${e}`;
|
|
@@ -580,14 +581,14 @@ var Z = /* @__PURE__ */ w({
|
|
|
580
581
|
}, s = (e) => {
|
|
581
582
|
n("blur", e);
|
|
582
583
|
};
|
|
583
|
-
return (t, n) => (j(), b(
|
|
584
|
+
return (t, n) => (j(), b(L(u), O({
|
|
584
585
|
align: e.align,
|
|
585
586
|
controls: e.controls,
|
|
586
587
|
disabled: e.disabled,
|
|
587
588
|
inputmode: e.inputmode,
|
|
588
589
|
max: e.max,
|
|
589
590
|
min: e.min,
|
|
590
|
-
placeholder: e.placeholder ??
|
|
591
|
+
placeholder: e.placeholder ?? L(i)("el.inputNumber.placeholder"),
|
|
591
592
|
precision: e.precision,
|
|
592
593
|
size: e.size,
|
|
593
594
|
step: e.step,
|
|
@@ -599,11 +600,11 @@ var Z = /* @__PURE__ */ w({
|
|
|
599
600
|
onFocus: o
|
|
600
601
|
}), S({ _: 2 }, ["prefix" in t.$slots ? {
|
|
601
602
|
name: "prefix",
|
|
602
|
-
fn:
|
|
603
|
+
fn: V(() => [P(t.$slots, "prefix")]),
|
|
603
604
|
key: "0"
|
|
604
605
|
} : void 0, "suffix" in t.$slots ? {
|
|
605
606
|
name: "suffix",
|
|
606
|
-
fn:
|
|
607
|
+
fn: V(() => [P(t.$slots, "suffix")]),
|
|
607
608
|
key: "1"
|
|
608
609
|
} : void 0]), 1040, ["modelValue"]));
|
|
609
610
|
}
|
|
@@ -613,7 +614,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
613
614
|
pageSizes: {},
|
|
614
615
|
background: { type: Boolean },
|
|
615
616
|
size: {},
|
|
616
|
-
layout: {
|
|
617
|
+
layout: {},
|
|
617
618
|
total: {},
|
|
618
619
|
defaultPageSize: { default: 20 }
|
|
619
620
|
}, {
|
|
@@ -624,32 +625,29 @@ var Z = /* @__PURE__ */ w({
|
|
|
624
625
|
}),
|
|
625
626
|
emits: /* @__PURE__ */ D(["sizeChange", "currentChange"], ["update:currentPage", "update:pageSize"]),
|
|
626
627
|
setup(e, { emit: t }) {
|
|
627
|
-
let n =
|
|
628
|
-
return _(
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
default: H(() => [F(t.$slots, "default")]),
|
|
645
|
-
_: 3
|
|
646
|
-
}, 16, [
|
|
647
|
-
"current-page",
|
|
648
|
-
"page-size",
|
|
649
|
-
"default-page-size"
|
|
650
|
-
])]),
|
|
628
|
+
let n = E(Q), r = t, i = R(e, "currentPage"), a = R(e, "pageSize");
|
|
629
|
+
return _(E(Z)), (t, o) => (j(), b(L(d), O({
|
|
630
|
+
size: e.size,
|
|
631
|
+
total: e.total,
|
|
632
|
+
pageSizes: e.pageSizes,
|
|
633
|
+
background: e.background,
|
|
634
|
+
layout: e.layout ?? L(n)?.pagination?.layout
|
|
635
|
+
}, {
|
|
636
|
+
"current-page": i.value,
|
|
637
|
+
"onUpdate:currentPage": o[0] ||= (e) => i.value = e,
|
|
638
|
+
"page-size": a.value,
|
|
639
|
+
"onUpdate:pageSize": o[1] ||= (e) => a.value = e,
|
|
640
|
+
"default-page-size": e.defaultPageSize,
|
|
641
|
+
onSizeChange: o[2] ||= (e) => r("sizeChange", e),
|
|
642
|
+
onCurrentChange: o[3] ||= (e) => r("currentChange", e)
|
|
643
|
+
}), {
|
|
644
|
+
default: V(() => [P(t.$slots, "default")]),
|
|
651
645
|
_: 3
|
|
652
|
-
},
|
|
646
|
+
}, 16, [
|
|
647
|
+
"current-page",
|
|
648
|
+
"page-size",
|
|
649
|
+
"default-page-size"
|
|
650
|
+
]));
|
|
653
651
|
}
|
|
654
652
|
}), He = /* @__PURE__ */ w({
|
|
655
653
|
__name: "Select",
|
|
@@ -673,9 +671,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
673
671
|
remoteMethod: { type: Function },
|
|
674
672
|
size: {},
|
|
675
673
|
supplement: { type: Function },
|
|
676
|
-
placeholder: {}
|
|
677
|
-
noDataText: {},
|
|
678
|
-
option: { type: Function }
|
|
674
|
+
placeholder: {}
|
|
679
675
|
}, {
|
|
680
676
|
modelValue: {},
|
|
681
677
|
modelModifiers: {}
|
|
@@ -686,13 +682,13 @@ var Z = /* @__PURE__ */ w({
|
|
|
686
682
|
"focus"
|
|
687
683
|
], ["update:modelValue"]),
|
|
688
684
|
setup(e, { emit: t }) {
|
|
689
|
-
let n = t, r =
|
|
685
|
+
let n = t, r = R(e, "modelValue"), { t: i } = _(E(Z)), a = se([]), o = J(() => e.data ?? [], e.factory), s = y(() => [...J(a, e.factory).value, ...o.value]), c = (t) => {
|
|
690
686
|
if (typeof t == "object") {
|
|
691
687
|
if (e.identify) return e.identify(t);
|
|
692
688
|
throw Error("`identify` is required when value's type extends `object` or `object[]`");
|
|
693
689
|
} else return t;
|
|
694
690
|
}, l = (e) => s.value.map((e) => e.value).find((t) => c(t) === e), u = 0;
|
|
695
|
-
|
|
691
|
+
B([r, o], async () => {
|
|
696
692
|
if (u++, r.value) {
|
|
697
693
|
let t = [...[], ...Array.isArray(r.value) ? r.value : [r.value]].filter((e) => !o.value.map((e) => c(e.value)).includes(c(e))), n = u, i = await e.supplement?.(t);
|
|
698
694
|
n === u && i && (a.value = i);
|
|
@@ -728,9 +724,8 @@ var Z = /* @__PURE__ */ w({
|
|
|
728
724
|
label: e.label,
|
|
729
725
|
value: e.value
|
|
730
726
|
}, { default: () => [e.render ?? e.label] });
|
|
731
|
-
return (t, n) => (j(), b(
|
|
732
|
-
placeholder: e.placeholder ??
|
|
733
|
-
noDataText: e.noDataText ?? R(i)("el.select.noDataText"),
|
|
727
|
+
return (t, n) => (j(), b(L(te), O({
|
|
728
|
+
placeholder: e.placeholder ?? L(i)("el.select.placeholder"),
|
|
734
729
|
disabled: e.disabled,
|
|
735
730
|
allowCreate: e.allowCreate,
|
|
736
731
|
remote: e.remote,
|
|
@@ -750,7 +745,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
750
745
|
onFocus: h,
|
|
751
746
|
onChange: g
|
|
752
747
|
}), {
|
|
753
|
-
default:
|
|
748
|
+
default: V(() => [(j(!0), x(v, null, N(d.value, (e) => (j(), b(S, {
|
|
754
749
|
label: e.label,
|
|
755
750
|
value: e.value,
|
|
756
751
|
disabled: e.disabled,
|
|
@@ -780,16 +775,10 @@ var Z = /* @__PURE__ */ w({
|
|
|
780
775
|
rowClassName: { type: [Function, String] },
|
|
781
776
|
rowStyle: { type: [Function, Object] },
|
|
782
777
|
rowKey: { type: Function },
|
|
783
|
-
showOverflowTooltip: {
|
|
784
|
-
type: [Boolean, Object],
|
|
785
|
-
default: () => void 0
|
|
786
|
-
},
|
|
778
|
+
showOverflowTooltip: { type: [Boolean, Object] },
|
|
787
779
|
showSummary: { type: Boolean },
|
|
788
780
|
size: {},
|
|
789
|
-
fit: {
|
|
790
|
-
type: Boolean,
|
|
791
|
-
default: !0
|
|
792
|
-
},
|
|
781
|
+
fit: { type: Boolean },
|
|
793
782
|
spanMethod: { type: Function },
|
|
794
783
|
summaryMethod: { type: Function }
|
|
795
784
|
},
|
|
@@ -800,17 +789,17 @@ var Z = /* @__PURE__ */ w({
|
|
|
800
789
|
"selectionChange"
|
|
801
790
|
],
|
|
802
791
|
setup(e, { expose: t, emit: n }) {
|
|
803
|
-
let r = n,
|
|
792
|
+
let r = n, i = E(Q)?.table, a = z("table");
|
|
804
793
|
t({
|
|
805
|
-
clearSelection: () =>
|
|
806
|
-
getSelectionRows: () =>
|
|
807
|
-
scrollTo: (e, t) =>
|
|
808
|
-
setCurrentRow: (e) =>
|
|
809
|
-
setScrollLeft: (e) =>
|
|
810
|
-
setScrollTop: (e) =>
|
|
811
|
-
toggleRowSelection: (e, t, n) =>
|
|
794
|
+
clearSelection: () => a.value?.clearSelection(),
|
|
795
|
+
getSelectionRows: () => a.value?.getSelectionRows(),
|
|
796
|
+
scrollTo: (e, t) => a.value?.scrollTo(e, t),
|
|
797
|
+
setCurrentRow: (e) => a.value?.setCurrentRow(e),
|
|
798
|
+
setScrollLeft: (e) => a.value?.scrollTo(e),
|
|
799
|
+
setScrollTop: (e) => a.value?.scrollTo(e),
|
|
800
|
+
toggleRowSelection: (e, t, n) => a.value?.toggleRowSelection(e, t, n)
|
|
812
801
|
}), M(Te, !0);
|
|
813
|
-
let
|
|
802
|
+
let o = /* @__PURE__ */ w((e) => () => C(m, {
|
|
814
803
|
fixed: e.fixed,
|
|
815
804
|
label: e.label,
|
|
816
805
|
prop: e.prop,
|
|
@@ -835,37 +824,33 @@ var Z = /* @__PURE__ */ w({
|
|
|
835
824
|
"type",
|
|
836
825
|
"width"
|
|
837
826
|
] });
|
|
838
|
-
return (t, n) => (j(), b(
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}), {
|
|
864
|
-
default: H(() => [(j(!0), x(v, null, P(e.columns, (e) => (j(), b(R(l), O({ ref_for: !0 }, e), null, 16))), 256))]),
|
|
865
|
-
_: 1
|
|
866
|
-
}, 16)]),
|
|
827
|
+
return (t, n) => (j(), b(L(p), O({
|
|
828
|
+
ref_key: "table",
|
|
829
|
+
ref: a
|
|
830
|
+
}, {
|
|
831
|
+
data: e.data,
|
|
832
|
+
height: e.height,
|
|
833
|
+
rowClassName: e.rowClassName,
|
|
834
|
+
rowStyle: e.rowStyle,
|
|
835
|
+
cellClassName: e.cellClassName,
|
|
836
|
+
cellStyle: e.cellStyle,
|
|
837
|
+
showSummary: e.showSummary,
|
|
838
|
+
spanMethod: e.spanMethod,
|
|
839
|
+
summaryMethod: e.summaryMethod,
|
|
840
|
+
size: e.size,
|
|
841
|
+
showOverflowTooltip: !0,
|
|
842
|
+
fit: !0,
|
|
843
|
+
rowKey: e.rowKey,
|
|
844
|
+
border: e.border ?? L(i)?.border
|
|
845
|
+
}, {
|
|
846
|
+
onRowClick: n[0] ||= (e) => r("rowClick", e),
|
|
847
|
+
onRowDblclick: n[1] ||= (e) => r("rowDblclick", e),
|
|
848
|
+
onSelectionChange: n[2] ||= (e) => r("selectionChange", e),
|
|
849
|
+
onHeaderDragend: n[3] ||= (e, t, n) => r("headerDragend", e, t, n)
|
|
850
|
+
}), {
|
|
851
|
+
default: V(() => [(j(!0), x(v, null, N(e.columns, (e) => (j(), b(L(o), O({ ref_for: !0 }, e), null, 16))), 256))]),
|
|
867
852
|
_: 1
|
|
868
|
-
},
|
|
853
|
+
}, 16));
|
|
869
854
|
}
|
|
870
855
|
}), We = /* @__PURE__ */ w({
|
|
871
856
|
__name: "TabPane",
|
|
@@ -880,14 +865,14 @@ var Z = /* @__PURE__ */ w({
|
|
|
880
865
|
return t({
|
|
881
866
|
label: e.label,
|
|
882
867
|
name: e.name
|
|
883
|
-
}), M(Oe, !0), M(Ae, e.name), (t, n) => (j(), b(
|
|
868
|
+
}), M(Oe, !0), M(Ae, e.name), (t, n) => (j(), b(L(f), k(T({
|
|
884
869
|
label: e.label,
|
|
885
870
|
name: e.name,
|
|
886
871
|
disabled: e.disabled,
|
|
887
872
|
closable: e.closable,
|
|
888
873
|
lazy: e.lazy
|
|
889
874
|
})), {
|
|
890
|
-
default:
|
|
875
|
+
default: V(() => [P(t.$slots, "default")]),
|
|
891
876
|
_: 3
|
|
892
877
|
}, 16));
|
|
893
878
|
}
|
|
@@ -904,10 +889,10 @@ var Z = /* @__PURE__ */ w({
|
|
|
904
889
|
}),
|
|
905
890
|
emits: /* @__PURE__ */ D(["change", "remove"], ["update:modelValue"]),
|
|
906
891
|
setup(e) {
|
|
907
|
-
let t =
|
|
892
|
+
let t = R(e, "modelValue");
|
|
908
893
|
M(De, !0);
|
|
909
|
-
let n =
|
|
910
|
-
return M(je, n), n.on((e) => t.value = e), (n, r) => (j(), b(
|
|
894
|
+
let n = de();
|
|
895
|
+
return M(je, n), n.on((e) => t.value = e), (n, r) => (j(), b(L(h), O({
|
|
911
896
|
addable: e.addable,
|
|
912
897
|
editable: e.editable,
|
|
913
898
|
tabPosition: e.tabPosition,
|
|
@@ -918,7 +903,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
918
903
|
onTabChange: r[1] ||= (e) => n.$emit("change", e),
|
|
919
904
|
onTabRemove: r[2] ||= (e) => n.$emit("remove", e)
|
|
920
905
|
}), {
|
|
921
|
-
default:
|
|
906
|
+
default: V(() => [P(n.$slots, "default")]),
|
|
922
907
|
_: 3
|
|
923
908
|
}, 16, ["modelValue"]));
|
|
924
909
|
}
|
|
@@ -954,7 +939,7 @@ var Z = /* @__PURE__ */ w({
|
|
|
954
939
|
}, i = (t) => {
|
|
955
940
|
e.onPreview?.(t);
|
|
956
941
|
};
|
|
957
|
-
return (t, a) => (j(), b(
|
|
942
|
+
return (t, a) => (j(), b(L(g), k(T({
|
|
958
943
|
action: e.action,
|
|
959
944
|
disabled: e.disabled,
|
|
960
945
|
accept: e.accept,
|
|
@@ -968,12 +953,12 @@ var Z = /* @__PURE__ */ w({
|
|
|
968
953
|
onSuccess: n,
|
|
969
954
|
onRemove: r
|
|
970
955
|
})), S({
|
|
971
|
-
default:
|
|
956
|
+
default: V(() => [P(t.$slots, "default")]),
|
|
972
957
|
_: 2
|
|
973
958
|
}, [
|
|
974
959
|
"file" in t.$slots ? {
|
|
975
960
|
name: "file",
|
|
976
|
-
fn:
|
|
961
|
+
fn: V(({ file: e, index: n }) => [P(t.$slots, "file", {
|
|
977
962
|
file: e,
|
|
978
963
|
index: n
|
|
979
964
|
})]),
|
|
@@ -981,18 +966,18 @@ var Z = /* @__PURE__ */ w({
|
|
|
981
966
|
} : void 0,
|
|
982
967
|
"tip" in t.$slots ? {
|
|
983
968
|
name: "tip",
|
|
984
|
-
fn:
|
|
969
|
+
fn: V(() => [P(t.$slots, "tip")]),
|
|
985
970
|
key: "1"
|
|
986
971
|
} : void 0,
|
|
987
972
|
"trigger" in t.$slots ? {
|
|
988
973
|
name: "trigger",
|
|
989
|
-
fn:
|
|
974
|
+
fn: V(() => [P(t.$slots, "trigger")]),
|
|
990
975
|
key: "2"
|
|
991
976
|
} : void 0
|
|
992
977
|
]), 1040));
|
|
993
978
|
}
|
|
994
|
-
}), qe = /* @__PURE__ */
|
|
995
|
-
XButton: () =>
|
|
979
|
+
}), qe = /* @__PURE__ */ U({
|
|
980
|
+
XButton: () => Ce,
|
|
996
981
|
XCascader: () => Me,
|
|
997
982
|
XCheckbox: () => Ne,
|
|
998
983
|
XConfigProvider: () => Pe,
|
|
@@ -1010,4 +995,4 @@ var Z = /* @__PURE__ */ w({
|
|
|
1010
995
|
XUpload: () => Ke
|
|
1011
996
|
});
|
|
1012
997
|
//#endregion
|
|
1013
|
-
export {
|
|
998
|
+
export { U as A, X as C, _e as D, W as E, J as O, ve as S, q as T, Q as _, Ue as a, Z as b, Be as c, Le as d, Ie as f, Me as g, Ne as h, We as i, ge as k, ze as l, Pe as m, Ke as n, He as o, Fe as p, Ge as r, Ve as s, qe as t, Re as u, we as v, Se as w, Ce as x, Te as y };
|