@vtj/ui 0.8.149 → 0.8.150
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/index.mjs +151 -150
- package/dist/index.umd.js +4 -4
- package/package.json +3 -3
- package/types/components/dialog-grid/DialogGrid.d.ts +3 -2
- package/types/components/grid/Grid.d.ts +2 -1
- package/types/components/grid/hooks/useCustom.d.ts +1 -1
- package/types/components/mask/hooks/useMenus.d.ts +2 -2
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { getCurrentInstance as Ue, inject as ft, defineComponent as N, useAttrs as Mt, computed as T, markRaw as Qt, openBlock as v, createBlock as x, unref as u, normalizeClass as ge, normalizeStyle as at, withCtx as b, renderSlot as A, resolveDynamicComponent as Se, createCommentVNode as z, createElementBlock as I, mergeProps as O, createElementVNode as
|
1
|
+
import { getCurrentInstance as Ue, inject as ft, defineComponent as N, useAttrs as Mt, computed as T, markRaw as Qt, openBlock as v, createBlock as x, unref as u, normalizeClass as ge, normalizeStyle as at, withCtx as b, renderSlot as A, resolveDynamicComponent as Se, createCommentVNode as z, createElementBlock as I, mergeProps as O, createElementVNode as W, toDisplayString as J, Fragment as ce, renderList as he, isVNode as Oa, h as re, shallowRef as _n, ref as B, watch as ne, onMounted as Xe, onUnmounted as it, useSlots as wo, toRef as Ct, createTextVNode as U, toRaw as We, createVNode as D, normalizeProps as Pt, guardReactiveProps as $t, effectScope as xr, reactive as It, watchEffect as _o, nextTick as De, Teleport as Er, withDirectives as Ce, createSlots as Re, render as Ko, vShow as Fe, isRef as Ae, withModifiers as Ve, KeepAlive as Na, provide as St, toHandlers as Ye, withKeys as At, mergeModels as Cn, useModel as Co, onUpdated as Ra } from "vue";
|
2
2
|
import { ElMessage as Je, ElMessageBox as bt, ElNotification as So, ElIcon as Rt, ElSubMenu as ja, ElBadge as ro, ElMenuItem as La, ElMenu as Ha, ElButton as Oe, ElDropdown as Ua, ElDropdownMenu as Xa, ElDropdownItem as Ya, ElTooltip as kr, ElDivider as Ie, ElSwitch as xo, ElInput as Be, ElEmpty as Eo, ElTabs as Tr, ElTabPane as ao, ElPopover as Dr, ElAvatar as Ga, ElSelect as ko, ElOption as To, ElCheckboxButton as Ka, ElCheckbox as Wa, ElCheckboxGroup as Ja, ElRadioButton as qa, ElRadio as Qa, ElRadioGroup as Za, ElDatePicker as Sn, ElImage as io, ElLink as lo, ElTag as Wo, ElText as Jo, ElInputNumber as Do, ElPagination as zr, ElTimePicker as ei, ElRate as ti, ElSlider as ni, ElCascader as oi, formContextKey as ri, ElFormItem as ai, ElForm as ii, ElInfiniteScroll as qo, ElDescriptions as Qo, ElDescriptionsItem as Rn, ElUpload as Mr, vLoading as li, ElImageViewer as si } from "element-plus";
|
3
3
|
import { storage as Zo, rAF as ui, cAF as ci, isEqual as $n, isObject as zo, uid as Pr, arrayToMap as di, isUrl as fi, upperFirstCamelCase as $r, isString as pi, isFunction as so, camelCase as Ir, delay as mi, merge as Ar, kebabCase as gi, toFixed as er, cloneDeep as uo, toArray as Mo, dedupArray as Vr, get as mn, set as jn, numberFormat as hi, downloadRemoteFile as vi, downloadUrl as yi } from "@vtj/utils";
|
4
4
|
import { ArrowRight as bi, Minimize as wi, Popup as _i, Maximize as Ci, RawClose as Si, StarFilled as Br, Menu as xi, Search as co, Close as Fr, Expand as Ei, Fold as ki, Star as Or, Document as pt, Refresh as Nr, CopyDocument as Ti, Moon as Di, Sunny as zi, MoreFilled as Rr, UserFilled as Mi, HomeFilled as Pi, Plus as jr, Minus as $i, EditPen as Lr, CaretBottom as Ii, CaretTop as Ai, VtjIconDatabase as Vi, VtjIconNpSearch as Bi, VtjIconNpReturn as Fi, VtjIconCheck as Oi, WarningFilled as Ni, SuccessFilled as Ri, CircleCloseFilled as ji, ZoomIn as Li, Download as Hi, Delete as Ui } from "@vtj/icons";
|
@@ -9,10 +9,10 @@ import { VXETable as on, VxeGrid as tr, VxeTableFilterModule as qi, VxeTableEdit
|
|
9
9
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
10
10
|
* @name @vtj/ui
|
11
11
|
* @author CHC chenhuachun1549@dingtalk.com
|
12
|
-
* @version 0.8.
|
12
|
+
* @version 0.8.150
|
13
13
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
14
14
|
*/
|
15
|
-
const G2 = "0.8.
|
15
|
+
const G2 = "0.8.150", ll = {
|
16
16
|
default: 14,
|
17
17
|
small: 12,
|
18
18
|
large: 18
|
@@ -146,18 +146,18 @@ const ul = {
|
|
146
146
|
index: String(e.item.id)
|
147
147
|
}), {
|
148
148
|
title: b(() => [
|
149
|
-
|
149
|
+
W("div", dl, [
|
150
150
|
e.item.icon ? (v(), x(u(je), {
|
151
151
|
key: 0,
|
152
152
|
icon: t(e.item.icon)
|
153
153
|
}, null, 8, ["icon"])) : z("", !0),
|
154
|
-
e.item.title ? (v(), I("span", fl,
|
154
|
+
e.item.title ? (v(), I("span", fl, J(e.item.title), 1)) : z("", !0),
|
155
155
|
e.item.badge ? (v(), x(u(ro), O({
|
156
156
|
key: 2,
|
157
157
|
class: "x-menu__badge"
|
158
158
|
}, r(e.item.badge)), {
|
159
159
|
default: b(() => i[0] || (i[0] = [
|
160
|
-
|
160
|
+
W("i", null, null, -1)
|
161
161
|
])),
|
162
162
|
_: 1
|
163
163
|
}, 16)) : z("", !0)
|
@@ -178,13 +178,13 @@ const ul = {
|
|
178
178
|
disabled: e.item.disabled
|
179
179
|
}, {
|
180
180
|
title: b(() => [
|
181
|
-
e.item.title ? (v(), I("span", pl,
|
181
|
+
e.item.title ? (v(), I("span", pl, J(e.item.title), 1)) : z("", !0),
|
182
182
|
e.item.badge ? (v(), x(u(ro), O({
|
183
183
|
key: 1,
|
184
184
|
class: "x-menu__badge"
|
185
185
|
}, r(e.item.badge)), {
|
186
186
|
default: b(() => i[1] || (i[1] = [
|
187
|
-
|
187
|
+
W("i", null, null, -1)
|
188
188
|
])),
|
189
189
|
_: 1
|
190
190
|
}, 16)) : z("", !0)
|
@@ -443,7 +443,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
443
443
|
disabled: u(a)
|
444
444
|
}, n.button, { onClick: i }), {
|
445
445
|
default: b(() => [
|
446
|
-
U(
|
446
|
+
U(J(s.label), 1)
|
447
447
|
]),
|
448
448
|
_: 1
|
449
449
|
}, 16, ["icon", "type", "size", "disabled"])) : (v(), I("div", {
|
@@ -452,7 +452,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
452
452
|
onClick: i
|
453
453
|
}, [
|
454
454
|
(v(), x(Se(u(r)))),
|
455
|
-
s.label ? (v(), I("span", wl,
|
455
|
+
s.label ? (v(), I("span", wl, J(s.label), 1)) : z("", !0)
|
456
456
|
], 2));
|
457
457
|
}
|
458
458
|
}), Cl = ["draggable"], we = /* @__PURE__ */ N({
|
@@ -596,7 +596,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
596
596
|
}, l = (i, s) => {
|
597
597
|
t("command", i, s);
|
598
598
|
};
|
599
|
-
return (i, s) => (v(), x(u(
|
599
|
+
return (i, s) => (v(), x(u(Q), {
|
600
600
|
class: "x-action-bar",
|
601
601
|
align: "center"
|
602
602
|
}, {
|
@@ -742,7 +742,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
742
742
|
autoPointer: {
|
743
743
|
type: Boolean
|
744
744
|
}
|
745
|
-
},
|
745
|
+
}, Q = /* @__PURE__ */ N({
|
746
746
|
name: "XContainer",
|
747
747
|
__name: "Container",
|
748
748
|
props: xl,
|
@@ -824,13 +824,13 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
824
824
|
"is-border": e.border,
|
825
825
|
"is-pointer": !!t.onClick
|
826
826
|
}));
|
827
|
-
return (a, l) => (v(), x(u(
|
827
|
+
return (a, l) => (v(), x(u(Q), {
|
828
828
|
class: ge(["x-header", r.value]),
|
829
829
|
justify: "space-between",
|
830
830
|
align: "center"
|
831
831
|
}, {
|
832
832
|
default: b(() => [
|
833
|
-
D(u(
|
833
|
+
D(u(Q), {
|
834
834
|
align: "center",
|
835
835
|
class: ge(["x-header__wrapper", r.value]),
|
836
836
|
grow: "",
|
@@ -842,9 +842,9 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
842
842
|
class: "x-header__icon",
|
843
843
|
onClick: u(t).onClickIcon || u(t).onClick
|
844
844
|
}, null, 8, ["onClick"])) : z("", !0),
|
845
|
-
|
845
|
+
W("span", kl, [
|
846
846
|
A(a.$slots, "default", {}, () => [
|
847
|
-
U(
|
847
|
+
U(J(e.content), 1)
|
848
848
|
])
|
849
849
|
]),
|
850
850
|
e.more ? (v(), x(u(je), {
|
@@ -859,7 +859,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
859
859
|
(...i) => u(t).onClick && u(t).onClick(...i))
|
860
860
|
}, [
|
861
861
|
A(a.$slots, "subtitle", {}, () => [
|
862
|
-
U(
|
862
|
+
U(J(e.subtitle), 1)
|
863
863
|
])
|
864
864
|
])) : z("", !0)
|
865
865
|
]),
|
@@ -957,7 +957,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
957
957
|
}), l = T(() => n.fit || n.height ? "auto" : void 0);
|
958
958
|
return e({
|
959
959
|
bodyRef: t
|
960
|
-
}), (i, s) => (v(), x(u(
|
960
|
+
}), (i, s) => (v(), x(u(Q), {
|
961
961
|
class: ge(["x-panel", r.value]),
|
962
962
|
direction: "column",
|
963
963
|
fit: n.fit,
|
@@ -965,7 +965,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
965
965
|
height: n.height
|
966
966
|
}, {
|
967
967
|
default: b(() => [
|
968
|
-
a.value ? (v(), x(u(
|
968
|
+
a.value ? (v(), x(u(Q), {
|
969
969
|
key: 0,
|
970
970
|
flex: !1,
|
971
971
|
class: "x-panel__header"
|
@@ -985,7 +985,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
985
985
|
]),
|
986
986
|
_: 3
|
987
987
|
})) : z("", !0),
|
988
|
-
D(u(
|
988
|
+
D(u(Q), O({
|
989
989
|
ref_key: "bodyRef",
|
990
990
|
ref: t,
|
991
991
|
flex: !1,
|
@@ -999,7 +999,7 @@ const wl = { key: 0 }, _l = /* @__PURE__ */ N({
|
|
999
999
|
]),
|
1000
1000
|
_: 3
|
1001
1001
|
}, 16, ["overflow"]),
|
1002
|
-
i.$slots.footer ? (v(), x(u(
|
1002
|
+
i.$slots.footer ? (v(), x(u(Q), O({
|
1003
1003
|
key: 1,
|
1004
1004
|
flex: !1,
|
1005
1005
|
padding: "",
|
@@ -1429,7 +1429,7 @@ const Ol = ["src"], In = /* @__PURE__ */ N({
|
|
1429
1429
|
key: 0,
|
1430
1430
|
to: "body"
|
1431
1431
|
}, [
|
1432
|
-
|
1432
|
+
W("div", {
|
1433
1433
|
ref_key: "wrapper",
|
1434
1434
|
ref: l,
|
1435
1435
|
class: ge(["x-dialog__wrapper", u(p)])
|
@@ -1455,7 +1455,7 @@ const Ol = ["src"], In = /* @__PURE__ */ N({
|
|
1455
1455
|
onClick: u(_)
|
1456
1456
|
}, Z.$attrs), Re({
|
1457
1457
|
title: b(() => [
|
1458
|
-
U(
|
1458
|
+
U(J(t.title), 1)
|
1459
1459
|
]),
|
1460
1460
|
actions: b(() => [
|
1461
1461
|
A(Z.$slots, "actions"),
|
@@ -1513,13 +1513,13 @@ const Ol = ["src"], In = /* @__PURE__ */ N({
|
|
1513
1513
|
name: "footer",
|
1514
1514
|
fn: b(() => [
|
1515
1515
|
A(Z.$slots, "footer", {}, () => [
|
1516
|
-
D(u(
|
1516
|
+
D(u(Q), { align: "center" }, {
|
1517
1517
|
default: b(() => [
|
1518
1518
|
A(Z.$slots, "extra")
|
1519
1519
|
]),
|
1520
1520
|
_: 3
|
1521
1521
|
}),
|
1522
|
-
D(u(
|
1522
|
+
D(u(Q), { align: "center" }, {
|
1523
1523
|
default: b(() => [
|
1524
1524
|
A(Z.$slots, "handle"),
|
1525
1525
|
t.cancel ? (v(), x(u(Oe), {
|
@@ -1529,7 +1529,7 @@ const Ol = ["src"], In = /* @__PURE__ */ N({
|
|
1529
1529
|
onClick: u(M)
|
1530
1530
|
}, {
|
1531
1531
|
default: b(() => [
|
1532
|
-
U(
|
1532
|
+
U(J(typeof t.cancel == "string" ? t.cancel : "取消"), 1)
|
1533
1533
|
]),
|
1534
1534
|
_: 1
|
1535
1535
|
}, 8, ["size", "onClick"])) : z("", !0),
|
@@ -1540,7 +1540,7 @@ const Ol = ["src"], In = /* @__PURE__ */ N({
|
|
1540
1540
|
onClick: u(k)
|
1541
1541
|
}, {
|
1542
1542
|
default: b(() => [
|
1543
|
-
U(
|
1543
|
+
U(J(typeof t.submit == "string" ? t.submit : "确定"), 1)
|
1544
1544
|
]),
|
1545
1545
|
_: 1
|
1546
1546
|
}, 8, ["size", "onClick"])) : z("", !0)
|
@@ -1579,7 +1579,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1579
1579
|
},
|
1580
1580
|
setup(o) {
|
1581
1581
|
const e = o;
|
1582
|
-
return (n, t) => Ce((v(), x(u(
|
1582
|
+
return (n, t) => Ce((v(), x(u(Q), {
|
1583
1583
|
class: ge(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
|
1584
1584
|
grow: !1,
|
1585
1585
|
flex: "",
|
@@ -1587,7 +1587,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1587
1587
|
}, {
|
1588
1588
|
default: b(() => [
|
1589
1589
|
A(n.$slots, "brand"),
|
1590
|
-
D(u(
|
1590
|
+
D(u(Q), {
|
1591
1591
|
class: "x-mask-sidebar__wrapper",
|
1592
1592
|
flex: "",
|
1593
1593
|
grow: "",
|
@@ -1597,7 +1597,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1597
1597
|
}, {
|
1598
1598
|
default: b(() => [
|
1599
1599
|
A(n.$slots, "default"),
|
1600
|
-
t[0] || (t[0] =
|
1600
|
+
t[0] || (t[0] = W("div", { class: "x-mask-sidebar__helper" }, null, -1))
|
1601
1601
|
]),
|
1602
1602
|
_: 3
|
1603
1603
|
})
|
@@ -1636,13 +1636,13 @@ const Nl = /* @__PURE__ */ N({
|
|
1636
1636
|
}, f = () => {
|
1637
1637
|
t("update:favorite", l.value);
|
1638
1638
|
};
|
1639
|
-
return (m, g) => (v(), x(u(
|
1639
|
+
return (m, g) => (v(), x(u(Q), {
|
1640
1640
|
class: "x-mask-switch-bar",
|
1641
1641
|
justify: "space-between",
|
1642
1642
|
align: "center"
|
1643
1643
|
}, {
|
1644
1644
|
default: b(() => [
|
1645
|
-
n.collasped ? z("", !0) : (v(), x(u(
|
1645
|
+
n.collasped ? z("", !0) : (v(), x(u(Q), {
|
1646
1646
|
key: 0,
|
1647
1647
|
class: "x-mask-switch-bar__left",
|
1648
1648
|
grow: ""
|
@@ -1678,7 +1678,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1678
1678
|
]),
|
1679
1679
|
_: 1
|
1680
1680
|
})),
|
1681
|
-
D(u(
|
1681
|
+
D(u(Q), {
|
1682
1682
|
class: ge(["x-mask-switch-bar__right", { "is-collasped": n.collasped }]),
|
1683
1683
|
flex: "",
|
1684
1684
|
align: "center",
|
@@ -1731,12 +1731,12 @@ const Nl = /* @__PURE__ */ N({
|
|
1731
1731
|
const e = o, n = Po(), t = () => {
|
1732
1732
|
e.url && n.push(e.url);
|
1733
1733
|
};
|
1734
|
-
return (r, a) => (v(), x(u(
|
1734
|
+
return (r, a) => (v(), x(u(Q), {
|
1735
1735
|
class: ge(["x-mask-brand", { "is-collapsed": e.collapsed }]),
|
1736
1736
|
align: "center"
|
1737
1737
|
}, {
|
1738
1738
|
default: b(() => [
|
1739
|
-
D(u(
|
1739
|
+
D(u(Q), {
|
1740
1740
|
class: "x-mask-brand__logo",
|
1741
1741
|
flex: "",
|
1742
1742
|
justify: "center",
|
@@ -1753,7 +1753,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1753
1753
|
]),
|
1754
1754
|
_: 3
|
1755
1755
|
}),
|
1756
|
-
D(u(
|
1756
|
+
D(u(Q), {
|
1757
1757
|
class: "x-mask-brand__title",
|
1758
1758
|
flex: "",
|
1759
1759
|
align: "center"
|
@@ -1761,7 +1761,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1761
1761
|
default: b(() => [
|
1762
1762
|
e.title ? (v(), I("span", Ll, [
|
1763
1763
|
A(r.$slots, "title", {}, () => [
|
1764
|
-
U(
|
1764
|
+
U(J(e.title), 1)
|
1765
1765
|
])
|
1766
1766
|
])) : z("", !0)
|
1767
1767
|
]),
|
@@ -1817,7 +1817,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1817
1817
|
r("select", c);
|
1818
1818
|
};
|
1819
1819
|
return (c, d) => (v(), I(ce, null, [
|
1820
|
-
Ce(D(u(
|
1820
|
+
Ce(D(u(Q), {
|
1821
1821
|
class: "x-mask-menu",
|
1822
1822
|
grow: "",
|
1823
1823
|
flex: !1,
|
@@ -1863,7 +1863,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1863
1863
|
}, 512), [
|
1864
1864
|
[Fe, !n.favorite && !n.keyword]
|
1865
1865
|
]),
|
1866
|
-
Ce(D(u(
|
1866
|
+
Ce(D(u(Q), {
|
1867
1867
|
class: "x-mask-menu",
|
1868
1868
|
grow: "",
|
1869
1869
|
flex: !1,
|
@@ -1911,7 +1911,7 @@ const Nl = /* @__PURE__ */ N({
|
|
1911
1911
|
}, 512), [
|
1912
1912
|
[Fe, n.favorite && !n.keyword]
|
1913
1913
|
]),
|
1914
|
-
n.keyword ? Ce((v(), x(u(
|
1914
|
+
n.keyword ? Ce((v(), x(u(Q), {
|
1915
1915
|
key: 0,
|
1916
1916
|
class: "x-mask-menu",
|
1917
1917
|
grow: "",
|
@@ -2111,7 +2111,7 @@ const Nl = /* @__PURE__ */ N({
|
|
2111
2111
|
}, c = (d, f) => {
|
2112
2112
|
f.target && f.target.classList.remove("is-dagging");
|
2113
2113
|
};
|
2114
|
-
return (d, f) => (v(), x(u(
|
2114
|
+
return (d, f) => (v(), x(u(Q), {
|
2115
2115
|
ref: "tabsRef",
|
2116
2116
|
class: "x-mask-tabs",
|
2117
2117
|
height: "100%",
|
@@ -2133,9 +2133,9 @@ const Nl = /* @__PURE__ */ N({
|
|
2133
2133
|
name: n.home.id
|
2134
2134
|
}, {
|
2135
2135
|
label: b(() => [
|
2136
|
-
|
2136
|
+
W("div", Kl, [
|
2137
2137
|
n.home.icon ? (v(), x(Se(u(xt)(n.home.icon)), { key: 0 })) : z("", !0),
|
2138
|
-
n.home.title ? (v(), I("span", Wl,
|
2138
|
+
n.home.title ? (v(), I("span", Wl, J(n.home.title), 1)) : z("", !0)
|
2139
2139
|
])
|
2140
2140
|
]),
|
2141
2141
|
_: 1
|
@@ -2155,14 +2155,14 @@ const Nl = /* @__PURE__ */ N({
|
|
2155
2155
|
disabled: m.id !== n.value
|
2156
2156
|
}, {
|
2157
2157
|
reference: b(() => [
|
2158
|
-
|
2158
|
+
W("div", {
|
2159
2159
|
class: "x-mask-tabs__trigger",
|
2160
2160
|
draggable: "true",
|
2161
2161
|
onDragstart: (g) => s(m, g),
|
2162
2162
|
onDragend: (g) => c(m, g)
|
2163
2163
|
}, [
|
2164
2164
|
m.icon ? (v(), x(Se(u(xt)(m.icon)), { key: 0 })) : z("", !0),
|
2165
|
-
m.title ? (v(), I("span", ql,
|
2165
|
+
m.title ? (v(), I("span", ql, J(m.title), 1)) : z("", !0)
|
2166
2166
|
], 40, Jl)
|
2167
2167
|
]),
|
2168
2168
|
default: b(() => [
|
@@ -2251,7 +2251,7 @@ const Nl = /* @__PURE__ */ N({
|
|
2251
2251
|
}, s = (c, d) => {
|
2252
2252
|
t("actionCommand", c, d);
|
2253
2253
|
};
|
2254
|
-
return (c, d) => (v(), x(u(
|
2254
|
+
return (c, d) => (v(), x(u(Q), {
|
2255
2255
|
class: "x-mask-toolbar",
|
2256
2256
|
align: "center"
|
2257
2257
|
}, {
|
@@ -2266,8 +2266,8 @@ const Nl = /* @__PURE__ */ N({
|
|
2266
2266
|
onCommand: l
|
2267
2267
|
}, {
|
2268
2268
|
item: b(({ item: f }) => [
|
2269
|
-
|
2270
|
-
U(
|
2269
|
+
W("span", es, [
|
2270
|
+
U(J(f.label) + " ", 1),
|
2271
2271
|
["other", "all"].includes(f.command) ? z("", !0) : (v(), x(u(je), {
|
2272
2272
|
key: 0,
|
2273
2273
|
onClick: Ve((m) => a(f), ["stop"]),
|
@@ -2337,7 +2337,7 @@ const Nl = /* @__PURE__ */ N({
|
|
2337
2337
|
},
|
2338
2338
|
setup(o) {
|
2339
2339
|
const e = o;
|
2340
|
-
return (n, t) => (v(), x(u(
|
2340
|
+
return (n, t) => (v(), x(u(Q), {
|
2341
2341
|
class: "x-mask__content",
|
2342
2342
|
overflow: "auto",
|
2343
2343
|
flex: !1,
|
@@ -2444,15 +2444,15 @@ function is(o, e, n, t, r) {
|
|
2444
2444
|
}, k = () => {
|
2445
2445
|
y(r.value);
|
2446
2446
|
}, M = (R) => {
|
2447
|
-
const G = s.value.find((
|
2447
|
+
const G = s.value.find((q) => q.url === R.url || q.id === R.id);
|
2448
2448
|
G ? S(G) : (s.value.unshift(R), S(R));
|
2449
2449
|
}, E = async (R) => {
|
2450
|
-
const { url: G = a.fullPath, icon:
|
2450
|
+
const { url: G = a.fullPath, icon: q, title: V } = R || {}, $ = i[G], F = Pr(), K = $r(G);
|
2451
2451
|
return {
|
2452
2452
|
id: F,
|
2453
|
-
name:
|
2453
|
+
name: K,
|
2454
2454
|
url: G,
|
2455
|
-
icon:
|
2455
|
+
icon: q,
|
2456
2456
|
title: V || p(a.path)?.title || "新建页签",
|
2457
2457
|
closable: !0,
|
2458
2458
|
menu: R,
|
@@ -2462,17 +2462,17 @@ function is(o, e, n, t, r) {
|
|
2462
2462
|
if (await bt.confirm("是否关闭页签", "提示", {
|
2463
2463
|
type: "warning"
|
2464
2464
|
}).catch(() => !1)) {
|
2465
|
-
if (s.value = s.value.filter((
|
2466
|
-
const
|
2467
|
-
y(
|
2465
|
+
if (s.value = s.value.filter((q) => q.id !== R.id), _.value === R.id) {
|
2466
|
+
const q = s.value[0];
|
2467
|
+
y(q || r.value);
|
2468
2468
|
}
|
2469
2469
|
return R;
|
2470
2470
|
}
|
2471
2471
|
}, j = (R) => {
|
2472
|
-
const G = s.value.findIndex((
|
2472
|
+
const G = s.value.findIndex((q) => q.id === R.id);
|
2473
2473
|
if (G >= 0) {
|
2474
|
-
const
|
2475
|
-
s.value.splice(G, 1, Object.assign(
|
2474
|
+
const q = s.value[G];
|
2475
|
+
s.value.splice(G, 1, Object.assign(q, R));
|
2476
2476
|
}
|
2477
2477
|
}, ae = async () => {
|
2478
2478
|
if (!await bt.confirm("是否关闭全部页签", "提示", {
|
@@ -2484,10 +2484,10 @@ function is(o, e, n, t, r) {
|
|
2484
2484
|
if (!await bt.confirm("是否关闭其他页签", "提示", {
|
2485
2485
|
type: "warning"
|
2486
2486
|
}).catch(() => !1)) return;
|
2487
|
-
const G = s.value.filter((
|
2488
|
-
return s.value = s.value.filter((
|
2487
|
+
const G = s.value.filter((q) => q.id !== _.value);
|
2488
|
+
return s.value = s.value.filter((q) => q.id === _.value), G;
|
2489
2489
|
}, le = (R) => {
|
2490
|
-
const G = s.value.filter((
|
2490
|
+
const G = s.value.filter((q) => q.id !== R.id);
|
2491
2491
|
s.value = [R, ...G], S(R);
|
2492
2492
|
}, ee = async () => {
|
2493
2493
|
await De();
|
@@ -2495,8 +2495,8 @@ function is(o, e, n, t, r) {
|
|
2495
2495
|
if (R)
|
2496
2496
|
_.value = r.value.id;
|
2497
2497
|
else {
|
2498
|
-
const
|
2499
|
-
M(
|
2498
|
+
const q = await E(G);
|
2499
|
+
M(q);
|
2500
2500
|
}
|
2501
2501
|
await De(), t.value = G || null;
|
2502
2502
|
};
|
@@ -2627,7 +2627,7 @@ const q2 = /* @__PURE__ */ N({
|
|
2627
2627
|
removeOtherTabs: Y,
|
2628
2628
|
dropdownTabs: j,
|
2629
2629
|
moveToShow: ae
|
2630
|
-
} = is(n, t, d, f, r), { createView: Z, openDialog: le, refresh: ee, exclude: R, cleanCache: G, closeDialogs:
|
2630
|
+
} = is(n, t, d, f, r), { createView: Z, openDialog: le, refresh: ee, exclude: R, cleanCache: G, closeDialogs: q } = ls({
|
2631
2631
|
tabs: y,
|
2632
2632
|
updateTab: S,
|
2633
2633
|
isCurrentTab: k,
|
@@ -2636,11 +2636,11 @@ const q2 = /* @__PURE__ */ N({
|
|
2636
2636
|
await C(ie) && await G([ie]);
|
2637
2637
|
}, $ = async () => {
|
2638
2638
|
const ie = await E();
|
2639
|
-
ie && (
|
2639
|
+
ie && (q(ie), await G(ie));
|
2640
2640
|
}, F = async () => {
|
2641
2641
|
const ie = await Y();
|
2642
|
-
ie && (
|
2643
|
-
},
|
2642
|
+
ie && (q(ie), await G(ie));
|
2643
|
+
}, K = (ie) => {
|
2644
2644
|
t("actionClick", ie);
|
2645
2645
|
}, fe = (ie, Ke) => {
|
2646
2646
|
t("actionCommand", ie, Ke);
|
@@ -2652,7 +2652,7 @@ const q2 = /* @__PURE__ */ N({
|
|
2652
2652
|
updateTab: S,
|
2653
2653
|
active: f,
|
2654
2654
|
currentTab: w
|
2655
|
-
}), (ie, Ke) => (v(), x(u(
|
2655
|
+
}), (ie, Ke) => (v(), x(u(Q), {
|
2656
2656
|
class: ge(["x-mask", { "is-disabled": n.disabled }]),
|
2657
2657
|
fit: ""
|
2658
2658
|
}, {
|
@@ -2698,7 +2698,7 @@ const q2 = /* @__PURE__ */ N({
|
|
2698
2698
|
]),
|
2699
2699
|
_: 1
|
2700
2700
|
}, 8, ["collapsed"]),
|
2701
|
-
D(u(
|
2701
|
+
D(u(Q), {
|
2702
2702
|
class: "x-mask__main",
|
2703
2703
|
grow: "",
|
2704
2704
|
shrink: "",
|
@@ -2707,7 +2707,7 @@ const q2 = /* @__PURE__ */ N({
|
|
2707
2707
|
overflow: "hidden"
|
2708
2708
|
}, {
|
2709
2709
|
default: b(() => [
|
2710
|
-
D(u(
|
2710
|
+
D(u(Q), {
|
2711
2711
|
class: "x-mask-topbar",
|
2712
2712
|
justify: "space-between",
|
2713
2713
|
align: "center"
|
@@ -2734,7 +2734,7 @@ const q2 = /* @__PURE__ */ N({
|
|
2734
2734
|
onCloseAllTabs: $,
|
2735
2735
|
onCloseTab: V,
|
2736
2736
|
onClickTab: u(ae),
|
2737
|
-
onActionClick:
|
2737
|
+
onActionClick: K,
|
2738
2738
|
onActionCommand: fe
|
2739
2739
|
}, {
|
2740
2740
|
default: b(() => [
|
@@ -2830,7 +2830,7 @@ const Bo = /* @__PURE__ */ N({
|
|
2830
2830
|
ref_for: !0
|
2831
2831
|
}, a), {
|
2832
2832
|
default: b(() => [
|
2833
|
-
U(
|
2833
|
+
U(J(a.label), 1)
|
2834
2834
|
]),
|
2835
2835
|
_: 2
|
2836
2836
|
}, 1040))), 128))
|
@@ -2855,7 +2855,7 @@ const Bo = /* @__PURE__ */ N({
|
|
2855
2855
|
ref_for: !0
|
2856
2856
|
}, a), {
|
2857
2857
|
default: b(() => [
|
2858
|
-
U(
|
2858
|
+
U(J(a.label), 1)
|
2859
2859
|
]),
|
2860
2860
|
_: 2
|
2861
2861
|
}, 1040))), 128))
|
@@ -3814,11 +3814,11 @@ H.prototype = /** @lends Sortable.prototype */
|
|
3814
3814
|
if (M === 0 || ee === t)
|
3815
3815
|
return C(!1);
|
3816
3816
|
ht = t, Gt = M;
|
3817
|
-
var G = t.nextElementSibling,
|
3818
|
-
|
3819
|
-
var V = dn(se, n, P, r, t, a, e,
|
3817
|
+
var G = t.nextElementSibling, q = !1;
|
3818
|
+
q = M === 1;
|
3819
|
+
var V = dn(se, n, P, r, t, a, e, q);
|
3820
3820
|
if (V !== !1)
|
3821
|
-
return (V === 1 || V === -1) && (
|
3821
|
+
return (V === 1 || V === -1) && (q = V === 1), fo = !0, setTimeout(Ms, 30), _(), q && !G ? n.appendChild(P) : t.parentNode.insertBefore(P, q ? G : t), Z && oa(Z, 0, le - Z.scrollTop), de = P.parentNode, E !== void 0 && !un && (yn = Math.abs(E - me(t)[ae])), y(), C(!0);
|
3822
3822
|
}
|
3823
3823
|
if (n.contains(P))
|
3824
3824
|
return C(!1);
|
@@ -4157,8 +4157,8 @@ var qn = na(function(o, e, n, t) {
|
|
4157
4157
|
pe[R] || (pe[R] = {});
|
4158
4158
|
(pe[f].vx != le || pe[f].vy != ee || pe[f].el !== g) && (pe[f].el = g, pe[f].vx = le, pe[f].vy = ee, clearInterval(pe[f].pid), (le != 0 || ee != 0) && (c = !0, pe[f].pid = setInterval(function() {
|
4159
4159
|
t && this.layer === 0 && H.active._onTouchMove(zn);
|
4160
|
-
var G = pe[this.layer].vy ? pe[this.layer].vy * i : 0,
|
4161
|
-
typeof d == "function" && d.call(H.dragged.parentNode[Ee],
|
4160
|
+
var G = pe[this.layer].vy ? pe[this.layer].vy * i : 0, q = pe[this.layer].vx ? pe[this.layer].vx * i : 0;
|
4161
|
+
typeof d == "function" && d.call(H.dragged.parentNode[Ee], q, G, o, zn, pe[this.layer].el) !== "continue" || oa(pe[this.layer].el, q, G);
|
4162
4162
|
}.bind({
|
4163
4163
|
layer: f
|
4164
4164
|
}), 24))), f++;
|
@@ -5425,10 +5425,10 @@ const $0 = {
|
|
5425
5425
|
St(ga, M);
|
5426
5426
|
const E = async ($ = {}, F = -1) => {
|
5427
5427
|
a.editable || console.warn("XGrid在编辑模式需要开启editable");
|
5428
|
-
const
|
5429
|
-
if (!
|
5430
|
-
const { row: fe } = await
|
5431
|
-
await
|
5428
|
+
const K = r.value;
|
5429
|
+
if (!K) return;
|
5430
|
+
const { row: fe } = await K.insertAt($, F);
|
5431
|
+
await K.setEditRow(fe);
|
5432
5432
|
}, Y = async ($) => r.value?.setEditRow($), j = () => {
|
5433
5433
|
const $ = r.value;
|
5434
5434
|
if (!$) return [];
|
@@ -5468,9 +5468,10 @@ const $0 = {
|
|
5468
5468
|
});
|
5469
5469
|
return;
|
5470
5470
|
}
|
5471
|
-
await bt.confirm("确认删除数据?", "提示", {
|
5471
|
+
const K = await bt.confirm("确认删除数据?", "提示", {
|
5472
5472
|
type: "warning"
|
5473
|
-
})
|
5473
|
+
});
|
5474
|
+
return K && (await F.remove($), ee()), K;
|
5474
5475
|
},
|
5475
5476
|
getRows: j,
|
5476
5477
|
setActived: Y,
|
@@ -5481,8 +5482,8 @@ const $0 = {
|
|
5481
5482
|
if ($)
|
5482
5483
|
r.value.setSelectCell($, F ?? ae()[0]);
|
5483
5484
|
else {
|
5484
|
-
const
|
5485
|
-
r.value.setSelectCell(
|
5485
|
+
const K = j(), fe = ae();
|
5486
|
+
r.value.setSelectCell(K[0], fe[0]);
|
5486
5487
|
}
|
5487
5488
|
r.value.focus();
|
5488
5489
|
}
|
@@ -5490,8 +5491,8 @@ const $0 = {
|
|
5490
5491
|
$vtjDynamicSlots: () => {
|
5491
5492
|
const { fullColumn: $ = [] } = r.value?.getTableColumn() || {};
|
5492
5493
|
let F = [];
|
5493
|
-
for (const
|
5494
|
-
const fe = Object.values(
|
5494
|
+
for (const K of $) {
|
5495
|
+
const fe = Object.values(K.slots || {}).filter(
|
5495
5496
|
(ie) => typeof ie == "string"
|
5496
5497
|
);
|
5497
5498
|
F = F.concat(fe);
|
@@ -5526,7 +5527,7 @@ const $0 = {
|
|
5526
5527
|
"page-sizes": a.pageSizes,
|
5527
5528
|
"default-page-size": a.pageSizes[0],
|
5528
5529
|
"current-page": u(h).page,
|
5529
|
-
"onUpdate:currentPage": F[0] || (F[0] = (
|
5530
|
+
"onUpdate:currentPage": F[0] || (F[0] = (K) => u(h).page = K),
|
5530
5531
|
"v-model:page-size": u(h).pageSize,
|
5531
5532
|
total: u(h).total,
|
5532
5533
|
onChange: u(w)
|
@@ -5539,10 +5540,10 @@ const $0 = {
|
|
5539
5540
|
]),
|
5540
5541
|
_: 2
|
5541
5542
|
}, [
|
5542
|
-
he(u(i), (
|
5543
|
-
name:
|
5543
|
+
he(u(i), (K) => ({
|
5544
|
+
name: K,
|
5544
5545
|
fn: b((fe) => [
|
5545
|
-
A($.$slots,
|
5546
|
+
A($.$slots, K, Pt($t(fe)))
|
5546
5547
|
])
|
5547
5548
|
}))
|
5548
5549
|
]), 1040, ["columns", "onCustom", "onResizableChange", "onFilterChange", "onSortChange"]));
|
@@ -5647,7 +5648,7 @@ const V0 = {
|
|
5647
5648
|
])) : z("", !0)
|
5648
5649
|
]),
|
5649
5650
|
default: b(() => [
|
5650
|
-
|
5651
|
+
W("div", {
|
5651
5652
|
class: ge(["x-query-form__inner", u(s)]),
|
5652
5653
|
style: at(u(c))
|
5653
5654
|
}, [
|
@@ -6062,7 +6063,7 @@ const va = /* @__PURE__ */ N({
|
|
6062
6063
|
"onUpdate:modelValue": M[0] || (M[0] = (E) => Ae(f) ? f.value = E : null)
|
6063
6064
|
}, u(a)), {
|
6064
6065
|
prefix: b(() => [
|
6065
|
-
|
6066
|
+
W("div", {
|
6066
6067
|
class: "x-picker__tigger",
|
6067
6068
|
onClick: y
|
6068
6069
|
}, [
|
@@ -6449,11 +6450,11 @@ const Y0 = {
|
|
6449
6450
|
]),
|
6450
6451
|
_: 2
|
6451
6452
|
}, 1040, ["content"])
|
6452
|
-
], 4)) : (v(), I("div", Y0,
|
6453
|
+
], 4)) : (v(), I("div", Y0, J(w(j)), 1))
|
6453
6454
|
])
|
6454
6455
|
]),
|
6455
6456
|
default: b(() => [
|
6456
|
-
|
6457
|
+
W("div", {
|
6457
6458
|
class: ge(["x-field__editor_wrap", { "is-inline": t.inline }])
|
6458
6459
|
}, [
|
6459
6460
|
A(E.$slots, "editor", { editor: S.value }, () => [
|
@@ -6476,7 +6477,7 @@ const Y0 = {
|
|
6476
6477
|
]),
|
6477
6478
|
t.tip || E.$slots.tip ? (v(), I("div", G0, [
|
6478
6479
|
A(E.$slots, "tip", {}, () => [
|
6479
|
-
U(
|
6480
|
+
U(J(t.tip), 1)
|
6480
6481
|
])
|
6481
6482
|
])) : z("", !0)
|
6482
6483
|
], 2),
|
@@ -6609,7 +6610,7 @@ const Y0 = {
|
|
6609
6610
|
onClick: f
|
6610
6611
|
}, {
|
6611
6612
|
default: b(() => [
|
6612
|
-
U(
|
6613
|
+
U(J(t.submitText), 1)
|
6613
6614
|
]),
|
6614
6615
|
_: 1
|
6615
6616
|
}, 8, ["loading"])) : z("", !0),
|
@@ -6619,7 +6620,7 @@ const Y0 = {
|
|
6619
6620
|
onClick: p[0] || (p[0] = () => m())
|
6620
6621
|
}, {
|
6621
6622
|
default: b(() => [
|
6622
|
-
U(
|
6623
|
+
U(J(t.resetText), 1)
|
6623
6624
|
]),
|
6624
6625
|
_: 1
|
6625
6626
|
})) : z("", !0),
|
@@ -6809,8 +6810,8 @@ const Y0 = {
|
|
6809
6810
|
key: 0,
|
6810
6811
|
class: "x-tabs__icon"
|
6811
6812
|
})) : z("", !0),
|
6812
|
-
|
6813
|
-
U(
|
6813
|
+
W("div", q0, [
|
6814
|
+
U(J(p.label) + " ", 1),
|
6814
6815
|
p.actions && [p.name, p.value].includes(m.$attrs.modelValue) ? (v(), I("div", Q0, [
|
6815
6816
|
(v(!0), I(ce, null, he(p.actions, (h) => (v(), x(u(we), O({
|
6816
6817
|
mode: "icon",
|
@@ -6917,12 +6918,12 @@ const Y0 = {
|
|
6917
6918
|
items: n.actions,
|
6918
6919
|
...n.actionBarProps
|
6919
6920
|
})), i = () => t("imageClick"), s = () => t("titleClick"), c = (f) => t("actionClick", f), d = (f, m) => t("actionCommand", f, m);
|
6920
|
-
return (f, m) => (v(), x(u(
|
6921
|
+
return (f, m) => (v(), x(u(Q), {
|
6921
6922
|
class: ge(["x-data-item", a.value]),
|
6922
6923
|
direction: n.direction
|
6923
6924
|
}, {
|
6924
6925
|
default: b(() => [
|
6925
|
-
n.imageSrc || f.$slots.image ? (v(), x(u(
|
6926
|
+
n.imageSrc || f.$slots.image ? (v(), x(u(Q), {
|
6926
6927
|
key: 0,
|
6927
6928
|
class: "x-data-item__img",
|
6928
6929
|
autoPointer: !0,
|
@@ -6939,14 +6940,14 @@ const Y0 = {
|
|
6939
6940
|
]),
|
6940
6941
|
_: 3
|
6941
6942
|
}, 8, ["onClick"])) : z("", !0),
|
6942
|
-
D(u(
|
6943
|
+
D(u(Q), {
|
6943
6944
|
class: "x-data-item__content",
|
6944
6945
|
direction: "column",
|
6945
6946
|
grow: "",
|
6946
6947
|
shrink: ""
|
6947
6948
|
}, {
|
6948
6949
|
default: b(() => [
|
6949
|
-
n.title || f.$slots.title ? (v(), x(u(
|
6950
|
+
n.title || f.$slots.title ? (v(), x(u(Q), {
|
6950
6951
|
key: 0,
|
6951
6952
|
class: "x-data-item__section x-data-item__wrapper",
|
6952
6953
|
align: "center",
|
@@ -6958,9 +6959,9 @@ const Y0 = {
|
|
6958
6959
|
key: 0,
|
6959
6960
|
class: "x-data-item__icon"
|
6960
6961
|
})) : z("", !0),
|
6961
|
-
|
6962
|
+
W("span", eu, [
|
6962
6963
|
A(f.$slots, "title", {}, () => [
|
6963
|
-
U(
|
6964
|
+
U(J(n.title), 1)
|
6964
6965
|
])
|
6965
6966
|
])
|
6966
6967
|
]),
|
@@ -6968,7 +6969,7 @@ const Y0 = {
|
|
6968
6969
|
}, 8, ["onClick"])) : z("", !0),
|
6969
6970
|
n.description || f.$slots.description ? (v(), I("div", tu, [
|
6970
6971
|
A(f.$slots, "description", {}, () => [
|
6971
|
-
U(
|
6972
|
+
U(J(n.description), 1)
|
6972
6973
|
])
|
6973
6974
|
])) : z("", !0),
|
6974
6975
|
f.$slots.default ? (v(), I("div", nu, [
|
@@ -7100,7 +7101,7 @@ const Y0 = {
|
|
7100
7101
|
!u(l).total && !u(i) ? A(k.$slots, "empty", { key: 0 }, () => [
|
7101
7102
|
D(u(Eo))
|
7102
7103
|
]) : z("", !0),
|
7103
|
-
|
7104
|
+
W("div", O({ class: "x-list__content" }, u(w)), [
|
7104
7105
|
t.itemHeight ? Ce((v(), I("div", O({
|
7105
7106
|
key: 0,
|
7106
7107
|
class: "x-list__wrapper",
|
@@ -7111,7 +7112,7 @@ const Y0 = {
|
|
7111
7112
|
key: S(E.data),
|
7112
7113
|
ref_for: !0
|
7113
7114
|
}, { item: E.data, index: Y }), () => [
|
7114
|
-
|
7115
|
+
W("div", null, J(E), 1)
|
7115
7116
|
])), 128)),
|
7116
7117
|
u(i) ? (v(), I("div", au, [
|
7117
7118
|
A(k.$slots, "loading", {}, () => [
|
@@ -7133,7 +7134,7 @@ const Y0 = {
|
|
7133
7134
|
key: S(E),
|
7134
7135
|
ref_for: !0
|
7135
7136
|
}, { item: E, index: Y }), () => [
|
7136
|
-
|
7137
|
+
W("div", null, J(E), 1)
|
7137
7138
|
])), 128)),
|
7138
7139
|
u(i) ? (v(), I("div", lu, [
|
7139
7140
|
A(k.$slots, "loading", {}, () => [
|
@@ -7193,12 +7194,12 @@ const Y0 = {
|
|
7193
7194
|
}
|
7194
7195
|
};
|
7195
7196
|
return (t, r) => (v(), I("div", du, [
|
7196
|
-
|
7197
|
-
|
7198
|
-
|
7197
|
+
W("div", fu, [
|
7198
|
+
W("div", pu, [
|
7199
|
+
W("span", mu, J(e.name), 1)
|
7199
7200
|
]),
|
7200
|
-
|
7201
|
-
|
7201
|
+
W("div", gu, J(e.tagline), 1),
|
7202
|
+
W("div", hu, [
|
7202
7203
|
D(u(Oe), {
|
7203
7204
|
type: "primary",
|
7204
7205
|
size: "large",
|
@@ -7207,7 +7208,7 @@ const Y0 = {
|
|
7207
7208
|
onClick: n
|
7208
7209
|
}, {
|
7209
7210
|
default: b(() => [
|
7210
|
-
U(
|
7211
|
+
U(J(e.actionText), 1)
|
7211
7212
|
]),
|
7212
7213
|
_: 1
|
7213
7214
|
}, 8, ["icon"])
|
@@ -7297,9 +7298,9 @@ const Y0 = {
|
|
7297
7298
|
])),
|
7298
7299
|
_: 1
|
7299
7300
|
}),
|
7300
|
-
D(u(
|
7301
|
+
D(u(Q), null, {
|
7301
7302
|
default: b(() => [
|
7302
|
-
U(
|
7303
|
+
U(J(c.value), 1)
|
7303
7304
|
]),
|
7304
7305
|
_: 1
|
7305
7306
|
}),
|
@@ -7316,7 +7317,7 @@ const Y0 = {
|
|
7316
7317
|
default: b(() => [
|
7317
7318
|
(v(!0), I(ce, null, he(a.value, ([w, _]) => (v(), x(u(Rn), { label: w }, {
|
7318
7319
|
default: b(() => [
|
7319
|
-
|
7320
|
+
W("pre", null, J(JSON.stringify(_, null, 2)), 1)
|
7320
7321
|
]),
|
7321
7322
|
_: 2
|
7322
7323
|
}, 1032, ["label"]))), 256))
|
@@ -7329,7 +7330,7 @@ const Y0 = {
|
|
7329
7330
|
])),
|
7330
7331
|
_: 1
|
7331
7332
|
}),
|
7332
|
-
D(u(
|
7333
|
+
D(u(Q), {
|
7333
7334
|
justify: "space-around",
|
7334
7335
|
flex: "",
|
7335
7336
|
gap: ""
|
@@ -7341,12 +7342,12 @@ const Y0 = {
|
|
7341
7342
|
card: ""
|
7342
7343
|
}, {
|
7343
7344
|
default: b(() => [
|
7344
|
-
|
7345
|
+
W("div", yu, [
|
7345
7346
|
A(p.$slots, "default", {
|
7346
7347
|
props: t,
|
7347
7348
|
data: c.value
|
7348
7349
|
}, () => [
|
7349
|
-
|
7350
|
+
W("pre", null, J(JSON.stringify({ props: t, data: c.value }, null, 2)), 1)
|
7350
7351
|
])
|
7351
7352
|
])
|
7352
7353
|
]),
|
@@ -7358,12 +7359,12 @@ const Y0 = {
|
|
7358
7359
|
card: ""
|
7359
7360
|
}, {
|
7360
7361
|
default: b(() => [
|
7361
|
-
|
7362
|
+
W("div", bu, [
|
7362
7363
|
A(p.$slots, "extra", {
|
7363
7364
|
props: t,
|
7364
7365
|
data: c.value
|
7365
7366
|
}, () => [
|
7366
|
-
|
7367
|
+
W("pre", null, J(JSON.stringify({ props: t, data: c.value }, null, 2)), 1)
|
7367
7368
|
])
|
7368
7369
|
])
|
7369
7370
|
]),
|
@@ -7378,7 +7379,7 @@ const Y0 = {
|
|
7378
7379
|
])),
|
7379
7380
|
_: 1
|
7380
7381
|
}),
|
7381
|
-
D(u(
|
7382
|
+
D(u(Q), null, {
|
7382
7383
|
default: b(() => [
|
7383
7384
|
(v(!0), I(ce, null, he(l(), (w) => A(p.$slots, w)), 256))
|
7384
7385
|
]),
|
@@ -7390,7 +7391,7 @@ const Y0 = {
|
|
7390
7391
|
])),
|
7391
7392
|
_: 1
|
7392
7393
|
}),
|
7393
|
-
D(u(
|
7394
|
+
D(u(Q), null, {
|
7394
7395
|
default: b(() => [
|
7395
7396
|
D(u(Qo), {
|
7396
7397
|
column: 2,
|
@@ -7427,7 +7428,7 @@ const Y0 = {
|
|
7427
7428
|
])),
|
7428
7429
|
_: 1
|
7429
7430
|
}),
|
7430
|
-
D(u(
|
7431
|
+
D(u(Q), null, {
|
7431
7432
|
default: b(() => [
|
7432
7433
|
D(u(Oe), { onClick: d }, {
|
7433
7434
|
default: b(() => h[8] || (h[8] = [
|
@@ -7559,7 +7560,7 @@ const Y0 = {
|
|
7559
7560
|
name: "suffix",
|
7560
7561
|
fn: b(() => [
|
7561
7562
|
i.value ? (v(), I("div", _u, [
|
7562
|
-
|
7563
|
+
W("span", null, J(i.value), 1)
|
7563
7564
|
])) : z("", !0)
|
7564
7565
|
]),
|
7565
7566
|
key: "1"
|
@@ -7594,7 +7595,7 @@ const Y0 = {
|
|
7594
7595
|
clearable: ""
|
7595
7596
|
}, {
|
7596
7597
|
prepend: b(() => [
|
7597
|
-
|
7598
|
+
W("img", {
|
7598
7599
|
src: t.value,
|
7599
7600
|
onClick: a
|
7600
7601
|
}, null, 8, Cu)
|
@@ -9125,7 +9126,7 @@ const c2 = ["src"], d2 = {
|
|
9125
9126
|
src: a.value
|
9126
9127
|
}, null, 8, c2)) : z("", !0),
|
9127
9128
|
l.value ? (v(), I("div", d2, [
|
9128
|
-
|
9129
|
+
W("div", f2, [
|
9129
9130
|
D(u(je), {
|
9130
9131
|
icon: u(Nr),
|
9131
9132
|
onClick: f,
|
@@ -9133,9 +9134,9 @@ const c2 = ["src"], d2 = {
|
|
9133
9134
|
}, null, 8, ["icon"]),
|
9134
9135
|
g[0] || (g[0] = U(" 刷新 "))
|
9135
9136
|
]),
|
9136
|
-
|
9137
|
+
W("div", p2, [
|
9137
9138
|
A(m.$slots, "tip", {}, () => [
|
9138
|
-
U(
|
9139
|
+
U(J(t.tip), 1)
|
9139
9140
|
])
|
9140
9141
|
])
|
9141
9142
|
])) : z("", !0)
|
@@ -9177,7 +9178,7 @@ const c2 = ["src"], d2 = {
|
|
9177
9178
|
D(u(Ie), { direction: "vertical" }),
|
9178
9179
|
r.value ? (v(), I("span", m2, [
|
9179
9180
|
d[1] || (d[1] = U(" 重新获取 ")),
|
9180
|
-
|
9181
|
+
W("strong", null, J(a.value), 1),
|
9181
9182
|
d[2] || (d[2] = U(" 秒 "))
|
9182
9183
|
])) : (v(), x(u(lo), {
|
9183
9184
|
key: 1,
|
@@ -9453,15 +9454,15 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9453
9454
|
}, j = (V) => !!f.value.find(($) => $.url === V.url), ae = (V) => {
|
9454
9455
|
r.clickable && a("click", Nt(V)), r.selectable && E(V);
|
9455
9456
|
}, Z = async (V, $) => {
|
9456
|
-
if ($.every((
|
9457
|
-
const
|
9458
|
-
a("change",
|
9457
|
+
if ($.every((K) => K.status === "success") && $.length === g.value.length) {
|
9458
|
+
const K = g.value.map((fe) => Nt(fe));
|
9459
|
+
a("change", K), a("update:modelValue", await y(K)), V?.response && (s.value = Symbol());
|
9459
9460
|
}
|
9460
9461
|
}, le = async (V) => {
|
9461
9462
|
if (!await bt.confirm("确定删除文件?", "提示", {
|
9462
9463
|
type: "warning"
|
9463
9464
|
}).catch(() => !1)) return;
|
9464
|
-
const F = g.value.filter((
|
9465
|
+
const F = g.value.filter((K) => K.uid !== V.uid || K.url !== V.url).map((K) => Nt(K));
|
9465
9466
|
g.value = F, a("remove", V), a("change", F), a("update:modelValue", await y(F)), Y(V), V?.raw || (s.value = Symbol());
|
9466
9467
|
}, ee = (V) => {
|
9467
9468
|
r.downloader ? r.downloader(V) : vi(V.url, V.name).catch(() => {
|
@@ -9498,10 +9499,10 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9498
9499
|
file: b(({ file: F }) => [
|
9499
9500
|
Ce((v(), I("div", {
|
9500
9501
|
class: ge(["x-attachment__item", { "is-selected": j(F) }]),
|
9501
|
-
onClick: (
|
9502
|
+
onClick: (K) => ae(F)
|
9502
9503
|
}, [
|
9503
|
-
|
9504
|
-
|
9504
|
+
W("div", M2, [
|
9505
|
+
W("img", {
|
9505
9506
|
class: ge(["el-upload-list__item-thumbnail", { "is-icon": !u(oo)(F) }]),
|
9506
9507
|
src: w(F)
|
9507
9508
|
}, null, 10, P2),
|
@@ -9510,14 +9511,14 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9510
9511
|
class: "el-upload-list__item-name",
|
9511
9512
|
title: F.url
|
9512
9513
|
}, [
|
9513
|
-
F.name ? (v(), I("span", I2,
|
9514
|
-
|
9514
|
+
F.name ? (v(), I("span", I2, J(F.name), 1)) : z("", !0),
|
9515
|
+
W("span", A2, J(F.url), 1)
|
9515
9516
|
], 8, $2)) : z("", !0)
|
9516
9517
|
]),
|
9517
9518
|
h.value ? (v(), I("div", V2, [
|
9518
9519
|
r.previewable ? (v(), I("span", {
|
9519
9520
|
key: 0,
|
9520
|
-
onClick: Ve((
|
9521
|
+
onClick: Ve((K) => R(F), ["stop"]),
|
9521
9522
|
class: "el-upload-list__item-preview"
|
9522
9523
|
}, [
|
9523
9524
|
D(u(Rt), null, {
|
@@ -9529,7 +9530,7 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9529
9530
|
], 8, B2)) : z("", !0),
|
9530
9531
|
r.downloadable ? (v(), I("span", {
|
9531
9532
|
key: 1,
|
9532
|
-
onClick: Ve((
|
9533
|
+
onClick: Ve((K) => ee(F), ["stop"]),
|
9533
9534
|
class: "el-upload-list__item-delete"
|
9534
9535
|
}, [
|
9535
9536
|
D(u(Rt), null, {
|
@@ -9541,7 +9542,7 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9541
9542
|
], 8, F2)) : z("", !0),
|
9542
9543
|
r.removable && !r.disabled ? (v(), I("span", {
|
9543
9544
|
key: 2,
|
9544
|
-
onClick: Ve((
|
9545
|
+
onClick: Ve((K) => le(F), ["stop"]),
|
9545
9546
|
class: "el-upload-list__item-delete"
|
9546
9547
|
}, [
|
9547
9548
|
D(u(Rt), null, {
|
@@ -9560,7 +9561,7 @@ const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9560
9561
|
A(V.$slots, "tip")
|
9561
9562
|
]),
|
9562
9563
|
default: b(() => [
|
9563
|
-
|
9564
|
+
W("div", D2, [
|
9564
9565
|
A(V.$slots, "upload", {}, () => [
|
9565
9566
|
D(u(Rt), null, {
|
9566
9567
|
default: b(() => [
|
@@ -9681,7 +9682,7 @@ export {
|
|
9681
9682
|
Jt as XActionBar,
|
9682
9683
|
uc as XAttachment,
|
9683
9684
|
ic as XCaptcha,
|
9684
|
-
|
9685
|
+
Q as XContainer,
|
9685
9686
|
tc as XDataItem,
|
9686
9687
|
In as XDialog,
|
9687
9688
|
Z2 as XDialogForm,
|