y-admin-ui 0.2.4 → 0.2.6
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/lib/{index.ea708d79.js → index.38a61184.js} +67 -64
- package/lib/index.38a61184.js.gz +0 -0
- package/lib/index.b6351a72.js +6 -0
- package/lib/lang/en.ts +41 -0
- package/lib/lang/zh-cn.ts +41 -0
- package/lib/lang/zh-tw.ts +41 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/y-admin-ui.js +1 -1
- package/lib/y-admin-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/lib/index.45d9b53d.js +0 -6
- package/lib/index.ea708d79.js.gz +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import Pu, { defineComponent as Re, h as vo, getCurrentInstance as Za, effectScope as wu, inject as bo, onMounted as Ea, onUnmounted as Fu, shallowRef as fo, ref as Ll, computed as he, onBeforeMount as Ru, watch as il, Fragment as
|
1
|
+
import Pu, { defineComponent as Re, h as vo, getCurrentInstance as Za, effectScope as wu, inject as bo, onMounted as Ea, onUnmounted as Fu, shallowRef as fo, ref as Ll, computed as he, onBeforeMount as Ru, watch as il, Fragment as Vl, isRef as _u, createVNode as ge, Text as Mu, reactive as Yl, resolveComponent as $e, openBlock as J, createElementBlock as pe, renderSlot as Be, renderList as ql, unref as Me, withCtx as le, createCommentVNode as _e, createElementVNode as ke, normalizeClass as ml, toDisplayString as al, createTextVNode as Dl, createBlock as Ve, normalizeStyle as $l, createSlots as _a, nextTick as Ul, resolveDirective as ku, withDirectives as Bu, defineAsyncComponent as sr, onActivated as Uu, onDeactivated as mo, useSlots as po, withModifiers as ln, normalizeProps as Vu, guardReactiveProps as $u, mergeProps as $a, resolveDynamicComponent as cr, toHandlers as ju } from "vue";
|
2
2
|
function Ib(e, l = 500, a, n) {
|
3
3
|
let r = null, o = !1;
|
4
4
|
const t = function(...u) {
|
@@ -63,10 +63,10 @@ function xb(e, l = 2, a = ",", n = ".", r = "", o = "") {
|
|
63
63
|
* (c) 2024 kazuya kawaguchi
|
64
64
|
* Released under the MIT License.
|
65
65
|
*/
|
66
|
-
const
|
66
|
+
const Wl = typeof window < "u";
|
67
67
|
let Pl, ha;
|
68
68
|
if (process.env.NODE_ENV !== "production") {
|
69
|
-
const e =
|
69
|
+
const e = Wl && window.performance;
|
70
70
|
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (Pl = (l) => {
|
71
71
|
e.mark(l);
|
72
72
|
}, ha = (l, a, n) => {
|
@@ -77,14 +77,14 @@ const Wu = /\{([0-9a-zA-Z]+)\}/g;
|
|
77
77
|
function En(e, ...l) {
|
78
78
|
return l.length === 1 && Pe(l[0]) && (l = l[0]), (!l || !l.hasOwnProperty) && (l = {}), e.replace(Wu, (a, n) => l.hasOwnProperty(n) ? l[n] : "");
|
79
79
|
}
|
80
|
-
const
|
80
|
+
const Hl = (e, l = !1) => l ? Symbol.for(e) : Symbol(e), Hu = (e, l, a) => Gu({ l: e, k: l, s: a }), Gu = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), rl = (e) => typeof e == "number" && isFinite(e), Ku = (e) => go(e) === "[object Date]", ra = (e) => go(e) === "[object RegExp]", Lt = (e) => be(e) && Object.keys(e).length === 0, pl = Object.assign, Yu = Object.create, We = (e = null) => Yu(e);
|
81
81
|
let vr;
|
82
82
|
const Ql = () => vr || (vr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : We());
|
83
83
|
function br(e) {
|
84
84
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
85
85
|
}
|
86
86
|
const zu = Object.prototype.hasOwnProperty;
|
87
|
-
function
|
87
|
+
function jl(e, l) {
|
88
88
|
return zu.call(e, l);
|
89
89
|
}
|
90
90
|
const Ke = Array.isArray, je = (e) => typeof e == "function", Y = (e) => typeof e == "string", ye = (e) => typeof e == "boolean", Pe = (e) => e !== null && typeof e == "object", Xu = (e) => Pe(e) && je(e.then) && je(e.catch), ho = Object.prototype.toString, go = (e) => ho.call(e), be = (e) => {
|
@@ -1496,17 +1496,17 @@ function an(e, l) {
|
|
1496
1496
|
return it(l, a);
|
1497
1497
|
case 4: {
|
1498
1498
|
const n = l;
|
1499
|
-
if (
|
1499
|
+
if (jl(n, "k") && n.k)
|
1500
1500
|
return e.interpolate(e.named(n.k));
|
1501
|
-
if (
|
1501
|
+
if (jl(n, "key") && n.key)
|
1502
1502
|
return e.interpolate(e.named(n.key));
|
1503
1503
|
throw et(a);
|
1504
1504
|
}
|
1505
1505
|
case 5: {
|
1506
1506
|
const n = l;
|
1507
|
-
if (
|
1507
|
+
if (jl(n, "i") && rl(n.i))
|
1508
1508
|
return e.interpolate(e.list(n.i));
|
1509
|
-
if (
|
1509
|
+
if (jl(n, "index") && rl(n.index))
|
1510
1510
|
return e.interpolate(e.list(n.index));
|
1511
1511
|
throw et(a);
|
1512
1512
|
}
|
@@ -1547,7 +1547,7 @@ function Is(e) {
|
|
1547
1547
|
function ia(e, l, a) {
|
1548
1548
|
for (let n = 0; n < l.length; n++) {
|
1549
1549
|
const r = l[n];
|
1550
|
-
if (
|
1550
|
+
if (jl(e, r) && e[r] != null)
|
1551
1551
|
return e[r];
|
1552
1552
|
}
|
1553
1553
|
return a;
|
@@ -1567,7 +1567,7 @@ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-forma
|
|
1567
1567
|
(message compiler warning message: ${e.message})`);
|
1568
1568
|
}
|
1569
1569
|
function oa(e) {
|
1570
|
-
return Pe(e) && In(e) === 0 && (
|
1570
|
+
return Pe(e) && In(e) === 0 && (jl(e, "b") || jl(e, "body"));
|
1571
1571
|
}
|
1572
1572
|
function Mo(e, l = {}) {
|
1573
1573
|
let a = !1;
|
@@ -1671,7 +1671,7 @@ function ko(e, l, a, n, r, o) {
|
|
1671
1671
|
}
|
1672
1672
|
v = t[b] || We();
|
1673
1673
|
let E = null, h, y;
|
1674
|
-
if (process.env.NODE_ENV !== "production" &&
|
1674
|
+
if (process.env.NODE_ENV !== "production" && Wl && (E = window.performance.now(), h = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Pl && Pl(h)), (d = i(v, l)) === null && (d = v[l]), process.env.NODE_ENV !== "production" && Wl) {
|
1675
1675
|
const C = window.performance.now(), O = e.__v_emitter;
|
1676
1676
|
O && E && d && O.emit("message-resolve", {
|
1677
1677
|
type: "message-resolve",
|
@@ -1708,9 +1708,9 @@ function Bo(e, l, a, n, r, o) {
|
|
1708
1708
|
return b.locale = a, b.key = l, b;
|
1709
1709
|
}
|
1710
1710
|
let i = null, s, c;
|
1711
|
-
process.env.NODE_ENV !== "production" &&
|
1711
|
+
process.env.NODE_ENV !== "production" && Wl && (i = window.performance.now(), s = "intlify-message-compilation-start", c = "intlify-message-compilation-end", Pl && Pl(s));
|
1712
1712
|
const v = t(n, Ps(e, a, r, n, u, o));
|
1713
|
-
if (process.env.NODE_ENV !== "production" &&
|
1713
|
+
if (process.env.NODE_ENV !== "production" && Wl) {
|
1714
1714
|
const b = window.performance.now(), d = e.__v_emitter;
|
1715
1715
|
d && i && d.emit("message-compilation", {
|
1716
1716
|
type: "message-compilation",
|
@@ -1723,9 +1723,9 @@ function Bo(e, l, a, n, r, o) {
|
|
1723
1723
|
}
|
1724
1724
|
function Ls(e, l, a) {
|
1725
1725
|
let n = null, r, o;
|
1726
|
-
process.env.NODE_ENV !== "production" &&
|
1726
|
+
process.env.NODE_ENV !== "production" && Wl && (n = window.performance.now(), r = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Pl && Pl(r));
|
1727
1727
|
const t = l(a);
|
1728
|
-
if (process.env.NODE_ENV !== "production" &&
|
1728
|
+
if (process.env.NODE_ENV !== "production" && Wl) {
|
1729
1729
|
const u = window.performance.now(), i = e.__v_emitter;
|
1730
1730
|
i && n && i.emit("message-evaluation", {
|
1731
1731
|
type: "message-evaluation",
|
@@ -2129,14 +2129,14 @@ const Gs = {
|
|
2129
2129
|
[we.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
2130
2130
|
[we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
2131
2131
|
[we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
2132
|
-
}, un = /* @__PURE__ */
|
2133
|
-
|
2134
|
-
const Ko = /* @__PURE__ */
|
2132
|
+
}, un = /* @__PURE__ */ Hl("__translateVNode"), sn = /* @__PURE__ */ Hl("__datetimeParts"), cn = /* @__PURE__ */ Hl("__numberParts"), ya = /* @__PURE__ */ Hl("__enableEmitter"), lt = /* @__PURE__ */ Hl("__disableEmitter"), Go = Hl("__setPluralRules");
|
2133
|
+
Hl("__intlifyMeta");
|
2134
|
+
const Ko = /* @__PURE__ */ Hl("__injectWithOption"), vn = /* @__PURE__ */ Hl("__dispose");
|
2135
2135
|
function at(e) {
|
2136
2136
|
if (!Pe(e))
|
2137
2137
|
return e;
|
2138
2138
|
for (const l in e)
|
2139
|
-
if (
|
2139
|
+
if (!!jl(e, l))
|
2140
2140
|
if (!l.includes("."))
|
2141
2141
|
Pe(e[l]) && at(e[l]);
|
2142
2142
|
else {
|
@@ -2165,7 +2165,7 @@ function _t(e, l) {
|
|
2165
2165
|
Y(u) && pt(JSON.parse(u), t);
|
2166
2166
|
}), r == null && o)
|
2167
2167
|
for (const u in t)
|
2168
|
-
|
2168
|
+
jl(t, u) && at(t[u]);
|
2169
2169
|
return t;
|
2170
2170
|
}
|
2171
2171
|
function Yo(e) {
|
@@ -2210,7 +2210,7 @@ const Ys = () => {
|
|
2210
2210
|
return e && (l = Yo(e)[kr]) ? { [kr]: l } : null;
|
2211
2211
|
};
|
2212
2212
|
function Nn(e = {}, l) {
|
2213
|
-
const { __root: a, __injectWithOption: n } = e, r = a === void 0, o = e.flatJson, t =
|
2213
|
+
const { __root: a, __injectWithOption: n } = e, r = a === void 0, o = e.flatJson, t = Wl ? Ll : fo, u = !!e.translateExistCompatible;
|
2214
2214
|
process.env.NODE_ENV !== "production" && u && yo(Il(Xe.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
2215
2215
|
let i = ye(e.inheritLocale) ? e.inheritLocale : !0;
|
2216
2216
|
const s = t(
|
@@ -2406,7 +2406,7 @@ function Nn(e = {}, l) {
|
|
2406
2406
|
if (o) {
|
2407
2407
|
const A = { [w]: j };
|
2408
2408
|
for (const D in A)
|
2409
|
-
|
2409
|
+
jl(A, D) && at(A[D]);
|
2410
2410
|
j = A[w];
|
2411
2411
|
}
|
2412
2412
|
v.value[w] = j, S.messages = v.value;
|
@@ -2416,7 +2416,7 @@ function Nn(e = {}, l) {
|
|
2416
2416
|
const A = { [w]: j };
|
2417
2417
|
if (o)
|
2418
2418
|
for (const D in A)
|
2419
|
-
|
2419
|
+
jl(A, D) && at(A[D]);
|
2420
2420
|
j = A[w], pt(j, v.value[w]), S.messages = v.value;
|
2421
2421
|
}
|
2422
2422
|
function T(w) {
|
@@ -2437,7 +2437,7 @@ function Nn(e = {}, l) {
|
|
2437
2437
|
function Ae(w, j) {
|
2438
2438
|
d.value[w] = pl(d.value[w] || {}, j), S.numberFormats = d.value, _r(S, w, j);
|
2439
2439
|
}
|
2440
|
-
Ur++, a &&
|
2440
|
+
Ur++, a && Wl && (il(a.locale, (w) => {
|
2441
2441
|
i && (s.value = w, S.locale = w, ka(S, s.value, c.value));
|
2442
2442
|
}), il(a.fallbackLocale, (w) => {
|
2443
2443
|
i && (c.value = w, S.fallbackLocale = w, ka(S, s.value, c.value));
|
@@ -2751,14 +2751,14 @@ const xn = {
|
|
2751
2751
|
function Xs({ slots: e }, l) {
|
2752
2752
|
return l.length === 1 && l[0] === "default" ? (e.default ? e.default() : []).reduce((n, r) => [
|
2753
2753
|
...n,
|
2754
|
-
...r.type ===
|
2754
|
+
...r.type === Vl ? r.children : [r]
|
2755
2755
|
], []) : l.reduce((a, n) => {
|
2756
2756
|
const r = e[n];
|
2757
2757
|
return r && (a[n] = r()), a;
|
2758
2758
|
}, We());
|
2759
2759
|
}
|
2760
2760
|
function Xo(e) {
|
2761
|
-
return
|
2761
|
+
return Vl;
|
2762
2762
|
}
|
2763
2763
|
const Js = /* @__PURE__ */ Re({
|
2764
2764
|
name: "i18n-t",
|
@@ -2866,12 +2866,12 @@ function lc(e) {
|
|
2866
2866
|
return {
|
2867
2867
|
created: (t, u) => {
|
2868
2868
|
const [i, s] = l(u);
|
2869
|
-
|
2869
|
+
Wl && e.global === s && (t.__i18nWatcher = il(s.locale, () => {
|
2870
2870
|
u.instance && u.instance.$forceUpdate();
|
2871
2871
|
})), t.__composer = s, t.textContent = i;
|
2872
2872
|
},
|
2873
2873
|
unmounted: (t) => {
|
2874
|
-
|
2874
|
+
Wl && t.__i18nWatcher && (t.__i18nWatcher(), t.__i18nWatcher = void 0, delete t.__i18nWatcher), t.__composer && (t.__composer = void 0, delete t.__composer);
|
2875
2875
|
},
|
2876
2876
|
beforeUpdate: (t, { value: u }) => {
|
2877
2877
|
if (t.__composer) {
|
@@ -3224,9 +3224,9 @@ function Kr(e, l) {
|
|
3224
3224
|
});
|
3225
3225
|
return Object.keys(a).forEach((n) => e.mergeLocaleMessage(n, a[n])), l.datetimeFormats && Object.keys(l.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, l.datetimeFormats[n])), l.numberFormats && Object.keys(l.numberFormats).forEach((n) => e.mergeNumberFormat(n, l.numberFormats[n])), e;
|
3226
3226
|
}
|
3227
|
-
const hc = /* @__PURE__ */
|
3227
|
+
const hc = /* @__PURE__ */ Hl("global-vue-i18n");
|
3228
3228
|
function gc(e = {}, l) {
|
3229
|
-
const a = __VUE_I18N_LEGACY_API__ && ye(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, n = ye(e.globalInjection) ? e.globalInjection : !0, r = __VUE_I18N_LEGACY_API__ && a ? !!e.allowComposition : !0, o = /* @__PURE__ */ new Map(), [t, u] = yc(e, a), i = /* @__PURE__ */
|
3229
|
+
const a = __VUE_I18N_LEGACY_API__ && ye(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, n = ye(e.globalInjection) ? e.globalInjection : !0, r = __VUE_I18N_LEGACY_API__ && a ? !!e.allowComposition : !0, o = /* @__PURE__ */ new Map(), [t, u] = yc(e, a), i = /* @__PURE__ */ Hl(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
3230
3230
|
process.env.NODE_ENV !== "production" && a && r && sl(Il(Xe.NOTICE_DROP_ALLOW_COMPOSITION));
|
3231
3231
|
function s(b) {
|
3232
3232
|
return o.get(b) || null;
|
@@ -7795,7 +7795,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
7795
7795
|
const m = $e("el-tooltip"), g = $e("el-dropdown-item"), E = $e("el-dropdown-menu"), h = $e("el-dropdown"), y = $e("el-checkbox"), C = $e("el-link"), O = $e("el-checkbox-group"), N = $e("el-popover");
|
7796
7796
|
return J(), pe("div", Sv, [
|
7797
7797
|
Be(p.$slots, "default"),
|
7798
|
-
(J(!0), pe(
|
7798
|
+
(J(!0), pe(Vl, null, ql(a.tools, (x) => (J(), pe(Vl, null, [
|
7799
7799
|
x === "reload" ? (J(), pe("div", {
|
7800
7800
|
class: "y-tool-item y-action",
|
7801
7801
|
key: x,
|
@@ -8039,7 +8039,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8039
8039
|
columns: e.columns,
|
8040
8040
|
tools: e.tools,
|
8041
8041
|
"columns-sort": e.columnsSort,
|
8042
|
-
style:
|
8042
|
+
style: $l(e.toolkitStyle),
|
8043
8043
|
"is-fullscreen": e.isFullscreen,
|
8044
8044
|
onReload: r,
|
8045
8045
|
"onUpdate:size": o,
|
@@ -8096,7 +8096,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8096
8096
|
"filtered-value": l.col.filteredValue
|
8097
8097
|
}, {
|
8098
8098
|
default: le(() => [
|
8099
|
-
(J(!0), pe(
|
8099
|
+
(J(!0), pe(Vl, null, ql(l.col.children, (o) => (J(), Ve(du, {
|
8100
8100
|
key: o.columnKey || o.prop,
|
8101
8101
|
col: o,
|
8102
8102
|
index: e.index
|
@@ -8370,7 +8370,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8370
8370
|
), il(
|
8371
8371
|
() => n.selection,
|
8372
8372
|
() => {
|
8373
|
-
|
8373
|
+
Ul(() => {
|
8374
8374
|
ue();
|
8375
8375
|
});
|
8376
8376
|
},
|
@@ -8417,7 +8417,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8417
8417
|
);
|
8418
8418
|
} else
|
8419
8419
|
typeof H == "string" ? o.errorText = H : o.errorText = "\u83B7\u53D6\u6570\u636E\u5931\u8D25";
|
8420
|
-
|
8420
|
+
Ul(() => {
|
8421
8421
|
ue();
|
8422
8422
|
});
|
8423
8423
|
}
|
@@ -8463,15 +8463,15 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8463
8463
|
}, _ = () => {
|
8464
8464
|
t.value.clearSelection();
|
8465
8465
|
}, z = (M, H = !1) => {
|
8466
|
-
|
8466
|
+
Ul(() => {
|
8467
8467
|
t.value.toggleRowSelection(eu(M.id, o.data, n.rowKey), H);
|
8468
8468
|
});
|
8469
8469
|
}, ue = () => {
|
8470
8470
|
o.data.forEach((M) => {
|
8471
8471
|
n.selection.forEach((H) => {
|
8472
|
-
M.id === H.id && typeof M.id < "u" && typeof H.id < "u" ?
|
8472
|
+
M.id === H.id && typeof M.id < "u" && typeof H.id < "u" ? Ul(() => {
|
8473
8473
|
z(M, !0);
|
8474
|
-
}) : n.rowClickCheckedIntelligent &&
|
8474
|
+
}) : n.rowClickCheckedIntelligent && Ul(() => {
|
8475
8475
|
z(M, !1);
|
8476
8476
|
});
|
8477
8477
|
});
|
@@ -8499,7 +8499,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8499
8499
|
}, Ne = (M) => {
|
8500
8500
|
o.tableSize = M, a("size-change", M);
|
8501
8501
|
}, fe = (M) => {
|
8502
|
-
o.reloading = !0, o.cols = M, a("columns-change", M),
|
8502
|
+
o.reloading = !0, o.cols = M, a("columns-change", M), Ul(() => {
|
8503
8503
|
o.reloading = !1;
|
8504
8504
|
});
|
8505
8505
|
}, Ee = (M) => {
|
@@ -8535,7 +8535,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8535
8535
|
const P = $e("el-empty"), q = $e("el-table"), nl = $e("el-pagination"), Qe = ku("loading");
|
8536
8536
|
return J(), pe("div", {
|
8537
8537
|
class: ml(s.value),
|
8538
|
-
style:
|
8538
|
+
style: $l(c.value)
|
8539
8539
|
}, [
|
8540
8540
|
n.toolbar ? (J(), Ve(Bv, {
|
8541
8541
|
key: 0,
|
@@ -8548,7 +8548,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8548
8548
|
tools: n.toolkit,
|
8549
8549
|
"columns-sort": n.columnsSort,
|
8550
8550
|
"toolkit-style": n.toolkitStyle,
|
8551
|
-
style:
|
8551
|
+
style: $l(M.toolStyle),
|
8552
8552
|
class: ml(M.toolClass),
|
8553
8553
|
"is-fullscreen": o.tableFullscreen,
|
8554
8554
|
onReload: Se,
|
@@ -8599,7 +8599,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8599
8599
|
lazy: n.lazy,
|
8600
8600
|
load: n.load,
|
8601
8601
|
treeProps: n.treeProps,
|
8602
|
-
style:
|
8602
|
+
style: $l(n.customStyle),
|
8603
8603
|
class: ml({
|
8604
8604
|
"hidden-all-checkBox": n.rowClickCheckedIntelligent
|
8605
8605
|
}),
|
@@ -8633,7 +8633,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8633
8633
|
Be(M.$slots, "append")
|
8634
8634
|
]),
|
8635
8635
|
default: le(() => [
|
8636
|
-
o.reloading ? _e("", !0) : (J(!0), pe(
|
8636
|
+
o.reloading ? _e("", !0) : (J(!0), pe(Vl, { key: 0 }, ql(o.cols, (bl) => (J(), Ve(du, {
|
8637
8637
|
key: bl.columnKey || bl.prop,
|
8638
8638
|
col: bl,
|
8639
8639
|
index: i.value
|
@@ -8668,7 +8668,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
8668
8668
|
"next-text": n.nextText,
|
8669
8669
|
"hide-on-single-page": n.hideOnSinglePage,
|
8670
8670
|
background: !0,
|
8671
|
-
style:
|
8671
|
+
style: $l(n.paginationStyle),
|
8672
8672
|
class: ml(n.paginationClass),
|
8673
8673
|
onCurrentChange: p,
|
8674
8674
|
onSizeChange: d
|
@@ -23127,7 +23127,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
23127
23127
|
"before-leave"
|
23128
23128
|
],
|
23129
23129
|
setup(e, { emit: l }) {
|
23130
|
-
const a = e, n = sr(() => import("./index.fcb0faf9.js")), r = sr(() => import("./index.
|
23130
|
+
const a = e, n = sr(() => import("./index.fcb0faf9.js")), r = sr(() => import("./index.b6351a72.js")), o = Yl({
|
23131
23131
|
selectedLabel: "",
|
23132
23132
|
selected: [],
|
23133
23133
|
visible: !1,
|
@@ -23261,7 +23261,7 @@ const fu = /* @__PURE__ */ Mc(lu.exports), Sv = { class: "y-tool" }, Ov = /* @__
|
|
23261
23261
|
return a.multiple ? !Array.isArray(a.modelValue) || !a.modelValue.length ? !1 : W.some((re) => a.modelValue.includes(re[a.valueKey])) : W.some((re) => re[a.valueKey] === a.modelValue);
|
23262
23262
|
}, R = (W, G = void 0) => G ? G.find((Q) => Q[a.valueKey] === W) : R(W, S()), V = () => {
|
23263
23263
|
var W;
|
23264
|
-
if (
|
23264
|
+
if (Ul(() => {
|
23265
23265
|
var G;
|
23266
23266
|
(G = u == null ? void 0 : u.value) == null || G.updatePopper();
|
23267
23267
|
}), !a.multiple) {
|
@@ -23525,7 +23525,7 @@ const qv = {
|
|
23525
23525
|
top: "50%",
|
23526
23526
|
left: "50%"
|
23527
23527
|
};
|
23528
|
-
r.visible = !0, r.popProps = ro(!0, !h, m),
|
23528
|
+
r.visible = !0, r.popProps = ro(!0, !h, m), Ul(() => {
|
23529
23529
|
p();
|
23530
23530
|
});
|
23531
23531
|
}, s = () => {
|
@@ -23552,11 +23552,11 @@ const qv = {
|
|
23552
23552
|
ref_key: "rootRef",
|
23553
23553
|
ref: o,
|
23554
23554
|
class: ml(["y-tour", { "y-tour-mask": r.showMask }, { "y-tour-open": r.visible }]),
|
23555
|
-
style:
|
23555
|
+
style: $l({ zIndex: f.zIndex })
|
23556
23556
|
}, [
|
23557
23557
|
ke("div", {
|
23558
23558
|
class: "y-tour-box",
|
23559
|
-
style:
|
23559
|
+
style: $l(r.boxStyle)
|
23560
23560
|
}, null, 4),
|
23561
23561
|
ge(E, {
|
23562
23562
|
ref_key: "popoverRef",
|
@@ -23576,11 +23576,11 @@ const qv = {
|
|
23576
23576
|
reference: le(() => [
|
23577
23577
|
ke("div", {
|
23578
23578
|
class: "y-tour-reference",
|
23579
|
-
style:
|
23579
|
+
style: $l(r.boxStyle)
|
23580
23580
|
}, null, 4)
|
23581
23581
|
]),
|
23582
23582
|
default: le(() => [
|
23583
|
-
a.steps && r.step ? (J(), pe(
|
23583
|
+
a.steps && r.step ? (J(), pe(Vl, { key: 0 }, [
|
23584
23584
|
r.step.title ? (J(), pe("div", qv, [
|
23585
23585
|
Be(f.$slots, "title", {
|
23586
23586
|
step: r.step,
|
@@ -23884,7 +23884,7 @@ const I0 = { class: "el-dialog__title" }, N0 = Re({
|
|
23884
23884
|
}), il(
|
23885
23885
|
() => a.visible,
|
23886
23886
|
(N) => {
|
23887
|
-
n.modalVisible = N,
|
23887
|
+
n.modalVisible = N, Ul(() => {
|
23888
23888
|
if (N) {
|
23889
23889
|
const x = b();
|
23890
23890
|
a.resetOnClose && O0(x, a.width, v.value), a.position && C0(x, a.position, a.resizable, a.moveOut, a.resetOnClose), Eu(x);
|
@@ -23945,7 +23945,7 @@ const I0 = { class: "el-dialog__title" }, N0 = Re({
|
|
23945
23945
|
"before-close": N.beforeClose,
|
23946
23946
|
center: N.center,
|
23947
23947
|
"destroy-on-close": !1,
|
23948
|
-
style:
|
23948
|
+
style: $l(t.value),
|
23949
23949
|
class: ml(o.value),
|
23950
23950
|
"onUpdate:visible": d,
|
23951
23951
|
onOpen: p,
|
@@ -24181,7 +24181,7 @@ const mt = (e) => e, $0 = {
|
|
24181
24181
|
class: ml(["y-image-upload-item-draggable", { draggable: !c.disabled }])
|
24182
24182
|
}, [
|
24183
24183
|
ke("div", {
|
24184
|
-
style:
|
24184
|
+
style: $l(c.itemStyle),
|
24185
24185
|
class: ml(["y-image-upload-item"]),
|
24186
24186
|
onClick: i
|
24187
24187
|
}, [
|
@@ -24304,7 +24304,7 @@ const mt = (e) => e, $0 = {
|
|
24304
24304
|
}, v = (f) => {
|
24305
24305
|
u(a.modelValue.filter((m) => m !== f)), l("remove", f);
|
24306
24306
|
}, b = (f, m) => {
|
24307
|
-
a.preview && f.url &&
|
24307
|
+
a.preview && f.url && Ul(() => {
|
24308
24308
|
r.currentUrl = f.url, d(m);
|
24309
24309
|
}), l("item-click", f);
|
24310
24310
|
}, d = (f) => {
|
@@ -24349,7 +24349,7 @@ const mt = (e) => e, $0 = {
|
|
24349
24349
|
ke("div", null, [
|
24350
24350
|
t.value ? (J(), pe("div", {
|
24351
24351
|
key: 0,
|
24352
|
-
style:
|
24352
|
+
style: $l([f.itemStyle, f.buttonStyle]),
|
24353
24353
|
class: "y-image-upload-button"
|
24354
24354
|
}, [
|
24355
24355
|
ge(E, {
|
@@ -24560,10 +24560,13 @@ const rb = ["innerHTML"], ob = /* @__PURE__ */ Re({
|
|
24560
24560
|
}), il(
|
24561
24561
|
() => b,
|
24562
24562
|
(x) => {
|
24563
|
-
|
24563
|
+
Ul(() => {
|
24564
|
+
N();
|
24565
|
+
});
|
24564
24566
|
},
|
24565
24567
|
{
|
24566
|
-
deep: !0
|
24568
|
+
deep: !0,
|
24569
|
+
immediate: !0
|
24567
24570
|
}
|
24568
24571
|
), il(
|
24569
24572
|
() => n.opts,
|
@@ -24625,7 +24628,7 @@ const rb = ["innerHTML"], ob = /* @__PURE__ */ Re({
|
|
24625
24628
|
default: le(() => [
|
24626
24629
|
ge($, { gutter: 20 }, {
|
24627
24630
|
default: le(() => [
|
24628
|
-
(J(!0), pe(
|
24631
|
+
(J(!0), pe(Vl, null, ql(p.value, (_, z) => (J(), Ve(R, {
|
24629
24632
|
key: z,
|
24630
24633
|
span: _.span
|
24631
24634
|
}, {
|
@@ -24649,7 +24652,7 @@ const rb = ["innerHTML"], ob = /* @__PURE__ */ Re({
|
|
24649
24652
|
onChange: (ue) => y({ type: _.event, val: b.form[_.dataIndex] })
|
24650
24653
|
}), {
|
24651
24654
|
default: le(() => [
|
24652
|
-
(J(!0), pe(
|
24655
|
+
(J(!0), pe(Vl, null, ql(Me(o)(_), (ue, Ie) => (J(), Ve(cr(Me(r)(_)), {
|
24653
24656
|
key: Ie,
|
24654
24657
|
disabled: ue.disabled,
|
24655
24658
|
label: Me(t)(_, ue),
|
@@ -24690,9 +24693,9 @@ const rb = ["innerHTML"], ob = /* @__PURE__ */ Re({
|
|
24690
24693
|
class: ml(["btn_flex_end", { flex_end: n.isBtnFlexEnd }])
|
24691
24694
|
}, {
|
24692
24695
|
default: le(() => [
|
24693
|
-
x.isFooter ? (J(), pe(
|
24696
|
+
x.isFooter ? (J(), pe(Vl, { key: 0 }, [
|
24694
24697
|
Be(x.$slots, "footerBtn", {}, void 0, !0),
|
24695
|
-
Me(v).footerBtn ? _e("", !0) : (J(), pe(
|
24698
|
+
Me(v).footerBtn ? _e("", !0) : (J(), pe(Vl, { key: 0 }, [
|
24696
24699
|
ge(V, $a({ type: "primary", ...f.value }, {
|
24697
24700
|
loading: x.loading,
|
24698
24701
|
class: "btn_check",
|
@@ -24756,7 +24759,7 @@ const sb = (e, l) => {
|
|
24756
24759
|
for (const [n, r] of l)
|
24757
24760
|
a[n] = r;
|
24758
24761
|
return a;
|
24759
|
-
}, cb = /* @__PURE__ */ sb(ib, [["__scopeId", "data-v-
|
24762
|
+
}, cb = /* @__PURE__ */ sb(ib, [["__scopeId", "data-v-8c85363b"]]), vb = sa(cb), bb = Re({
|
24760
24763
|
name: "YPagination"
|
24761
24764
|
}), fb = /* @__PURE__ */ Re({
|
24762
24765
|
...bb,
|
Binary file
|
package/lib/lang/en.ts
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
/** 英语 */
|
2
|
+
import lang from 'element-plus/dist/locale/en';
|
3
|
+
|
4
|
+
export default {
|
5
|
+
...lang,
|
6
|
+
y: {
|
7
|
+
name: 'en',
|
8
|
+
upload: {
|
9
|
+
uploading: 'Uploading',
|
10
|
+
exception: 'Exception',
|
11
|
+
retry: 'Retry'
|
12
|
+
},
|
13
|
+
proTable: {
|
14
|
+
emptyText: 'No Data',
|
15
|
+
},
|
16
|
+
tableTools: {
|
17
|
+
refresh: 'refresh',
|
18
|
+
size: 'size',
|
19
|
+
fullscreen: 'fullscreen',
|
20
|
+
sizeOption: {
|
21
|
+
large: 'large',
|
22
|
+
default: 'medium',
|
23
|
+
small: 'small',
|
24
|
+
},
|
25
|
+
columns: 'columns',
|
26
|
+
columnsOption: {
|
27
|
+
columns: 'columns',
|
28
|
+
reset: 'reset',
|
29
|
+
index: 'index',
|
30
|
+
selection: 'selection',
|
31
|
+
untitled: 'untitled'
|
32
|
+
},
|
33
|
+
},
|
34
|
+
tour: {
|
35
|
+
skip: 'skip',
|
36
|
+
prev: 'prev',
|
37
|
+
next: 'next',
|
38
|
+
finish: 'finish'
|
39
|
+
},
|
40
|
+
},
|
41
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/** 简体中文 */
|
2
|
+
import lang from 'element-plus/dist/locale/zh-cn';
|
3
|
+
|
4
|
+
export default {
|
5
|
+
...lang,
|
6
|
+
y: {
|
7
|
+
name: 'zh-cn',
|
8
|
+
upload: {
|
9
|
+
uploading: '上传中',
|
10
|
+
exception: '上传失败',
|
11
|
+
retry: '重试'
|
12
|
+
},
|
13
|
+
proTable: {
|
14
|
+
emptyText: '没有更多的数据哦~',
|
15
|
+
},
|
16
|
+
tableTools: {
|
17
|
+
refresh: '刷新',
|
18
|
+
size: '密度',
|
19
|
+
fullscreen: '全屏',
|
20
|
+
sizeOption: {
|
21
|
+
large: '宽松',
|
22
|
+
default: '默认',
|
23
|
+
small: '中等',
|
24
|
+
},
|
25
|
+
columns: '列设置',
|
26
|
+
columnsOption: {
|
27
|
+
columns: '列展示',
|
28
|
+
reset: '重置',
|
29
|
+
index: 'index',
|
30
|
+
selection: 'selection',
|
31
|
+
untitled: 'untitled'
|
32
|
+
},
|
33
|
+
},
|
34
|
+
tour: {
|
35
|
+
skip: '跳过',
|
36
|
+
prev: '上一步',
|
37
|
+
next: '下一步',
|
38
|
+
finish: '完成'
|
39
|
+
},
|
40
|
+
},
|
41
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/** 繁体中文 */
|
2
|
+
import lang from 'element-plus/dist/locale/zh-tw';
|
3
|
+
|
4
|
+
export default {
|
5
|
+
...lang,
|
6
|
+
y: {
|
7
|
+
name: 'zh-tw',
|
8
|
+
upload: {
|
9
|
+
uploading: '上傳中',
|
10
|
+
exception: '上傳失敗',
|
11
|
+
retry: '重試'
|
12
|
+
},
|
13
|
+
proTable: {
|
14
|
+
emptyText: '沒有更多的數據哦~',
|
15
|
+
},
|
16
|
+
tableTools: {
|
17
|
+
refresh: '刷新',
|
18
|
+
size: '密度',
|
19
|
+
fullscreen: '全屏',
|
20
|
+
sizeOption: {
|
21
|
+
large: '寬鬆',
|
22
|
+
default: '默認',
|
23
|
+
small: '中等',
|
24
|
+
},
|
25
|
+
columns: '列設置',
|
26
|
+
columnsOption: {
|
27
|
+
columns: '列展示',
|
28
|
+
reset: '重置',
|
29
|
+
index: 'index',
|
30
|
+
selection: 'selection',
|
31
|
+
untitled: 'untitled'
|
32
|
+
},
|
33
|
+
},
|
34
|
+
tour: {
|
35
|
+
skip: '跳過',
|
36
|
+
prev: '上一步',
|
37
|
+
next: '下一步',
|
38
|
+
finish: '完成'
|
39
|
+
},
|
40
|
+
},
|
41
|
+
};
|