vue-2024-ui 0.1.14 → 0.1.16
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 +252 -250
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Bt, { ElForm as ct, ElButtonGroup as mt, ElButton as De, ElPopover as ht, ElMessage as Oe, ElMessageBox as Vt, ElDialog as It, ElDrawer as Yt } from "element-plus";
|
|
2
|
-
import { mergeModels as ze, useModel as Pe, ref as le, nextTick as et, onMounted as ut, computed as Ze, resolveComponent as I, openBlock as n, createElementBlock as x, Fragment as W, createElementVNode as Q, createBlock as D, createCommentVNode as pe, unref as L, mergeProps as S, withCtx as y, renderSlot as h, renderList as U, createTextVNode as Me, toDisplayString as ye, createSlots as me, createVNode as Z, normalizeProps as gt, useSlots as St, inject as kt, useAttrs as _t, onUnmounted as Ut, normalizeStyle as Be, withModifiers as ot, resolveDynamicComponent as
|
|
2
|
+
import { mergeModels as ze, useModel as Pe, ref as le, nextTick as et, onMounted as ut, computed as Ze, resolveComponent as I, openBlock as n, createElementBlock as x, Fragment as W, createElementVNode as Q, createBlock as D, createCommentVNode as pe, unref as L, mergeProps as S, withCtx as y, renderSlot as h, renderList as U, createTextVNode as Me, toDisplayString as ye, createSlots as me, createVNode as Z, normalizeProps as gt, useSlots as St, inject as kt, useAttrs as _t, onUnmounted as Ut, normalizeStyle as Be, withModifiers as ot, resolveDynamicComponent as Ye, guardReactiveProps as Rt, Transition as Lt, withDirectives as jt, vShow as Ht, h as Ae, onBeforeUnmount as Nt, normalizeClass as Ft, watchEffect as zt, watch as Pt, createApp as Wt } from "vue";
|
|
3
3
|
import { Plus as Xt, ZoomOut as Gt, Delete as Qt, FullScreen as Zt, CopyDocument as Jt } from "@element-plus/icons-vue";
|
|
4
4
|
import Tt from "sortablejs";
|
|
5
5
|
import { Dexie as Kt } from "dexie";
|
|
@@ -331,17 +331,17 @@ var xt = { exports: {} };
|
|
|
331
331
|
}, a.format = function(v) {
|
|
332
332
|
var g = this, s = this.$locale();
|
|
333
333
|
if (!this.isValid()) return s.invalidDate || ie;
|
|
334
|
-
var M = v || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), R = this.$H, G = this.$m, q = this.$M, A = s.weekdays, ue = s.months, _e = s.meridiem, ke = function(we, Te,
|
|
335
|
-
return we && (we[Te] || we(g, M)) ||
|
|
334
|
+
var M = v || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), R = this.$H, G = this.$m, q = this.$M, A = s.weekdays, ue = s.months, _e = s.meridiem, ke = function(we, Te, Ue, Re) {
|
|
335
|
+
return we && (we[Te] || we(g, M)) || Ue[Te].slice(0, Re);
|
|
336
336
|
}, Se = function(we) {
|
|
337
337
|
return b.s(R % 12 || 12, we, "0");
|
|
338
|
-
}, Fe = _e || function(we, Te,
|
|
339
|
-
var
|
|
340
|
-
return
|
|
338
|
+
}, Fe = _e || function(we, Te, Ue) {
|
|
339
|
+
var Re = we < 12 ? "AM" : "PM";
|
|
340
|
+
return Ue ? Re.toLowerCase() : Re;
|
|
341
341
|
};
|
|
342
342
|
return M.replace(J, function(we, Te) {
|
|
343
|
-
return Te || function(
|
|
344
|
-
switch (
|
|
343
|
+
return Te || function(Ue) {
|
|
344
|
+
switch (Ue) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(g.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
@@ -597,8 +597,8 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
597
597
|
return t.value["file-list"] && t.value["file-list"].length ? (b = t.value["file-list"]) == null ? void 0 : b.map((r) => r == null ? void 0 : r.url) : [f.value];
|
|
598
598
|
});
|
|
599
599
|
return (b, r) => {
|
|
600
|
-
var N,
|
|
601
|
-
const _ = I("el-image-viewer"), p = I("el-radio"), a = I("el-radio-group"), v = I("el-radio-button"), g = I("el-checkbox"), s = I("el-checkbox-group"), M = I("el-checkbox-button"), C = I("g-select-option"), R = I("el-option"), G = I("el-select"), q = I("el-tree-select"), A = I("el-time-picker"), ue = I("el-time-select"), _e = I("el-date-picker"), ke = I("el-color-picker"), Se = I("el-rate"), Fe = I("el-slider"), we = I("el-switch"), Te = I("el-transfer"),
|
|
600
|
+
var N, z, te, Ee, Ce, Le;
|
|
601
|
+
const _ = I("el-image-viewer"), p = I("el-radio"), a = I("el-radio-group"), v = I("el-radio-button"), g = I("el-checkbox"), s = I("el-checkbox-group"), M = I("el-checkbox-button"), C = I("g-select-option"), R = I("el-option"), G = I("el-select"), q = I("el-tree-select"), A = I("el-time-picker"), ue = I("el-time-select"), _e = I("el-date-picker"), ke = I("el-color-picker"), Se = I("el-rate"), Fe = I("el-slider"), we = I("el-switch"), Te = I("el-transfer"), Ue = I("el-cascader"), Re = I("el-icon"), nt = I("el-image"), tt = I("el-tooltip"), st = I("el-upload"), it = I("el-autocomplete"), dt = I("el-input-number"), lt = I("el-input"), l = I("el-link"), u = I("el-text"), m = I("el-avatar"), V = I("el-tag");
|
|
602
602
|
return n(), x(W, null, [
|
|
603
603
|
Q("div", null, [
|
|
604
604
|
k.value ? (n(), D(_, {
|
|
@@ -720,7 +720,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
720
720
|
data: c,
|
|
721
721
|
t: o.t
|
|
722
722
|
}, me({ _: 2 }, [
|
|
723
|
-
U(b.$slots, (
|
|
723
|
+
U(b.$slots, (Ie, Ke) => ({
|
|
724
724
|
name: Ke,
|
|
725
725
|
fn: y((Qe) => [
|
|
726
726
|
h(b.$slots, Ke, {
|
|
@@ -752,10 +752,10 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
752
752
|
key: 0,
|
|
753
753
|
option: X
|
|
754
754
|
}, () => {
|
|
755
|
-
var
|
|
755
|
+
var Ie;
|
|
756
756
|
return [
|
|
757
757
|
Z(C, {
|
|
758
|
-
columns: (
|
|
758
|
+
columns: (Ie = t.value) == null ? void 0 : Ie.columns,
|
|
759
759
|
data: X,
|
|
760
760
|
t: o.t
|
|
761
761
|
}, me({ _: 2 }, [
|
|
@@ -792,8 +792,8 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
792
792
|
}, me({ _: 2 }, [
|
|
793
793
|
U(b.$slots, (X, ce) => ({
|
|
794
794
|
name: ce,
|
|
795
|
-
fn: y((
|
|
796
|
-
h(b.$slots, ce, { data:
|
|
795
|
+
fn: y((Ie) => [
|
|
796
|
+
h(b.$slots, ce, { data: Ie }, void 0, !0)
|
|
797
797
|
])
|
|
798
798
|
}))
|
|
799
799
|
]), 1032, ["columns", "t"])
|
|
@@ -882,7 +882,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
882
882
|
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
883
883
|
])
|
|
884
884
|
}))
|
|
885
|
-
]), 1040, ["modelValue"])) : i.value == L(he).CASCADER ? (n(), D(
|
|
885
|
+
]), 1040, ["modelValue"])) : i.value == L(he).CASCADER ? (n(), D(Ue, S({
|
|
886
886
|
key: 15,
|
|
887
887
|
modelValue: f.value,
|
|
888
888
|
"onUpdate:modelValue": r[17] || (r[17] = (c) => f.value = c)
|
|
@@ -919,8 +919,8 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
919
919
|
}, { fit: "cover", lazy: !0, ...(c = t.value) == null ? void 0 : c.img }), me({ _: 2 }, [
|
|
920
920
|
U(H(), (X, ce) => ({
|
|
921
921
|
name: X,
|
|
922
|
-
fn: y((
|
|
923
|
-
h(b.$slots, `${o.t}-${e.value}-${X}`, { data:
|
|
922
|
+
fn: y((Ie) => [
|
|
923
|
+
h(b.$slots, `${o.t}-${e.value}-${X}`, { data: Ie }, void 0, !0)
|
|
924
924
|
])
|
|
925
925
|
}))
|
|
926
926
|
]), 1040, ["src"])
|
|
@@ -960,7 +960,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
960
960
|
_: 1
|
|
961
961
|
})) : pe("", !0)
|
|
962
962
|
], 32)
|
|
963
|
-
])) : (n(), D(
|
|
963
|
+
])) : (n(), D(Re, { key: 0 }, {
|
|
964
964
|
default: y(() => [
|
|
965
965
|
Z(L(Xt))
|
|
966
966
|
]),
|
|
@@ -1009,7 +1009,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1009
1009
|
"onUpdate:modelValue": r[24] || (r[24] = (c) => f.value = c),
|
|
1010
1010
|
placeholder: E.value[e.value].label,
|
|
1011
1011
|
type: L(he).NUMBER,
|
|
1012
|
-
maxlength: ((
|
|
1012
|
+
maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
|
|
1013
1013
|
}, { ...t.value, type: i.value }), me({
|
|
1014
1014
|
suffix: y(() => [
|
|
1015
1015
|
Q("div", {
|
|
@@ -1072,7 +1072,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1072
1072
|
modelValue: f.value,
|
|
1073
1073
|
"onUpdate:modelValue": r[25] || (r[25] = (c) => f.value = c),
|
|
1074
1074
|
placeholder: E.value[e.value].label,
|
|
1075
|
-
maxlength: ((
|
|
1075
|
+
maxlength: ((Le = t.value) == null ? void 0 : Le.max) || 25,
|
|
1076
1076
|
clearable: !0,
|
|
1077
1077
|
onClear: r[26] || (r[26] = () => {
|
|
1078
1078
|
o.t == "q" && E.value.table.load();
|
|
@@ -1732,7 +1732,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1732
1732
|
default: y(() => {
|
|
1733
1733
|
var s, M;
|
|
1734
1734
|
return [
|
|
1735
|
-
(n(), D(
|
|
1735
|
+
(n(), D(Ye(w({ slots: O.$slots }, void 0)))),
|
|
1736
1736
|
((M = (s = o.value.query) == null ? void 0 : s.container) == null ? void 0 : M.inline) === !0 ? (n(), D(ie, { key: 0 }, {
|
|
1737
1737
|
default: y(() => {
|
|
1738
1738
|
var C, R, G, q, A;
|
|
@@ -1743,7 +1743,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1743
1743
|
o.value.query.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1744
1744
|
default: y(() => [
|
|
1745
1745
|
(n(!0), x(W, null, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1746
|
-
(n(), D(
|
|
1746
|
+
(n(), D(Ye(ue)))
|
|
1747
1747
|
], !0)), 256)),
|
|
1748
1748
|
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1749
1749
|
]),
|
|
@@ -1752,12 +1752,12 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1752
1752
|
(A = (q = (G = o.value) == null ? void 0 : G.query) == null ? void 0 : q.btns) != null && A.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1753
1753
|
default: y(() => [
|
|
1754
1754
|
(n(!0), x(W, null, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1755
|
-
(n(), D(
|
|
1755
|
+
(n(), D(Ye(ue)))
|
|
1756
1756
|
], !0)), 256))
|
|
1757
1757
|
]),
|
|
1758
1758
|
_: 3
|
|
1759
1759
|
})) : (n(!0), x(W, { key: 1 }, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1760
|
-
(n(), D(
|
|
1760
|
+
(n(), D(Ye(ue)))
|
|
1761
1761
|
], !0)), 256)),
|
|
1762
1762
|
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1763
1763
|
], 64))
|
|
@@ -1777,7 +1777,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1777
1777
|
o.value.query.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1778
1778
|
default: y(() => [
|
|
1779
1779
|
(n(!0), x(W, null, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1780
|
-
(n(), D(
|
|
1780
|
+
(n(), D(Ye(s)))
|
|
1781
1781
|
], !0)), 256)),
|
|
1782
1782
|
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1783
1783
|
]),
|
|
@@ -1786,12 +1786,12 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1786
1786
|
($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1787
1787
|
default: y(() => [
|
|
1788
1788
|
(n(!0), x(W, null, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1789
|
-
(n(), D(
|
|
1789
|
+
(n(), D(Ye(s)))
|
|
1790
1790
|
], !0)), 256))
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 3
|
|
1793
1793
|
})) : (n(!0), x(W, { key: 1 }, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1794
|
-
(n(), D(
|
|
1794
|
+
(n(), D(Ye(s)))
|
|
1795
1795
|
], !0)), 256)),
|
|
1796
1796
|
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1797
1797
|
], 64))
|
|
@@ -1871,7 +1871,7 @@ const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
|
1871
1871
|
}, ["prevent"]))
|
|
1872
1872
|
}, L(Ve)(o.value.query, (R) => !["query", "more", "reset"].includes(R))), {
|
|
1873
1873
|
default: y(() => [
|
|
1874
|
-
(n(), D(
|
|
1874
|
+
(n(), D(Ye(w({ slots: O.$slots }, !0))))
|
|
1875
1875
|
]),
|
|
1876
1876
|
_: 1
|
|
1877
1877
|
}, 16)), [
|
|
@@ -2169,13 +2169,13 @@ const xl = {
|
|
|
2169
2169
|
]);
|
|
2170
2170
|
};
|
|
2171
2171
|
}
|
|
2172
|
-
}, Bl = /* @__PURE__ */ Je(Al, [["__scopeId", "data-v-51f730d2"]]), Il = {
|
|
2173
|
-
key: 0,
|
|
2174
|
-
class: "table-query-container"
|
|
2175
|
-
}, Ul = { class: "table-container" }, Rl = ["innerHTML"], Ll = { key: 0 }, jl = { style: { display: "flex", "margin-top": "-2px" } }, Hl = { style: { display: "flex", flex: "1" } }, Nl = {
|
|
2172
|
+
}, Bl = /* @__PURE__ */ Je(Al, [["__scopeId", "data-v-51f730d2"]]), Il = { key: 0 }, Yl = { style: { display: "flex", "margin-top": "-2px" } }, Ul = { style: { display: "flex", flex: "1" } }, Rl = {
|
|
2176
2173
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2177
2174
|
id: "table-form"
|
|
2178
|
-
},
|
|
2175
|
+
}, Ll = { key: 1 }, jl = { style: { display: "flex" } }, Hl = { style: { display: "flex", flex: "1" } }, Nl = { class: "g-table-container" }, zl = {
|
|
2176
|
+
key: 0,
|
|
2177
|
+
class: "table-query-container"
|
|
2178
|
+
}, Pl = { class: "table-container" }, Wl = ["innerHTML"], Xl = /* @__PURE__ */ Object.assign({
|
|
2179
2179
|
name: "g-table",
|
|
2180
2180
|
inheritAttrs: !1
|
|
2181
2181
|
}, {
|
|
@@ -2189,7 +2189,7 @@ const xl = {
|
|
|
2189
2189
|
}),
|
|
2190
2190
|
emits: /* @__PURE__ */ ze(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2191
2191
|
setup(d, { expose: f, emit: o }) {
|
|
2192
|
-
var
|
|
2192
|
+
var Re, nt, tt, st, it, dt, lt;
|
|
2193
2193
|
const t = o, e = Pe(d, "modelValue"), i = kt("options"), E = le({}), F = le(null), T = le(null), k = Object.entries(e.value).filter(([l, u]) => (u == null ? void 0 : u.search) !== void 0).map(([l, u]) => [l, u.value]);
|
|
2194
2194
|
E.value = Object.fromEntries(k);
|
|
2195
2195
|
const w = le(!1), H = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], ee = le([]), O = d, Y = _t(), ie = le({}), re = le([]), J = le(null), ve = le(""), ge = le({
|
|
@@ -2203,7 +2203,7 @@ const xl = {
|
|
|
2203
2203
|
load: () => {
|
|
2204
2204
|
let { currentPage: l, pageSize: u } = e.value.table.page;
|
|
2205
2205
|
try {
|
|
2206
|
-
t("load", { currentPage: l, pageSize: u, ...E.value }, (m, V, { fields: N = [], sums:
|
|
2206
|
+
t("load", { currentPage: l, pageSize: u, ...E.value }, (m, V, { fields: N = [], sums: z = {} } = {}) => {
|
|
2207
2207
|
var te, Ee;
|
|
2208
2208
|
if (!Array.isArray(m)) {
|
|
2209
2209
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Oe.error("数据加载失败,请检查数据格式。");
|
|
@@ -2213,7 +2213,7 @@ const xl = {
|
|
|
2213
2213
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Oe.error("数据加载失败,请检查数据格式。");
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
|
-
e.value.table.data = m, ((Ee = (te = e.value.control) == null ? void 0 : te.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(J.value), e.value.table.page.total = V, re.value = N, ie.value =
|
|
2216
|
+
e.value.table.data = m, ((Ee = (te = e.value.control) == null ? void 0 : te.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(J.value), e.value.table.page.total = V, re.value = N, ie.value = z, Fe(), ve.value = Math.random().toString(36).substring(2);
|
|
2217
2217
|
}, J.value);
|
|
2218
2218
|
} catch (m) {
|
|
2219
2219
|
console.error("触发 load 事件时出现错误:", m), Oe.error("数据加载时出现错误,请稍后重试。");
|
|
@@ -2265,7 +2265,7 @@ const xl = {
|
|
|
2265
2265
|
align: "center",
|
|
2266
2266
|
"min-width": 100,
|
|
2267
2267
|
fixed: "right",
|
|
2268
|
-
style: { ...(nt = (
|
|
2268
|
+
style: { ...(nt = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : nt.style },
|
|
2269
2269
|
validate: async (l) => await !0,
|
|
2270
2270
|
add: {
|
|
2271
2271
|
label: "新增",
|
|
@@ -2288,8 +2288,8 @@ const xl = {
|
|
|
2288
2288
|
type: "primary",
|
|
2289
2289
|
mode: "dialog",
|
|
2290
2290
|
auth: (l, u, m) => {
|
|
2291
|
-
var V, N,
|
|
2292
|
-
return ((
|
|
2291
|
+
var V, N, z;
|
|
2292
|
+
return ((z = (N = (V = e.value) == null ? void 0 : V.control) == null ? void 0 : N.add) == null ? void 0 : z.inline) === !1;
|
|
2293
2293
|
}
|
|
2294
2294
|
},
|
|
2295
2295
|
delete: {
|
|
@@ -2297,8 +2297,8 @@ const xl = {
|
|
|
2297
2297
|
label: "删除",
|
|
2298
2298
|
type: "danger",
|
|
2299
2299
|
auth: (l, u, m) => {
|
|
2300
|
-
var V, N,
|
|
2301
|
-
return !(((
|
|
2300
|
+
var V, N, z;
|
|
2301
|
+
return !(((z = (N = (V = e.value) == null ? void 0 : V.control) == null ? void 0 : N.add) == null ? void 0 : z.inline) === !0 && m === 0);
|
|
2302
2302
|
},
|
|
2303
2303
|
dialog: {
|
|
2304
2304
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2340,8 +2340,8 @@ const xl = {
|
|
|
2340
2340
|
size: "small",
|
|
2341
2341
|
auth: () => !(V.control.add.inline === !0 && m == 0),
|
|
2342
2342
|
onClick: () => {
|
|
2343
|
-
var
|
|
2344
|
-
let N = (
|
|
2343
|
+
var z;
|
|
2344
|
+
let N = (z = de(l, u, m, V)) == null ? void 0 : z.operate;
|
|
2345
2345
|
N === "edit" ? p(l, u, m, V) : N === "delete" ? a(l, u, m, V) : N === "view" && v(l, u, m, V);
|
|
2346
2346
|
},
|
|
2347
2347
|
"button-props": { round: !0, plain: !0 }
|
|
@@ -2353,11 +2353,11 @@ const xl = {
|
|
|
2353
2353
|
(tt = e.value) == null ? void 0 : tt.control
|
|
2354
2354
|
);
|
|
2355
2355
|
const de = (l, u, m, V) => {
|
|
2356
|
-
var Ee, Ce,
|
|
2356
|
+
var Ee, Ce, Le, c, X, ce;
|
|
2357
2357
|
if (!l || !u || m == null)
|
|
2358
2358
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2359
|
-
const N = ((Ee = be.dropdown) == null ? void 0 : Ee.call(be, l, u, m, V)) || {},
|
|
2360
|
-
return xe(N,
|
|
2359
|
+
const N = ((Ee = be.dropdown) == null ? void 0 : Ee.call(be, l, u, m, V)) || {}, z = ((Le = (Ce = i == null ? void 0 : i.control) == null ? void 0 : Ce.dropdown) == null ? void 0 : Le.call(Ce, l, u, m, V)) || {}, te = ((ce = (X = (c = e.value) == null ? void 0 : c.control) == null ? void 0 : X.dropdown) == null ? void 0 : ce.call(X, l, u, m, V)) || {};
|
|
2360
|
+
return xe(N, z, te) || {};
|
|
2361
2361
|
}, fe = {
|
|
2362
2362
|
type: "hidden",
|
|
2363
2363
|
"min-width": 100,
|
|
@@ -2398,6 +2398,7 @@ const xl = {
|
|
|
2398
2398
|
type: "hidden",
|
|
2399
2399
|
width: 700,
|
|
2400
2400
|
size: 700,
|
|
2401
|
+
"align-center": !0,
|
|
2401
2402
|
fullScreen: !1,
|
|
2402
2403
|
"close-on-click-modal": !1,
|
|
2403
2404
|
draggable: !0,
|
|
@@ -2445,7 +2446,7 @@ const xl = {
|
|
|
2445
2446
|
e.value[V] && (e.value[V].value = J.value[V]);
|
|
2446
2447
|
}), w.value = !0, t("open", "add", { m: l }), pt());
|
|
2447
2448
|
}, p = async (l, u, m, V) => {
|
|
2448
|
-
var N,
|
|
2449
|
+
var N, z;
|
|
2449
2450
|
e.value.form.modalState = "edit";
|
|
2450
2451
|
try {
|
|
2451
2452
|
if (!await ((N = e.value.control) == null ? void 0 : N.validate("edit", { row: l, column: u, $index: m, m: V }))) return;
|
|
@@ -2453,30 +2454,30 @@ const xl = {
|
|
|
2453
2454
|
console.error("验证失败:", te);
|
|
2454
2455
|
return;
|
|
2455
2456
|
}
|
|
2456
|
-
(
|
|
2457
|
+
(z = e.value.control.edit) != null && z.click ? e.value.control.edit.click(l, u, m, V) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((te) => {
|
|
2457
2458
|
e.value[te] && (e.value[te].value = l[te]);
|
|
2458
2459
|
}), w.value = !0, t("open", "edit", { m: V, row: l, column: u, $index: m }), pt());
|
|
2459
2460
|
}, a = async (l, u, m, V) => {
|
|
2460
|
-
var N,
|
|
2461
|
+
var N, z;
|
|
2461
2462
|
try {
|
|
2462
2463
|
if (!await ((N = e.value.control) == null ? void 0 : N.validate("delete", { row: l, column: u, $index: m, m: V }))) return;
|
|
2463
2464
|
} catch (te) {
|
|
2464
2465
|
console.error("验证失败:", te);
|
|
2465
2466
|
return;
|
|
2466
2467
|
}
|
|
2467
|
-
if ((
|
|
2468
|
+
if ((z = e.value.control.delete) != null && z.click)
|
|
2468
2469
|
e.value.control.delete.click(l, u, m, V);
|
|
2469
2470
|
else {
|
|
2470
2471
|
let { message: te, title: Ee, options: Ce } = e.value.control.delete.dialog;
|
|
2471
2472
|
Vt.confirm(te, Ee, Ce).then(() => {
|
|
2472
|
-
t("delete", { row: l, column: u, $index: m }, (
|
|
2473
|
-
|
|
2473
|
+
t("delete", { row: l, column: u, $index: m }, (Le = !0, c = !1) => {
|
|
2474
|
+
Le && (e.value.table.data.splice(m, 1), e.value.table.page.total--), c && e.value.table.load();
|
|
2474
2475
|
});
|
|
2475
2476
|
}).catch(() => {
|
|
2476
2477
|
});
|
|
2477
2478
|
}
|
|
2478
2479
|
}, v = async (l, u, m, V) => {
|
|
2479
|
-
var N,
|
|
2480
|
+
var N, z;
|
|
2480
2481
|
e.value.form.modalState = void 0;
|
|
2481
2482
|
try {
|
|
2482
2483
|
if (!await ((N = e.value.control) == null ? void 0 : N.validate("view", { row: l, column: u, $index: m, m: V }))) return;
|
|
@@ -2484,13 +2485,13 @@ const xl = {
|
|
|
2484
2485
|
console.error("验证失败:", te);
|
|
2485
2486
|
return;
|
|
2486
2487
|
}
|
|
2487
|
-
(
|
|
2488
|
+
(z = e.value.control.view) != null && z.click ? e.value.control.view.click(l, u, m, V) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((te) => {
|
|
2488
2489
|
e.value[te] && (e.value[te].value = l[te]);
|
|
2489
2490
|
}), w.value = !0, t("open", "view", { m: V, row: l, column: u, $index: m }), pt());
|
|
2490
2491
|
}, g = (l, u, m, V) => {
|
|
2491
2492
|
var N;
|
|
2492
|
-
(N = e.value.control.save) != null && N.click ? e.value.control.save.click(l, u, m, V) : t("row-save", { row: l, column: u, $index: m, data: e.value.table.data }, (
|
|
2493
|
-
|
|
2493
|
+
(N = e.value.control.save) != null && N.click ? e.value.control.save.click(l, u, m, V) : t("row-save", { row: l, column: u, $index: m, data: e.value.table.data }, (z = !0, te = !0) => {
|
|
2494
|
+
z && e.value.table.load(), te && et(() => {
|
|
2494
2495
|
J.value = Object.assign({}, Object.fromEntries(Object.entries(Ve(e.value, (Ee, Ce) => Ce.type != "control" && Ce.editor !== !1 && Ce.type != "hidden")).map(([Ee, Ce]) => [Ee, Ce.value])));
|
|
2495
2496
|
});
|
|
2496
2497
|
});
|
|
@@ -2513,8 +2514,8 @@ const xl = {
|
|
|
2513
2514
|
default: () => Ae(Ml, {
|
|
2514
2515
|
items: u,
|
|
2515
2516
|
commitText: l.control.download.excelLabel,
|
|
2516
|
-
onExcel: (N,
|
|
2517
|
-
t("download", N,
|
|
2517
|
+
onExcel: (N, z) => {
|
|
2518
|
+
t("download", N, z), V();
|
|
2518
2519
|
}
|
|
2519
2520
|
})
|
|
2520
2521
|
}
|
|
@@ -2542,14 +2543,14 @@ const xl = {
|
|
|
2542
2543
|
{ type: "delete", func: a },
|
|
2543
2544
|
{ type: "save", func: g }
|
|
2544
2545
|
], A = (l) => q.filter((u) => l.includes(u.type)).map(({ type: u, func: m }) => {
|
|
2545
|
-
var V, N,
|
|
2546
|
+
var V, N, z;
|
|
2546
2547
|
return {
|
|
2547
2548
|
name: `control-${u}`,
|
|
2548
2549
|
attr: G == null ? void 0 : G[u],
|
|
2549
2550
|
func: m,
|
|
2550
2551
|
label: (V = G == null ? void 0 : G[u]) == null ? void 0 : V.label,
|
|
2551
2552
|
sort: ((N = G == null ? void 0 : G[u]) == null ? void 0 : N.sort) || 0,
|
|
2552
|
-
groupName: ((
|
|
2553
|
+
groupName: ((z = G == null ? void 0 : G[u]) == null ? void 0 : z.groupName) || "default"
|
|
2553
2554
|
};
|
|
2554
2555
|
}).sort((u, m) => u.sort - m.sort), ue = (l) => A(l).reduce((u, m) => {
|
|
2555
2556
|
const V = m.groupName || "default";
|
|
@@ -2558,10 +2559,10 @@ const xl = {
|
|
|
2558
2559
|
Object.entries(e.value).filter(([l, u]) => u.type !== "hidden").filter(([l, u]) => u.visible !== !1).filter(([l, u]) => u.showCol !== !1).map(([l, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [l, u])).sort((l, u) => l[1].sort - u[1].sort)
|
|
2559
2560
|
)), ke = le({}), Se = (l, u) => {
|
|
2560
2561
|
const m = (V, N) => {
|
|
2561
|
-
for (const
|
|
2562
|
-
if (
|
|
2563
|
-
if (
|
|
2564
|
-
const te = m(
|
|
2562
|
+
for (const z of V) {
|
|
2563
|
+
if (z.value == N) return z.label;
|
|
2564
|
+
if (z.children) {
|
|
2565
|
+
const te = m(z.children, N);
|
|
2565
2566
|
if (te) return te;
|
|
2566
2567
|
}
|
|
2567
2568
|
}
|
|
@@ -2569,8 +2570,8 @@ const xl = {
|
|
|
2569
2570
|
};
|
|
2570
2571
|
if (l.getDicts) {
|
|
2571
2572
|
const V = u.toString();
|
|
2572
|
-
return ke.value[V] ? (l.options = ke.value[V], l.formatter || (l.formatter = (N,
|
|
2573
|
-
ke.value[V] = N, l.options = N, l.formatter || (l.formatter = (
|
|
2573
|
+
return ke.value[V] ? (l.options = ke.value[V], l.formatter || (l.formatter = (N, z, te, Ee) => l.options && m(l.options, te) || te), Promise.resolve()) : l.getDicts(e.value.table.data).then((N) => {
|
|
2574
|
+
ke.value[V] = N, l.options = N, l.formatter || (l.formatter = (z, te, Ee, Ce) => l.options && m(l.options, Ee) || Ee);
|
|
2574
2575
|
});
|
|
2575
2576
|
}
|
|
2576
2577
|
return Promise.resolve();
|
|
@@ -2582,8 +2583,8 @@ const xl = {
|
|
|
2582
2583
|
e.value.table.data.forEach((V) => {
|
|
2583
2584
|
var N;
|
|
2584
2585
|
if (e.value[u].getDicts && ((N = e.value[u]) == null ? void 0 : N.forceString) !== !1) {
|
|
2585
|
-
const
|
|
2586
|
-
V[u] =
|
|
2586
|
+
const z = V[u];
|
|
2587
|
+
V[u] = z != null ? z.toString() : z;
|
|
2587
2588
|
}
|
|
2588
2589
|
});
|
|
2589
2590
|
}).catch((V) => {
|
|
@@ -2595,9 +2596,9 @@ const xl = {
|
|
|
2595
2596
|
console.error("字典加载过程中发生错误:", u);
|
|
2596
2597
|
});
|
|
2597
2598
|
}, we = (l, u, m, V) => {
|
|
2598
|
-
var N,
|
|
2599
|
-
return l.table ? (N = l.table(u, m, V)) != null && N.auth ? (
|
|
2600
|
-
}, Te = (l, u) => l.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label,
|
|
2599
|
+
var N, z;
|
|
2600
|
+
return l.table ? (N = l.table(u, m, V)) != null && N.auth ? (z = l.table(u, m, V)) == null ? void 0 : z.auth(u, m, V) : !0 : !1;
|
|
2601
|
+
}, Te = (l, u) => l.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Ue = () => {
|
|
2601
2602
|
if (e.value.dialog.mode == "drawer")
|
|
2602
2603
|
T.value.handleClose();
|
|
2603
2604
|
else if (e.value.dialog.mode == "dialog")
|
|
@@ -2652,19 +2653,136 @@ const xl = {
|
|
|
2652
2653
|
deleteRow: a,
|
|
2653
2654
|
readForm: v,
|
|
2654
2655
|
saveRowData: g,
|
|
2655
|
-
closeDialog:
|
|
2656
|
+
closeDialog: Ue
|
|
2656
2657
|
}), (l, u) => {
|
|
2657
|
-
var ce,
|
|
2658
|
-
const m = I("el-
|
|
2658
|
+
var ce, Ie, Ke, Qe, ft;
|
|
2659
|
+
const m = I("el-icon"), V = I("el-dialog"), N = I("el-drawer"), z = I("el-button-group"), te = I("el-dropdown-item"), Ee = I("el-dropdown-menu"), Ce = I("el-dropdown"), Le = I("el-table-column"), c = I("el-table"), X = I("el-pagination");
|
|
2659
2660
|
return n(), x(W, null, [
|
|
2660
|
-
|
|
2661
|
-
(
|
|
2661
|
+
e.value.dialog.mode == "dialog" && w.value ? (n(), x("div", Il, [
|
|
2662
|
+
Z(V, S({
|
|
2663
|
+
ref_key: "dialogRef",
|
|
2664
|
+
ref: F,
|
|
2665
|
+
id: "dialogRef",
|
|
2666
|
+
modelValue: w.value,
|
|
2667
|
+
"onUpdate:modelValue": u[3] || (u[3] = (j) => w.value = j),
|
|
2668
|
+
fullscreen: e.value.dialog.fullScreen
|
|
2669
|
+
}, L(Ve)(e.value.dialog, (j) => !["size", "max", "min"].includes(j)), {
|
|
2670
|
+
width: L(Ot)(e.value.dialog.width) + 35
|
|
2671
|
+
}), {
|
|
2672
|
+
header: y(() => {
|
|
2673
|
+
var j, oe, $, P, K, We, Xe, je, He, at;
|
|
2674
|
+
return [
|
|
2675
|
+
Q("div", Yl, [
|
|
2676
|
+
Q("div", Ul, [
|
|
2677
|
+
h(l.$slots, "f-header", {}, () => [
|
|
2678
|
+
Q("div", null, ye(e.value.dialog.title), 1)
|
|
2679
|
+
], !0)
|
|
2680
|
+
]),
|
|
2681
|
+
((oe = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), x("div", {
|
|
2682
|
+
key: 0,
|
|
2683
|
+
style: Be((K = (P = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : P.max) == null ? void 0 : K.style),
|
|
2684
|
+
onClick: u[0] || (u[0] = (B) => {
|
|
2685
|
+
e.value.dialog.fullScreen = !0;
|
|
2686
|
+
}),
|
|
2687
|
+
class: "max"
|
|
2688
|
+
}, [
|
|
2689
|
+
Z(m, null, {
|
|
2690
|
+
default: y(() => {
|
|
2691
|
+
var B, qe, Ge;
|
|
2692
|
+
return [
|
|
2693
|
+
(n(), D(Ye((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.max) == null ? void 0 : Ge.icon)))
|
|
2694
|
+
];
|
|
2695
|
+
}),
|
|
2696
|
+
_: 1
|
|
2697
|
+
})
|
|
2698
|
+
], 4)) : pe("", !0),
|
|
2699
|
+
((Xe = (We = e.value) == null ? void 0 : We.dialog) == null ? void 0 : Xe.fullScreen) === !0 ? (n(), x("div", {
|
|
2700
|
+
key: 1,
|
|
2701
|
+
style: Be((at = (He = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : He.min) == null ? void 0 : at.style),
|
|
2702
|
+
onClick: u[1] || (u[1] = (B) => {
|
|
2703
|
+
e.value.dialog.fullScreen = !1;
|
|
2704
|
+
}),
|
|
2705
|
+
class: "max"
|
|
2706
|
+
}, [
|
|
2707
|
+
Z(m, null, {
|
|
2708
|
+
default: y(() => {
|
|
2709
|
+
var B, qe, Ge;
|
|
2710
|
+
return [
|
|
2711
|
+
(n(), D(Ye((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.min) == null ? void 0 : Ge.icon)))
|
|
2712
|
+
];
|
|
2713
|
+
}),
|
|
2714
|
+
_: 1
|
|
2715
|
+
})
|
|
2716
|
+
], 4)) : pe("", !0)
|
|
2717
|
+
])
|
|
2718
|
+
];
|
|
2719
|
+
}),
|
|
2720
|
+
default: y(() => [
|
|
2721
|
+
Q("div", Rl, [
|
|
2722
|
+
h(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2723
|
+
Z(bt, {
|
|
2724
|
+
modelValue: e.value,
|
|
2725
|
+
"onUpdate:modelValue": u[2] || (u[2] = (j) => e.value = j),
|
|
2726
|
+
onSubmit: s,
|
|
2727
|
+
onReset: M
|
|
2728
|
+
}, me({ _: 2 }, [
|
|
2729
|
+
U(l.$slots, (j, oe, $) => ({
|
|
2730
|
+
name: oe,
|
|
2731
|
+
fn: y((P) => [
|
|
2732
|
+
h(l.$slots, oe, { model: P }, void 0, !0)
|
|
2733
|
+
])
|
|
2734
|
+
}))
|
|
2735
|
+
]), 1032, ["modelValue"])
|
|
2736
|
+
], !0)
|
|
2737
|
+
])
|
|
2738
|
+
]),
|
|
2739
|
+
_: 3
|
|
2740
|
+
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2741
|
+
])) : pe("", !0),
|
|
2742
|
+
e.value.dialog.mode == "drawer" && w.value ? (n(), x("div", Ll, [
|
|
2743
|
+
Z(N, S({
|
|
2744
|
+
ref_key: "drawerRef",
|
|
2745
|
+
ref: T,
|
|
2746
|
+
modelValue: w.value,
|
|
2747
|
+
"onUpdate:modelValue": u[5] || (u[5] = (j) => w.value = j)
|
|
2748
|
+
}, L(Ve)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
2749
|
+
header: y(() => [
|
|
2750
|
+
Q("div", jl, [
|
|
2751
|
+
Q("div", Hl, [
|
|
2752
|
+
h(l.$slots, "f-header", {}, () => [
|
|
2753
|
+
Q("div", null, ye(e.value.dialog.title), 1)
|
|
2754
|
+
], !0)
|
|
2755
|
+
])
|
|
2756
|
+
])
|
|
2757
|
+
]),
|
|
2758
|
+
default: y(() => [
|
|
2759
|
+
h(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2760
|
+
Z(bt, {
|
|
2761
|
+
modelValue: e.value,
|
|
2762
|
+
"onUpdate:modelValue": u[4] || (u[4] = (j) => e.value = j),
|
|
2763
|
+
onSubmit: s,
|
|
2764
|
+
onReset: M
|
|
2765
|
+
}, me({ _: 2 }, [
|
|
2766
|
+
U(l.$slots, (j, oe, $) => ({
|
|
2767
|
+
name: oe,
|
|
2768
|
+
fn: y((P) => [
|
|
2769
|
+
h(l.$slots, oe, { model: P }, void 0, !0)
|
|
2770
|
+
])
|
|
2771
|
+
}))
|
|
2772
|
+
]), 1032, ["modelValue"])
|
|
2773
|
+
], !0)
|
|
2774
|
+
]),
|
|
2775
|
+
_: 3
|
|
2776
|
+
}, 16, ["modelValue"])
|
|
2777
|
+
])) : pe("", !0),
|
|
2778
|
+
Q("div", Nl, [
|
|
2779
|
+
((Ie = (ce = e.value) == null ? void 0 : ce.query) == null ? void 0 : Ie.hidden) != !0 ? (n(), x("div", zl, [
|
|
2662
2780
|
h(l.$slots, "query", {}, () => [
|
|
2663
2781
|
Z(bl, {
|
|
2664
2782
|
modelValue: e.value,
|
|
2665
|
-
"onUpdate:modelValue": u[
|
|
2783
|
+
"onUpdate:modelValue": u[6] || (u[6] = (j) => e.value = j),
|
|
2666
2784
|
info: E.value,
|
|
2667
|
-
"onUpdate:info": u[
|
|
2785
|
+
"onUpdate:info": u[7] || (u[7] = (j) => E.value = j),
|
|
2668
2786
|
onQuery: r,
|
|
2669
2787
|
onReset: b
|
|
2670
2788
|
}, me({
|
|
@@ -2679,7 +2797,7 @@ const xl = {
|
|
|
2679
2797
|
title: $.label,
|
|
2680
2798
|
ref_for: !0
|
|
2681
2799
|
}, $.attr, {
|
|
2682
|
-
onClick: (
|
|
2800
|
+
onClick: (P) => $.func(e.value, ee.value)
|
|
2683
2801
|
}), {
|
|
2684
2802
|
default: y(() => [
|
|
2685
2803
|
Me(ye($.label), 1)
|
|
@@ -2690,11 +2808,11 @@ const xl = {
|
|
|
2690
2808
|
title: $.label,
|
|
2691
2809
|
ref_for: !0
|
|
2692
2810
|
}, $.attr, {
|
|
2693
|
-
onClick: (
|
|
2811
|
+
onClick: (P) => $.func(e.value, ee.value)
|
|
2694
2812
|
}), null, 16, ["title", "onClick"]))
|
|
2695
2813
|
], !0) : pe("", !0),
|
|
2696
2814
|
h(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
2697
|
-
], 64))), 256)) : (n(), D(
|
|
2815
|
+
], 64))), 256)) : (n(), D(z, { key: 1 }, {
|
|
2698
2816
|
default: y(() => [
|
|
2699
2817
|
(n(!0), x(W, null, U(j, ($) => (n(), x(W, null, [
|
|
2700
2818
|
h(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
@@ -2704,7 +2822,7 @@ const xl = {
|
|
|
2704
2822
|
title: $.label,
|
|
2705
2823
|
ref_for: !0
|
|
2706
2824
|
}, $.attr, {
|
|
2707
|
-
onClick: (
|
|
2825
|
+
onClick: (P) => $.func(e.value, ee.value)
|
|
2708
2826
|
}), {
|
|
2709
2827
|
default: y(() => [
|
|
2710
2828
|
Me(ye($.label), 1)
|
|
@@ -2715,7 +2833,7 @@ const xl = {
|
|
|
2715
2833
|
title: $.label,
|
|
2716
2834
|
ref_for: !0
|
|
2717
2835
|
}, $.attr, {
|
|
2718
|
-
onClick: (
|
|
2836
|
+
onClick: (P) => $.func(e.value, ee.value)
|
|
2719
2837
|
}), null, 16, ["title", "onClick"]))
|
|
2720
2838
|
], !0) : pe("", !0),
|
|
2721
2839
|
h(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
@@ -2730,17 +2848,17 @@ const xl = {
|
|
|
2730
2848
|
}, [
|
|
2731
2849
|
U(l.$slots, (j, oe, $) => ({
|
|
2732
2850
|
name: oe,
|
|
2733
|
-
fn: y((
|
|
2851
|
+
fn: y((P) => [
|
|
2734
2852
|
h(l.$slots, oe, { model: e.value }, void 0, !0)
|
|
2735
2853
|
])
|
|
2736
2854
|
}))
|
|
2737
2855
|
]), 1032, ["modelValue", "info"])
|
|
2738
2856
|
], !0)
|
|
2739
2857
|
])) : pe("", !0),
|
|
2740
|
-
Q("div",
|
|
2741
|
-
Z(
|
|
2858
|
+
Q("div", Pl, [
|
|
2859
|
+
Z(c, S({ ...l.$attrs, ...L(Ve)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) }, {
|
|
2742
2860
|
"summary-method": (j) => e.value.table["summary-method"](j, { fields: re.value, sums: ie.value }),
|
|
2743
|
-
onSortChange: u[
|
|
2861
|
+
onSortChange: u[8] || (u[8] = (j) => {
|
|
2744
2862
|
var oe, $;
|
|
2745
2863
|
e.value.table.onSortChange(j, E.value), ((oe = j == null ? void 0 : j.column) == null ? void 0 : oe.sortable) === "custom" && (($ = e.value.table) == null || $.load());
|
|
2746
2864
|
})
|
|
@@ -2753,22 +2871,22 @@ const xl = {
|
|
|
2753
2871
|
]),
|
|
2754
2872
|
default: y(() => [
|
|
2755
2873
|
h(l.$slots, "default", {}, () => [
|
|
2756
|
-
(n(!0), x(W, null, U(_e.value, (j, oe) => (n(), D(
|
|
2874
|
+
(n(!0), x(W, null, U(_e.value, (j, oe) => (n(), D(Le, S({
|
|
2757
2875
|
prop: oe,
|
|
2758
2876
|
key: oe,
|
|
2759
2877
|
ref_for: !0
|
|
2760
2878
|
}, { ...e.value.tableColumns, ...L(Ve)(j, ($) => H.includes($)) }, { "header-align": "center" }), me({
|
|
2761
|
-
header: y(({ column: $, $index:
|
|
2879
|
+
header: y(({ column: $, $index: P }) => [
|
|
2762
2880
|
oe == "control" ? h(l.$slots, `${oe}-header`, {
|
|
2763
2881
|
key: 0,
|
|
2764
2882
|
column: $,
|
|
2765
|
-
$index:
|
|
2883
|
+
$index: P
|
|
2766
2884
|
}, () => [
|
|
2767
2885
|
Q("span", null, ye($.label), 1)
|
|
2768
2886
|
], !0) : h(l.$slots, `${oe}-header`, {
|
|
2769
2887
|
key: 1,
|
|
2770
2888
|
column: $,
|
|
2771
|
-
$index:
|
|
2889
|
+
$index: P
|
|
2772
2890
|
}, void 0, !0)
|
|
2773
2891
|
]),
|
|
2774
2892
|
"filter-icon": y(($) => [
|
|
@@ -2778,17 +2896,17 @@ const xl = {
|
|
|
2778
2896
|
}, [
|
|
2779
2897
|
j.type === "expand" ? {
|
|
2780
2898
|
name: "default",
|
|
2781
|
-
fn: y(({ row: $, column:
|
|
2899
|
+
fn: y(({ row: $, column: P, $index: K }) => [
|
|
2782
2900
|
h(l.$slots, `${oe}`, {
|
|
2783
2901
|
row: $,
|
|
2784
|
-
column:
|
|
2902
|
+
column: P,
|
|
2785
2903
|
$index: K
|
|
2786
2904
|
}, void 0, !0)
|
|
2787
2905
|
]),
|
|
2788
2906
|
key: "0"
|
|
2789
2907
|
} : j.type == "control" ? {
|
|
2790
2908
|
name: "default",
|
|
2791
|
-
fn: y(({ row: $, column:
|
|
2909
|
+
fn: y(({ row: $, column: P, $index: K }) => {
|
|
2792
2910
|
var We, Xe;
|
|
2793
2911
|
return [
|
|
2794
2912
|
Q("div", {
|
|
@@ -2798,7 +2916,7 @@ const xl = {
|
|
|
2798
2916
|
h(l.$slots, "control", {}, () => [
|
|
2799
2917
|
h(l.$slots, "control-left", {
|
|
2800
2918
|
row: $,
|
|
2801
|
-
column:
|
|
2919
|
+
column: P,
|
|
2802
2920
|
$index: K
|
|
2803
2921
|
}, void 0, !0),
|
|
2804
2922
|
(n(!0), x(W, null, U(ue(["view", "edit", "delete", "save"]), (je, He) => {
|
|
@@ -2807,13 +2925,13 @@ const xl = {
|
|
|
2807
2925
|
He == "default" ? (n(!0), x(W, { key: 0 }, U(je, (B) => (n(), x(W, null, [
|
|
2808
2926
|
h(l.$slots, B.name + "-left", {
|
|
2809
2927
|
row: $,
|
|
2810
|
-
column:
|
|
2928
|
+
column: P,
|
|
2811
2929
|
$index: K
|
|
2812
2930
|
}, void 0, !0),
|
|
2813
|
-
B.attr.auth($,
|
|
2931
|
+
B.attr.auth($, P, K) ? h(l.$slots, B.name, {
|
|
2814
2932
|
key: 0,
|
|
2815
2933
|
row: $,
|
|
2816
|
-
column:
|
|
2934
|
+
column: P,
|
|
2817
2935
|
$index: K
|
|
2818
2936
|
}, () => [
|
|
2819
2937
|
B.label ? (n(), D(L(De), S({
|
|
@@ -2821,7 +2939,7 @@ const xl = {
|
|
|
2821
2939
|
title: B.label,
|
|
2822
2940
|
ref_for: !0
|
|
2823
2941
|
}, B.attr, {
|
|
2824
|
-
onClick: (qe) => B.func($,
|
|
2942
|
+
onClick: (qe) => B.func($, P, K, e.value)
|
|
2825
2943
|
}), {
|
|
2826
2944
|
default: y(() => [
|
|
2827
2945
|
Me(ye(Te(B, K)), 1)
|
|
@@ -2832,20 +2950,20 @@ const xl = {
|
|
|
2832
2950
|
title: B.label,
|
|
2833
2951
|
ref_for: !0
|
|
2834
2952
|
}, B.attr, {
|
|
2835
|
-
onClick: (qe) => B.func($,
|
|
2953
|
+
onClick: (qe) => B.func($, P, K, e.value)
|
|
2836
2954
|
}), null, 16, ["title", "onClick"]))
|
|
2837
2955
|
], !0) : pe("", !0),
|
|
2838
2956
|
h(l.$slots, B.name + "-right", {
|
|
2839
2957
|
row: $,
|
|
2840
|
-
column:
|
|
2958
|
+
column: P,
|
|
2841
2959
|
$index: K
|
|
2842
2960
|
}, void 0, !0)
|
|
2843
|
-
], 64))), 256)) : He != null && He.startsWith("dropdown") && ((at = de($,
|
|
2961
|
+
], 64))), 256)) : He != null && He.startsWith("dropdown") && ((at = de($, P, K, e.value)) != null && at.auth()) ? (n(), D(Ce, S({
|
|
2844
2962
|
key: 1,
|
|
2845
2963
|
ref_for: !0
|
|
2846
|
-
}, de($,
|
|
2964
|
+
}, de($, P, K, e.value)), {
|
|
2847
2965
|
dropdown: y(() => [
|
|
2848
|
-
Z(
|
|
2966
|
+
Z(Ee, null, {
|
|
2849
2967
|
default: y(() => [
|
|
2850
2968
|
(n(!0), x(W, null, U(je, (B) => {
|
|
2851
2969
|
var qe, Ge, Ct;
|
|
@@ -2853,17 +2971,17 @@ const xl = {
|
|
|
2853
2971
|
l.$slots[B.name + "-left"] ? h(l.$slots, B.name + "-left", {
|
|
2854
2972
|
key: 0,
|
|
2855
2973
|
row: $,
|
|
2856
|
-
column:
|
|
2974
|
+
column: P,
|
|
2857
2975
|
$index: K
|
|
2858
2976
|
}, void 0, !0) : pe("", !0),
|
|
2859
|
-
B.attr.auth($,
|
|
2977
|
+
B.attr.auth($, P, K) ? (n(), D(te, S({
|
|
2860
2978
|
key: 1,
|
|
2861
2979
|
ref_for: !0
|
|
2862
2980
|
}, { command: (qe = B == null ? void 0 : B.attr) == null ? void 0 : qe.command, divided: (Ge = B == null ? void 0 : B.attr) == null ? void 0 : Ge.divided, disabled: (Ct = B == null ? void 0 : B.attr) == null ? void 0 : Ct.disabled }), {
|
|
2863
2981
|
default: y(() => [
|
|
2864
2982
|
h(l.$slots, B.name, {
|
|
2865
2983
|
row: $,
|
|
2866
|
-
column:
|
|
2984
|
+
column: P,
|
|
2867
2985
|
$index: K
|
|
2868
2986
|
}, () => [
|
|
2869
2987
|
B.label ? (n(), D(L(De), S({
|
|
@@ -2871,7 +2989,7 @@ const xl = {
|
|
|
2871
2989
|
title: B.label,
|
|
2872
2990
|
ref_for: !0
|
|
2873
2991
|
}, B.attr, {
|
|
2874
|
-
onClick: (At) => B.func($,
|
|
2992
|
+
onClick: (At) => B.func($, P, K, e.value)
|
|
2875
2993
|
}), {
|
|
2876
2994
|
default: y(() => [
|
|
2877
2995
|
Me(ye(Te(B, K)), 1)
|
|
@@ -2882,7 +3000,7 @@ const xl = {
|
|
|
2882
3000
|
title: B.label,
|
|
2883
3001
|
ref_for: !0
|
|
2884
3002
|
}, B.attr, {
|
|
2885
|
-
onClick: (At) => B.func($,
|
|
3003
|
+
onClick: (At) => B.func($, P, K, e.value)
|
|
2886
3004
|
}), null, 16, ["title", "onClick"]))
|
|
2887
3005
|
], !0)
|
|
2888
3006
|
]),
|
|
@@ -2891,7 +3009,7 @@ const xl = {
|
|
|
2891
3009
|
l.$slots[B.name + "-right"] ? h(l.$slots, B.name + "-right", {
|
|
2892
3010
|
key: 2,
|
|
2893
3011
|
row: $,
|
|
2894
|
-
column:
|
|
3012
|
+
column: P,
|
|
2895
3013
|
$index: K
|
|
2896
3014
|
}, void 0, !0) : pe("", !0)
|
|
2897
3015
|
], 64);
|
|
@@ -2903,22 +3021,22 @@ const xl = {
|
|
|
2903
3021
|
default: y(() => {
|
|
2904
3022
|
var B;
|
|
2905
3023
|
return [
|
|
2906
|
-
Me(ye((B = de($,
|
|
3024
|
+
Me(ye((B = de($, P, K, e.value)) == null ? void 0 : B.label) + " ", 1)
|
|
2907
3025
|
];
|
|
2908
3026
|
}),
|
|
2909
3027
|
_: 2
|
|
2910
|
-
}, 1040)) : (n(), D(
|
|
3028
|
+
}, 1040)) : (n(), D(z, { key: 2 }, {
|
|
2911
3029
|
default: y(() => [
|
|
2912
3030
|
(n(!0), x(W, null, U(je, (B) => (n(), x(W, null, [
|
|
2913
3031
|
h(l.$slots, B.name + "-left", {
|
|
2914
3032
|
row: $,
|
|
2915
|
-
column:
|
|
3033
|
+
column: P,
|
|
2916
3034
|
$index: K
|
|
2917
3035
|
}, void 0, !0),
|
|
2918
|
-
B.attr.auth($,
|
|
3036
|
+
B.attr.auth($, P, K) ? h(l.$slots, B.name, {
|
|
2919
3037
|
key: 0,
|
|
2920
3038
|
row: $,
|
|
2921
|
-
column:
|
|
3039
|
+
column: P,
|
|
2922
3040
|
$index: K
|
|
2923
3041
|
}, () => [
|
|
2924
3042
|
B.label ? (n(), D(L(De), S({
|
|
@@ -2926,7 +3044,7 @@ const xl = {
|
|
|
2926
3044
|
title: B.label,
|
|
2927
3045
|
ref_for: !0
|
|
2928
3046
|
}, B.attr, {
|
|
2929
|
-
onClick: (qe) => B.func($,
|
|
3047
|
+
onClick: (qe) => B.func($, P, K, e.value)
|
|
2930
3048
|
}), {
|
|
2931
3049
|
default: y(() => [
|
|
2932
3050
|
Me(ye(Te(B, K)), 1)
|
|
@@ -2937,12 +3055,12 @@ const xl = {
|
|
|
2937
3055
|
title: B.label,
|
|
2938
3056
|
ref_for: !0
|
|
2939
3057
|
}, B.attr, {
|
|
2940
|
-
onClick: (qe) => B.func($,
|
|
3058
|
+
onClick: (qe) => B.func($, P, K, e.value)
|
|
2941
3059
|
}), null, 16, ["title", "onClick"]))
|
|
2942
3060
|
], !0) : pe("", !0),
|
|
2943
3061
|
h(l.$slots, B.name + "-right", {
|
|
2944
3062
|
row: $,
|
|
2945
|
-
column:
|
|
3063
|
+
column: P,
|
|
2946
3064
|
$index: K
|
|
2947
3065
|
}, void 0, !0)
|
|
2948
3066
|
], 64))), 256))
|
|
@@ -2953,7 +3071,7 @@ const xl = {
|
|
|
2953
3071
|
}), 256)),
|
|
2954
3072
|
h(l.$slots, "control-right", {
|
|
2955
3073
|
row: $,
|
|
2956
|
-
column:
|
|
3074
|
+
column: P,
|
|
2957
3075
|
$index: K
|
|
2958
3076
|
}, void 0, !0)
|
|
2959
3077
|
], !0)
|
|
@@ -2963,11 +3081,11 @@ const xl = {
|
|
|
2963
3081
|
key: "1"
|
|
2964
3082
|
} : j.type != "selection" && j.type != "index" ? {
|
|
2965
3083
|
name: "default",
|
|
2966
|
-
fn: y(({ row: $, column:
|
|
2967
|
-
we(j, $,
|
|
3084
|
+
fn: y(({ row: $, column: P, $index: K }) => [
|
|
3085
|
+
we(j, $, P, K) && K != -1 ? h(l.$slots, `${oe}`, {
|
|
2968
3086
|
key: 0,
|
|
2969
3087
|
row: $,
|
|
2970
|
-
column:
|
|
3088
|
+
column: P,
|
|
2971
3089
|
$index: K
|
|
2972
3090
|
}, () => {
|
|
2973
3091
|
var We;
|
|
@@ -2975,10 +3093,10 @@ const xl = {
|
|
|
2975
3093
|
(n(), D(vt, {
|
|
2976
3094
|
modelValue: $[oe],
|
|
2977
3095
|
"onUpdate:modelValue": (Xe) => $[oe] = Xe,
|
|
2978
|
-
item: j == null ? void 0 : j.table($,
|
|
3096
|
+
item: j == null ? void 0 : j.table($, P, K),
|
|
2979
3097
|
ctrlKey: oe,
|
|
2980
3098
|
key: `${oe}-${K} -${ve.value}`,
|
|
2981
|
-
ctrlType: (We = j.table($,
|
|
3099
|
+
ctrlType: (We = j.table($, P, K)) != null && We.type ? j.table($, P, K).type : j.type,
|
|
2982
3100
|
model: e.value,
|
|
2983
3101
|
class: "g-ctrl-container",
|
|
2984
3102
|
t: "t",
|
|
@@ -2999,12 +3117,12 @@ const xl = {
|
|
|
2999
3117
|
}, !0) : h(l.$slots, `${oe}`, {
|
|
3000
3118
|
key: 1,
|
|
3001
3119
|
row: $,
|
|
3002
|
-
column:
|
|
3120
|
+
column: P,
|
|
3003
3121
|
$index: K
|
|
3004
3122
|
}, () => [
|
|
3005
3123
|
Q("div", {
|
|
3006
|
-
innerHTML: se(j,
|
|
3007
|
-
}, null, 8,
|
|
3124
|
+
innerHTML: se(j, P.formatter($, P, $[oe], K))
|
|
3125
|
+
}, null, 8, Wl)
|
|
3008
3126
|
], !0)
|
|
3009
3127
|
]),
|
|
3010
3128
|
key: "2"
|
|
@@ -3015,11 +3133,11 @@ const xl = {
|
|
|
3015
3133
|
_: 3
|
|
3016
3134
|
}, 16, ["summary-method"]),
|
|
3017
3135
|
(ft = (Qe = (Ke = e.value) == null ? void 0 : Ke.table) == null ? void 0 : Qe.page) != null && ft.hidden ? pe("", !0) : h(l.$slots, "page", { key: 0 }, () => [
|
|
3018
|
-
Z(
|
|
3136
|
+
Z(X, S({
|
|
3019
3137
|
"page-size": e.value.table.page.pageSize,
|
|
3020
|
-
"onUpdate:pageSize": u[
|
|
3138
|
+
"onUpdate:pageSize": u[9] || (u[9] = (j) => e.value.table.page.pageSize = j),
|
|
3021
3139
|
"current-page": e.value.table.page.currentPage,
|
|
3022
|
-
"onUpdate:currentPage": u[
|
|
3140
|
+
"onUpdate:currentPage": u[10] || (u[10] = (j) => e.value.table.page.currentPage = j)
|
|
3023
3141
|
}, e.value.table.page), {
|
|
3024
3142
|
default: y(() => [
|
|
3025
3143
|
h(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3028,128 +3146,11 @@ const xl = {
|
|
|
3028
3146
|
}, 16, ["page-size", "current-page"])
|
|
3029
3147
|
], !0)
|
|
3030
3148
|
])
|
|
3031
|
-
])
|
|
3032
|
-
e.value.dialog.mode == "dialog" && w.value ? (n(), x("div", Ll, [
|
|
3033
|
-
Z(c, S({
|
|
3034
|
-
ref_key: "dialogRef",
|
|
3035
|
-
ref: F,
|
|
3036
|
-
id: "dialogRef",
|
|
3037
|
-
modelValue: w.value,
|
|
3038
|
-
"onUpdate:modelValue": u[8] || (u[8] = (j) => w.value = j),
|
|
3039
|
-
fullscreen: e.value.dialog.fullScreen
|
|
3040
|
-
}, L(Ve)(e.value.dialog, (j) => !["size", "max", "min"].includes(j)), {
|
|
3041
|
-
width: L(Ot)(e.value.dialog.width) + 35
|
|
3042
|
-
}), {
|
|
3043
|
-
header: y(() => {
|
|
3044
|
-
var j, oe, $, z, K, We, Xe, je, He, at;
|
|
3045
|
-
return [
|
|
3046
|
-
Q("div", jl, [
|
|
3047
|
-
Q("div", Hl, [
|
|
3048
|
-
h(l.$slots, "f-header", {}, () => [
|
|
3049
|
-
Q("div", null, ye(e.value.dialog.title), 1)
|
|
3050
|
-
], !0)
|
|
3051
|
-
]),
|
|
3052
|
-
((oe = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), x("div", {
|
|
3053
|
-
key: 0,
|
|
3054
|
-
style: Be((K = (z = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : z.max) == null ? void 0 : K.style),
|
|
3055
|
-
onClick: u[5] || (u[5] = (B) => {
|
|
3056
|
-
e.value.dialog.fullScreen = !0;
|
|
3057
|
-
}),
|
|
3058
|
-
class: "max"
|
|
3059
|
-
}, [
|
|
3060
|
-
Z(Ie, null, {
|
|
3061
|
-
default: y(() => {
|
|
3062
|
-
var B, qe, Ge;
|
|
3063
|
-
return [
|
|
3064
|
-
(n(), D(Ue((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.max) == null ? void 0 : Ge.icon)))
|
|
3065
|
-
];
|
|
3066
|
-
}),
|
|
3067
|
-
_: 1
|
|
3068
|
-
})
|
|
3069
|
-
], 4)) : pe("", !0),
|
|
3070
|
-
((Xe = (We = e.value) == null ? void 0 : We.dialog) == null ? void 0 : Xe.fullScreen) === !0 ? (n(), x("div", {
|
|
3071
|
-
key: 1,
|
|
3072
|
-
style: Be((at = (He = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : He.min) == null ? void 0 : at.style),
|
|
3073
|
-
onClick: u[6] || (u[6] = (B) => {
|
|
3074
|
-
e.value.dialog.fullScreen = !1;
|
|
3075
|
-
}),
|
|
3076
|
-
class: "max"
|
|
3077
|
-
}, [
|
|
3078
|
-
Z(Ie, null, {
|
|
3079
|
-
default: y(() => {
|
|
3080
|
-
var B, qe, Ge;
|
|
3081
|
-
return [
|
|
3082
|
-
(n(), D(Ue((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.min) == null ? void 0 : Ge.icon)))
|
|
3083
|
-
];
|
|
3084
|
-
}),
|
|
3085
|
-
_: 1
|
|
3086
|
-
})
|
|
3087
|
-
], 4)) : pe("", !0)
|
|
3088
|
-
])
|
|
3089
|
-
];
|
|
3090
|
-
}),
|
|
3091
|
-
default: y(() => [
|
|
3092
|
-
Q("div", Nl, [
|
|
3093
|
-
h(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3094
|
-
Z(bt, {
|
|
3095
|
-
modelValue: e.value,
|
|
3096
|
-
"onUpdate:modelValue": u[7] || (u[7] = (j) => e.value = j),
|
|
3097
|
-
onSubmit: s,
|
|
3098
|
-
onReset: M
|
|
3099
|
-
}, me({ _: 2 }, [
|
|
3100
|
-
U(l.$slots, (j, oe, $) => ({
|
|
3101
|
-
name: oe,
|
|
3102
|
-
fn: y((z) => [
|
|
3103
|
-
h(l.$slots, oe, { model: z }, void 0, !0)
|
|
3104
|
-
])
|
|
3105
|
-
}))
|
|
3106
|
-
]), 1032, ["modelValue"])
|
|
3107
|
-
], !0)
|
|
3108
|
-
])
|
|
3109
|
-
]),
|
|
3110
|
-
_: 3
|
|
3111
|
-
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3112
|
-
])) : pe("", !0),
|
|
3113
|
-
e.value.dialog.mode == "drawer" && w.value ? (n(), x("div", zl, [
|
|
3114
|
-
Z(X, S({
|
|
3115
|
-
ref_key: "drawerRef",
|
|
3116
|
-
ref: T,
|
|
3117
|
-
modelValue: w.value,
|
|
3118
|
-
"onUpdate:modelValue": u[10] || (u[10] = (j) => w.value = j)
|
|
3119
|
-
}, L(Ve)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
3120
|
-
header: y(() => [
|
|
3121
|
-
Q("div", Pl, [
|
|
3122
|
-
Q("div", Wl, [
|
|
3123
|
-
h(l.$slots, "f-header", {}, () => [
|
|
3124
|
-
Q("div", null, ye(e.value.dialog.title), 1)
|
|
3125
|
-
], !0)
|
|
3126
|
-
])
|
|
3127
|
-
])
|
|
3128
|
-
]),
|
|
3129
|
-
default: y(() => [
|
|
3130
|
-
h(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3131
|
-
Z(bt, {
|
|
3132
|
-
modelValue: e.value,
|
|
3133
|
-
"onUpdate:modelValue": u[9] || (u[9] = (j) => e.value = j),
|
|
3134
|
-
onSubmit: s,
|
|
3135
|
-
onReset: M
|
|
3136
|
-
}, me({ _: 2 }, [
|
|
3137
|
-
U(l.$slots, (j, oe, $) => ({
|
|
3138
|
-
name: oe,
|
|
3139
|
-
fn: y((z) => [
|
|
3140
|
-
h(l.$slots, oe, { model: z }, void 0, !0)
|
|
3141
|
-
])
|
|
3142
|
-
}))
|
|
3143
|
-
]), 1032, ["modelValue"])
|
|
3144
|
-
], !0)
|
|
3145
|
-
]),
|
|
3146
|
-
_: 3
|
|
3147
|
-
}, 16, ["modelValue"])
|
|
3148
|
-
])) : pe("", !0)
|
|
3149
|
+
])
|
|
3149
3150
|
], 64);
|
|
3150
3151
|
};
|
|
3151
3152
|
}
|
|
3152
|
-
}), Gl = /* @__PURE__ */ Je(Xl, [["__scopeId", "data-v-
|
|
3153
|
+
}), Gl = /* @__PURE__ */ Je(Xl, [["__scopeId", "data-v-135482f8"]]), Ql = { class: "g-tree-table" }, Zl = { class: "g-tree-container" }, Jl = { class: "g-tree-table-container" }, Kl = /* @__PURE__ */ Object.assign({
|
|
3153
3154
|
name: "g-tree-table",
|
|
3154
3155
|
inheritAttrs: !1
|
|
3155
3156
|
}, {
|
|
@@ -3314,6 +3315,7 @@ const ga = {
|
|
|
3314
3315
|
"onUpdate:modelValue": (w) => i.value = w,
|
|
3315
3316
|
appendToBody: !0,
|
|
3316
3317
|
draggable: !0,
|
|
3318
|
+
"align-center": !0,
|
|
3317
3319
|
overflow: !0,
|
|
3318
3320
|
destroyOnClose: !0,
|
|
3319
3321
|
"close-on-click-modal": !1,
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-69f76d3f]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-69f76d3f] .custom-upload img{width:100%;height:100%}[data-v-69f76d3f] .custom-upload .el-upload--picture-card,[data-v-69f76d3f] .custom-upload .el-upload-dragger,[data-v-69f76d3f] .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-69f76d3f] .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-69f76d3f] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-69f76d3f] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-69f76d3f]:hover{background-color:#0003}.g-query-container[data-v-46ed95d5]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-46ed95d5]{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-46ed95d5]{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-46ed95d5],.nested-leave-active[data-v-46ed95d5]{transition:all .3s ease-in-out}.nested-leave-active[data-v-46ed95d5]{transition-delay:.25s}.nested-enter-from[data-v-46ed95d5],.nested-leave-to[data-v-46ed95d5]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-46ed95d5],.nested-leave-active .inner[data-v-46ed95d5]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-46ed95d5]{transition-delay:.25s}.nested-enter-from .inner[data-v-46ed95d5],.nested-leave-to .inner[data-v-46ed95d5]{transform:translateY(-100px);opacity:.001}.query-form[data-v-46ed95d5]{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-04791df1]:hover,.check-box-hover[data-v-51f730d2]:hover{background:var(--el-border-color)}.allcheck a[data-v-51f730d2]{cursor:pointer}.filtered[data-v-51f730d2]{pointer-events:none}.g-table-container[data-v-
|
|
1
|
+
.custom-upload[data-v-69f76d3f]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-69f76d3f] .custom-upload img{width:100%;height:100%}[data-v-69f76d3f] .custom-upload .el-upload--picture-card,[data-v-69f76d3f] .custom-upload .el-upload-dragger,[data-v-69f76d3f] .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-69f76d3f] .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-69f76d3f] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-69f76d3f] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-69f76d3f]:hover{background-color:#0003}.g-query-container[data-v-46ed95d5]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-46ed95d5]{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-46ed95d5]{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-46ed95d5],.nested-leave-active[data-v-46ed95d5]{transition:all .3s ease-in-out}.nested-leave-active[data-v-46ed95d5]{transition-delay:.25s}.nested-enter-from[data-v-46ed95d5],.nested-leave-to[data-v-46ed95d5]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-46ed95d5],.nested-leave-active .inner[data-v-46ed95d5]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-46ed95d5]{transition-delay:.25s}.nested-enter-from .inner[data-v-46ed95d5],.nested-leave-to .inner[data-v-46ed95d5]{transform:translateY(-100px);opacity:.001}.query-form[data-v-46ed95d5]{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-04791df1]:hover,.check-box-hover[data-v-51f730d2]:hover{background:var(--el-border-color)}.allcheck a[data-v-51f730d2]{cursor:pointer}.filtered[data-v-51f730d2]{pointer-events:none}.g-table-container[data-v-135482f8]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-135482f8]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-135482f8]{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-135482f8]{cursor:pointer;color:var(--el-text-color)}.max[data-v-135482f8]:hover{color:var(--el-color-primary)}.btns[data-v-135482f8]{display:flex}[data-v-135482f8] .drag-dialog{resize:both;overflow:auto}[data-v-135482f8] .el-dialog__header,[data-v-135482f8] .el-dialog__body{pointer-events:auto!important}.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}
|