2 Commits 3d5c9ab061 ... 3a18eeafd9

Autor SHA1 Mensagem Data
  diry 3a18eeafd9 'deploy' 5 dias atrás
  diry 3d5c9ab061 'deploy' 5 dias atrás

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
lib/config.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
lib/css/style.css


+ 1 - 1
lib/js/403.js

@@ -42,7 +42,7 @@ const k = { class: "s-403" }, A = { class: "s-403__main" }, $ = { class: "s-403_
       ])
     ]));
   }
-}), H = /* @__PURE__ */ y(B, [["__scopeId", "data-v-1d322113"]]);
+}), H = /* @__PURE__ */ y(B, [["__scopeId", "data-v-0123e96e"]]);
 export {
   H as default
 };

+ 5 - 5
lib/js/500.js

@@ -1,7 +1,7 @@
 import { computed as l, openBlock as d, createElementBlock as p, createElementVNode as s, toDisplayString as _ } from "vue";
 import { useRoute as u, useRouter as m } from "vue-router";
 import { n as g } from "./index2.js";
-const h = { class: "s-500" }, v = { class: "s-500__main" }, w = { class: "s-500__title" }, f = { class: "s-500__desc" }, b = { class: "s-500__path" }, k = { class: "s-500__path-label" }, y = { class: "s-500__path-value" }, A = { class: "s-500__actions" }, $ = /* @__PURE__ */ Object.assign({ name: "AUth500" }, {
+const h = { class: "s-500" }, f = { class: "s-500__main" }, v = { class: "s-500__title" }, w = { class: "s-500__desc" }, b = { class: "s-500__path" }, k = { class: "s-500__path-label" }, y = { class: "s-500__path-value" }, A = { class: "s-500__actions" }, $ = /* @__PURE__ */ Object.assign({ name: "AUth500" }, {
   __name: "500",
   setup(P) {
     window.useI18n && window.useI18n("pages");
@@ -20,14 +20,14 @@ const h = { class: "s-500" }, v = { class: "s-500__main" }, w = { class: "s-500_
         s("div", { class: "s-500__glow s-500__glow--b" }),
         s("div", { class: "s-500__grid" })
       ], -1)),
-      s("main", v, [
+      s("main", f, [
         t[0] || (t[0] = s("div", { class: "s-500__visual" }, [
           s("span", { class: "s-500__ring" }),
           s("span", { class: "s-500__ring s-500__ring--inner" }),
           s("span", { class: "s-500__code" }, "500")
         ], -1)),
-        s("h1", w, _(o.$l("接口出错了")), 1),
-        s("p", f, _(o.$l("您当前访问的接口出错了,请稍后再试。")), 1),
+        s("h1", v, _(o.$l("接口出错了")), 1),
+        s("p", w, _(o.$l("您当前访问的接口出错了,请稍后再试。")), 1),
         s("div", b, [
           s("span", k, _(o.$l(c.value)), 1),
           s("code", y, _(i.value), 1)
@@ -45,7 +45,7 @@ const h = { class: "s-500" }, v = { class: "s-500__main" }, w = { class: "s-500_
       ])
     ]));
   }
-}), T = /* @__PURE__ */ g($, [["__scopeId", "data-v-15a5d2b1"]]);
+}), T = /* @__PURE__ */ g($, [["__scopeId", "data-v-9cf26fb2"]]);
 export {
   T as default
 };

+ 5 - 5
lib/js/SCollapsesItem.js

@@ -1,6 +1,6 @@
 import { computed as y, ref as i, onMounted as g, resolveComponent as r, openBlock as t, createElementBlock as c, normalizeStyle as u, createElementVNode as n, createBlock as d, toDisplayString as C, createCommentVNode as S, withDirectives as k, renderSlot as h, vShow as w } from "vue";
-import { n as b } from "./index2.js";
-const x = ["id"], I = { class: "epxand" }, B = /* @__PURE__ */ Object.assign({ name: "CollapsesItem" }, {
+import { n as x } from "./index2.js";
+const I = ["id"], b = { class: "epxand" }, B = /* @__PURE__ */ Object.assign({ name: "CollapsesItem" }, {
   __name: "SCollapsesItem",
   props: {
     title: {
@@ -36,11 +36,11 @@ const x = ["id"], I = { class: "epxand" }, B = /* @__PURE__ */ Object.assign({ n
           onClick: a[0] || (a[0] = ($) => e.value = !e.value),
           id: p()
         }, [
-          n("div", I, [
+          n("div", b, [
             e.value ? (t(), d(v, { key: 0 })) : (t(), d(_, { key: 1 }))
           ]),
           n("div", null, C(l.title), 1)
-        ], 8, x)) : S("", !0),
+        ], 8, I)) : S("", !0),
         k(n("div", {
           class: "s-collapses-item-content",
           style: u({
@@ -56,7 +56,7 @@ const x = ["id"], I = { class: "epxand" }, B = /* @__PURE__ */ Object.assign({ n
       ], 4);
     };
   }
-}), N = /* @__PURE__ */ b(B, [["__scopeId", "data-v-aecbb5f1"]]);
+}), N = /* @__PURE__ */ x(B, [["__scopeId", "data-v-858feb6e"]]);
 export {
   N as default
 };

+ 20 - 20
lib/js/SCopperUpload.js

@@ -1,17 +1,17 @@
 var K = (r, _, g) => new Promise((n, T) => {
-  var k = (d) => {
+  var k = (c) => {
     try {
-      b(g.next(d));
+      b(g.next(c));
     } catch (C) {
       T(C);
     }
-  }, c = (d) => {
+  }, d = (c) => {
     try {
-      b(g.throw(d));
+      b(g.throw(c));
     } catch (C) {
       T(C);
     }
-  }, b = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(k, c);
+  }, b = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(k, d);
   b((g = g.apply(r, _)).next());
 });
 import { computed as R, ref as x, watch as be, openBlock as i, createElementBlock as w, normalizeClass as I, createElementVNode as y, toDisplayString as B, createCommentVNode as u, createVNode as D, unref as v, normalizeStyle as ke, withCtx as ee, Fragment as le, createBlock as m, resolveDynamicComponent as te, withDirectives as Ce, withModifiers as O, vShow as $e } from "vue";
@@ -176,7 +176,7 @@ const Me = {
   },
   emits: ["change", "handChange", "dragChange", "download"],
   setup(r, { emit: _ }) {
-    const g = _, n = r, T = R(() => n.readonly || n.detailMode), k = R(() => n.readonly || n.detailMode), c = R(() => n.listType !== "list"), b = R(() => n.isAdd && !k.value && !n.noDrag), d = R(() => n.isAdd && !k.value && n.showRemove), C = () => n.path || n.businessTableName, re = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "avif", "tif", "tiff"], ue = {
+    const g = _, n = r, T = R(() => n.readonly || n.detailMode), k = R(() => n.readonly || n.detailMode), d = R(() => n.listType !== "list"), b = R(() => n.isAdd && !k.value && !n.noDrag), c = R(() => n.isAdd && !k.value && n.showRemove), C = () => n.path || n.businessTableName, re = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "avif", "tif", "tiff"], ue = {
       pdf: Ee,
       doc: N,
       docx: N,
@@ -238,8 +238,8 @@ const Me = {
     );
     const P = () => {
       g("change", s.value), g("handChange", s.value);
-    }, ce = (e) => {
     }, de = (e) => {
+    }, ce = (e) => {
       s.value && s.value.length > 1 && s.value.forEach((t, l) => {
         t.sort = l;
       }), g("dragChange", s.value), P();
@@ -310,9 +310,9 @@ const Me = {
         P();
       });
     }), ye = (e) => {
-      c.value && (e.showTool = !0);
+      d.value && (e.showTool = !0);
     }, he = (e) => {
-      c.value && (e.showTool = !1);
+      d.value && (e.showTool = !1);
     }, J = (e, t) => {
       s.value.splice(e, 1), Re(C(), t.imageUrl || t.uid), P();
     }, Q = (e = {}) => {
@@ -350,10 +350,10 @@ const Me = {
       D(v(Oe), {
         modelValue: s.value,
         "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
-        onStart: ce,
-        onEnd: de,
+        onStart: de,
+        onEnd: ce,
         handle: ".move",
-        class: I(c.value ? "img-list-wrap" : "file-list-wrap"),
+        class: I(d.value ? "img-list-wrap" : "file-list-wrap"),
         style: ke(r.picStyle),
         disabled: !b.value,
         "item-key": "uid"
@@ -361,11 +361,11 @@ const Me = {
         item: ee(({ element: l, index: a }) => [
           (i(), w("div", {
             key: l.uid || a,
-            class: I(c.value ? "img-item-wrap" : "file-row"),
+            class: I(d.value ? "img-item-wrap" : "file-row"),
             onMouseover: (o) => ye(l),
             onMouseleave: (o) => he(l)
           }, [
-            c.value ? (i(), w(le, { key: 0 }, [
+            d.value ? (i(), w(le, { key: 0 }, [
               H(l) ? (i(), w("img", {
                 key: 0,
                 class: "upload-img-wrap",
@@ -389,7 +389,7 @@ const Me = {
                     title: e.$l("下载"),
                     onClick: O((o) => Y(l), ["stop"])
                   }, null, 8, ["title", "onClick"])) : u("", !0),
-                  d.value ? (i(), m(v(ne), {
+                  c.value ? (i(), m(v(ne), {
                     key: 2,
                     class: "tool-icon-wrap",
                     title: e.$l("删除"),
@@ -422,7 +422,7 @@ const Me = {
                   title: e.$l("下载"),
                   onClick: O((o) => Y(l), ["stop"])
                 }, null, 8, ["title", "onClick"])) : u("", !0),
-                d.value ? (i(), m(v(ne), {
+                c.value ? (i(), m(v(ne), {
                   key: 2,
                   class: "file-action",
                   title: e.$l("删除"),
@@ -440,13 +440,13 @@ const Me = {
         footer: ee(() => [
           s.value.length < r.maxFileCount && r.isAdd && !k.value ? (i(), w("div", {
             key: 0,
-            class: I(c.value ? "img-add-wrap" : "file-add-wrap"),
+            class: I(d.value ? "img-add-wrap" : "file-add-wrap"),
             onClick: pe
           }, [
             D(v(Ie), {
-              class: I(c.value ? "plus-icon" : "plus-icon plus-icon-small")
+              class: I(d.value ? "plus-icon" : "plus-icon plus-icon-small")
             }, null, 8, ["class"]),
-            c.value ? u("", !0) : (i(), w("span", Ge, B(e.$l("上传文件")), 1)),
+            d.value ? u("", !0) : (i(), w("span", Ge, B(e.$l("上传文件")), 1)),
             y("input", {
               accept: r.accept || "image/*",
               multiple: !0,
@@ -475,7 +475,7 @@ const Me = {
       }, null, 512)
     ], 2));
   }
-}, tl = /* @__PURE__ */ xe(We, [["__scopeId", "data-v-64e419f4"]]);
+}, tl = /* @__PURE__ */ xe(We, [["__scopeId", "data-v-600b5bd0"]]);
 export {
   tl as default
 };

+ 21 - 21
lib/js/SDraggerUpload.js

@@ -1,17 +1,17 @@
 var J = (u, _, m) => new Promise((i, M) => {
-  var b = (r) => {
+  var b = (c) => {
     try {
-      y(m.next(r));
+      y(m.next(c));
     } catch (k) {
       M(k);
     }
-  }, c = (r) => {
+  }, r = (c) => {
     try {
-      y(m.throw(r));
+      y(m.throw(c));
     } catch (k) {
       M(k);
     }
-  }, y = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(b, c);
+  }, y = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(b, r);
   y((m = m.apply(u, _)).next());
 });
 import { computed as U, ref as A, watch as ve, openBlock as o, createElementBlock as g, normalizeClass as x, createElementVNode as w, toDisplayString as I, createCommentVNode as d, createVNode as j, unref as p, normalizeStyle as me, withCtx as Q, Fragment as Y, createBlock as v, resolveDynamicComponent as ee, withDirectives as ge, withModifiers as C, vShow as we } from "vue";
@@ -159,7 +159,7 @@ const Ue = {
   },
   emits: ["change", "handChange", "dragChange", "download"],
   setup(u, { emit: _ }) {
-    const m = _, i = u, M = U(() => i.readonly || i.detailMode), b = U(() => i.readonly || i.detailMode), c = U(() => i.listType !== "list"), y = U(() => i.isAdd && !b.value && !i.noDrag), r = U(() => i.isAdd && !b.value && i.showRemove), k = () => i.path || i.businessTableName, ie = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "avif", "tif", "tiff"], se = {
+    const m = _, i = u, M = U(() => i.readonly || i.detailMode), b = U(() => i.readonly || i.detailMode), r = U(() => i.listType !== "list"), y = U(() => i.isAdd && !b.value && !i.noDrag), c = U(() => i.isAdd && !b.value && i.showRemove), k = () => i.path || i.businessTableName, ie = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg", "ico", "avif", "tif", "tiff"], se = {
       pdf: Se,
       doc: R,
       docx: R,
@@ -226,9 +226,9 @@ const Ue = {
       s.value && s.value.length > 1 && s.value.forEach((t, l) => {
         t.sort = l;
       }), m("dragChange", s.value), P();
-    }, ce = () => {
+    }, re = () => {
       S.value && S.value.click();
-    }, S = A(null), re = (e) => {
+    }, S = A(null), ce = (e) => {
       const t = e.target.files;
       if (t && t.length && s.value.length + t.length > i.maxFileCount) {
         window.$message.warning(
@@ -259,9 +259,9 @@ const Ue = {
         S.value && (S.value.value = "");
       });
     }, fe = (e) => {
-      c.value && (e.showTool = !0);
+      r.value && (e.showTool = !0);
     }, pe = (e) => {
-      c.value && (e.showTool = !1);
+      r.value && (e.showTool = !1);
     }, W = (e, t) => {
       s.value.splice(e, 1), ke(k(), t.imageUrl || t.uid), P();
     }, X = (e = {}) => {
@@ -302,7 +302,7 @@ const Ue = {
         onStart: ue,
         onEnd: de,
         handle: ".move",
-        class: x(c.value ? "img-list-wrap" : "file-list-wrap"),
+        class: x(r.value ? "img-list-wrap" : "file-list-wrap"),
         style: me(u.picStyle),
         disabled: !y.value,
         "item-key": "uid"
@@ -310,11 +310,11 @@ const Ue = {
         item: Q(({ element: l, index: a }) => [
           (o(), g("div", {
             key: l.uid || a,
-            class: x(c.value ? "img-item-wrap" : "file-row"),
+            class: x(r.value ? "img-item-wrap" : "file-row"),
             onMouseover: (n) => fe(l),
             onMouseleave: (n) => pe(l)
           }, [
-            c.value ? (o(), g(Y, { key: 0 }, [
+            r.value ? (o(), g(Y, { key: 0 }, [
               q(l) ? (o(), g("img", {
                 key: 0,
                 class: "upload-img-wrap",
@@ -338,7 +338,7 @@ const Ue = {
                     title: e.$l("下载"),
                     onClick: C((n) => Z(l), ["stop"])
                   }, null, 8, ["title", "onClick"])) : d("", !0),
-                  r.value ? (o(), v(p(ae), {
+                  c.value ? (o(), v(p(ae), {
                     key: 2,
                     class: "tool-icon-wrap",
                     title: e.$l("删除"),
@@ -371,7 +371,7 @@ const Ue = {
                   title: e.$l("下载"),
                   onClick: C((n) => Z(l), ["stop"])
                 }, null, 8, ["title", "onClick"])) : d("", !0),
-                r.value ? (o(), v(p(ae), {
+                c.value ? (o(), v(p(ae), {
                   key: 2,
                   class: "file-action",
                   title: e.$l("删除"),
@@ -389,13 +389,13 @@ const Ue = {
         footer: Q(() => [
           s.value.length < u.maxFileCount && u.isAdd && !b.value ? (o(), g("div", {
             key: 0,
-            class: x(c.value ? "img-add-wrap" : "file-add-wrap"),
-            onClick: ce
+            class: x(r.value ? "img-add-wrap" : "file-add-wrap"),
+            onClick: re
           }, [
             j(p($e), {
-              class: x(c.value ? "plus-icon" : "plus-icon plus-icon-small")
+              class: x(r.value ? "plus-icon" : "plus-icon plus-icon-small")
             }, null, 8, ["class"]),
-            c.value ? d("", !0) : (o(), g("span", ze, I(e.$l("上传文件")), 1)),
+            r.value ? d("", !0) : (o(), g("span", ze, I(e.$l("上传文件")), 1)),
             w("input", {
               accept: u.accept || "image/*",
               multiple: !0,
@@ -404,7 +404,7 @@ const Ue = {
               ref_key: "fileInput",
               ref: S,
               style: { display: "none" },
-              onChange: re
+              onChange: ce
             }, null, 40, Pe)
           ], 2)) : d("", !0)
         ]),
@@ -418,7 +418,7 @@ const Ue = {
       }, null, 8, ["value", "list", "active"])
     ], 2));
   }
-}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-5b30c036"]]);
+}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-964f3fa8"]]);
 export {
   We as default
 };

+ 1 - 1
lib/js/SFileUpload.js

@@ -418,7 +418,7 @@ const Ue = {
       }, null, 8, ["value", "list", "active"])
     ], 2));
   }
-}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-e12fd3b6"]]);
+}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-b277a24a"]]);
 export {
   We as default
 };

+ 1 - 1
lib/js/SImportModal.js

@@ -2162,7 +2162,7 @@ const Te = ce({
       }, 8, ["value", "title", "width"]);
     };
   }
-}), ro = /* @__PURE__ */ Mt(eo, [["__scopeId", "data-v-28b884e7"]]);
+}), ro = /* @__PURE__ */ Mt(eo, [["__scopeId", "data-v-3cd9b589"]]);
 export {
   ro as default
 };

+ 203 - 218
lib/js/SListCardLayout.js

@@ -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
 };

+ 197 - 212
lib/js/SListLayout.js

@@ -1,28 +1,29 @@
-import { ref as l, computed as Z, watch as K, onMounted as Oe, onActivated as ze, nextTick as L, onBeforeUnmount as Re, resolveComponent as E, resolveDirective as Ae, openBlock as n, createElementBlock as s, createElementVNode as c, toDisplayString as g, createVNode as C, withCtx as p, Fragment as ee, renderList as De, withDirectives as U, createBlock as S, createTextVNode as te, resolveDynamicComponent as Ie, createCommentVNode as a, vShow as oe, renderSlot as u, normalizeStyle as Be, unref as Te, h as xe } from "vue";
+import { ref as l, computed as Y, watch as M, onMounted as Re, onActivated as ze, nextTick as P, onBeforeUnmount as Ae, resolveComponent as K, resolveDirective as De, openBlock as n, createElementBlock as a, createElementVNode as d, toDisplayString as b, createVNode as g, withCtx as f, Fragment as Z, renderList as Ie, withDirectives as L, createBlock as C, createTextVNode as ee, resolveDynamicComponent as Be, createCommentVNode as i, vShow as te, renderSlot as r, normalizeStyle as Te, unref as oe, h as xe } from "vue";
 import { n as Me, B as Pe, y as Ke, d0 as Le } from "./index2.js";
+import { c as Ue } from "./side-drag.js";
 import { S as Ee } from "./index9.js";
-const Ue = { class: "tools" }, Fe = { class: "title" }, Ve = { class: "btns" }, qe = { class: "list-layout-main" }, Ne = {
+const Fe = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" }, Ne = { class: "list-layout-main" }, je = {
   key: 1,
   class: "side-bar s-theme-bg"
-}, We = {
+}, He = {
   key: 2,
   class: "layout-list-content"
-}, je = {
+}, We = {
   key: 0,
   class: "desc-wrap"
-}, He = {
+}, Ge = {
   key: 0,
   class: "filter-content"
-}, Xe = { class: "filter" }, Ge = {
+}, Je = { class: "filter" }, Qe = {
   key: 1,
   class: "reset-wrap"
-}, Je = {
+}, Xe = {
   key: 1,
   class: "filter-more-content"
-}, Qe = { class: "table-content" }, Ye = { class: "table-container" }, Ze = ["onClick"], et = {
+}, Ye = { class: "table-content" }, Ze = { class: "table-container" }, et = ["onClick"], tt = {
   key: 3,
   class: "layout-list-content"
-}, tt = { class: "other" }, ot = /* @__PURE__ */ Object.assign({ name: "SListLayout" }, {
+}, ot = { class: "other" }, nt = /* @__PURE__ */ Object.assign({ name: "SListLayout" }, {
   __name: "SListLayout",
   props: {
     // 页面标题
@@ -106,8 +107,8 @@ const Ue = { class: "tools" }, Fe = { class: "title" }, Ve = { class: "btns" },
     }
   },
   emits: ["reset", "btnCallback", "tableColCallback"],
-  setup(y, { expose: ne, emit: le }) {
-    const h = y, v = le, R = l(null), se = l(null), ae = l(null), w = l(null), ie = l(8), _ = l(!1), $ = l(!1), F = l(300), m = l(!1), V = l(20), O = l(232), q = l(!1), d = l([]), N = l([]), A = l([]), k = l([]), re = {
+  setup(m, { expose: ne, emit: le }) {
+    const k = m, p = le, _ = l(null), ae = l(null), ie = l(null), y = l(null), se = l(8), S = l(!1), h = l(!1), U = l(300), c = l(!1), E = l(20), O = l(232), F = l(!1), u = l([]), V = l([]), R = l([]), v = l([]), re = {
       add: "PlusCircleOutlined",
       edit: "FormOutlined",
       delete: "DeleteOutlined",
@@ -123,63 +124,63 @@ const Ue = { class: "tools" }, Fe = { class: "title" }, Ve = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
-    }, W = Z(() => k.value.map((e) => e.key).includes("import")), D = Z(() => k.value.find((e) => e.key === "import") || {});
-    K(
-      () => h.buttons,
+    }, q = Y(() => v.value.map((e) => e.key).includes("import")), z = Y(() => v.value.find((e) => e.key === "import") || {});
+    M(
+      () => k.buttons,
       (e) => {
         e && e.length && ue(e);
       },
       { immediate: !0, deep: !0 }
-    ), K(
-      () => h.columns,
-      () => X()
-    ), K(
-      () => h.selectedRowKeysArr,
+    ), M(
+      () => k.columns,
+      () => H()
+    ), M(
+      () => k.selectedRowKeysArr,
       (e) => {
-        d.value = e || [];
+        u.value = e || [];
       },
       { immediate: !0 }
     );
-    function j(e, t = "") {
+    function N(e, t = "") {
       return !!(e && typeof e == "function");
     }
-    function H(e) {
+    function j(e) {
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && re[e.key] || "";
     }
     function ue(e) {
-      k.value = e.map((t) => (t.key === "remove" && (q.value = !0), t));
+      v.value = e.map((t) => (t.key === "remove" && (F.value = !0), t));
     }
     function de() {
-      L(() => {
-        Y(), V.value = h.pSize, A.value = h.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
+      P(() => {
+        Q(), E.value = k.pSize, R.value = k.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
       }), setTimeout(() => {
         const e = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), t = document.querySelector(".ant-table-thead tr");
         e && t && t.removeChild(e);
       }, 100);
     }
-    function X() {
+    function H() {
       de();
     }
-    function I() {
-      $.value = !$.value, Y();
+    function A() {
+      h.value = !h.value, Q();
     }
-    function B() {
-      v("reset");
+    function D() {
+      p("reset");
     }
-    function T() {
-      w.value && w.value.refresh(!0);
+    function I() {
+      y.value && y.value.refresh(!0);
     }
-    function G(e) {
-      v("btnCallback", e.key, d.value);
+    function W(e) {
+      p("btnCallback", e.key, u.value);
       const t = $e[e.key];
-      typeof t == "function" ? t(e) : x(e);
+      typeof t == "function" ? t(e) : B(e);
     }
-    function x(e) {
-      if (e.selection !== !1 && !d.value.length) {
+    function B(e) {
+      if (e.selection !== !1 && !u.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
       }
-      if (j(e.api, e.name, e.key)) {
+      if (N(e.api, e.name, e.key)) {
         if (e.confirm) {
           window.$confirm({
             title: `${e.name}`,
@@ -189,281 +190,265 @@ const Ue = { class: "tools" }, Fe = { class: "title" }, Ve = { class: "btns" },
               `${window.$l("确认要")}{${window.$l(e.name)}}${window.$l("数据吗?")}`
             ),
             onOk: () => {
-              m.value = !0, e.api(d.value).then(() => {
-                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
+              c.value = !0, e.api(u.value).then(() => {
+                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
               }).finally(() => {
-                m.value = !1;
+                c.value = !1;
               });
             }
           });
           return;
         }
-        m.value = !0, e.api(d.value).then(() => {
-          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
+        c.value = !0, e.api(u.value).then(() => {
+          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
         }).finally(() => {
-          m.value = !1;
+          c.value = !1;
         });
       }
     }
-    function J(e, t) {
-      typeof e == "string" ? Q(e, t) : e.forEach((i) => {
-        Q(i, t);
+    function G(e, t) {
+      typeof e == "string" ? J(e, t) : e.forEach((s) => {
+        J(s, t);
       });
     }
-    function Q(e, t) {
-      const i = k.value.find((r) => r.key === e);
-      if (!i) {
+    function J(e, t) {
+      const s = v.value.find((w) => w.key === e);
+      if (!s) {
         console.error(`按钮(${e})未定义, 请确认该变更状态按钮是否设置正确`);
         return;
       }
-      Object.keys(t).forEach((r) => {
-        i[r] = t[r];
+      Object.keys(t).forEach((w) => {
+        s[w] = t[w];
       });
     }
     function ce() {
     }
-    function me(e) {
-      x(e);
+    function fe(e) {
+      B(e);
     }
-    function fe() {
-      if (!W.value) {
-        v("btnCallback", "import");
+    function me() {
+      if (!q.value) {
+        p("btnCallback", "import");
         return;
       }
-      _.value = !0;
+      S.value = !0;
     }
     function pe(e) {
-      j(e.api, e.name, e.key) && (m.value = !0, e.api().then(() => {
-        m.value = !1;
+      N(e.api, e.name, e.key) && (c.value = !0, e.api().then(() => {
+        c.value = !1;
       }));
     }
     function ye(e, t) {
-      v("tableColCallback", e, t);
+      p("tableColCallback", e, t);
     }
-    function M(e) {
-      return A.value.find((t) => t.dataIndex === e);
+    function T(e) {
+      return R.value.find((t) => t.dataIndex === e);
     }
     function ve(e) {
-      const t = M(e);
+      const t = T(e);
       return !!(t && t.template);
     }
     function we(e) {
-      const t = M(e);
+      const t = T(e);
       return !!(t && t.isClick);
     }
     function ke(e) {
       return e == null ? "" : typeof e == "object" ? e.name === void 0 ? "" : e.name : e;
     }
     function he(e) {
-      d.value = e;
+      u.value = e;
     }
-    function Y() {
-      L(P);
+    function Q() {
+      P(x);
     }
-    function P() {
-      const e = w.value && w.value.$el, t = e && e.querySelector(".ant-table-body"), i = t && t.clientHeight;
-      i && (F.value = Math.max(i - 8, 0));
+    function x() {
+      const e = y.value && y.value.$el, t = e && e.querySelector(".ant-table-body"), s = t && t.clientHeight;
+      s && (U.value = Math.max(s - 8, 0));
     }
     const $e = {
       add: ce,
-      delete: me,
-      import: fe,
+      delete: fe,
+      import: me,
       export: pe,
-      reload: T,
-      filterReset: B,
-      toggleFilter: I,
-      setStateBtn: J,
-      handAction: x
-    }, be = {
-      mounted(e) {
-        e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
-          t.preventDefault();
-        }), e.onmousedown = (t) => {
-          const i = t.clientX, r = O.value;
-          document.onmousemove = (z) => {
-            const f = z.clientX - i;
-            if (f < 0) {
-              if (r + f <= 232) return;
-              O.value = r + f;
-            } else {
-              if (r + f >= 500) return;
-              O.value = r + f;
-            }
-          }, document.onmouseup = () => {
-            document.onmousemove = document.onmousedown = null;
-          };
-        };
-      }
-    };
-    let b = null;
-    return Oe(() => {
-      X(), window.ResizeObserver && R.value && (b = new ResizeObserver(() => P()), b.observe(R.value));
+      reload: I,
+      filterReset: D,
+      toggleFilter: A,
+      setStateBtn: G,
+      handAction: B
+    }, be = Ue(
+      () => O.value,
+      (e) => O.value = e,
+      { min: 232 }
+    );
+    let $ = null;
+    return Re(() => {
+      H(), window.ResizeObserver && _.value && ($ = new ResizeObserver(() => x()), $.observe(_.value));
     }), ze(() => {
-      L(P);
-    }), Re(() => {
-      b && (b.disconnect(), b = null);
+      P(x);
+    }), Ae(() => {
+      $ && ($.disconnect(), $ = null);
     }), ne({
-      reload: T,
-      spinning: m,
-      selectedRowKeys: d,
-      renderButtons: k,
-      setStateBtn: J,
-      btnCallback: G,
-      filterReset: B,
-      toggleFilter: I,
-      table: w,
-      importVisible: _
+      reload: I,
+      spinning: c,
+      selectedRowKeys: u,
+      renderButtons: v,
+      setStateBtn: G,
+      btnCallback: W,
+      filterReset: D,
+      toggleFilter: A,
+      table: y,
+      importVisible: S
     }), (e, t) => {
-      const i = Pe, r = Ee, z = E("double-right-outlined"), f = E("sync-outlined"), ge = Ke, Ce = E("s-import-modal"), Se = Ae("action");
-      return n(), s("div", {
+      const s = Pe, w = Ee, X = K("double-right-outlined"), ge = K("sync-outlined"), Ce = Ke, Se = K("s-import-modal"), _e = De("action");
+      return n(), a("div", {
         class: "list-layout",
         ref_key: "layoutRef",
-        ref: R
+        ref: _
       }, [
-        c("div", Ue, [
-          c("div", Fe, g(y.title), 1),
-          c("div", Ve, [
-            C(r, { size: ie.value }, {
-              default: p(() => [
-                (n(!0), s(ee, null, De(k.value, (o) => (n(), s("span", {
+        d("div", Fe, [
+          d("div", Ve, b(m.title), 1),
+          d("div", qe, [
+            g(w, { size: se.value }, {
+              default: f(() => [
+                (n(!0), a(Z, null, Ie(v.value, (o) => (n(), a("span", {
                   class: "item-btn",
                   key: o.key
                 }, [
-                  U((n(), S(i, {
+                  L((n(), C(s, {
                     class: "btn",
                     disabled: !!o.disabled,
                     type: o.type || o.key === "add" ? "primary" : "default",
-                    onClick: (_e) => G(o)
+                    onClick: (Oe) => W(o)
                   }, {
-                    icon: p(() => [
-                      H(o) ? (n(), S(Ie(H(o)), { key: 0 })) : a("", !0)
+                    icon: f(() => [
+                      j(o) ? (n(), C(Be(j(o)), { key: 0 })) : i("", !0)
                     ]),
-                    default: p(() => [
-                      te(" " + g(e.$l(o.name)), 1)
+                    default: f(() => [
+                      ee(" " + b(e.$l(o.name)), 1)
                     ]),
                     _: 2
                   }, 1032, ["disabled", "type", "onClick"])), [
-                    [Se, o.action || o.key],
-                    [oe, o.show !== !1]
+                    [_e, o.action || o.key],
+                    [te, o.show !== !1]
                   ])
                 ]))), 128)),
-                u(e.$slots, "otherBtns", { selections: d.value }, void 0, !0)
+                r(e.$slots, "otherBtns", { selections: u.value }, void 0, !0)
               ]),
               _: 3
             }, 8, ["size"])
           ])
         ]),
-        c("div", qe, [
-          e.$slots.tree ? (n(), s("div", {
+        d("div", Ne, [
+          e.$slots.tree ? (n(), a("div", {
             key: 0,
             class: "side s-side-tree",
             ref: "side",
-            style: Be([{ width: O.value + "px" }, { "overflow-y": "auto" }])
+            style: Te([{ width: O.value + "px" }, { "overflow-y": "auto" }])
           }, [
-            u(e.$slots, "tree", {}, void 0, !0)
-          ], 4)) : a("", !0),
-          e.$slots.tree ? U((n(), s("div", Ne, null, 512)), [
-            [be]
-          ]) : a("", !0),
-          e.$slots.empty ? (n(), s("div", et, [
-            u(e.$slots, "empty", {}, void 0, !0)
-          ])) : (n(), s("div", We, [
-            e.$slots.desc ? (n(), s("div", je, [
-              u(e.$slots, "desc", {}, void 0, !0)
-            ])) : a("", !0),
-            e.$slots.filter || e.$slots.filterMore ? (n(), s("div", {
+            r(e.$slots, "tree", {}, void 0, !0)
+          ], 4)) : i("", !0),
+          e.$slots.tree ? L((n(), a("div", je, null, 512)), [
+            [oe(be)]
+          ]) : i("", !0),
+          e.$slots.empty ? (n(), a("div", tt, [
+            r(e.$slots, "empty", {}, void 0, !0)
+          ])) : (n(), a("div", He, [
+            e.$slots.desc ? (n(), a("div", We, [
+              r(e.$slots, "desc", {}, void 0, !0)
+            ])) : i("", !0),
+            e.$slots.filter || e.$slots.filterMore ? (n(), a("div", {
               key: 1,
               class: "list-filter-wrap",
               ref_key: "filters",
-              ref: se
+              ref: ae
             }, [
-              e.$slots.filter ? (n(), s("div", He, [
-                c("div", Xe, [
-                  u(e.$slots, "filter", {}, void 0, !0)
+              e.$slots.filter ? (n(), a("div", Ge, [
+                d("div", Je, [
+                  r(e.$slots, "filter", {}, void 0, !0)
                 ]),
-                e.$slots.filterMore ? (n(), s("a", {
+                e.$slots.filterMore ? (n(), a("a", {
                   key: 0,
                   class: "filter-more-btn",
-                  onClick: I
+                  onClick: A
                 }, [
-                  te(g($.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
-                  $.value ? (n(), S(z, {
+                  ee(b(h.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
+                  h.value ? (n(), C(X, {
                     key: 1,
                     style: { "font-size": "12px", transform: "rotate(-90deg)" }
-                  })) : (n(), S(z, {
+                  })) : (n(), C(X, {
                     key: 0,
                     style: { "font-size": "12px", transform: "rotate(90deg)" }
                   }))
-                ])) : a("", !0),
-                e.$slots.filter ? (n(), s("div", Ge, [
-                  C(ge, {
+                ])) : i("", !0),
+                e.$slots.filter ? (n(), a("div", Qe, [
+                  g(Ce, {
                     placement: "top",
                     overlayStyle: { maxWidth: "500px" },
                     mouseEnterDelay: 1.5,
                     mouseLeaveDelay: 0.5
                   }, {
-                    title: p(() => [
-                      c("span", null, g(e.$l("条件重置")), 1)
+                    title: f(() => [
+                      d("span", null, b(e.$l("条件重置")), 1)
                     ]),
-                    default: p(() => [
-                      C(i, {
+                    default: f(() => [
+                      g(s, {
                         style: { "padding-bottom": "2px" },
-                        onClick: B
+                        onClick: D
                       }, {
-                        icon: p(() => [
-                          C(f)
+                        icon: f(() => [
+                          g(ge)
                         ]),
                         _: 1
                       })
                     ]),
                     _: 1
                   })
-                ])) : a("", !0)
-              ])) : a("", !0),
-              e.$slots.filterMore ? U((n(), s("div", Je, [
-                u(e.$slots, "filterMore", {}, void 0, !0)
+                ])) : i("", !0)
+              ])) : i("", !0),
+              e.$slots.filterMore ? L((n(), a("div", Xe, [
+                r(e.$slots, "filterMore", {}, void 0, !0)
               ], 512)), [
-                [oe, $.value]
-              ]) : a("", !0)
-            ], 512)) : a("", !0),
-            c("div", Qe, [
-              e.$slots.tabs ? (n(), s("div", {
+                [te, h.value]
+              ]) : i("", !0)
+            ], 512)) : i("", !0),
+            d("div", Ye, [
+              e.$slots.tabs ? (n(), a("div", {
                 key: 0,
                 class: "tabs-wrap",
                 ref_key: "tabs",
-                ref: ae
+                ref: ie
               }, [
-                u(e.$slots, "tabs", {}, void 0, !0)
-              ], 512)) : a("", !0),
-              c("div", Ye, [
-                C(Te(Le), {
+                r(e.$slots, "tabs", {}, void 0, !0)
+              ], 512)) : i("", !0),
+              d("div", Ze, [
+                g(oe(Le), {
                   ref_key: "table",
-                  ref: w,
+                  ref: y,
                   size: "middle",
-                  scroll: { y: F.value, x: "100%" },
-                  pageSize: V.value,
-                  rowKey: y.rowKey,
-                  columns: A.value,
-                  data: y.loadData,
-                  "expanded-row-keys": N.value,
-                  "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => N.value = o),
-                  rowSelection: q.value || y.isSelection ? { selectedRowKeys: d.value, onChange: he } : null,
-                  showPagination: y.showPagination
+                  scroll: { y: U.value, x: "100%" },
+                  pageSize: E.value,
+                  rowKey: m.rowKey,
+                  columns: R.value,
+                  data: m.loadData,
+                  "expanded-row-keys": V.value,
+                  "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => V.value = o),
+                  rowSelection: F.value || m.isSelection ? { selectedRowKeys: u.value, onChange: he } : null,
+                  showPagination: m.showPagination
                 }, {
-                  bodyCell: p((o) => [
-                    o.column ? (n(), s(ee, { key: 0 }, [
-                      ve(o.column.dataIndex) ? u(e.$slots, o.column.dataIndex, {
+                  bodyCell: f((o) => [
+                    o.column ? (n(), a(Z, { key: 0 }, [
+                      ve(o.column.dataIndex) ? r(e.$slots, o.column.dataIndex, {
                         text: o.text,
                         record: o.record,
                         index: o.index,
-                        item: M(o.column.dataIndex)
-                      }, void 0, !0, 0) : we(o.column.dataIndex) ? (n(), s("a", {
+                        item: T(o.column.dataIndex)
+                      }, void 0, !0, 0) : we(o.column.dataIndex) ? (n(), a("a", {
                         key: 1,
-                        onClick: (_e) => ye(o.column.dataIndex, o.record)
-                      }, g(ke(o.text)), 9, Ze)) : o.column.dataIndex === "action" ? u(e.$slots, "action", {
+                        onClick: (Oe) => ye(o.column.dataIndex, o.record)
+                      }, b(ke(o.text)), 9, et)) : o.column.dataIndex === "action" ? r(e.$slots, "action", {
                         record: o.record
-                      }, void 0, !0, 2) : a("", !0)
-                    ], 64)) : a("", !0)
+                      }, void 0, !0, 2) : i("", !0)
+                    ], 64)) : i("", !0)
                   ]),
                   _: 3
                 }, 8, ["scroll", "pageSize", "rowKey", "columns", "data", "expanded-row-keys", "rowSelection", "showPagination"])
@@ -471,23 +456,23 @@ const Ue = { class: "tools" }, Fe = { class: "title" }, Ve = { class: "btns" },
             ])
           ]))
         ]),
-        c("div", tt, [
-          u(e.$slots, "other", {}, void 0, !0)
+        d("div", ot, [
+          r(e.$slots, "other", {}, void 0, !0)
         ]),
-        W.value ? (n(), S(Ce, {
+        q.value ? (n(), C(Se, {
           key: 0,
           ref: "importModalRef",
-          "upload-url": D.value.importUploadUrl,
-          value: _.value,
-          "onUpdate:value": t[1] || (t[1] = (o) => _.value = o),
-          columns: D.value.importColumns,
-          apis: D.value.importApis,
-          onReload: T
-        }, null, 8, ["upload-url", "value", "columns", "apis"])) : a("", !0)
+          "upload-url": z.value.importUploadUrl,
+          value: S.value,
+          "onUpdate:value": t[1] || (t[1] = (o) => S.value = o),
+          columns: z.value.importColumns,
+          apis: z.value.importApis,
+          onReload: I
+        }, null, 8, ["upload-url", "value", "columns", "apis"])) : i("", !0)
       ], 512);
     };
   }
-}), at = /* @__PURE__ */ Me(ot, [["__scopeId", "data-v-db45cf7b"]]);
+}), rt = /* @__PURE__ */ Me(nt, [["__scopeId", "data-v-bd5d259b"]]);
 export {
-  at as default
+  rt as default
 };

+ 145 - 160
lib/js/SListTableTreeLayout.js

@@ -1,30 +1,31 @@
-import { getCurrentInstance as ze, ref as a, reactive as Ae, computed as j, watch as De, onMounted as Ie, resolveComponent as E, resolveDirective as Le, openBlock as n, createElementBlock as i, createElementVNode as y, toDisplayString as b, createVNode as C, withCtx as h, Fragment as J, renderList as Be, withDirectives as K, createBlock as _, createTextVNode as Q, resolveDynamicComponent as Pe, createCommentVNode as s, vShow as G, renderSlot as c, normalizeStyle as Re, nextTick as Y, h as Z } from "vue";
-import { useRoute as Me } from "vue-router";
-import { n as Ee, B as Ke, y as Fe } from "./index2.js";
-import { S as Ne } from "./index9.js";
-import { _ as Ue } from "./index15.js";
-const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" }, He = { class: "list-layout-main" }, Xe = {
+import { getCurrentInstance as ze, ref as a, reactive as Ae, computed as J, watch as De, onMounted as Ie, resolveComponent as K, resolveDirective as Be, openBlock as n, createElementBlock as i, createElementVNode as m, toDisplayString as k, createVNode as b, withCtx as y, Fragment as Q, renderList as Le, withDirectives as E, createBlock as C, createTextVNode as G, resolveDynamicComponent as Pe, createCommentVNode as s, vShow as X, renderSlot as u, normalizeStyle as Re, unref as Me, nextTick as Y, h as Z } from "vue";
+import { useRoute as Ke } from "vue-router";
+import { c as Ee } from "./side-drag.js";
+import { n as Fe, B as Ne, y as Ue } from "./index2.js";
+import { S as Ve } from "./index9.js";
+import { _ as qe } from "./index15.js";
+const He = { class: "tools" }, je = { class: "title" }, We = { class: "btns" }, Je = { class: "list-layout-main" }, Qe = {
   key: 1,
   class: "side-bar s-theme-bg"
-}, je = {
+}, Ge = {
   key: 2,
   class: "layout-list-content"
-}, Je = {
+}, Xe = {
   key: 0,
   class: "filter-content"
-}, Qe = { class: "filter" }, Ge = {
+}, Ye = { class: "filter" }, Ze = {
   key: 1,
   class: "reset-wrap"
-}, Ye = {
+}, et = {
   key: 1,
   class: "filter-more-content"
-}, Ze = {
+}, tt = {
   key: 2,
   class: "desc-wrap"
-}, et = { class: "table-content" }, tt = { class: "table-container" }, ot = ["onClick"], nt = {
+}, ot = { class: "table-content" }, nt = { class: "table-container" }, lt = ["onClick"], at = {
   key: 3,
   class: "layout-list-content"
-}, lt = { class: "other" }, at = /* @__PURE__ */ Object.assign({ name: "SListTableTreeLayout" }, {
+}, it = { class: "other" }, st = /* @__PURE__ */ Object.assign({ name: "SListTableTreeLayout" }, {
   __name: "SListTableTreeLayout",
   props: {
     // 页面标题
@@ -107,14 +108,14 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
     },
     getCheckboxProps: {
       type: Function,
-      default: (p = {}) => ({ props: p })
+      default: (d = {}) => ({ props: d })
     }
   },
   emits: ["reset", "btnCallback", "tableColCallback", "handExpand"],
-  setup(p, { expose: ee, emit: te }) {
-    const S = p, m = te;
-    Me(), ze();
-    const oe = a(null), ne = a(null), le = a(null), O = a(null), ae = a(8), T = a(!1), F = a(300), $ = a(!1), f = a(!1), x = a(232), r = a([]), z = a([]), g = a([]), N = a(!1), ie = a([]), A = a([]), D = a([]), v = Ae({
+  setup(d, { expose: ee, emit: te }) {
+    const _ = d, c = te;
+    Ke(), ze();
+    const oe = a(null), ne = a(null), le = a(null), S = a(null), ae = a(8), O = a(!1), F = a(300), v = a(!1), p = a(!1), z = a(232), r = a([]), T = a([]), w = a([]), N = a(!1), ie = a([]), A = a([]), D = a([]), f = Ae({
       current: 1,
       pageSize: 20,
       total: 0,
@@ -138,26 +139,26 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
-    }, U = j(() => g.value.map((e) => e.key).includes("import")), I = j(() => g.value.find((e) => e.key === "import") || {});
+    }, U = J(() => w.value.map((e) => e.key).includes("import")), I = J(() => w.value.find((e) => e.key === "import") || {});
     De(
-      () => S.buttons,
+      () => _.buttons,
       (e) => {
         e && e.length && re(e);
       },
       { immediate: !0, deep: !0 }
     );
-    function L(e, t = "") {
+    function B(e, t = "") {
       return !!(e && typeof e == "function");
     }
     function V(e) {
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && se[e.key] || "";
     }
     function re(e) {
-      g.value = e.map((t) => (t.key === "remove" && (N.value = !0), t));
+      w.value = e.map((t) => (t.key === "remove" && (N.value = !0), t));
     }
     function ue() {
       Y(() => {
-        M(), z.value = S.columns.map((t) => ((t.template || t.isClick || t.dataIndex === "action" && !t.customRender) && !t.scopedSlots && (t.scopedSlots = { customRender: t.dataIndex }), t)), k();
+        M(), T.value = _.columns.map((t) => ((t.template || t.isClick || t.dataIndex === "action" && !t.customRender) && !t.scopedSlots && (t.scopedSlots = { customRender: t.dataIndex }), t)), h();
       });
       const e = setTimeout(() => {
         const t = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), l = document.querySelector(".ant-table-thead tr");
@@ -167,39 +168,39 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
     function de() {
       ue();
     }
-    function B() {
-      $.value = !$.value, M();
+    function L() {
+      v.value = !v.value, M();
     }
     function q(e, t) {
-      const l = X[e];
+      const l = W[e];
       return l(t);
     }
     function P() {
-      m("reset");
+      c("reset");
     }
-    function k(e = !1) {
-      e && (v.current = 1);
-      const t = S.showPagination ? { pageNo: v.current, pageSize: v.pageSize } : { pageNo: 1, pageSize: 0 };
-      return S.loadData(t).then((l) => {
-        var w, d;
-        const u = l && (l.list || l.records) || [];
-        return A.value = u.length ? u : ie.value, v.total = Number((d = l && ((w = l.total) != null ? w : l.totalCount)) != null ? d : u.length), l;
+    function h(e = !1) {
+      e && (f.current = 1);
+      const t = _.showPagination ? { pageNo: f.current, pageSize: f.pageSize } : { pageNo: 1, pageSize: 0 };
+      return _.loadData(t).then((l) => {
+        var g, x;
+        const $ = l && (l.list || l.records) || [];
+        return A.value = $.length ? $ : ie.value, f.total = Number((x = l && ((g = l.total) != null ? g : l.totalCount)) != null ? x : $.length), l;
       });
     }
     function ce(e) {
-      v.current = e.current, v.pageSize = e.pageSize, k();
-    }
-    function W(e) {
-      m("btnCallback", e.key, r.value);
-      const t = X[e.key];
-      typeof t == "function" ? t(e) : H(e);
+      f.current = e.current, f.pageSize = e.pageSize, h();
     }
     function H(e) {
+      c("btnCallback", e.key, r.value);
+      const t = W[e.key];
+      typeof t == "function" ? t(e) : j(e);
+    }
+    function j(e) {
       if (e.selection !== !1 && !r.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
       }
-      if (L(e.api, e.name)) {
+      if (B(e.api, e.name)) {
         if (e.confirm) {
           window.$confirm({
             title: `${e.name}`,
@@ -209,24 +210,24 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
               `${window.$l("确认要")}{${window.$l(e.name)}}${window.$l("数据吗?")}`
             ),
             onOk: () => {
-              f.value = !0, e.api(r.value).then(() => {
-                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), m("reset");
+              p.value = !0, e.api(r.value).then(() => {
+                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), c("reset");
               }).finally(() => {
-                f.value = !1;
+                p.value = !1;
               });
             }
           });
           return;
         }
-        f.value = !0, e.api(r.value).then(() => {
-          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), m("reset");
+        p.value = !0, e.api(r.value).then(() => {
+          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), c("reset");
         }).finally(() => {
-          f.value = !1;
+          p.value = !1;
         });
       }
     }
     function pe() {
-      m("btnCallback", "add");
+      c("btnCallback", "add");
     }
     function me() {
       if (!r.value.length) {
@@ -237,39 +238,39 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
         });
         return;
       }
-      L("deletesApi") && window.$confirm({
+      B("deletesApi") && window.$confirm({
         title: window.$l("确认删除"),
         content: () => Z("div", { style: "color: var(--s-color-error)" }, window.$l("确认要批量删除数据吗?")),
         onOk: () => {
-          f.value = !0, q("deletesApi", r.value).then(() => {
+          p.value = !0, q("deletesApi", r.value).then(() => {
             window.$notice.success({
               key: "only-you",
               message: window.$l("操作成功"),
               description: window.$l("删除成功")
-            }), m("reset");
+            }), c("reset");
           }).finally(() => {
-            f.value = !1;
+            p.value = !1;
           });
         }
       });
     }
     function fe() {
       if (!U.value) {
-        m("btnCallback", "import");
+        c("btnCallback", "import");
         return;
       }
-      T.value = !0;
+      O.value = !0;
     }
     function ye() {
-      L("exportApi") && (f.value = !0, q("exportApi").then(() => {
-        f.value = !1;
+      B("exportApi") && (p.value = !0, q("exportApi").then(() => {
+        p.value = !1;
       }));
     }
     function ve(e, t) {
-      m("tableColCallback", e, t);
+      c("tableColCallback", e, t);
     }
     function R(e) {
-      return z.value.find((t) => t.dataIndex === e);
+      return T.value.find((t) => t.dataIndex === e);
     }
     function we(e) {
       const t = R(e);
@@ -289,155 +290,139 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
       Y(ke);
     }
     function ke() {
-      const e = O.value && O.value.$el, t = e && e.querySelector(".ant-table-body"), l = t && t.clientHeight;
+      const e = S.value && S.value.$el, t = e && e.querySelector(".ant-table-body"), l = t && t.clientHeight;
       l && (F.value = Math.max(l - 8, 0));
     }
     function be(e, t) {
-      m("handExpand", e, t);
+      c("handExpand", e, t);
     }
-    const X = {
+    const W = {
       add: pe,
       remove: me,
       import: fe,
       export: ye,
-      reload: k,
+      reload: h,
       filterReset: P,
-      toggleFilter: B,
-      handAction: H
-    }, Ce = {
-      mounted(e) {
-        e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
-          t.preventDefault();
-        }), e.onmousedown = (t) => {
-          const l = t.clientX, u = x.value;
-          document.onmousemove = (w) => {
-            const d = w.clientX - l;
-            if (d < 0) {
-              if (u + d <= 232) return;
-              x.value = u + d;
-            } else {
-              if (u + d >= 500) return;
-              x.value = u + d;
-            }
-          }, document.onmouseup = () => {
-            document.onmousemove = document.onmousedown = null;
-          };
-        };
-      }
-    };
+      toggleFilter: L,
+      handAction: j
+    }, Ce = Ee(
+      () => z.value,
+      (e) => z.value = e,
+      { min: 232 }
+    );
     return Ie(() => {
       de();
     }), ee({
-      reload: k,
-      spinning: f,
+      reload: h,
+      spinning: p,
       selectedRowKeys: r,
       expandedRowKeys: D,
-      renderColumns: z,
-      renderButtons: g,
+      renderColumns: T,
+      renderButtons: w,
       tableData: A,
-      pagination: v,
-      table: O,
-      importVisible: T,
+      pagination: f,
+      table: S,
+      importVisible: O,
       measureLayout: M,
-      toggleFilter: B,
+      toggleFilter: L,
       filterReset: P,
-      btnCallback: W
+      btnCallback: H
     }), (e, t) => {
-      const l = Ke, u = Ne, w = E("double-right-outlined"), d = E("sync-outlined"), _e = Fe, Se = Ue, Oe = E("s-import-modal"), Te = Le("action");
+      const l = Ne, $ = Ve, g = K("double-right-outlined"), x = K("sync-outlined"), _e = Ue, Se = qe, Oe = K("s-import-modal"), Te = Be("action");
       return n(), i("div", {
         class: "list-layout",
         ref_key: "layout",
         ref: oe
       }, [
-        y("div", Ve, [
-          y("div", qe, b(p.title), 1),
-          y("div", We, [
-            C(u, { size: ae.value }, {
-              default: h(() => [
-                (n(!0), i(J, null, Be(g.value, (o) => (n(), i("span", {
+        m("div", He, [
+          m("div", je, k(d.title), 1),
+          m("div", We, [
+            b($, { size: ae.value }, {
+              default: y(() => [
+                (n(!0), i(Q, null, Le(w.value, (o) => (n(), i("span", {
                   class: "item-btn",
                   key: o.key
                 }, [
-                  K((n(), _(l, {
+                  E((n(), C(l, {
                     class: "btn",
                     disabled: !!o.disabled,
                     type: o.type || o.key === "add" ? "primary" : "default",
-                    onClick: (xe) => W(o)
+                    onClick: (xe) => H(o)
                   }, {
-                    icon: h(() => [
-                      V(o) ? (n(), _(Pe(V(o)), { key: 0 })) : s("", !0)
+                    icon: y(() => [
+                      V(o) ? (n(), C(Pe(V(o)), { key: 0 })) : s("", !0)
                     ]),
-                    default: h(() => [
-                      Q(" " + b(e.$l(o.name)), 1)
+                    default: y(() => [
+                      G(" " + k(e.$l(o.name)), 1)
                     ]),
                     _: 2
                   }, 1032, ["disabled", "type", "onClick"])), [
                     [Te, o.action || o.key],
-                    [G, o.show !== !1]
+                    [X, o.show !== !1]
                   ])
                 ]))), 128)),
-                c(e.$slots, "otherBtns", { selections: r.value }, void 0, !0)
+                u(e.$slots, "otherBtns", { selections: r.value }, void 0, !0)
               ]),
               _: 3
             }, 8, ["size"])
           ])
         ]),
-        y("div", He, [
+        m("div", Je, [
           e.$slots.tree ? (n(), i("div", {
             key: 0,
             class: "side s-side-tree",
             ref: "side",
-            style: Re({ width: x.value + "px" })
+            style: Re({ width: z.value + "px" })
           }, [
-            c(e.$slots, "tree", {}, void 0, !0)
+            u(e.$slots, "tree", {}, void 0, !0)
           ], 4)) : s("", !0),
-          e.$slots.tree ? K((n(), i("div", Xe, null, 512)), [
-            [Ce]
+          e.$slots.tree ? E((n(), i("div", Qe, null, 512)), [
+            [Me(Ce)]
           ]) : s("", !0),
-          e.$slots.empty ? (n(), i("div", nt, [
-            c(e.$slots, "empty", {}, void 0, !0)
-          ])) : (n(), i("div", je, [
+          e.$slots.empty ? (n(), i("div", at, [
+            u(e.$slots, "empty", {}, void 0, !0)
+          ])) : (n(), i("div", Ge, [
             e.$slots.filter || e.$slots.filterMore ? (n(), i("div", {
               key: 0,
               class: "list-filter-wrap",
               ref_key: "filters",
               ref: ne
             }, [
-              e.$slots.filter ? (n(), i("div", Je, [
-                y("div", Qe, [
-                  c(e.$slots, "filter", {}, void 0, !0)
+              e.$slots.filter ? (n(), i("div", Xe, [
+                m("div", Ye, [
+                  u(e.$slots, "filter", {}, void 0, !0)
                 ]),
                 e.$slots.filterMore ? (n(), i("a", {
                   key: 0,
                   class: "filter-more-btn",
-                  onClick: B
+                  onClick: L
                 }, [
-                  Q(b($.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
-                  $.value ? (n(), _(w, {
+                  G(k(v.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
+                  v.value ? (n(), C(g, {
                     key: 1,
                     style: { "font-size": "12px", transform: "rotate(-90deg)" }
-                  })) : (n(), _(w, {
+                  })) : (n(), C(g, {
                     key: 0,
                     style: { "font-size": "12px", transform: "rotate(90deg)" }
                   }))
                 ])) : s("", !0),
-                e.$slots.filter ? (n(), i("div", Ge, [
-                  C(_e, {
+                e.$slots.filter ? (n(), i("div", Ze, [
+                  b(_e, {
                     placement: "top",
                     overlayStyle: { maxWidth: "500px" },
                     mouseEnterDelay: 1.5,
                     mouseLeaveDelay: 0.5
                   }, {
-                    title: h(() => [
-                      y("span", null, b(e.$l("条件重置")), 1)
+                    title: y(() => [
+                      m("span", null, k(e.$l("条件重置")), 1)
                     ]),
-                    default: h(() => [
-                      C(l, {
+                    default: y(() => [
+                      b(l, {
                         style: { "padding-bottom": "2px" },
                         onClick: P
                       }, {
-                        icon: h(() => [
-                          C(d)
+                        icon: y(() => [
+                          b(x)
                         ]),
                         _: 1
                       })
@@ -446,48 +431,48 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
                   })
                 ])) : s("", !0)
               ])) : s("", !0),
-              e.$slots.filterMore ? K((n(), i("div", Ye, [
-                c(e.$slots, "filterMore", {}, void 0, !0)
+              e.$slots.filterMore ? E((n(), i("div", et, [
+                u(e.$slots, "filterMore", {}, void 0, !0)
               ], 512)), [
-                [G, $.value]
+                [X, v.value]
               ]) : s("", !0),
-              e.$slots.desc ? (n(), i("div", Ze, [
-                c(e.$slots, "desc", {}, void 0, !0)
+              e.$slots.desc ? (n(), i("div", tt, [
+                u(e.$slots, "desc", {}, void 0, !0)
               ])) : s("", !0)
             ], 512)) : s("", !0),
-            y("div", et, [
+            m("div", ot, [
               e.$slots.tabs ? (n(), i("div", {
                 key: 0,
                 class: "tabs-wrap",
                 ref_key: "tabs",
                 ref: le
               }, [
-                c(e.$slots, "tabs", {}, void 0, !0)
+                u(e.$slots, "tabs", {}, void 0, !0)
               ], 512)) : s("", !0),
-              y("div", tt, [
-                C(Se, {
+              m("div", nt, [
+                b(Se, {
                   ref_key: "table",
-                  ref: O,
+                  ref: S,
                   size: "middle",
                   scroll: { y: F.value },
-                  rowKey: p.rowKey,
-                  tableLoading: p.tableLoading,
-                  columns: z.value,
+                  rowKey: d.rowKey,
+                  tableLoading: d.tableLoading,
+                  columns: T.value,
                   dataSource: A.value,
                   expandedRowKeys: D.value,
                   "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => D.value = o),
-                  rowSelection: N.value || p.isSelection ? {
+                  rowSelection: N.value || d.isSelection ? {
                     selectedRowKeys: r.value,
                     onChange: ge,
-                    getcheckboxProps: p.getCheckboxProps
+                    getcheckboxProps: d.getCheckboxProps
                   } : null,
-                  pagination: p.showPagination ? v : !1,
+                  pagination: d.showPagination ? f : !1,
                   onExpand: be,
                   onChange: ce
                 }, {
-                  bodyCell: h((o) => [
-                    o.column ? (n(), i(J, { key: 0 }, [
-                      we(o.column.dataIndex) ? c(e.$slots, o.column.dataIndex, {
+                  bodyCell: y((o) => [
+                    o.column ? (n(), i(Q, { key: 0 }, [
+                      we(o.column.dataIndex) ? u(e.$slots, o.column.dataIndex, {
                         text: o.text,
                         record: o.record,
                         index: o.index,
@@ -495,7 +480,7 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
                       }, void 0, !0, 0) : he(o.column.dataIndex) ? (n(), i("a", {
                         key: 1,
                         onClick: (xe) => ve(o.column.dataIndex, o.record)
-                      }, b($e(o.text)), 9, ot)) : o.column.dataIndex === "action" ? c(e.$slots, "action", {
+                      }, k($e(o.text)), 9, lt)) : o.column.dataIndex === "action" ? u(e.$slots, "action", {
                         record: o.record
                       }, void 0, !0, 2) : s("", !0)
                     ], 64)) : s("", !0)
@@ -506,23 +491,23 @@ const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" },
             ])
           ]))
         ]),
-        y("div", lt, [
-          c(e.$slots, "other", {}, void 0, !0)
+        m("div", it, [
+          u(e.$slots, "other", {}, void 0, !0)
         ]),
-        U.value ? (n(), _(Oe, {
+        U.value ? (n(), C(Oe, {
           key: 0,
           ref: "importModalRef",
           "upload-url": I.value.importUploadUrl,
-          value: T.value,
-          "onUpdate:value": t[1] || (t[1] = (o) => T.value = o),
+          value: O.value,
+          "onUpdate:value": t[1] || (t[1] = (o) => O.value = o),
           columns: I.value.importColumns,
           apis: I.value.importApis,
-          onReload: k
+          onReload: h
         }, null, 8, ["upload-url", "value", "columns", "apis"])) : s("", !0)
       ], 512);
     };
   }
-}), ct = /* @__PURE__ */ Ee(at, [["__scopeId", "data-v-2b540b45"]]);
+}), ft = /* @__PURE__ */ Fe(st, [["__scopeId", "data-v-136ef62f"]]);
 export {
-  ct as default
+  ft as default
 };

+ 199 - 214
lib/js/SNewestDataListLayout.js

@@ -1,38 +1,39 @@
-import { ref as s, computed as Y, watch as Z, nextTick as D, onMounted as Te, onActivated as Ae, resolveComponent as L, resolveDirective as ze, openBlock as n, createElementBlock as l, createVNode as k, withCtx as m, createElementVNode as y, toDisplayString as $, Fragment as ee, renderList as Ie, withDirectives as x, createBlock as b, createTextVNode as F, resolveDynamicComponent as Pe, createCommentVNode as a, vShow as te, renderSlot as r, normalizeStyle as Ee, unref as Me, h as Re } from "vue";
-import { useRoute as Le } from "vue-router";
-import { n as xe, aA as Fe, B as Ke, y as Ne, d0 as Ue } from "./index2.js";
-import { S as Ve } from "./index9.js";
-const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" }, He = { class: "list-layout-main" }, Xe = {
+import { ref as s, computed as X, watch as Y, nextTick as _, onMounted as Ae, onActivated as Ie, resolveComponent as M, resolveDirective as Pe, openBlock as n, createElementBlock as l, createVNode as w, withCtx as f, createElementVNode as m, toDisplayString as k, Fragment as Z, renderList as ze, withDirectives as R, createBlock as $, createTextVNode as x, resolveDynamicComponent as Ee, createCommentVNode as a, vShow as ee, renderSlot as i, normalizeStyle as Me, unref as te, h as Re } from "vue";
+import { useRoute as xe } from "vue-router";
+import { n as Fe, aA as Ke, B as Le, y as Ne, d0 as Ue } from "./index2.js";
+import { c as Ve } from "./side-drag.js";
+import { S as qe } from "./index9.js";
+const je = { class: "tools" }, He = { class: "title" }, We = { class: "btns" }, Ge = { class: "list-layout-main" }, Je = {
   key: 1,
   class: "side-bar s-theme-bg"
-}, Ge = {
+}, Qe = {
   key: 2,
   class: "layout-list-content"
-}, Je = {
+}, Xe = {
   key: 0,
   class: "filter-content"
-}, Qe = { class: "filter" }, Ye = {
+}, Ye = { class: "filter" }, Ze = {
   key: 1,
   class: "reset-wrap"
-}, Ze = {
+}, et = {
   key: 1,
   class: "filter-more-content"
-}, et = {
+}, tt = {
   key: 2,
   class: "desc-wrap"
-}, tt = {
+}, ot = {
   key: 1,
   class: "search-bar"
-}, ot = {
+}, nt = {
   key: 2,
   class: "status-bar"
-}, nt = { class: "table-content" }, lt = { class: "table-container" }, at = ["onClick"], st = {
+}, lt = { class: "table-content" }, at = { class: "table-container" }, st = ["onClick"], it = {
   key: 3,
   class: "layout-list-content"
-}, it = {
+}, rt = {
   key: 4,
   class: "layout-list-content"
-}, rt = { class: "other" }, ut = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
+}, ut = { class: "other" }, dt = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
   __name: "SNewestDataListLayout",
   props: {
     // 页面标题
@@ -136,10 +137,10 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
     }
   },
   emits: ["reset", "btnCallback", "tableColCallback", "advancedSearch"],
-  setup(u, { expose: oe, emit: ne }) {
-    const S = u, p = ne;
-    Le();
-    const le = s(null), ae = s(null), se = s(null), ie = s(null), w = s(null), re = s(null), ue = s(8), C = s(!1), K = s(300), g = s(!1), c = s(!1), N = s(20), _ = s(256), U = s(!1), f = s([]), T = s([]), O = s([]), h = s([]), de = {
+  setup(r, { expose: oe, emit: ne }) {
+    const g = r, y = ne;
+    xe();
+    const le = s(null), ae = s(null), se = s(null), ie = s(null), p = s(null), re = s(null), ue = s(8), S = s(!1), F = s(300), b = s(!1), d = s(!1), K = s(20), O = s(256), L = s(!1), c = s([]), B = s([]), C = s([]), v = s([]), de = {
       add: "PlusCircleOutlined",
       edit: "FormOutlined",
       delete: "DeleteOutlined",
@@ -155,59 +156,59 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
-    }, V = Y(() => h.value.map((e) => e.key).includes("import")), A = Y(() => h.value.find((e) => e.key === "import") || {});
-    Z(
-      () => S.buttons,
+    }, N = X(() => v.value.map((e) => e.key).includes("import")), D = X(() => v.value.find((e) => e.key === "import") || {});
+    Y(
+      () => g.buttons,
       (e) => {
         e && e.length && ce(e);
       },
       { immediate: !0, deep: !0 }
-    ), Z(
-      () => S.columns,
-      () => j()
+    ), Y(
+      () => g.columns,
+      () => q()
     );
-    function q(e, t = "") {
+    function U(e, t = "") {
       return !!(e && typeof e == "function");
     }
-    function W(e) {
+    function V(e) {
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && de[e.key] || "";
     }
     function ce(e) {
-      h.value = e.map((t) => (t.key === "remove" && (U.value = !0), t));
+      v.value = e.map((t) => (t.key === "remove" && (L.value = !0), t));
     }
     function fe() {
-      D(() => {
-        R(), N.value = S.pSize, O.value = S.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
+      _(() => {
+        E(), K.value = g.pSize, C.value = g.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
       }), setTimeout(() => {
         const e = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), t = document.querySelector(".ant-table-thead tr");
         e && t && t.removeChild(e);
       }, 100);
     }
-    function j() {
-      D(() => {
+    function q() {
+      _(() => {
         fe();
       });
     }
-    function z() {
-      g.value = !g.value, R();
+    function T() {
+      b.value = !b.value, E();
     }
-    function I() {
-      p("reset");
+    function A() {
+      y("reset");
     }
-    function P() {
-      w.value && w.value.refresh(!0);
+    function I() {
+      p.value && p.value.refresh(!0);
     }
-    function H(e) {
-      p("btnCallback", e.key, f.value);
+    function j(e) {
+      y("btnCallback", e.key, c.value);
       const t = ge[e.key];
-      typeof t == "function" ? t(e) : E(e);
+      typeof t == "function" ? t(e) : P(e);
     }
-    function E(e) {
-      if (e.selection !== !1 && !f.value.length) {
+    function P(e) {
+      if (e.selection !== !1 && !c.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
       }
-      if (q(e.api, e.name, e.key)) {
+      if (U(e.api, e.name, e.key)) {
         if (e.confirm) {
           window.$confirm({
             title: `${e.name}`,
@@ -217,242 +218,226 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
               `${window.$l("确认要")}${window.$l(e.name)}${window.$l("数据吗?")}`
             ),
             onOk: () => {
-              c.value = !0, e.api(f.value).then(() => {
-                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
+              d.value = !0, e.api(c.value).then(() => {
+                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), y("reset");
               }).finally(() => {
-                c.value = !1;
+                d.value = !1;
               });
             }
           });
           return;
         }
-        c.value = !0, e.api(f.value).then(() => {
-          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
+        d.value = !0, e.api(c.value).then(() => {
+          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), y("reset");
         }).finally(() => {
-          c.value = !1;
+          d.value = !1;
         });
       }
     }
-    function X(e, t) {
-      typeof e == "string" ? G(e, t) : e.forEach((i) => {
-        G(i, t);
+    function H(e, t) {
+      typeof e == "string" ? W(e, t) : e.forEach((u) => {
+        W(u, t);
       });
     }
-    function G(e, t) {
-      const i = h.value.find((d) => d.key === e);
-      if (!i) {
+    function W(e, t) {
+      const u = v.value.find((h) => h.key === e);
+      if (!u) {
         console.error(`按钮(${e})未定义, 请确认该变更状态按钮是否设置正确`);
         return;
       }
-      Object.keys(t).forEach((d) => {
-        i[d] = t[d];
+      Object.keys(t).forEach((h) => {
+        u[h] = t[h];
       });
     }
     function me() {
     }
     function ye(e) {
-      E(e);
+      P(e);
     }
     function pe() {
-      if (!V.value) {
-        p("btnCallback", "import");
+      if (!N.value) {
+        y("btnCallback", "import");
         return;
       }
-      C.value = !0;
+      S.value = !0;
     }
     function ve(e) {
-      q(e.api, e.name, e.key) && (c.value = !0, e.api(f.value).then(() => {
-        c.value = !1;
+      U(e.api, e.name, e.key) && (d.value = !0, e.api(c.value).then(() => {
+        d.value = !1;
       }).catch(() => {
-        c.value = !1;
+        d.value = !1;
       }));
     }
-    function we(e, t) {
-      p("tableColCallback", e, t);
+    function he(e, t) {
+      y("tableColCallback", e, t);
     }
-    function M(e) {
-      return O.value.find((t) => t.dataIndex === e);
+    function z(e) {
+      return C.value.find((t) => t.dataIndex === e);
     }
-    function he(e) {
-      const t = M(e);
+    function we(e) {
+      const t = z(e);
       return !!(t && t.template);
     }
     function ke(e) {
-      const t = M(e);
+      const t = z(e);
       return !!(t && t.isClick);
     }
     function $e(e) {
       return e == null ? "" : typeof e == "object" ? e.name === void 0 ? "" : e.name : e;
     }
     function be(e) {
-      f.value = e;
+      c.value = e;
     }
-    function R() {
-      D(J);
+    function E() {
+      _(G);
     }
-    function J() {
-      const e = w.value && w.value.$el, t = e && e.querySelector(".ant-table-body"), i = t && t.clientHeight;
-      i && (K.value = Math.max(i - 8, 0));
+    function G() {
+      const e = p.value && p.value.$el, t = e && e.querySelector(".ant-table-body"), u = t && t.clientHeight;
+      u && (F.value = Math.max(u - 8, 0));
     }
-    function Q() {
-      p("advancedSearch");
+    function J() {
+      y("advancedSearch");
     }
     const ge = {
       add: me,
       delete: ye,
       import: pe,
       export: ve,
-      reload: P,
-      filterReset: I,
-      toggleFilter: z,
-      setStateBtn: X,
-      handAction: E
-    }, Se = {
-      mounted(e) {
-        e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
-          t.preventDefault();
-        }), e.onmousedown = (t) => {
-          const i = t.clientX, d = _.value;
-          document.onmousemove = (B) => {
-            const v = B.clientX - i;
-            if (v < 0) {
-              if (d + v <= 256) return;
-              _.value = d + v;
-            } else {
-              if (d + v >= 500) return;
-              _.value = d + v;
-            }
-          }, document.onmouseup = () => {
-            document.onmousemove = document.onmousedown = null;
-          };
-        };
-      }
-    };
-    return Te(() => {
-      j();
-    }), Ae(() => {
-      D(J);
+      reload: I,
+      filterReset: A,
+      toggleFilter: T,
+      setStateBtn: H,
+      handAction: P
+    }, Se = Ve(
+      () => O.value,
+      (e) => O.value = e,
+      { min: 256 }
+    );
+    return Ae(() => {
+      q();
+    }), Ie(() => {
+      _(G);
     }), oe({
-      reload: P,
-      spinning: c,
-      selectedRowKeys: f,
-      expandedRowKeys: T,
-      renderColumns: O,
-      renderButtons: h,
-      setStateBtn: X,
-      btnCallback: H,
-      filterReset: I,
-      toggleFilter: z,
-      table: w,
-      importVisible: C,
-      measureLayout: R,
-      advancedSearch: Q
+      reload: I,
+      spinning: d,
+      selectedRowKeys: c,
+      expandedRowKeys: B,
+      renderColumns: C,
+      renderButtons: v,
+      setStateBtn: H,
+      btnCallback: j,
+      filterReset: A,
+      toggleFilter: T,
+      table: p,
+      importVisible: S,
+      measureLayout: E,
+      advancedSearch: J
     }), (e, t) => {
-      const i = Ke, d = Ve, B = L("double-right-outlined"), v = L("sync-outlined"), Ce = Ne, _e = Fe, Oe = L("s-import-modal"), Be = ze("action");
+      const u = Le, h = qe, Q = M("double-right-outlined"), Ce = M("sync-outlined"), _e = Ne, Oe = Ke, Be = M("s-import-modal"), De = Pe("action");
       return n(), l("div", {
         class: "list-layout",
         ref_key: "layout",
         ref: le
       }, [
-        k(_e, { spinning: c.value }, {
-          default: m(() => [
-            y("div", qe, [
-              y("div", We, $(e.$l(u.title)), 1),
-              y("div", je, [
-                k(d, { size: ue.value }, {
-                  default: m(() => [
-                    (n(!0), l(ee, null, Ie(h.value, (o) => (n(), l("span", {
+        w(Oe, { spinning: d.value }, {
+          default: f(() => [
+            m("div", je, [
+              m("div", He, k(e.$l(r.title)), 1),
+              m("div", We, [
+                w(h, { size: ue.value }, {
+                  default: f(() => [
+                    (n(!0), l(Z, null, ze(v.value, (o) => (n(), l("span", {
                       class: "item-btn",
                       key: o.key
                     }, [
-                      x((n(), b(i, {
+                      R((n(), $(u, {
                         class: "btn",
                         disabled: !!o.disabled,
                         type: o.type || (o.key === "add" ? "primary" : "default"),
-                        onClick: (De) => H(o)
+                        onClick: (Te) => j(o)
                       }, {
-                        icon: m(() => [
-                          W(o) ? (n(), b(Pe(W(o)), { key: 0 })) : a("", !0)
+                        icon: f(() => [
+                          V(o) ? (n(), $(Ee(V(o)), { key: 0 })) : a("", !0)
                         ]),
-                        default: m(() => [
-                          F(" " + $(e.$l(o.name)), 1)
+                        default: f(() => [
+                          x(" " + k(e.$l(o.name)), 1)
                         ]),
                         _: 2
                       }, 1032, ["disabled", "type", "onClick"])), [
-                        [Be, o.action || o.key],
-                        [te, o.show !== !1]
+                        [De, o.action || o.key],
+                        [ee, o.show !== !1]
                       ])
                     ]))), 128)),
-                    r(e.$slots, "otherBtns", { selections: f.value }, void 0, !0)
+                    i(e.$slots, "otherBtns", { selections: c.value }, void 0, !0)
                   ]),
                   _: 3
                 }, 8, ["size"])
               ])
             ]),
-            y("div", He, [
+            m("div", Ge, [
               e.$slots.tree ? (n(), l("div", {
                 key: 0,
                 class: "side s-side-tree",
                 ref_key: "side",
                 ref: ae,
-                style: Ee([{ width: _.value + "px" }, { "overflow-y": "auto" }])
+                style: Me([{ width: O.value + "px" }, { "overflow-y": "auto" }])
               }, [
-                r(e.$slots, "tree", {}, void 0, !0)
+                i(e.$slots, "tree", {}, void 0, !0)
               ], 4)) : a("", !0),
-              e.$slots.tree ? x((n(), l("div", Xe, null, 512)), [
-                [Se]
+              e.$slots.tree ? R((n(), l("div", Je, null, 512)), [
+                [te(Se)]
               ]) : a("", !0),
-              !e.$slots.empty && u.listType === "table" ? (n(), l("div", Ge, [
+              !e.$slots.empty && r.listType === "table" ? (n(), l("div", Qe, [
                 e.$slots.filter || e.$slots.filterMore ? (n(), l("div", {
                   key: 0,
                   class: "filter-wrap",
                   ref_key: "filters",
                   ref: se
                 }, [
-                  e.$slots.filter ? (n(), l("div", Je, [
-                    y("div", Qe, [
-                      r(e.$slots, "filter", {}, void 0, !0)
+                  e.$slots.filter ? (n(), l("div", Xe, [
+                    m("div", Ye, [
+                      i(e.$slots, "filter", {}, void 0, !0)
                     ]),
                     e.$slots.filterMore ? (n(), l("a", {
                       key: 0,
                       class: "filter-more-btn",
-                      onClick: z
+                      onClick: T
                     }, [
-                      F($(g.value ? e.$l("收起") : e.$l("更多筛选")) + " ", 1),
-                      g.value ? (n(), b(B, {
+                      x(k(b.value ? e.$l("收起") : e.$l("更多筛选")) + " ", 1),
+                      b.value ? (n(), $(Q, {
                         key: 1,
                         style: { "font-size": "12px", transform: "rotate(-90deg)" }
-                      })) : (n(), b(B, {
+                      })) : (n(), $(Q, {
                         key: 0,
                         style: { "font-size": "12px", transform: "rotate(90deg)" }
                       }))
                     ])) : a("", !0),
-                    e.$slots.filter ? (n(), l("div", Ye, [
-                      u.isEnableAdvancedSearch ? (n(), b(i, {
+                    e.$slots.filter ? (n(), l("div", Ze, [
+                      r.isEnableAdvancedSearch ? (n(), $(u, {
                         key: 0,
                         class: "advanced-search",
                         type: "link",
-                        onClick: Q
+                        onClick: J
                       }, {
-                        default: m(() => [
-                          F($(e.$l("高级搜索")), 1)
+                        default: f(() => [
+                          x(k(e.$l("高级搜索")), 1)
                         ]),
                         _: 1
                       })) : a("", !0),
-                      k(Ce, {
+                      w(_e, {
                         placement: "top",
                         overlayStyle: { maxWidth: "500px" }
                       }, {
-                        title: m(() => [
-                          y("span", null, $(e.$l("条件重置")), 1)
+                        title: f(() => [
+                          m("span", null, k(e.$l("条件重置")), 1)
                         ]),
-                        default: m(() => [
-                          k(i, {
+                        default: f(() => [
+                          w(u, {
                             style: { "padding-bottom": "2px" },
-                            onClick: I
+                            onClick: A
                           }, {
-                            icon: m(() => [
-                              k(v)
+                            icon: f(() => [
+                              w(Ce)
                             ]),
                             _: 1
                           })
@@ -461,60 +446,60 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
                       })
                     ])) : a("", !0)
                   ])) : a("", !0),
-                  e.$slots.filterMore ? x((n(), l("div", Ze, [
-                    r(e.$slots, "filterMore", {}, void 0, !0)
+                  e.$slots.filterMore ? R((n(), l("div", et, [
+                    i(e.$slots, "filterMore", {}, void 0, !0)
                   ], 512)), [
-                    [te, g.value]
+                    [ee, b.value]
                   ]) : a("", !0),
-                  e.$slots.desc ? (n(), l("div", et, [
-                    r(e.$slots, "desc", {}, void 0, !0)
+                  e.$slots.desc ? (n(), l("div", tt, [
+                    i(e.$slots, "desc", {}, void 0, !0)
                   ])) : a("", !0)
                 ], 512)) : a("", !0),
-                u.isEnableSearchBar ? (n(), l("div", tt, [
-                  r(e.$slots, "search-bar", {}, void 0, !0)
+                r.isEnableSearchBar ? (n(), l("div", ot, [
+                  i(e.$slots, "search-bar", {}, void 0, !0)
                 ])) : a("", !0),
-                u.isEnableStatusBar ? (n(), l("div", ot, [
-                  r(e.$slots, "status-bar", {}, void 0, !0)
+                r.isEnableStatusBar ? (n(), l("div", nt, [
+                  i(e.$slots, "status-bar", {}, void 0, !0)
                 ])) : a("", !0),
-                y("div", nt, [
+                m("div", lt, [
                   e.$slots.tabs ? (n(), l("div", {
                     key: 0,
                     class: "tabs-wrap",
                     ref_key: "tabs",
                     ref: ie
                   }, [
-                    r(e.$slots, "tabs", {}, void 0, !0)
+                    i(e.$slots, "tabs", {}, void 0, !0)
                   ], 512)) : a("", !0),
-                  y("div", lt, [
-                    k(Me(Ue), {
+                  m("div", at, [
+                    w(te(Ue), {
                       ref_key: "table",
-                      ref: w,
+                      ref: p,
                       size: "middle",
-                      scroll: { y: K.value, x: "100%" },
-                      pageSize: N.value,
-                      rowKey: u.rowKey,
-                      columns: O.value,
-                      data: u.loadData,
-                      "expanded-row-keys": T.value,
-                      "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => T.value = o),
-                      rowSelection: U.value || u.isSelection ? {
-                        selectedRowKeys: f.value,
+                      scroll: { y: F.value, x: "100%" },
+                      pageSize: K.value,
+                      rowKey: r.rowKey,
+                      columns: C.value,
+                      data: r.loadData,
+                      "expanded-row-keys": B.value,
+                      "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => B.value = o),
+                      rowSelection: L.value || r.isSelection ? {
+                        selectedRowKeys: c.value,
                         onChange: be,
-                        getCheckboxProps: u.getCheckboxProps
+                        getCheckboxProps: r.getCheckboxProps
                       } : null,
-                      showPagination: u.showPagination
+                      showPagination: r.showPagination
                     }, {
-                      bodyCell: m((o) => [
-                        o.column ? (n(), l(ee, { key: 0 }, [
-                          he(o.column.dataIndex) ? r(e.$slots, o.column.dataIndex, {
+                      bodyCell: f((o) => [
+                        o.column ? (n(), l(Z, { key: 0 }, [
+                          we(o.column.dataIndex) ? i(e.$slots, o.column.dataIndex, {
                             text: o.text,
                             record: o.record,
                             index: o.index,
-                            item: M(o.column.dataIndex)
+                            item: z(o.column.dataIndex)
                           }, void 0, !0, 0) : ke(o.column.dataIndex) ? (n(), l("a", {
                             key: 1,
-                            onClick: (De) => we(o.column.dataIndex, o.record)
-                          }, $($e(o.text)), 9, at)) : o.column.dataIndex === "action" ? r(e.$slots, "action", {
+                            onClick: (Te) => he(o.column.dataIndex, o.record)
+                          }, k($e(o.text)), 9, st)) : o.column.dataIndex === "action" ? i(e.$slots, "action", {
                             record: o.record
                           }, void 0, !0, 2) : a("", !0)
                         ], 64)) : a("", !0)
@@ -524,34 +509,34 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
                   ])
                 ])
               ])) : a("", !0),
-              !e.$slots.empty && u.listType === "custom" ? (n(), l("div", st, [
-                r(e.$slots, "custom-layout-list-content", {}, void 0, !0)
+              !e.$slots.empty && r.listType === "custom" ? (n(), l("div", it, [
+                i(e.$slots, "custom-layout-list-content", {}, void 0, !0)
               ])) : a("", !0),
-              e.$slots.empty ? (n(), l("div", it, [
-                r(e.$slots, "empty", {}, void 0, !0)
+              e.$slots.empty ? (n(), l("div", rt, [
+                i(e.$slots, "empty", {}, void 0, !0)
               ])) : a("", !0)
             ]),
-            y("div", rt, [
-              r(e.$slots, "other", {}, void 0, !0)
+            m("div", ut, [
+              i(e.$slots, "other", {}, void 0, !0)
             ])
           ]),
           _: 3
         }, 8, ["spinning"]),
-        V.value ? (n(), b(Oe, {
+        N.value ? (n(), $(Be, {
           key: 0,
           ref_key: "importModalRef",
           ref: re,
-          "upload-url": A.value.importUploadUrl,
-          value: C.value,
-          "onUpdate:value": t[1] || (t[1] = (o) => C.value = o),
-          columns: A.value.importColumns,
-          apis: A.value.importApis,
-          onReload: P
+          "upload-url": D.value.importUploadUrl,
+          value: S.value,
+          "onUpdate:value": t[1] || (t[1] = (o) => S.value = o),
+          columns: D.value.importColumns,
+          apis: D.value.importApis,
+          onReload: I
         }, null, 8, ["upload-url", "value", "columns", "apis"])) : a("", !0)
       ], 512);
     };
   }
-}), yt = /* @__PURE__ */ xe(ut, [["__scopeId", "data-v-802f2e2b"]]);
+}), vt = /* @__PURE__ */ Fe(dt, [["__scopeId", "data-v-db157b4f"]]);
 export {
-  yt as default
+  vt as default
 };

+ 15 - 15
lib/js/SPanelLayout.js

@@ -1,13 +1,13 @@
-import { useSlots as m, ref as S, computed as n, openBlock as s, createElementBlock as l, normalizeStyle as c, normalizeClass as _, createElementVNode as d, renderSlot as a, createTextVNode as g, toDisplayString as v, createCommentVNode as i, createVNode as k, withCtx as $ } from "vue";
-import { n as x } from "./index2.js";
-import { S as z } from "./index9.js";
-const N = { class: "s-panel-layout-title" }, w = {
+import { useSlots as m, ref as S, computed as n, openBlock as s, createElementBlock as l, normalizeStyle as d, normalizeClass as _, createElementVNode as c, renderSlot as a, createTextVNode as g, toDisplayString as v, createCommentVNode as i, createVNode as k, withCtx as $ } from "vue";
+import { n as b } from "./index2.js";
+import { S as x } from "./index9.js";
+const z = { class: "s-panel-layout-title" }, N = {
   key: 0,
   class: "s-panel-layout-extra"
-}, B = { class: "s-panel-layout-content" }, P = {
+}, w = { class: "s-panel-layout-content" }, B = {
   key: 1,
   class: "s-panel-layout-footer"
-}, V = /* @__PURE__ */ Object.assign({ name: "SPanelLayout" }, {
+}, P = /* @__PURE__ */ Object.assign({ name: "SPanelLayout" }, {
   __name: "SPanelLayout",
   props: {
     // 面板标题
@@ -34,30 +34,30 @@ const N = { class: "s-panel-layout-title" }, w = {
     const e = r, o = m(), h = S(8), u = n(() => !!(e.title || o.title || o.extra || o.footer)), p = n(() => e.showTitle && !!(e.title || o.title || o.extra)), f = n(() => !u.value || e.height === null || e.height === void 0 || e.height === "" || e.height === "100%" ? null : {
       height: typeof e.height == "number" ? `${e.height}px` : e.height
     });
-    return (t, b) => {
-      const y = z;
+    return (t, V) => {
+      const y = x;
       return s(), l("div", {
         class: _(["s-panel-layout", { "is-panel": u.value }]),
-        style: c(f.value)
+        style: d(f.value)
       }, [
         p.value ? (s(), l("div", {
           key: 0,
           class: "s-panel-layout-header",
-          style: c({ position: e.headerSticky ? "sticky" : "" })
+          style: d({ position: e.headerSticky ? "sticky" : "" })
         }, [
-          d("div", N, [
+          c("div", z, [
             a(t.$slots, "title", {}, () => [
               g(v(r.title), 1)
             ], !0)
           ]),
-          t.$slots.extra ? (s(), l("div", w, [
+          t.$slots.extra ? (s(), l("div", N, [
             a(t.$slots, "extra", {}, void 0, !0)
           ])) : i("", !0)
         ], 4)) : i("", !0),
-        d("div", B, [
+        c("div", w, [
           a(t.$slots, "default", {}, void 0, !0)
         ]),
-        t.$slots.footer ? (s(), l("div", P, [
+        t.$slots.footer ? (s(), l("div", B, [
           k(y, { size: h.value }, {
             default: $(() => [
               a(t.$slots, "footer", {}, void 0, !0)
@@ -68,7 +68,7 @@ const N = { class: "s-panel-layout-title" }, w = {
       ], 6);
     };
   }
-}), E = /* @__PURE__ */ x(V, [["__scopeId", "data-v-e4c46e17"]]);
+}), E = /* @__PURE__ */ b(P, [["__scopeId", "data-v-ecb1bd03"]]);
 export {
   E as default
 };

+ 102 - 117
lib/js/SSkeletonLayout.js

@@ -1,12 +1,13 @@
-import { ref as a, computed as x, watch as ee, resolveComponent as O, resolveDirective as te, openBlock as n, createElementBlock as i, createElementVNode as d, toDisplayString as b, createBlock as m, withCtx as s, createVNode as u, createTextVNode as h, createCommentVNode as r, Fragment as $, renderList as T, withDirectives as V, resolveDynamicComponent as ne, vShow as oe, renderSlot as g, normalizeStyle as le } from "vue";
-import { n as se, y as ae, B as ie } from "./index2.js";
-import { S as ue } from "./index9.js";
-import { _ as re, S as ce } from "./index12.js";
-import { T as de, _ as fe } from "./index13.js";
-const me = { class: "title" }, pe = { style: { "margin-right": "10px" } }, ye = { class: "btns" }, ve = { class: "skeleton-layout-main" }, be = {
+import { ref as o, computed as x, watch as ee, resolveComponent as g, resolveDirective as te, openBlock as n, createElementBlock as a, createElementVNode as c, toDisplayString as y, createBlock as d, withCtx as s, createVNode as r, createTextVNode as b, createCommentVNode as u, Fragment as O, renderList as $, withDirectives as A, resolveDynamicComponent as ne, vShow as le, renderSlot as _, normalizeStyle as se, unref as oe } from "vue";
+import { c as ae } from "./side-drag.js";
+import { n as ie, y as re, B as ue } from "./index2.js";
+import { S as ce } from "./index9.js";
+import { _ as de, S as fe } from "./index12.js";
+import { T as pe, _ as ye } from "./index13.js";
+const me = { class: "title" }, ve = { style: { "margin-right": "10px" } }, be = { class: "btns" }, _e = { class: "skeleton-layout-main" }, ke = {
   key: 1,
   class: "side-bar s-theme-bg"
-}, _e = { class: "skeleton-content" }, ke = { class: "skeleton-container" }, he = 0, ge = /* @__PURE__ */ Object.assign({ name: "SSkeletonLayout" }, {
+}, he = { class: "skeleton-content" }, ge = { class: "skeleton-container" }, Ce = 0, Se = /* @__PURE__ */ Object.assign({ name: "SSkeletonLayout" }, {
   __name: "SSkeletonLayout",
   props: {
     // 页面标题
@@ -41,27 +42,27 @@ const me = { class: "title" }, pe = { style: { "margin-right": "10px" } }, ye =
     }
   },
   emits: ["tabsChange", "btnCallback", "stepChange", "stepConfirm"],
-  setup(o, { emit: B }) {
-    const C = B, _ = o, K = a(null), P = a(null), E = a(null), I = a(null), S = a(232), k = a(""), N = a(null), R = a(null), p = a(0), D = a(8), W = () => {
-      const e = _.tabs || [];
+  setup(l, { emit: V }) {
+    const k = V, m = l, B = o(null), K = o(null), L = o(null), P = o(null), C = o(232), v = o(""), I = o(null), N = o(null), f = o(0), w = o(8), R = () => {
+      const e = m.tabs || [];
       if (!e.length) {
-        k.value = "";
+        v.value = "";
         return;
       }
-      const l = w.value;
-      e.some((c) => c && c[l] === k.value) || (k.value = e[0][l]);
-    }, w = x(() => _.tabKey && _.tabKey.value || "value");
-    ee(() => _.tabs, W, { immediate: !0, deep: !0 });
-    function X(e) {
-      k.value = e;
-      const l = _.tabs.find((c) => c[w.value] === e);
-      C("tabsChange", l);
+      const i = S.value;
+      e.some((p) => p && p[i] === v.value) || (v.value = e[0][i]);
+    }, S = x(() => m.tabKey && m.tabKey.value || "value");
+    ee(() => m.tabs, R, { immediate: !0, deep: !0 });
+    function E(e) {
+      v.value = e;
+      const i = m.tabs.find((p) => p[S.value] === e);
+      k("tabsChange", i);
     }
-    function z(e) {
-      p.value += e === "prev" ? -1 : 1, C("stepChange", e, p.value);
+    function T(e) {
+      f.value += e === "prev" ? -1 : 1, k("stepChange", e, f.value);
     }
     function j() {
-      C("stepConfirm", p.value);
+      k("stepConfirm", f.value);
     }
     const F = {
       add: "PlusCircleOutlined",
@@ -81,119 +82,103 @@ const me = { class: "title" }, pe = { style: { "margin-right": "10px" } }, ye =
       synchronize: "SyncOutlined"
     };
     function q(e) {
-      C("btnCallback", e.key);
+      k("btnCallback", e.key);
     }
-    function A(e) {
+    function D(e) {
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && F[e.key] || "";
     }
-    const H = {
-      mounted(e) {
-        e.style.cursor = "e-resize", document.addEventListener("selectstart", (l) => {
-          l.preventDefault();
-        }), e.onmousedown = (l) => {
-          const c = l.clientX, y = S.value;
-          document.onmousemove = (v) => {
-            const f = v.clientX - c;
-            if (f < 0) {
-              if (y + f <= 232) return;
-              S.value = y + f;
-            } else {
-              if (y + f >= 500) return;
-              S.value = y + f;
-            }
-          }, document.onmouseup = () => {
-            document.onmousemove = document.onmousedown = null;
-          };
-        };
-      }
-    };
-    return (e, l) => {
-      const c = O("InfoCircleOutlined"), y = ae, v = ie, f = O("arrow-left-outlined"), M = O("arrow-right-outlined"), U = O("save-outlined"), L = ue, G = ce, J = re, Q = fe, Y = de, Z = te("action");
-      return n(), i("div", {
+    const H = ae(
+      () => C.value,
+      (e) => C.value = e,
+      { min: 232 }
+    );
+    return (e, i) => {
+      const p = g("InfoCircleOutlined"), M = re, h = ue, U = g("arrow-left-outlined"), W = g("arrow-right-outlined"), G = g("save-outlined"), z = ce, J = fe, Q = de, X = ye, Y = pe, Z = te("action");
+      return n(), a("div", {
         class: "s-skeleton-layout",
         ref_key: "layout",
-        ref: K
+        ref: B
       }, [
-        d("div", {
+        c("div", {
           class: "tools",
           ref_key: "tools",
-          ref: P
+          ref: K
         }, [
-          d("div", me, [
-            d("span", pe, b(o.title), 1),
-            o.subTitle ? (n(), m(y, {
+          c("div", me, [
+            c("span", ve, y(l.title), 1),
+            l.subTitle ? (n(), d(M, {
               key: 0,
               placement: "topLeft",
               mouseEnterDelay: 0.5,
               mouseLeaveDelay: 0.5
             }, {
               title: s(() => [
-                h(b(o.subTitle), 1)
+                b(y(l.subTitle), 1)
               ]),
               default: s(() => [
-                u(c)
+                r(p)
               ]),
               _: 1
-            })) : r("", !0)
+            })) : u("", !0)
           ]),
-          d("div", ye, [
-            u(L, { size: D.value }, {
+          c("div", be, [
+            r(z, { size: w.value }, {
               default: s(() => [
-                (n(!0), i($, null, T(o.buttons, (t) => (n(), i("span", {
+                (n(!0), a(O, null, $(l.buttons, (t) => (n(), a("span", {
                   class: "item-btn",
                   key: t.key
                 }, [
-                  V((n(), m(v, {
+                  A((n(), d(h, {
                     class: "btn",
                     disabled: !!t.disabled,
                     type: t.type || t.key === "add" ? "primary" : "default",
-                    onClick: (Ce) => q(t)
+                    onClick: (Oe) => q(t)
                   }, {
                     icon: s(() => [
-                      A(t) ? (n(), m(ne(A(t)), { key: 0 })) : r("", !0)
+                      D(t) ? (n(), d(ne(D(t)), { key: 0 })) : u("", !0)
                     ]),
                     default: s(() => [
-                      h(" " + b(e.$l(t.name)), 1)
+                      b(" " + y(e.$l(t.name)), 1)
                     ]),
                     _: 2
                   }, 1032, ["disabled", "type", "onClick"])), [
                     [Z, t.action || t.key],
-                    [oe, t.show !== !1]
+                    [le, t.show !== !1]
                   ])
                 ]))), 128)),
-                g(e.$slots, "otherBtns", {}, void 0, !0),
-                o.steps.length ? (n(), m(v, {
+                _(e.$slots, "otherBtns", {}, void 0, !0),
+                l.steps.length ? (n(), d(h, {
                   key: 0,
                   class: "btn",
-                  disabled: p.value === he,
-                  onClick: l[0] || (l[0] = (t) => z("prev"))
+                  disabled: f.value === Ce,
+                  onClick: i[0] || (i[0] = (t) => T("prev"))
                 }, {
                   default: s(() => [
-                    u(f),
-                    h(b(e.$l("上一步")), 1)
+                    r(U),
+                    b(y(e.$l("上一步")), 1)
                   ]),
                   _: 1
-                }, 8, ["disabled"])) : r("", !0),
-                o.steps.length ? (n(), m(v, {
+                }, 8, ["disabled"])) : u("", !0),
+                l.steps.length ? (n(), d(h, {
                   key: 1,
                   class: "btn",
                   type: "primary",
-                  disabled: p.value === o.steps.length - 1,
-                  onClick: l[1] || (l[1] = (t) => z("next"))
+                  disabled: f.value === l.steps.length - 1,
+                  onClick: i[1] || (i[1] = (t) => T("next"))
                 }, {
                   default: s(() => [
-                    u(M),
-                    h(b(e.$l("下一步")), 1)
+                    r(W),
+                    b(y(e.$l("下一步")), 1)
                   ]),
                   _: 1
-                }, 8, ["disabled"])) : r("", !0),
-                u(v, {
+                }, 8, ["disabled"])) : u("", !0),
+                r(h, {
                   type: "primary",
                   onClick: j
                 }, {
                   default: s(() => [
-                    u(U),
-                    h(" " + b(e.$l("确认")), 1)
+                    r(G),
+                    b(" " + y(e.$l("确认")), 1)
                   ]),
                   _: 1
                 })
@@ -202,32 +187,32 @@ const me = { class: "title" }, pe = { style: { "margin-right": "10px" } }, ye =
             }, 8, ["size"])
           ])
         ], 512),
-        d("div", ve, [
-          e.$slots.tree ? (n(), i("div", {
+        c("div", _e, [
+          e.$slots.tree ? (n(), a("div", {
             key: 0,
             class: "side s-side-tree",
             ref: "side",
-            style: le({ width: S.value + "px" })
+            style: se({ width: C.value + "px" })
           }, [
-            g(e.$slots, "tree", {}, void 0, !0)
-          ], 4)) : r("", !0),
-          e.$slots.tree ? V((n(), i("div", be, null, 512)), [
-            [H]
-          ]) : r("", !0),
-          d("div", _e, [
-            o.steps && o.steps.length ? (n(), i("div", {
+            _(e.$slots, "tree", {}, void 0, !0)
+          ], 4)) : u("", !0),
+          e.$slots.tree ? A((n(), a("div", ke, null, 512)), [
+            [oe(H)]
+          ]) : u("", !0),
+          c("div", he, [
+            l.steps && l.steps.length ? (n(), a("div", {
               key: 0,
               class: "step-wrap",
               ref_key: "stepRef",
-              ref: R
+              ref: N
             }, [
-              u(J, {
-                current: p.value,
+              r(Q, {
+                current: f.value,
                 type: "navigation",
                 size: "small"
               }, {
                 default: s(() => [
-                  (n(!0), i($, null, T(o.steps, (t) => (n(), m(G, {
+                  (n(!0), a(O, null, $(l.steps, (t) => (n(), d(J, {
                     title: t,
                     key: t,
                     disabled: !0
@@ -235,55 +220,55 @@ const me = { class: "title" }, pe = { style: { "margin-right": "10px" } }, ye =
                 ]),
                 _: 1
               }, 8, ["current"])
-            ], 512)) : r("", !0),
-            o.tabs && o.tabs.length ? (n(), i("div", {
+            ], 512)) : u("", !0),
+            l.tabs && l.tabs.length ? (n(), a("div", {
               key: 1,
               class: "tabs-wrap",
               ref_key: "tabsRef",
-              ref: N
+              ref: I
             }, [
-              u(Y, {
-                "active-key": k.value,
-                onChange: X
+              r(Y, {
+                "active-key": v.value,
+                onChange: E
               }, {
                 default: s(() => [
-                  (n(!0), i($, null, T(o.tabs, (t) => (n(), m(Q, {
-                    tab: t[o.tabKey.label],
-                    key: t[w.value]
+                  (n(!0), a(O, null, $(l.tabs, (t) => (n(), d(X, {
+                    tab: t[l.tabKey.label],
+                    key: t[S.value]
                   }, null, 8, ["tab"]))), 128))
                 ]),
                 _: 1
               }, 8, ["active-key"])
-            ], 512)) : r("", !0),
-            d("div", ke, [
-              g(e.$slots, "default", {}, void 0, !0)
+            ], 512)) : u("", !0),
+            c("div", ge, [
+              _(e.$slots, "default", {}, void 0, !0)
             ])
           ])
         ]),
-        d("div", {
+        c("div", {
           class: "other",
           ref_key: "other",
-          ref: E
+          ref: L
         }, [
-          g(e.$slots, "other", {}, void 0, !0)
+          _(e.$slots, "other", {}, void 0, !0)
         ], 512),
-        e.$slots.footer ? (n(), i("div", {
+        e.$slots.footer ? (n(), a("div", {
           key: 0,
           class: "skeleton-footer",
           ref_key: "footer",
-          ref: I
+          ref: P
         }, [
-          u(L, { size: D.value }, {
+          r(z, { size: w.value }, {
             default: s(() => [
-              g(e.$slots, "footer", {}, void 0, !0)
+              _(e.$slots, "footer", {}, void 0, !0)
             ]),
             _: 3
           }, 8, ["size"])
-        ], 512)) : r("", !0)
+        ], 512)) : u("", !0)
       ], 512);
     };
   }
-}), De = /* @__PURE__ */ se(ge, [["__scopeId", "data-v-84fe04ef"]]);
+}), Ve = /* @__PURE__ */ ie(Se, [["__scopeId", "data-v-a7223d88"]]);
 export {
-  De as default
+  Ve as default
 };

+ 1 - 1
lib/js/SThemeConfig.js

@@ -157,7 +157,7 @@ const de = { class: "s-theme-config" }, ve = { class: "section" }, me = { class:
       }, 8, ["value", "title", "save-btn-text"]);
     };
   }
-}, Ve = /* @__PURE__ */ oe(He, [["__scopeId", "data-v-9674b30a"]]);
+}, Ve = /* @__PURE__ */ oe(He, [["__scopeId", "data-v-94895ebb"]]);
 export {
   Ve as default
 };

+ 1 - 1
lib/js/SToggleLanguage.js

@@ -99,7 +99,7 @@ const b = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!D
       ], 2)) : N("", !0);
     };
   }
-}), H = /* @__PURE__ */ B(F, [["__scopeId", "data-v-83a3897f"]]);
+}), H = /* @__PURE__ */ B(F, [["__scopeId", "data-v-75c0d880"]]);
 export {
   H as default
 };

+ 5 - 5
lib/js/SettingColumns.js

@@ -2,14 +2,14 @@ var K = Object.defineProperty, G = Object.defineProperties;
 var J = Object.getOwnPropertyDescriptors;
 var v = Object.getOwnPropertySymbols;
 var I = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
-var F = (n, t, s) => t in n ? K(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s, b = (n, t) => {
+var F = (n, t, s) => t in n ? K(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s, C = (n, t) => {
   for (var s in t || (t = {}))
     I.call(t, s) && F(n, s, t[s]);
   if (v)
     for (var s of v(t))
       $.call(t, s) && F(n, s, t[s]);
   return n;
-}, C = (n, t) => G(n, J(t));
+}, b = (n, t) => G(n, J(t));
 var N = (n, t) => {
   var s = {};
   for (var a in n)
@@ -52,7 +52,7 @@ const oe = { class: "drawer-wrap" }, ie = { class: "content-wrap" }, ae = { clas
       return Number.isFinite(o) ? Math.round(o) : void 0;
     }
     function O(e) {
-      return e.fixed && !w.has(e.dataIndex) && w.set(e.dataIndex, e.fixed === "right" ? "right" : "left"), C(b({}, e), {
+      return e.fixed && !w.has(e.dataIndex) && w.set(e.dataIndex, e.fixed === "right" ? "right" : "left"), b(C({}, e), {
         // 像素宽度:百分比列留空,等用户自己填
         width: x(e.width),
         // 原始列宽声明(例如 "20%"),用户没填像素值时原样恢复,避免把百分比列写坏
@@ -71,7 +71,7 @@ const oe = { class: "drawer-wrap" }, ie = { class: "content-wrap" }, ae = { clas
       return p.value.map((c) => {
         var d = c, { widthRaw: e } = d, o = N(d, ["widthRaw"]);
         const m = x(o.width);
-        return C(b({}, o), {
+        return b(C({}, o), {
           // 没填像素宽度就回到原始声明(百分比列保持原样)
           width: m === void 0 ? e : m,
           fixed: o.isFixed ? w.get(o.dataIndex) || "left" : !1
@@ -222,7 +222,7 @@ const oe = { class: "drawer-wrap" }, ie = { class: "content-wrap" }, ae = { clas
       }, 8, ["title", "visible"]);
     };
   }
-}), ye = /* @__PURE__ */ Z(ge, [["__scopeId", "data-v-51f1ab42"]]);
+}), ye = /* @__PURE__ */ Z(ge, [["__scopeId", "data-v-1e3ea8d6"]]);
 export {
   ye as default
 };

+ 1 - 1
lib/js/SettingFilter.js

@@ -236,7 +236,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
       }, 8, ["title", "visible"]);
     };
   }
-}), _e = /* @__PURE__ */ W(re, [["__scopeId", "data-v-ee117bc6"]]);
+}), _e = /* @__PURE__ */ W(re, [["__scopeId", "data-v-6154ec79"]]);
 export {
   _e as default
 };

+ 1 - 1
lib/js/activate.js

@@ -668,7 +668,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
       ]);
     };
   }
-}), pt = /* @__PURE__ */ Me(at, [["__scopeId", "data-v-135ab6bd"]]);
+}), pt = /* @__PURE__ */ Me(at, [["__scopeId", "data-v-65ffd197"]]);
 export {
   pt as default
 };

+ 1 - 1
lib/js/components-doc.js

@@ -2732,7 +2732,7 @@ function kl(e, t, o, w, i, d) {
     _(k)
   ], 64);
 }
-const Ll = /* @__PURE__ */ ee(ue, [["render", kl], ["__scopeId", "data-v-6cda6542"]]);
+const Ll = /* @__PURE__ */ ee(ue, [["render", kl], ["__scopeId", "data-v-b3536812"]]);
 export {
   Ll as default
 };

+ 1 - 1
lib/js/docs.js

@@ -169,7 +169,7 @@ function O(n, t, r, e, o, i) {
     c(g)
   ], 64);
 }
-const D = /* @__PURE__ */ I(M, [["render", O], ["__scopeId", "data-v-59499894"]]);
+const D = /* @__PURE__ */ I(M, [["render", O], ["__scopeId", "data-v-ec246213"]]);
 export {
   D as default
 };

+ 42 - 42
lib/js/forgot-password.js

@@ -1,5 +1,5 @@
 var $ = (t, e, a) => new Promise((r, s) => {
-  var c = (u) => {
+  var d = (u) => {
     try {
       h(a.next(u));
     } catch (M) {
@@ -11,7 +11,7 @@ var $ = (t, e, a) => new Promise((r, s) => {
     } catch (M) {
       s(M);
     }
-  }, h = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(c, f);
+  }, h = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(d, f);
   h((a = a.apply(t, e)).next());
 });
 import { createVNode as l, defineComponent as C1, computed as x, ref as _, reactive as q, onMounted as E1, onBeforeUnmount as b1, resolveComponent as j, openBlock as w, createElementBlock as K, createElementVNode as B, withCtx as o, createBlock as S, createTextVNode as k, toDisplayString as i, Fragment as D1, normalizeClass as y1, createCommentVNode as O } from "vue";
@@ -756,7 +756,7 @@ const e2 = () => l("svg", {
     lineHeightHeading3: a,
     iconCls: r,
     padding: s,
-    paddingXL: c,
+    paddingXL: d,
     paddingXS: f,
     paddingLG: h,
     marginXS: u,
@@ -765,7 +765,7 @@ const e2 = () => l("svg", {
   return {
     // Result
     [e]: {
-      padding: `${h * 2}px ${c}px`,
+      padding: `${h * 2}px ${d}px`,
       // RTL
       "&-rtl": {
         direction: "rtl"
@@ -836,12 +836,12 @@ const e2 = () => l("svg", {
   const {
     paddingLG: e,
     fontSizeHeading3: a
-  } = t, r = t.fontSize, s = `${e}px 0 0 0`, c = t.colorInfo, f = t.colorError, h = t.colorSuccess, u = t.colorWarning, M = x1(t, {
+  } = t, r = t.fontSize, s = `${e}px 0 0 0`, d = t.colorInfo, f = t.colorError, h = t.colorSuccess, u = t.colorWarning, M = x1(t, {
     resultTitleFontSize: a,
     resultSubtitleFontSize: r,
     resultIconFontSize: a * 3,
     resultExtraMargin: s,
-    resultInfoIconColor: c,
+    resultInfoIconColor: d,
     resultErrorIconColor: f,
     resultSuccessIconColor: h,
     resultWarningIconColor: u
@@ -859,7 +859,7 @@ const e2 = () => l("svg", {
   404: e2,
   500: t2,
   403: n2
-}, c2 = Object.keys(I), d2 = () => ({
+}, d2 = Object.keys(I), c2 = () => ({
   prefixCls: String,
   icon: V.any,
   status: {
@@ -874,16 +874,16 @@ const e2 = () => l("svg", {
     status: a,
     icon: r
   } = e;
-  if (c2.includes(`${a}`)) {
+  if (d2.includes(`${a}`)) {
     const f = I[a];
     return l("div", {
       class: `${t}-icon ${t}-image`
     }, [l(f, null, null)]);
   }
-  const s = u2[a], c = r || l(s, null, null);
+  const s = u2[a], d = r || l(s, null, null);
   return l("div", {
     class: `${t}-icon`
-  }, [c]);
+  }, [d]);
 }, h2 = (t, e) => e && l("div", {
   class: `${t}-extra`
 }, [e]), A = C1({
@@ -892,7 +892,7 @@ const e2 = () => l("svg", {
   },
   name: "AResult",
   inheritAttrs: !1,
-  props: d2(),
+  props: c2(),
   slots: Object,
   setup(t, e) {
     let {
@@ -901,13 +901,13 @@ const e2 = () => l("svg", {
     } = e;
     const {
       prefixCls: s,
-      direction: c
+      direction: d
     } = I1("result", t), [f, h] = i2(s), u = x(() => T1(s.value, h.value, `${s.value}-${t.status}`, {
-      [`${s.value}-rtl`]: c.value === "rtl"
+      [`${s.value}-rtl`]: d.value === "rtl"
     }));
     return () => {
-      var M, C, d, v, m, D, E, b;
-      const L = (M = t.title) !== null && M !== void 0 ? M : (C = a.title) === null || C === void 0 ? void 0 : C.call(a), T = (d = t.subTitle) !== null && d !== void 0 ? d : (v = a.subTitle) === null || v === void 0 ? void 0 : v.call(a), N = (m = t.icon) !== null && m !== void 0 ? m : (D = a.icon) === null || D === void 0 ? void 0 : D.call(a), R = (E = t.extra) !== null && E !== void 0 ? E : (b = a.extra) === null || b === void 0 ? void 0 : b.call(a), y = s.value;
+      var M, C, c, v, m, D, E, b;
+      const L = (M = t.title) !== null && M !== void 0 ? M : (C = a.title) === null || C === void 0 ? void 0 : C.call(a), T = (c = t.subTitle) !== null && c !== void 0 ? c : (v = a.subTitle) === null || v === void 0 ? void 0 : v.call(a), N = (m = t.icon) !== null && m !== void 0 ? m : (D = a.icon) === null || D === void 0 ? void 0 : D.call(a), R = (E = t.extra) !== null && E !== void 0 ? E : (b = a.extra) === null || b === void 0 ? void 0 : b.call(a), y = s.value;
       return f(l("div", o1(o1({}, r), {}, {
         class: [u.value, r.class]
       }), [p2(y, {
@@ -935,9 +935,9 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
 }, F2 = { class: "retrieve-options" }, m2 = { class: "option-title" }, v2 = { class: "option-desc" }, g2 = { class: "form-actions" }, _2 = { class: "form-actions" }, w2 = { class: "form-actions" }, B2 = { class: "back-login" }, C2 = /* @__PURE__ */ Object.assign({ name: "LoginForgotPassword" }, {
   __name: "forgot-password",
   setup(t) {
-    const e = (n) => window.$l ? window.$l(n) : n, a = A1(), r = _(0), s = _(0), c = _(!1), f = _(!1), h = _(!1), u = _(0), M = x(() => u.value > 0);
+    const e = (n) => window.$l ? window.$l(n) : n, a = A1(), r = _(0), s = _(0), d = _(!1), f = _(!1), h = _(!1), u = _(0), M = x(() => u.value > 0);
     let C = null;
-    const d = q({ no: "", mobile: "", email: "" }), v = q({ code: "" }), m = q({ password: "", confirmPassword: "" }), D = _(""), E = _(6), b = _(20), L = /^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[3-8]{1})|(18[0-9]{1})|(19[0-9]{1})|(14[5-7]{1}))+\d{8})$/, T = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/, N = x(() => s.value === 0 ? d.mobile : d.email), R = x(() => {
+    const c = q({ no: "", mobile: "", email: "" }), v = q({ code: "" }), m = q({ password: "", confirmPassword: "" }), D = _(""), E = _(6), b = _(20), L = /^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[3-8]{1})|(18[0-9]{1})|(19[0-9]{1})|(14[5-7]{1}))+\d{8})$/, T = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/, N = x(() => s.value === 0 ? c.mobile : c.email), R = x(() => {
       const n = {
         no: [{ required: !0, message: e("请输入账号"), trigger: "blur" }]
       };
@@ -987,16 +987,16 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
     }
     function Z() {
       return {
-        no: d.no,
+        no: c.no,
         type: s.value,
-        mobile: s.value === 0 ? d.mobile : "",
-        email: s.value === 1 ? d.email : ""
+        mobile: s.value === 0 ? c.mobile : "",
+        email: s.value === 1 ? c.email : ""
       };
     }
     function u1() {
       return $(this, null, function* () {
-        if (!c.value) {
-          c.value = !0;
+        if (!d.value) {
+          d.value = !0;
           try {
             yield n1(Z()), window.$message.success(
               s.value === 0 ? e("验证码已发送,请注意查收短信") : e("验证码已发送,请注意查收邮件")
@@ -1004,30 +1004,30 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
           } catch (n) {
             window.$message.error((n == null ? void 0 : n.message) || e("验证码发送失败,请稍后重试"));
           } finally {
-            c.value = !1;
+            d.value = !1;
           }
         }
       });
     }
-    function c1() {
+    function d1() {
       return $(this, null, function* () {
-        if (!(M.value || c.value)) {
-          c.value = !0;
+        if (!(M.value || d.value)) {
+          d.value = !0;
           try {
             yield n1(Z()), window.$message.success(e("验证码已重新发送")), X();
           } catch (n) {
             window.$message.error((n == null ? void 0 : n.message) || e("验证码发送失败,请稍后重试"));
           } finally {
-            c.value = !1;
+            d.value = !1;
           }
         }
       });
     }
-    function d1() {
+    function c1() {
       return $(this, null, function* () {
         f.value = !0;
         try {
-          const n = yield $1(v.code, d.no);
+          const n = yield $1(v.code, c.no);
           D.value = (n == null ? void 0 : n.access_token) || "", r.value = 3;
         } catch (n) {
           window.$message.error((n == null ? void 0 : n.message) || e("验证码错误或已过期,请重新输入"));
@@ -1042,7 +1042,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
         try {
           yield j1(
             t1(m.password),
-            t1(d.no),
+            t1(c.no),
             v.code,
             D.value
           ), r.value = 4, window.$message.success(e("密码重置成功"));
@@ -1147,7 +1147,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                 r.value === 1 ? (w(), S(G, {
                   key: 1,
                   class: "forgot-form",
-                  model: d,
+                  model: c,
                   rules: R.value,
                   layout: "vertical",
                   onFinish: u1
@@ -1159,8 +1159,8 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                     }, {
                       default: o(() => [
                         l(H, {
-                          value: d.no,
-                          "onUpdate:value": p[1] || (p[1] = (F) => d.no = F),
+                          value: c.no,
+                          "onUpdate:value": p[1] || (p[1] = (F) => c.no = F),
                           size: "large",
                           placeholder: e("请输入账号"),
                           "allow-clear": ""
@@ -1180,8 +1180,8 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                     }, {
                       default: o(() => [
                         l(H, {
-                          value: d.mobile,
-                          "onUpdate:value": p[2] || (p[2] = (F) => d.mobile = F),
+                          value: c.mobile,
+                          "onUpdate:value": p[2] || (p[2] = (F) => c.mobile = F),
                           size: "large",
                           placeholder: e("请输入备案的手机号码"),
                           maxlength: 11,
@@ -1201,8 +1201,8 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                     }, {
                       default: o(() => [
                         l(H, {
-                          value: d.email,
-                          "onUpdate:value": p[3] || (p[3] = (F) => d.email = F),
+                          value: c.email,
+                          "onUpdate:value": p[3] || (p[3] = (F) => c.email = F),
                           size: "large",
                           placeholder: e("请输入备案的邮箱地址"),
                           "allow-clear": ""
@@ -1229,7 +1229,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                         type: "primary",
                         size: "large",
                         "html-type": "submit",
-                        loading: c.value
+                        loading: d.value
                       }, {
                         default: o(() => [
                           k(i(s.value === 0 ? e("发送短信验证码") : e("发送邮箱验证码")), 1)
@@ -1246,7 +1246,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                   model: v,
                   rules: y,
                   layout: "vertical",
-                  onFinish: d1
+                  onFinish: c1
                 }, {
                   default: o(() => [
                     l(Y, {
@@ -1288,8 +1288,8 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                                   size: "large",
                                   block: "",
                                   disabled: M.value,
-                                  loading: c.value,
-                                  onClick: c1
+                                  loading: d.value,
+                                  onClick: d1
                                 }, {
                                   default: o(() => [
                                     k(i(M.value ? `${u.value} ${e("秒后重发")}` : e("重新发送")), 1)
@@ -1431,7 +1431,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
       ]);
     };
   }
-}), T2 = /* @__PURE__ */ L1(C2, [["__scopeId", "data-v-547cbe9b"]]);
+}), T2 = /* @__PURE__ */ L1(C2, [["__scopeId", "data-v-5b756b3e"]]);
 export {
   T2 as default
 };

Diferenças do arquivo suprimidas por serem muito extensas
+ 356 - 265
lib/js/index2.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 3 - 3
lib/js/index3.js


+ 23 - 23
lib/js/qr-code.js

@@ -14,7 +14,7 @@ var Q = (r, o, l) => new Promise((h, d) => {
   }, e = (t) => t.done ? h(t.value) : Promise.resolve(t.value).then(a, w);
   e((l = l.apply(r, o)).next());
 });
-import { defineComponent as j, computed as Z, shallowRef as K, watchEffect as ie, watch as Ae, createVNode as v, Fragment as re, ref as L, onMounted as Ie, onBeforeUnmount as be, resolveComponent as ee, openBlock as B, createElementBlock as U, createElementVNode as S, withCtx as y, createTextVNode as P, toDisplayString as R, unref as te, createCommentVNode as ne, createBlock as Se } from "vue";
+import { defineComponent as j, computed as Z, shallowRef as K, watchEffect as ie, watch as Ae, createVNode as v, Fragment as re, ref as L, onMounted as be, onBeforeUnmount as Ie, resolveComponent as ee, openBlock as B, createElementBlock as U, createElementVNode as S, withCtx as y, createTextVNode as P, toDisplayString as R, unref as te, createCommentVNode as ne, createBlock as Se } from "vue";
 import { useRouter as Ne } from "vue-router";
 import { a as Pe } from "./account.js";
 import { g as Le, m as Te, d as T, r as xe, bo as G, e as ze, _ as D, b as $e, bq as Be, b3 as Oe, u as Ue, cB as De, aA as le, B as ae, e9 as ke, ea as Fe, eb as He, n as Ve, dL as qe, ad as Ke } from "./index2.js";
@@ -268,8 +268,8 @@ var A;
       for (let m = 0, E = 0; m < s; m++) {
         const M = e.slice(E, E + p - i + (m < c ? 0 : 1));
         E += M.length;
-        const I = o.reedSolomonComputeRemainder(M, _);
-        m < c && M.push(0), g.push(M.concat(I));
+        const b = o.reedSolomonComputeRemainder(M, _);
+        m < c && M.push(0), g.push(M.concat(b));
       }
       const C = [];
       for (let m = 0; m < g[0].length; m++)
@@ -694,16 +694,16 @@ const st = function() {
         if (!C)
           return;
         let m = A.QrCode.encodeText(t, ce[s]).getModules();
-        const E = ve(c, p), M = m.length + E * 2, I = pe(m, n, E, g), x = w.value, F = e.value && I != null && x !== null && x.complete && x.naturalHeight !== 0 && x.naturalWidth !== 0;
-        F && I.excavation != null && (m = me(m, I.excavation));
+        const E = ve(c, p), M = m.length + E * 2, b = pe(m, n, E, g), x = w.value, F = e.value && b != null && x !== null && x.complete && x.naturalHeight !== 0 && x.naturalWidth !== 0;
+        F && b.excavation != null && (m = me(m, b.excavation));
         const H = window.devicePixelRatio || 1;
         _.height = _.width = n * H;
         const f = n / M * H;
-        C.scale(f, f), C.fillStyle = i, C.fillRect(0, 0, M, M), C.fillStyle = u, st ? C.fill(new Path2D(ge(m, E))) : m.forEach(function(b, N) {
-          b.forEach(function(z, $) {
+        C.scale(f, f), C.fillStyle = i, C.fillRect(0, 0, M, M), C.fillStyle = u, st ? C.fill(new Path2D(ge(m, E))) : m.forEach(function(I, N) {
+          I.forEach(function(z, $) {
             z && C.fillRect($ + E, N + E, 1, 1);
           });
-        }), F && C.drawImage(x, I.x + E, I.y + E, I.w, I.h);
+        }), F && C.drawImage(x, b.x + E, b.y + E, b.w, b.h);
       }
     }, {
       flush: "post"
@@ -895,7 +895,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
 }, Mt = ["src", "alt"], yt = { class: "overlay-title is-success" }, At = {
   key: 1,
   class: "qr-loading"
-}, It = { class: "page-footer" }, bt = "#0b4884", St = /* @__PURE__ */ Object.assign({ name: "LoginQrCode" }, {
+}, bt = { class: "page-footer" }, It = "#0b4884", St = /* @__PURE__ */ Object.assign({ name: "LoginQrCode" }, {
   __name: "qr-code",
   setup(r) {
     const o = (f) => window.$l ? window.$l(f) : f, l = () => window.$utils.ls, h = Ne(), d = L(""), a = L(""), w = L(!1), e = L(!1), t = L(""), n = L(!1);
@@ -924,8 +924,8 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
           return;
         }
         l().set("QRCodeKey", f.qrId), l().set("QRCodeKeyCreateTime", f.createTime), l().set("QRCodeKeyExpireTime", f.expireTime), a.value = `type=login&qrId=${f.qrId}`;
-        const b = Number(f.expireTime || 0) - Number(f.createTime || 0);
-        g(b > 0 ? Math.floor(b / 1e3) : 60), dt({
+        const I = Number(f.expireTime || 0) - Number(f.createTime || 0);
+        g(I > 0 ? Math.floor(I / 1e3) : 60), dt({
           url: window.$utils.env.VITE_APP_SOCKET_URL,
           path: window.$utils.env.VITE_APP_SOCKET_PATH,
           qrId: f.qrId
@@ -937,7 +937,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
       });
     }
     function E(f) {
-      const b = (window.$utils.env.VITE_APP_BASE_URL || "/").replace(/\/+$/, ""), N = `${window.location.protocol}//${window.location.host}${b}/sso.html?client_id=${f.clientId}&scope=${f.scope}&redirect_uri=${encodeURIComponent(f.redirectUri)}`;
+      const I = (window.$utils.env.VITE_APP_BASE_URL || "/").replace(/\/+$/, ""), N = `${window.location.protocol}//${window.location.host}${I}/sso.html?client_id=${f.clientId}&scope=${f.scope}&redirect_uri=${encodeURIComponent(f.redirectUri)}`;
       window.location.replace(N);
     }
     function M(f) {
@@ -948,10 +948,10 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
           return;
         }
         n.value = !0, t.value = "", _(), V(), C(), l().set("token", f), l().set("USER-TOKEN", f);
-        const b = window.sessionStorage.getItem("redirect_client_id");
-        if (b)
+        const I = window.sessionStorage.getItem("redirect_client_id");
+        if (I)
           try {
-            const { clients: N } = yield Ke().Info(), z = (N || []).find(($) => $.clientId === b) || {};
+            const { clients: N } = yield Ke().Info(), z = (N || []).find(($) => $.clientId === I) || {};
             if (z.redirectUri && z.redirectUri !== "/") {
               E(z);
               return;
@@ -961,7 +961,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
         window.$push(window.$utils.env.VITE_APP_DEFAULT_PATH);
       });
     }
-    function I(f) {
+    function b(f) {
       if (!(!f || !f.status)) {
         if (f.status === "SCANNED") {
           _(), t.value = "scanned";
@@ -982,11 +982,11 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
     function H() {
       h.push(window.$utils.env.VITE_APP_LOGIN_PATH || "/login");
     }
-    return Ie(() => {
-      F(), c = ut(I), m();
-    }), be(() => {
+    return be(() => {
+      F(), c = ut(b), m();
+    }), Ie(() => {
       _(), c && (c(), c = null), V(), C();
-    }), (f, b) => {
+    }), (f, I) => {
       const N = Ye, z = at, $ = ae, we = le, q = We, Ee = Xe, Ce = je, _e = ee("ReloadOutlined"), Re = ee("ArrowLeftOutlined"), Me = Ze, ye = Ge;
       return B(), U("div", ht, [
         S("div", ft, [
@@ -1021,7 +1021,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
                     bordered: !1,
                     "error-level": "M",
                     status: e.value ? "expired" : "active",
-                    color: bt,
+                    color: It,
                     onRefresh: m
                   }, null, 8, ["value", "icon", "status"]),
                   t.value === "scanned" ? (B(), U("div", wt, [
@@ -1122,7 +1122,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
             ]),
             _: 1
           }),
-          S("div", It, [
+          S("div", bt, [
             v(q, { type: "secondary" }, {
               default: y(() => [
                 P(R(o("扫码登录由统一身份认证中心提供,遇到问题请联系学校管理员")), 1)
@@ -1134,7 +1134,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
       ]);
     };
   }
-}), Dt = /* @__PURE__ */ Ve(St, [["__scopeId", "data-v-d7668345"]]);
+}), Dt = /* @__PURE__ */ Ve(St, [["__scopeId", "data-v-9d72bff3"]]);
 export {
   Dt as default
 };

+ 30 - 0
lib/js/side-drag.js

@@ -0,0 +1,30 @@
+function _(d, c, { min: i = 232, max: m = 500 } = {}) {
+  const a = (e) => {
+    e.style.cursor = "e-resize";
+    const u = (s) => s.preventDefault();
+    let t = null, n = null;
+    const o = () => {
+      document.removeEventListener("selectstart", u), t && document.removeEventListener("mousemove", t), n && document.removeEventListener("mouseup", n), t = n = null;
+    };
+    e.onmousedown = (s) => {
+      o();
+      const v = s.clientX, l = d();
+      document.addEventListener("selectstart", u), t = (p) => {
+        const r = l + (p.clientX - v);
+        r <= i || r >= m || c(r);
+      }, n = o, document.addEventListener("mousemove", t), document.addEventListener("mouseup", n);
+    }, e.__sideDragStop = o;
+  };
+  return {
+    mounted(e) {
+      a(e);
+    },
+    // 组件销毁(含 v-if 切走)时把可能残留的全局监听清掉
+    unmounted(e) {
+      e.onmousedown = null, e.__sideDragStop && (e.__sideDragStop(), delete e.__sideDragStop);
+    }
+  };
+}
+export {
+  _ as c
+};

+ 1 - 1
lib/js/workplace.js

@@ -1191,7 +1191,7 @@ const Gt = () => B(B({}, mt()), {
       ]);
     };
   }
-}), bn = /* @__PURE__ */ yt(cn, [["__scopeId", "data-v-a8e737d5"]]);
+}), bn = /* @__PURE__ */ yt(cn, [["__scopeId", "data-v-ee112890"]]);
 export {
   bn as default
 };

BIN
static/font/PingFangSC.ttf


+ 12 - 5
vite-plugins/docs-viewer.js

@@ -32,7 +32,12 @@ const inline = (text = '') => {
 }
 
 const splitRow = (line = '') =>
-  line.trim().replace(/^\|/, '').replace(/\|$/, '').split('|').map((s) => s.trim())
+  line
+    .trim()
+    .replace(/^\|/, '')
+    .replace(/\|$/, '')
+    .split('|')
+    .map((s) => s.trim())
 
 const isTableSep = (line = '') => /^\s*\|?[\s:|-]+\|?\s*$/.test(line) && line.includes('-')
 
@@ -120,7 +125,9 @@ const markdownToHtml = (md = '') => {
         '<table><thead><tr>' +
         header.map((c) => `<th>${inline(c)}</th>`).join('') +
         '</tr></thead><tbody>' +
-        rows.map((r) => '<tr>' + r.map((c) => `<td>${inline(c)}</td>`).join('') + '</tr>').join('') +
+        rows
+          .map((r) => '<tr>' + r.map((c) => `<td>${inline(c)}</td>`).join('') + '</tr>')
+          .join('') +
         '</tbody></table>\n'
       continue
     }
@@ -160,7 +167,7 @@ const markdownToHtml = (md = '') => {
 
 const pageStyle = `
   * { box-sizing: border-box; }
-  body { margin: 0; background: #f5f6f8; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; line-height: 1.7; }
+  body { margin: 0; background: #f5f6f8; color: #24292f; font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.7; }
   .doc-wrap { max-width: 1000px; margin: 0 auto; padding: 32px 40px 80px; background: #fff; min-height: 100vh; box-shadow: 0 0 12px rgba(0,0,0,.06); }
   h1, h2, h3, h4 { color: #1f2328; line-height: 1.3; }
   h1 { font-size: 28px; border-bottom: 2px solid #1677ff; padding-bottom: 12px; }
@@ -168,13 +175,13 @@ const pageStyle = `
   h3 { font-size: 18px; margin-top: 28px; }
   a { color: #1677ff; text-decoration: none; }
   a:hover { text-decoration: underline; }
-  code { background: #f0f2f5; color: #d4380d; padding: 2px 6px; border-radius: 4px; font-family: Consolas, Monaco, "Courier New", monospace; font-size: 13px; }
+  code { background: #f0f2f5; color: #d4380d; padding: 2px 6px; border-radius: 4px; font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 13px; }
   .code-block { background: #1e1e1e; color: #d4d4d4; padding: 16px 18px; border-radius: 8px; overflow-x: auto; position: relative; }
   .code-block code { background: transparent; color: #d4d4d4; padding: 0; font-size: 13px; line-height: 1.6; white-space: pre; }
   .code-block[data-lang]::before { content: attr(data-lang); position: absolute; top: 0; right: 0; background: #1677ff; color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 0 8px 0 8px; }
   table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
   th, td { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; vertical-align: top; }
-  th { background: #f6f8fa; font-weight: 600; }
+  th { background: #f6f8fa; font-weight: 500; }
   tr:nth-child(even) td { background: #fafbfc; }
   blockquote { margin: 16px 0; padding: 12px 16px; background: #f6f8fa; border-left: 4px solid #1677ff; color: #57606a; }
   blockquote p { margin: 0; }

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff