vue-2024-ui 0.1.0 → 0.1.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/index.es.js +133 -131
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import qt, { ElForm as ot, ElButtonGroup as rt, ElButton as _e, ElPopover as nt, ElMessage as xe, ElMessageBox as Ct, ElDialog as xt, ElDrawer as Ot } from "element-plus";
|
|
2
|
-
import { mergeModels as je, useModel as Le, ref as le, nextTick as et, onMounted as tt, computed as He, resolveComponent as I, openBlock as n, createElementBlock as S, Fragment as P, createElementVNode as Q, createBlock as C, createCommentVNode as ce, unref as A, mergeProps as M, withCtx as h, renderSlot as p, renderList as U, createTextVNode as De, toDisplayString as he, createSlots as fe, createVNode as
|
|
2
|
+
import { mergeModels as je, useModel as Le, ref as le, nextTick as et, onMounted as tt, computed as He, resolveComponent as I, openBlock as n, createElementBlock as S, Fragment as P, createElementVNode as Q, createBlock as C, createCommentVNode as ce, unref as A, mergeProps as M, withCtx as h, renderSlot as p, renderList as U, createTextVNode as De, toDisplayString as he, createSlots as fe, createVNode as W, useSlots as Dt, inject as vt, useAttrs as pt, onUnmounted as At, normalizeStyle as Ye, withModifiers as wt, normalizeProps as st, guardReactiveProps as Et, resolveDynamicComponent as Ne, Transition as Bt, withDirectives as It, vShow as Ut, h as Ie, onBeforeUnmount as Yt, normalizeClass as Mt, watchEffect as jt, watch as Lt, createApp as Rt } from "vue";
|
|
3
3
|
import { Plus as Nt, ZoomOut as Pt, Delete as Ht, ArrowDown as zt, FullScreen as Wt, Remove as Gt } from "@element-plus/icons-vue";
|
|
4
4
|
import Vt from "sortablejs";
|
|
5
5
|
import { Dexie as Qt } from "dexie";
|
|
@@ -598,7 +598,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
598
598
|
});
|
|
599
599
|
return (l, s) => {
|
|
600
600
|
var ke, Se, We;
|
|
601
|
-
const F = I("el-image-viewer"), r = I("el-radio"), g = I("el-radio-group"), m = I("el-radio-button"), b = I("el-checkbox"), i = I("el-checkbox-group"), w = I("el-checkbox-button"), D = I("g-select-option"), j = I("el-option"), T = I("el-select"), q = I("el-tree-select"), de = I("el-time-picker"), te = I("el-time-select"), Ce = I("el-date-picker"), Ee = I("el-color-picker"), Fe = I("el-rate"), Ve = I("el-slider"), we = I("el-switch"), Te = I("el-transfer"), Oe = I("el-cascader"), Be = I("el-icon"), lt = I("el-image"), a = I("el-tooltip"), u = I("el-upload"), y = I("el-autocomplete"), x = I("el-input-number"),
|
|
601
|
+
const F = I("el-image-viewer"), r = I("el-radio"), g = I("el-radio-group"), m = I("el-radio-button"), b = I("el-checkbox"), i = I("el-checkbox-group"), w = I("el-checkbox-button"), D = I("g-select-option"), j = I("el-option"), T = I("el-select"), q = I("el-tree-select"), de = I("el-time-picker"), te = I("el-time-select"), Ce = I("el-date-picker"), Ee = I("el-color-picker"), Fe = I("el-rate"), Ve = I("el-slider"), we = I("el-switch"), Te = I("el-transfer"), Oe = I("el-cascader"), Be = I("el-icon"), lt = I("el-image"), a = I("el-tooltip"), u = I("el-upload"), y = I("el-autocomplete"), x = I("el-input-number"), H = I("el-input"), G = I("el-link"), Z = I("el-tag");
|
|
602
602
|
return n(), S(P, null, [
|
|
603
603
|
Q("div", null, [
|
|
604
604
|
_.value ? (n(), C(F, {
|
|
@@ -701,7 +701,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
701
701
|
(n(!0), S(P, null, U(V.value, (f) => (n(), S(P, {
|
|
702
702
|
key: f.value
|
|
703
703
|
}, [
|
|
704
|
-
|
|
704
|
+
W(j, M({ ref_for: !0 }, A(Me)(f, (X) => X != "children"), {
|
|
705
705
|
onClick: (X) => {
|
|
706
706
|
ue.value.change && ue.value.change(f), $e();
|
|
707
707
|
}
|
|
@@ -715,7 +715,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
715
715
|
}, () => {
|
|
716
716
|
var ve;
|
|
717
717
|
return [
|
|
718
|
-
|
|
718
|
+
W(D, {
|
|
719
719
|
columns: (ve = e.value) == null ? void 0 : ve.columns,
|
|
720
720
|
data: f,
|
|
721
721
|
t: t.t
|
|
@@ -754,7 +754,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
754
754
|
}, () => {
|
|
755
755
|
var Ae;
|
|
756
756
|
return [
|
|
757
|
-
|
|
757
|
+
W(D, {
|
|
758
758
|
columns: (Ae = e.value) == null ? void 0 : Ae.columns,
|
|
759
759
|
data: X,
|
|
760
760
|
t: t.t
|
|
@@ -785,7 +785,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
785
785
|
fn: h(() => {
|
|
786
786
|
var f;
|
|
787
787
|
return [
|
|
788
|
-
|
|
788
|
+
W(D, {
|
|
789
789
|
columns: (f = e.value) == null ? void 0 : f.columns,
|
|
790
790
|
title: !0,
|
|
791
791
|
t: t.t
|
|
@@ -913,7 +913,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
913
913
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
914
914
|
}, [
|
|
915
915
|
Q("div", tl, [
|
|
916
|
-
|
|
916
|
+
W(lt, M({
|
|
917
917
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
918
918
|
src: c.value
|
|
919
919
|
}, { fit: "cover", lazy: !0, ...(f = e.value) == null ? void 0 : f.img }), fe({ _: 2 }, [
|
|
@@ -937,7 +937,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
937
937
|
placement: "top"
|
|
938
938
|
}, {
|
|
939
939
|
default: h(() => [
|
|
940
|
-
|
|
940
|
+
W(A(Pt), {
|
|
941
941
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
942
942
|
color: "white",
|
|
943
943
|
onClick: se
|
|
@@ -951,7 +951,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
951
951
|
placement: "top"
|
|
952
952
|
}, {
|
|
953
953
|
default: h(() => [
|
|
954
|
-
|
|
954
|
+
W(A(Ht), {
|
|
955
955
|
style: { width: "1.5em", height: "1.5em" },
|
|
956
956
|
color: "white",
|
|
957
957
|
onClick: ge
|
|
@@ -962,7 +962,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
962
962
|
], 32)
|
|
963
963
|
])) : (n(), C(Be, { key: 0 }, {
|
|
964
964
|
default: h(() => [
|
|
965
|
-
|
|
965
|
+
W(A(Nt))
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
968
968
|
}))
|
|
@@ -1004,7 +1004,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1004
1004
|
])
|
|
1005
1005
|
}))
|
|
1006
1006
|
]), 1040, ["modelValue", "placeholder"])) : d.value == A(pe).MONEY ? (n(), S("div", ll, [
|
|
1007
|
-
H
|
|
1007
|
+
W(H, M({
|
|
1008
1008
|
modelValue: c.value,
|
|
1009
1009
|
"onUpdate:modelValue": s[24] || (s[24] = (f) => c.value = f),
|
|
1010
1010
|
placeholder: E.value[o.value].label,
|
|
@@ -1027,7 +1027,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1027
1027
|
}))
|
|
1028
1028
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
1029
1029
|
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info" || d.value == "default") && e.value.isLink === !0 ? (n(), S("div", ol, [
|
|
1030
|
-
|
|
1030
|
+
W(G, M(e.value, {
|
|
1031
1031
|
innerHTML: Y.value || c.value
|
|
1032
1032
|
}), null, 16, ["innerHTML"])
|
|
1033
1033
|
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info") && e.value.isTag === !0 ? (n(), S("div", rl, [
|
|
@@ -1052,7 +1052,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1052
1052
|
innerHTML: Y.value || c.value
|
|
1053
1053
|
}), null, 16, ul)) : d.value == "span" ? (n(), S("span", M({ key: 23 }, e.value, {
|
|
1054
1054
|
innerHTML: Y.value || c.value
|
|
1055
|
-
}), null, 16, nl)) : (n(), C(
|
|
1055
|
+
}), null, 16, nl)) : (n(), C(H, M({
|
|
1056
1056
|
key: 24,
|
|
1057
1057
|
modelValue: c.value,
|
|
1058
1058
|
"onUpdate:modelValue": s[25] || (s[25] = (f) => c.value = f),
|
|
@@ -1301,7 +1301,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1301
1301
|
ge.value.length > 0 ? p(l.$slots, "default", { key: 0 }, () => {
|
|
1302
1302
|
var w, D, j;
|
|
1303
1303
|
return [
|
|
1304
|
-
|
|
1304
|
+
W(m, M({
|
|
1305
1305
|
class: "demo-tabs",
|
|
1306
1306
|
modelValue: ge.value[0].groupName,
|
|
1307
1307
|
"onUpdate:modelValue": s[0] || (s[0] = (T) => ge.value[0].groupName = T),
|
|
@@ -1323,7 +1323,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1323
1323
|
default: h(() => {
|
|
1324
1324
|
var te, Ce;
|
|
1325
1325
|
return [
|
|
1326
|
-
|
|
1326
|
+
W(F, M({
|
|
1327
1327
|
label: q == null ? void 0 : q.item.label,
|
|
1328
1328
|
prop: q.key,
|
|
1329
1329
|
rules: B(q == null ? void 0 : q.item),
|
|
@@ -1380,7 +1380,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1380
1380
|
(n(!0), S(P, null, U(se.value, (T) => (n(), S(P, null, [
|
|
1381
1381
|
p(l.$slots, T.name + "-left"),
|
|
1382
1382
|
p(l.$slots, T.name, {}, () => [
|
|
1383
|
-
|
|
1383
|
+
W(b, M({ ref_for: !0 }, T.info, {
|
|
1384
1384
|
onClick: wt((q) => T.click(E.value, t.value), ["stop"])
|
|
1385
1385
|
}), {
|
|
1386
1386
|
default: h(() => [
|
|
@@ -1405,7 +1405,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1405
1405
|
default: h(() => {
|
|
1406
1406
|
var de;
|
|
1407
1407
|
return [
|
|
1408
|
-
|
|
1408
|
+
W(F, M({
|
|
1409
1409
|
label: T.label,
|
|
1410
1410
|
prop: q,
|
|
1411
1411
|
rules: B(T),
|
|
@@ -1465,7 +1465,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1465
1465
|
(n(!0), S(P, null, U(se.value, (T) => (n(), S(P, null, [
|
|
1466
1466
|
p(l.$slots, T.name + "-left"),
|
|
1467
1467
|
p(l.$slots, T.name, {}, () => [
|
|
1468
|
-
|
|
1468
|
+
W(b, M({ ref_for: !0 }, T.info, {
|
|
1469
1469
|
onClick: wt((q) => T.click(E.value, t.value), ["stop"])
|
|
1470
1470
|
}), {
|
|
1471
1471
|
default: h(() => [
|
|
@@ -1511,7 +1511,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1511
1511
|
queryModel: e.value,
|
|
1512
1512
|
model: c.value
|
|
1513
1513
|
}, () => [
|
|
1514
|
-
|
|
1514
|
+
W(_, M({
|
|
1515
1515
|
label: k.label,
|
|
1516
1516
|
ref_for: !0
|
|
1517
1517
|
}, { ...c.value.queryItems, ...d(k) }), {
|
|
@@ -1522,7 +1522,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1522
1522
|
})
|
|
1523
1523
|
]),
|
|
1524
1524
|
default: h(() => [
|
|
1525
|
-
|
|
1525
|
+
W(ut, {
|
|
1526
1526
|
modelValue: e.value[R],
|
|
1527
1527
|
"onUpdate:modelValue": (ae) => e.value[R] = ae,
|
|
1528
1528
|
item: { ...k == null ? void 0 : k.editor, ...d(k) },
|
|
@@ -1706,7 +1706,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1706
1706
|
class: "g-query-container",
|
|
1707
1707
|
style: Ye((me = (ee = t.value.query) == null ? void 0 : ee.container) == null ? void 0 : me.style)
|
|
1708
1708
|
}, [
|
|
1709
|
-
|
|
1709
|
+
W(A(ot), st(Et(A(Me)(t.value.query, (i) => !["query", "more", "reset", "btns"].includes(i)))), {
|
|
1710
1710
|
default: h(() => {
|
|
1711
1711
|
var i, w;
|
|
1712
1712
|
return [
|
|
@@ -1783,9 +1783,9 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1783
1783
|
"show-close": !1
|
|
1784
1784
|
}, t.value.query.more.dialog), fe({
|
|
1785
1785
|
default: h(() => [
|
|
1786
|
-
|
|
1786
|
+
W(A(ot), M(A(Me)(t.value.query, (i) => !["query", "more", "reset"].includes(i)), { style: { width: "98%" } }), {
|
|
1787
1787
|
default: h(() => [
|
|
1788
|
-
|
|
1788
|
+
W(kt, {
|
|
1789
1789
|
modelValue: t.value,
|
|
1790
1790
|
"onUpdate:modelValue": B[0] || (B[0] = (i) => t.value = i),
|
|
1791
1791
|
info: E.value,
|
|
@@ -1809,7 +1809,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1809
1809
|
name: "footer",
|
|
1810
1810
|
fn: h(() => [
|
|
1811
1811
|
Q("div", st(Et(t.value.query.more.dialog.footer)), [
|
|
1812
|
-
|
|
1812
|
+
W(A(_e), M(t.value.query.query, {
|
|
1813
1813
|
onClick: B[2] || (B[2] = (i) => t.value.query.query.click())
|
|
1814
1814
|
}), {
|
|
1815
1815
|
default: h(() => [
|
|
@@ -1817,7 +1817,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1817
1817
|
]),
|
|
1818
1818
|
_: 1
|
|
1819
1819
|
}, 16),
|
|
1820
|
-
|
|
1820
|
+
W(A(_e), M(t.value.query.reset, {
|
|
1821
1821
|
onClick: B[3] || (B[3] = (i) => t.value.query.reset.click())
|
|
1822
1822
|
}), {
|
|
1823
1823
|
default: h(() => [
|
|
@@ -1830,7 +1830,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1830
1830
|
key: "0"
|
|
1831
1831
|
}
|
|
1832
1832
|
]), 1040, ["modelValue"])) : ce("", !0),
|
|
1833
|
-
|
|
1833
|
+
W(Bt, {
|
|
1834
1834
|
duration: 300,
|
|
1835
1835
|
name: "nested",
|
|
1836
1836
|
style: { padding: "10px" }
|
|
@@ -1910,13 +1910,13 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1910
1910
|
onClick: d,
|
|
1911
1911
|
style: { cursor: "pointer" }
|
|
1912
1912
|
}, "全选"),
|
|
1913
|
-
|
|
1913
|
+
W(k, { direction: "vertical" }),
|
|
1914
1914
|
Q("a", {
|
|
1915
1915
|
onClick: E,
|
|
1916
1916
|
style: { cursor: "pointer" }
|
|
1917
1917
|
}, "全不选")
|
|
1918
1918
|
]),
|
|
1919
|
-
|
|
1919
|
+
W(R, {
|
|
1920
1920
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1921
1921
|
type: "warning",
|
|
1922
1922
|
"show-icon": "",
|
|
@@ -1945,7 +1945,7 @@ const it = /* @__PURE__ */ Jt(Kt), ze = (v, c) => {
|
|
|
1945
1945
|
])
|
|
1946
1946
|
]),
|
|
1947
1947
|
Q("div", gl, [
|
|
1948
|
-
|
|
1948
|
+
W(Y, {
|
|
1949
1949
|
type: "primary",
|
|
1950
1950
|
onClick: O,
|
|
1951
1951
|
disabled: o.value.filter((B) => B.value).length < 1
|
|
@@ -2110,12 +2110,12 @@ const Cl = {
|
|
|
2110
2110
|
return n(), S("div", null, [
|
|
2111
2111
|
Q("div", Cl, [
|
|
2112
2112
|
Q("a", { onClick: E }, "全选"),
|
|
2113
|
-
|
|
2113
|
+
W(R, { direction: "vertical" }),
|
|
2114
2114
|
Q("a", { onClick: O }, "全不选"),
|
|
2115
|
-
|
|
2115
|
+
W(R, { direction: "vertical" }),
|
|
2116
2116
|
Q("a", { onClick: V }, "复位")
|
|
2117
2117
|
]),
|
|
2118
|
-
|
|
2118
|
+
W(ae, {
|
|
2119
2119
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2120
2120
|
type: "warning",
|
|
2121
2121
|
"show-icon": "",
|
|
@@ -2183,7 +2183,7 @@ const Cl = {
|
|
|
2183
2183
|
load: () => {
|
|
2184
2184
|
let { currentPage: a, pageSize: u } = e.value.table.page;
|
|
2185
2185
|
try {
|
|
2186
|
-
t("load", { currentPage: a, pageSize: u, ...d.value }, (y, x, { fields:
|
|
2186
|
+
t("load", { currentPage: a, pageSize: u, ...d.value }, (y, x, { fields: H = [], sums: G = {} } = {}) => {
|
|
2187
2187
|
var Z, ke;
|
|
2188
2188
|
if (!Array.isArray(y)) {
|
|
2189
2189
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), xe.error("数据加载失败,请检查数据格式。");
|
|
@@ -2193,7 +2193,7 @@ const Cl = {
|
|
|
2193
2193
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), xe.error("数据加载失败,请检查数据格式。");
|
|
2194
2194
|
return;
|
|
2195
2195
|
}
|
|
2196
|
-
e.value.table.data = y, ((ke = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : ke.inline) === !0 && e.value.table.data.unshift(B.value), e.value.table.page.total = x, Y.value =
|
|
2196
|
+
e.value.table.data = y, ((ke = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : ke.inline) === !0 && e.value.table.data.unshift(B.value), e.value.table.page.total = x, Y.value = H, ae.value = G, te(), re.value = Math.random().toString(36).substring(2);
|
|
2197
2197
|
}, B.value);
|
|
2198
2198
|
} catch (y) {
|
|
2199
2199
|
console.error("触发 load 事件时出现错误:", y), xe.error("数据加载时出现错误,请稍后重试。");
|
|
@@ -2267,8 +2267,8 @@ const Cl = {
|
|
|
2267
2267
|
type: "primary",
|
|
2268
2268
|
mode: "dialog",
|
|
2269
2269
|
auth: (a, u, y) => {
|
|
2270
|
-
var x,
|
|
2271
|
-
return ((G = (
|
|
2270
|
+
var x, H, G;
|
|
2271
|
+
return ((G = (H = (x = e.value) == null ? void 0 : x.control) == null ? void 0 : H.add) == null ? void 0 : G.inline) === !1;
|
|
2272
2272
|
}
|
|
2273
2273
|
},
|
|
2274
2274
|
delete: {
|
|
@@ -2276,8 +2276,8 @@ const Cl = {
|
|
|
2276
2276
|
label: "删除",
|
|
2277
2277
|
type: "danger",
|
|
2278
2278
|
auth: (a, u, y) => {
|
|
2279
|
-
var x,
|
|
2280
|
-
return !(((G = (
|
|
2279
|
+
var x, H, G;
|
|
2280
|
+
return !(((G = (H = (x = e.value) == null ? void 0 : x.control) == null ? void 0 : H.add) == null ? void 0 : G.inline) === !0 && y === 0);
|
|
2281
2281
|
},
|
|
2282
2282
|
dialog: {
|
|
2283
2283
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2312,7 +2312,7 @@ const Cl = {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
},
|
|
2314
2314
|
dropdown: {
|
|
2315
|
-
btn: { label: "操作", type: "primary",
|
|
2315
|
+
btn: { label: "操作", type: "primary", plain: !0 },
|
|
2316
2316
|
drowdown: {
|
|
2317
2317
|
"split-button": !0
|
|
2318
2318
|
}
|
|
@@ -2374,12 +2374,12 @@ const Cl = {
|
|
|
2374
2374
|
const se = (a, u) => {
|
|
2375
2375
|
let y = u;
|
|
2376
2376
|
if (a.decimals && !isNaN(parseFloat(u)) && (typeof a.decimals == "number" ? y = parseFloat(y).toFixed(a.decimals) : typeof a.decimals == "object" && a.decimals.num && (a.decimals.pad ? y = parseFloat(y).toFixed(a.decimals.num) : y = parseFloat(parseFloat(y).toFixed(a.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && it(u).isValid()) {
|
|
2377
|
-
const
|
|
2377
|
+
const H = {
|
|
2378
2378
|
date: "YYYY-MM-DD",
|
|
2379
2379
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2380
2380
|
time: "HH:mm:ss"
|
|
2381
2381
|
};
|
|
2382
|
-
y = a.format ? it(y).format(a.format) : it(y).format(
|
|
2382
|
+
y = a.format ? it(y).format(a.format) : it(y).format(H[a.type]);
|
|
2383
2383
|
}
|
|
2384
2384
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, y = `<span title="${mt(parseFloat(y))}">${la(parseFloat(y))}</span>`), a.prefix && y && (y = `<span>${a.prefix}${y}</span>`), a.suffix && y && (y = `${y}<span>${a.suffix}</span>`), y;
|
|
2385
2385
|
}, ie = (a) => {
|
|
@@ -2399,10 +2399,10 @@ const Cl = {
|
|
|
2399
2399
|
e.value[x] && (e.value[x].value = B.value[x]);
|
|
2400
2400
|
}), O.value = !0, t("open", "add", { m: a }));
|
|
2401
2401
|
}, ne = async (a, u, y, x) => {
|
|
2402
|
-
var
|
|
2402
|
+
var H, G;
|
|
2403
2403
|
e.value.form.modalState = "edit";
|
|
2404
2404
|
try {
|
|
2405
|
-
if (!await ((
|
|
2405
|
+
if (!await ((H = e.value.control) == null ? void 0 : H.validate("edit", { row: a, column: u, $index: y, m: x }))) return;
|
|
2406
2406
|
} catch (Z) {
|
|
2407
2407
|
console.error("验证失败:", Z);
|
|
2408
2408
|
return;
|
|
@@ -2411,9 +2411,9 @@ const Cl = {
|
|
|
2411
2411
|
e.value[Z] && (e.value[Z].value = a[Z]);
|
|
2412
2412
|
}), O.value = !0, t("open", "edit", { m: x, row: a, column: u, $index: y }));
|
|
2413
2413
|
}, l = async (a, u, y, x) => {
|
|
2414
|
-
var
|
|
2414
|
+
var H, G;
|
|
2415
2415
|
try {
|
|
2416
|
-
if (!await ((
|
|
2416
|
+
if (!await ((H = e.value.control) == null ? void 0 : H.validate("delete", { row: a, column: u, $index: y, m: x }))) return;
|
|
2417
2417
|
} catch (Z) {
|
|
2418
2418
|
console.error("验证失败:", Z);
|
|
2419
2419
|
return;
|
|
@@ -2430,10 +2430,10 @@ const Cl = {
|
|
|
2430
2430
|
});
|
|
2431
2431
|
}
|
|
2432
2432
|
}, s = async (a, u, y, x) => {
|
|
2433
|
-
var
|
|
2433
|
+
var H, G;
|
|
2434
2434
|
e.value.form.modalState = void 0;
|
|
2435
2435
|
try {
|
|
2436
|
-
if (!await ((
|
|
2436
|
+
if (!await ((H = e.value.control) == null ? void 0 : H.validate("view", { row: a, column: u, $index: y, m: x }))) return;
|
|
2437
2437
|
} catch (Z) {
|
|
2438
2438
|
console.error("验证失败:", Z);
|
|
2439
2439
|
return;
|
|
@@ -2442,8 +2442,8 @@ const Cl = {
|
|
|
2442
2442
|
e.value[Z] && (e.value[Z].value = a[Z]);
|
|
2443
2443
|
}), O.value = !0, t("open", "view", { m: x, row: a, column: u, $index: y }));
|
|
2444
2444
|
}, F = (a, u, y, x) => {
|
|
2445
|
-
var
|
|
2446
|
-
(
|
|
2445
|
+
var H;
|
|
2446
|
+
(H = e.value.control.save) != null && H.click ? e.value.control.save.click(a, u, y, x) : t("row-save", { row: a, column: u, $index: y, data: e.value.table.data }, (G = !0, Z = !0) => {
|
|
2447
2447
|
G && (e.value.table.load(), console.log("load")), Z && et(() => {
|
|
2448
2448
|
B.value = Object.assign({}, Object.fromEntries(Object.entries(Me(e.value, (ke, Se) => Se.type != "control" && Se.editor !== !1 && Se.type != "hidden")).map(([ke, Se]) => [ke, Se.value])));
|
|
2449
2449
|
});
|
|
@@ -2467,8 +2467,8 @@ const Cl = {
|
|
|
2467
2467
|
default: () => Ie($l, {
|
|
2468
2468
|
items: u,
|
|
2469
2469
|
commitText: a.control.download.excelLabel,
|
|
2470
|
-
onExcel: (
|
|
2471
|
-
t("download",
|
|
2470
|
+
onExcel: (H, G) => {
|
|
2471
|
+
t("download", H, G), x();
|
|
2472
2472
|
}
|
|
2473
2473
|
})
|
|
2474
2474
|
}
|
|
@@ -2496,13 +2496,13 @@ const Cl = {
|
|
|
2496
2496
|
{ type: "delete", func: l },
|
|
2497
2497
|
{ type: "save", func: F }
|
|
2498
2498
|
], D = (a) => w.filter((u) => a.includes(u.type)).map(({ type: u, func: y }) => {
|
|
2499
|
-
var x,
|
|
2499
|
+
var x, H, G;
|
|
2500
2500
|
return {
|
|
2501
2501
|
name: `control-${u}`,
|
|
2502
2502
|
attr: i == null ? void 0 : i[u],
|
|
2503
2503
|
func: y,
|
|
2504
2504
|
label: (x = i == null ? void 0 : i[u]) == null ? void 0 : x.label,
|
|
2505
|
-
sort: ((
|
|
2505
|
+
sort: ((H = i == null ? void 0 : i[u]) == null ? void 0 : H.sort) || 0,
|
|
2506
2506
|
groupName: ((G = i == null ? void 0 : i[u]) == null ? void 0 : G.groupName) || "default"
|
|
2507
2507
|
};
|
|
2508
2508
|
}).sort((u, y) => u.sort - y.sort), j = (a) => D(a).reduce((u, y) => {
|
|
@@ -2511,11 +2511,11 @@ const Cl = {
|
|
|
2511
2511
|
}, {}), T = He(() => Object.fromEntries(
|
|
2512
2512
|
Object.entries(e.value).filter(([a, u]) => u.type !== "hidden").filter(([a, u]) => u.visible !== !1).filter(([a, u]) => u.showCol !== !1).map(([a, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [a, u])).sort((a, u) => a[1].sort - u[1].sort)
|
|
2513
2513
|
)), q = le({}), de = (a, u) => {
|
|
2514
|
-
const y = (x,
|
|
2514
|
+
const y = (x, H) => {
|
|
2515
2515
|
for (const G of x) {
|
|
2516
|
-
if (G.value ==
|
|
2516
|
+
if (G.value == H) return G.label;
|
|
2517
2517
|
if (G.children) {
|
|
2518
|
-
const Z = y(G.children,
|
|
2518
|
+
const Z = y(G.children, H);
|
|
2519
2519
|
if (Z) return Z;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
@@ -2523,8 +2523,8 @@ const Cl = {
|
|
|
2523
2523
|
};
|
|
2524
2524
|
if (a.getDicts) {
|
|
2525
2525
|
const x = u.toString();
|
|
2526
|
-
return q.value[x] ? (a.options = q.value[x], a.formatter || (a.formatter = (
|
|
2527
|
-
q.value[x] =
|
|
2526
|
+
return q.value[x] ? (a.options = q.value[x], a.formatter || (a.formatter = (H, G, Z, ke) => a.options && y(a.options, Z) || Z), Promise.resolve()) : a.getDicts(e.value.table.data).then((H) => {
|
|
2527
|
+
q.value[x] = H, a.options = H, a.formatter || (a.formatter = (G, Z, ke, Se) => a.options && y(a.options, ke) || ke);
|
|
2528
2528
|
});
|
|
2529
2529
|
}
|
|
2530
2530
|
return Promise.resolve();
|
|
@@ -2534,8 +2534,8 @@ const Cl = {
|
|
|
2534
2534
|
if (e.value[u].getDicts) {
|
|
2535
2535
|
const y = de(e.value[u], u).then(() => {
|
|
2536
2536
|
e.value.table.data.forEach((x) => {
|
|
2537
|
-
var
|
|
2538
|
-
if (e.value[u].getDicts && ((
|
|
2537
|
+
var H;
|
|
2538
|
+
if (e.value[u].getDicts && ((H = e.value[u]) == null ? void 0 : H.forceString) !== !1) {
|
|
2539
2539
|
const G = x[u];
|
|
2540
2540
|
x[u] = G != null ? G.toString() : G;
|
|
2541
2541
|
}
|
|
@@ -2549,8 +2549,8 @@ const Cl = {
|
|
|
2549
2549
|
console.error("字典加载过程中发生错误:", u);
|
|
2550
2550
|
});
|
|
2551
2551
|
}, Ce = (a, u, y, x) => {
|
|
2552
|
-
var
|
|
2553
|
-
return a.table ? (
|
|
2552
|
+
var H, G;
|
|
2553
|
+
return a.table ? (H = a.table(u, y, x)) != null && H.auth ? (G = a.table(u, y, x)) == null ? void 0 : G.auth(u, y, x) : !0 : !1;
|
|
2554
2554
|
}, Ee = (a, u) => a.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? a.attr.addLabel : a.label;
|
|
2555
2555
|
return jt(() => {
|
|
2556
2556
|
e.value.table.autoWatch && e.value.table.load();
|
|
@@ -2591,12 +2591,12 @@ const Cl = {
|
|
|
2591
2591
|
e.value.table.autoWatch || e.value.table.load();
|
|
2592
2592
|
}), (a, u) => {
|
|
2593
2593
|
var ve, Ae, Ge, Pe, at;
|
|
2594
|
-
const y = I("el-button-group"), x = I("el-icon"),
|
|
2594
|
+
const y = I("el-button-group"), x = I("el-icon"), H = I("el-dropdown-item"), G = I("el-dropdown-menu"), Z = I("el-dropdown"), ke = I("el-table-column"), Se = I("el-table"), We = I("el-pagination"), f = I("el-dialog"), X = I("el-drawer");
|
|
2595
2595
|
return n(), S(P, null, [
|
|
2596
2596
|
Q("div", Tl, [
|
|
2597
2597
|
((Ae = (ve = e.value) == null ? void 0 : ve.query) == null ? void 0 : Ae.hidden) != !0 ? (n(), S("div", Sl, [
|
|
2598
2598
|
p(a.$slots, "query", {}, () => [
|
|
2599
|
-
|
|
2599
|
+
W(cl, {
|
|
2600
2600
|
modelValue: e.value,
|
|
2601
2601
|
"onUpdate:modelValue": u[0] || (u[0] = (L) => e.value = L),
|
|
2602
2602
|
info: d.value,
|
|
@@ -2615,7 +2615,7 @@ const Cl = {
|
|
|
2615
2615
|
title: $.label,
|
|
2616
2616
|
ref_for: !0
|
|
2617
2617
|
}, $.attr, {
|
|
2618
|
-
onClick: (
|
|
2618
|
+
onClick: (z) => $.func(e.value, _.value)
|
|
2619
2619
|
}), {
|
|
2620
2620
|
default: h(() => [
|
|
2621
2621
|
De(he($.label), 1)
|
|
@@ -2626,7 +2626,7 @@ const Cl = {
|
|
|
2626
2626
|
title: $.label,
|
|
2627
2627
|
ref_for: !0
|
|
2628
2628
|
}, $.attr, {
|
|
2629
|
-
onClick: (
|
|
2629
|
+
onClick: (z) => $.func(e.value, _.value)
|
|
2630
2630
|
}), null, 16, ["title", "onClick"]))
|
|
2631
2631
|
], !0) : ce("", !0),
|
|
2632
2632
|
p(a.$slots, $.name + "-right", {}, void 0, !0)
|
|
@@ -2640,7 +2640,7 @@ const Cl = {
|
|
|
2640
2640
|
title: $.label,
|
|
2641
2641
|
ref_for: !0
|
|
2642
2642
|
}, $.attr, {
|
|
2643
|
-
onClick: (
|
|
2643
|
+
onClick: (z) => $.func(e.value, _.value)
|
|
2644
2644
|
}), {
|
|
2645
2645
|
default: h(() => [
|
|
2646
2646
|
De(he($.label), 1)
|
|
@@ -2651,7 +2651,7 @@ const Cl = {
|
|
|
2651
2651
|
title: $.label,
|
|
2652
2652
|
ref_for: !0
|
|
2653
2653
|
}, $.attr, {
|
|
2654
|
-
onClick: (
|
|
2654
|
+
onClick: (z) => $.func(e.value, _.value)
|
|
2655
2655
|
}), null, 16, ["title", "onClick"]))
|
|
2656
2656
|
], !0) : ce("", !0),
|
|
2657
2657
|
p(a.$slots, $.name + "-right", {}, void 0, !0)
|
|
@@ -2666,7 +2666,7 @@ const Cl = {
|
|
|
2666
2666
|
}, [
|
|
2667
2667
|
U(a.$slots, (L, oe, $) => ({
|
|
2668
2668
|
name: oe,
|
|
2669
|
-
fn: h((
|
|
2669
|
+
fn: h((z) => [
|
|
2670
2670
|
p(a.$slots, oe, { model: e.value }, void 0, !0)
|
|
2671
2671
|
])
|
|
2672
2672
|
}))
|
|
@@ -2674,7 +2674,7 @@ const Cl = {
|
|
|
2674
2674
|
], !0)
|
|
2675
2675
|
])) : ce("", !0),
|
|
2676
2676
|
Q("div", ql, [
|
|
2677
|
-
|
|
2677
|
+
W(Se, M({ ...a.$attrs, ...A(Me)(e.value.table, (L) => !["dblclickType", "page"].includes(L)) }, {
|
|
2678
2678
|
"summary-method": (L) => e.value.table["summary-method"](L, { fields: Y.value, sums: ae.value }),
|
|
2679
2679
|
onSortChange: u[2] || (u[2] = (L) => {
|
|
2680
2680
|
var oe, $;
|
|
@@ -2694,17 +2694,17 @@ const Cl = {
|
|
|
2694
2694
|
key: oe,
|
|
2695
2695
|
ref_for: !0
|
|
2696
2696
|
}, { ...e.value.tableColumns, ...A(Me)(L, ($) => V.includes($)) }, { "header-align": "center" }), fe({
|
|
2697
|
-
header: h(({ column: $, $index:
|
|
2697
|
+
header: h(({ column: $, $index: z }) => [
|
|
2698
2698
|
oe == "control" ? p(a.$slots, `${oe}-header`, {
|
|
2699
2699
|
key: 0,
|
|
2700
2700
|
column: $,
|
|
2701
|
-
$index:
|
|
2701
|
+
$index: z
|
|
2702
2702
|
}, () => [
|
|
2703
2703
|
Q("span", null, he($.label), 1)
|
|
2704
2704
|
], !0) : p(a.$slots, `${oe}-header`, {
|
|
2705
2705
|
key: 1,
|
|
2706
2706
|
column: $,
|
|
2707
|
-
$index:
|
|
2707
|
+
$index: z
|
|
2708
2708
|
}, void 0, !0)
|
|
2709
2709
|
]),
|
|
2710
2710
|
"filter-icon": h(($) => [
|
|
@@ -2714,17 +2714,17 @@ const Cl = {
|
|
|
2714
2714
|
}, [
|
|
2715
2715
|
L.type === "expand" ? {
|
|
2716
2716
|
name: "default",
|
|
2717
|
-
fn: h(({ row: $, column:
|
|
2717
|
+
fn: h(({ row: $, column: z, $index: J }) => [
|
|
2718
2718
|
p(a.$slots, `${oe}`, {
|
|
2719
2719
|
row: $,
|
|
2720
|
-
column:
|
|
2720
|
+
column: z,
|
|
2721
2721
|
$index: J
|
|
2722
2722
|
}, void 0, !0)
|
|
2723
2723
|
]),
|
|
2724
2724
|
key: "0"
|
|
2725
2725
|
} : L.type == "control" ? {
|
|
2726
2726
|
name: "default",
|
|
2727
|
-
fn: h(({ row: $, column:
|
|
2727
|
+
fn: h(({ row: $, column: z, $index: J }) => {
|
|
2728
2728
|
var Ze, Je;
|
|
2729
2729
|
return [
|
|
2730
2730
|
Q("div", {
|
|
@@ -2734,7 +2734,7 @@ const Cl = {
|
|
|
2734
2734
|
p(a.$slots, "control", {}, () => [
|
|
2735
2735
|
p(a.$slots, "control-left", {
|
|
2736
2736
|
row: $,
|
|
2737
|
-
column:
|
|
2737
|
+
column: z,
|
|
2738
2738
|
$index: J
|
|
2739
2739
|
}, void 0, !0),
|
|
2740
2740
|
(n(!0), S(P, null, U(j(["view", "edit", "delete", "save"]), (Qe, Xe) => {
|
|
@@ -2743,13 +2743,13 @@ const Cl = {
|
|
|
2743
2743
|
Xe == "default" ? (n(!0), S(P, { key: 0 }, U(Qe, (N) => (n(), S(P, null, [
|
|
2744
2744
|
p(a.$slots, N.name + "-left", {
|
|
2745
2745
|
row: $,
|
|
2746
|
-
column:
|
|
2746
|
+
column: z,
|
|
2747
2747
|
$index: J
|
|
2748
2748
|
}, void 0, !0),
|
|
2749
|
-
N.attr.auth($,
|
|
2749
|
+
N.attr.auth($, z, J) ? p(a.$slots, N.name, {
|
|
2750
2750
|
key: 0,
|
|
2751
2751
|
row: $,
|
|
2752
|
-
column:
|
|
2752
|
+
column: z,
|
|
2753
2753
|
$index: J
|
|
2754
2754
|
}, () => [
|
|
2755
2755
|
N.label ? (n(), C(A(_e), M({
|
|
@@ -2757,7 +2757,7 @@ const Cl = {
|
|
|
2757
2757
|
title: N.label,
|
|
2758
2758
|
ref_for: !0
|
|
2759
2759
|
}, N.attr, {
|
|
2760
|
-
onClick: (Re) => N.func($,
|
|
2760
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2761
2761
|
}), {
|
|
2762
2762
|
default: h(() => [
|
|
2763
2763
|
De(he(Ee(N, J)), 1)
|
|
@@ -2768,12 +2768,12 @@ const Cl = {
|
|
|
2768
2768
|
title: N.label,
|
|
2769
2769
|
ref_for: !0
|
|
2770
2770
|
}, N.attr, {
|
|
2771
|
-
onClick: (Re) => N.func($,
|
|
2771
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2772
2772
|
}), null, 16, ["title", "onClick"]))
|
|
2773
2773
|
], !0) : ce("", !0),
|
|
2774
2774
|
p(a.$slots, N.name + "-right", {
|
|
2775
2775
|
row: $,
|
|
2776
|
-
column:
|
|
2776
|
+
column: z,
|
|
2777
2777
|
$index: J
|
|
2778
2778
|
}, void 0, !0)
|
|
2779
2779
|
], 64))), 256)) : Xe != null && Xe.startsWith("dropdown") ? (n(), C(Z, M({
|
|
@@ -2781,25 +2781,27 @@ const Cl = {
|
|
|
2781
2781
|
ref_for: !0
|
|
2782
2782
|
}, (yt = (ht = A(i)) == null ? void 0 : ht.dropdown) == null ? void 0 : yt.dropdown), {
|
|
2783
2783
|
dropdown: h(() => [
|
|
2784
|
-
|
|
2784
|
+
W(G, null, {
|
|
2785
2785
|
default: h(() => [
|
|
2786
2786
|
(n(!0), S(P, null, U(Qe, (N) => (n(), S(P, null, [
|
|
2787
|
-
a.$slots[N.name + "-left"] ? (n(), C(
|
|
2787
|
+
a.$slots[N.name + "-left"] ? (n(), C(H, { key: 0 }, {
|
|
2788
2788
|
default: h(() => [
|
|
2789
2789
|
p(a.$slots, N.name + "-left", {
|
|
2790
2790
|
row: $,
|
|
2791
|
-
column:
|
|
2791
|
+
column: z,
|
|
2792
2792
|
$index: J
|
|
2793
2793
|
}, void 0, !0)
|
|
2794
2794
|
]),
|
|
2795
2795
|
_: 2
|
|
2796
2796
|
}, 1024)) : ce("", !0),
|
|
2797
|
-
|
|
2797
|
+
N.attr.auth($, z, J) ? (n(), C(H, M({
|
|
2798
|
+
key: 1,
|
|
2799
|
+
ref_for: !0
|
|
2800
|
+
}, { divided: N == null ? void 0 : N.attr.divided, disabled: N == null ? void 0 : N.attr.disabled }), {
|
|
2798
2801
|
default: h(() => [
|
|
2799
|
-
|
|
2800
|
-
key: 0,
|
|
2802
|
+
p(a.$slots, N.name, {
|
|
2801
2803
|
row: $,
|
|
2802
|
-
column:
|
|
2804
|
+
column: z,
|
|
2803
2805
|
$index: J
|
|
2804
2806
|
}, () => [
|
|
2805
2807
|
N.label ? (n(), C(A(_e), M({
|
|
@@ -2807,7 +2809,7 @@ const Cl = {
|
|
|
2807
2809
|
title: N.label,
|
|
2808
2810
|
ref_for: !0
|
|
2809
2811
|
}, N.attr, {
|
|
2810
|
-
onClick: (Re) => N.func($,
|
|
2812
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2811
2813
|
}), {
|
|
2812
2814
|
default: h(() => [
|
|
2813
2815
|
De(he(Ee(N, J)), 1)
|
|
@@ -2818,17 +2820,17 @@ const Cl = {
|
|
|
2818
2820
|
title: N.label,
|
|
2819
2821
|
ref_for: !0
|
|
2820
2822
|
}, N.attr, {
|
|
2821
|
-
onClick: (Re) => N.func($,
|
|
2823
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2822
2824
|
}), null, 16, ["title", "onClick"]))
|
|
2823
|
-
], !0)
|
|
2825
|
+
], !0)
|
|
2824
2826
|
]),
|
|
2825
2827
|
_: 2
|
|
2826
|
-
}, 1040),
|
|
2827
|
-
a.$slots[N.name + "-right"] ? (n(), C(
|
|
2828
|
+
}, 1040)) : ce("", !0),
|
|
2829
|
+
a.$slots[N.name + "-right"] ? (n(), C(H, { key: 2 }, {
|
|
2828
2830
|
default: h(() => [
|
|
2829
2831
|
p(a.$slots, N.name + "-right", {
|
|
2830
2832
|
row: $,
|
|
2831
|
-
column:
|
|
2833
|
+
column: z,
|
|
2832
2834
|
$index: J
|
|
2833
2835
|
}, void 0, !0)
|
|
2834
2836
|
]),
|
|
@@ -2843,14 +2845,14 @@ const Cl = {
|
|
|
2843
2845
|
p(a.$slots, "control-dropdown-btn", {}, () => {
|
|
2844
2846
|
var N, Re;
|
|
2845
2847
|
return [
|
|
2846
|
-
|
|
2848
|
+
W(A(_e), M({ ref_for: !0 }, (Re = (N = A(i)) == null ? void 0 : N.dropdown) == null ? void 0 : Re.btn), {
|
|
2847
2849
|
default: h(() => {
|
|
2848
2850
|
var gt, bt, $t;
|
|
2849
2851
|
return [
|
|
2850
2852
|
De(he(($t = (bt = (gt = A(i)) == null ? void 0 : gt.dropdown) == null ? void 0 : bt.btn) == null ? void 0 : $t.label) + " ", 1),
|
|
2851
|
-
|
|
2853
|
+
W(x, { class: "el-icon--right" }, {
|
|
2852
2854
|
default: h(() => [
|
|
2853
|
-
|
|
2855
|
+
W(A(zt))
|
|
2854
2856
|
]),
|
|
2855
2857
|
_: 1
|
|
2856
2858
|
})
|
|
@@ -2867,13 +2869,13 @@ const Cl = {
|
|
|
2867
2869
|
(n(!0), S(P, null, U(Qe, (N) => (n(), S(P, null, [
|
|
2868
2870
|
p(a.$slots, N.name + "-left", {
|
|
2869
2871
|
row: $,
|
|
2870
|
-
column:
|
|
2872
|
+
column: z,
|
|
2871
2873
|
$index: J
|
|
2872
2874
|
}, void 0, !0),
|
|
2873
|
-
N.attr.auth($,
|
|
2875
|
+
N.attr.auth($, z, J) ? p(a.$slots, N.name, {
|
|
2874
2876
|
key: 0,
|
|
2875
2877
|
row: $,
|
|
2876
|
-
column:
|
|
2878
|
+
column: z,
|
|
2877
2879
|
$index: J
|
|
2878
2880
|
}, () => [
|
|
2879
2881
|
N.label ? (n(), C(A(_e), M({
|
|
@@ -2881,7 +2883,7 @@ const Cl = {
|
|
|
2881
2883
|
title: N.label,
|
|
2882
2884
|
ref_for: !0
|
|
2883
2885
|
}, N.attr, {
|
|
2884
|
-
onClick: (Re) => N.func($,
|
|
2886
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2885
2887
|
}), {
|
|
2886
2888
|
default: h(() => [
|
|
2887
2889
|
De(he(Ee(N, J)), 1)
|
|
@@ -2892,12 +2894,12 @@ const Cl = {
|
|
|
2892
2894
|
title: N.label,
|
|
2893
2895
|
ref_for: !0
|
|
2894
2896
|
}, N.attr, {
|
|
2895
|
-
onClick: (Re) => N.func($,
|
|
2897
|
+
onClick: (Re) => N.func($, z, J, e.value)
|
|
2896
2898
|
}), null, 16, ["title", "onClick"]))
|
|
2897
2899
|
], !0) : ce("", !0),
|
|
2898
2900
|
p(a.$slots, N.name + "-right", {
|
|
2899
2901
|
row: $,
|
|
2900
|
-
column:
|
|
2902
|
+
column: z,
|
|
2901
2903
|
$index: J
|
|
2902
2904
|
}, void 0, !0)
|
|
2903
2905
|
], 64))), 256))
|
|
@@ -2908,7 +2910,7 @@ const Cl = {
|
|
|
2908
2910
|
}), 256)),
|
|
2909
2911
|
p(a.$slots, "control-right", {
|
|
2910
2912
|
row: $,
|
|
2911
|
-
column:
|
|
2913
|
+
column: z,
|
|
2912
2914
|
$index: J
|
|
2913
2915
|
}, void 0, !0)
|
|
2914
2916
|
], !0)
|
|
@@ -2918,11 +2920,11 @@ const Cl = {
|
|
|
2918
2920
|
key: "1"
|
|
2919
2921
|
} : L.type != "selection" && L.type != "index" ? {
|
|
2920
2922
|
name: "default",
|
|
2921
|
-
fn: h(({ row: $, column:
|
|
2922
|
-
Ce(L, $,
|
|
2923
|
+
fn: h(({ row: $, column: z, $index: J }) => [
|
|
2924
|
+
Ce(L, $, z, J) && J != -1 ? p(a.$slots, `${oe}`, {
|
|
2923
2925
|
key: 0,
|
|
2924
2926
|
row: $,
|
|
2925
|
-
column:
|
|
2927
|
+
column: z,
|
|
2926
2928
|
$index: J
|
|
2927
2929
|
}, () => {
|
|
2928
2930
|
var Ze;
|
|
@@ -2930,10 +2932,10 @@ const Cl = {
|
|
|
2930
2932
|
(n(), C(ut, {
|
|
2931
2933
|
modelValue: $[oe],
|
|
2932
2934
|
"onUpdate:modelValue": (Je) => $[oe] = Je,
|
|
2933
|
-
item: L == null ? void 0 : L.table($,
|
|
2935
|
+
item: L == null ? void 0 : L.table($, z, J),
|
|
2934
2936
|
ctrlKey: oe,
|
|
2935
2937
|
key: `${oe}-${J} -${re.value}`,
|
|
2936
|
-
ctrlType: (Ze = L.table($,
|
|
2938
|
+
ctrlType: (Ze = L.table($, z, J)) != null && Ze.type ? L.table($, z, J).type : L.type,
|
|
2937
2939
|
model: e.value,
|
|
2938
2940
|
class: "g-ctrl-container",
|
|
2939
2941
|
t: "t",
|
|
@@ -2954,11 +2956,11 @@ const Cl = {
|
|
|
2954
2956
|
}, !0) : p(a.$slots, `${oe}`, {
|
|
2955
2957
|
key: 1,
|
|
2956
2958
|
row: $,
|
|
2957
|
-
column:
|
|
2959
|
+
column: z,
|
|
2958
2960
|
$index: J
|
|
2959
2961
|
}, () => [
|
|
2960
2962
|
Q("div", {
|
|
2961
|
-
innerHTML: se(L,
|
|
2963
|
+
innerHTML: se(L, z.formatter($, z, $[oe], J))
|
|
2962
2964
|
}, null, 8, xl)
|
|
2963
2965
|
], !0)
|
|
2964
2966
|
]),
|
|
@@ -2970,7 +2972,7 @@ const Cl = {
|
|
|
2970
2972
|
_: 3
|
|
2971
2973
|
}, 16, ["summary-method"]),
|
|
2972
2974
|
(at = (Pe = (Ge = e.value) == null ? void 0 : Ge.table) == null ? void 0 : Pe.page) != null && at.hidden ? ce("", !0) : p(a.$slots, "page", { key: 0 }, () => [
|
|
2973
|
-
|
|
2975
|
+
W(We, M({
|
|
2974
2976
|
"page-size": e.value.table.page.pageSize,
|
|
2975
2977
|
"onUpdate:pageSize": u[3] || (u[3] = (L) => e.value.table.page.pageSize = L),
|
|
2976
2978
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -2985,7 +2987,7 @@ const Cl = {
|
|
|
2985
2987
|
])
|
|
2986
2988
|
]),
|
|
2987
2989
|
e.value.dialog.mode == "dialog" && O.value ? (n(), S("div", Ol, [
|
|
2988
|
-
|
|
2990
|
+
W(f, M({
|
|
2989
2991
|
modelValue: O.value,
|
|
2990
2992
|
"onUpdate:modelValue": u[8] || (u[8] = (L) => O.value = L),
|
|
2991
2993
|
fullscreen: e.value.dialog.fullScreen
|
|
@@ -2993,7 +2995,7 @@ const Cl = {
|
|
|
2993
2995
|
width: A(St)(e.value.dialog.width) + 35
|
|
2994
2996
|
}), {
|
|
2995
2997
|
header: h(() => {
|
|
2996
|
-
var L, oe, $,
|
|
2998
|
+
var L, oe, $, z;
|
|
2997
2999
|
return [
|
|
2998
3000
|
Q("div", Al, [
|
|
2999
3001
|
Q("div", Bl, [
|
|
@@ -3008,23 +3010,23 @@ const Cl = {
|
|
|
3008
3010
|
}),
|
|
3009
3011
|
class: "max"
|
|
3010
3012
|
}, [
|
|
3011
|
-
|
|
3013
|
+
W(x, null, {
|
|
3012
3014
|
default: h(() => [
|
|
3013
|
-
|
|
3015
|
+
W(A(Wt))
|
|
3014
3016
|
]),
|
|
3015
3017
|
_: 1
|
|
3016
3018
|
})
|
|
3017
3019
|
])) : ce("", !0),
|
|
3018
|
-
((
|
|
3020
|
+
((z = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : z.fullScreen) === !0 ? (n(), S("div", {
|
|
3019
3021
|
key: 1,
|
|
3020
3022
|
onClick: u[6] || (u[6] = (J) => {
|
|
3021
3023
|
e.value.dialog.fullScreen = !1;
|
|
3022
3024
|
}),
|
|
3023
3025
|
class: "max"
|
|
3024
3026
|
}, [
|
|
3025
|
-
|
|
3027
|
+
W(x, null, {
|
|
3026
3028
|
default: h(() => [
|
|
3027
|
-
|
|
3029
|
+
W(A(Gt))
|
|
3028
3030
|
]),
|
|
3029
3031
|
_: 1
|
|
3030
3032
|
})
|
|
@@ -3035,7 +3037,7 @@ const Cl = {
|
|
|
3035
3037
|
default: h(() => [
|
|
3036
3038
|
Q("div", Il, [
|
|
3037
3039
|
p(a.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3038
|
-
|
|
3040
|
+
W(dt, {
|
|
3039
3041
|
modelValue: e.value,
|
|
3040
3042
|
"onUpdate:modelValue": u[7] || (u[7] = (L) => e.value = L),
|
|
3041
3043
|
onSubmit: r,
|
|
@@ -3043,8 +3045,8 @@ const Cl = {
|
|
|
3043
3045
|
}, fe({ _: 2 }, [
|
|
3044
3046
|
U(a.$slots, (L, oe, $) => ({
|
|
3045
3047
|
name: oe,
|
|
3046
|
-
fn: h((
|
|
3047
|
-
p(a.$slots, oe, { model:
|
|
3048
|
+
fn: h((z) => [
|
|
3049
|
+
p(a.$slots, oe, { model: z }, void 0, !0)
|
|
3048
3050
|
])
|
|
3049
3051
|
}))
|
|
3050
3052
|
]), 1032, ["modelValue"])
|
|
@@ -3055,7 +3057,7 @@ const Cl = {
|
|
|
3055
3057
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3056
3058
|
])) : ce("", !0),
|
|
3057
3059
|
e.value.dialog.mode == "drawer" && O.value ? (n(), S("div", Ul, [
|
|
3058
|
-
|
|
3060
|
+
W(X, M({
|
|
3059
3061
|
modelValue: O.value,
|
|
3060
3062
|
"onUpdate:modelValue": u[10] || (u[10] = (L) => O.value = L)
|
|
3061
3063
|
}, A(Me)(e.value.dialog, (L) => !["width"].includes(L))), {
|
|
@@ -3070,7 +3072,7 @@ const Cl = {
|
|
|
3070
3072
|
]),
|
|
3071
3073
|
default: h(() => [
|
|
3072
3074
|
p(a.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3073
|
-
|
|
3075
|
+
W(dt, {
|
|
3074
3076
|
modelValue: e.value,
|
|
3075
3077
|
"onUpdate:modelValue": u[9] || (u[9] = (L) => e.value = L),
|
|
3076
3078
|
onSubmit: r,
|
|
@@ -3078,8 +3080,8 @@ const Cl = {
|
|
|
3078
3080
|
}, fe({ _: 2 }, [
|
|
3079
3081
|
U(a.$slots, (L, oe, $) => ({
|
|
3080
3082
|
name: oe,
|
|
3081
|
-
fn: h((
|
|
3082
|
-
p(a.$slots, oe, { model:
|
|
3083
|
+
fn: h((z) => [
|
|
3084
|
+
p(a.$slots, oe, { model: z }, void 0, !0)
|
|
3083
3085
|
])
|
|
3084
3086
|
}))
|
|
3085
3087
|
]), 1032, ["modelValue"])
|
|
@@ -3091,7 +3093,7 @@ const Cl = {
|
|
|
3091
3093
|
], 64);
|
|
3092
3094
|
};
|
|
3093
3095
|
}
|
|
3094
|
-
}), Rl = /* @__PURE__ */ ze(Ll, [["__scopeId", "data-v-
|
|
3096
|
+
}), Rl = /* @__PURE__ */ ze(Ll, [["__scopeId", "data-v-0261f787"]]), Nl = { class: "g-tree-table" }, Pl = { class: "g-tree-container" }, Hl = { class: "g-tree-table-container" }, zl = /* @__PURE__ */ Object.assign({
|
|
3095
3097
|
name: "g-tree-table",
|
|
3096
3098
|
inheritAttrs: !1
|
|
3097
3099
|
}, {
|
|
@@ -3133,7 +3135,7 @@ const Cl = {
|
|
|
3133
3135
|
clearable: ""
|
|
3134
3136
|
}, null, 8, ["modelValue"])) : ce("", !0),
|
|
3135
3137
|
Q("div", Pl, [
|
|
3136
|
-
|
|
3138
|
+
W(ge, M({
|
|
3137
3139
|
style: { width: d.value },
|
|
3138
3140
|
"filter-node-method": k,
|
|
3139
3141
|
"expand-on-click-node": !1,
|
|
@@ -3161,7 +3163,7 @@ const Cl = {
|
|
|
3161
3163
|
])
|
|
3162
3164
|
], 4),
|
|
3163
3165
|
Q("div", Hl, [
|
|
3164
|
-
|
|
3166
|
+
W(ye, M({
|
|
3165
3167
|
modelValue: e.value,
|
|
3166
3168
|
"onUpdate:modelValue": me[1] || (me[1] = (se) => e.value = se)
|
|
3167
3169
|
}, ee.$attrs, { onLoad: R }), fe({ _: 2 }, [
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-a78297fa]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-a78297fa] .custom-upload img{width:100%;height:100%}[data-v-a78297fa] .custom-upload .el-upload--picture-card,[data-v-a78297fa] .custom-upload .el-upload-dragger,[data-v-a78297fa] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-a78297fa] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-a78297fa] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-a78297fa] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-a78297fa]:hover{background-color:#0003}.g-query-container[data-v-80ccf765]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-80ccf765]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-80ccf765]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-80ccf765],.nested-leave-active[data-v-80ccf765]{transition:all .3s ease-in-out}.nested-leave-active[data-v-80ccf765]{transition-delay:.25s}.nested-enter-from[data-v-80ccf765],.nested-leave-to[data-v-80ccf765]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-80ccf765],.nested-leave-active .inner[data-v-80ccf765]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-80ccf765]{transition-delay:.25s}.nested-enter-from .inner[data-v-80ccf765],.nested-leave-to .inner[data-v-80ccf765]{transform:translateY(-100px);opacity:.001}.query-form[data-v-80ccf765]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-51dfb7ef]:hover,.check-box-hover[data-v-c423ede0]:hover{background:var(--el-border-color)}.allcheck a[data-v-c423ede0]{cursor:pointer}.filtered[data-v-c423ede0]{pointer-events:none}.g-table-container[data-v-
|
|
1
|
+
.custom-upload[data-v-a78297fa]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-a78297fa] .custom-upload img{width:100%;height:100%}[data-v-a78297fa] .custom-upload .el-upload--picture-card,[data-v-a78297fa] .custom-upload .el-upload-dragger,[data-v-a78297fa] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-a78297fa] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-a78297fa] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-a78297fa] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-a78297fa]:hover{background-color:#0003}.g-query-container[data-v-80ccf765]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-80ccf765]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-80ccf765]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-80ccf765],.nested-leave-active[data-v-80ccf765]{transition:all .3s ease-in-out}.nested-leave-active[data-v-80ccf765]{transition-delay:.25s}.nested-enter-from[data-v-80ccf765],.nested-leave-to[data-v-80ccf765]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-80ccf765],.nested-leave-active .inner[data-v-80ccf765]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-80ccf765]{transition-delay:.25s}.nested-enter-from .inner[data-v-80ccf765],.nested-leave-to .inner[data-v-80ccf765]{transform:translateY(-100px);opacity:.001}.query-form[data-v-80ccf765]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-51dfb7ef]:hover,.check-box-hover[data-v-c423ede0]:hover{background:var(--el-border-color)}.allcheck a[data-v-c423ede0]{cursor:pointer}.filtered[data-v-c423ede0]{pointer-events:none}.g-table-container[data-v-0261f787]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-0261f787]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-0261f787]{padding:16px;box-sizing:border-box;background-color:var(--el-bg-color);border-radius:4px;border:1px solid var(--el-border-color)}.max[data-v-0261f787]{cursor:pointer;color:var(--el-text-color)}.max[data-v-0261f787]:hover{color:var(--el-color-primary)}.btns[data-v-0261f787]{display:flex}.g-tree-table[data-v-2d8b16ed]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-2d8b16ed]{display:flex;width:100%;padding:10px;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%}.g-tree-table-container[data-v-2d8b16ed]{display:flex;flex:1;overflow:auto;border-radius:4px}.g-tree-left[data-v-2d8b16ed]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box;margin-right:10px;border-radius:4px;border:1px solid var(--el-border-color);overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|