diry 2 tygodni temu
rodzic
commit
ab80ba1b5b

+ 1 - 1
lib/config.json

@@ -1 +1 @@
-{"_hash":1793612274348,"VITE_APP_PROJECT_NAME":"前端项目架构","VITE_APP_VERSION":"v1.0","VITE_APP_JSS_LICENSE":"","VITE_APP_TITLE":"平台","VITE_APP_BASE_URL":"/","VITE_APP_FOOTER_VISIBLE":false,"VITE_APP_LOGIN_PHONE":false,"VITE_APP_LOGIN_QRCODE":false,"VITE_APP_MESSAGE_VISIBLE":true,"VITE_APP_IS_BASE":true,"VITE_APP_LANG_ENABLE":false,"VITE_APP_LANG":"zh","VITE_APP_API_PATH":"/apig","VITE_APP_SYS_SERVER_NAME":"portal","VITE_APP_MESSAGE_SERVER_NAME":"message","VITE_APP_PORTAL_SERVER_NAME":"portal","VITE_APP_FLOW_SERVER_NAME":"flow","VITE_APP_CLIENT_ID":"mm0001","VITE_APP_PREVIEW_ONLINE":"/filePreview/onlinePreview?url=","VITE_APP_WEB_SITE":"https://sapit.com.cn/#/home","VITE_APP_LOGIN_CASE_NAME":"辽ICP备14008719号-2","VITE_APP_BASE_CASE_NAME":"辽ICP备14008719号-2","VITE_APP_SOCKET_URL":"/","VITE_APP_SOCKET_PATH":"/apig/ws/websocket","VITE_CONFIG_MODE":false,"VITE_APP_API_BASE_URL":"http://192.168.200.7:6801","VITE_APP_API_FILE_URL":"/","VITE_APP_LOGIN_PATH":"/login","VITE_APP_DEFAULT_PATH":"/workplace/index","VITE_APP_LOGIN_PATH_THEME":"3","VITE_APP_MENU_THEME":"light","VITE_APP_MENU_BG":"#ebf7fe","VITE_APP_MENU_SUB_BG":"#ebf7fe","VITE_APP_MENU_HOVER_BG":"#d5e8f5","VITE_APP_MENU_ACTIVE_BG":"#d5e8f5","VITE_APP_MENU_TEXT":"","VITE_APP_MENU_TEXT_HOVER":"","VITE_APP_MENU_TEXT_ACTIVE":"","VITE_APP_MENU_GROUP_TITLE":"","VITE_APP_MENU_BG_LIGHTNESS":93,"VITE_APP_MENU_BG_SATURATION":66,"VITE_APP_MENU_BG_ACTIVE_MIX":16,"VITE_APP_MENU_BAR":"left","VITE_APP_THEME_VALUE":"blue","VITE_APP_THEME":{"blue":{"name":"blue","color":"#1677FF","lightColor":"\t#6495ED","darkColor":"#00008B","borderColor":"#B0C4DE","bgColor":"#f0f2f5"},"green":{"name":"green","color":"#00b96b","lightColor":"#90EE90","darkColor":"#3CB371","borderColor":"#98FB98","bgColor":"#F0FFF0"},"orange":{"name":"orange","color":"#FFA500","lightColor":"\t#FFE4B5","darkColor":"#FF8C00","borderColor":"#FFDEAD","bgColor":"#FFEFD5"}},"VITE_USER_NODE_ENV":"production"}
+{"_hash":1793674605490,"VITE_APP_PROJECT_NAME":"前端项目架构","VITE_APP_VERSION":"v1.0","VITE_APP_JSS_LICENSE":"","VITE_APP_TITLE":"平台","VITE_APP_BASE_URL":"/","VITE_APP_FOOTER_VISIBLE":false,"VITE_APP_LOGIN_PHONE":false,"VITE_APP_LOGIN_QRCODE":false,"VITE_APP_MESSAGE_VISIBLE":true,"VITE_APP_IS_BASE":true,"VITE_APP_LANG_ENABLE":false,"VITE_APP_LANG":"zh","VITE_APP_API_PATH":"/apig","VITE_APP_SYS_SERVER_NAME":"portal","VITE_APP_MESSAGE_SERVER_NAME":"message","VITE_APP_PORTAL_SERVER_NAME":"portal","VITE_APP_FLOW_SERVER_NAME":"flow","VITE_APP_CLIENT_ID":"mm0001","VITE_APP_PREVIEW_ONLINE":"/filePreview/onlinePreview?url=","VITE_APP_WEB_SITE":"https://sapit.com.cn/#/home","VITE_APP_LOGIN_CASE_NAME":"辽ICP备14008719号-2","VITE_APP_BASE_CASE_NAME":"辽ICP备14008719号-2","VITE_APP_SOCKET_URL":"/","VITE_APP_SOCKET_PATH":"/apig/ws/websocket","VITE_CONFIG_MODE":false,"VITE_APP_API_BASE_URL":"http://192.168.200.7:6801","VITE_APP_API_FILE_URL":"/","VITE_APP_LOGIN_PATH":"/login","VITE_APP_DEFAULT_PATH":"/workplace/index","VITE_APP_LOGIN_PATH_THEME":"3","VITE_APP_MENU_THEME":"light","VITE_APP_MENU_BG":"#ebf7fe","VITE_APP_MENU_SUB_BG":"#ebf7fe","VITE_APP_MENU_HOVER_BG":"#d5e8f5","VITE_APP_MENU_ACTIVE_BG":"#d5e8f5","VITE_APP_MENU_TEXT":"","VITE_APP_MENU_TEXT_HOVER":"","VITE_APP_MENU_TEXT_ACTIVE":"","VITE_APP_MENU_GROUP_TITLE":"","VITE_APP_MENU_BG_LIGHTNESS":93,"VITE_APP_MENU_BG_SATURATION":66,"VITE_APP_MENU_BG_ACTIVE_MIX":16,"VITE_APP_MENU_BAR":"left","VITE_APP_THEME_VALUE":"blue","VITE_APP_THEME":{"blue":{"name":"blue","color":"#1677FF","lightColor":"\t#6495ED","darkColor":"#00008B","borderColor":"#B0C4DE","bgColor":"#f0f2f5"},"green":{"name":"green","color":"#00b96b","lightColor":"#90EE90","darkColor":"#3CB371","borderColor":"#98FB98","bgColor":"#F0FFF0"},"orange":{"name":"orange","color":"#FFA500","lightColor":"\t#FFE4B5","darkColor":"#FF8C00","borderColor":"#FFDEAD","bgColor":"#FFEFD5"}},"VITE_USER_NODE_ENV":"production"}

Plik diff jest za duży
+ 0 - 0
lib/css/style.css


+ 1 - 1
lib/js/SListCardLayout.js

@@ -560,7 +560,7 @@ const Ie = { class: "tools" }, Re = { class: "title" }, We = { class: "btns" },
       ], 512);
     };
   }
-}), at = /* @__PURE__ */ Fe(ot, [["__scopeId", "data-v-65914cae"]]);
+}), at = /* @__PURE__ */ Fe(ot, [["__scopeId", "data-v-81979d95"]]);
 export {
   at as default
 };

+ 1 - 1
lib/js/SListLayout.js

@@ -498,7 +498,7 @@ const Le = { class: "tools" }, Ke = { class: "title" }, Me = { class: "btns" },
       ], 512);
     };
   }
-}), Ze = /* @__PURE__ */ Pe(Je, [["__scopeId", "data-v-8952ea7e"]]);
+}), Ze = /* @__PURE__ */ Pe(Je, [["__scopeId", "data-v-f83238c5"]]);
 export {
   Ze as default
 };

+ 229 - 212
lib/js/SListTableTreeLayout.js

@@ -1,20 +1,20 @@
-import { getCurrentInstance as De, ref as l, computed as Z, watch as Ie, onMounted as Le, resolveComponent as A, resolveDirective as Re, openBlock as n, createElementBlock as a, createElementVNode as d, toDisplayString as g, Fragment as ee, renderList as Be, withDirectives as P, createBlock as b, withCtx as w, createTextVNode as te, resolveDynamicComponent as Me, createCommentVNode as i, vShow as oe, renderSlot as c, normalizeStyle as _, createVNode as D, nextTick as z, h as ne } from "vue";
-import { useRoute as He } from "vue-router";
-import { n as Ke, B as Ee, y as Pe } from "./index2.js";
-import { _ as ze } from "./index12.js";
-const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" }, Ne = { style: { "margin-left": "8px" } }, qe = {
+import { getCurrentInstance as Le, ref as a, reactive as ze, computed as ee, watch as Re, onMounted as Be, resolveComponent as D, resolveDirective as Me, openBlock as n, createElementBlock as i, createElementVNode as p, toDisplayString as _, Fragment as te, renderList as Pe, withDirectives as E, createBlock as S, withCtx as g, createTextVNode as oe, resolveDynamicComponent as He, createCommentVNode as r, vShow as ne, renderSlot as m, normalizeStyle as x, createVNode as I, nextTick as N, h as le } from "vue";
+import { useRoute as Ke } from "vue-router";
+import { n as Ee, B as Ne, y as Fe } from "./index2.js";
+import { _ as Ue } from "./index12.js";
+const Ve = { class: "tools" }, qe = { class: "title" }, We = { class: "btns" }, Xe = { style: { "margin-left": "8px" } }, je = {
   key: 0,
   class: "filter-content"
-}, We = { class: "filter" }, Xe = {
+}, Je = { class: "filter" }, Qe = {
   key: 1,
   class: "reset-wrap"
-}, je = {
+}, Ge = {
   key: 1,
   class: "filter-more-content"
-}, Ge = {
+}, Ye = {
   key: 2,
   class: "desc-wrap"
-}, Je = { class: "table-content" }, Qe = { class: "table-container" }, Ye = ["onClick"], Ze = { class: "other" }, et = /* @__PURE__ */ Object.assign({ name: "SListTableTreeLayout" }, {
+}, Ze = { class: "table-content" }, et = { class: "table-container" }, tt = ["onClick"], ot = { class: "other" }, nt = /* @__PURE__ */ Object.assign({ name: "SListTableTreeLayout" }, {
   __name: "SListTableTreeLayout",
   props: {
     // 页面标题
@@ -97,10 +97,18 @@ const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" },
     }
   },
   emits: ["reset", "btnCallback", "tableColCallback", "handExpand"],
-  setup(h, { expose: le, emit: ae }) {
-    const I = h, p = ae;
-    He(), De();
-    const F = l(null), ie = l(null), U = l(null), V = l(null), N = l(null), se = l(null), C = l(!1), u = l(0), q = l(0), $ = l(!1), m = l(!1), S = l(232), r = l([]), x = l([]), k = l([]), W = l(!1), ue = l([]), O = l([]), L = l([]), re = {
+  setup(h, { expose: ae, emit: ie }) {
+    const $ = h, f = ie;
+    Ke(), Le();
+    const F = a(null), se = a(null), U = a(null), V = a(null), q = a(null), re = a(null), O = a(!1), u = a(0), W = a(0), k = a(!1), y = a(!1), T = a(232), d = a([]), A = a([]), b = a([]), X = a(!1), ue = a([]), L = a([]), z = a([]), w = ze({
+      current: 1,
+      pageSize: 20,
+      total: 0,
+      showSizeChanger: !0,
+      showQuickJumper: !0,
+      pageSizeOptions: ["10", "20", "50", "100"],
+      showTotal: (e) => `${window.$l("共")}${e}${window.$l("条")}`
+    }), de = {
       add: "PlusCircleOutlined",
       edit: "FormOutlined",
       delete: "DeleteOutlined",
@@ -116,57 +124,64 @@ const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
-    }, X = Z(() => k.value.map((e) => e.key).includes("import")), R = Z(() => k.value.find((e) => e.key === "import") || {});
-    Ie(
-      () => I.buttons,
+    }, j = ee(() => b.value.map((e) => e.key).includes("import")), R = ee(() => b.value.find((e) => e.key === "import") || {});
+    Re(
+      () => $.buttons,
       (e) => {
-        e && e.length && de(e);
+        e && e.length && ce(e);
       },
       { immediate: !0, deep: !0 }
     );
     function B(e, t = "") {
       return !!(e && typeof e == "function");
     }
-    function j(e) {
-      return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && re[e.key] || "";
+    function J(e) {
+      return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && de[e.key] || "";
     }
-    function de(e) {
-      k.value = e.map((t) => (t.key === "remove" && (W.value = !0), t));
+    function ce(e) {
+      b.value = e.map((t) => (t.key === "remove" && (X.value = !0), t));
     }
-    function ce() {
-      z(() => {
-        E(), x.value = I.columns.map((t) => ((t.template || t.isClick || t.dataIndex === "action" && !t.customRender) && !t.scopedSlots && (t.scopedSlots = { customRender: t.dataIndex }), t)), T();
+    function pe() {
+      N(() => {
+        K(), A.value = $.columns.map((t) => ((t.template || t.isClick || t.dataIndex === "action" && !t.customRender) && !t.scopedSlots && (t.scopedSlots = { customRender: t.dataIndex }), t)), C();
       });
       const e = setTimeout(() => {
-        const t = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), s = document.querySelector(".ant-table-thead tr");
-        t && s && s.removeChild(t), clearTimeout(e);
+        const t = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), l = document.querySelector(".ant-table-thead tr");
+        t && l && l.removeChild(t), clearTimeout(e);
       }, 100);
     }
-    function pe() {
-      ce();
+    function me() {
+      pe();
     }
     function M() {
-      $.value = !$.value, E();
+      k.value = !k.value, K();
     }
-    function G(e, t) {
-      const s = Y[e];
-      return s(t);
+    function Q(e, t) {
+      const l = Z[e];
+      return l(t);
     }
-    function H() {
-      p("reset");
+    function P() {
+      f("reset");
     }
-    function T() {
-      I.loadData({ pageNo: 1, pageSize: 0 }).then((e) => {
-        !e.list || !e.list.length ? O.value = ue.value : O.value = e.list;
+    function C(e = !1) {
+      e && (w.current = 1);
+      const t = $.showPagination ? { pageNo: w.current, pageSize: w.pageSize } : { pageNo: 1, pageSize: 0 };
+      return $.loadData(t).then((l) => {
+        var v, c;
+        const s = l && (l.list || l.records) || [];
+        return L.value = s.length ? s : ue.value, w.total = Number((c = l && ((v = l.total) != null ? v : l.totalCount)) != null ? c : s.length), l;
       });
     }
-    function J(e) {
-      p("btnCallback", e.key, r.value);
-      const t = Y[e.key];
-      typeof t == "function" ? t(e) : Q(e);
+    function fe(e) {
+      w.current = e.current, w.pageSize = e.pageSize, C();
     }
-    function Q(e) {
-      if (e.selection !== !1 && !r.value.length) {
+    function G(e) {
+      f("btnCallback", e.key, d.value);
+      const t = Z[e.key];
+      typeof t == "function" ? t(e) : Y(e);
+    }
+    function Y(e) {
+      if (e.selection !== !1 && !d.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
       }
@@ -174,33 +189,33 @@ const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" },
         if (e.confirm) {
           window.$confirm({
             title: `${e.name}`,
-            content: () => ne(
+            content: () => le(
               "div",
               { style: "color:red" },
               `${window.$l("确认要")}{${window.$l(e.name)}}${window.$l("数据吗?")}`
             ),
             onOk: () => {
-              m.value = !0, e.api(r.value).then(() => {
-                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
+              y.value = !0, e.api(d.value).then(() => {
+                window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), f("reset");
               }).finally(() => {
-                m.value = !1;
+                y.value = !1;
               });
             }
           });
           return;
         }
-        m.value = !0, e.api(r.value).then(() => {
-          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
+        y.value = !0, e.api(d.value).then(() => {
+          window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), f("reset");
         }).finally(() => {
-          m.value = !1;
+          y.value = !1;
         });
       }
     }
-    function me() {
-      p("btnCallback", "add");
+    function ye() {
+      f("btnCallback", "add");
     }
-    function fe() {
-      if (!r.value.length) {
+    function ve() {
+      if (!d.value.length) {
         window.$notice.warn({
           key: "only-you",
           message: window.$l("操作失败"),
@@ -210,91 +225,91 @@ const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" },
       }
       B("deletesApi") && window.$confirm({
         title: window.$l("确认删除"),
-        content: () => ne("div", { style: "color: red" }, window.$l("确认要批量删除数据吗?")),
+        content: () => le("div", { style: "color: red" }, window.$l("确认要批量删除数据吗?")),
         onOk: () => {
-          m.value = !0, G("deletesApi", r.value).then(() => {
+          y.value = !0, Q("deletesApi", d.value).then(() => {
             window.$notice.success({
               key: "only-you",
               message: window.$l("操作成功"),
               description: window.$l("删除成功")
-            }), p("reset");
+            }), f("reset");
           }).finally(() => {
-            m.value = !1;
+            y.value = !1;
           });
         }
       });
     }
-    function ye() {
-      if (!X.value) {
-        p("btnCallback", "import");
+    function we() {
+      if (!j.value) {
+        f("btnCallback", "import");
         return;
       }
-      C.value = !0;
+      O.value = !0;
     }
-    function ve() {
-      B("exportApi") && (m.value = !0, G("exportApi").then(() => {
-        m.value = !1;
+    function he() {
+      B("exportApi") && (y.value = !0, Q("exportApi").then(() => {
+        y.value = !1;
       }));
     }
-    function we(e, t) {
-      p("tableColCallback", e, t);
+    function ge(e, t) {
+      f("tableColCallback", e, t);
     }
-    function K(e) {
-      return x.value.find((t) => t.dataIndex === e);
+    function H(e) {
+      return A.value.find((t) => t.dataIndex === e);
     }
-    function he(e) {
-      const t = K(e);
+    function $e(e) {
+      const t = H(e);
       return !!(t && t.template);
     }
-    function $e(e) {
-      const t = K(e);
+    function ke(e) {
+      const t = H(e);
       return !!(t && t.isClick);
     }
-    function ke(e) {
+    function be(e) {
       return e == null ? "" : typeof e == "object" ? e.name === void 0 ? "" : e.name : e;
     }
-    function ge(e) {
-      r.value = e;
+    function Ce(e) {
+      d.value = e;
     }
-    function E() {
-      z(() => {
+    function K() {
+      N(() => {
         var e, t;
-        u.value = (((t = (e = F.value) == null ? void 0 : e.parentNode) == null ? void 0 : t.offsetHeight) || 0) - 76, be();
+        u.value = (((t = (e = F.value) == null ? void 0 : e.parentNode) == null ? void 0 : t.offsetHeight) || 0) - 76, _e();
       });
     }
-    function be() {
-      z(() => {
-        var f, v;
-        const t = ((f = U.value) == null ? void 0 : f.offsetHeight) || 0, s = ((v = V.value) == null ? void 0 : v.offsetHeight) || 0;
-        (!u.value || u.value < 200) && (u.value = 400), q.value = u.value - t - 60 - s;
+    function _e() {
+      N(() => {
+        var s, v;
+        const t = ((s = U.value) == null ? void 0 : s.offsetHeight) || 0, l = ((v = V.value) == null ? void 0 : v.offsetHeight) || 0;
+        (!u.value || u.value < 200) && (u.value = 400), W.value = u.value - t - 60 - l - ($.showPagination ? 56 : 0);
       });
     }
-    function _e(e, t) {
-      p("handExpand", e, t);
+    function Se(e, t) {
+      f("handExpand", e, t);
     }
-    const Y = {
-      add: me,
-      remove: fe,
-      import: ye,
-      export: ve,
-      reload: T,
-      filterReset: H,
+    const Z = {
+      add: ye,
+      remove: ve,
+      import: we,
+      export: he,
+      reload: C,
+      filterReset: P,
       toggleFilter: M,
-      handAction: Q
-    }, Ce = {
+      handAction: Y
+    }, xe = {
       mounted(e) {
         e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
           t.preventDefault();
         }), e.onmousedown = (t) => {
-          const s = t.clientX, f = S.value;
+          const l = t.clientX, s = T.value;
           document.onmousemove = (v) => {
-            const y = v.clientX - s;
-            if (y < 0) {
-              if (f + y <= 232) return;
-              S.value = f + y;
+            const c = v.clientX - l;
+            if (c < 0) {
+              if (s + c <= 232) return;
+              T.value = s + c;
             } else {
-              if (f + y >= 500) return;
-              S.value = f + y;
+              if (s + c >= 500) return;
+              T.value = s + c;
             }
           }, document.onmouseup = () => {
             document.onmousemove = document.onmousedown = null;
@@ -302,212 +317,214 @@ const Fe = { class: "tools" }, Ue = { class: "title" }, Ve = { class: "btns" },
         };
       }
     };
-    return Le(() => {
-      pe();
-    }), le({
-      reload: T,
-      spinning: m,
-      selectedRowKeys: r,
-      expandedRowKeys: L,
-      renderColumns: x,
-      renderButtons: k,
-      tableData: O,
-      table: N,
-      importVisible: C,
-      measureLayout: E,
+    return Be(() => {
+      me();
+    }), ae({
+      reload: C,
+      spinning: y,
+      selectedRowKeys: d,
+      expandedRowKeys: z,
+      renderColumns: A,
+      renderButtons: b,
+      tableData: L,
+      pagination: w,
+      table: q,
+      importVisible: O,
+      measureLayout: K,
       toggleFilter: M,
-      filterReset: H,
-      btnCallback: J
+      filterReset: P,
+      btnCallback: G
     }), (e, t) => {
-      const s = Ee, f = A("down-outlined"), v = A("up-outlined"), y = A("sync-outlined"), Se = Pe, xe = ze, Oe = A("s-import-modal"), Te = Re("action");
-      return n(), a("div", {
+      const l = Ne, s = D("down-outlined"), v = D("up-outlined"), c = D("sync-outlined"), Oe = Fe, Te = Ue, Ae = D("s-import-modal"), De = Me("action");
+      return n(), i("div", {
         class: "list-layout",
         ref_key: "layout",
         ref: F
       }, [
-        d("div", Fe, [
-          d("div", Ue, g(h.title), 1),
-          d("div", Ve, [
-            (n(!0), a(ee, null, Be(k.value, (o) => (n(), a("span", {
+        p("div", Ve, [
+          p("div", qe, _(h.title), 1),
+          p("div", We, [
+            (n(!0), i(te, null, Pe(b.value, (o) => (n(), i("span", {
               class: "item-btn",
               key: o.key
             }, [
-              P((n(), b(s, {
+              E((n(), S(l, {
                 class: "btn",
                 disabled: !!o.disabled,
                 type: o.type || o.key === "add" ? "primary" : "default",
-                onClick: (Ae) => J(o)
+                onClick: (Ie) => G(o)
               }, {
-                icon: w(() => [
-                  j(o) ? (n(), b(Me(j(o)), { key: 0 })) : i("", !0)
+                icon: g(() => [
+                  J(o) ? (n(), S(He(J(o)), { key: 0 })) : r("", !0)
                 ]),
-                default: w(() => [
-                  te(" " + g(e.$l(o.name)), 1)
+                default: g(() => [
+                  oe(" " + _(e.$l(o.name)), 1)
                 ]),
                 _: 2
               }, 1032, ["disabled", "type", "onClick"])), [
-                [Te, o.action || o.key],
-                [oe, o.show !== !1]
+                [De, o.action || o.key],
+                [ne, o.show !== !1]
               ])
             ]))), 128)),
-            d("span", Ne, [
-              c(e.$slots, "otherBtns", { selections: r.value }, void 0, !0)
+            p("span", Xe, [
+              m(e.$slots, "otherBtns", { selections: d.value }, void 0, !0)
             ])
           ])
         ]),
-        d("div", {
+        p("div", {
           class: "list-layout-main",
-          style: _({ height: u.value + "px" })
+          style: x({ height: u.value + "px" })
         }, [
-          e.$slots.tree ? (n(), a("div", {
+          e.$slots.tree ? (n(), i("div", {
             key: 0,
             class: "side s-side-tree",
             ref_key: "side",
-            ref: ie,
-            style: _({ height: u.value + "px", width: S.value + "px" })
+            ref: se,
+            style: x({ height: u.value + "px", width: T.value + "px" })
           }, [
-            c(e.$slots, "tree", {}, void 0, !0)
-          ], 4)) : i("", !0),
-          e.$slots.tree ? P((n(), a("div", {
+            m(e.$slots, "tree", {}, void 0, !0)
+          ], 4)) : r("", !0),
+          e.$slots.tree ? E((n(), i("div", {
             key: 1,
             class: "side-bar s-theme-bg",
-            style: _({ height: u.value + "px" })
+            style: x({ height: u.value + "px" })
           }, null, 4)), [
-            [Ce]
-          ]) : i("", !0),
-          e.$slots.empty ? (n(), a("div", {
+            [xe]
+          ]) : r("", !0),
+          e.$slots.empty ? (n(), i("div", {
             key: 3,
             class: "layout-list-content",
-            style: _({ height: u.value + "px" })
+            style: x({ height: u.value + "px" })
           }, [
-            c(e.$slots, "empty", {}, void 0, !0)
-          ], 4)) : (n(), a("div", {
+            m(e.$slots, "empty", {}, void 0, !0)
+          ], 4)) : (n(), i("div", {
             key: 2,
             class: "layout-list-content",
-            style: _({ height: u.value + "px" })
+            style: x({ height: u.value + "px" })
           }, [
-            e.$slots.filter || e.$slots.filterMore ? (n(), a("div", {
+            e.$slots.filter || e.$slots.filterMore ? (n(), i("div", {
               key: 0,
               class: "list-filter-wrap",
               ref_key: "filters",
               ref: U
             }, [
-              e.$slots.filter ? (n(), a("div", qe, [
-                d("div", We, [
-                  c(e.$slots, "filter", {}, void 0, !0)
+              e.$slots.filter ? (n(), i("div", je, [
+                p("div", Je, [
+                  m(e.$slots, "filter", {}, void 0, !0)
                 ]),
-                e.$slots.filterMore ? (n(), a("a", {
+                e.$slots.filterMore ? (n(), i("a", {
                   key: 0,
                   class: "filter-more-btn",
                   onClick: M
                 }, [
-                  te(g($.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
-                  $.value ? (n(), b(v, {
+                  oe(_(k.value ? e.$l("收起") : e.$l("更多")) + " ", 1),
+                  k.value ? (n(), S(v, {
                     key: 1,
                     style: { "font-size": "12px" }
-                  })) : (n(), b(f, {
+                  })) : (n(), S(s, {
                     key: 0,
                     style: { "font-size": "12px" }
                   }))
-                ])) : i("", !0),
-                e.$slots.filter ? (n(), a("div", Xe, [
-                  D(Se, {
+                ])) : r("", !0),
+                e.$slots.filter ? (n(), i("div", Qe, [
+                  I(Oe, {
                     placement: "top",
                     overlayStyle: { maxWidth: "500px" },
                     mouseEnterDelay: 1.5,
                     mouseLeaveDelay: 0.5
                   }, {
-                    title: w(() => [
-                      d("span", null, g(e.$l("条件重置")), 1)
+                    title: g(() => [
+                      p("span", null, _(e.$l("条件重置")), 1)
                     ]),
-                    default: w(() => [
-                      D(s, {
+                    default: g(() => [
+                      I(l, {
                         style: { "padding-bottom": "2px" },
-                        onClick: H
+                        onClick: P
                       }, {
-                        icon: w(() => [
-                          D(y)
+                        icon: g(() => [
+                          I(c)
                         ]),
                         _: 1
                       })
                     ]),
                     _: 1
                   })
-                ])) : i("", !0)
-              ])) : i("", !0),
-              e.$slots.filterMore ? P((n(), a("div", je, [
-                c(e.$slots, "filterMore", {}, void 0, !0)
+                ])) : r("", !0)
+              ])) : r("", !0),
+              e.$slots.filterMore ? E((n(), i("div", Ge, [
+                m(e.$slots, "filterMore", {}, void 0, !0)
               ], 512)), [
-                [oe, $.value]
-              ]) : i("", !0),
-              e.$slots.desc ? (n(), a("div", Ge, [
-                c(e.$slots, "desc", {}, void 0, !0)
-              ])) : i("", !0)
-            ], 512)) : i("", !0),
-            d("div", Je, [
-              e.$slots.tabs ? (n(), a("div", {
+                [ne, k.value]
+              ]) : r("", !0),
+              e.$slots.desc ? (n(), i("div", Ye, [
+                m(e.$slots, "desc", {}, void 0, !0)
+              ])) : r("", !0)
+            ], 512)) : r("", !0),
+            p("div", Ze, [
+              e.$slots.tabs ? (n(), i("div", {
                 key: 0,
                 class: "tabs-wrap",
                 ref_key: "tabs",
                 ref: V
               }, [
-                c(e.$slots, "tabs", {}, void 0, !0)
-              ], 512)) : i("", !0),
-              d("div", Qe, [
-                D(xe, {
+                m(e.$slots, "tabs", {}, void 0, !0)
+              ], 512)) : r("", !0),
+              p("div", et, [
+                I(Te, {
                   ref_key: "table",
-                  ref: N,
+                  ref: q,
                   size: "middle",
-                  scroll: { y: q.value },
+                  scroll: { y: W.value },
                   rowKey: h.rowKey,
                   tableLoading: h.tableLoading,
-                  columns: x.value,
-                  dataSource: O.value,
-                  expandedRowKeys: L.value,
-                  "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => L.value = o),
-                  rowSelection: W.value || h.isSelection ? { selectedRowKeys: r.value, onChange: ge } : null,
-                  pagination: !1,
-                  onExpand: _e
+                  columns: A.value,
+                  dataSource: L.value,
+                  expandedRowKeys: z.value,
+                  "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => z.value = o),
+                  rowSelection: X.value || h.isSelection ? { selectedRowKeys: d.value, onChange: Ce } : null,
+                  pagination: h.showPagination ? w : !1,
+                  onExpand: Se,
+                  onChange: fe
                 }, {
-                  bodyCell: w((o) => [
-                    o.column ? (n(), a(ee, { key: 0 }, [
-                      he(o.column.dataIndex) ? c(e.$slots, o.column.dataIndex, {
+                  bodyCell: g((o) => [
+                    o.column ? (n(), i(te, { key: 0 }, [
+                      $e(o.column.dataIndex) ? m(e.$slots, o.column.dataIndex, {
                         text: o.text,
                         record: o.record,
                         index: o.index,
-                        item: K(o.column.dataIndex)
-                      }, void 0, !0, 0) : $e(o.column.dataIndex) ? (n(), a("a", {
+                        item: H(o.column.dataIndex)
+                      }, void 0, !0, 0) : ke(o.column.dataIndex) ? (n(), i("a", {
                         key: 1,
-                        onClick: (Ae) => we(o.column.dataIndex, o.record)
-                      }, g(ke(o.text)), 9, Ye)) : o.column.dataIndex === "action" ? c(e.$slots, "action", {
+                        onClick: (Ie) => ge(o.column.dataIndex, o.record)
+                      }, _(be(o.text)), 9, tt)) : o.column.dataIndex === "action" ? m(e.$slots, "action", {
                         record: o.record
-                      }, void 0, !0, 2) : i("", !0)
-                    ], 64)) : i("", !0)
+                      }, void 0, !0, 2) : r("", !0)
+                    ], 64)) : r("", !0)
                   ]),
                   _: 3
-                }, 8, ["scroll", "rowKey", "tableLoading", "columns", "dataSource", "expandedRowKeys", "rowSelection"])
+                }, 8, ["scroll", "rowKey", "tableLoading", "columns", "dataSource", "expandedRowKeys", "rowSelection", "pagination"])
               ])
             ])
           ], 4))
         ], 4),
-        d("div", Ze, [
-          c(e.$slots, "other", {}, void 0, !0)
+        p("div", ot, [
+          m(e.$slots, "other", {}, void 0, !0)
         ]),
-        X.value ? (n(), b(Oe, {
+        j.value ? (n(), S(Ae, {
           key: 0,
           ref_key: "importModalRef",
-          ref: se,
+          ref: re,
           "upload-url": R.value.importUploadUrl,
-          value: C.value,
-          "onUpdate:value": t[1] || (t[1] = (o) => C.value = o),
+          value: O.value,
+          "onUpdate:value": t[1] || (t[1] = (o) => O.value = o),
           columns: R.value.importColumns,
           apis: R.value.importApis,
-          onReload: T
-        }, null, 8, ["upload-url", "value", "columns", "apis"])) : i("", !0)
+          onReload: C
+        }, null, 8, ["upload-url", "value", "columns", "apis"])) : r("", !0)
       ], 512);
     };
   }
-}), at = /* @__PURE__ */ Ke(et, [["__scopeId", "data-v-ec3fd17c"]]);
+}), rt = /* @__PURE__ */ Ee(nt, [["__scopeId", "data-v-977635c8"]]);
 export {
-  at as default
+  rt as default
 };

+ 1 - 1
lib/js/SNewestDataListLayout.js

@@ -566,7 +566,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
       ], 512);
     };
   }
-}), ut = /* @__PURE__ */ Me(lt, [["__scopeId", "data-v-6d60c476"]]);
+}), ut = /* @__PURE__ */ Me(lt, [["__scopeId", "data-v-2f5a0eee"]]);
 export {
   ut as default
 };

+ 5 - 5
lib/js/SSkeletonLayout.js

@@ -1,4 +1,4 @@
-import { ref as d, onMounted as T, onActivated as L, resolveDirective as P, openBlock as l, createElementBlock as i, normalizeStyle as c, createElementVNode as r, toDisplayString as S, Fragment as V, renderList as A, withDirectives as b, createBlock as _, withCtx as w, createTextVNode as N, resolveDynamicComponent as z, createCommentVNode as f, vShow as E, renderSlot as m, nextTick as M } from "vue";
+import { ref as d, onMounted as T, onActivated as L, resolveDirective as P, openBlock as l, createElementBlock as i, normalizeStyle as c, createElementVNode as r, toDisplayString as S, Fragment as V, renderList as A, withDirectives as _, createBlock as b, withCtx as w, createTextVNode as N, resolveDynamicComponent as z, createCommentVNode as f, vShow as E, renderSlot as m, nextTick as M } from "vue";
 import { n as W, B as X } from "./index2.js";
 const F = { class: "title" }, I = { class: "btns" }, j = {
   key: 0,
@@ -95,14 +95,14 @@ const F = { class: "title" }, I = { class: "btns" }, j = {
               class: "item-btn",
               key: t.key
             }, [
-              b((l(), _(u, {
+              _((l(), b(u, {
                 class: "btn",
                 disabled: !!t.disabled,
                 type: t.type || t.key === "add" ? "primary" : "default",
                 onClick: (n) => x(t)
               }, {
                 icon: w(() => [
-                  O(t) ? (l(), _(z(O(t)), { key: 0 })) : f("", !0)
+                  O(t) ? (l(), b(z(O(t)), { key: 0 })) : f("", !0)
                 ]),
                 default: w(() => [
                   N(" " + S(e.$l(t.name)), 1)
@@ -130,7 +130,7 @@ const F = { class: "title" }, I = { class: "btns" }, j = {
           }, [
             m(e.$slots, "tree", {}, void 0, !0)
           ], 4)) : f("", !0),
-          e.$slots.tree ? b((l(), i("div", {
+          e.$slots.tree ? _((l(), i("div", {
             key: 1,
             class: "side-bar s-theme-bg",
             style: c({ height: a.value + "px" })
@@ -154,7 +154,7 @@ const F = { class: "title" }, I = { class: "btns" }, j = {
       ], 4);
     };
   }
-}), J = /* @__PURE__ */ W(q, [["__scopeId", "data-v-b1e7dba2"]]);
+}), J = /* @__PURE__ */ W(q, [["__scopeId", "data-v-9e0f7d9d"]]);
 export {
   J as default
 };

+ 1 - 1
lib/js/SSuperListLayout.js

@@ -546,7 +546,7 @@ const et = { class: "tools" }, tt = { class: "title" }, nt = { class: "btn-list"
       ], 512);
     };
   }
-}), wt = /* @__PURE__ */ Qe(mt, [["__scopeId", "data-v-bdd1580a"]]);
+}), wt = /* @__PURE__ */ Qe(mt, [["__scopeId", "data-v-b7beae56"]]);
 export {
   wt as default
 };

Plik diff jest za duży
+ 329 - 261
lib/js/index2.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików