vue-2024-ui 0.1.25 → 0.1.26
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 +142 -142
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -189,7 +189,7 @@ var qt = { exports: {} };
|
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
d.exports = t();
|
|
191
191
|
})(al, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, e = 36e5, i = "millisecond", E = "second", x = "minute", T = "hour", D = "day",
|
|
192
|
+
var a = 1e3, t = 6e4, e = 36e5, i = "millisecond", E = "second", x = "minute", T = "hour", D = "day", $ = "week", z = "month", te = "quarter", q = "year", B = "date", se = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ve = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
|
|
193
193
|
var r = ["th", "st", "nd", "rd"], v = p % 100;
|
|
194
194
|
return "[" + p + (r[(v - 20) % 10] || r[v] || r[0]) + "]";
|
|
195
195
|
} }, ge = function(p, r, v) {
|
|
@@ -205,7 +205,7 @@ var qt = { exports: {} };
|
|
|
205
205
|
}, a: function(p) {
|
|
206
206
|
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
207
207
|
}, p: function(p) {
|
|
208
|
-
return { M: z, y: q, w
|
|
208
|
+
return { M: z, y: q, w: $, d: D, D: B, h: T, m: x, s: E, ms: i, Q: te }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(p) {
|
|
210
210
|
return p === void 0;
|
|
211
211
|
} }, ie = "en", de = {};
|
|
@@ -285,7 +285,7 @@ var qt = { exports: {} };
|
|
|
285
285
|
return k ? j(1, 0) : j(31, 11);
|
|
286
286
|
case z:
|
|
287
287
|
return k ? j(1, O) : j(0, O + 1);
|
|
288
|
-
case
|
|
288
|
+
case $:
|
|
289
289
|
var _e = this.$locale().weekStart || 0, Te = (Y < _e ? Y + 7 : Y) - _e;
|
|
290
290
|
return j(k ? ue - Te : ue + (6 - Te), O);
|
|
291
291
|
case D:
|
|
@@ -323,7 +323,7 @@ var qt = { exports: {} };
|
|
|
323
323
|
if (V === z) return this.set(z, this.$M + v);
|
|
324
324
|
if (V === q) return this.set(q, this.$y + v);
|
|
325
325
|
if (V === D) return j(1);
|
|
326
|
-
if (V ===
|
|
326
|
+
if (V === $) return j(7);
|
|
327
327
|
var J = (s = {}, s[x] = t, s[T] = e, s[E] = a, s)[V] || 1, Y = this.$d.getTime() + v * J;
|
|
328
328
|
return b.w(Y, this);
|
|
329
329
|
}, r.subtract = function(v, g) {
|
|
@@ -410,7 +410,7 @@ var qt = { exports: {} };
|
|
|
410
410
|
case te:
|
|
411
411
|
k = ue() / 3;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
413
|
+
case $:
|
|
414
414
|
k = (O - Y) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case D:
|
|
@@ -481,7 +481,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
482
|
setup(d) {
|
|
483
483
|
var $e, ne;
|
|
484
|
-
const f = Pe(d, "modelValue"), a = d, t = le(a.item || {}), e = le(a.ctrlKey), i = le(a.ctrlType), E = le(a.model), x = le([]), T = le([]), D = le(!1),
|
|
484
|
+
const f = Pe(d, "modelValue"), a = d, t = le(a.item || {}), e = le(a.ctrlKey), i = le(a.ctrlType), E = le(a.model), x = le([]), T = le([]), D = le(!1), $ = le(!1), z = () => Object.keys(St()).filter((b) => b.startsWith(`${a.t}-${e}-`)).map((b) => b.replace(`${a.t}-${e}-`, "")), te = le({
|
|
485
485
|
multiple: !1,
|
|
486
486
|
"show-file-list": !1,
|
|
487
487
|
"file-list": [],
|
|
@@ -928,11 +928,11 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
928
928
|
]),
|
|
929
929
|
X("div", {
|
|
930
930
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
931
|
-
onMouseenter: o[18] || (o[18] = (W) =>
|
|
932
|
-
onMouseleave: o[19] || (o[19] = (W) =>
|
|
931
|
+
onMouseenter: o[18] || (o[18] = (W) => $.value = !0),
|
|
932
|
+
onMouseleave: o[19] || (o[19] = (W) => $.value = !1),
|
|
933
933
|
class: "up-view"
|
|
934
934
|
}, [
|
|
935
|
-
|
|
935
|
+
$.value ? (n(), C(tt, {
|
|
936
936
|
key: 0,
|
|
937
937
|
content: "查看大图",
|
|
938
938
|
placement: "top"
|
|
@@ -946,7 +946,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
946
946
|
]),
|
|
947
947
|
_: 1
|
|
948
948
|
})) : pe("", !0),
|
|
949
|
-
te.value.showDel &&
|
|
949
|
+
te.value.showDel && $.value ? (n(), C(tt, {
|
|
950
950
|
key: 1,
|
|
951
951
|
content: "删除",
|
|
952
952
|
placement: "top"
|
|
@@ -1102,7 +1102,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1102
1102
|
emits: /* @__PURE__ */ Ne(["submit", "reset"], ["update:modelValue"]),
|
|
1103
1103
|
setup(d, { expose: f, emit: a }) {
|
|
1104
1104
|
var ae, $e, ne, b;
|
|
1105
|
-
const t = Pe(d, "modelValue"), e = a, i = le(null), E = _t("options"), x = le({}), T = le(""), D = d,
|
|
1105
|
+
const t = Pe(d, "modelValue"), e = a, i = le(null), E = _t("options"), x = le({}), T = le(""), D = d, $ = {
|
|
1106
1106
|
inline: !0,
|
|
1107
1107
|
type: "hidden",
|
|
1108
1108
|
"scroll-to-error": !0,
|
|
@@ -1147,7 +1147,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
t.value.form = qe(
|
|
1150
|
-
|
|
1150
|
+
$,
|
|
1151
1151
|
E == null ? void 0 : E.form,
|
|
1152
1152
|
($e = t.value) == null ? void 0 : $e.form
|
|
1153
1153
|
);
|
|
@@ -1554,19 +1554,19 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1554
1554
|
};
|
|
1555
1555
|
return (x, T) => {
|
|
1556
1556
|
const D = I("el-form-item");
|
|
1557
|
-
return n(!0), F(G, null, L(e(a.more), (
|
|
1557
|
+
return n(!0), F(G, null, L(e(a.more), ($, z) => y(x.$slots, `q-${z}`, {
|
|
1558
1558
|
key: z,
|
|
1559
|
-
item:
|
|
1559
|
+
item: $,
|
|
1560
1560
|
queryModel: t.value,
|
|
1561
1561
|
model: f.value
|
|
1562
1562
|
}, () => [
|
|
1563
1563
|
Z(D, S({
|
|
1564
|
-
label:
|
|
1564
|
+
label: $.label,
|
|
1565
1565
|
ref_for: !0
|
|
1566
|
-
}, { ...f.value.queryItems, ...i(
|
|
1566
|
+
}, { ...f.value.queryItems, ...i($) }), {
|
|
1567
1567
|
label: h(() => [
|
|
1568
1568
|
y(x.$slots, `q-${z}-label`, {
|
|
1569
|
-
item:
|
|
1569
|
+
item: $,
|
|
1570
1570
|
model: f.value
|
|
1571
1571
|
})
|
|
1572
1572
|
]),
|
|
@@ -1574,9 +1574,9 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1574
1574
|
Z(pt, {
|
|
1575
1575
|
modelValue: t.value[z],
|
|
1576
1576
|
"onUpdate:modelValue": (te) => t.value[z] = te,
|
|
1577
|
-
item: {
|
|
1577
|
+
item: { ...$ == null ? void 0 : $.editor, ...i($) },
|
|
1578
1578
|
ctrlKey: z,
|
|
1579
|
-
ctrlType: E(
|
|
1579
|
+
ctrlType: E($),
|
|
1580
1580
|
model: f.value,
|
|
1581
1581
|
t: "q",
|
|
1582
1582
|
formInfo: t.value
|
|
@@ -1586,7 +1586,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1586
1586
|
fn: h((q) => [
|
|
1587
1587
|
y(x.$slots, te, {
|
|
1588
1588
|
data: q,
|
|
1589
|
-
item:
|
|
1589
|
+
item: $,
|
|
1590
1590
|
model: f.value
|
|
1591
1591
|
})
|
|
1592
1592
|
])
|
|
@@ -1689,7 +1689,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
a.value.queryItems = qe(D, e == null ? void 0 : e.queryItems, a.value.queryItems);
|
|
1692
|
-
const
|
|
1692
|
+
const $ = (q, B) => {
|
|
1693
1693
|
const se = Object.keys(q.slots).filter((re) => re !== "default").reduce((re, K) => (re[K] = (ve) => q.slots[K]({
|
|
1694
1694
|
model: a.value
|
|
1695
1695
|
// 传递当前模型数据
|
|
@@ -1739,7 +1739,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1739
1739
|
content: a.value.query.more.mode === 3 ? () => Ae(dt, {
|
|
1740
1740
|
class: "query-form",
|
|
1741
1741
|
...Ve(a.value.query, (ae) => !["query", "more", "reset"].includes(ae))
|
|
1742
|
-
}, () =>
|
|
1742
|
+
}, () => $({ slots: z }, !0)) : null
|
|
1743
1743
|
}
|
|
1744
1744
|
];
|
|
1745
1745
|
return q.sort((ae, $e) => ae.sort - $e.sort), q.filter((ae) => !ae.hidden).map((ae) => ae.key === "more" && ae.component === ht ? Ae(ht, ae.props, {
|
|
@@ -1762,7 +1762,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1762
1762
|
default: h(() => {
|
|
1763
1763
|
var s, k;
|
|
1764
1764
|
return [
|
|
1765
|
-
(n(), C(Ye(
|
|
1765
|
+
(n(), C(Ye($({ slots: q.$slots }, void 0)))),
|
|
1766
1766
|
((k = (s = a.value.query) == null ? void 0 : s.container) == null ? void 0 : k.inline) === !0 ? (n(), C(se, { key: 0 }, {
|
|
1767
1767
|
default: h(() => {
|
|
1768
1768
|
var V, j, J, Y, O;
|
|
@@ -1901,7 +1901,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1901
1901
|
}, ["prevent"]))
|
|
1902
1902
|
}, U(Ve)(a.value.query, (j) => !["query", "more", "reset"].includes(j))), {
|
|
1903
1903
|
default: h(() => [
|
|
1904
|
-
(n(), C(Ye(
|
|
1904
|
+
(n(), C(Ye($({ slots: q.$slots }, !0))))
|
|
1905
1905
|
]),
|
|
1906
1906
|
_: 1
|
|
1907
1907
|
}, 16)), [
|
|
@@ -1942,10 +1942,10 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1942
1942
|
return;
|
|
1943
1943
|
}
|
|
1944
1944
|
try {
|
|
1945
|
-
const
|
|
1946
|
-
|
|
1947
|
-
} catch (
|
|
1948
|
-
console.error("下载文件时出现错误:",
|
|
1945
|
+
const $ = document.createElement("a");
|
|
1946
|
+
$.href = T, $.download = D, $.style.display = "none", document.body.appendChild($), $.click(), document.body.removeChild($);
|
|
1947
|
+
} catch ($) {
|
|
1948
|
+
console.error("下载文件时出现错误:", $);
|
|
1949
1949
|
}
|
|
1950
1950
|
});
|
|
1951
1951
|
};
|
|
@@ -1960,7 +1960,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1960
1960
|
D && D.destroy();
|
|
1961
1961
|
});
|
|
1962
1962
|
}), (T, D) => {
|
|
1963
|
-
const
|
|
1963
|
+
const $ = I("el-divider"), z = I("el-alert"), te = I("el-checkbox"), q = I("el-button");
|
|
1964
1964
|
return n(), F("div", kl, [
|
|
1965
1965
|
X("div", Cl, [
|
|
1966
1966
|
X("div", Dl, [
|
|
@@ -1968,7 +1968,7 @@ const yt = /* @__PURE__ */ rl(ol), We = (d, f) => {
|
|
|
1968
1968
|
onClick: i,
|
|
1969
1969
|
style: { cursor: "pointer" }
|
|
1970
1970
|
}, "全选"),
|
|
1971
|
-
Z(
|
|
1971
|
+
Z($, { direction: "vertical" }),
|
|
1972
1972
|
X("a", {
|
|
1973
1973
|
onClick: E,
|
|
1974
1974
|
style: { cursor: "pointer" }
|
|
@@ -2073,10 +2073,10 @@ const Il = {
|
|
|
2073
2073
|
}),
|
|
2074
2074
|
emits: ["update:modelValue"],
|
|
2075
2075
|
setup(d) {
|
|
2076
|
-
const f = d, a = le([]), t = Pe(d, "modelValue"), e = async (D,
|
|
2077
|
-
D ? t.value[
|
|
2076
|
+
const f = d, a = le([]), t = Pe(d, "modelValue"), e = async (D, $) => {
|
|
2077
|
+
D ? t.value[$].showCol = !0 : t.value[$].showCol = !1;
|
|
2078
2078
|
try {
|
|
2079
|
-
await vt(t.value.table.user, f.name,
|
|
2079
|
+
await vt(t.value.table.user, f.name, $, { showCol: D });
|
|
2080
2080
|
} catch (z) {
|
|
2081
2081
|
console.error("列显示状态保存信息时出错:", z), Fe({
|
|
2082
2082
|
type: "error",
|
|
@@ -2086,13 +2086,13 @@ const Il = {
|
|
|
2086
2086
|
}, i = () => {
|
|
2087
2087
|
const D = document.getElementById("cols");
|
|
2088
2088
|
if (D) {
|
|
2089
|
-
let
|
|
2089
|
+
let $ = Ft.create(D, {
|
|
2090
2090
|
animation: 150,
|
|
2091
2091
|
filter: ".filtered",
|
|
2092
2092
|
//
|
|
2093
2093
|
sort: !0,
|
|
2094
2094
|
onEnd: () => {
|
|
2095
|
-
|
|
2095
|
+
$.toArray().forEach(async (te, q) => {
|
|
2096
2096
|
t.value[te].sort = q;
|
|
2097
2097
|
let B = t.value[te].width || "auto";
|
|
2098
2098
|
try {
|
|
@@ -2109,7 +2109,7 @@ const Il = {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}, E = async () => {
|
|
2111
2111
|
try {
|
|
2112
|
-
const D = a.value.map((
|
|
2112
|
+
const D = a.value.map(($) => ($.showCol = !0, t.value[$.value].showCol = !0, $));
|
|
2113
2113
|
await Mt(t.value.table.user, f.name, D, { showCol: !0 });
|
|
2114
2114
|
} catch (D) {
|
|
2115
2115
|
console.error("全选列保存信息时出错:", D), Fe({
|
|
@@ -2119,9 +2119,9 @@ const Il = {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
}, x = async () => {
|
|
2121
2121
|
try {
|
|
2122
|
-
const D = a.value.filter((
|
|
2123
|
-
D.forEach((
|
|
2124
|
-
|
|
2122
|
+
const D = a.value.filter(($) => !$.alwaysShow && $.value != "control");
|
|
2123
|
+
D.forEach(($) => {
|
|
2124
|
+
$.showCol = !1, t.value[$.value].showCol = !1;
|
|
2125
2125
|
}), await Mt(t.value.table.user, f.name, D, { showCol: !1 });
|
|
2126
2126
|
} catch (D) {
|
|
2127
2127
|
console.error("清除列保存信息时出错:", D), Fe({
|
|
@@ -2146,15 +2146,15 @@ const Il = {
|
|
|
2146
2146
|
});
|
|
2147
2147
|
};
|
|
2148
2148
|
return rt(async () => {
|
|
2149
|
-
a.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D,
|
|
2150
|
-
label:
|
|
2149
|
+
a.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D, $]) => ({
|
|
2150
|
+
label: $.label,
|
|
2151
2151
|
value: D,
|
|
2152
|
-
alwaysShow:
|
|
2153
|
-
showCol:
|
|
2154
|
-
sort:
|
|
2155
|
-
width:
|
|
2156
|
-
})).sort((D,
|
|
2157
|
-
}), (D,
|
|
2152
|
+
alwaysShow: $.alwaysShow,
|
|
2153
|
+
showCol: $.showCol !== !1,
|
|
2154
|
+
sort: $.sort || 0,
|
|
2155
|
+
width: $.width || "auto"
|
|
2156
|
+
})).sort((D, $) => D.sort - $.sort), i();
|
|
2157
|
+
}), (D, $) => {
|
|
2158
2158
|
const z = I("el-divider"), te = I("el-alert"), q = I("el-checkbox");
|
|
2159
2159
|
return n(), F("div", null, [
|
|
2160
2160
|
X("div", Il, [
|
|
@@ -2198,7 +2198,7 @@ const Il = {
|
|
|
2198
2198
|
]);
|
|
2199
2199
|
};
|
|
2200
2200
|
}
|
|
2201
|
-
}, Rl = /* @__PURE__ */ We(Ul, [["__scopeId", "data-v-
|
|
2201
|
+
}, Rl = /* @__PURE__ */ We(Ul, [["__scopeId", "data-v-23dc31e2"]]), Ll = { class: "title" }, jl = { class: "content" }, zl = {
|
|
2202
2202
|
__name: "g-cell-toopTip",
|
|
2203
2203
|
props: {
|
|
2204
2204
|
content: {
|
|
@@ -2262,7 +2262,7 @@ const Il = {
|
|
|
2262
2262
|
var Re, ot, tt, ut, nt, st, lt;
|
|
2263
2263
|
const t = a, e = Pe(d, "modelValue"), i = _t("options"), E = le({}), x = le(null), T = le(null), D = Object.entries(e.value).filter(([l, u]) => (u == null ? void 0 : u.search) !== void 0).map(([l, u]) => [l, u.value]);
|
|
2264
2264
|
E.value = Object.fromEntries(D);
|
|
2265
|
-
const
|
|
2265
|
+
const $ = le(!1), z = [
|
|
2266
2266
|
"type",
|
|
2267
2267
|
"index",
|
|
2268
2268
|
"label",
|
|
@@ -2559,7 +2559,7 @@ const Il = {
|
|
|
2559
2559
|
}
|
|
2560
2560
|
(c = e.value.control.add) != null && c.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(K.value), t("open", "row-add", { initFormData: K.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(K.value).forEach((M) => {
|
|
2561
2561
|
e.value[M] && (e.value[M].value = K.value[M]);
|
|
2562
|
-
}),
|
|
2562
|
+
}), $.value = !0, t("open", "add", { m: l }), mt());
|
|
2563
2563
|
}, p = async (l, u, c, M) => {
|
|
2564
2564
|
var H, N;
|
|
2565
2565
|
e.value.form.modalState = "edit";
|
|
@@ -2576,7 +2576,7 @@ const Il = {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
(N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, u, c, M) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Q) => {
|
|
2578
2578
|
e.value[Q] && (e.value[Q].value = l[Q]);
|
|
2579
|
-
}),
|
|
2579
|
+
}), $.value = !0, t("open", "edit", { m: M, row: l, column: u, $index: c }), mt());
|
|
2580
2580
|
}, r = async (l, u, c, M) => {
|
|
2581
2581
|
var H, N;
|
|
2582
2582
|
try {
|
|
@@ -2621,7 +2621,7 @@ const Il = {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
(N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, u, c, M) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Q) => {
|
|
2623
2623
|
e.value[Q] && (e.value[Q].value = l[Q]);
|
|
2624
|
-
}),
|
|
2624
|
+
}), $.value = !0, t("open", "view", { m: M, row: l, column: u, $index: c }), mt());
|
|
2625
2625
|
}, g = (l, u, c, M) => {
|
|
2626
2626
|
var H;
|
|
2627
2627
|
(H = e.value.control.save) != null && H.click ? e.value.control.save.click(l, u, c, M) : t(
|
|
@@ -2642,7 +2642,7 @@ const Il = {
|
|
|
2642
2642
|
);
|
|
2643
2643
|
}, s = (l, u) => {
|
|
2644
2644
|
t("submit", e.value.form.modalState, l, u, (c) => {
|
|
2645
|
-
c && (
|
|
2645
|
+
c && ($.value = !1, u.table.load());
|
|
2646
2646
|
});
|
|
2647
2647
|
}, k = (l) => {
|
|
2648
2648
|
t("reset", l);
|
|
@@ -2758,10 +2758,10 @@ const Il = {
|
|
|
2758
2758
|
try {
|
|
2759
2759
|
x.value.handleClose();
|
|
2760
2760
|
} catch {
|
|
2761
|
-
|
|
2761
|
+
$.value = !1;
|
|
2762
2762
|
}
|
|
2763
2763
|
else
|
|
2764
|
-
|
|
2764
|
+
$.value = !1;
|
|
2765
2765
|
};
|
|
2766
2766
|
return Pt(() => {
|
|
2767
2767
|
e.value.table.autoWatch && e.value.table.load();
|
|
@@ -2822,14 +2822,14 @@ const Il = {
|
|
|
2822
2822
|
var ce, Be, Ke, Ze, it;
|
|
2823
2823
|
const c = I("el-icon"), M = I("el-dialog"), H = I("el-drawer"), N = I("el-button-group"), Q = I("el-dropdown-item"), Ee = I("el-dropdown-menu"), Ce = I("el-dropdown"), Le = I("el-table-column"), m = I("el-table"), W = I("el-pagination");
|
|
2824
2824
|
return n(), F(G, null, [
|
|
2825
|
-
e.value.dialog.mode == "dialog" &&
|
|
2825
|
+
e.value.dialog.mode == "dialog" && $.value ? (n(), F("div", Nl, [
|
|
2826
2826
|
Z(M, S(
|
|
2827
2827
|
{
|
|
2828
2828
|
ref_key: "dialogRef",
|
|
2829
2829
|
ref: x,
|
|
2830
2830
|
id: "dialogRef",
|
|
2831
|
-
modelValue:
|
|
2832
|
-
"onUpdate:modelValue": u[3] || (u[3] = (R) =>
|
|
2831
|
+
modelValue: $.value,
|
|
2832
|
+
"onUpdate:modelValue": u[3] || (u[3] = (R) => $.value = R),
|
|
2833
2833
|
fullscreen: e.value.dialog.fullScreen
|
|
2834
2834
|
},
|
|
2835
2835
|
U(Ve)(e.value.dialog, (R) => !["size", "max", "min"].includes(R)),
|
|
@@ -2838,7 +2838,7 @@ const Il = {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
), {
|
|
2840
2840
|
header: h(() => {
|
|
2841
|
-
var R, oe,
|
|
2841
|
+
var R, oe, w, P, ee, Xe, Ge, je, ze, at;
|
|
2842
2842
|
return [
|
|
2843
2843
|
X("div", Pl, [
|
|
2844
2844
|
X("div", Wl, [
|
|
@@ -2848,7 +2848,7 @@ const Il = {
|
|
|
2848
2848
|
]),
|
|
2849
2849
|
((oe = (R = e.value) == null ? void 0 : R.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), F("div", {
|
|
2850
2850
|
key: 0,
|
|
2851
|
-
style: Ie((ee = (P = (
|
|
2851
|
+
style: Ie((ee = (P = (w = e.value) == null ? void 0 : w.dialog) == null ? void 0 : P.max) == null ? void 0 : ee.style),
|
|
2852
2852
|
onClick: u[0] || (u[0] = (A) => e.value.dialog.fullScreen = !0),
|
|
2853
2853
|
class: "max"
|
|
2854
2854
|
}, [
|
|
@@ -2890,7 +2890,7 @@ const Il = {
|
|
|
2890
2890
|
onSubmit: s,
|
|
2891
2891
|
onReset: k
|
|
2892
2892
|
}, me({ _: 2 }, [
|
|
2893
|
-
L(l.$slots, (R, oe,
|
|
2893
|
+
L(l.$slots, (R, oe, w) => ({
|
|
2894
2894
|
name: oe,
|
|
2895
2895
|
fn: h((P) => [
|
|
2896
2896
|
y(l.$slots, oe, { model: P }, void 0, !0)
|
|
@@ -2903,12 +2903,12 @@ const Il = {
|
|
|
2903
2903
|
_: 3
|
|
2904
2904
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2905
2905
|
])) : pe("", !0),
|
|
2906
|
-
e.value.dialog.mode == "drawer" &&
|
|
2906
|
+
e.value.dialog.mode == "drawer" && $.value ? (n(), F("div", Gl, [
|
|
2907
2907
|
Z(H, S({
|
|
2908
2908
|
ref_key: "drawerRef",
|
|
2909
2909
|
ref: T,
|
|
2910
|
-
modelValue:
|
|
2911
|
-
"onUpdate:modelValue": u[5] || (u[5] = (R) =>
|
|
2910
|
+
modelValue: $.value,
|
|
2911
|
+
"onUpdate:modelValue": u[5] || (u[5] = (R) => $.value = R)
|
|
2912
2912
|
}, U(Ve)(e.value.dialog, (R) => !["width"].includes(R))), {
|
|
2913
2913
|
header: h(() => [
|
|
2914
2914
|
X("div", Ql, [
|
|
@@ -2927,7 +2927,7 @@ const Il = {
|
|
|
2927
2927
|
onSubmit: s,
|
|
2928
2928
|
onReset: k
|
|
2929
2929
|
}, me({ _: 2 }, [
|
|
2930
|
-
L(l.$slots, (R, oe,
|
|
2930
|
+
L(l.$slots, (R, oe, w) => ({
|
|
2931
2931
|
name: oe,
|
|
2932
2932
|
fn: h((P) => [
|
|
2933
2933
|
y(l.$slots, oe, { model: P }, void 0, !0)
|
|
@@ -2957,54 +2957,54 @@ const Il = {
|
|
|
2957
2957
|
"download",
|
|
2958
2958
|
"setting"
|
|
2959
2959
|
]), (R, oe) => (n(), F(G, null, [
|
|
2960
|
-
oe == "default" ? (n(!0), F(G, { key: 0 }, L(R, (
|
|
2961
|
-
y(l.$slots,
|
|
2962
|
-
(
|
|
2963
|
-
|
|
2960
|
+
oe == "default" ? (n(!0), F(G, { key: 0 }, L(R, (w) => (n(), F(G, null, [
|
|
2961
|
+
y(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2962
|
+
(w.name === "control-add" ? w.attr.auth(e.value) && w.attr.inline === !1 : w.attr.auth(e.value)) ? y(l.$slots, w.name, { key: 0 }, () => [
|
|
2963
|
+
w.label ? (n(), C(U(De), S({
|
|
2964
2964
|
key: 0,
|
|
2965
|
-
title:
|
|
2965
|
+
title: w.label,
|
|
2966
2966
|
ref_for: !0
|
|
2967
|
-
},
|
|
2968
|
-
onClick: (P) =>
|
|
2967
|
+
}, w.attr, {
|
|
2968
|
+
onClick: (P) => w.func(e.value, te.value)
|
|
2969
2969
|
}), {
|
|
2970
2970
|
default: h(() => [
|
|
2971
|
-
Me(ye(
|
|
2971
|
+
Me(ye(w.label), 1)
|
|
2972
2972
|
]),
|
|
2973
2973
|
_: 2
|
|
2974
2974
|
}, 1040, ["title", "onClick"])) : (n(), C(U(De), S({
|
|
2975
2975
|
key: 1,
|
|
2976
|
-
title:
|
|
2976
|
+
title: w.label,
|
|
2977
2977
|
ref_for: !0
|
|
2978
|
-
},
|
|
2979
|
-
onClick: (P) =>
|
|
2978
|
+
}, w.attr, {
|
|
2979
|
+
onClick: (P) => w.func(e.value, te.value)
|
|
2980
2980
|
}), null, 16, ["title", "onClick"]))
|
|
2981
2981
|
], !0) : pe("", !0),
|
|
2982
|
-
y(l.$slots,
|
|
2982
|
+
y(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2983
2983
|
], 64))), 256)) : (n(), C(N, { key: 1 }, {
|
|
2984
2984
|
default: h(() => [
|
|
2985
|
-
(n(!0), F(G, null, L(R, (
|
|
2986
|
-
y(l.$slots,
|
|
2987
|
-
(
|
|
2988
|
-
|
|
2985
|
+
(n(!0), F(G, null, L(R, (w) => (n(), F(G, null, [
|
|
2986
|
+
y(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2987
|
+
(w.name === "control-add" ? w.attr.auth(e.value) && w.attr.inline === !1 : w.attr.auth(e.value)) ? y(l.$slots, w.name, { key: 0 }, () => [
|
|
2988
|
+
w.label ? (n(), C(U(De), S({
|
|
2989
2989
|
key: 0,
|
|
2990
|
-
title:
|
|
2990
|
+
title: w.label,
|
|
2991
2991
|
ref_for: !0
|
|
2992
|
-
},
|
|
2993
|
-
onClick: (P) =>
|
|
2992
|
+
}, w.attr, {
|
|
2993
|
+
onClick: (P) => w.func(e.value, te.value)
|
|
2994
2994
|
}), {
|
|
2995
2995
|
default: h(() => [
|
|
2996
|
-
Me(ye(
|
|
2996
|
+
Me(ye(w.label), 1)
|
|
2997
2997
|
]),
|
|
2998
2998
|
_: 2
|
|
2999
2999
|
}, 1040, ["title", "onClick"])) : (n(), C(U(De), S({
|
|
3000
3000
|
key: 1,
|
|
3001
|
-
title:
|
|
3001
|
+
title: w.label,
|
|
3002
3002
|
ref_for: !0
|
|
3003
|
-
},
|
|
3004
|
-
onClick: (P) =>
|
|
3003
|
+
}, w.attr, {
|
|
3004
|
+
onClick: (P) => w.func(e.value, te.value)
|
|
3005
3005
|
}), null, 16, ["title", "onClick"]))
|
|
3006
3006
|
], !0) : pe("", !0),
|
|
3007
|
-
y(l.$slots,
|
|
3007
|
+
y(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
3008
3008
|
], 64))), 256))
|
|
3009
3009
|
]),
|
|
3010
3010
|
_: 2
|
|
@@ -3014,7 +3014,7 @@ const Il = {
|
|
|
3014
3014
|
]),
|
|
3015
3015
|
_: 2
|
|
3016
3016
|
}, [
|
|
3017
|
-
L(l.$slots, (R, oe,
|
|
3017
|
+
L(l.$slots, (R, oe, w) => ({
|
|
3018
3018
|
name: oe,
|
|
3019
3019
|
fn: h((P) => [
|
|
3020
3020
|
y(l.$slots, oe, { model: e.value }, void 0, !0)
|
|
@@ -3033,8 +3033,8 @@ const Il = {
|
|
|
3033
3033
|
}, {
|
|
3034
3034
|
"summary-method": (R) => e.value.table["summary-method"](R, { fields: re.value, sums: se.value }),
|
|
3035
3035
|
onSortChange: u[8] || (u[8] = (R) => {
|
|
3036
|
-
var oe,
|
|
3037
|
-
e.value.table.onSortChange(R, E.value), ((oe = R == null ? void 0 : R.column) == null ? void 0 : oe.sortable) === "custom" && ((
|
|
3036
|
+
var oe, w;
|
|
3037
|
+
e.value.table.onSortChange(R, E.value), ((oe = R == null ? void 0 : R.column) == null ? void 0 : oe.sortable) === "custom" && ((w = e.value.table) == null || w.load());
|
|
3038
3038
|
})
|
|
3039
3039
|
}), {
|
|
3040
3040
|
append: h(() => [
|
|
@@ -3051,31 +3051,31 @@ const Il = {
|
|
|
3051
3051
|
ref_for: !0
|
|
3052
3052
|
}, {
|
|
3053
3053
|
...e.value.tableColumns,
|
|
3054
|
-
...U(Ve)(R, (
|
|
3054
|
+
...U(Ve)(R, (w) => z.includes(w))
|
|
3055
3055
|
}), me({
|
|
3056
|
-
header: h(({ column:
|
|
3056
|
+
header: h(({ column: w, $index: P }) => [
|
|
3057
3057
|
oe == "control" ? y(l.$slots, `${oe}-header`, {
|
|
3058
3058
|
key: 0,
|
|
3059
|
-
column:
|
|
3059
|
+
column: w,
|
|
3060
3060
|
$index: P
|
|
3061
3061
|
}, () => [
|
|
3062
|
-
X("span", null, ye(
|
|
3062
|
+
X("span", null, ye(w.label), 1)
|
|
3063
3063
|
], !0) : y(l.$slots, `${oe}-header`, {
|
|
3064
3064
|
key: 1,
|
|
3065
|
-
column:
|
|
3065
|
+
column: w,
|
|
3066
3066
|
$index: P
|
|
3067
3067
|
}, void 0, !0)
|
|
3068
3068
|
]),
|
|
3069
|
-
"filter-icon": h((
|
|
3070
|
-
y(l.$slots, `${oe}-filter-icon`, { data:
|
|
3069
|
+
"filter-icon": h((w) => [
|
|
3070
|
+
y(l.$slots, `${oe}-filter-icon`, { data: w }, void 0, !0)
|
|
3071
3071
|
]),
|
|
3072
3072
|
_: 2
|
|
3073
3073
|
}, [
|
|
3074
3074
|
R.type === "expand" ? {
|
|
3075
3075
|
name: "default",
|
|
3076
|
-
fn: h(({ row:
|
|
3076
|
+
fn: h(({ row: w, column: P, $index: ee }) => [
|
|
3077
3077
|
y(l.$slots, `${oe}`, {
|
|
3078
|
-
row:
|
|
3078
|
+
row: w,
|
|
3079
3079
|
column: P,
|
|
3080
3080
|
$index: ee
|
|
3081
3081
|
}, void 0, !0)
|
|
@@ -3083,7 +3083,7 @@ const Il = {
|
|
|
3083
3083
|
key: "0"
|
|
3084
3084
|
} : R.type == "control" ? {
|
|
3085
3085
|
name: "default",
|
|
3086
|
-
fn: h(({ row:
|
|
3086
|
+
fn: h(({ row: w, column: P, $index: ee }) => {
|
|
3087
3087
|
var Xe, Ge;
|
|
3088
3088
|
return [
|
|
3089
3089
|
X("div", {
|
|
@@ -3092,7 +3092,7 @@ const Il = {
|
|
|
3092
3092
|
}, [
|
|
3093
3093
|
y(l.$slots, "control", {}, () => [
|
|
3094
3094
|
y(l.$slots, "control-left", {
|
|
3095
|
-
row:
|
|
3095
|
+
row: w,
|
|
3096
3096
|
column: P,
|
|
3097
3097
|
$index: ee
|
|
3098
3098
|
}, void 0, !0),
|
|
@@ -3106,13 +3106,13 @@ const Il = {
|
|
|
3106
3106
|
return n(), F(G, null, [
|
|
3107
3107
|
ze == "default" ? (n(!0), F(G, { key: 0 }, L(je, (A) => (n(), F(G, null, [
|
|
3108
3108
|
y(l.$slots, A.name + "-left", {
|
|
3109
|
-
row:
|
|
3109
|
+
row: w,
|
|
3110
3110
|
column: P,
|
|
3111
3111
|
$index: ee
|
|
3112
3112
|
}, void 0, !0),
|
|
3113
|
-
A.attr.auth(
|
|
3113
|
+
A.attr.auth(w, P, ee, e.value) ? y(l.$slots, A.name, {
|
|
3114
3114
|
key: 0,
|
|
3115
|
-
row:
|
|
3115
|
+
row: w,
|
|
3116
3116
|
column: P,
|
|
3117
3117
|
$index: ee
|
|
3118
3118
|
}, () => [
|
|
@@ -3121,7 +3121,7 @@ const Il = {
|
|
|
3121
3121
|
title: A.label,
|
|
3122
3122
|
ref_for: !0
|
|
3123
3123
|
}, A.attr, {
|
|
3124
|
-
onClick: (Oe) => A.func(
|
|
3124
|
+
onClick: (Oe) => A.func(w, P, ee, e.value)
|
|
3125
3125
|
}), {
|
|
3126
3126
|
default: h(() => [
|
|
3127
3127
|
Me(ye(xe(A, ee)), 1)
|
|
@@ -3132,18 +3132,18 @@ const Il = {
|
|
|
3132
3132
|
title: A.label,
|
|
3133
3133
|
ref_for: !0
|
|
3134
3134
|
}, A.attr, {
|
|
3135
|
-
onClick: (Oe) => A.func(
|
|
3135
|
+
onClick: (Oe) => A.func(w, P, ee, e.value)
|
|
3136
3136
|
}), null, 16, ["title", "onClick"]))
|
|
3137
3137
|
], !0) : pe("", !0),
|
|
3138
3138
|
y(l.$slots, A.name + "-right", {
|
|
3139
|
-
row:
|
|
3139
|
+
row: w,
|
|
3140
3140
|
column: P,
|
|
3141
3141
|
$index: ee
|
|
3142
3142
|
}, void 0, !0)
|
|
3143
|
-
], 64))), 256)) : ze != null && ze.startsWith("dropdown") && ((at = ie(
|
|
3143
|
+
], 64))), 256)) : ze != null && ze.startsWith("dropdown") && ((at = ie(w, P, ee, e.value)) != null && at.auth()) ? (n(), C(Ce, S({
|
|
3144
3144
|
key: 1,
|
|
3145
3145
|
ref_for: !0
|
|
3146
|
-
}, ie(
|
|
3146
|
+
}, ie(w, P, ee, e.value)), {
|
|
3147
3147
|
dropdown: h(() => [
|
|
3148
3148
|
Z(Ee, null, {
|
|
3149
3149
|
default: h(() => [
|
|
@@ -3152,11 +3152,11 @@ const Il = {
|
|
|
3152
3152
|
return n(), F(G, null, [
|
|
3153
3153
|
l.$slots[A.name + "-left"] ? y(l.$slots, A.name + "-left", {
|
|
3154
3154
|
key: 0,
|
|
3155
|
-
row:
|
|
3155
|
+
row: w,
|
|
3156
3156
|
column: P,
|
|
3157
3157
|
$index: ee
|
|
3158
3158
|
}, void 0, !0) : pe("", !0),
|
|
3159
|
-
A.attr.auth(
|
|
3159
|
+
A.attr.auth(w, P, ee, e.value) ? (n(), C(Q, S({
|
|
3160
3160
|
key: 1,
|
|
3161
3161
|
ref_for: !0
|
|
3162
3162
|
}, {
|
|
@@ -3166,7 +3166,7 @@ const Il = {
|
|
|
3166
3166
|
}), {
|
|
3167
3167
|
default: h(() => [
|
|
3168
3168
|
y(l.$slots, A.name, {
|
|
3169
|
-
row:
|
|
3169
|
+
row: w,
|
|
3170
3170
|
column: P,
|
|
3171
3171
|
$index: ee
|
|
3172
3172
|
}, () => [
|
|
@@ -3175,7 +3175,7 @@ const Il = {
|
|
|
3175
3175
|
title: A.label,
|
|
3176
3176
|
ref_for: !0
|
|
3177
3177
|
}, A.attr, {
|
|
3178
|
-
onClick: (It) => A.func(
|
|
3178
|
+
onClick: (It) => A.func(w, P, ee, e.value)
|
|
3179
3179
|
}), {
|
|
3180
3180
|
default: h(() => [
|
|
3181
3181
|
Me(ye(xe(A, ee)), 1)
|
|
@@ -3186,7 +3186,7 @@ const Il = {
|
|
|
3186
3186
|
title: A.label,
|
|
3187
3187
|
ref_for: !0
|
|
3188
3188
|
}, A.attr, {
|
|
3189
|
-
onClick: (It) => A.func(
|
|
3189
|
+
onClick: (It) => A.func(w, P, ee, e.value)
|
|
3190
3190
|
}), null, 16, ["title", "onClick"]))
|
|
3191
3191
|
], !0)
|
|
3192
3192
|
]),
|
|
@@ -3194,7 +3194,7 @@ const Il = {
|
|
|
3194
3194
|
}, 1040)) : pe("", !0),
|
|
3195
3195
|
l.$slots[A.name + "-right"] ? y(l.$slots, A.name + "-right", {
|
|
3196
3196
|
key: 2,
|
|
3197
|
-
row:
|
|
3197
|
+
row: w,
|
|
3198
3198
|
column: P,
|
|
3199
3199
|
$index: ee
|
|
3200
3200
|
}, void 0, !0) : pe("", !0)
|
|
@@ -3207,7 +3207,7 @@ const Il = {
|
|
|
3207
3207
|
default: h(() => {
|
|
3208
3208
|
var A;
|
|
3209
3209
|
return [
|
|
3210
|
-
Me(ye((A = ie(
|
|
3210
|
+
Me(ye((A = ie(w, P, ee, e.value)) == null ? void 0 : A.label) + " ", 1)
|
|
3211
3211
|
];
|
|
3212
3212
|
}),
|
|
3213
3213
|
_: 2
|
|
@@ -3215,13 +3215,13 @@ const Il = {
|
|
|
3215
3215
|
default: h(() => [
|
|
3216
3216
|
(n(!0), F(G, null, L(je, (A) => (n(), F(G, null, [
|
|
3217
3217
|
y(l.$slots, A.name + "-left", {
|
|
3218
|
-
row:
|
|
3218
|
+
row: w,
|
|
3219
3219
|
column: P,
|
|
3220
3220
|
$index: ee
|
|
3221
3221
|
}, void 0, !0),
|
|
3222
|
-
A.attr.auth(
|
|
3222
|
+
A.attr.auth(w, P, ee, e.value) ? y(l.$slots, A.name, {
|
|
3223
3223
|
key: 0,
|
|
3224
|
-
row:
|
|
3224
|
+
row: w,
|
|
3225
3225
|
column: P,
|
|
3226
3226
|
$index: ee
|
|
3227
3227
|
}, () => [
|
|
@@ -3230,7 +3230,7 @@ const Il = {
|
|
|
3230
3230
|
title: A.label,
|
|
3231
3231
|
ref_for: !0
|
|
3232
3232
|
}, A.attr, {
|
|
3233
|
-
onClick: (Oe) => A.func(
|
|
3233
|
+
onClick: (Oe) => A.func(w, P, ee, e.value)
|
|
3234
3234
|
}), {
|
|
3235
3235
|
default: h(() => [
|
|
3236
3236
|
Me(ye(xe(A, ee)), 1)
|
|
@@ -3241,11 +3241,11 @@ const Il = {
|
|
|
3241
3241
|
title: A.label,
|
|
3242
3242
|
ref_for: !0
|
|
3243
3243
|
}, A.attr, {
|
|
3244
|
-
onClick: (Oe) => A.func(
|
|
3244
|
+
onClick: (Oe) => A.func(w, P, ee, e.value)
|
|
3245
3245
|
}), null, 16, ["title", "onClick"]))
|
|
3246
3246
|
], !0) : pe("", !0),
|
|
3247
3247
|
y(l.$slots, A.name + "-right", {
|
|
3248
|
-
row:
|
|
3248
|
+
row: w,
|
|
3249
3249
|
column: P,
|
|
3250
3250
|
$index: ee
|
|
3251
3251
|
}, void 0, !0)
|
|
@@ -3256,7 +3256,7 @@ const Il = {
|
|
|
3256
3256
|
], 64);
|
|
3257
3257
|
}), 256)),
|
|
3258
3258
|
y(l.$slots, "control-right", {
|
|
3259
|
-
row:
|
|
3259
|
+
row: w,
|
|
3260
3260
|
column: P,
|
|
3261
3261
|
$index: ee
|
|
3262
3262
|
}, void 0, !0)
|
|
@@ -3267,26 +3267,26 @@ const Il = {
|
|
|
3267
3267
|
key: "1"
|
|
3268
3268
|
} : R.type != "selection" && R.type != "index" ? {
|
|
3269
3269
|
name: "default",
|
|
3270
|
-
fn: h(({ row:
|
|
3271
|
-
we(R,
|
|
3270
|
+
fn: h(({ row: w, column: P, $index: ee }) => [
|
|
3271
|
+
we(R, w, P, ee) && ee != -1 ? y(l.$slots, `${oe}`, {
|
|
3272
3272
|
key: 0,
|
|
3273
|
-
row:
|
|
3273
|
+
row: w,
|
|
3274
3274
|
column: P,
|
|
3275
3275
|
$index: ee
|
|
3276
3276
|
}, () => {
|
|
3277
3277
|
var Xe;
|
|
3278
3278
|
return [
|
|
3279
3279
|
(n(), C(pt, {
|
|
3280
|
-
modelValue:
|
|
3281
|
-
"onUpdate:modelValue": (Ge) =>
|
|
3282
|
-
item: R == null ? void 0 : R.table(
|
|
3280
|
+
modelValue: w[oe],
|
|
3281
|
+
"onUpdate:modelValue": (Ge) => w[oe] = Ge,
|
|
3282
|
+
item: R == null ? void 0 : R.table(w, P, ee),
|
|
3283
3283
|
ctrlKey: oe,
|
|
3284
3284
|
key: `${oe}-${ee} -${ve.value}`,
|
|
3285
|
-
ctrlType: (Xe = R.table(
|
|
3285
|
+
ctrlType: (Xe = R.table(w, P, ee)) != null && Xe.type ? R.table(w, P, ee).type : R.type,
|
|
3286
3286
|
model: e.value,
|
|
3287
3287
|
class: "g-ctrl-container",
|
|
3288
3288
|
t: "t",
|
|
3289
|
-
formInfo:
|
|
3289
|
+
formInfo: w
|
|
3290
3290
|
}, me({ _: 2 }, [
|
|
3291
3291
|
L(l.$slots, (Ge, je) => ({
|
|
3292
3292
|
name: je,
|
|
@@ -3302,7 +3302,7 @@ const Il = {
|
|
|
3302
3302
|
];
|
|
3303
3303
|
}, !0) : y(l.$slots, `${oe}`, {
|
|
3304
3304
|
key: 1,
|
|
3305
|
-
row:
|
|
3305
|
+
row: w,
|
|
3306
3306
|
column: P,
|
|
3307
3307
|
$index: ee
|
|
3308
3308
|
}, () => [
|
|
@@ -3310,7 +3310,7 @@ const Il = {
|
|
|
3310
3310
|
style: Ie([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, R == null ? void 0 : R.style]),
|
|
3311
3311
|
innerHTML: ne(
|
|
3312
3312
|
R,
|
|
3313
|
-
P.formatter(
|
|
3313
|
+
P.formatter(w, P, w[oe], ee)
|
|
3314
3314
|
)
|
|
3315
3315
|
}, null, 12, ta)
|
|
3316
3316
|
], !0)
|
|
@@ -3354,7 +3354,7 @@ const Il = {
|
|
|
3354
3354
|
var q, B, se, re;
|
|
3355
3355
|
const a = f, t = Pe(d, "modelValue"), e = kt(), i = le(
|
|
3356
3356
|
typeof ((q = e == null ? void 0 : e.tree) == null ? void 0 : q.width) == "number" ? `${e.tree.width}px` : ((B = e == null ? void 0 : e.tree) == null ? void 0 : B.width) || "180px"
|
|
3357
|
-
), E = le(((se = e == null ? void 0 : e.tree) == null ? void 0 : se.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), x = le({}), T = le(""), D = le(null),
|
|
3357
|
+
), E = le(((se = e == null ? void 0 : e.tree) == null ? void 0 : se.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), x = le({}), T = le(""), D = le(null), $ = (K, ve) => {
|
|
3358
3358
|
var be, ie;
|
|
3359
3359
|
if (!K) return !0;
|
|
3360
3360
|
const ge = ((ie = (be = e.tree) == null ? void 0 : be.props) == null ? void 0 : ie.label) || "label";
|
|
@@ -3384,7 +3384,7 @@ const Il = {
|
|
|
3384
3384
|
X("div", oa, [
|
|
3385
3385
|
Z(be, S({
|
|
3386
3386
|
style: { width: i.value },
|
|
3387
|
-
"filter-node-method":
|
|
3387
|
+
"filter-node-method": $,
|
|
3388
3388
|
"expand-on-click-node": !1,
|
|
3389
3389
|
ref_key: "treeRef",
|
|
3390
3390
|
ref: D,
|
|
@@ -3502,7 +3502,7 @@ const Da = {
|
|
|
3502
3502
|
var x, T, D;
|
|
3503
3503
|
return Ae(e, {
|
|
3504
3504
|
modelValue: i.value,
|
|
3505
|
-
"onUpdate:modelValue": (
|
|
3505
|
+
"onUpdate:modelValue": ($) => i.value = $,
|
|
3506
3506
|
appendToBody: !0,
|
|
3507
3507
|
draggable: !0,
|
|
3508
3508
|
"align-center": !0,
|
|
@@ -3662,11 +3662,11 @@ const he = {
|
|
|
3662
3662
|
});
|
|
3663
3663
|
}, $a = (d, f) => {
|
|
3664
3664
|
let a = !1, t, e, i, E;
|
|
3665
|
-
const x = (
|
|
3666
|
-
|
|
3667
|
-
}, T = (
|
|
3665
|
+
const x = ($) => {
|
|
3666
|
+
$.preventDefault(), a = !0, t = $.clientX, e = $.clientY, i = parseInt(document.defaultView.getComputedStyle(d).width), E = parseInt(document.defaultView.getComputedStyle(d).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", D);
|
|
3667
|
+
}, T = ($) => {
|
|
3668
3668
|
if (!a) return;
|
|
3669
|
-
const z = Math.max(300, i +
|
|
3669
|
+
const z = Math.max(300, i + $.clientX - t), te = Math.max(200, E + $.clientY - e);
|
|
3670
3670
|
d.style.width = `${z}px`, d.style.height = `${te}px`;
|
|
3671
3671
|
}, D = () => {
|
|
3672
3672
|
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", D);
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-30ecdb1c]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-30ecdb1c] .custom-upload img{width:100%;height:100%}[data-v-30ecdb1c] .custom-upload .el-upload--picture-card,[data-v-30ecdb1c] .custom-upload .el-upload-dragger,[data-v-30ecdb1c] .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-30ecdb1c] .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-30ecdb1c] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-30ecdb1c] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-30ecdb1c]:hover{background-color:#0003}.g-form-container[data-v-a6be53f9]{width:100%;display:flex;flex-direction:column}.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-
|
|
1
|
+
.custom-upload[data-v-30ecdb1c]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-30ecdb1c] .custom-upload img{width:100%;height:100%}[data-v-30ecdb1c] .custom-upload .el-upload--picture-card,[data-v-30ecdb1c] .custom-upload .el-upload-dragger,[data-v-30ecdb1c] .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-30ecdb1c] .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-30ecdb1c] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-30ecdb1c] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-30ecdb1c]:hover{background-color:#0003}.g-form-container[data-v-a6be53f9]{width:100%;display:flex;flex-direction:column}.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-23dc31e2]:hover{background:var(--el-border-color)}.allcheck a[data-v-23dc31e2]{cursor:pointer}.filtered[data-v-23dc31e2]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.g-table-container[data-v-62a9a1b9]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-62a9a1b9]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-62a9a1b9]{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-62a9a1b9]{cursor:pointer;color:var(--el-text-color)}.max[data-v-62a9a1b9]:hover{color:var(--el-color-primary)}.btns[data-v-62a9a1b9]{display:flex}[data-v-62a9a1b9] .drag-dialog{resize:both;overflow:auto}[data-v-62a9a1b9] .el-dialog__header,[data-v-62a9a1b9] .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}
|