diry 2 недель назад
Родитель
Сommit
cba1ba1c57
4 измененных файлов с 474 добавлено и 354 удалено
  1. 1 1
      lib/config.json
  2. 0 0
      lib/css/style.css
  3. 96 90
      lib/js/SNewestDataListLayout.js
  4. 377 263
      lib/js/index2.js

+ 1 - 1
lib/config.json

@@ -1 +1 @@
-{"_hash":1793246802215,"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_LANG_ENABLE":true,"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_MENU_THEME":"dark","VITE_APP_MENU_BAR":"left","VITE_APP_LOGIN_PATH_THEME":"3","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_APP_LOGIN_PATH":"/login","VITE_APP_DEFAULT_PATH":"/workplace/index","VITE_USER_NODE_ENV":"production"}
+{"_hash":1793247925000,"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_LANG_ENABLE":true,"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_MENU_THEME":"dark","VITE_APP_MENU_BAR":"left","VITE_APP_LOGIN_PATH_THEME":"3","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_APP_LOGIN_PATH":"/login","VITE_APP_DEFAULT_PATH":"/workplace/index","VITE_USER_NODE_ENV":"production"}

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
lib/css/style.css


+ 96 - 90
lib/js/SNewestDataListLayout.js

@@ -1,13 +1,13 @@
-import { ref as s, computed as ne, watch as le, nextTick as A, onMounted as Ae, onActivated as Ie, resolveComponent as I, resolveDirective as Pe, openBlock as n, createElementBlock as l, createVNode as C, withCtx as y, createElementVNode as c, toDisplayString as $, Fragment as ae, renderList as Te, withDirectives as K, createBlock as g, createTextVNode as N, resolveDynamicComponent as Ee, createCommentVNode as a, vShow as se, renderSlot as u, normalizeStyle as b, unref as Re, h as ze } from "vue";
+import { ref as s, computed as ne, watch as le, nextTick as C, onMounted as Ae, onActivated as Ie, resolveComponent as I, resolveDirective as Pe, openBlock as n, createElementBlock as l, createVNode as _, withCtx as y, createElementVNode as p, toDisplayString as $, Fragment as ae, renderList as xe, withDirectives as K, createBlock as g, createTextVNode as N, resolveDynamicComponent as Ee, createCommentVNode as a, vShow as se, renderSlot as u, normalizeStyle as b, unref as Re, h as ze } from "vue";
 import { useRoute as He } from "vue-router";
 import { useRoute as He } from "vue-router";
-import { n as Le, ao as Me, B as Fe, y as Ke, aW as Ne } from "./index2.js";
-const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" }, je = {
+import { n as Me, ao as Le, B as Fe, y as Ke, aW as Ne } from "./index2.js";
+const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" }, qe = {
   key: 0,
   key: 0,
   style: { "margin-left": "8px" }
   style: { "margin-left": "8px" }
-}, Xe = {
+}, je = {
   key: 0,
   key: 0,
   class: "filter-content"
   class: "filter-content"
-}, qe = { class: "filter" }, Ge = {
+}, Xe = { class: "filter" }, Ge = {
   key: 1,
   key: 1,
   class: "reset-wrap"
   class: "reset-wrap"
 }, Je = {
 }, Je = {
@@ -17,10 +17,10 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
   key: 2,
   key: 2,
   class: "desc-wrap"
   class: "desc-wrap"
 }, Ye = {
 }, Ye = {
-  key: 0,
+  key: 1,
   class: "search-bar"
   class: "search-bar"
 }, Ze = {
 }, Ze = {
-  key: 1,
+  key: 2,
   class: "status-bar"
   class: "status-bar"
 }, et = { class: "table-content" }, tt = { class: "table-container" }, ot = ["onClick"], nt = { class: "other" }, lt = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
 }, et = { class: "table-content" }, tt = { class: "table-container" }, ot = ["onClick"], nt = { class: "other" }, lt = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
   __name: "SNewestDataListLayout",
   __name: "SNewestDataListLayout",
@@ -127,9 +127,9 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
   },
   },
   emits: ["reset", "btnCallback", "tableColCallback", "advancedSearch"],
   emits: ["reset", "btnCallback", "tableColCallback", "advancedSearch"],
   setup(r, { expose: ie, emit: ue }) {
   setup(r, { expose: ie, emit: ue }) {
-    const _ = r, v = ue;
+    const B = r, v = ue;
     He();
     He();
-    const P = s(null), re = s(null), U = s(null), V = s(null), B = s(null), de = s(null), O = s(!1), f = s(0), W = s(0), S = s(!1), p = s(!1), j = s(20), D = s(256), X = s(!1), m = s([]), T = s([]), x = s([]), w = s([]), ce = {
+    const P = s(null), re = s(null), U = s(null), V = s(null), O = s(null), de = s(null), D = s(!1), c = s(0), W = s(0), S = s(!1), f = s(!1), q = s(20), T = s(256), j = s(!1), m = s([]), x = s([]), A = s([]), w = s([]), ce = {
       add: "PlusCircleOutlined",
       add: "PlusCircleOutlined",
       edit: "FormOutlined",
       edit: "FormOutlined",
       delete: "DeleteOutlined",
       delete: "DeleteOutlined",
@@ -145,15 +145,15 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
       synchronize: "SyncOutlined"
-    }, q = ne(() => w.value.map((e) => e.key).includes("import")), E = ne(() => w.value.find((e) => e.key === "import") || {});
+    }, X = ne(() => w.value.map((e) => e.key).includes("import")), E = ne(() => w.value.find((e) => e.key === "import") || {});
     le(
     le(
-      () => _.buttons,
+      () => B.buttons,
       (e) => {
       (e) => {
         e && e.length && fe(e);
         e && e.length && fe(e);
       },
       },
       { immediate: !0, deep: !0 }
       { immediate: !0, deep: !0 }
     ), le(
     ), le(
-      () => _.columns,
+      () => B.columns,
       () => Q()
       () => Q()
     );
     );
     function G(e, t = "") {
     function G(e, t = "") {
@@ -163,14 +163,19 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && ce[e.key] || "";
       return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && ce[e.key] || "";
     }
     }
     function fe(e) {
     function fe(e) {
-      w.value = e.map((t) => (t.key === "remove" && (X.value = !0), t));
+      w.value = e.map((t) => (t.key === "remove" && (j.value = !0), t));
     }
     }
-    function pe() {
-      F(), j.value = _.pSize, x.value = _.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
+    function me() {
+      C(() => {
+        F(), q.value = B.pSize, A.value = B.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 Q() {
     function Q() {
-      A(() => {
-        pe();
+      C(() => {
+        me();
       });
       });
     }
     }
     function R() {
     function R() {
@@ -180,14 +185,14 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       v("reset");
       v("reset");
     }
     }
     function H() {
     function H() {
-      B.value && B.value.refresh(!0);
+      O.value && O.value.refresh(!0);
     }
     }
     function Y(e) {
     function Y(e) {
       v("btnCallback", e.key, m.value);
       v("btnCallback", e.key, m.value);
       const t = Se[e.key];
       const t = Se[e.key];
-      typeof t == "function" ? t(e) : L(e);
+      typeof t == "function" ? t(e) : M(e);
     }
     }
-    function L(e) {
+    function M(e) {
       if (e.selection !== !1 && !m.value.length) {
       if (e.selection !== !1 && !m.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
         return;
@@ -202,19 +207,19 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
               `${window.$l("确认要")}${window.$l(e.name)}${window.$l("数据吗?")}`
               `${window.$l("确认要")}${window.$l(e.name)}${window.$l("数据吗?")}`
             ),
             ),
             onOk: () => {
             onOk: () => {
-              p.value = !0, e.api(m.value).then(() => {
+              f.value = !0, e.api(m.value).then(() => {
                 window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
                 window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
               }).finally(() => {
               }).finally(() => {
-                p.value = !1;
+                f.value = !1;
               });
               });
             }
             }
           });
           });
           return;
           return;
         }
         }
-        p.value = !0, e.api(m.value).then(() => {
+        f.value = !0, e.api(m.value).then(() => {
           window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
           window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), v("reset");
         }).finally(() => {
         }).finally(() => {
-          p.value = !1;
+          f.value = !1;
         });
         });
       }
       }
     }
     }
@@ -233,37 +238,37 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
         d[i] = t[i];
         d[i] = t[i];
       });
       });
     }
     }
-    function me() {
+    function pe() {
     }
     }
     function ye(e) {
     function ye(e) {
-      L(e);
+      M(e);
     }
     }
     function ve() {
     function ve() {
-      if (!q.value) {
+      if (!X.value) {
         v("btnCallback", "import");
         v("btnCallback", "import");
         return;
         return;
       }
       }
-      O.value = !0;
+      D.value = !0;
     }
     }
     function he(e) {
     function he(e) {
-      G(e.api, e.name, e.key) && (p.value = !0, e.api(m.value).then(() => {
-        p.value = !1;
+      G(e.api, e.name, e.key) && (f.value = !0, e.api(m.value).then(() => {
+        f.value = !1;
       }).catch(() => {
       }).catch(() => {
-        p.value = !1;
+        f.value = !1;
       }));
       }));
     }
     }
     function we(e, t) {
     function we(e, t) {
       v("tableColCallback", e, t);
       v("tableColCallback", e, t);
     }
     }
-    function M(e) {
-      return x.value.find((t) => t.dataIndex === e);
+    function L(e) {
+      return A.value.find((t) => t.dataIndex === e);
     }
     }
     function ke(e) {
     function ke(e) {
-      const t = M(e);
+      const t = L(e);
       return !!(t && t.template);
       return !!(t && t.template);
     }
     }
     function $e(e) {
     function $e(e) {
-      const t = M(e);
+      const t = L(e);
       return !!(t && t.isClick);
       return !!(t && t.isClick);
     }
     }
     function ge(e) {
     function ge(e) {
@@ -273,23 +278,23 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       m.value = e;
       m.value = e;
     }
     }
     function F() {
     function F() {
-      A(() => {
+      C(() => {
         var e;
         var e;
-        f.value = (((e = P.value) == null ? void 0 : e.offsetHeight) || 0) - 48, te();
+        c.value = (((e = P.value) == null ? void 0 : e.offsetHeight) || 0) - 48, te();
       });
       });
     }
     }
     function te() {
     function te() {
-      A(() => {
+      C(() => {
         var i, k;
         var i, k;
         const t = ((i = U.value) == null ? void 0 : i.offsetHeight) || 0, d = ((k = V.value) == null ? void 0 : k.offsetHeight) || 0;
         const t = ((i = U.value) == null ? void 0 : i.offsetHeight) || 0, d = ((k = V.value) == null ? void 0 : k.offsetHeight) || 0;
-        W.value = f.value - t - 134 - d;
+        W.value = c.value - t - 134 - d;
       });
       });
     }
     }
     function oe() {
     function oe() {
       v("advancedSearch");
       v("advancedSearch");
     }
     }
     const Se = {
     const Se = {
-      add: me,
+      add: pe,
       delete: ye,
       delete: ye,
       import: ve,
       import: ve,
       export: he,
       export: he,
@@ -297,21 +302,21 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       filterReset: z,
       filterReset: z,
       toggleFilter: R,
       toggleFilter: R,
       setStateBtn: Z,
       setStateBtn: Z,
-      handAction: L
+      handAction: M
     }, Ce = {
     }, Ce = {
       mounted(e) {
       mounted(e) {
         e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
         e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
           t.preventDefault();
           t.preventDefault();
         }), e.onmousedown = (t) => {
         }), e.onmousedown = (t) => {
-          const d = t.clientX, i = D.value;
+          const d = t.clientX, i = T.value;
           document.onmousemove = (k) => {
           document.onmousemove = (k) => {
             const h = k.clientX - d;
             const h = k.clientX - d;
             if (h < 0) {
             if (h < 0) {
               if (i + h <= 256) return;
               if (i + h <= 256) return;
-              D.value = i + h;
+              T.value = i + h;
             } else {
             } else {
               if (i + h >= 500) return;
               if (i + h >= 500) return;
-              D.value = i + h;
+              T.value = i + h;
             }
             }
           }, document.onmouseup = () => {
           }, document.onmouseup = () => {
             document.onmousemove = document.onmousedown = null;
             document.onmousemove = document.onmousedown = null;
@@ -322,38 +327,38 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
     return Ae(() => {
     return Ae(() => {
       Q();
       Q();
     }), Ie(() => {
     }), Ie(() => {
-      A(() => {
+      C(() => {
         var e;
         var e;
-        f.value = (((e = P.value) == null ? void 0 : e.offsetHeight) || 0) - 48, te();
+        c.value = (((e = P.value) == null ? void 0 : e.offsetHeight) || 0) - 48, te();
       });
       });
     }), ie({
     }), ie({
       reload: H,
       reload: H,
-      spinning: p,
+      spinning: f,
       selectedRowKeys: m,
       selectedRowKeys: m,
-      expandedRowKeys: T,
-      renderColumns: x,
+      expandedRowKeys: x,
+      renderColumns: A,
       renderButtons: w,
       renderButtons: w,
       setStateBtn: Z,
       setStateBtn: Z,
       btnCallback: Y,
       btnCallback: Y,
       filterReset: z,
       filterReset: z,
       toggleFilter: R,
       toggleFilter: R,
-      table: B,
-      importVisible: O,
+      table: O,
+      importVisible: D,
       measureLayout: F,
       measureLayout: F,
       advancedSearch: oe
       advancedSearch: oe
     }), (e, t) => {
     }), (e, t) => {
-      const d = Fe, i = I("down-outlined"), k = I("up-outlined"), h = I("sync-outlined"), _e = Ke, Be = Me, Oe = I("s-import-modal"), De = Pe("action");
+      const d = Fe, i = I("down-outlined"), k = I("up-outlined"), h = I("sync-outlined"), _e = Ke, Be = Le, Oe = I("s-import-modal"), De = Pe("action");
       return n(), l("div", {
       return n(), l("div", {
         class: "list-layout",
         class: "list-layout",
         ref_key: "layout",
         ref_key: "layout",
         ref: P
         ref: P
       }, [
       }, [
-        C(Be, { spinning: p.value }, {
+        _(Be, { spinning: f.value }, {
           default: y(() => [
           default: y(() => [
-            c("div", Ue, [
-              c("div", Ve, $(e.$l(r.title)), 1),
-              c("div", We, [
-                (n(!0), l(ae, null, Te(w.value, (o) => (n(), l("span", {
+            p("div", Ue, [
+              p("div", Ve, $(e.$l(r.title)), 1),
+              p("div", We, [
+                (n(!0), l(ae, null, xe(w.value, (o) => (n(), l("span", {
                   class: "item-btn",
                   class: "item-btn",
                   key: o.key
                   key: o.key
                 }, [
                 }, [
@@ -361,7 +366,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                     class: "btn",
                     class: "btn",
                     disabled: !!o.disabled,
                     disabled: !!o.disabled,
                     type: o.type || (o.key === "add" ? "primary" : "default"),
                     type: o.type || (o.key === "add" ? "primary" : "default"),
-                    onClick: (xe) => Y(o)
+                    onClick: (Te) => Y(o)
                   }, {
                   }, {
                     icon: y(() => [
                     icon: y(() => [
                       J(o) ? (n(), g(Ee(J(o)), { key: 0 })) : a("", !0)
                       J(o) ? (n(), g(Ee(J(o)), { key: 0 })) : a("", !0)
@@ -375,43 +380,44 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                     [se, o.show !== !1]
                     [se, o.show !== !1]
                   ])
                   ])
                 ]))), 128)),
                 ]))), 128)),
-                e.$slots.otherBtns ? (n(), l("span", je, [
+                e.$slots.otherBtns ? (n(), l("span", qe, [
                   u(e.$slots, "otherBtns", { selections: m.value }, void 0, !0)
                   u(e.$slots, "otherBtns", { selections: m.value }, void 0, !0)
                 ])) : a("", !0)
                 ])) : a("", !0)
               ])
               ])
             ]),
             ]),
-            c("div", {
+            p("div", {
               class: "list-layout-main",
               class: "list-layout-main",
-              style: b({ height: f.value + "px" })
+              style: b({ height: c.value + "px" })
             }, [
             }, [
               e.$slots.tree ? (n(), l("div", {
               e.$slots.tree ? (n(), l("div", {
                 key: 0,
                 key: 0,
                 class: "side s-side-tree",
                 class: "side s-side-tree",
                 ref_key: "side",
                 ref_key: "side",
                 ref: re,
                 ref: re,
-                style: b([{ height: f.value + "px", width: D.value + "px" }, { "overflow-y": "auto" }])
+                style: b([{ height: c.value + "px", width: T.value + "px" }, { "overflow-y": "auto" }])
               }, [
               }, [
                 u(e.$slots, "tree", {}, void 0, !0)
                 u(e.$slots, "tree", {}, void 0, !0)
               ], 4)) : a("", !0),
               ], 4)) : a("", !0),
               e.$slots.tree ? K((n(), l("div", {
               e.$slots.tree ? K((n(), l("div", {
                 key: 1,
                 key: 1,
                 class: "side-bar s-theme-bg",
                 class: "side-bar s-theme-bg",
-                style: b({ height: f.value + "px" })
+                style: b({ height: c.value + "px" })
               }, null, 4)), [
               }, null, 4)), [
                 [Ce]
                 [Ce]
               ]) : a("", !0),
               ]) : a("", !0),
               !e.$slots.empty && r.listType === "table" ? (n(), l("div", {
               !e.$slots.empty && r.listType === "table" ? (n(), l("div", {
                 key: 2,
                 key: 2,
                 class: "layout-list-content",
                 class: "layout-list-content",
-                style: b({ height: f.value + "px" })
+                style: b({ height: c.value + "px" })
               }, [
               }, [
-                c("div", {
+                e.$slots.filter || e.$slots.filterMore ? (n(), l("div", {
+                  key: 0,
                   class: "filter-wrap",
                   class: "filter-wrap",
                   ref_key: "filters",
                   ref_key: "filters",
                   ref: U
                   ref: U
                 }, [
                 }, [
-                  e.$slots.filter ? (n(), l("div", Xe, [
-                    c("div", qe, [
+                  e.$slots.filter ? (n(), l("div", je, [
+                    p("div", Xe, [
                       u(e.$slots, "filter", {}, void 0, !0)
                       u(e.$slots, "filter", {}, void 0, !0)
                     ]),
                     ]),
                     e.$slots.filterMore ? (n(), l("a", {
                     e.$slots.filterMore ? (n(), l("a", {
@@ -440,20 +446,20 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                         ]),
                         ]),
                         _: 1
                         _: 1
                       })) : a("", !0),
                       })) : a("", !0),
-                      C(_e, {
+                      _(_e, {
                         placement: "top",
                         placement: "top",
                         overlayStyle: { maxWidth: "500px" }
                         overlayStyle: { maxWidth: "500px" }
                       }, {
                       }, {
                         title: y(() => [
                         title: y(() => [
-                          c("span", null, $(e.$l("条件重置")), 1)
+                          p("span", null, $(e.$l("条件重置")), 1)
                         ]),
                         ]),
                         default: y(() => [
                         default: y(() => [
-                          C(d, {
+                          _(d, {
                             style: { "padding-bottom": "2px" },
                             style: { "padding-bottom": "2px" },
                             onClick: z
                             onClick: z
                           }, {
                           }, {
                             icon: y(() => [
                             icon: y(() => [
-                              C(h)
+                              _(h)
                             ]),
                             ]),
                             _: 1
                             _: 1
                           })
                           })
@@ -470,14 +476,14 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                   e.$slots.desc ? (n(), l("div", Qe, [
                   e.$slots.desc ? (n(), l("div", Qe, [
                     u(e.$slots, "desc", {}, void 0, !0)
                     u(e.$slots, "desc", {}, void 0, !0)
                   ])) : a("", !0)
                   ])) : a("", !0)
-                ], 512),
+                ], 512)) : a("", !0),
                 r.isEnableSearchBar ? (n(), l("div", Ye, [
                 r.isEnableSearchBar ? (n(), l("div", Ye, [
                   u(e.$slots, "search-bar", {}, void 0, !0)
                   u(e.$slots, "search-bar", {}, void 0, !0)
                 ])) : a("", !0),
                 ])) : a("", !0),
                 r.isEnableStatusBar ? (n(), l("div", Ze, [
                 r.isEnableStatusBar ? (n(), l("div", Ze, [
                   u(e.$slots, "status-bar", {}, void 0, !0)
                   u(e.$slots, "status-bar", {}, void 0, !0)
                 ])) : a("", !0),
                 ])) : a("", !0),
-                c("div", et, [
+                p("div", et, [
                   e.$slots.tabs ? (n(), l("div", {
                   e.$slots.tabs ? (n(), l("div", {
                     key: 0,
                     key: 0,
                     class: "tabs-wrap",
                     class: "tabs-wrap",
@@ -486,19 +492,19 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                   }, [
                   }, [
                     u(e.$slots, "tabs", {}, void 0, !0)
                     u(e.$slots, "tabs", {}, void 0, !0)
                   ], 512)) : a("", !0),
                   ], 512)) : a("", !0),
-                  c("div", tt, [
-                    C(Re(Ne), {
+                  p("div", tt, [
+                    _(Re(Ne), {
                       ref_key: "table",
                       ref_key: "table",
-                      ref: B,
+                      ref: O,
                       size: "middle",
                       size: "middle",
                       scroll: { y: W.value, x: "100%" },
                       scroll: { y: W.value, x: "100%" },
-                      pageSize: j.value,
+                      pageSize: q.value,
                       rowKey: r.rowKey,
                       rowKey: r.rowKey,
-                      columns: x.value,
+                      columns: A.value,
                       data: r.loadData,
                       data: r.loadData,
-                      "expanded-row-keys": T.value,
-                      "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => T.value = o),
-                      rowSelection: X.value || r.isSelection ? {
+                      "expanded-row-keys": x.value,
+                      "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => x.value = o),
+                      rowSelection: j.value || r.isSelection ? {
                         selectedRowKeys: m.value,
                         selectedRowKeys: m.value,
                         onChange: be,
                         onChange: be,
                         getCheckboxProps: r.getCheckboxProps
                         getCheckboxProps: r.getCheckboxProps
@@ -511,10 +517,10 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
                             text: o.text,
                             text: o.text,
                             record: o.record,
                             record: o.record,
                             index: o.index,
                             index: o.index,
-                            item: M(o.column.dataIndex)
+                            item: L(o.column.dataIndex)
                           }, void 0, !0, 0) : $e(o.column.dataIndex) ? (n(), l("a", {
                           }, void 0, !0, 0) : $e(o.column.dataIndex) ? (n(), l("a", {
                             key: 1,
                             key: 1,
-                            onClick: (xe) => we(o.column.dataIndex, o.record)
+                            onClick: (Te) => we(o.column.dataIndex, o.record)
                           }, $(ge(o.text)), 9, ot)) : o.column.dataIndex === "action" ? u(e.$slots, "action", {
                           }, $(ge(o.text)), 9, ot)) : o.column.dataIndex === "action" ? u(e.$slots, "action", {
                             record: o.record
                             record: o.record
                           }, void 0, !0, 2) : a("", !0)
                           }, void 0, !0, 2) : a("", !0)
@@ -528,31 +534,31 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
               !e.$slots.empty && r.listType === "custom" ? (n(), l("div", {
               !e.$slots.empty && r.listType === "custom" ? (n(), l("div", {
                 key: 3,
                 key: 3,
                 class: "layout-list-content",
                 class: "layout-list-content",
-                style: b({ height: f.value + "px" })
+                style: b({ height: c.value + "px" })
               }, [
               }, [
                 u(e.$slots, "custom-layout-list-content", {}, void 0, !0)
                 u(e.$slots, "custom-layout-list-content", {}, void 0, !0)
               ], 4)) : a("", !0),
               ], 4)) : a("", !0),
               e.$slots.empty ? (n(), l("div", {
               e.$slots.empty ? (n(), l("div", {
                 key: 4,
                 key: 4,
                 class: "layout-list-content",
                 class: "layout-list-content",
-                style: b({ height: f.value + "px" })
+                style: b({ height: c.value + "px" })
               }, [
               }, [
                 u(e.$slots, "empty", {}, void 0, !0)
                 u(e.$slots, "empty", {}, void 0, !0)
               ], 4)) : a("", !0)
               ], 4)) : a("", !0)
             ], 4),
             ], 4),
-            c("div", nt, [
+            p("div", nt, [
               u(e.$slots, "other", {}, void 0, !0)
               u(e.$slots, "other", {}, void 0, !0)
             ])
             ])
           ]),
           ]),
           _: 3
           _: 3
         }, 8, ["spinning"]),
         }, 8, ["spinning"]),
-        q.value ? (n(), g(Oe, {
+        X.value ? (n(), g(Oe, {
           key: 0,
           key: 0,
           ref_key: "importModalRef",
           ref_key: "importModalRef",
           ref: de,
           ref: de,
           "upload-url": E.value.importUploadUrl,
           "upload-url": E.value.importUploadUrl,
-          value: O.value,
-          "onUpdate:value": t[1] || (t[1] = (o) => O.value = o),
+          value: D.value,
+          "onUpdate:value": t[1] || (t[1] = (o) => D.value = o),
           columns: E.value.importColumns,
           columns: E.value.importColumns,
           apis: E.value.importApis,
           apis: E.value.importApis,
           onReload: H
           onReload: H
@@ -560,7 +566,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, We = { class: "btns" },
       ], 512);
       ], 512);
     };
     };
   }
   }
-}), ut = /* @__PURE__ */ Le(lt, [["__scopeId", "data-v-b3ed7160"]]);
+}), ut = /* @__PURE__ */ Me(lt, [["__scopeId", "data-v-c4ffe454"]]);
 export {
 export {
   ut as default
   ut as default
 };
 };

Разница между файлами не показана из-за своего большого размера
+ 377 - 263
lib/js/index2.js


Некоторые файлы не были показаны из-за большого количества измененных файлов