|
|
@@ -1,47 +1,48 @@
|
|
|
-var ie = (g, R, b) => new Promise((f, v) => {
|
|
|
- var H = (m) => {
|
|
|
+var ie = ($, I, k) => new Promise((d, p) => {
|
|
|
+ var R = (f) => {
|
|
|
try {
|
|
|
- z(b.next(m));
|
|
|
- } catch (A) {
|
|
|
- v(A);
|
|
|
+ S(k.next(f));
|
|
|
+ } catch (O) {
|
|
|
+ p(O);
|
|
|
}
|
|
|
- }, W = (m) => {
|
|
|
+ }, H = (f) => {
|
|
|
try {
|
|
|
- z(b.throw(m));
|
|
|
- } catch (A) {
|
|
|
- v(A);
|
|
|
+ S(k.throw(f));
|
|
|
+ } catch (O) {
|
|
|
+ p(O);
|
|
|
}
|
|
|
- }, z = (m) => m.done ? f(m.value) : Promise.resolve(m.value).then(H, W);
|
|
|
- z((b = b.apply(g, R)).next());
|
|
|
+ }, S = (f) => f.done ? d(f.value) : Promise.resolve(f.value).then(R, H);
|
|
|
+ S((k = k.apply($, I)).next());
|
|
|
});
|
|
|
-import { ref as s, computed as re, watch as De, onMounted as Ne, onActivated as Le, nextTick as Y, resolveComponent as Z, resolveDirective as Be, openBlock as n, createElementBlock as a, createElementVNode as r, toDisplayString as _, createVNode as $, withCtx as y, Fragment as ue, renderList as ce, withDirectives as I, createBlock as O, createTextVNode as M, resolveDynamicComponent as Me, createCommentVNode as u, vShow as x, renderSlot as d, normalizeStyle as de, h as Pe } from "vue";
|
|
|
-import { n as Te, B as Fe, y as Ee, aA as Ue, ah as Ve, c$ as Ke } from "./index2.js";
|
|
|
-import { S as Ie } from "./index9.js";
|
|
|
-const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" }, Xe = { class: "list-layout-main" }, je = {
|
|
|
+import { ref as s, computed as re, watch as De, onMounted as Ne, onActivated as Le, nextTick as Y, resolveComponent as Z, resolveDirective as Be, openBlock as n, createElementBlock as a, createElementVNode as i, toDisplayString as h, createVNode as w, withCtx as v, Fragment as ue, renderList as ce, withDirectives as K, createBlock as C, createTextVNode as B, resolveDynamicComponent as Me, createCommentVNode as r, vShow as x, renderSlot as c, normalizeStyle as de, unref as Pe, h as Te } from "vue";
|
|
|
+import { c as Fe } from "./side-drag.js";
|
|
|
+import { n as Ue, B as Ve, y as Ee, aA as Ke, ah as Ie, c$ as Re } from "./index2.js";
|
|
|
+import { S as He } from "./index9.js";
|
|
|
+const je = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" }, Ge = { class: "list-layout-main" }, Je = {
|
|
|
key: 1,
|
|
|
class: "side-bar s-theme-bg"
|
|
|
-}, qe = {
|
|
|
+}, Qe = {
|
|
|
key: 2,
|
|
|
class: "layout-list-content"
|
|
|
-}, Ge = {
|
|
|
+}, Xe = {
|
|
|
key: 0,
|
|
|
class: "filter-content"
|
|
|
-}, Je = { class: "filter" }, Qe = {
|
|
|
+}, Ye = { class: "filter" }, Ze = {
|
|
|
key: 1,
|
|
|
class: "reset-wrap"
|
|
|
-}, Ye = {
|
|
|
+}, xe = {
|
|
|
key: 1,
|
|
|
class: "filter-more-content"
|
|
|
-}, Ze = {
|
|
|
+}, et = {
|
|
|
key: 2,
|
|
|
class: "desc-wrap"
|
|
|
-}, xe = { class: "table-content" }, et = { class: "table-container" }, tt = {
|
|
|
+}, tt = { class: "table-content" }, ot = { class: "table-container" }, nt = {
|
|
|
key: 0,
|
|
|
class: "s-card-header"
|
|
|
-}, ot = { class: "s-card-body" }, nt = { class: "s-card-footer" }, lt = {
|
|
|
+}, lt = { class: "s-card-body" }, st = { class: "s-card-footer" }, at = {
|
|
|
key: 3,
|
|
|
class: "layout-list-content"
|
|
|
-}, st = { class: "other" }, at = /* @__PURE__ */ Object.assign({ name: "SListCardLayout" }, {
|
|
|
+}, it = { class: "other" }, rt = /* @__PURE__ */ Object.assign({ name: "SListCardLayout" }, {
|
|
|
__name: "SListCardLayout",
|
|
|
props: {
|
|
|
// 每行卡片个数(不传默认每行 5 个)
|
|
|
@@ -122,8 +123,8 @@ const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" },
|
|
|
}
|
|
|
},
|
|
|
emits: ["reset", "btnCallback", "cardAction"],
|
|
|
- setup(g, { expose: R, emit: b }) {
|
|
|
- const f = g, v = b, H = s(null), W = s(null), z = s(null), m = s(null), A = s(null), pe = s(8), P = s(!1), D = s(!1), N = s(!1), L = s(20), T = s(232), fe = s(!1), C = s([]), S = s([]), B = s([]), F = s(0), w = s(1), E = s(!1), ve = {
|
|
|
+ setup($, { expose: I, emit: k }) {
|
|
|
+ const d = $, p = k, R = s(null), H = s(null), S = s(null), f = s(null), O = s(null), pe = s(8), M = s(!1), z = s(!1), A = s(!1), D = s(20), j = s(232), fe = s(!1), _ = s([]), b = s([]), N = s([]), P = s(0), m = s(1), T = s(!1), ye = {
|
|
|
add: "PlusCircleOutlined",
|
|
|
edit: "FormOutlined",
|
|
|
delete: "DeleteOutlined",
|
|
|
@@ -139,99 +140,99 @@ const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" },
|
|
|
TopOfType: "VerticalAlignTopOutlined",
|
|
|
TOP: "VerticalAlignTopOutlined",
|
|
|
synchronize: "SyncOutlined"
|
|
|
- }, ee = re(() => S.value.map((e) => e.key).includes("import")), X = re(() => S.value.find((e) => e.key === "import") || {});
|
|
|
+ }, ee = re(() => b.value.map((e) => e.key).includes("import")), q = re(() => b.value.find((e) => e.key === "import") || {});
|
|
|
De(
|
|
|
- () => f.buttons,
|
|
|
+ () => d.buttons,
|
|
|
(e) => {
|
|
|
- e && e.length && ye(e);
|
|
|
+ e && e.length && me(e);
|
|
|
},
|
|
|
{ immediate: !0, deep: !0 }
|
|
|
);
|
|
|
- function me(e, t = "") {
|
|
|
+ function ve(e, t = "") {
|
|
|
return !!(e && typeof e == "function");
|
|
|
}
|
|
|
function te(e) {
|
|
|
- return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && ve[e.key] || "";
|
|
|
+ return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && ye[e.key] || "";
|
|
|
}
|
|
|
- function ye(e) {
|
|
|
- S.value = e.map((t) => (t.key === "remove" && (fe.value = !0), t));
|
|
|
+ function me(e) {
|
|
|
+ b.value = e.map((t) => (t.key === "remove" && (fe.value = !0), t));
|
|
|
}
|
|
|
function we() {
|
|
|
Y(() => {
|
|
|
- Q(), L.value = f.pSize, U();
|
|
|
+ X(), D.value = d.pSize, F();
|
|
|
});
|
|
|
}
|
|
|
- function j() {
|
|
|
- D.value = !D.value, Q();
|
|
|
+ function W() {
|
|
|
+ z.value = !z.value, X();
|
|
|
}
|
|
|
- function q() {
|
|
|
- v("reset");
|
|
|
+ function G() {
|
|
|
+ p("reset");
|
|
|
}
|
|
|
- function G(e = !1) {
|
|
|
- U(e);
|
|
|
+ function J(e = !1) {
|
|
|
+ F(e);
|
|
|
}
|
|
|
- function U(e = !1) {
|
|
|
+ function F(e = !1) {
|
|
|
return ie(this, null, function* () {
|
|
|
- var t, l, i, h, p;
|
|
|
- if (typeof f.loadData == "function") {
|
|
|
- e && (w.value = 1), E.value = !0;
|
|
|
+ var t, l, y, L, U;
|
|
|
+ if (typeof d.loadData == "function") {
|
|
|
+ e && (m.value = 1), T.value = !0;
|
|
|
try {
|
|
|
- const c = (yield f.loadData({ pageNo: w.value, pageSize: Number(L.value) })) || {}, V = c.list || c.data || [];
|
|
|
- B.value = Array.isArray(V) ? V : [], F.value = (h = (i = (l = c.total) != null ? l : (t = c.pagination) == null ? void 0 : t.total) != null ? i : c.totalCount) != null ? h : 0;
|
|
|
- const K = c.pageNo || c.pageNum || ((p = c.pagination) == null ? void 0 : p.current);
|
|
|
- K && (w.value = K);
|
|
|
- } catch (c) {
|
|
|
- console.warn("[SListCardLayout] 卡片数据加载失败:", c), B.value = [], F.value = 0;
|
|
|
+ const u = (yield d.loadData({ pageNo: m.value, pageSize: Number(D.value) })) || {}, V = u.list || u.data || [];
|
|
|
+ N.value = Array.isArray(V) ? V : [], P.value = (L = (y = (l = u.total) != null ? l : (t = u.pagination) == null ? void 0 : t.total) != null ? y : u.totalCount) != null ? L : 0;
|
|
|
+ const E = u.pageNo || u.pageNum || ((U = u.pagination) == null ? void 0 : U.current);
|
|
|
+ E && (m.value = E);
|
|
|
+ } catch (u) {
|
|
|
+ console.warn("[SListCardLayout] 卡片数据加载失败:", u), N.value = [], P.value = 0;
|
|
|
} finally {
|
|
|
- E.value = !1;
|
|
|
+ T.value = !1;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function $e(e, t) {
|
|
|
- t && Number(t) !== Number(L.value) ? (L.value = Number(t), w.value = 1) : w.value = e, U();
|
|
|
+ t && Number(t) !== Number(D.value) ? (D.value = Number(t), m.value = 1) : m.value = e, F();
|
|
|
}
|
|
|
function oe(e, t, l) {
|
|
|
- v("cardAction", e, t, l);
|
|
|
+ p("cardAction", e, t, l);
|
|
|
}
|
|
|
function ge(e, t) {
|
|
|
- if (typeof f.rowKey == "function") return f.rowKey(e, t);
|
|
|
- const l = e == null ? void 0 : e[f.rowKey];
|
|
|
+ if (typeof d.rowKey == "function") return d.rowKey(e, t);
|
|
|
+ const l = e == null ? void 0 : e[d.rowKey];
|
|
|
return l == null || l === "" ? t : l;
|
|
|
}
|
|
|
function ne(e) {
|
|
|
- v("btnCallback", e.key, C.value);
|
|
|
+ p("btnCallback", e.key, _.value);
|
|
|
const t = be[e.key];
|
|
|
- typeof t == "function" ? t(e) : J(e);
|
|
|
+ typeof t == "function" ? t(e) : Q(e);
|
|
|
}
|
|
|
- function J(e) {
|
|
|
- if (e.selection !== !1 && !C.value.length) {
|
|
|
+ function Q(e) {
|
|
|
+ if (e.selection !== !1 && !_.value.length) {
|
|
|
window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
|
|
|
return;
|
|
|
}
|
|
|
- if (me(e.api, e.name, e.key)) {
|
|
|
+ if (ve(e.api, e.name, e.key)) {
|
|
|
if (e.confirm) {
|
|
|
window.$confirm({
|
|
|
title: `${e.name}`,
|
|
|
- content: () => Pe(
|
|
|
+ content: () => Te(
|
|
|
"div",
|
|
|
{ style: "color:var(--s-color-error)" },
|
|
|
`${window.$l("确认要")}{${window.$l(e.name)}}${window.$l("数据吗?")}`
|
|
|
),
|
|
|
onOk: () => {
|
|
|
- N.value = !0, e.api(C.value).then(() => {
|
|
|
- window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
|
|
|
+ A.value = !0, e.api(_.value).then(() => {
|
|
|
+ window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
|
|
|
}).finally(() => {
|
|
|
- N.value = !1;
|
|
|
+ A.value = !1;
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- N.value = !0, e.api(C.value).then(() => {
|
|
|
- window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
|
|
|
+ A.value = !0, e.api(_.value).then(() => {
|
|
|
+ window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
|
|
|
}).finally(() => {
|
|
|
- N.value = !1;
|
|
|
+ A.value = !1;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -241,28 +242,28 @@ const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" },
|
|
|
});
|
|
|
}
|
|
|
function se(e, t) {
|
|
|
- const l = S.value.find((i) => i.key === e);
|
|
|
+ const l = b.value.find((y) => y.key === e);
|
|
|
if (!l) {
|
|
|
console.error(`按钮(${e})未定义, 请确认该变更状态按钮是否设置正确`);
|
|
|
return;
|
|
|
}
|
|
|
- Object.keys(t).forEach((i) => {
|
|
|
- l[i] = t[i];
|
|
|
+ Object.keys(t).forEach((y) => {
|
|
|
+ l[y] = t[y];
|
|
|
});
|
|
|
}
|
|
|
function he() {
|
|
|
}
|
|
|
function ke(e) {
|
|
|
- J(e);
|
|
|
+ Q(e);
|
|
|
}
|
|
|
function _e() {
|
|
|
if (!ee.value) {
|
|
|
- v("btnCallback", "import");
|
|
|
+ p("btnCallback", "import");
|
|
|
return;
|
|
|
}
|
|
|
- P.value = !0;
|
|
|
+ M.value = !0;
|
|
|
}
|
|
|
- function Q() {
|
|
|
+ function X() {
|
|
|
Y(ae);
|
|
|
}
|
|
|
function ae() {
|
|
|
@@ -271,80 +272,64 @@ const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" },
|
|
|
add: he,
|
|
|
delete: ke,
|
|
|
import: _e,
|
|
|
- reload: G,
|
|
|
- filterReset: q,
|
|
|
- toggleFilter: j,
|
|
|
+ reload: J,
|
|
|
+ filterReset: G,
|
|
|
+ toggleFilter: W,
|
|
|
setStateBtn: le,
|
|
|
- handAction: J
|
|
|
- }, Ce = {
|
|
|
- mounted(e) {
|
|
|
- e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
|
|
|
- t.preventDefault();
|
|
|
- }), e.onmousedown = (t) => {
|
|
|
- const l = t.clientX, i = T.value;
|
|
|
- document.onmousemove = (h) => {
|
|
|
- const p = h.clientX - l;
|
|
|
- if (p < 0) {
|
|
|
- if (i + p <= 232) return;
|
|
|
- T.value = i + p;
|
|
|
- } else {
|
|
|
- if (i + p >= 500) return;
|
|
|
- T.value = i + p;
|
|
|
- }
|
|
|
- }, document.onmouseup = () => {
|
|
|
- document.onmousemove = document.onmousedown = null;
|
|
|
- };
|
|
|
- };
|
|
|
- }
|
|
|
- };
|
|
|
+ handAction: Q
|
|
|
+ }, Ce = Fe(
|
|
|
+ () => j.value,
|
|
|
+ (e) => j.value = e,
|
|
|
+ { min: 232 }
|
|
|
+ );
|
|
|
return Ne(() => {
|
|
|
we();
|
|
|
}), Le(() => {
|
|
|
Y(ae);
|
|
|
- }), R({
|
|
|
- reload: G,
|
|
|
- spinning: N,
|
|
|
- selectedRowKeys: C,
|
|
|
- renderButtons: S,
|
|
|
+ }), I({
|
|
|
+ reload: J,
|
|
|
+ spinning: A,
|
|
|
+ selectedRowKeys: _,
|
|
|
+ renderButtons: b,
|
|
|
setStateBtn: le,
|
|
|
btnCallback: ne,
|
|
|
- filterReset: q,
|
|
|
- toggleFilter: j,
|
|
|
- table: m,
|
|
|
- importVisible: P,
|
|
|
- measureLayout: Q,
|
|
|
+ filterReset: G,
|
|
|
+ toggleFilter: W,
|
|
|
+ table: f,
|
|
|
+ importVisible: M,
|
|
|
+ measureLayout: X,
|
|
|
// 卡片列表
|
|
|
- list: B,
|
|
|
- total: F,
|
|
|
- pageNo: w,
|
|
|
- fetchList: U
|
|
|
+ list: N,
|
|
|
+ total: P,
|
|
|
+ pageNo: m,
|
|
|
+ fetchList: F
|
|
|
}), (e, t) => {
|
|
|
- const l = Fe, i = Ie, h = Z("double-right-outlined"), p = Z("sync-outlined"), c = Ee, V = Ve, K = Ue, Se = Ke, Oe = Z("s-import-modal"), ze = Be("action");
|
|
|
+ const l = Ve, y = He, L = Z("double-right-outlined"), U = Z("sync-outlined"), u = Ee, V = Ie, E = Ke, Se = Re, Oe = Z("s-import-modal"), ze = Be("action");
|
|
|
return n(), a("div", {
|
|
|
class: "list-layout",
|
|
|
ref_key: "layout",
|
|
|
- ref: H
|
|
|
+ ref: R
|
|
|
}, [
|
|
|
- r("div", Re, [
|
|
|
- r("div", He, _(g.title), 1),
|
|
|
- r("div", We, [
|
|
|
- $(i, { size: pe.value }, {
|
|
|
- default: y(() => [
|
|
|
- (n(!0), a(ue, null, ce(S.value, (o) => (n(), a("span", {
|
|
|
+ i("div", je, [
|
|
|
+ i("div", qe, h($.title), 1),
|
|
|
+ i("div", We, [
|
|
|
+ w(y, { size: pe.value }, {
|
|
|
+ default: v(() => [
|
|
|
+ (n(!0), a(ue, null, ce(b.value, (o) => (n(), a("span", {
|
|
|
class: "item-btn",
|
|
|
key: o.key
|
|
|
}, [
|
|
|
- I((n(), O(l, {
|
|
|
+ K((n(), C(l, {
|
|
|
class: "btn",
|
|
|
disabled: !!o.disabled,
|
|
|
type: o.type || o.key === "add" ? "primary" : "default",
|
|
|
- onClick: (k) => ne(o)
|
|
|
+ onClick: (g) => ne(o)
|
|
|
}, {
|
|
|
- icon: y(() => [
|
|
|
- te(o) ? (n(), O(Me(te(o)), { key: 0 })) : u("", !0)
|
|
|
+ icon: v(() => [
|
|
|
+ te(o) ? (n(), C(Me(te(o)), { key: 0 })) : r("", !0)
|
|
|
]),
|
|
|
- default: y(() => [
|
|
|
- M(" " + _(e.$l(o.name)), 1)
|
|
|
+ default: v(() => [
|
|
|
+ B(" " + h(e.$l(o.name)), 1)
|
|
|
]),
|
|
|
_: 2
|
|
|
}, 1032, ["disabled", "type", "onClick"])), [
|
|
|
@@ -352,197 +337,197 @@ const Re = { class: "tools" }, He = { class: "title" }, We = { class: "btns" },
|
|
|
[x, o.show !== !1]
|
|
|
])
|
|
|
]))), 128)),
|
|
|
- d(e.$slots, "otherBtns", { selections: C.value }, void 0, !0)
|
|
|
+ c(e.$slots, "otherBtns", { selections: _.value }, void 0, !0)
|
|
|
]),
|
|
|
_: 3
|
|
|
}, 8, ["size"])
|
|
|
])
|
|
|
]),
|
|
|
- r("div", Xe, [
|
|
|
+ i("div", Ge, [
|
|
|
e.$slots.tree ? (n(), a("div", {
|
|
|
key: 0,
|
|
|
class: "side s-side-tree",
|
|
|
ref: "side",
|
|
|
- style: de([{ width: T.value + "px" }, { "overflow-y": "auto" }])
|
|
|
+ style: de([{ width: j.value + "px" }, { "overflow-y": "auto" }])
|
|
|
}, [
|
|
|
- d(e.$slots, "tree", {}, void 0, !0)
|
|
|
- ], 4)) : u("", !0),
|
|
|
- e.$slots.tree ? I((n(), a("div", je, null, 512)), [
|
|
|
- [Ce]
|
|
|
- ]) : u("", !0),
|
|
|
- e.$slots.empty ? (n(), a("div", lt, [
|
|
|
- d(e.$slots, "empty", {}, void 0, !0)
|
|
|
- ])) : (n(), a("div", qe, [
|
|
|
- I(r("div", {
|
|
|
+ c(e.$slots, "tree", {}, void 0, !0)
|
|
|
+ ], 4)) : r("", !0),
|
|
|
+ e.$slots.tree ? K((n(), a("div", Je, null, 512)), [
|
|
|
+ [Pe(Ce)]
|
|
|
+ ]) : r("", !0),
|
|
|
+ e.$slots.empty ? (n(), a("div", at, [
|
|
|
+ c(e.$slots, "empty", {}, void 0, !0)
|
|
|
+ ])) : (n(), a("div", Qe, [
|
|
|
+ K(i("div", {
|
|
|
class: "list-filter-wrap",
|
|
|
ref_key: "filters",
|
|
|
- ref: W
|
|
|
+ ref: H
|
|
|
}, [
|
|
|
- e.$slots.filter ? (n(), a("div", Ge, [
|
|
|
- r("div", Je, [
|
|
|
- d(e.$slots, "filter", {}, void 0, !0)
|
|
|
+ e.$slots.filter ? (n(), a("div", Xe, [
|
|
|
+ i("div", Ye, [
|
|
|
+ c(e.$slots, "filter", {}, void 0, !0)
|
|
|
]),
|
|
|
e.$slots.filterMore ? (n(), a("a", {
|
|
|
key: 0,
|
|
|
class: "filter-more-btn",
|
|
|
- onClick: j
|
|
|
+ onClick: W
|
|
|
}, [
|
|
|
- M(_(D.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
|
|
|
- D.value ? (n(), O(h, {
|
|
|
+ B(h(z.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
|
|
|
+ z.value ? (n(), C(L, {
|
|
|
key: 1,
|
|
|
style: { "font-size": "12px", transform: "rotate(-90deg)" }
|
|
|
- })) : (n(), O(h, {
|
|
|
+ })) : (n(), C(L, {
|
|
|
key: 0,
|
|
|
style: { "font-size": "12px", transform: "rotate(90deg)" }
|
|
|
}))
|
|
|
- ])) : u("", !0),
|
|
|
- e.$slots.filter ? (n(), a("div", Qe, [
|
|
|
- $(c, {
|
|
|
+ ])) : r("", !0),
|
|
|
+ e.$slots.filter ? (n(), a("div", Ze, [
|
|
|
+ w(u, {
|
|
|
placement: "top",
|
|
|
overlayStyle: { maxWidth: "500px" },
|
|
|
mouseEnterDelay: 1.5,
|
|
|
mouseLeaveDelay: 0.5
|
|
|
}, {
|
|
|
- title: y(() => [
|
|
|
- r("span", null, _(e.$l("条件重置")), 1)
|
|
|
+ title: v(() => [
|
|
|
+ i("span", null, h(e.$l("条件重置")), 1)
|
|
|
]),
|
|
|
- default: y(() => [
|
|
|
- $(l, {
|
|
|
+ default: v(() => [
|
|
|
+ w(l, {
|
|
|
style: { "padding-bottom": "2px" },
|
|
|
- onClick: q
|
|
|
+ onClick: G
|
|
|
}, {
|
|
|
- icon: y(() => [
|
|
|
- $(p)
|
|
|
+ icon: v(() => [
|
|
|
+ w(U)
|
|
|
]),
|
|
|
_: 1
|
|
|
})
|
|
|
]),
|
|
|
_: 1
|
|
|
})
|
|
|
- ])) : u("", !0)
|
|
|
- ])) : u("", !0),
|
|
|
- e.$slots.filterMore ? I((n(), a("div", Ye, [
|
|
|
- d(e.$slots, "filterMore", {}, void 0, !0)
|
|
|
+ ])) : r("", !0)
|
|
|
+ ])) : r("", !0),
|
|
|
+ e.$slots.filterMore ? K((n(), a("div", xe, [
|
|
|
+ c(e.$slots, "filterMore", {}, void 0, !0)
|
|
|
], 512)), [
|
|
|
- [x, D.value]
|
|
|
- ]) : u("", !0),
|
|
|
- e.$slots.desc ? (n(), a("div", Ze, [
|
|
|
- d(e.$slots, "desc", {}, void 0, !0)
|
|
|
- ])) : u("", !0)
|
|
|
+ [x, z.value]
|
|
|
+ ]) : r("", !0),
|
|
|
+ e.$slots.desc ? (n(), a("div", et, [
|
|
|
+ c(e.$slots, "desc", {}, void 0, !0)
|
|
|
+ ])) : r("", !0)
|
|
|
], 512), [
|
|
|
[x, e.$slots.filter]
|
|
|
]),
|
|
|
- r("div", xe, [
|
|
|
+ i("div", tt, [
|
|
|
e.$slots.tabs ? (n(), a("div", {
|
|
|
key: 0,
|
|
|
class: "tabs-wrap",
|
|
|
ref_key: "tabs",
|
|
|
- ref: z
|
|
|
+ ref: S
|
|
|
}, [
|
|
|
- d(e.$slots, "tabs", {}, void 0, !0)
|
|
|
- ], 512)) : u("", !0),
|
|
|
- r("div", et, [
|
|
|
- $(K, { spinning: E.value }, {
|
|
|
- default: y(() => [
|
|
|
- r("div", {
|
|
|
+ c(e.$slots, "tabs", {}, void 0, !0)
|
|
|
+ ], 512)) : r("", !0),
|
|
|
+ i("div", ot, [
|
|
|
+ w(E, { spinning: T.value }, {
|
|
|
+ default: v(() => [
|
|
|
+ i("div", {
|
|
|
class: "s-card-grid",
|
|
|
- style: de({ gridTemplateColumns: `repeat(${g.column}, 1fr)` })
|
|
|
+ style: de({ gridTemplateColumns: `repeat(${$.column}, 1fr)` })
|
|
|
}, [
|
|
|
- (n(!0), a(ue, null, ce(B.value, (o, k) => (n(), a("div", {
|
|
|
+ (n(!0), a(ue, null, ce(N.value, (o, g) => (n(), a("div", {
|
|
|
class: "s-card-item",
|
|
|
- key: ge(o, k)
|
|
|
+ key: ge(o, g)
|
|
|
}, [
|
|
|
- e.$slots.cardHeader || o.title ? (n(), a("div", tt, [
|
|
|
- d(e.$slots, "cardHeader", {
|
|
|
+ e.$slots.cardHeader || o.title ? (n(), a("div", nt, [
|
|
|
+ c(e.$slots, "cardHeader", {
|
|
|
item: o,
|
|
|
- index: k
|
|
|
+ index: g
|
|
|
}, () => [
|
|
|
- M(_(o.title), 1)
|
|
|
+ B(h(o.title), 1)
|
|
|
], !0)
|
|
|
- ])) : u("", !0),
|
|
|
- r("div", ot, [
|
|
|
- d(e.$slots, "default", {
|
|
|
+ ])) : r("", !0),
|
|
|
+ i("div", lt, [
|
|
|
+ c(e.$slots, "default", {
|
|
|
item: o,
|
|
|
- index: k
|
|
|
+ index: g
|
|
|
}, void 0, !0)
|
|
|
]),
|
|
|
- r("div", nt, [
|
|
|
- d(e.$slots, "cardFooter", {
|
|
|
+ i("div", st, [
|
|
|
+ c(e.$slots, "cardFooter", {
|
|
|
item: o,
|
|
|
- index: k
|
|
|
+ index: g
|
|
|
}, () => [
|
|
|
- $(l, {
|
|
|
+ w(l, {
|
|
|
type: "link",
|
|
|
size: "small",
|
|
|
- onClick: (Ae) => oe("edit", o, k)
|
|
|
+ onClick: (Ae) => oe("edit", o, g)
|
|
|
}, {
|
|
|
- default: y(() => [
|
|
|
- M(_(e.$l("编辑")), 1)
|
|
|
+ default: v(() => [
|
|
|
+ B(h(e.$l("编辑")), 1)
|
|
|
]),
|
|
|
_: 1
|
|
|
}, 8, ["onClick"]),
|
|
|
- $(l, {
|
|
|
+ w(l, {
|
|
|
type: "link",
|
|
|
size: "small",
|
|
|
danger: "",
|
|
|
- onClick: (Ae) => oe("delete", o, k)
|
|
|
+ onClick: (Ae) => oe("delete", o, g)
|
|
|
}, {
|
|
|
- default: y(() => [
|
|
|
- M(_(e.$l("删除")), 1)
|
|
|
+ default: v(() => [
|
|
|
+ B(h(e.$l("删除")), 1)
|
|
|
]),
|
|
|
_: 1
|
|
|
}, 8, ["onClick"])
|
|
|
], !0)
|
|
|
])
|
|
|
]))), 128)),
|
|
|
- !E.value && !B.value.length ? (n(), O(V, {
|
|
|
+ !T.value && !N.value.length ? (n(), C(V, {
|
|
|
key: 0,
|
|
|
class: "s-card-empty",
|
|
|
description: e.$l("暂无数据")
|
|
|
- }, null, 8, ["description"])) : u("", !0)
|
|
|
+ }, null, 8, ["description"])) : r("", !0)
|
|
|
], 4)
|
|
|
]),
|
|
|
_: 3
|
|
|
}, 8, ["spinning"])
|
|
|
]),
|
|
|
- g.showPagination ? (n(), a("div", {
|
|
|
+ $.showPagination ? (n(), a("div", {
|
|
|
key: 1,
|
|
|
class: "s-card-pagination",
|
|
|
ref_key: "pager",
|
|
|
- ref: A
|
|
|
+ ref: O
|
|
|
}, [
|
|
|
- $(Se, {
|
|
|
+ w(Se, {
|
|
|
size: "small",
|
|
|
- current: w.value,
|
|
|
- "onUpdate:current": t[0] || (t[0] = (o) => w.value = o),
|
|
|
- "page-size": Number(L.value),
|
|
|
- total: F.value,
|
|
|
+ current: m.value,
|
|
|
+ "onUpdate:current": t[0] || (t[0] = (o) => m.value = o),
|
|
|
+ "page-size": Number(D.value),
|
|
|
+ total: P.value,
|
|
|
"show-size-changer": "",
|
|
|
- "page-size-options": g.pageSizeOptions,
|
|
|
+ "page-size-options": $.pageSizeOptions,
|
|
|
"show-total": (o) => `${e.$l("共")}${o}${e.$l("条")}`,
|
|
|
onChange: $e
|
|
|
}, null, 8, ["current", "page-size", "total", "page-size-options", "show-total"])
|
|
|
- ], 512)) : u("", !0)
|
|
|
+ ], 512)) : r("", !0)
|
|
|
])
|
|
|
]))
|
|
|
]),
|
|
|
- r("div", st, [
|
|
|
- d(e.$slots, "other", {}, void 0, !0)
|
|
|
+ i("div", it, [
|
|
|
+ c(e.$slots, "other", {}, void 0, !0)
|
|
|
]),
|
|
|
- ee.value ? (n(), O(Oe, {
|
|
|
+ ee.value ? (n(), C(Oe, {
|
|
|
key: 0,
|
|
|
ref: "importModalRef",
|
|
|
- "upload-url": X.value.importUploadUrl,
|
|
|
- value: P.value,
|
|
|
- "onUpdate:value": t[1] || (t[1] = (o) => P.value = o),
|
|
|
- columns: X.value.importColumns,
|
|
|
- apis: X.value.importApis,
|
|
|
- onReload: G
|
|
|
- }, null, 8, ["upload-url", "value", "columns", "apis"])) : u("", !0)
|
|
|
+ "upload-url": q.value.importUploadUrl,
|
|
|
+ value: M.value,
|
|
|
+ "onUpdate:value": t[1] || (t[1] = (o) => M.value = o),
|
|
|
+ columns: q.value.importColumns,
|
|
|
+ apis: q.value.importApis,
|
|
|
+ onReload: J
|
|
|
+ }, null, 8, ["upload-url", "value", "columns", "apis"])) : r("", !0)
|
|
|
], 512);
|
|
|
};
|
|
|
}
|
|
|
-}), dt = /* @__PURE__ */ Te(at, [["__scopeId", "data-v-e3ccd798"]]);
|
|
|
+}), yt = /* @__PURE__ */ Ue(rt, [["__scopeId", "data-v-4a4dd24f"]]);
|
|
|
export {
|
|
|
- dt as default
|
|
|
+ yt as default
|
|
|
};
|