diry il y a 6 jours
Parent
commit
06a63edf25
62 fichiers modifiés avec 2545 ajouts et 1905 suppressions
  1. 0 1
      lib/config.json
  2. 0 0
      lib/css/style.css
  3. 6 6
      lib/js/ActionButton.js
  4. 1 1
      lib/js/Col.js
  5. 31 45
      lib/js/CropperModal.js
  6. 5 5
      lib/js/CustomInput.js
  7. 10 10
      lib/js/SCollapsesItem.js
  8. 372 162
      lib/js/SCopperUpload.js
  9. 313 160
      lib/js/SDraggerUpload.js
  10. 48 43
      lib/js/SExtendFieldsForm.js
  11. 105 0
      lib/js/SFilePreview.js
  12. 313 160
      lib/js/SFileUpload.js
  13. 45 38
      lib/js/SForm.js
  14. 1 1
      lib/js/SFormBasicLayout.js
  15. 1 1
      lib/js/SFormLayout.js
  16. 8 8
      lib/js/SIconModal.js
  17. 1 1
      lib/js/SIconSelectPopover.js
  18. 32 32
      lib/js/SImportModal.js
  19. 6 6
      lib/js/SListBasicLayout.js
  20. 30 30
      lib/js/SListCardLayout.js
  21. 10 10
      lib/js/SListLayout.js
  22. 163 163
      lib/js/SModal.js
  23. 17 17
      lib/js/SNewestDataListLayout.js
  24. 10 10
      lib/js/SOfficeSelect.js
  25. 15 15
      lib/js/SSideMenu.js
  26. 1 1
      lib/js/SSuperListLayout.js
  27. 2 2
      lib/js/SToggleLanguage.js
  28. 38 38
      lib/js/STopMenu.js
  29. 12 12
      lib/js/SUserSelect.js
  30. 1 1
      lib/js/SettingColumns.js
  31. 7 7
      lib/js/SettingFilter.js
  32. 1 1
      lib/js/account.js
  33. 22 22
      lib/js/activate.js
  34. 10 10
      lib/js/components-doc.js
  35. 1 1
      lib/js/dayjs.js
  36. 8 8
      lib/js/forgot-password.js
  37. 33 33
      lib/js/hasIn.js
  38. 1 1
      lib/js/icon-groups.js
  39. 1 1
      lib/js/index.es.js
  40. 1 1
      lib/js/index.js
  41. 1 1
      lib/js/index11.js
  42. 48 48
      lib/js/index12.js
  43. 9 9
      lib/js/index13.js
  44. 18 18
      lib/js/index14.js
  45. 45 45
      lib/js/index15.js
  46. 16 16
      lib/js/index16.js
  47. 13 13
      lib/js/index17.js
  48. 33 33
      lib/js/index18.js
  49. 295 273
      lib/js/index2.js
  50. 1 1
      lib/js/index3.js
  51. 1 1
      lib/js/index5.js
  52. 16 16
      lib/js/index6.js
  53. 119 119
      lib/js/index7.js
  54. 72 72
      lib/js/index8.js
  55. 69 69
      lib/js/index9.js
  56. 1 1
      lib/js/jspdf.es.min.js
  57. 20 20
      lib/js/message.js
  58. 17 17
      lib/js/qr-code.js
  59. 11 19
      lib/js/upload.js
  60. 3 3
      lib/js/useFlexGapSupport.js
  61. 46 46
      lib/js/workplace.js
  62. 9 1
      package.json

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
lib/config.json


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
lib/css/style.css


+ 6 - 6
lib/js/ActionButton.js

@@ -1,4 +1,4 @@
-import { d0 as b, B as p, _ as i, cV as y, e as O } from "./index2.js";
+import { db as C, B as p, _ as i, d4 as y, e as O } from "./index2.js";
 import { shallowRef as s, onBeforeUnmount as m, defineComponent as P, onMounted as R, createVNode as x } from "vue";
 const A = () => {
   const n = s(!1);
@@ -36,7 +36,7 @@ const T = P({
     R(() => {
       n.autofocus && (f = setTimeout(() => {
         var e, t;
-        return (t = (e = b(c.value)) === null || e === void 0 ? void 0 : e.focus) === null || t === void 0 ? void 0 : t.call(e);
+        return (t = (e = C(c.value)) === null || e === void 0 ? void 0 : e.focus) === null || t === void 0 ? void 0 : t.call(e);
       }));
     }), m(() => {
       clearTimeout(f);
@@ -45,11 +45,11 @@ const T = P({
       for (var e, t = arguments.length, o = new Array(t), r = 0; r < t; r++)
         o[r] = arguments[r];
       (e = n.close) === null || e === void 0 || e.call(n, ...o);
-    }, h = (e) => {
+    }, b = (e) => {
       d(e) && (u.value = !0, e.then(function() {
         v.value || (u.value = !1), a(...arguments), l.value = !1;
       }, (t) => (v.value || (u.value = !1), l.value = !1, Promise.reject(t))));
-    }, C = (e) => {
+    }, h = (e) => {
       const {
         actionFn: t
       } = n;
@@ -71,7 +71,7 @@ const T = P({
         a();
         return;
       }
-      h(o);
+      b(o);
     };
     return () => {
       const {
@@ -80,7 +80,7 @@ const T = P({
         buttonProps: o
       } = n;
       return x(p, i(i(i({}, y(e)), {}, {
-        onClick: C,
+        onClick: h,
         loading: u.value,
         prefixCls: t
       }, o), {}, {

+ 1 - 1
lib/js/Col.js

@@ -1,4 +1,4 @@
-import { g as E, m as _, d as g, u as k, bh as T, bi as w, c as F, _ as C, be as N } from "./index2.js";
+import { g as E, m as _, d as g, u as k, bs as T, bt as w, c as F, _ as C, bp as N } from "./index2.js";
 import { inject as D, computed as $, provide as V, defineComponent as L, ref as R, onMounted as X, onBeforeUnmount as H, createVNode as W } from "vue";
 import { u as K } from "./useFlexGapSupport.js";
 const B = Symbol("rowContextKey"), P = (e) => {

Fichier diff supprimé car celui-ci est trop grand
+ 31 - 45
lib/js/CropperModal.js


+ 5 - 5
lib/js/CustomInput.js

@@ -15,10 +15,10 @@ var L = (o, f, a) => new Promise((l, T) => {
   E((a = a.apply(o, f)).next());
 });
 import { computed as v, ref as k, watch as V, resolveComponent as C, openBlock as s, createElementBlock as S, createBlock as c, createCommentVNode as m, withCtx as h, Fragment as Y, renderList as F, createTextVNode as O, toDisplayString as P } from "vue";
-import { I as g, a6 as B, a7 as G, d7 as y, d8 as H } from "./index2.js";
+import { I as g, a6 as B, a7 as G, di as y, dj as H } from "./index2.js";
 import { _ as $ } from "./index9.js";
-import { D as R } from "./dayjs.js";
-const j = {
+import { D as j } from "./dayjs.js";
+const R = {
   key: 0,
   class: "custom-input"
 }, W = /* @__PURE__ */ Object.assign({ name: "CustomInput" }, {
@@ -100,8 +100,8 @@ const j = {
         return r >= y(i).unix();
     }
     return (e, t) => {
-      const i = g, r = G, d = B, p = $, D = R, M = C("s-office-select"), N = C("s-tree-select");
-      return l.value ? (s(), S("div", j, [
+      const i = g, r = G, d = B, p = $, D = j, M = C("s-office-select"), N = C("s-tree-select");
+      return l.value ? (s(), S("div", R, [
         E.value ? (s(), c(i, {
           key: 0,
           style: { width: "100%" },

+ 10 - 10
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 x } from "./index2.js";
-const I = ["id"], B = { class: "epxand" }, $ = /* @__PURE__ */ Object.assign({ name: "CollapsesItem" }, {
+import { n as b } from "./index2.js";
+const x = ["id"], I = { class: "epxand" }, B = /* @__PURE__ */ Object.assign({ name: "CollapsesItem" }, {
   __name: "SCollapsesItem",
   props: {
     title: {
@@ -24,8 +24,8 @@ const I = ["id"], B = { class: "epxand" }, $ = /* @__PURE__ */ Object.assign({ n
     }
     return g(() => {
       s.value = o.column > 4 ? 4 : o.column;
-    }), (v, a) => {
-      const f = r("caret-down-outlined"), _ = r("caret-right-outlined");
+    }), (f, a) => {
+      const v = r("caret-down-outlined"), _ = r("caret-right-outlined");
       return t(), c("div", {
         class: "s-collapses-item",
         style: u(m.value)
@@ -33,14 +33,14 @@ const I = ["id"], B = { class: "epxand" }, $ = /* @__PURE__ */ Object.assign({ n
         l.title ? (t(), c("div", {
           key: 0,
           class: "s-collapses-item-title s-theme-border",
-          onClick: a[0] || (a[0] = (b) => e.value = !e.value),
+          onClick: a[0] || (a[0] = ($) => e.value = !e.value),
           id: p()
         }, [
-          n("div", B, [
-            e.value ? (t(), d(f, { key: 0 })) : (t(), d(_, { key: 1 }))
+          n("div", I, [
+            e.value ? (t(), d(v, { key: 0 })) : (t(), d(_, { key: 1 }))
           ]),
           n("div", null, C(l.title), 1)
-        ], 8, I)) : S("", !0),
+        ], 8, x)) : S("", !0),
         k(n("div", {
           class: "s-collapses-item-content",
           style: u({
@@ -49,14 +49,14 @@ const I = ["id"], B = { class: "epxand" }, $ = /* @__PURE__ */ Object.assign({ n
             gap: "20px"
           })
         }, [
-          h(v.$slots, "default", {}, void 0, !0)
+          h(f.$slots, "default", {}, void 0, !0)
         ], 4), [
           [w, e.value]
         ])
       ], 4);
     };
   }
-}), N = /* @__PURE__ */ x($, [["__scopeId", "data-v-71518e9a"]]);
+}), N = /* @__PURE__ */ b(B, [["__scopeId", "data-v-aecbb5f1"]]);
 export {
   N as default
 };

+ 372 - 162
lib/js/SCopperUpload.js

@@ -1,11 +1,35 @@
-import { computed as M, ref as c, watch as z, resolveComponent as L, openBlock as r, createElementBlock as f, createElementVNode as i, toDisplayString as P, createCommentVNode as h, createVNode as v, unref as u, normalizeStyle as R, withCtx as S, withDirectives as K, createBlock as x, vShow as j } from "vue";
-import { d as H } from "./vuedraggable.js";
-import { b as q, d as G } from "./upload.js";
-import { n as J, ak as Q, al as W, am as X, an as Y, $ as Z, a0 as ee } from "./index2.js";
-const le = { class: "s-file-upload-common" }, te = {
+var K = (r, _, g) => new Promise((n, T) => {
+  var k = (d) => {
+    try {
+      b(g.next(d));
+    } catch (C) {
+      T(C);
+    }
+  }, c = (d) => {
+    try {
+      b(g.throw(d));
+    } catch (C) {
+      T(C);
+    }
+  }, b = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(k, c);
+  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";
+import { d as Oe } from "./vuedraggable.js";
+import Se from "./SFilePreview.js";
+import Ue from "./CropperModal.js";
+import { b as Fe, d as Re } from "./upload.js";
+import { n as xe, ak as Ie, al as ae, am as oe, an as ne, ao as ie, ap as E, aq as L, ar as h, as as Be, at as j, au as M, av as se, aw as q, ax as N, ay as Ee, az as Le } from "./index2.js";
+const Me = {
   key: 0,
   class: "head"
-}, ae = { class: "label" }, ne = ["onMouseover", "onMouseleave"], ie = ["src"], oe = { class: "tool-wrap" }, se = { class: "left" }, ue = { class: "right move" }, de = { class: "plus-wrap" }, ce = ["accept", "disabled"], re = { class: "preview-content" }, ve = ["src"], pe = {
+}, Te = { class: "label" }, ze = ["onMouseover", "onMouseleave"], De = ["src", "alt"], je = {
+  key: 1,
+  class: "file-thumb"
+}, Ne = { class: "file-thumb-ext" }, _e = { class: "tool-wrap" }, Ae = { class: "left" }, Pe = { class: "right move" }, Ve = { class: "file-row-ext" }, Ke = ["title"], qe = { class: "file-row-actions" }, Ge = {
+  key: 0,
+  class: "file-add-text"
+}, He = ["accept", "disabled"], We = {
   __name: "SCopperUpload",
   props: {
     /**
@@ -32,6 +56,14 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !1
     },
+    /**
+     * 详情模式:只读展示,不显示新增入口、不可删除拖拽,仅保留预览与下载
+     * @detailMode
+     */
+    detailMode: {
+      type: Boolean,
+      default: !1
+    },
     /**
      * 是否显示新增(isAdd=false 等价 PictureUpload 的 ishiddenAdd=true:隐藏添加框且不可删除/拖拽)
      * @isAdd
@@ -48,6 +80,54 @@ const le = { class: "s-file-upload-common" }, te = {
       type: String,
       default: "image/*"
     },
+    /**
+     * 裁剪比例:1 = 1:1(头像);'16:9' 或 16/9 = 封面;0 = 自由裁剪
+     * @aspectRatio
+     */
+    aspectRatio: {
+      type: [Number, String],
+      default: 1
+    },
+    /**
+     * 选图后是否先裁剪(false 时原图直传,等同改造前的行为)
+     * @crop
+     */
+    crop: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 展示形态:card 卡片(图片显示原图,其他类型显示文件类型);list 列表(文件类型 + 文件名 + 操作按钮)
+     * @listType
+     */
+    listType: {
+      type: String,
+      default: "card"
+    },
+    /**
+     * 是否显示预览按钮
+     * @showPreview
+     */
+    showPreview: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示下载按钮
+     * @showDownload
+     */
+    showDownload: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示删除按钮(仍需 isAdd 且非只读)
+     * @showRemove
+     */
+    showRemove: {
+      type: Boolean,
+      default: !0
+    },
     // 最多可上传数量(同 PictureUpload 的 maxSize)
     maxFileCount: {
       type: Number,
@@ -88,184 +168,314 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !0
     },
-    // 兼容保留( PictureUpload 无此概念,仅声明)
-    listType: {
-      type: String,
-      default: "picture-card"
-    },
+    // 已废弃:由 showRemove 取代,仅保留声明避免外部传参告警
     showRemoveIcon: {
       type: Boolean,
       default: !1
     }
   },
-  emits: ["change", "handChange", "dragChange"],
-  setup(o, { emit: B }) {
-    const w = B, s = o, p = M(() => s.readonly), $ = () => s.path || s.businessTableName, a = c([]), m = c(!1), y = c(""), C = c(""), d = c(0);
-    z(
-      () => s.list,
-      (l) => {
-        a.value = l || [];
+  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 = {
+      pdf: Ee,
+      doc: N,
+      docx: N,
+      wps: N,
+      rtf: N,
+      xls: q,
+      xlsx: q,
+      csv: q,
+      ppt: se,
+      pptx: se,
+      zip: M,
+      rar: M,
+      "7z": M,
+      gz: M,
+      tar: M,
+      txt: j,
+      log: j,
+      json: j,
+      xml: j,
+      md: Be,
+      png: h,
+      jpg: h,
+      jpeg: h,
+      gif: h,
+      webp: h,
+      bmp: h,
+      svg: h,
+      ico: h,
+      mp4: L,
+      mov: L,
+      avi: L,
+      mkv: L,
+      webm: L,
+      mp3: E,
+      wav: E,
+      flac: E,
+      aac: E,
+      m4a: E
+    }, S = (e = {}) => e.imageUrl || e.url || e.uid || "", G = (e = "") => {
+      const t = String(e).split("?")[0].split("#")[0], l = t.substring(t.lastIndexOf("/") + 1);
+      try {
+        return decodeURIComponent(l);
+      } catch (a) {
+        return l;
+      }
+    }, U = (e = {}) => e.name || G(S(e)) || window.$l("未命名文件"), z = (e = {}) => {
+      const t = U(e), l = t.lastIndexOf(".");
+      return l > -1 ? t.slice(l + 1).toLowerCase() : "";
+    }, H = (e = {}) => {
+      const t = e.type || e.mimeType || "";
+      return t ? String(t).indexOf("image/") === 0 : re.includes(z(e));
+    }, W = (e = {}) => ue[z(e)] || Le, s = x([]), A = x(!1), X = x(0);
+    be(
+      () => n.list,
+      (e) => {
+        s.value = e || [];
       },
       { immediate: !0, deep: !0 }
     );
-    const b = () => {
-      w("change", a.value), w("handChange", a.value);
-    }, A = (l) => {
-    }, E = (l) => {
-      a.value && a.value.length > 1 && a.value.forEach((e, n) => {
-        e.sort = n;
-      }), w("dragChange", a.value), b();
-    }, N = () => {
-      g.value.click();
-    }, g = c(null), O = (l) => {
-      const e = l.target.files;
-      if (e && e.length && a.value.length + e.length > s.maxFileCount) {
-        window.$message.warning(window.$l("上传图片,最多可上传") + s.maxFileCount + window.$l("张"));
+    const P = () => {
+      g("change", s.value), g("handChange", s.value);
+    }, ce = (e) => {
+    }, de = (e) => {
+      s.value && s.value.length > 1 && s.value.forEach((t, l) => {
+        t.sort = l;
+      }), g("dragChange", s.value), P();
+    }, pe = () => {
+      F.value && F.value.click();
+    }, F = x(null), Z = x(null);
+    let $ = null;
+    const fe = (e, t, l) => {
+      const a = URL.createObjectURL(e);
+      return new Promise((o) => {
+        $ = (p) => {
+          $ = null, URL.revokeObjectURL(a), o(p);
+        }, Z.value.edit({
+          img: a,
+          aspectRatio: n.aspectRatio,
+          title: l > 1 ? `${window.$l("图片裁剪")}(${t}/${l})` : window.$l("图片裁剪"),
+          // png 保留 png(可能有透明背景),其余走 jpeg 控制体积
+          outputType: e.type === "image/png" ? "png" : "jpeg",
+          file: e
+        });
+      });
+    }, ve = (e) => {
+      $ && $(e && e.blob || null);
+    }, me = () => {
+      $ && $(null);
+    }, ge = (e, t) => {
+      const l = e.type || t.type || "image/png", a = l === "image/png" ? "png" : "jpg", o = (t.name || "image").replace(/\.[^.]+$/, "");
+      return new File([e], `${o}.${a}`, { type: l, lastModified: Date.now() });
+    }, we = (e) => K(this, null, function* () {
+      const t = Array.from(e && e.target && e.target.files || []);
+      if (F.value && (F.value.value = ""), !t.length) return;
+      if (s.value.length + t.length > n.maxFileCount) {
+        window.$message.warning(
+          window.$l("上传图片,最多可上传") + n.maxFileCount + window.$l("张")
+        );
         return;
       }
-      if (e && e.length) {
-        for (let n = 0; n < e.length; n++)
-          if (e[n].size > s.fileSize * 1024) {
-            window.$message.warning(
-              `${window.$l("上传图片大小不能大于")}${s.fileSize}KB`
-            );
+      let l = t;
+      if (n.crop) {
+        l = [];
+        for (let a = 0; a < t.length; a++) {
+          const o = yield fe(t[a], a + 1, t.length);
+          if (!o) continue;
+          const p = ge(o, t[a]);
+          if (p.size > n.fileSize * 1024) {
+            window.$message.warning(`${window.$l("上传图片大小不能大于")}${n.fileSize}KB`);
+            continue;
+          }
+          l.push(p);
+        }
+        if (!l.length) return;
+      } else
+        for (let a = 0; a < t.length; a++)
+          if (t[a].size > n.fileSize * 1024) {
+            window.$message.warning(`${window.$l("上传图片大小不能大于")}${n.fileSize}KB`);
             return;
           }
-      }
-      q($(), e).then((n) => {
-        if (n && n.length)
-          for (let t = 0; t < n.length; t++)
-            a.value.push({
-              sort: t,
-              imageUrl: n[t].imageUrl,
-              uid: n[t].imageUrl,
-              url: n[t].imageUrl
+      Fe(C(), l).then((a) => {
+        if (a && a.length)
+          for (let o = 0; o < a.length; o++)
+            s.value.push({
+              sort: o,
+              name: l[o] && l[o].name || G(a[o].imageUrl),
+              imageUrl: a[o].imageUrl,
+              uid: a[o].imageUrl,
+              url: a[o].imageUrl
             });
-        b();
-      }).finally(() => {
-        g.value && (g.value.value = "");
+        P();
       });
-    }, T = (l) => {
-      l.showTool = !0;
-    }, V = (l) => {
-      l.showTool = !1;
-    }, D = (l, e) => {
-      a.value.splice(l, 1), G($(), e.imageUrl || e.uid), b();
-    }, F = (l = {}) => {
-      d.value = a.value.findIndex((e) => e === l), m.value = !0, C.value = l.name || window.$l("预览"), y.value = l.imageUrl || l.url;
-    }, I = () => {
-      m.value = !1;
-    }, _ = (l) => {
-      d.value = d.value + l < 0 ? 0 : d.value + l > a.value.length - 1 ? a.value.length - 1 : d.value + l;
-      const e = a.value[d.value];
-      e && (C.value = e.name || window.$l("预览"), y.value = e.imageUrl || e.url);
-    };
-    return (l, e) => {
-      const n = L("s-modal");
-      return r(), f("div", le, [
-        o.label ? (r(), f("div", te, [
-          i("div", ae, P(o.label), 1)
-        ])) : h("", !0),
-        v(u(H), {
-          modelValue: a.value,
-          "onUpdate:modelValue": e[0] || (e[0] = (t) => a.value = t),
-          onStart: A,
-          onEnd: E,
-          handle: ".move",
-          class: "img-list-wrap",
-          style: R(o.picStyle),
-          disabled: p.value,
-          "item-key": "uid"
-        }, {
-          item: S(({ element: t, index: U }) => [
-            (r(), f("div", {
-              class: "img-item-wrap",
-              key: t.uid || U,
-              onMouseover: (k) => T(t),
-              onMouseleave: (k) => V(t)
-            }, [
-              i("img", {
+    }), ye = (e) => {
+      c.value && (e.showTool = !0);
+    }, he = (e) => {
+      c.value && (e.showTool = !1);
+    }, J = (e, t) => {
+      s.value.splice(e, 1), Re(C(), t.imageUrl || t.uid), P();
+    }, Q = (e = {}) => {
+      const t = S(e);
+      if (!t) return;
+      if (!H(e)) {
+        window.open(t, "_blank", "noopener");
+        return;
+      }
+      let l = s.value.findIndex((a) => a === e);
+      l < 0 && (l = s.value.findIndex((a) => S(a) === t)), X.value = l > -1 ? l : 0, A.value = !0;
+    }, Y = (...t) => K(this, [...t], function* (e = {}) {
+      const l = S(e);
+      if (!l) return;
+      g("download", e);
+      const a = U(e), o = (p, V) => {
+        const f = document.createElement("a");
+        f.href = p, f.download = a, V || (f.target = "_blank", f.rel = "noopener"), document.body.appendChild(f), f.click(), document.body.removeChild(f);
+      };
+      try {
+        const p = yield fetch(l);
+        if (!p.ok) throw new Error("fetch failed");
+        const V = yield p.blob(), f = URL.createObjectURL(V);
+        o(f, !0), setTimeout(() => URL.revokeObjectURL(f), 1e3);
+      } catch (p) {
+        o(l, !1);
+      }
+    });
+    return (e, t) => (i(), w("div", {
+      class: I(["s-file-upload-common", [`is-${r.listType}`, { "is-readonly": k.value }]])
+    }, [
+      r.label ? (i(), w("div", Me, [
+        y("div", Te, B(r.label), 1)
+      ])) : u("", !0),
+      D(v(Oe), {
+        modelValue: s.value,
+        "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
+        onStart: ce,
+        onEnd: de,
+        handle: ".move",
+        class: I(c.value ? "img-list-wrap" : "file-list-wrap"),
+        style: ke(r.picStyle),
+        disabled: !b.value,
+        "item-key": "uid"
+      }, {
+        item: ee(({ element: l, index: a }) => [
+          (i(), w("div", {
+            key: l.uid || a,
+            class: I(c.value ? "img-item-wrap" : "file-row"),
+            onMouseover: (o) => ye(l),
+            onMouseleave: (o) => he(l)
+          }, [
+            c.value ? (i(), w(le, { key: 0 }, [
+              H(l) ? (i(), w("img", {
+                key: 0,
                 class: "upload-img-wrap",
-                src: t.imageUrl || t.url
-              }, null, 8, ie),
-              K(i("div", oe, [
-                i("div", se, [
-                  v(u(W), {
-                    class: "tool-icon-wrap",
-                    style: { "margin-right": "8px" },
-                    onClick: (k) => F(t)
-                  }, null, 8, ["onClick"]),
-                  o.isAdd && !p.value ? (r(), x(u(X), {
+                src: S(l),
+                alt: U(l)
+              }, null, 8, De)) : (i(), w("div", je, [
+                (i(), m(te(W(l)), { class: "file-thumb-icon" })),
+                y("span", Ne, B(z(l) || "FILE"), 1)
+              ])),
+              Ce(y("div", _e, [
+                y("div", Ae, [
+                  r.showPreview ? (i(), m(v(ae), {
                     key: 0,
                     class: "tool-icon-wrap",
-                    onClick: (k) => D(U, t)
-                  }, null, 8, ["onClick"])) : h("", !0)
+                    title: e.$l("预览"),
+                    onClick: O((o) => Q(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0),
+                  r.showDownload ? (i(), m(v(oe), {
+                    key: 1,
+                    class: "tool-icon-wrap",
+                    title: e.$l("下载"),
+                    onClick: O((o) => Y(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0),
+                  d.value ? (i(), m(v(ne), {
+                    key: 2,
+                    class: "tool-icon-wrap",
+                    title: e.$l("删除"),
+                    onClick: O((o) => J(a, l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0)
                 ]),
-                i("div", ue, [
-                  o.isAdd && !p.value && !o.noDrag ? (r(), x(u(Y), { key: 0 })) : h("", !0)
+                y("div", Pe, [
+                  b.value ? (i(), m(v(ie), { key: 0 })) : u("", !0)
                 ])
               ], 512), [
-                [j, t.showTool]
-              ])
-            ], 40, ne))
-          ]),
-          footer: S(() => [
-            a.value.length < o.maxFileCount && o.isAdd ? (r(), f("div", {
-              key: 0,
-              class: "img-add-wrap",
-              onClick: N
-            }, [
-              i("div", de, [
-                v(u(Q), { class: "plus-icon" }),
-                i("input", {
-                  accept: o.accept || "image/*",
-                  multiple: !0,
-                  type: "file",
-                  disabled: p.value,
-                  ref_key: "fileInput",
-                  ref: g,
-                  style: { display: "none" },
-                  onChange: O
-                }, null, 40, ce)
+                [$e, l.showTool]
               ])
-            ])) : h("", !0)
-          ]),
-          _: 1
-        }, 8, ["modelValue", "style", "disabled"]),
-        v(n, {
-          value: m.value,
-          "onUpdate:value": e[3] || (e[3] = (t) => m.value = t),
-          title: C.value,
-          onHandCancel: I,
-          width: "800px"
-        }, {
-          default: S(() => [
-            i("div", re, [
-              i("div", {
-                class: "prev",
-                onClick: e[1] || (e[1] = (t) => _(-1))
-              }, [
-                v(u(Z))
-              ]),
-              i("img", {
-                alt: "example",
-                class: "view",
-                src: y.value
-              }, null, 8, ve),
-              i("div", {
-                class: "next",
-                onClick: e[2] || (e[2] = (t) => _(1))
-              }, [
-                v(u(ee))
+            ], 64)) : (i(), w(le, { key: 1 }, [
+              (i(), m(te(W(l)), { class: "file-row-icon" })),
+              y("span", Ve, B(z(l) || "FILE"), 1),
+              y("span", {
+                class: "file-row-name",
+                title: U(l)
+              }, B(U(l)), 9, Ke),
+              y("span", qe, [
+                r.showPreview ? (i(), m(v(ae), {
+                  key: 0,
+                  class: "file-action",
+                  title: e.$l("预览"),
+                  onClick: O((o) => Q(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                r.showDownload ? (i(), m(v(oe), {
+                  key: 1,
+                  class: "file-action",
+                  title: e.$l("下载"),
+                  onClick: O((o) => Y(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                d.value ? (i(), m(v(ne), {
+                  key: 2,
+                  class: "file-action",
+                  title: e.$l("删除"),
+                  onClick: O((o) => J(a, l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                b.value ? (i(), m(v(ie), {
+                  key: 3,
+                  class: "file-action move",
+                  title: e.$l("拖动排序")
+                }, null, 8, ["title"])) : u("", !0)
               ])
-            ])
-          ]),
-          _: 1
-        }, 8, ["value", "title"])
-      ]);
-    };
+            ], 64))
+          ], 42, ze))
+        ]),
+        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"),
+            onClick: pe
+          }, [
+            D(v(Ie), {
+              class: I(c.value ? "plus-icon" : "plus-icon plus-icon-small")
+            }, null, 8, ["class"]),
+            c.value ? u("", !0) : (i(), w("span", Ge, B(e.$l("上传文件")), 1)),
+            y("input", {
+              accept: r.accept || "image/*",
+              multiple: !0,
+              type: "file",
+              disabled: T.value,
+              ref_key: "fileInput",
+              ref: F,
+              style: { display: "none" },
+              onChange: we
+            }, null, 40, He)
+          ], 2)) : u("", !0)
+        ]),
+        _: 1
+      }, 8, ["modelValue", "class", "style", "disabled"]),
+      D(Se, {
+        value: A.value,
+        "onUpdate:value": t[1] || (t[1] = (l) => A.value = l),
+        list: s.value,
+        active: X.value
+      }, null, 8, ["value", "list", "active"]),
+      D(Ue, {
+        ref_key: "cropperRef",
+        ref: Z,
+        onCropperOk: ve,
+        onCropperNo: me
+      }, null, 512)
+    ], 2));
   }
-}, we = /* @__PURE__ */ J(pe, [["__scopeId", "data-v-0c3d2639"]]);
+}, tl = /* @__PURE__ */ xe(We, [["__scopeId", "data-v-64e419f4"]]);
 export {
-  we as default
+  tl as default
 };

+ 313 - 160
lib/js/SDraggerUpload.js

@@ -1,11 +1,34 @@
-import { computed as M, ref as r, watch as z, resolveComponent as L, openBlock as c, createElementBlock as f, createElementVNode as i, toDisplayString as P, createCommentVNode as h, createVNode as v, unref as u, normalizeStyle as R, withCtx as S, withDirectives as K, createBlock as x, vShow as j } from "vue";
-import { d as H } from "./vuedraggable.js";
-import { b as q, d as G } from "./upload.js";
-import { n as J, ak as Q, al as W, am as X, an as Y, $ as Z, a0 as ee } from "./index2.js";
-const le = { class: "s-file-upload-common" }, te = {
+var J = (u, _, m) => new Promise((i, M) => {
+  var b = (r) => {
+    try {
+      y(m.next(r));
+    } catch (k) {
+      M(k);
+    }
+  }, c = (r) => {
+    try {
+      y(m.throw(r));
+    } catch (k) {
+      M(k);
+    }
+  }, y = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(b, c);
+  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";
+import { d as he } from "./vuedraggable.js";
+import ye from "./SFilePreview.js";
+import { b as be, d as ke } from "./upload.js";
+import { n as Ce, ak as $e, al as le, am as te, an as ae, ao as ne, ap as E, aq as B, ar as h, as as Oe, at as L, au as D, av as oe, aw as V, ax as R, ay as Se, az as Fe } from "./index2.js";
+const Ue = {
   key: 0,
   class: "head"
-}, ae = { class: "label" }, ne = ["onMouseover", "onMouseleave"], ie = ["src"], oe = { class: "tool-wrap" }, se = { class: "left" }, ue = { class: "right move" }, de = { class: "plus-wrap" }, re = ["accept", "disabled"], ce = { class: "preview-content" }, ve = ["src"], me = {
+}, xe = { class: "label" }, Ie = ["onMouseover", "onMouseleave"], Ee = ["src", "alt"], Be = {
+  key: 1,
+  class: "file-thumb"
+}, De = { class: "file-thumb-ext" }, Me = { class: "tool-wrap" }, Te = { class: "left" }, Ae = { class: "right move" }, Le = { class: "file-row-ext" }, Re = ["title"], _e = { class: "file-row-actions" }, ze = {
+  key: 0,
+  class: "file-add-text"
+}, Pe = ["accept", "disabled"], Ne = {
   __name: "SDraggerUpload",
   props: {
     /**
@@ -32,6 +55,14 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !1
     },
+    /**
+     * 详情模式:只读展示,不显示新增入口、不可删除拖拽,仅保留预览与下载
+     * @detailMode
+     */
+    detailMode: {
+      type: Boolean,
+      default: !1
+    },
     /**
      * 是否显示新增(isAdd=false 等价 PictureUpload 的 ishiddenAdd=true:隐藏添加框且不可删除/拖拽)
      * @isAdd
@@ -48,6 +79,38 @@ const le = { class: "s-file-upload-common" }, te = {
       type: String,
       default: "image/*"
     },
+    /**
+     * 展示形态:card 卡片(图片显示原图,其他类型显示文件类型);list 列表(文件类型 + 文件名 + 操作按钮)
+     * @listType
+     */
+    listType: {
+      type: String,
+      default: "card"
+    },
+    /**
+     * 是否显示预览按钮
+     * @showPreview
+     */
+    showPreview: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示下载按钮
+     * @showDownload
+     */
+    showDownload: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示删除按钮(仍需 isAdd 且非只读)
+     * @showRemove
+     */
+    showRemove: {
+      type: Boolean,
+      default: !0
+    },
     // 最多可上传数量(同 PictureUpload 的 maxSize)
     maxFileCount: {
       type: Number,
@@ -88,184 +151,274 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !0
     },
-    // 兼容保留( PictureUpload 无此概念,仅声明)
-    listType: {
-      type: String,
-      default: "picture-card"
-    },
+    // 已废弃:由 showRemove 取代,仅保留声明避免外部传参告警
     showRemoveIcon: {
       type: Boolean,
       default: !1
     }
   },
-  emits: ["change", "handChange", "dragChange"],
-  setup(o, { emit: B }) {
-    const w = B, s = o, m = M(() => s.readonly), $ = () => s.path || s.businessTableName, a = r([]), g = r(!1), y = r(""), C = r(""), d = r(0);
-    z(
-      () => s.list,
-      (l) => {
-        a.value = l || [];
+  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 = {
+      pdf: Se,
+      doc: R,
+      docx: R,
+      wps: R,
+      rtf: R,
+      xls: V,
+      xlsx: V,
+      csv: V,
+      ppt: oe,
+      pptx: oe,
+      zip: D,
+      rar: D,
+      "7z": D,
+      gz: D,
+      tar: D,
+      txt: L,
+      log: L,
+      json: L,
+      xml: L,
+      md: Oe,
+      png: h,
+      jpg: h,
+      jpeg: h,
+      gif: h,
+      webp: h,
+      bmp: h,
+      svg: h,
+      ico: h,
+      mp4: B,
+      mov: B,
+      avi: B,
+      mkv: B,
+      webm: B,
+      mp3: E,
+      wav: E,
+      flac: E,
+      aac: E,
+      m4a: E
+    }, $ = (e = {}) => e.imageUrl || e.url || e.uid || "", K = (e = "") => {
+      const t = String(e).split("?")[0].split("#")[0], l = t.substring(t.lastIndexOf("/") + 1);
+      try {
+        return decodeURIComponent(l);
+      } catch (a) {
+        return l;
+      }
+    }, O = (e = {}) => e.name || K($(e)) || window.$l("未命名文件"), T = (e = {}) => {
+      const t = O(e), l = t.lastIndexOf(".");
+      return l > -1 ? t.slice(l + 1).toLowerCase() : "";
+    }, q = (e = {}) => {
+      const t = e.type || e.mimeType || "";
+      return t ? String(t).indexOf("image/") === 0 : ie.includes(T(e));
+    }, G = (e = {}) => se[T(e)] || Fe, s = A([]), z = A(!1), H = A(0);
+    ve(
+      () => i.list,
+      (e) => {
+        s.value = e || [];
       },
       { immediate: !0, deep: !0 }
     );
-    const b = () => {
-      w("change", a.value), w("handChange", a.value);
-    }, D = (l) => {
-    }, A = (l) => {
-      a.value && a.value.length > 1 && a.value.forEach((e, n) => {
-        e.sort = n;
-      }), w("dragChange", a.value), b();
-    }, E = () => {
-      p.value.click();
-    }, p = r(null), N = (l) => {
-      const e = l.target.files;
-      if (e && e.length && a.value.length + e.length > s.maxFileCount) {
-        window.$message.warning(window.$l("上传图片,最多可上传") + s.maxFileCount + window.$l("张"));
+    const P = () => {
+      m("change", s.value), m("handChange", s.value);
+    }, ue = (e) => {
+    }, de = (e) => {
+      s.value && s.value.length > 1 && s.value.forEach((t, l) => {
+        t.sort = l;
+      }), m("dragChange", s.value), P();
+    }, ce = () => {
+      S.value && S.value.click();
+    }, S = A(null), re = (e) => {
+      const t = e.target.files;
+      if (t && t.length && s.value.length + t.length > i.maxFileCount) {
+        window.$message.warning(
+          window.$l("上传图片,最多可上传") + i.maxFileCount + window.$l("张")
+        );
         return;
       }
-      if (e && e.length) {
-        for (let n = 0; n < e.length; n++)
-          if (e[n].size > s.fileSize * 1024) {
-            window.$message.warning(
-              `${window.$l("上传图片大小不能大于")}${s.fileSize}KB`
-            );
+      if (t && t.length) {
+        for (let a = 0; a < t.length; a++)
+          if (t[a].size > i.fileSize * 1024) {
+            window.$message.warning(`${window.$l("上传图片大小不能大于")}${i.fileSize}KB`);
             return;
           }
       }
-      q($(), e).then((n) => {
-        if (n && n.length)
-          for (let t = 0; t < n.length; t++)
-            a.value.push({
-              sort: t,
-              imageUrl: n[t].imageUrl,
-              uid: n[t].imageUrl,
-              url: n[t].imageUrl
+      const l = Array.from(t || []);
+      be(k(), t).then((a) => {
+        if (a && a.length)
+          for (let n = 0; n < a.length; n++)
+            s.value.push({
+              sort: n,
+              name: l[n] && l[n].name || K(a[n].imageUrl),
+              imageUrl: a[n].imageUrl,
+              uid: a[n].imageUrl,
+              url: a[n].imageUrl
             });
-        b();
+        P();
       }).finally(() => {
-        p.value && (p.value.value = "");
+        S.value && (S.value.value = "");
       });
-    }, O = (l) => {
-      l.showTool = !0;
-    }, T = (l) => {
-      l.showTool = !1;
-    }, V = (l, e) => {
-      a.value.splice(l, 1), G($(), e.imageUrl || e.uid), b();
-    }, F = (l = {}) => {
-      d.value = a.value.findIndex((e) => e === l), g.value = !0, C.value = l.name || window.$l("预览"), y.value = l.imageUrl || l.url;
-    }, I = () => {
-      g.value = !1;
-    }, _ = (l) => {
-      d.value = d.value + l < 0 ? 0 : d.value + l > a.value.length - 1 ? a.value.length - 1 : d.value + l;
-      const e = a.value[d.value];
-      e && (C.value = e.name || window.$l("预览"), y.value = e.imageUrl || e.url);
-    };
-    return (l, e) => {
-      const n = L("s-modal");
-      return c(), f("div", le, [
-        o.label ? (c(), f("div", te, [
-          i("div", ae, P(o.label), 1)
-        ])) : h("", !0),
-        v(u(H), {
-          modelValue: a.value,
-          "onUpdate:modelValue": e[0] || (e[0] = (t) => a.value = t),
-          onStart: D,
-          onEnd: A,
-          handle: ".move",
-          class: "img-list-wrap",
-          style: R(o.picStyle),
-          disabled: m.value,
-          "item-key": "uid"
-        }, {
-          item: S(({ element: t, index: U }) => [
-            (c(), f("div", {
-              class: "img-item-wrap",
-              key: t.uid || U,
-              onMouseover: (k) => O(t),
-              onMouseleave: (k) => T(t)
-            }, [
-              i("img", {
+    }, fe = (e) => {
+      c.value && (e.showTool = !0);
+    }, pe = (e) => {
+      c.value && (e.showTool = !1);
+    }, W = (e, t) => {
+      s.value.splice(e, 1), ke(k(), t.imageUrl || t.uid), P();
+    }, X = (e = {}) => {
+      const t = $(e);
+      if (!t) return;
+      if (!q(e)) {
+        window.open(t, "_blank", "noopener");
+        return;
+      }
+      let l = s.value.findIndex((a) => a === e);
+      l < 0 && (l = s.value.findIndex((a) => $(a) === t)), H.value = l > -1 ? l : 0, z.value = !0;
+    }, Z = (...t) => J(this, [...t], function* (e = {}) {
+      const l = $(e);
+      if (!l) return;
+      m("download", e);
+      const a = O(e), n = (F, N) => {
+        const f = document.createElement("a");
+        f.href = F, f.download = a, N || (f.target = "_blank", f.rel = "noopener"), document.body.appendChild(f), f.click(), document.body.removeChild(f);
+      };
+      try {
+        const F = yield fetch(l);
+        if (!F.ok) throw new Error("fetch failed");
+        const N = yield F.blob(), f = URL.createObjectURL(N);
+        n(f, !0), setTimeout(() => URL.revokeObjectURL(f), 1e3);
+      } catch (F) {
+        n(l, !1);
+      }
+    });
+    return (e, t) => (o(), g("div", {
+      class: x(["s-file-upload-common", [`is-${u.listType}`, { "is-readonly": b.value }]])
+    }, [
+      u.label ? (o(), g("div", Ue, [
+        w("div", xe, I(u.label), 1)
+      ])) : d("", !0),
+      j(p(he), {
+        modelValue: s.value,
+        "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
+        onStart: ue,
+        onEnd: de,
+        handle: ".move",
+        class: x(c.value ? "img-list-wrap" : "file-list-wrap"),
+        style: me(u.picStyle),
+        disabled: !y.value,
+        "item-key": "uid"
+      }, {
+        item: Q(({ element: l, index: a }) => [
+          (o(), g("div", {
+            key: l.uid || a,
+            class: x(c.value ? "img-item-wrap" : "file-row"),
+            onMouseover: (n) => fe(l),
+            onMouseleave: (n) => pe(l)
+          }, [
+            c.value ? (o(), g(Y, { key: 0 }, [
+              q(l) ? (o(), g("img", {
+                key: 0,
                 class: "upload-img-wrap",
-                src: t.imageUrl || t.url
-              }, null, 8, ie),
-              K(i("div", oe, [
-                i("div", se, [
-                  v(u(W), {
-                    class: "tool-icon-wrap",
-                    style: { "margin-right": "8px" },
-                    onClick: (k) => F(t)
-                  }, null, 8, ["onClick"]),
-                  o.isAdd && !m.value ? (c(), x(u(X), {
+                src: $(l),
+                alt: O(l)
+              }, null, 8, Ee)) : (o(), g("div", Be, [
+                (o(), v(ee(G(l)), { class: "file-thumb-icon" })),
+                w("span", De, I(T(l) || "FILE"), 1)
+              ])),
+              ge(w("div", Me, [
+                w("div", Te, [
+                  u.showPreview ? (o(), v(p(le), {
                     key: 0,
                     class: "tool-icon-wrap",
-                    onClick: (k) => V(U, t)
-                  }, null, 8, ["onClick"])) : h("", !0)
+                    title: e.$l("预览"),
+                    onClick: C((n) => X(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : d("", !0),
+                  u.showDownload ? (o(), v(p(te), {
+                    key: 1,
+                    class: "tool-icon-wrap",
+                    title: e.$l("下载"),
+                    onClick: C((n) => Z(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : d("", !0),
+                  r.value ? (o(), v(p(ae), {
+                    key: 2,
+                    class: "tool-icon-wrap",
+                    title: e.$l("删除"),
+                    onClick: C((n) => W(a, l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : d("", !0)
                 ]),
-                i("div", ue, [
-                  o.isAdd && !m.value && !o.noDrag ? (c(), x(u(Y), { key: 0 })) : h("", !0)
+                w("div", Ae, [
+                  y.value ? (o(), v(p(ne), { key: 0 })) : d("", !0)
                 ])
               ], 512), [
-                [j, t.showTool]
-              ])
-            ], 40, ne))
-          ]),
-          footer: S(() => [
-            a.value.length < o.maxFileCount && o.isAdd ? (c(), f("div", {
-              key: 0,
-              class: "img-add-wrap",
-              onClick: E
-            }, [
-              i("div", de, [
-                v(u(Q), { class: "plus-icon" }),
-                i("input", {
-                  accept: o.accept || "image/*",
-                  multiple: !0,
-                  type: "file",
-                  disabled: m.value,
-                  ref_key: "fileInput",
-                  ref: p,
-                  style: { display: "none" },
-                  onChange: N
-                }, null, 40, re)
+                [we, l.showTool]
               ])
-            ])) : h("", !0)
-          ]),
-          _: 1
-        }, 8, ["modelValue", "style", "disabled"]),
-        v(n, {
-          value: g.value,
-          "onUpdate:value": e[3] || (e[3] = (t) => g.value = t),
-          title: C.value,
-          onHandCancel: I,
-          width: "800px"
-        }, {
-          default: S(() => [
-            i("div", ce, [
-              i("div", {
-                class: "prev",
-                onClick: e[1] || (e[1] = (t) => _(-1))
-              }, [
-                v(u(Z))
-              ]),
-              i("img", {
-                alt: "example",
-                class: "view",
-                src: y.value
-              }, null, 8, ve),
-              i("div", {
-                class: "next",
-                onClick: e[2] || (e[2] = (t) => _(1))
-              }, [
-                v(u(ee))
+            ], 64)) : (o(), g(Y, { key: 1 }, [
+              (o(), v(ee(G(l)), { class: "file-row-icon" })),
+              w("span", Le, I(T(l) || "FILE"), 1),
+              w("span", {
+                class: "file-row-name",
+                title: O(l)
+              }, I(O(l)), 9, Re),
+              w("span", _e, [
+                u.showPreview ? (o(), v(p(le), {
+                  key: 0,
+                  class: "file-action",
+                  title: e.$l("预览"),
+                  onClick: C((n) => X(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : d("", !0),
+                u.showDownload ? (o(), v(p(te), {
+                  key: 1,
+                  class: "file-action",
+                  title: e.$l("下载"),
+                  onClick: C((n) => Z(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : d("", !0),
+                r.value ? (o(), v(p(ae), {
+                  key: 2,
+                  class: "file-action",
+                  title: e.$l("删除"),
+                  onClick: C((n) => W(a, l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : d("", !0),
+                y.value ? (o(), v(p(ne), {
+                  key: 3,
+                  class: "file-action move",
+                  title: e.$l("拖动排序")
+                }, null, 8, ["title"])) : d("", !0)
               ])
-            ])
-          ]),
-          _: 1
-        }, 8, ["value", "title"])
-      ]);
-    };
+            ], 64))
+          ], 42, Ie))
+        ]),
+        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
+          }, [
+            j(p($e), {
+              class: x(c.value ? "plus-icon" : "plus-icon plus-icon-small")
+            }, null, 8, ["class"]),
+            c.value ? d("", !0) : (o(), g("span", ze, I(e.$l("上传文件")), 1)),
+            w("input", {
+              accept: u.accept || "image/*",
+              multiple: !0,
+              type: "file",
+              disabled: M.value,
+              ref_key: "fileInput",
+              ref: S,
+              style: { display: "none" },
+              onChange: re
+            }, null, 40, Pe)
+          ], 2)) : d("", !0)
+        ]),
+        _: 1
+      }, 8, ["modelValue", "class", "style", "disabled"]),
+      j(ye, {
+        value: z.value,
+        "onUpdate:value": t[1] || (t[1] = (l) => z.value = l),
+        list: s.value,
+        active: H.value
+      }, null, 8, ["value", "list", "active"])
+    ], 2));
   }
-}, we = /* @__PURE__ */ J(me, [["__scopeId", "data-v-88a2e9c2"]]);
+}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-5b30c036"]]);
 export {
-  we as default
+  We as default
 };

+ 48 - 43
lib/js/SExtendFieldsForm.js

@@ -1,19 +1,19 @@
 var W = Object.defineProperty;
-var _ = Object.getOwnPropertySymbols;
+var b = Object.getOwnPropertySymbols;
 var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
-var w = (f, n, i) => n in f ? W(f, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : f[n] = i, p = (f, n) => {
-  for (var i in n || (n = {}))
-    D.call(n, i) && w(f, i, n[i]);
-  if (_)
-    for (var i of _(n))
-      j.call(n, i) && w(f, i, n[i]);
-  return f;
+var w = (n, i, d) => i in n ? W(n, i, { enumerable: !0, configurable: !0, writable: !0, value: d }) : n[i] = d, p = (n, i) => {
+  for (var d in i || (i = {}))
+    D.call(i, d) && w(n, d, i[d]);
+  if (b)
+    for (var d of b(i))
+      j.call(i, d) && w(n, d, i[d]);
+  return n;
 };
-import { useAttrs as A, ref as y, computed as s, watch as b, onMounted as B, nextTick as E, resolveComponent as I, openBlock as v, createElementBlock as x, createBlock as V, resolveDynamicComponent as P, toDisplayString as L, createVNode as S, withCtx as k, Fragment as R, renderList as U, mergeProps as z, unref as q } from "vue";
-import { ai as G } from "./index2.js";
-import H from "./SExtendFieldsFormItem.js";
-import { _ as K } from "./index5.js";
-const te = {
+import { useAttrs as A, ref as y, computed as s, watch as _, onMounted as B, nextTick as E, resolveComponent as I, openBlock as v, createElementBlock as x, normalizeStyle as P, createBlock as S, resolveDynamicComponent as z, toDisplayString as L, createVNode as V, withCtx as N, Fragment as R, renderList as U, mergeProps as q, unref as G } from "vue";
+import { ai as H } from "./index2.js";
+import K from "./SExtendFieldsFormItem.js";
+import { _ as Q } from "./index5.js";
+const oe = {
   __name: "SExtendFieldsForm",
   props: {
     // 扩展字段的列表
@@ -51,20 +51,24 @@ const te = {
     layout: {
       type: String,
       default: "vertical"
+    },
+    marginTop: {
+      type: Number,
+      default: 0
     }
   },
-  setup(f, { expose: n }) {
-    const i = A(), d = f, c = y(null), N = y(d.column >= 5 ? 4 : d.column), g = `sapiExtendFieldsForm${Math.floor(Date.now() * Math.random()).toString(16)}`, u = y({}), $ = s(() => {
-      const l = d.layout, e = (d == null ? void 0 : d.labelWidth) + "";
+  setup(n, { expose: i }) {
+    const d = A(), f = n, c = y(null), k = y(f.column >= 5 ? 4 : f.column), g = `sapiExtendFieldsForm${Math.floor(Date.now() * Math.random()).toString(16)}`, u = y({}), T = s(() => {
+      const l = f.layout, e = (f == null ? void 0 : f.labelWidth) + "";
       return l === "horizontal" ? {
         style: {
           width: e.includes("px") ? e : e + "px"
         }
       } : {};
-    }), F = s(() => `${100 / N.value}%`), O = s(
-      () => `div#${g} > form.sapi-form > div.ant-form-item:not(.sapi-form-item_full){ width: ${F.value}; }`
-    ), T = s(() => d.labelWidth), C = s(
-      () => d.data.map((l) => {
+    }), $ = s(() => `${100 / k.value}%`), F = s(
+      () => `div#${g} > form.sapi-form > div.ant-form-item:not(.sapi-form-item_full){ width: ${$.value}; }`
+    ), O = s(() => f.labelWidth), C = s(
+      () => f.data.map((l) => {
         var a, r;
         const e = p({}, l);
         if (typeof e.fillModeConfig == "string" && e.fillModeConfig)
@@ -77,7 +81,7 @@ const te = {
         return e.isFull = ["textarea", "upload"].includes(o) || o === "select" && t.multiple, e;
       }).sort((l, e) => (l.rowIndex || 0) - (e.rowIndex || 0))
     ), h = s(
-      () => d.defaultValue.reduce((l, e) => {
+      () => f.defaultValue.reduce((l, e) => {
         if (e.value) {
           let t;
           try {
@@ -92,18 +96,18 @@ const te = {
             o = {};
           }
           const { showType: a, config: r = {} } = o || {};
-          a === "datePicker" ? l[e.fieldCode] = G(new Date(t)) : a === "number" ? l[e.fieldCode] = Number(t) : a === "select" && r.multiple === 1 ? l[e.fieldCode] = String(t).split(",") : l[e.fieldCode] = String(t);
+          a === "datePicker" ? l[e.fieldCode] = H(new Date(t)) : a === "number" ? l[e.fieldCode] = Number(t) : a === "select" && r.multiple === 1 ? l[e.fieldCode] = String(t).split(",") : l[e.fieldCode] = String(t);
         }
         return l;
       }, {})
     );
-    b(
+    _(
       () => C.value.length,
       () => {
         var e;
         const l = {};
         for (const t of C.value)
-          if (d.type === "view") {
+          if (f.type === "view") {
             let o = null;
             try {
               o = t.value ? JSON.parse(t.value) : null;
@@ -118,11 +122,11 @@ const te = {
         u.value = l, m();
       },
       { immediate: !0 }
-    ), b(
-      () => d.defaultValue.length,
+    ), _(
+      () => f.defaultValue.length,
       () => {
         const l = p({}, u.value);
-        for (const e of d.defaultValue)
+        for (const e of f.defaultValue)
           l[e.fieldCode] = h.value[e.fieldCode];
         u.value = l, m();
       },
@@ -142,43 +146,44 @@ const te = {
     function m(l) {
       c.value && c.value.clearValidate(l);
     }
-    return n({ validate: J, clearValidate: m, getModel: () => Object.keys(u.value).map((l) => {
+    return i({ validate: J, clearValidate: m, getModel: () => Object.keys(u.value).map((l) => {
       let e = u.value[l];
       return typeof e == "object" && (e = e == null ? null : JSON.stringify(e)), {
         fieldCode: l,
         value: e
       };
     }) }), (l, e) => {
-      const t = K, o = I("s-form");
+      const t = Q, o = I("s-form");
       return v(), x("div", {
         class: "sapi-extend-fields-form-container",
-        id: g
+        id: g,
+        style: P({ marginTop: n.marginTop + "px" })
       }, [
-        (v(), V(P("style"), {
-          textContent: L(O.value)
+        (v(), S(z("style"), {
+          textContent: L(F.value)
         }, null, 8, ["textContent"])),
-        S(o, {
+        V(o, {
           ref_key: "formRef",
           ref: c,
           model: u.value,
-          "label-width": T.value,
-          column: f.column
+          "label-width": O.value,
+          column: n.column
         }, {
-          default: k(() => [
-            (v(!0), x(R, null, U(C.value, (a) => (v(), V(t, z({
+          default: N(() => [
+            (v(!0), x(R, null, U(C.value, (a) => (v(), S(t, q({
               key: a.fieldCode,
               label: a.fieldName,
               name: a.fieldCode
-            }, { ref_for: !0 }, p(p({}, $.value), q(i)), {
+            }, { ref_for: !0 }, p(p({}, T.value), G(d)), {
               class: "s-form-item",
               ke: l.$utils.uuid()
             }), {
-              default: k(() => [
-                S(H, {
+              default: N(() => [
+                V(K, {
                   modelValue: u.value[a.fieldCode],
                   "onUpdate:modelValue": (r) => u.value[a.fieldCode] = r,
                   field: a,
-                  type: f.type,
+                  type: n.type,
                   onCallback: (r) => m(a.fieldCode)
                 }, null, 8, ["modelValue", "onUpdate:modelValue", "field", "type", "onCallback"])
               ]),
@@ -187,10 +192,10 @@ const te = {
           ]),
           _: 1
         }, 8, ["model", "label-width", "column"])
-      ]);
+      ], 4);
     };
   }
 };
 export {
-  te as default
+  oe as default
 };

+ 105 - 0
lib/js/SFilePreview.js

@@ -0,0 +1,105 @@
+import { computed as i, ref as y, watch as U, resolveComponent as b, openBlock as k, createBlock as I, withCtx as S, createElementVNode as a, createVNode as m, unref as f } from "vue";
+import { n as $, $ as B, a0 as F } from "./index2.js";
+const N = { class: "preview-content" }, O = { class: "view-content" }, M = ["src"], P = {
+  __name: "SFilePreview",
+  props: {
+    /**
+     * 是否显示,配合 v-model:value 使用
+     */
+    value: {
+      type: Boolean,
+      default: !1
+    },
+    /**
+     * 文件列表,用于左右翻页
+     */
+    list: {
+      type: Array,
+      default: () => []
+    },
+    /**
+     * 初始预览项下标,弹窗打开时生效
+     */
+    active: {
+      type: Number,
+      default: 0
+    },
+    /**
+     * 自定义标题,为空时取文件名
+     */
+    title: {
+      type: String,
+      default: ""
+    }
+  },
+  emits: ["update:value", "change"],
+  setup(_, { emit: w }) {
+    const n = _, u = w, r = i({
+      get: () => n.value,
+      set: (t) => u("update:value", t)
+    }), g = (t = {}) => t.imageUrl || t.url || t.uid || "", x = (t = "") => {
+      const e = String(t).split("?")[0].split("#")[0], s = e.substring(e.lastIndexOf("/") + 1);
+      try {
+        return decodeURIComponent(s);
+      } catch (o) {
+        return s;
+      }
+    }, l = y(0), c = (t) => {
+      const e = (n.list || []).length;
+      return e ? Math.min(Math.max(t, 0), e - 1) : 0;
+    };
+    U(
+      () => n.value,
+      (t) => {
+        t && (l.value = c(n.active));
+      },
+      { immediate: !0 }
+    );
+    const v = i(() => (n.list || [])[l.value] || {}), d = i(() => g(v.value)), h = i(
+      () => n.title || v.value.name || x(d.value) || window.$l("预览")
+    ), p = (t) => {
+      const e = c(l.value + t);
+      e !== l.value && (l.value = e, u("change", e));
+    }, C = () => {
+      r.value = !1;
+    };
+    return (t, e) => {
+      const s = b("s-modal");
+      return k(), I(s, {
+        value: r.value,
+        "onUpdate:value": e[2] || (e[2] = (o) => r.value = o),
+        title: h.value,
+        width: "800px",
+        onHandCancel: C
+      }, {
+        default: S(() => [
+          a("div", N, [
+            a("div", {
+              class: "prev",
+              onClick: e[0] || (e[0] = (o) => p(-1))
+            }, [
+              m(f(B))
+            ]),
+            a("div", O, [
+              a("img", {
+                alt: "preview",
+                class: "view",
+                src: d.value
+              }, null, 8, M)
+            ]),
+            a("div", {
+              class: "next",
+              onClick: e[1] || (e[1] = (o) => p(1))
+            }, [
+              m(f(F))
+            ])
+          ])
+        ]),
+        _: 1
+      }, 8, ["value", "title"]);
+    };
+  }
+}, A = /* @__PURE__ */ $(P, [["__scopeId", "data-v-58b32905"]]);
+export {
+  A as default
+};

+ 313 - 160
lib/js/SFileUpload.js

@@ -1,11 +1,34 @@
-import { computed as M, ref as c, watch as z, resolveComponent as L, openBlock as r, createElementBlock as f, createElementVNode as i, toDisplayString as P, createCommentVNode as h, createVNode as v, unref as u, normalizeStyle as R, withCtx as S, withDirectives as K, createBlock as x, vShow as j } from "vue";
-import { d as H } from "./vuedraggable.js";
-import { b as q, d as G } from "./upload.js";
-import { n as J, ak as Q, al as W, am as X, an as Y, $ as Z, a0 as ee } from "./index2.js";
-const le = { class: "s-file-upload-common" }, te = {
+var J = (d, _, m) => new Promise((i, D) => {
+  var b = (r) => {
+    try {
+      y(m.next(r));
+    } catch (k) {
+      D(k);
+    }
+  }, c = (r) => {
+    try {
+      y(m.throw(r));
+    } catch (k) {
+      D(k);
+    }
+  }, y = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(b, c);
+  y((m = m.apply(d, _)).next());
+});
+import { computed as U, ref as A, watch as pe, openBlock as o, createElementBlock as g, normalizeClass as x, createElementVNode as w, toDisplayString as I, createCommentVNode as u, createVNode as j, unref as v, normalizeStyle as me, withCtx as Q, Fragment as Y, createBlock as p, resolveDynamicComponent as ee, withDirectives as ge, withModifiers as C, vShow as we } from "vue";
+import { d as he } from "./vuedraggable.js";
+import ye from "./SFilePreview.js";
+import { b as be, d as ke } from "./upload.js";
+import { n as Ce, ak as $e, al as le, am as te, an as ae, ao as ne, ap as E, aq as B, ar as h, as as Fe, at as L, au as M, av as oe, aw as V, ax as R, ay as Oe, az as Se } from "./index2.js";
+const Ue = {
   key: 0,
   class: "head"
-}, ae = { class: "label" }, ne = ["onMouseover", "onMouseleave"], ie = ["src"], oe = { class: "tool-wrap" }, se = { class: "left" }, ue = { class: "right move" }, de = { class: "plus-wrap" }, ce = ["accept", "disabled"], re = { class: "preview-content" }, ve = ["src"], me = {
+}, xe = { class: "label" }, Ie = ["onMouseover", "onMouseleave"], Ee = ["src", "alt"], Be = {
+  key: 1,
+  class: "file-thumb"
+}, Me = { class: "file-thumb-ext" }, De = { class: "tool-wrap" }, Te = { class: "left" }, Ae = { class: "right move" }, Le = { class: "file-row-ext" }, Re = ["title"], _e = { class: "file-row-actions" }, ze = {
+  key: 0,
+  class: "file-add-text"
+}, Pe = ["accept", "disabled"], Ne = {
   __name: "SFileUpload",
   props: {
     /**
@@ -32,6 +55,14 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !1
     },
+    /**
+     * 详情模式:只读展示,不显示新增入口、不可删除拖拽,仅保留预览与下载
+     * @detailMode
+     */
+    detailMode: {
+      type: Boolean,
+      default: !1
+    },
     /**
      * 是否显示新增(isAdd=false 等价 PictureUpload 的 ishiddenAdd=true:隐藏添加框且不可删除/拖拽)
      * @isAdd
@@ -48,6 +79,38 @@ const le = { class: "s-file-upload-common" }, te = {
       type: String,
       default: "image/*"
     },
+    /**
+     * 展示形态:card 卡片(图片显示原图,其他类型显示文件类型);list 列表(文件类型 + 文件名 + 操作按钮)
+     * @listType
+     */
+    listType: {
+      type: String,
+      default: "card"
+    },
+    /**
+     * 是否显示预览按钮
+     * @showPreview
+     */
+    showPreview: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示下载按钮
+     * @showDownload
+     */
+    showDownload: {
+      type: Boolean,
+      default: !0
+    },
+    /**
+     * 是否显示删除按钮(仍需 isAdd 且非只读)
+     * @showRemove
+     */
+    showRemove: {
+      type: Boolean,
+      default: !0
+    },
     // 最多可上传数量(同 PictureUpload 的 maxSize)
     maxFileCount: {
       type: Number,
@@ -88,184 +151,274 @@ const le = { class: "s-file-upload-common" }, te = {
       type: Boolean,
       default: !0
     },
-    // 兼容保留( PictureUpload 无此概念,仅声明)
-    listType: {
-      type: String,
-      default: "picture-card"
-    },
+    // 已废弃:由 showRemove 取代,仅保留声明避免外部传参告警
     showRemoveIcon: {
       type: Boolean,
       default: !1
     }
   },
-  emits: ["change", "handChange", "dragChange"],
-  setup(o, { emit: B }) {
-    const w = B, s = o, m = M(() => s.readonly), $ = () => s.path || s.businessTableName, a = c([]), p = c(!1), y = c(""), C = c(""), d = c(0);
-    z(
-      () => s.list,
-      (l) => {
-        a.value = l || [];
+  emits: ["change", "handChange", "dragChange", "download"],
+  setup(d, { emit: _ }) {
+    const m = _, i = d, D = 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 = {
+      pdf: Oe,
+      doc: R,
+      docx: R,
+      wps: R,
+      rtf: R,
+      xls: V,
+      xlsx: V,
+      csv: V,
+      ppt: oe,
+      pptx: oe,
+      zip: M,
+      rar: M,
+      "7z": M,
+      gz: M,
+      tar: M,
+      txt: L,
+      log: L,
+      json: L,
+      xml: L,
+      md: Fe,
+      png: h,
+      jpg: h,
+      jpeg: h,
+      gif: h,
+      webp: h,
+      bmp: h,
+      svg: h,
+      ico: h,
+      mp4: B,
+      mov: B,
+      avi: B,
+      mkv: B,
+      webm: B,
+      mp3: E,
+      wav: E,
+      flac: E,
+      aac: E,
+      m4a: E
+    }, $ = (e = {}) => e.imageUrl || e.url || e.uid || "", K = (e = "") => {
+      const t = String(e).split("?")[0].split("#")[0], l = t.substring(t.lastIndexOf("/") + 1);
+      try {
+        return decodeURIComponent(l);
+      } catch (a) {
+        return l;
+      }
+    }, F = (e = {}) => e.name || K($(e)) || window.$l("未命名文件"), T = (e = {}) => {
+      const t = F(e), l = t.lastIndexOf(".");
+      return l > -1 ? t.slice(l + 1).toLowerCase() : "";
+    }, q = (e = {}) => {
+      const t = e.type || e.mimeType || "";
+      return t ? String(t).indexOf("image/") === 0 : ie.includes(T(e));
+    }, G = (e = {}) => se[T(e)] || Se, s = A([]), z = A(!1), H = A(0);
+    pe(
+      () => i.list,
+      (e) => {
+        s.value = e || [];
       },
       { immediate: !0, deep: !0 }
     );
-    const b = () => {
-      w("change", a.value), w("handChange", a.value);
-    }, F = (l) => {
-    }, A = (l) => {
-      a.value && a.value.length > 1 && a.value.forEach((e, n) => {
-        e.sort = n;
-      }), w("dragChange", a.value), b();
-    }, E = () => {
-      g.value.click();
-    }, g = c(null), N = (l) => {
-      const e = l.target.files;
-      if (e && e.length && a.value.length + e.length > s.maxFileCount) {
-        window.$message.warning(window.$l("上传图片,最多可上传") + s.maxFileCount + window.$l("张"));
+    const P = () => {
+      m("change", s.value), m("handChange", s.value);
+    }, de = (e) => {
+    }, ue = (e) => {
+      s.value && s.value.length > 1 && s.value.forEach((t, l) => {
+        t.sort = l;
+      }), m("dragChange", s.value), P();
+    }, ce = () => {
+      O.value && O.value.click();
+    }, O = A(null), re = (e) => {
+      const t = e.target.files;
+      if (t && t.length && s.value.length + t.length > i.maxFileCount) {
+        window.$message.warning(
+          window.$l("上传图片,最多可上传") + i.maxFileCount + window.$l("张")
+        );
         return;
       }
-      if (e && e.length) {
-        for (let n = 0; n < e.length; n++)
-          if (e[n].size > s.fileSize * 1024) {
-            window.$message.warning(
-              `${window.$l("上传图片大小不能大于")}${s.fileSize}KB`
-            );
+      if (t && t.length) {
+        for (let a = 0; a < t.length; a++)
+          if (t[a].size > i.fileSize * 1024) {
+            window.$message.warning(`${window.$l("上传图片大小不能大于")}${i.fileSize}KB`);
             return;
           }
       }
-      q($(), e).then((n) => {
-        if (n && n.length)
-          for (let t = 0; t < n.length; t++)
-            a.value.push({
-              sort: t,
-              imageUrl: n[t].imageUrl,
-              uid: n[t].imageUrl,
-              url: n[t].imageUrl
+      const l = Array.from(t || []);
+      be(k(), t).then((a) => {
+        if (a && a.length)
+          for (let n = 0; n < a.length; n++)
+            s.value.push({
+              sort: n,
+              name: l[n] && l[n].name || K(a[n].imageUrl),
+              imageUrl: a[n].imageUrl,
+              uid: a[n].imageUrl,
+              url: a[n].imageUrl
             });
-        b();
+        P();
       }).finally(() => {
-        g.value && (g.value.value = "");
+        O.value && (O.value.value = "");
       });
-    }, O = (l) => {
-      l.showTool = !0;
-    }, T = (l) => {
-      l.showTool = !1;
-    }, V = (l, e) => {
-      a.value.splice(l, 1), G($(), e.imageUrl || e.uid), b();
-    }, D = (l = {}) => {
-      d.value = a.value.findIndex((e) => e === l), p.value = !0, C.value = l.name || window.$l("预览"), y.value = l.imageUrl || l.url;
-    }, I = () => {
-      p.value = !1;
-    }, _ = (l) => {
-      d.value = d.value + l < 0 ? 0 : d.value + l > a.value.length - 1 ? a.value.length - 1 : d.value + l;
-      const e = a.value[d.value];
-      e && (C.value = e.name || window.$l("预览"), y.value = e.imageUrl || e.url);
-    };
-    return (l, e) => {
-      const n = L("s-modal");
-      return r(), f("div", le, [
-        o.label ? (r(), f("div", te, [
-          i("div", ae, P(o.label), 1)
-        ])) : h("", !0),
-        v(u(H), {
-          modelValue: a.value,
-          "onUpdate:modelValue": e[0] || (e[0] = (t) => a.value = t),
-          onStart: F,
-          onEnd: A,
-          handle: ".move",
-          class: "img-list-wrap",
-          style: R(o.picStyle),
-          disabled: m.value,
-          "item-key": "uid"
-        }, {
-          item: S(({ element: t, index: U }) => [
-            (r(), f("div", {
-              class: "img-item-wrap",
-              key: t.uid || U,
-              onMouseover: (k) => O(t),
-              onMouseleave: (k) => T(t)
-            }, [
-              i("img", {
+    }, fe = (e) => {
+      c.value && (e.showTool = !0);
+    }, ve = (e) => {
+      c.value && (e.showTool = !1);
+    }, W = (e, t) => {
+      s.value.splice(e, 1), ke(k(), t.imageUrl || t.uid), P();
+    }, X = (e = {}) => {
+      const t = $(e);
+      if (!t) return;
+      if (!q(e)) {
+        window.open(t, "_blank", "noopener");
+        return;
+      }
+      let l = s.value.findIndex((a) => a === e);
+      l < 0 && (l = s.value.findIndex((a) => $(a) === t)), H.value = l > -1 ? l : 0, z.value = !0;
+    }, Z = (...t) => J(this, [...t], function* (e = {}) {
+      const l = $(e);
+      if (!l) return;
+      m("download", e);
+      const a = F(e), n = (S, N) => {
+        const f = document.createElement("a");
+        f.href = S, f.download = a, N || (f.target = "_blank", f.rel = "noopener"), document.body.appendChild(f), f.click(), document.body.removeChild(f);
+      };
+      try {
+        const S = yield fetch(l);
+        if (!S.ok) throw new Error("fetch failed");
+        const N = yield S.blob(), f = URL.createObjectURL(N);
+        n(f, !0), setTimeout(() => URL.revokeObjectURL(f), 1e3);
+      } catch (S) {
+        n(l, !1);
+      }
+    });
+    return (e, t) => (o(), g("div", {
+      class: x(["s-file-upload-common", [`is-${d.listType}`, { "is-readonly": b.value }]])
+    }, [
+      d.label ? (o(), g("div", Ue, [
+        w("div", xe, I(d.label), 1)
+      ])) : u("", !0),
+      j(v(he), {
+        modelValue: s.value,
+        "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
+        onStart: de,
+        onEnd: ue,
+        handle: ".move",
+        class: x(c.value ? "img-list-wrap" : "file-list-wrap"),
+        style: me(d.picStyle),
+        disabled: !y.value,
+        "item-key": "uid"
+      }, {
+        item: Q(({ element: l, index: a }) => [
+          (o(), g("div", {
+            key: l.uid || a,
+            class: x(c.value ? "img-item-wrap" : "file-row"),
+            onMouseover: (n) => fe(l),
+            onMouseleave: (n) => ve(l)
+          }, [
+            c.value ? (o(), g(Y, { key: 0 }, [
+              q(l) ? (o(), g("img", {
+                key: 0,
                 class: "upload-img-wrap",
-                src: t.imageUrl || t.url
-              }, null, 8, ie),
-              K(i("div", oe, [
-                i("div", se, [
-                  v(u(W), {
-                    class: "tool-icon-wrap",
-                    style: { "margin-right": "8px" },
-                    onClick: (k) => D(t)
-                  }, null, 8, ["onClick"]),
-                  o.isAdd && !m.value ? (r(), x(u(X), {
+                src: $(l),
+                alt: F(l)
+              }, null, 8, Ee)) : (o(), g("div", Be, [
+                (o(), p(ee(G(l)), { class: "file-thumb-icon" })),
+                w("span", Me, I(T(l) || "FILE"), 1)
+              ])),
+              ge(w("div", De, [
+                w("div", Te, [
+                  d.showPreview ? (o(), p(v(le), {
                     key: 0,
                     class: "tool-icon-wrap",
-                    onClick: (k) => V(U, t)
-                  }, null, 8, ["onClick"])) : h("", !0)
+                    title: e.$l("预览"),
+                    onClick: C((n) => X(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0),
+                  d.showDownload ? (o(), p(v(te), {
+                    key: 1,
+                    class: "tool-icon-wrap",
+                    title: e.$l("下载"),
+                    onClick: C((n) => Z(l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0),
+                  r.value ? (o(), p(v(ae), {
+                    key: 2,
+                    class: "tool-icon-wrap",
+                    title: e.$l("删除"),
+                    onClick: C((n) => W(a, l), ["stop"])
+                  }, null, 8, ["title", "onClick"])) : u("", !0)
                 ]),
-                i("div", ue, [
-                  o.isAdd && !m.value && !o.noDrag ? (r(), x(u(Y), { key: 0 })) : h("", !0)
+                w("div", Ae, [
+                  y.value ? (o(), p(v(ne), { key: 0 })) : u("", !0)
                 ])
               ], 512), [
-                [j, t.showTool]
-              ])
-            ], 40, ne))
-          ]),
-          footer: S(() => [
-            a.value.length < o.maxFileCount && o.isAdd ? (r(), f("div", {
-              key: 0,
-              class: "img-add-wrap",
-              onClick: E
-            }, [
-              i("div", de, [
-                v(u(Q), { class: "plus-icon" }),
-                i("input", {
-                  accept: o.accept || "image/*",
-                  multiple: !0,
-                  type: "file",
-                  disabled: m.value,
-                  ref_key: "fileInput",
-                  ref: g,
-                  style: { display: "none" },
-                  onChange: N
-                }, null, 40, ce)
+                [we, l.showTool]
               ])
-            ])) : h("", !0)
-          ]),
-          _: 1
-        }, 8, ["modelValue", "style", "disabled"]),
-        v(n, {
-          value: p.value,
-          "onUpdate:value": e[3] || (e[3] = (t) => p.value = t),
-          title: C.value,
-          onHandCancel: I,
-          width: "800px"
-        }, {
-          default: S(() => [
-            i("div", re, [
-              i("div", {
-                class: "prev",
-                onClick: e[1] || (e[1] = (t) => _(-1))
-              }, [
-                v(u(Z))
-              ]),
-              i("img", {
-                alt: "example",
-                class: "view",
-                src: y.value
-              }, null, 8, ve),
-              i("div", {
-                class: "next",
-                onClick: e[2] || (e[2] = (t) => _(1))
-              }, [
-                v(u(ee))
+            ], 64)) : (o(), g(Y, { key: 1 }, [
+              (o(), p(ee(G(l)), { class: "file-row-icon" })),
+              w("div", Le, I(T(l) || "FILE"), 1),
+              w("div", {
+                class: "file-row-name",
+                title: F(l)
+              }, I(F(l)), 9, Re),
+              w("div", _e, [
+                d.showPreview ? (o(), p(v(le), {
+                  key: 0,
+                  class: "file-action",
+                  title: e.$l("预览"),
+                  onClick: C((n) => X(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                d.showDownload ? (o(), p(v(te), {
+                  key: 1,
+                  class: "file-action",
+                  title: e.$l("下载"),
+                  onClick: C((n) => Z(l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                r.value ? (o(), p(v(ae), {
+                  key: 2,
+                  class: "file-action",
+                  title: e.$l("删除"),
+                  onClick: C((n) => W(a, l), ["stop"])
+                }, null, 8, ["title", "onClick"])) : u("", !0),
+                y.value ? (o(), p(v(ne), {
+                  key: 3,
+                  class: "file-action move",
+                  title: e.$l("拖动排序")
+                }, null, 8, ["title"])) : u("", !0)
               ])
-            ])
-          ]),
-          _: 1
-        }, 8, ["value", "title"])
-      ]);
-    };
+            ], 64))
+          ], 42, Ie))
+        ]),
+        footer: Q(() => [
+          s.value.length < d.maxFileCount && d.isAdd && !b.value ? (o(), g("div", {
+            key: 0,
+            class: x(c.value ? "img-add-wrap" : "file-add-wrap"),
+            onClick: ce
+          }, [
+            j(v($e), {
+              class: x(c.value ? "plus-icon" : "plus-icon plus-icon-small")
+            }, null, 8, ["class"]),
+            c.value ? u("", !0) : (o(), g("span", ze, I(e.$l("上传文件")), 1)),
+            w("input", {
+              accept: d.accept || "image/*",
+              multiple: !0,
+              type: "file",
+              disabled: D.value,
+              ref_key: "fileInput",
+              ref: O,
+              style: { display: "none" },
+              onChange: re
+            }, null, 40, Pe)
+          ], 2)) : u("", !0)
+        ]),
+        _: 1
+      }, 8, ["modelValue", "class", "style", "disabled"]),
+      j(ye, {
+        value: z.value,
+        "onUpdate:value": t[1] || (t[1] = (l) => z.value = l),
+        list: s.value,
+        active: H.value
+      }, null, 8, ["value", "list", "active"])
+    ], 2));
   }
-}, we = /* @__PURE__ */ J(me, [["__scopeId", "data-v-934171ad"]]);
+}, We = /* @__PURE__ */ Ce(Ne, [["__scopeId", "data-v-e12fd3b6"]]);
 export {
-  we as default
+  We as default
 };

+ 45 - 38
lib/js/SForm.js

@@ -55,13 +55,13 @@ const A = { class: "s-form" }, j = {
       "treeCheckable",
       "showOnlyOrganization",
       "isDataScopeFilter"
-    ]), y = (e) => typeof e == "boolean" ? e : e === "" || e === null || e === void 0 ? e === "" ? !0 : e : typeof e == "string" ? !(e === "false" || e === "0") : !!e, b = f(() => {
+    ]), y = (e) => typeof e == "boolean" ? e : e === "" || e === null || e === void 0 ? e === "" ? !0 : e : typeof e == "string" ? !(e === "false" || e === "0") : !!e, F = f(() => {
       const e = {};
       return Object.keys(i || {}).forEach((t) => {
         const l = i[t];
         e[t] = h.has(t) ? y(l) : l;
       }), e;
-    }), F = f(() => {
+    }), b = f(() => {
       const e = o.layout, t = (o == null ? void 0 : o.labelWidth) + "";
       return e === "horizontal" ? {
         style: {
@@ -71,51 +71,58 @@ const A = { class: "s-form" }, j = {
     });
     return v(() => {
       o.column > 4 && console.warn(`当前设置表单列column【${o.column}】最多显示为4列,已默认为最多4列`);
-    }), m({ validate: (e, t) => {
-      const l = typeof e == "function" ? e : typeof t == "function" ? t : null, r = typeof e == "function" ? void 0 : e;
-      return new Promise((s, a) => {
-        (r && r.length ? n.value.validateFields(r) : n.value.validate()).then((c) => {
-          l && l(!0), s(c);
-        }).catch((c) => {
-          if (l) {
-            l(!1, c), s(void 0);
-            return;
-          }
-          a(c);
+    }), m({
+      validate: (e, t) => {
+        const l = typeof e == "function" ? e : typeof t == "function" ? t : null, r = typeof e == "function" ? void 0 : e;
+        return new Promise((s, a) => {
+          (r && r.length ? n.value.validateFields(r) : n.value.validate()).then((c) => {
+            l && l(!0), s(c);
+          }).catch((c) => {
+            if (l) {
+              l(!1, c), s(void 0);
+              return;
+            }
+            a(c);
+          });
         });
-      });
-    }, validateField: (e, t) => {
-      const l = typeof t == "function" ? t : null;
-      return new Promise((r, s) => {
-        if (!n.value) {
-          r(void 0);
-          return;
-        }
-        n.value.validateFields(e).then((a) => {
-          l && l(!0), r(a);
-        }).catch((a) => {
-          if (l) {
-            l(!1, a), r(void 0);
+      },
+      validateField: (e, t) => {
+        const l = typeof t == "function" ? t : null;
+        return new Promise((r, s) => {
+          if (!n.value) {
+            r(void 0);
             return;
           }
-          s(a);
+          n.value.validateFields(e).then((a) => {
+            l && l(!0), r(a);
+          }).catch((a) => {
+            if (l) {
+              l(!1, a), r(void 0);
+              return;
+            }
+            s(a);
+          });
         });
-      });
-    }, clearValidate: (e) => {
-      n.value && n.value.clearValidate(e);
-    }, resetFields: (e) => {
-      n.value && n.value.resetFields(e);
-    }, getFieldsValue: (e) => n.value ? n.value.getFieldsValue(e) : {}, setFieldsValue: (e) => {
-      n.value && n.value.setFieldsValue(e);
-    } }), (e, t) => {
+      },
+      clearValidate: (e) => {
+        n.value && n.value.clearValidate(e);
+      },
+      resetFields: (e) => {
+        n.value && n.value.resetFields(e);
+      },
+      getFieldsValue: (e) => n.value ? n.value.getFieldsValue(e) : {},
+      setFieldsValue: (e) => {
+        n.value && n.value.setFieldsValue(e);
+      }
+    }), (e, t) => {
       const l = B;
       return S(), w("div", A, [
         V(l, _({
-          labelCol: F.value.labelCol,
+          labelCol: b.value.labelCol,
           model: u.model,
           rules: u.rules,
           layout: u.layout
-        }, b.value, {
+        }, F.value, {
           ref_key: "form",
           ref: n,
           style: {
@@ -132,7 +139,7 @@ const A = { class: "s-form" }, j = {
       ]);
     };
   }
-}, M = /* @__PURE__ */ O(j, [["__scopeId", "data-v-fbbb64d1"]]);
+}, M = /* @__PURE__ */ O(j, [["__scopeId", "data-v-2925f82d"]]);
 export {
   M as default
 };

+ 1 - 1
lib/js/SFormBasicLayout.js

@@ -1,5 +1,5 @@
 import { ref as i, computed as Q, watch as U, onMounted as W, resolveComponent as _, openBlock as a, createElementBlock as c, createVNode as u, withCtx as o, createElementVNode as r, toDisplayString as y, createBlock as f, createTextVNode as k, createCommentVNode as l, renderSlot as g, Fragment as $, renderList as R, normalizeClass as X, normalizeStyle as Y } from "vue";
-import { n as Z, ao as ee, y as te, B as ae } from "./index2.js";
+import { n as Z, aA as ee, y as te, B as ae } from "./index2.js";
 import { _ as ne, S as oe } from "./index11.js";
 import { T as le, _ as se } from "./index12.js";
 const ie = { class: "title" }, ue = { style: { "margin-right": "10px" } }, ce = { class: "btns" }, re = ["id"], fe = {

+ 1 - 1
lib/js/SFormLayout.js

@@ -1,5 +1,5 @@
 import { useSlots as ie, ref as a, computed as z, watch as I, nextTick as ue, onMounted as ce, onUnmounted as re, resolveComponent as h, openBlock as l, createElementBlock as r, createVNode as d, withCtx as f, createElementVNode as i, toDisplayString as p, createBlock as m, createTextVNode as g, createCommentVNode as u, renderSlot as w, Fragment as j, renderList as M, normalizeStyle as _, normalizeClass as de } from "vue";
-import { n as fe, ao as me, y as ye, B as ve } from "./index2.js";
+import { n as fe, aA as me, y as ye, B as ve } from "./index2.js";
 import { _ as he, S as pe } from "./index11.js";
 import { T as be, _ as ke } from "./index12.js";
 const ge = { class: "title" }, we = { style: { "margin-right": "10px" } }, _e = { class: "btns" }, Se = { class: "form-layout-main-content" }, $e = {

+ 8 - 8
lib/js/SIconModal.js

@@ -1,6 +1,6 @@
-import { ref as n, computed as v, watch as p, resolveComponent as B, resolveDirective as D, openBlock as o, createBlock as m, withCtx as N, createElementVNode as c, createVNode as T, createElementBlock as i, Fragment as S, renderList as V, withDirectives as E, resolveDynamicComponent as H, normalizeClass as M, toDisplayString as _, createCommentVNode as U } from "vue";
+import { ref as n, computed as v, watch as m, resolveComponent as I, resolveDirective as D, openBlock as o, createBlock as p, withCtx as N, createElementVNode as c, createVNode as T, createElementBlock as i, Fragment as S, renderList as V, withDirectives as E, resolveDynamicComponent as H, normalizeClass as M, toDisplayString as _, createCommentVNode as U } from "vue";
 import { g as x, f as z } from "./icon-groups.js";
-import { n as F, ap as G } from "./index2.js";
+import { n as F, aB as G } from "./index2.js";
 const L = { class: "icon-body" }, j = { class: "icon-list" }, q = ["onClick"], A = { class: "name" }, J = {
   key: 0,
   class: "icon-empty"
@@ -19,7 +19,7 @@ const L = { class: "icon-body" }, j = { class: "icon-list" }, q = ["onClick"], A
   emits: ["update:value"],
   setup(d, { emit: h }) {
     const f = d, w = h, a = n(!1), b = v(() => x().slice(1)), r = n("outlined"), l = n(""), u = v(() => z(r.value, l.value));
-    p(
+    m(
       () => f.value,
       (e) => {
         a.value = e;
@@ -30,15 +30,15 @@ const L = { class: "icon-body" }, j = { class: "icon-list" }, q = ["onClick"], A
     }, C = (e) => {
       r.value = e;
     };
-    p(a, (e) => {
+    m(a, (e) => {
       e || (l.value = "");
     });
     const g = (e) => {
       window.$message.success(`<${e}/>`);
     };
     return (e, s) => {
-      const k = G, $ = B("s-modal"), I = D("clipboard");
-      return o(), m($, {
+      const k = G, $ = I("s-modal"), B = D("clipboard");
+      return o(), p($, {
         value: a.value,
         "onUpdate:value": s[1] || (s[1] = (t) => a.value = t),
         keyboard: "",
@@ -63,12 +63,12 @@ const L = { class: "icon-body" }, j = { class: "icon-list" }, q = ["onClick"], A
                 class: "item-icon",
                 onClick: (O) => g(t)
               }, [
-                (o(), m(H(t), {
+                (o(), p(H(t), {
                   class: M(t)
                 }, null, 8, ["class"])),
                 c("div", A, _(t), 1)
               ], 8, q)), [
-                [I, `<${t}/>`]
+                [B, `<${t}/>`]
               ])), 128)),
               u.value.length ? U("", !0) : (o(), i("div", J, _(e.$l("暂无数据")), 1))
             ])

+ 1 - 1
lib/js/SIconSelectPopover.js

@@ -1,6 +1,6 @@
 import { ref as f, computed as u, watch as z, resolveComponent as D, openBlock as a, createElementBlock as c, createVNode as r, withCtx as i, normalizeStyle as _, normalizeClass as h, createBlock as y, resolveDynamicComponent as g, createCommentVNode as w, createElementVNode as p, Fragment as E, renderList as L, toDisplayString as k } from "vue";
 import { f as P } from "./icon-groups.js";
-import { n as U, I as W, ap as M } from "./index2.js";
+import { n as U, I as W, aB as M } from "./index2.js";
 import { _ as j } from "./index6.js";
 const q = { class: "s-icon-select-common" }, A = { class: "icon-list" }, G = ["onClick"], H = ["title"], J = {
   key: 0,

+ 32 - 32
lib/js/SImportModal.js

@@ -10,18 +10,18 @@ var Be = (e, t, o) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writ
   return e;
 };
 import { defineComponent as ce, ref as V, onMounted as xe, onBeforeUnmount as Ve, createVNode as f, shallowRef as ge, watch as Ae, computed as ne, Transition as lt, withDirectives as he, vShow as we, watchEffect as at, triggerRef as it, TransitionGroup as rt, toRef as st, resolveComponent as ct, openBlock as Y, createBlock as oe, withCtx as K, createElementVNode as L, toDisplayString as E, createTextVNode as ee, createCommentVNode as ie, createElementBlock as $e, Fragment as Me, renderList as dt } from "vue";
-import { ax as ut, av as pt, aM as ft, D as mt, _ as A, cx as vt, i as Le, bb as I, be as fe, e as ae, bc as J, bd as se, l as Ce, d as R, u as Ee, a$ as gt, am as ht, cy as wt, al as yt, y as $t, aZ as bt, a_ as It, cz as St, cA as Ct, a1 as Ne, cB as xt, E as _t, B as Ue, b0 as Ft, cC as We, t as Ge, cl as Ke, c2 as Rt, g as Dt, m as Pt, aY as Ot, r as Tt, U as Ut, Y as At, L as Lt, h as Fe, aU as Et, aW as jt, c as me, bD as Bt, n as Mt, a6 as Nt, I as zt } from "./index2.js";
+import { aI as ut, aG as pt, aX as ft, D as mt, _ as A, cJ as vt, i as Le, bm as I, bp as fe, e as ae, bn as J, bo as se, l as Ce, d as R, u as Ee, ba as gt, an as ht, am as wt, al as yt, y as $t, b8 as bt, b9 as It, cK as St, cL as Ct, a1 as Ne, cM as xt, E as _t, B as Ue, bb as Ft, cN as Ge, t as We, cw as Ke, cd as Rt, g as Dt, m as Pt, b7 as Ot, r as Tt, U as Ut, Y as At, L as Lt, h as Fe, b3 as Et, b5 as jt, c as me, bO as Bt, n as Mt, a6 as Nt, I as zt } from "./index2.js";
 import { P as Ht, _ as Xt, S as kt } from "./index11.js";
 import { b as qt } from "./index5.js";
 import { _ as Vt } from "./index14.js";
-function Wt(e, t, o, n) {
+function Gt(e, t, o, n) {
   for (var a = -1, i = e == null ? 0 : e.length; ++a < i; ) {
     var l = e[a];
     t(n, l, o(l), e);
   }
   return n;
 }
-function Gt(e) {
+function Wt(e) {
   return function(t, o, n) {
     for (var a = -1, i = Object(t), l = n(t), c = l.length; c--; ) {
       var w = l[++a];
@@ -31,7 +31,7 @@ function Gt(e) {
     return t;
   };
 }
-var Kt = Gt();
+var Kt = Wt();
 function Jt(e, t) {
   return e && Kt(e, t, ut);
 }
@@ -54,7 +54,7 @@ function Qt(e, t, o, n) {
 }
 function en(e, t) {
   return function(o, n) {
-    var a = ft(o) ? Wt : Qt, i = t ? t() : {};
+    var a = ft(o) ? Gt : Qt, i = t ? t() : {};
     return a(o, e, qt(n), i);
   };
 }
@@ -781,12 +781,12 @@ const hn = () => ({
         callback: () => v(s),
         prefixCls: _,
         title: O.downloadFile
-      }) : null, W = j !== "picture-card" && f("span", {
+      }) : null, G = j !== "picture-card" && f("span", {
         key: "download-delete",
         class: [`${_}-list-item-actions`, {
           picture: j === "picture"
         }]
-      }, [z, Z]), X = `${_}-list-item-name`, G = s.url ? [f("a", A(A({
+      }, [z, Z]), X = `${_}-list-item-name`, W = s.url ? [f("a", A(A({
         key: "view",
         target: "_blank",
         rel: "noopener noreferrer",
@@ -795,12 +795,12 @@ const hn = () => ({
       }, M), {}, {
         href: s.url,
         onClick: (Q) => m(s, Q)
-      }), [s.name]), W] : [f("span", {
+      }), [s.name]), G] : [f("span", {
         key: "view",
         class: X,
         onClick: (Q) => m(s, Q),
         title: s.name
-      }, [s.name]), W], te = {
+      }, [s.name]), G], te = {
         pointerEvents: "none",
         opacity: 0.5
       }, re = T ? f("a", {
@@ -816,7 +816,7 @@ const hn = () => ({
         class: `${_}-list-item-actions`
       }, [re, c.value === "done" && z, Z]), de = f("div", {
         class: d
-      }, [r, G, q, i.value && f(lt, F.value, {
+      }, [r, W, q, i.value && f(lt, F.value, {
         default: () => [he(f("div", {
           class: `${_}-list-item-progress`
         }, ["percent" in s ? f(Ht, A(A({}, N), {}, {
@@ -1086,7 +1086,7 @@ const hn = () => ({
   } = e, l = `${t}-list-item`, c = `${l}-actions`, w = `${l}-action`, F = Math.round(a * i);
   return {
     [`${t}-wrapper`]: {
-      [`${t}-list`]: R(R({}, We()), {
+      [`${t}-list`]: R(R({}, Ge()), {
         lineHeight: e.lineHeight,
         [l]: {
           position: "relative",
@@ -1099,7 +1099,7 @@ const hn = () => ({
           "&:hover": {
             backgroundColor: e.controlItemBgHover
           },
-          [`${l}-name`]: R(R({}, Ge), {
+          [`${l}-name`]: R(R({}, We), {
             padding: `0 ${e.paddingXS}px`,
             lineHeight: i,
             flex: "auto",
@@ -1235,7 +1235,7 @@ const hn = () => ({
           "&:hover": {
             background: "transparent"
           },
-          [`${l}-thumbnail`]: R(R({}, Ge), {
+          [`${l}-thumbnail`]: R(R({}, We), {
             width: n,
             height: n,
             lineHeight: `${n + e.paddingSM}px`,
@@ -1288,7 +1288,7 @@ const hn = () => ({
     colorTextLightSolid: a
   } = e, i = `${t}-list`, l = `${i}-item`, c = e.uploadPicCardSize;
   return {
-    [`${t}-wrapper${t}-picture-card-wrapper`]: R(R({}, We()), {
+    [`${t}-wrapper${t}-picture-card-wrapper`]: R(R({}, Ge()), {
       display: "inline-block",
       width: "100%",
       [`${t}${t}-select`]: {
@@ -1643,13 +1643,13 @@ const ve = `__LIST_IGNORE_${Date.now()}__`, Se = ce({
         progress: M,
         itemRender: Z,
         iconRender: z,
-        showUploadList: W
+        showUploadList: G
       } = e, {
         showDownloadIcon: X,
-        showPreviewIcon: G,
+        showPreviewIcon: W,
         showRemoveIcon: te
-      } = typeof W == "boolean" ? {} : W;
-      return W ? f($n, {
+      } = typeof G == "boolean" ? {} : G;
+      return G ? f($n, {
         prefixCls: l.value,
         listType: e.listType,
         items: O.value,
@@ -1658,7 +1658,7 @@ const ve = `__LIST_IGNORE_${Date.now()}__`, Se = ce({
         onDownload: r,
         onRemove: U,
         showRemoveIcon: !_.value && te,
-        showPreviewIcon: G,
+        showPreviewIcon: W,
         showDownloadIcon: X,
         removeIcon: v,
         previewIcon: h,
@@ -1699,7 +1699,7 @@ const ve = `__LIST_IGNORE_${Date.now()}__`, Se = ce({
       if ($ === "drag") {
         const X = me(l.value, {
           [`${l.value}-drag`]: !0,
-          [`${l.value}-drag-uploading`]: O.value.some((G) => G.status === "uploading"),
+          [`${l.value}-drag-uploading`]: O.value.some((W) => W.status === "uploading"),
           [`${l.value}-drag-hover`]: s.value === "dragover",
           [`${l.value}-disabled`]: _.value,
           [`${l.value}-rtl`]: c.value === "rtl"
@@ -1726,7 +1726,7 @@ const ve = `__LIST_IGNORE_${Date.now()}__`, Se = ce({
         [`${l.value}-select-${h}`]: !0,
         [`${l.value}-disabled`]: _.value,
         [`${l.value}-rtl`]: c.value === "rtl"
-      }), z = Bt((v = o.default) === null || v === void 0 ? void 0 : v.call(o)), W = (X) => f("div", {
+      }), z = Bt((v = o.default) === null || v === void 0 ? void 0 : v.call(o)), G = (X) => f("div", {
         class: Z,
         style: X
       }, [f(He, A(A({}, d), {}, {
@@ -1734,9 +1734,9 @@ const ve = `__LIST_IGNORE_${Date.now()}__`, Se = ce({
       }), o)]);
       return F(h === "picture-card" ? f("span", A(A({}, n), {}, {
         class: me(`${l.value}-wrapper`, `${l.value}-picture-card-wrapper`, M, n.class, g.value)
-      }), [k(W, !!(z && z.length))]) : f("span", A(A({}, n), {}, {
+      }), [k(G, !!(z && z.length))]) : f("span", A(A({}, n), {}, {
         class: me(`${l.value}-wrapper`, M, n.class, g.value)
-      }), [W(z && z.length ? void 0 : {
+      }), [G(z && z.length ? void 0 : {
         display: "none"
       }), k()]));
     };
@@ -1784,7 +1784,7 @@ const Te = ce({
 }), Tn = { class: "header-steps" }, Un = { class: "import-main" }, An = { class: "upload" }, Ln = { class: "up_right" }, En = { class: "title" }, jn = { class: "tip" }, Bn = { class: "upload" }, Mn = { class: "up_right" }, Nn = { class: "title" }, zn = { class: "tip" }, Hn = { class: "extra-select-wrapper" }, Xn = { class: "import-main" }, kn = { class: "import-main" }, qn = {
   key: 0,
   class: "success"
-}, Vn = { class: "success-title" }, Wn = { class: "success-tip" }, Gn = {
+}, Vn = { class: "success-title" }, Gn = { class: "success-tip" }, Wn = {
   key: 1,
   class: "unsuccess"
 }, Kn = { class: "upload error-show" }, Jn = { class: "up_right" }, Yn = { class: "tip success-tip" }, Zn = { class: "tip error-tip" }, Qn = { class: "conTips" }, eo = /* @__PURE__ */ Object.assign({ name: "SImportModal" }, {
@@ -1842,8 +1842,8 @@ const Te = ce({
       dataIndex: d.id || "",
       key: d.id || ""
     })), U = ({ file: r, onSuccess: d, onError: M }) => {
-      var W;
-      const Z = (W = window.$utils) == null ? void 0 : W.http;
+      var G;
+      const Z = (G = window.$utils) == null ? void 0 : G.http;
       if (!Z) {
         window.$message.error(window.$l("未获取到请求工具,无法上传")), M && M(new Error("http not found"));
         return;
@@ -1856,7 +1856,7 @@ const Te = ce({
         headers: { "Content-Type": "multipart/form-data" }
       }).then((X) => {
         var re, q;
-        const G = b(X) || {}, te = (q = (re = G == null ? void 0 : G.name) != null ? re : G == null ? void 0 : G.fileName) != null ? q : "";
+        const W = b(X) || {}, te = (q = (re = W == null ? void 0 : W.name) != null ? re : W == null ? void 0 : W.fileName) != null ? q : "";
         if (!te) throw new Error(window.$l("上传返回文件名无效"));
         l.value = te, d && d(X);
       }).catch((X) => {
@@ -1943,7 +1943,7 @@ const Te = ce({
       s.value = !1, r && a("reload");
     };
     return t({ show: C, resetState: y }), (r, d) => {
-      const M = kt, Z = Xt, z = Ue, W = On, X = Nt, G = zt, te = Vt, re = ct("s-modal");
+      const M = kt, Z = Xt, z = Ue, G = On, X = Nt, W = zt, te = Vt, re = ct("s-modal");
       return Y(), oe(re, {
         value: s.value,
         "onUpdate:value": d[4] || (d[4] = (q) => s.value = q),
@@ -2024,7 +2024,7 @@ const Te = ce({
               L("div", Ln, [
                 L("p", En, E(r.$l("上传填好的数据表")), 1),
                 L("p", jn, E(r.$l("文件后缀名必须是xls或xlsx,文件大小不超过500KB,最多支持导入1000条数据")), 1),
-                f(W, {
+                f(G, {
                   "file-list": c.value,
                   "onUpdate:fileList": d[1] || (d[1] = (q) => c.value = q),
                   class: "upload-area",
@@ -2090,7 +2090,7 @@ const Te = ce({
                 (Y(!0), $e(Me, null, dt(D.value, (ue) => (Y(), $e(Me, {
                   key: ue.dataIndex
                 }, [
-                  q.dataIndex === ue.dataIndex ? (Y(), oe(G, {
+                  q.dataIndex === ue.dataIndex ? (Y(), oe(W, {
                     key: 0,
                     value: de[q.dataIndex],
                     "onUpdate:value": (ye) => de[q.dataIndex] = ye
@@ -2118,9 +2118,9 @@ const Te = ce({
           he(L("div", kn, [
             _.value.resultType ? ie("", !0) : (Y(), $e("div", qn, [
               L("p", Vn, E(r.$l("批量导入成功")), 1),
-              L("p", Wn, E(r.$l("您已成功导入")) + E(_.value.snum) + E(r.$l("条数据")), 1)
+              L("p", Gn, E(r.$l("您已成功导入")) + E(_.value.snum) + E(r.$l("条数据")), 1)
             ])),
-            _.value.resultType ? (Y(), $e("div", Gn, [
+            _.value.resultType ? (Y(), $e("div", Wn, [
               L("div", Kn, [
                 L("div", Jn, [
                   L("p", Yn, [

+ 6 - 6
lib/js/SListBasicLayout.js

@@ -1,5 +1,5 @@
 import { ref as l, watch as z, onMounted as Y, onActivated as Z, nextTick as w, resolveComponent as _, openBlock as o, createElementBlock as s, createVNode as f, withCtx as m, createElementVNode as r, renderSlot as a, createTextVNode as ee, toDisplayString as g, createBlock as L, createCommentVNode as i, withDirectives as te, vShow as ne, Fragment as oe } from "vue";
-import { n as le, ao as se, y as ae, B as ie } from "./index2.js";
+import { n as le, aA as se, y as ae, B as ie } from "./index2.js";
 const re = { class: "s-list-basic-layout-main" }, de = {
   key: 0,
   class: "s-list-basic-content"
@@ -53,8 +53,8 @@ const re = { class: "s-list-basic-layout-main" }, de = {
     }
   },
   emits: ["reset", "tableColCallback"],
-  setup(c, { expose: D, emit: M }) {
-    const y = c, C = M, T = l(null), A = l(null), F = l(null), d = l(null), u = l(!1), S = l(300), $ = l(!1), R = l(10), N = l(!1), p = l([]), x = l([]), b = l([]);
+  setup(c, { expose: A, emit: D }) {
+    const y = c, C = D, M = l(null), T = l(null), F = l(null), d = l(null), u = l(!1), S = l(300), $ = l(!1), R = l(10), N = l(!1), p = l([]), x = l([]), b = l([]);
     z(
       () => y.columns,
       () => B()
@@ -108,7 +108,7 @@ const re = { class: "s-list-basic-layout-main" }, de = {
       B();
     }), Z(() => {
       w(h);
-    }), D({
+    }), A({
       reload: E,
       table: d,
       spinning: $,
@@ -120,7 +120,7 @@ const re = { class: "s-list-basic-layout-main" }, de = {
       return o(), s("div", {
         class: "s-list-basic-layout",
         ref_key: "layoutRef",
-        ref: T
+        ref: M
       }, [
         f(X, { spinning: $.value }, {
           default: m(() => [
@@ -131,7 +131,7 @@ const re = { class: "s-list-basic-layout-main" }, de = {
                 r("div", {
                   class: "filter-wrap",
                   ref_key: "filtersRef",
-                  ref: A
+                  ref: T
                 }, [
                   e.$slots.filter ? (o(), s("div", ce, [
                     r("div", ue, [

+ 30 - 30
lib/js/SListCardLayout.js

@@ -14,8 +14,8 @@ var ie = ($, H, _) => new Promise((f, y) => {
   }, z = (v) => v.done ? f(v.value) : Promise.resolve(v.value).then(W, X);
   z((_ = _.apply($, H)).next());
 });
-import { ref as a, computed as re, watch as Ae, onMounted as De, onActivated as Ne, nextTick as Z, resolveComponent as I, resolveDirective as Le, openBlock as n, createElementBlock as s, createElementVNode as u, toDisplayString as h, Fragment as ue, renderList as ce, withDirectives as R, createBlock as O, withCtx as w, createTextVNode as M, resolveDynamicComponent as Be, createCommentVNode as r, vShow as x, renderSlot as d, normalizeStyle as de, createVNode as k, h as Me } from "vue";
-import { n as Pe, B as Te, y as Fe, ao as Ee, ah as Ue, cO as Ve } from "./index2.js";
+import { ref as a, computed as re, watch as Ae, onMounted as De, onActivated as Ne, nextTick as Y, resolveComponent as I, resolveDirective as Le, openBlock as n, createElementBlock as s, createElementVNode as u, toDisplayString as h, Fragment as ue, renderList as ce, withDirectives as R, createBlock as O, withCtx as w, createTextVNode as M, resolveDynamicComponent as Be, createCommentVNode as r, vShow as x, renderSlot as d, normalizeStyle as de, createVNode as k, h as Me } from "vue";
+import { n as Pe, B as Te, y as Fe, aA as Ee, ah as Ue, cZ as Ve } from "./index2.js";
 const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" }, He = {
   key: 0,
   style: { "margin-left": "8px" }
@@ -28,16 +28,16 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
 }, qe = {
   key: 0,
   class: "filter-content"
-}, Ge = { class: "filter" }, Je = {
+}, Ze = { class: "filter" }, Ge = {
   key: 1,
   class: "reset-wrap"
-}, Qe = {
+}, Je = {
   key: 1,
   class: "filter-more-content"
-}, Ye = {
+}, Qe = {
   key: 2,
   class: "desc-wrap"
-}, Ze = { class: "table-content" }, xe = { class: "table-container" }, et = {
+}, Ye = { class: "table-content" }, xe = { class: "table-container" }, et = {
   key: 0,
   class: "s-card-header"
 }, tt = { class: "s-card-body" }, ot = { class: "s-card-footer" }, nt = {
@@ -159,17 +159,17 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
       C.value = e.map((t) => (t.key === "remove" && (pe.value = !0), t));
     }
     function me() {
-      Z(() => {
-        Y(), L.value = f.pSize, U();
+      Y(() => {
+        Q(), L.value = f.pSize, U();
       });
     }
     function q() {
-      D.value = !D.value, Y();
+      D.value = !D.value, Q();
     }
-    function G() {
+    function Z() {
       y("reset");
     }
-    function J(e = !1) {
+    function G(e = !1) {
       U(e);
     }
     function U(e = !1) {
@@ -204,9 +204,9 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
     function ne(e) {
       y("btnCallback", e.key, b.value);
       const t = _e[e.key];
-      typeof t == "function" ? t(e) : Q(e);
+      typeof t == "function" ? t(e) : J(e);
     }
-    function Q(e) {
+    function J(e) {
       if (e.selection !== !1 && !b.value.length) {
         window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
         return;
@@ -255,7 +255,7 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
     function ge() {
     }
     function he(e) {
-      Q(e);
+      J(e);
     }
     function ke() {
       if (!ee.value) {
@@ -264,8 +264,8 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
       }
       P.value = !0;
     }
-    function Y() {
-      Z(ae);
+    function Q() {
+      Y(ae);
     }
     function ae() {
     }
@@ -273,11 +273,11 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
       add: ge,
       delete: he,
       import: ke,
-      reload: J,
-      filterReset: G,
+      reload: G,
+      filterReset: Z,
       toggleFilter: q,
       setStateBtn: le,
-      handAction: Q
+      handAction: J
     }, be = {
       mounted(e) {
         e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
@@ -302,19 +302,19 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
     return De(() => {
       me();
     }), Ne(() => {
-      Z(ae);
+      Y(ae);
     }), H({
-      reload: J,
+      reload: G,
       spinning: N,
       selectedRowKeys: b,
       renderButtons: C,
       setStateBtn: le,
       btnCallback: ne,
-      filterReset: G,
+      filterReset: Z,
       toggleFilter: q,
       table: v,
       importVisible: P,
-      measureLayout: Y,
+      measureLayout: Q,
       // 卡片列表
       list: B,
       total: F,
@@ -378,7 +378,7 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
               ref: X
             }, [
               e.$slots.filter ? (n(), s("div", qe, [
-                u("div", Ge, [
+                u("div", Ze, [
                   d(e.$slots, "filter", {}, void 0, !0)
                 ]),
                 e.$slots.filterMore ? (n(), s("a", {
@@ -395,7 +395,7 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
                     style: { "font-size": "12px" }
                   }))
                 ])) : r("", !0),
-                e.$slots.filter ? (n(), s("div", Je, [
+                e.$slots.filter ? (n(), s("div", Ge, [
                   k(c, {
                     placement: "top",
                     overlayStyle: { maxWidth: "500px" },
@@ -408,7 +408,7 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
                     default: w(() => [
                       k(l, {
                         style: { "padding-bottom": "2px" },
-                        onClick: G
+                        onClick: Z
                       }, {
                         icon: w(() => [
                           k(p)
@@ -420,18 +420,18 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
                   })
                 ])) : r("", !0)
               ])) : r("", !0),
-              e.$slots.filterMore ? R((n(), s("div", Qe, [
+              e.$slots.filterMore ? R((n(), s("div", Je, [
                 d(e.$slots, "filterMore", {}, void 0, !0)
               ], 512)), [
                 [x, D.value]
               ]) : r("", !0),
-              e.$slots.desc ? (n(), s("div", Ye, [
+              e.$slots.desc ? (n(), s("div", Qe, [
                 d(e.$slots, "desc", {}, void 0, !0)
               ])) : r("", !0)
             ], 512), [
               [x, e.$slots.filter]
             ]),
-            u("div", Ze, [
+            u("div", Ye, [
               e.$slots.tabs ? (n(), s("div", {
                 key: 0,
                 class: "tabs-wrap",
@@ -536,7 +536,7 @@ const Ke = { class: "tools" }, Ie = { class: "title" }, Re = { class: "btns" },
           "onUpdate:value": t[1] || (t[1] = (o) => P.value = o),
           columns: j.value.importColumns,
           apis: j.value.importApis,
-          onReload: J
+          onReload: G
         }, null, 8, ["upload-url", "value", "columns", "apis"])) : r("", !0)
       ], 512);
     };

+ 10 - 10
lib/js/SListLayout.js

@@ -1,5 +1,5 @@
 import { ref as s, computed as Z, watch as L, onMounted as Se, onActivated as Oe, nextTick as E, onBeforeUnmount as Re, resolveComponent as O, resolveDirective as Ae, openBlock as n, createElementBlock as l, createElementVNode as c, toDisplayString as g, Fragment as ee, renderList as De, withDirectives as U, createBlock as C, withCtx as k, createTextVNode as te, resolveDynamicComponent as Be, createCommentVNode as i, vShow as oe, renderSlot as u, normalizeStyle as Ie, createVNode as R, unref as ze, h as Te } from "vue";
-import { n as xe, B as Pe, y as Me, cP as Ke } from "./index2.js";
+import { n as xe, B as Me, y as Pe, c_ as Ke } from "./index2.js";
 const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" }, Fe = {
   key: 0,
   style: { "margin-left": "8px" }
@@ -242,15 +242,15 @@ const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" },
     function pe(e, t) {
       y("tableColCallback", e, t);
     }
-    function P(e) {
+    function M(e) {
       return D.value.find((t) => t.dataIndex === e);
     }
     function ye(e) {
-      const t = P(e);
+      const t = M(e);
       return !!(t && t.template);
     }
     function ve(e) {
-      const t = P(e);
+      const t = M(e);
       return !!(t && t.isClick);
     }
     function we(e) {
@@ -260,9 +260,9 @@ const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" },
       d.value = e;
     }
     function Y() {
-      E(M);
+      E(P);
     }
-    function M() {
+    function P() {
       const e = v.value && v.value.$el, t = e && e.querySelector(".ant-table-body"), a = t && t.clientHeight;
       a && (F.value = Math.max(a - 8, 0));
     }
@@ -299,9 +299,9 @@ const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" },
     };
     let b = null;
     return Se(() => {
-      X(), window.ResizeObserver && A.value && (b = new ResizeObserver(() => M()), b.observe(A.value));
+      X(), window.ResizeObserver && A.value && (b = new ResizeObserver(() => P()), b.observe(A.value));
     }), Oe(() => {
-      E(M);
+      E(P);
     }), Re(() => {
       b && (b.disconnect(), b = null);
     }), ne({
@@ -316,7 +316,7 @@ const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" },
       table: v,
       importVisible: _
     }), (e, t) => {
-      const a = Pe, r = O("down-outlined"), K = O("up-outlined"), f = O("sync-outlined"), be = Me, ge = O("s-import-modal"), Ce = Ae("action");
+      const a = Me, r = O("down-outlined"), K = O("up-outlined"), f = O("sync-outlined"), be = Pe, ge = O("s-import-modal"), Ce = Ae("action");
       return n(), l("div", {
         class: "list-layout",
         ref_key: "layoutRef",
@@ -455,7 +455,7 @@ const Le = { class: "tools" }, Ee = { class: "title" }, Ue = { class: "btns" },
                         text: o.text,
                         record: o.record,
                         index: o.index,
-                        item: P(o.column.dataIndex)
+                        item: M(o.column.dataIndex)
                       }, void 0, !0, 0) : ve(o.column.dataIndex) ? (n(), l("a", {
                         key: 1,
                         onClick: (_e) => pe(o.column.dataIndex, o.record)

+ 163 - 163
lib/js/SModal.js

@@ -10,9 +10,9 @@ var De = (e, t, o) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writ
       $t.call(t, o) && De(e, o, t[o]);
   return e;
 }, Fe = (e, t) => ht(e, xt(t));
-import { defineComponent as J, ref as B, computed as Q, createVNode as a, Transition as Qe, withDirectives as Ze, vShow as qe, nextTick as Je, shallowRef as D, watch as j, onBeforeUnmount as et, watchEffect as tt, Fragment as Me, render as Le, unref as Ie, isRef as ot, toRefs as wt, customRef as Tt, getCurrentScope as Bt, onScopeDispose as Pt, useAttrs as Ft, resolveComponent as we, openBlock as E, createBlock as ne, mergeProps as Ot, withCtx as k, createElementVNode as pe, createElementBlock as le, renderList as ke, createCommentVNode as q, renderSlot as _e, normalizeStyle as Mt, resolveDynamicComponent as At, createTextVNode as ue, toDisplayString as ae } from "vue";
+import { defineComponent as Z, ref as B, computed as Q, createVNode as a, Transition as Qe, withDirectives as qe, vShow as Je, nextTick as Ze, shallowRef as D, watch as j, onBeforeUnmount as et, watchEffect as tt, Fragment as Ae, render as Le, unref as Ie, isRef as ot, toRefs as wt, customRef as Tt, getCurrentScope as Bt, onScopeDispose as Pt, useAttrs as Ft, resolveComponent as we, openBlock as E, createBlock as ne, mergeProps as Ot, withCtx as k, createElementVNode as pe, createElementBlock as le, renderList as ke, createCommentVNode as J, renderSlot as _e, normalizeStyle as At, resolveDynamicComponent as Mt, createTextVNode as de, toDisplayString as ae } from "vue";
 import Ht from "./ModalHeader.js";
-import { cS as It, cl as nt, P as N, _ as P, a$ as lt, d as f, cx as Nt, c as ye, o as at, i as Be, cT as zt, K as We, cU as Rt, bF as Et, g as Dt, m as Lt, br as kt, r as _t, cw as Wt, cC as Vt, aU as Ne, u as jt, bf as it, a3 as Te, bJ as Gt, B as Ae, cV as Xt, e as ge, cW as Kt, a as Yt, b3 as Ut, b2 as Qt, b4 as Zt, cX as qt, cY as Jt, cZ as eo, cQ as to, c_ as oo, c$ as no, aW as lo, n as ao, ao as io } from "./index2.js";
+import { d1 as It, cw as nt, P as N, _ as P, ba as lt, d as f, cJ as Nt, c as ye, o as at, i as Be, d2 as zt, K as We, d3 as Rt, bQ as Et, g as Dt, m as Lt, bC as kt, r as _t, cH as Wt, cN as Vt, b3 as Ne, u as jt, bq as it, a3 as Te, bU as Gt, B as Me, d4 as Kt, e as ge, d5 as Xt, a as Yt, be as Ut, bd as Qt, bf as qt, d6 as Jt, d7 as Zt, d8 as eo, c$ as to, d9 as oo, da as no, b5 as lo, n as ao, aA as io } from "./index2.js";
 import { A as Ve } from "./ActionButton.js";
 import { T as ro, _ as so } from "./index12.js";
 import { _ as co, S as uo } from "./index11.js";
@@ -136,7 +136,7 @@ let Ge = -1;
 function po() {
   return Ge += 1, Ge;
 }
-function Xe(e, t) {
+function Ke(e, t) {
   let o = e[`page${t ? "Y" : "X"}Offset`];
   const n = `scroll${t ? "Top" : "Left"}`;
   if (typeof o != "number") {
@@ -150,7 +150,7 @@ function go(e) {
     left: t.left,
     top: t.top
   }, n = e.ownerDocument, l = n.defaultView || n.parentWindow;
-  return o.left += Xe(l), o.top += Xe(l, !0), o;
+  return o.left += Ke(l), o.top += Ke(l, !0), o;
 }
 const yo = {
   width: 0,
@@ -159,7 +159,7 @@ const yo = {
   outline: "none"
 }, Co = {
   outline: "none"
-}, bo = J({
+}, bo = Z({
   compatConfig: {
     MODE: 3
   },
@@ -203,14 +203,14 @@ const yo = {
         height: r
       } = e, y = {};
       return s !== void 0 && (y.width = typeof s == "number" ? `${s}px` : s), r !== void 0 && (y.height = typeof r == "number" ? `${r}px` : r), $.value && (y.transformOrigin = $.value), y;
-    }), u = () => {
-      Je(() => {
+    }), d = () => {
+      Ze(() => {
         if (m.value) {
           const s = go(m.value);
           $.value = e.mousePosition ? `${e.mousePosition.x - s.left}px ${e.mousePosition.y - s.top}px` : "";
         }
       });
-    }, d = (s) => {
+    }, u = (s) => {
       e.onVisibleChanged(s);
     };
     return () => {
@@ -225,12 +225,12 @@ const yo = {
         onClose: O,
         bodyStyle: z,
         bodyProps: g,
-        onMousedown: A,
+        onMousedown: M,
         onMouseup: S,
         visible: H,
-        modalRender: M = n.modalRender,
+        modalRender: A = n.modalRender,
         destroyOnClose: G,
-        motionName: X
+        motionName: K
       } = e;
       let L;
       c && (L = a("div", {
@@ -257,35 +257,35 @@ const yo = {
       }, [Y, R, a("div", P({
         class: `${w}-body`,
         style: z
-      }, g), [(x = n.default) === null || x === void 0 ? void 0 : x.call(n)]), L]), U = lt(X);
+      }, g), [(x = n.default) === null || x === void 0 ? void 0 : x.call(n)]), L]), U = lt(K);
       return a(Qe, P(P({}, U), {}, {
-        onBeforeEnter: u,
-        onAfterEnter: () => d(!0),
-        onAfterLeave: () => d(!1)
+        onBeforeEnter: d,
+        onAfterEnter: () => u(!0),
+        onAfterLeave: () => u(!1)
       }), {
-        default: () => [H || !G ? Ze(a("div", P(P({}, l), {}, {
+        default: () => [H || !G ? qe(a("div", P(P({}, l), {}, {
           ref: m,
           key: "dialog-element",
           role: "document",
           style: [v.value, l.style],
           class: [w, l.class],
-          onMousedown: A,
+          onMousedown: M,
           onMouseup: S
         }), [a("div", {
           tabindex: 0,
           ref: i,
           style: Co
-        }, [M ? M({
+        }, [A ? A({
           originVNode: W
         }) : W]), a("div", {
           tabindex: 0,
           ref: p,
           style: yo
-        }, null)]), [[qe, H]]) : null]
+        }, null)]), [[Je, H]]) : null]
       });
     };
   }
-}), ho = J({
+}), ho = Z({
   compatConfig: {
     MODE: 3
   },
@@ -305,13 +305,13 @@ const yo = {
         motionName: i
       } = e, p = lt(i);
       return a(Qe, p, {
-        default: () => [Ze(a("div", P({
+        default: () => [qe(a("div", P({
           class: `${o}-mask`
-        }, l), null), [[qe, n]])]
+        }, l), null), [[Je, n]])]
       });
     };
   }
-}), Ke = J({
+}), Xe = Z({
   compatConfig: {
     MODE: 3
   },
@@ -353,21 +353,21 @@ const yo = {
         }
         T && ((C = e.afterClose) === null || C === void 0 || C.call(e));
       }
-    }, u = (c) => {
+    }, d = (c) => {
       var h;
       (h = e.onClose) === null || h === void 0 || h.call(e, c);
-    }, d = D(!1), s = D(), r = () => {
-      clearTimeout(s.value), d.value = !0;
+    }, u = D(!1), s = D(), r = () => {
+      clearTimeout(s.value), u.value = !0;
     }, y = () => {
       s.value = setTimeout(() => {
-        d.value = !1;
+        u.value = !1;
       });
     }, x = (c) => {
       if (!e.maskClosable) return null;
-      d.value ? d.value = !1 : i.value === c.target && u(c);
+      u.value ? u.value = !1 : i.value === c.target && d(c);
     }, w = (c) => {
       if (e.keyboard && c.keyCode === We.ESC) {
-        c.stopPropagation(), u(c);
+        c.stopPropagation(), d(c);
         return;
       }
       e.visible && c.keyCode === We.TAB && p.value.changeActive(!c.shiftKey);
@@ -392,12 +392,12 @@ const yo = {
         zIndex: O,
         wrapClassName: z,
         rootClassName: g,
-        wrapStyle: A,
+        wrapStyle: M,
         closable: S,
         maskProps: H,
-        maskStyle: M,
+        maskStyle: A,
         transitionName: G,
-        animation: X,
+        animation: K,
         wrapProps: L,
         title: R = n.title
       } = e, {
@@ -414,7 +414,7 @@ const yo = {
         motionName: je(c, T, F),
         style: f({
           zIndex: O
-        }, M),
+        }, A),
         maskProps: H
       }, null), a("div", P({
         tabIndex: -1,
@@ -426,7 +426,7 @@ const yo = {
         "aria-labelledby": R ? $.value : null,
         style: f(f({
           zIndex: O
-        }, A), {
+        }, M), {
           display: m.value ? null : "none"
         })
       }, L), [a(bo, P(P({}, at(e, ["scrollLocker"])), {}, {
@@ -439,13 +439,13 @@ const yo = {
         ariaId: $.value,
         prefixCls: c,
         visible: C,
-        onClose: u,
+        onClose: d,
         onVisibleChanged: v,
-        motionName: je(c, G, X)
+        motionName: je(c, G, K)
       }), n)])]);
     };
   }
-}), xo = ze(), So = J({
+}), xo = ze(), So = Z({
   compatConfig: {
     MODE: 3
   },
@@ -474,11 +474,11 @@ const yo = {
         destroyOnClose: $ = !1,
         afterClose: v
       } = e;
-      let u = f(f(f({}, e), o), {
+      let d = f(f(f({}, e), o), {
         ref: "_component",
         key: "dialog"
       });
-      return p === !1 ? a(Ke, P(P({}, u), {}, {
+      return p === !1 ? a(Xe, P(P({}, d), {}, {
         getOpenCount: () => 2
       }), n) : !m && $ && !l.value ? null : a(Et, {
         autoLock: !0,
@@ -486,11 +486,11 @@ const yo = {
         forceRender: m,
         getContainer: p
       }, {
-        default: (d) => (u = f(f(f({}, u), d), {
+        default: (u) => (d = f(f(f({}, d), u), {
           afterClose: () => {
             v == null || v(), l.value = !1;
           }
-        }), a(Ke, u, n))
+        }), a(Xe, d, n))
       });
     };
   }
@@ -865,14 +865,14 @@ var Oo = function(e, t) {
   return o;
 };
 let He;
-const Mo = (e) => {
+const Ao = (e) => {
   He = {
     x: e.pageX,
     y: e.pageY
   }, setTimeout(() => He = null, 100);
 };
-Kt() && Yt(document.documentElement, "click", Mo, !0);
-const Ao = () => ({
+Xt() && Yt(document.documentElement, "click", Ao, !0);
+const Mo = () => ({
   prefixCls: String,
   /** @deprecated Please use `open` instead. */
   visible: {
@@ -948,13 +948,13 @@ const Ao = () => ({
   },
   modalRender: Function,
   mousePosition: ge()
-}), _ = J({
+}), _ = Z({
   compatConfig: {
     MODE: 3
   },
   name: "AModal",
   inheritAttrs: !1,
-  props: Be(Ao(), {
+  props: Be(Mo(), {
     width: 520,
     confirmLoading: !1,
     okType: "primary"
@@ -970,7 +970,7 @@ const Ao = () => ({
       rootPrefixCls: m,
       direction: $,
       getPopupContainer: v
-    } = jt("modal", e), [u, d] = Fo(p);
+    } = jt("modal", e), [d, u] = Fo(p);
     it(e.visible === void 0, "Modal", "`visible` will be removed in next major version, please use `open` instead.");
     const s = (x) => {
       o("update:visible", !1), o("update:open", !1), o("cancel", x), o("change", !1);
@@ -984,11 +984,11 @@ const Ao = () => ({
         cancelText: C = (w = n.cancelText) === null || w === void 0 ? void 0 : w.call(n),
         confirmLoading: T
       } = e;
-      return a(Me, null, [a(Ae, P({
+      return a(Ae, null, [a(Me, P({
         onClick: s
       }, e.cancelButtonProps), {
         default: () => [C || i.value.cancelText]
-      }), a(Ae, P(P({}, Xt(h)), {}, {
+      }), a(Me, P(P({}, Kt(h)), {}, {
         loading: T,
         onClick: r
       }, e.okButtonProps), {
@@ -1006,13 +1006,13 @@ const Ao = () => ({
         getContainer: O,
         closeIcon: z = (x = n.closeIcon) === null || x === void 0 ? void 0 : x.call(n),
         focusTriggerAfterClose: g = !0
-      } = e, A = Oo(e, ["prefixCls", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]), S = ye(T, {
+      } = e, M = Oo(e, ["prefixCls", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]), S = ye(T, {
         [`${p.value}-centered`]: !!F,
         [`${p.value}-wrap-rtl`]: $.value === "rtl"
       });
-      return u(a(So, P(P(P({}, A), l), {}, {
-        rootClassName: d.value,
-        class: ye(d.value, l.class),
+      return d(a(So, P(P(P({}, M), l), {}, {
+        rootClassName: u.value,
+        class: ye(u.value, l.class),
         getContainer: O || (v == null ? void 0 : v.value),
         prefixCls: p.value,
         wrapClassName: S,
@@ -1021,7 +1021,7 @@ const Ao = () => ({
         focusTriggerAfterClose: g,
         transitionName: Te(m.value, "zoom", e.transitionName),
         maskTransitionName: Te(m.value, "fade", e.maskTransitionName),
-        mousePosition: (w = A.mousePosition) !== null && w !== void 0 ? w : He
+        mousePosition: (w = M.mousePosition) !== null && w !== void 0 ? w : He
       }), f(f({}, n), {
         footer: n.footer || y,
         closeIcon: () => a("span", {
@@ -1033,10 +1033,10 @@ const Ao = () => ({
     };
   }
 });
-function de(e) {
+function ue(e) {
   return typeof e == "function" ? e() : e;
 }
-const rt = J({
+const rt = Z({
   name: "ConfirmDialog",
   inheritAttrs: !1,
   props: ["icon", "onCancel", "onOk", "close", "closable", "zIndex", "afterClose", "visible", "open", "keyboard", "centered", "getContainer", "maskStyle", "okButtonProps", "cancelButtonProps", "okType", "prefixCls", "okCancel", "width", "mask", "maskClosable", "okText", "cancelText", "autoFocusButton", "transitionName", "maskTransitionName", "type", "title", "content", "direction", "rootPrefixCls", "bodyStyle", "closeIcon", "modalRender", "focusTriggerAfterClose", "wrapClassName", "confirmPrefixCls", "footer"],
@@ -1053,8 +1053,8 @@ const rt = J({
         close: m,
         okText: $,
         closable: v = !1,
-        zIndex: u,
-        afterClose: d,
+        zIndex: d,
+        afterClose: u,
         keyboard: s,
         centered: r,
         getContainer: y,
@@ -1068,12 +1068,12 @@ const rt = J({
         type: O,
         open: z,
         title: g,
-        content: A,
+        content: M,
         direction: S,
         closeIcon: H,
-        modalRender: M,
+        modalRender: A,
         focusTriggerAfterClose: G,
-        rootPrefixCls: X,
+        rootPrefixCls: K,
         bodyStyle: L,
         wrapClassName: R,
         footer: Y
@@ -1082,10 +1082,10 @@ const rt = J({
       if (!l && l !== null)
         switch (O) {
           case "info":
-            W = a(qt, null, null);
+            W = a(Jt, null, null);
             break;
           case "success":
-            W = a(Zt, null, null);
+            W = a(qt, null, null);
             break;
           case "error":
             W = a(Qt, null, null);
@@ -1100,9 +1100,9 @@ const rt = J({
         close: m,
         autofocus: he === "cancel",
         buttonProps: c,
-        prefixCls: `${X}-btn`
+        prefixCls: `${K}-btn`
       }, {
-        default: () => [de(e.cancelText) || se.cancelText]
+        default: () => [ue(e.cancelText) || se.cancelText]
       });
       return a(_, {
         prefixCls: fe,
@@ -1116,33 +1116,33 @@ const rt = J({
         open: z,
         title: "",
         footer: "",
-        transitionName: Te(X, "zoom", e.transitionName),
-        maskTransitionName: Te(X, "fade", e.maskTransitionName),
+        transitionName: Te(K, "zoom", e.transitionName),
+        maskTransitionName: Te(K, "fade", e.maskTransitionName),
         mask: T,
         maskClosable: F,
         maskStyle: x,
         style: me,
         bodyStyle: L,
         width: C,
-        zIndex: u,
-        afterClose: d,
+        zIndex: d,
+        afterClose: u,
         keyboard: s,
         centered: r,
         getContainer: y,
         closable: v,
         closeIcon: H,
-        modalRender: M,
+        modalRender: A,
         focusTriggerAfterClose: G
       }, {
         default: () => [a("div", {
           class: `${ee}-body-wrapper`
         }, [a("div", {
           class: `${ee}-body`
-        }, [de(W), g === void 0 ? null : a("span", {
+        }, [ue(W), g === void 0 ? null : a("span", {
           class: `${ee}-title`
-        }, [de(g)]), a("div", {
+        }, [ue(g)]), a("div", {
           class: `${ee}-content`
-        }, [de(A)])]), Y !== void 0 ? de(Y) : a("div", {
+        }, [ue(M)])]), Y !== void 0 ? ue(Y) : a("div", {
           class: `${ee}-btns`
         }, [b, a(Ve, {
           type: U,
@@ -1150,9 +1150,9 @@ const rt = J({
           close: m,
           autofocus: he === "ok",
           buttonProps: w,
-          prefixCls: `${X}-btn`
+          prefixCls: `${K}-btn`
         }, {
-          default: () => [de($) || (be ? se.okText : se.justOkText)]
+          default: () => [ue($) || (be ? se.okText : se.justOkText)]
         })])])]
       });
     };
@@ -1165,11 +1165,11 @@ const rt = J({
   }), n = null;
   function l() {
     n && (Le(null, t), n = null);
-    for (var v = arguments.length, u = new Array(v), d = 0; d < v; d++)
-      u[d] = arguments[d];
-    const s = u.some((r) => r && r.triggerCancel);
+    for (var v = arguments.length, d = new Array(v), u = 0; u < v; u++)
+      d[u] = arguments[u];
+    const s = d.some((r) => r && r.triggerCancel);
     e.onCancel && s && e.onCancel(() => {
-    }, ...u.slice(1));
+    }, ...d.slice(1));
     for (let r = 0; r < ie.length; r++)
       if (ie[r] === i) {
         ie.splice(r, 1);
@@ -1177,25 +1177,25 @@ const rt = J({
       }
   }
   function i() {
-    for (var v = arguments.length, u = new Array(v), d = 0; d < v; d++)
-      u[d] = arguments[d];
+    for (var v = arguments.length, d = new Array(v), u = 0; u < v; u++)
+      d[u] = arguments[u];
     o = f(f({}, o), {
       open: !1,
       afterClose: () => {
-        typeof e.afterClose == "function" && e.afterClose(), l.apply(this, u);
+        typeof e.afterClose == "function" && e.afterClose(), l.apply(this, d);
       }
     }), o.visible && delete o.visible, p(o);
   }
   function p(v) {
-    typeof v == "function" ? o = v(o) : o = f(f({}, o), v), n && Jt(n, o, t);
+    typeof v == "function" ? o = v(o) : o = f(f({}, o), v), n && Zt(n, o, t);
   }
   const m = (v) => {
-    const u = eo, d = u.prefixCls, s = v.prefixCls || `${d}-modal`, r = u.iconPrefixCls, y = oo();
-    return a(to, P(P({}, u), {}, {
-      prefixCls: d
+    const d = eo, u = d.prefixCls, s = v.prefixCls || `${u}-modal`, r = d.iconPrefixCls, y = oo();
+    return a(to, P(P({}, d), {}, {
+      prefixCls: u
     }), {
       default: () => [a(rt, P(P({}, v), {}, {
-        rootPrefixCls: d,
+        rootPrefixCls: u,
         prefixCls: s,
         iconPrefixCls: r,
         locale: y,
@@ -1204,8 +1204,8 @@ const rt = J({
     });
   };
   function $(v) {
-    const u = a(m, f({}, v));
-    return u.appContext = e.parentContext || e.appContext || u.appContext, Le(u, t), u;
+    const d = a(m, f({}, v));
+    return d.appContext = e.parentContext || e.appContext || d.appContext, Le(d, t), d;
   }
   return n = $(o), ie.push(i), {
     destroy: i,
@@ -1222,12 +1222,12 @@ function ct(e) {
     type: "info"
   });
 }
-function ut(e) {
+function dt(e) {
   return f(f({}, e), {
     type: "success"
   });
 }
-function dt(e) {
+function ut(e) {
   return f(f({}, e), {
     type: "error"
   });
@@ -1242,7 +1242,7 @@ const Ho = () => ({
   afterClose: Function,
   destroyAction: Function,
   open: Boolean
-}), Io = J({
+}), Io = Z({
   name: "HookModal",
   inheritAttrs: !1,
   props: Be(Ho(), {
@@ -1259,23 +1259,23 @@ const Ho = () => ({
     const l = Q(() => e.open), i = Q(() => e.config), {
       direction: p,
       getPrefixCls: m
-    } = no(), $ = m("modal"), v = m(), u = () => {
+    } = no(), $ = m("modal"), v = m(), d = () => {
       var y, x;
       e == null || e.afterClose(), (x = (y = i.value).afterClose) === null || x === void 0 || x.call(y);
-    }, d = function() {
+    }, u = function() {
       e.destroyAction(...arguments);
     };
     o({
-      destroy: d
+      destroy: u
     });
     const s = (n = i.value.okCancel) !== null && n !== void 0 ? n : i.value.type === "confirm", [r] = Ne("Modal", lo.Modal);
     return () => a(rt, P(P({
       prefixCls: $,
       rootPrefixCls: v
     }, i.value), {}, {
-      close: d,
+      close: u,
       open: l.value,
-      afterClose: u,
+      afterClose: d,
       okText: i.value.okText || (s ? r == null ? void 0 : r.value.okText : r == null ? void 0 : r.value.justOkText),
       direction: i.value.direction || p.value,
       cancelText: i.value.cancelText || (r == null ? void 0 : r.value.cancelText)
@@ -1283,7 +1283,7 @@ const Ho = () => ({
   }
 });
 let Ue = 0;
-const No = J({
+const No = Z({
   name: "ElementsHolder",
   inheritAttrs: !1,
   setup(e, t) {
@@ -1310,7 +1310,7 @@ function zo() {
   const o = (i) => function(m) {
     var $;
     Ue += 1;
-    const v = D(!0), u = D(null), d = D(Ie(m)), s = D({});
+    const v = D(!0), d = D(null), u = D(Ie(m)), s = D({});
     j(() => m, (C) => {
       w(f(f({}, ot(C) ? C.value : C), s.value));
     });
@@ -1319,14 +1319,14 @@ function zo() {
       for (var C = arguments.length, T = new Array(C), F = 0; F < C; F++)
         T[F] = arguments[F];
       const O = T.some((z) => z && z.triggerCancel);
-      d.value.onCancel && O && d.value.onCancel(() => {
+      u.value.onCancel && O && u.value.onCancel(() => {
       }, ...T.slice(1));
     };
     let y;
     const x = () => a(Io, {
       key: `modal-${Ue}`,
-      config: i(d.value),
-      ref: u,
+      config: i(u.value),
+      ref: d,
       open: v.value,
       destroyAction: r,
       afterClose: () => {
@@ -1335,20 +1335,20 @@ function zo() {
     }, null);
     y = ($ = e.value) === null || $ === void 0 ? void 0 : $.addModal(x), y && ie.push(y);
     const w = (C) => {
-      d.value = f(f({}, d.value), C);
+      u.value = f(f({}, u.value), C);
     };
     return {
       destroy: () => {
-        u.value ? r() : t.value = [...t.value, r];
+        d.value ? r() : t.value = [...t.value, r];
       },
       update: (C) => {
-        s.value = C, u.value ? w(C) : t.value = [...t.value, () => w(C)];
+        s.value = C, d.value ? w(C) : t.value = [...t.value, () => w(C)];
       }
     };
   }, n = Q(() => ({
     info: o(ct),
-    success: o(ut),
-    error: o(dt),
+    success: o(dt),
+    error: o(ut),
     warning: o(st),
     confirm: o(ft)
   })), l = Symbol("modalHolderKey");
@@ -1365,10 +1365,10 @@ _.info = function(t) {
   return Ce(ct(t));
 };
 _.success = function(t) {
-  return Ce(ut(t));
+  return Ce(dt(t));
 };
 _.error = function(t) {
-  return Ce(dt(t));
+  return Ce(ut(t));
 };
 _.warning = mt;
 _.warn = mt;
@@ -1431,15 +1431,15 @@ function Oe(...e) {
     return Lo;
   Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
   const i = [], p = () => {
-    i.forEach((u) => u()), i.length = 0;
-  }, m = (u, d, s, r) => (u.addEventListener(d, s, r), () => u.removeEventListener(d, s, r)), $ = j(
+    i.forEach((d) => d()), i.length = 0;
+  }, m = (d, u, s, r) => (d.addEventListener(u, s, r), () => d.removeEventListener(u, s, r)), $ = j(
     () => [_o(t), I(l)],
-    ([u, d]) => {
-      if (p(), !u)
+    ([d, u]) => {
+      if (p(), !d)
         return;
-      const s = Do(d) ? ve({}, d) : d;
+      const s = Do(u) ? ve({}, u) : u;
       i.push(
-        ...o.flatMap((r) => n.map((y) => m(u, r, y, s)))
+        ...o.flatMap((r) => n.map((y) => m(d, r, y, s)))
       );
     },
     { immediate: !0, flush: "post" }
@@ -1457,34 +1457,34 @@ function Wo(e, t = {}) {
     exact: m,
     onMove: $,
     onEnd: v,
-    onStart: u,
-    initialValue: d,
+    onStart: d,
+    initialValue: u,
     axis: s = "both",
     draggingElement: r = pt,
     containerElement: y,
     handle: x = e,
     buttons: w = [0]
   } = t, c = B(
-    (o = I(d)) != null ? o : { x: 0, y: 0 }
+    (o = I(u)) != null ? o : { x: 0, y: 0 }
   ), h = B(), C = (g) => l ? l.includes(g.pointerType) : !0, T = (g) => {
     I(i) && g.preventDefault(), I(p) && g.stopPropagation();
   }, F = (g) => {
-    var A;
+    var M;
     if (!I(w).includes(g.button) || I(t.disabled) || !C(g) || I(m) && g.target !== I(e))
       return;
-    const S = I(y), H = (A = S == null ? void 0 : S.getBoundingClientRect) == null ? void 0 : A.call(S), M = I(e).getBoundingClientRect(), G = {
-      x: g.clientX - (S ? M.left - H.left + S.scrollLeft : M.left),
-      y: g.clientY - (S ? M.top - H.top + S.scrollTop : M.top)
+    const S = I(y), H = (M = S == null ? void 0 : S.getBoundingClientRect) == null ? void 0 : M.call(S), A = I(e).getBoundingClientRect(), G = {
+      x: g.clientX - (S ? A.left - H.left + S.scrollLeft : A.left),
+      y: g.clientY - (S ? A.top - H.top + S.scrollTop : A.top)
     };
-    (u == null ? void 0 : u(G, g)) !== !1 && (h.value = G, T(g));
+    (d == null ? void 0 : d(G, g)) !== !1 && (h.value = G, T(g));
   }, O = (g) => {
     if (I(t.disabled) || !C(g) || !h.value)
       return;
-    const A = I(y), S = I(e).getBoundingClientRect();
-    let { x: H, y: M } = c.value;
-    (s === "x" || s === "both") && (H = g.clientX - h.value.x, A && (H = Math.min(Math.max(0, H), A.scrollWidth - S.width))), (s === "y" || s === "both") && (M = g.clientY - h.value.y, A && (M = Math.min(Math.max(0, M), A.scrollHeight - S.height))), c.value = {
+    const M = I(y), S = I(e).getBoundingClientRect();
+    let { x: H, y: A } = c.value;
+    (s === "x" || s === "both") && (H = g.clientX - h.value.x, M && (H = Math.min(Math.max(0, H), M.scrollWidth - S.width))), (s === "y" || s === "both") && (A = g.clientY - h.value.y, M && (A = Math.min(Math.max(0, A), M.scrollHeight - S.height))), c.value = {
       x: H,
-      y: M
+      y: A
     }, $ == null || $(c.value, g), T(g);
   }, z = (g) => {
     I(t.disabled) || !C(g) || h.value && (h.value = void 0, v == null || v(c.value, g), T(g));
@@ -1508,7 +1508,7 @@ const Vo = { class: "modalHeader" }, jo = {
   key: 1,
   class: "step-wrap",
   ref: "stepRef"
-}, Xo = { class: "modal-body-container" }, Ko = /* @__PURE__ */ Object.assign({ name: "SModal" }, {
+}, Ko = { class: "modal-body-container" }, Xo = /* @__PURE__ */ Object.assign({ name: "SModal" }, {
   __name: "SModal",
   props: {
     loading: {
@@ -1609,7 +1609,7 @@ const Vo = { class: "modalHeader" }, jo = {
     "handSave"
   ],
   setup(e, { emit: t }) {
-    const o = e, n = t, l = Ft(), i = B(null), p = B(), { x: m, y: $, isDragging: v } = Wo(i), u = B(0), d = B(0), s = B(!1), r = B(0), y = B(0), x = B(0), w = B(0), c = B({ left: 0, right: 0, top: 0, bottom: 0 }), h = B(null), C = B(null), T = B(o.width), F = B(), O = B(o.value), z = Q(() => o.tabKey && o.tabKey.value || "value"), g = B("");
+    const o = e, n = t, l = Ft(), i = B(null), p = B(), { x: m, y: $, isDragging: v } = Wo(i), d = B(0), u = B(0), s = B(!1), r = B(0), y = B(0), x = B(0), w = B(0), c = B({ left: 0, right: 0, top: 0, bottom: 0 }), h = B(null), C = B(null), T = B(o.width), F = B(), O = B(o.value), z = Q(() => o.tabKey && o.tabKey.value || "value"), g = B("");
     j(() => o.tabs, () => {
       const b = o.tabs || [];
       if (!b.length) {
@@ -1617,23 +1617,23 @@ const Vo = { class: "modalHeader" }, jo = {
         return;
       }
       const V = z.value;
-      b.some((K) => K && K[V] === g.value) || (g.value = b[0][V]);
+      b.some((X) => X && X[V] === g.value) || (g.value = b[0][V]);
     }, { immediate: !0, deep: !0 });
-    const S = B(0), H = Q(() => S.value === o.steps.length - 1), M = Q(() => ({
+    const S = B(0), H = Q(() => S.value === o.steps.length - 1), A = Q(() => ({
       transform: `translate(${r.value}px, ${y.value}px)`
     })), G = B(ve({}, o.bodyStyle));
-    let X = -1, L = null, R = null;
+    let K = -1, L = null, R = null;
     const Y = (b) => {
       p.value = b, i.value = F.value ? null : b;
     }, W = () => {
       const b = h.value;
       if (!b) return;
-      const V = i.value, K = C.value, Z = b.scrollHeight || b.clientHeight;
-      if (!Z) return;
-      const xe = (V == null ? void 0 : V.clientHeight) || 0, Se = (K == null ? void 0 : K.clientHeight) || 0, $e = document.body.offsetHeight, te = Z + xe + Se + 85 >= $e ? $e - xe - Se - 82 : Z;
-      te <= 0 || te === X || (X = te, G.value = Object.assign({ height: `${te}px` }, o.bodyStyle));
+      const V = i.value, X = C.value, q = b.scrollHeight || b.clientHeight;
+      if (!q) return;
+      const xe = (V == null ? void 0 : V.clientHeight) || 0, Se = (X == null ? void 0 : X.clientHeight) || 0, $e = document.body.offsetHeight, te = q + xe + Se + 85 >= $e ? $e - xe - Se - 82 : q;
+      te <= 0 || te === K || (K = te, G.value = Object.assign({ height: `${te}px` }, o.bodyStyle));
     }, U = () => {
-      Je(() => {
+      Ze(() => {
         L || (L = requestAnimationFrame(() => {
           L = null, W();
         }));
@@ -1665,13 +1665,13 @@ const Vo = { class: "modalHeader" }, jo = {
       n("handSave", "save");
     }
     return tt(() => {
-      s.value && (r.value = x.value + Math.min(Math.max(c.value.left, m.value), c.value.right) - u.value, y.value = w.value + Math.min(Math.max(c.value.top, $.value), c.value.bottom) - d.value);
+      s.value && (r.value = x.value + Math.min(Math.max(c.value.left, m.value), c.value.right) - d.value, y.value = w.value + Math.min(Math.max(c.value.top, $.value), c.value.bottom) - u.value);
     }), j([m, $], () => {
       var b, V;
       if (!s.value) {
-        u.value = m.value, d.value = $.value;
-        const K = document.body.getBoundingClientRect(), Z = (V = (b = i.value) == null ? void 0 : b.getBoundingClientRect()) != null ? V : { width: 0, height: 0 };
-        c.value.right = K.width - Z.width, c.value.bottom = K.height - Z.height, x.value = r.value, w.value = y.value;
+        d.value = m.value, u.value = $.value;
+        const X = document.body.getBoundingClientRect(), q = (V = (b = i.value) == null ? void 0 : b.getBoundingClientRect()) != null ? V : { width: 0, height: 0 };
+        c.value.right = X.width - q.width, c.value.bottom = X.height - q.height, x.value = r.value, w.value = y.value;
       }
       s.value = !0;
     }), j(v, () => {
@@ -1698,7 +1698,7 @@ const Vo = { class: "modalHeader" }, jo = {
     ), et(() => {
       R && (R.disconnect(), R = null), L && (cancelAnimationFrame(L), L = null);
     }), (b, V) => {
-      const K = so, Z = ro, xe = uo, Se = co, $e = io, te = we("poweroff-outlined"), ce = Ae, Re = we("save-outlined"), gt = we("arrow-left-outlined"), yt = we("arrow-right-outlined"), Ct = _;
+      const X = so, q = ro, xe = uo, Se = co, $e = io, te = we("poweroff-outlined"), ce = Me, Re = we("save-outlined"), gt = we("arrow-left-outlined"), yt = we("arrow-right-outlined"), Ct = _;
       return E(), ne(Ct, Ot({
         open: O.value,
         "body-style": G.value,
@@ -1734,7 +1734,7 @@ const Vo = { class: "modalHeader" }, jo = {
             ref: C
           }, [
             _e(b.$slots, "footer", {}, void 0, !0)
-          ], 512)) : q("", !0),
+          ], 512)) : J("", !0),
           !b.$slots.footer && (!e.steps || !e.steps.length) ? (E(), le("div", {
             key: 1,
             ref_key: "footerSlot",
@@ -1743,7 +1743,7 @@ const Vo = { class: "modalHeader" }, jo = {
             a(ce, { onClick: me }, {
               default: k(() => [
                 a(te),
-                ue(ae(b.$l("关闭")), 1)
+                de(ae(b.$l("关闭")), 1)
               ]),
               _: 1
             }),
@@ -1754,11 +1754,11 @@ const Vo = { class: "modalHeader" }, jo = {
             }, {
               default: k(() => [
                 a(Re),
-                ue(" " + ae(b.$l(e.saveBtnText)), 1)
+                de(" " + ae(b.$l(e.saveBtnText)), 1)
               ]),
               _: 1
             })
-          ], 512)) : q("", !0),
+          ], 512)) : J("", !0),
           e.steps && e.steps.length > 0 ? (E(), le("div", {
             key: 2,
             ref_key: "footerSlot",
@@ -1767,7 +1767,7 @@ const Vo = { class: "modalHeader" }, jo = {
             a(ce, { onClick: me }, {
               default: k(() => [
                 a(te),
-                ue(ae(b.$l("关闭")), 1)
+                de(ae(b.$l("关闭")), 1)
               ]),
               _: 1
             }),
@@ -1778,10 +1778,10 @@ const Vo = { class: "modalHeader" }, jo = {
             }, {
               default: k(() => [
                 a(gt),
-                ue(ae(b.$l("上一步")), 1)
+                de(ae(b.$l("上一步")), 1)
               ]),
               _: 1
-            }, 8, ["disabled"])) : q("", !0),
+            }, 8, ["disabled"])) : J("", !0),
             e.steps.length ? (E(), ne(ce, {
               key: 1,
               type: "primary",
@@ -1790,10 +1790,10 @@ const Vo = { class: "modalHeader" }, jo = {
             }, {
               default: k(() => [
                 a(yt),
-                ue(ae(b.$l("下一步")), 1)
+                de(ae(b.$l("下一步")), 1)
               ]),
               _: 1
-            }, 8, ["disabled"])) : q("", !0),
+            }, 8, ["disabled"])) : J("", !0),
             H.value ? (E(), ne(ce, {
               key: 2,
               style: { "margin-right": "8px" },
@@ -1802,17 +1802,17 @@ const Vo = { class: "modalHeader" }, jo = {
             }, {
               default: k(() => [
                 a(Re),
-                ue(" " + ae(b.$l(e.saveBtnText)), 1)
+                de(" " + ae(b.$l(e.saveBtnText)), 1)
               ]),
               _: 1
-            })) : q("", !0)
-          ], 512)) : q("", !0)
+            })) : J("", !0)
+          ], 512)) : J("", !0)
         ]),
         modalRender: k(({ originVNode: oe }) => [
           pe("div", {
-            style: Mt(M.value)
+            style: At(A.value)
           }, [
-            (E(), ne(At(oe)))
+            (E(), ne(Mt(oe)))
           ], 4)
         ]),
         default: k(() => [
@@ -1823,19 +1823,19 @@ const Vo = { class: "modalHeader" }, jo = {
                 ref: h
               }, [
                 e.tabs && e.tabs.length > 0 ? (E(), le("div", jo, [
-                  a(Z, {
+                  a(q, {
                     "active-key": g.value,
                     onChange: he
                   }, {
                     default: k(() => [
-                      (E(!0), le(Me, null, ke(e.tabs, (oe) => (E(), ne(K, {
+                      (E(!0), le(Ae, null, ke(e.tabs, (oe) => (E(), ne(X, {
                         tab: oe[e.tabKey.label],
                         key: oe[z.value]
                       }, null, 8, ["tab"]))), 128))
                     ]),
                     _: 1
                   }, 8, ["active-key"])
-                ])) : q("", !0),
+                ])) : J("", !0),
                 e.steps && e.steps.length ? (E(), le("div", Go, [
                   a(Se, {
                     current: S.value,
@@ -1843,7 +1843,7 @@ const Vo = { class: "modalHeader" }, jo = {
                     size: "small"
                   }, {
                     default: k(() => [
-                      (E(!0), le(Me, null, ke(e.steps, (oe) => (E(), ne(xe, {
+                      (E(!0), le(Ae, null, ke(e.steps, (oe) => (E(), ne(xe, {
                         title: oe,
                         key: oe,
                         disabled: !0
@@ -1851,8 +1851,8 @@ const Vo = { class: "modalHeader" }, jo = {
                     ]),
                     _: 1
                   }, 8, ["current"])
-                ], 512)) : q("", !0),
-                pe("div", Xo, [
+                ], 512)) : J("", !0),
+                pe("div", Ko, [
                   _e(b.$slots, "default", {}, void 0, !0)
                 ])
               ], 512)
@@ -1864,7 +1864,7 @@ const Vo = { class: "modalHeader" }, jo = {
       }, 16, ["open", "body-style", "width", "centered", "destroyOnClose", "keyboard", "style", "maskClosable", "mask", "wrap-class-name"]);
     };
   }
-}), tn = /* @__PURE__ */ ao(Ko, [["__scopeId", "data-v-1e66a060"]]);
+}), tn = /* @__PURE__ */ ao(Xo, [["__scopeId", "data-v-1e66a060"]]);
 export {
   tn as default
 };

+ 17 - 17
lib/js/SNewestDataListLayout.js

@@ -1,6 +1,6 @@
-import { ref as s, computed as Y, watch as Z, nextTick as O, onMounted as De, onActivated as Te, resolveComponent as D, resolveDirective as Pe, openBlock as n, createElementBlock as l, createVNode as g, withCtx as y, createElementVNode as m, toDisplayString as k, Fragment as ee, renderList as Ae, withDirectives as x, createBlock as $, createTextVNode as F, resolveDynamicComponent as Ie, createCommentVNode as a, vShow as te, renderSlot as r, normalizeStyle as Ee, unref as Me, h as Re } from "vue";
+import { ref as s, computed as Y, watch as Z, nextTick as O, onMounted as De, onActivated as Te, resolveComponent as D, resolveDirective as Ae, openBlock as n, createElementBlock as l, createVNode as g, withCtx as y, createElementVNode as m, toDisplayString as k, Fragment as ee, renderList as Ie, withDirectives as x, createBlock as $, 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 ze } from "vue-router";
-import { n as Le, ao as xe, B as Fe, y as Ke, cP as Ne } from "./index2.js";
+import { n as Le, aA as xe, B as Fe, y as Ke, c_ as Ne } from "./index2.js";
 const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" }, We = {
   key: 0,
   style: { "margin-left": "8px" }
@@ -157,7 +157,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
       TopOfType: "VerticalAlignTopOutlined",
       TOP: "VerticalAlignTopOutlined",
       synchronize: "SyncOutlined"
-    }, V = Y(() => h.value.map((e) => e.key).includes("import")), P = Y(() => h.value.find((e) => e.key === "import") || {});
+    }, V = Y(() => h.value.map((e) => e.key).includes("import")), A = Y(() => h.value.find((e) => e.key === "import") || {});
     Z(
       () => S.buttons,
       (e) => {
@@ -190,10 +190,10 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
         ce();
       });
     }
-    function A() {
+    function I() {
       b.value = !b.value, z();
     }
-    function I() {
+    function P() {
       p("reset");
     }
     function E() {
@@ -305,8 +305,8 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
       import: ye,
       export: pe,
       reload: E,
-      filterReset: I,
-      toggleFilter: A,
+      filterReset: P,
+      toggleFilter: I,
       setStateBtn: X,
       handAction: M
     }, ge = {
@@ -343,14 +343,14 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
       renderButtons: h,
       setStateBtn: X,
       btnCallback: H,
-      filterReset: I,
-      toggleFilter: A,
+      filterReset: P,
+      toggleFilter: I,
       table: w,
       importVisible: C,
       measureLayout: z,
       advancedSearch: Q
     }), (e, t) => {
-      const i = Fe, d = D("down-outlined"), L = D("up-outlined"), v = D("sync-outlined"), Se = Ke, Ce = xe, _e = D("s-import-modal"), Be = Pe("action");
+      const i = Fe, d = D("down-outlined"), L = D("up-outlined"), v = D("sync-outlined"), Se = Ke, Ce = xe, _e = D("s-import-modal"), Be = Ae("action");
       return n(), l("div", {
         class: "list-layout",
         ref_key: "layout",
@@ -361,7 +361,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
             m("div", Ue, [
               m("div", Ve, k(e.$l(u.title)), 1),
               m("div", qe, [
-                (n(!0), l(ee, null, Ae(h.value, (o) => (n(), l("span", {
+                (n(!0), l(ee, null, Ie(h.value, (o) => (n(), l("span", {
                   class: "item-btn",
                   key: o.key
                 }, [
@@ -372,7 +372,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
                     onClick: (Oe) => H(o)
                   }, {
                     icon: y(() => [
-                      W(o) ? (n(), $(Ie(W(o)), { key: 0 })) : a("", !0)
+                      W(o) ? (n(), $(Pe(W(o)), { key: 0 })) : a("", !0)
                     ]),
                     default: y(() => [
                       F(" " + k(e.$l(o.name)), 1)
@@ -415,7 +415,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
                     e.$slots.filterMore ? (n(), l("a", {
                       key: 0,
                       class: "filter-more-btn",
-                      onClick: A
+                      onClick: I
                     }, [
                       F(k(b.value ? e.$l("收起") : e.$l("更多筛选")) + " ", 1),
                       b.value ? (n(), $(L, {
@@ -448,7 +448,7 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
                         default: y(() => [
                           g(i, {
                             style: { "padding-bottom": "2px" },
-                            onClick: I
+                            onClick: P
                           }, {
                             icon: y(() => [
                               g(v)
@@ -540,11 +540,11 @@ const Ue = { class: "tools" }, Ve = { class: "title" }, qe = { class: "btns" },
           key: 0,
           ref_key: "importModalRef",
           ref: re,
-          "upload-url": P.value.importUploadUrl,
+          "upload-url": A.value.importUploadUrl,
           value: C.value,
           "onUpdate:value": t[1] || (t[1] = (o) => C.value = o),
-          columns: P.value.importColumns,
-          apis: P.value.importApis,
+          columns: A.value.importColumns,
+          apis: A.value.importApis,
           onReload: E
         }, null, 8, ["upload-url", "value", "columns", "apis"])) : a("", !0)
       ], 512);

+ 10 - 10
lib/js/SOfficeSelect.js

@@ -1,4 +1,4 @@
-var U = ($, D, p) => new Promise((b, m) => {
+var B = ($, D, p) => new Promise((b, m) => {
   var A = (c) => {
     try {
       u(p.next(c));
@@ -14,9 +14,9 @@ var U = ($, D, p) => new Promise((b, m) => {
   }, u = (c) => c.done ? b(c.value) : Promise.resolve(c.value).then(A, w);
   u((p = p.apply($, D)).next());
 });
-import { ref as o, watch as re, resolveComponent as B, openBlock as k, createElementBlock as S, createVNode as d, withCtx as h, createElementVNode as t, toDisplayString as i, createTextVNode as I, withModifiers as ve, Fragment as J, renderList as R, createCommentVNode as he } from "vue";
-import { ap as _e, B as pe, d1 as me, ct as fe, cu as ge, d2 as we, d3 as Ce, d4 as ye, d5 as ke, d6 as Se } from "./index2.js";
-const $e = { class: "s-office-select-common" }, be = { class: "modal-container" }, Oe = { class: "side" }, Ne = { class: "main" }, Ve = { class: "filter" }, Ae = { class: "list-wrap" }, Le = { class: "item left-wrap" }, Te = { class: "head" }, je = { class: "sub-title" }, Ue = { class: "right" }, Be = { href: "javascript:;" }, Ie = ["onClick"], De = { class: "icon s-theme-icon-bg" }, Ee = { class: "cont" }, Fe = { class: "name" }, Me = { class: "job" }, ze = {
+import { ref as o, watch as re, resolveComponent as U, openBlock as k, createElementBlock as S, createVNode as d, withCtx as h, createElementVNode as t, toDisplayString as i, createTextVNode as I, withModifiers as ve, Fragment as J, renderList as R, createCommentVNode as he } from "vue";
+import { aB as _e, B as pe, dc as me, cE as fe, cF as ge, dd as we, de as Ce, df as ye, dg as ke, dh as Se } from "./index2.js";
+const $e = { class: "s-office-select-common" }, be = { class: "modal-container" }, Oe = { class: "side" }, Ne = { class: "main" }, Ve = { class: "filter" }, Ae = { class: "list-wrap" }, Le = { class: "item left-wrap" }, Te = { class: "head" }, je = { class: "sub-title" }, Be = { class: "right" }, Ue = { href: "javascript:;" }, Ie = ["onClick"], De = { class: "icon s-theme-icon-bg" }, Ee = { class: "cont" }, Fe = { class: "name" }, Me = { class: "job" }, ze = {
   key: 0,
   class: "not-more"
 }, Ge = { class: "item right-wrap" }, Je = { class: "head" }, Re = { class: "sub-title" }, qe = { class: "icon s-theme-icon-bg" }, xe = { class: "cont" }, He = { class: "name" }, Ke = { class: "job" }, Pe = ["onClick"], Ze = {
@@ -67,7 +67,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
       c.value = !0;
     }, q = () => {
       c.value = !1;
-    }, y = (e = 1, l = 0) => U(this, null, function* () {
+    }, y = (e = 1, l = 0) => B(this, null, function* () {
       if (u.value) {
         u.value = !1;
         return;
@@ -99,7 +99,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
       }), y()();
     }, P = () => {
       O.value = !O.value, O.value ? W() : K();
-    }, Q = () => U(this, null, function* () {
+    }, Q = () => B(this, null, function* () {
       if (!N.value) {
         window.$message.warning(window.$l("请选择部门"));
         return;
@@ -121,7 +121,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
       p("update:value", b.multiple ? V : V[0] || ""), p("change", r, l, V, e);
     }, Z = (e, l) => {
       _.value = l.node, C.value = 1, L.value = 0, f.value = [], u.value = !0, N.value = e, F(e);
-    }, F = (e) => U(this, null, function* () {
+    }, F = (e) => B(this, null, function* () {
       const l = {
         pageNo: C.value,
         pageSize: 20,
@@ -144,7 +144,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
       u.value || e + n >= l - 20 && (E.value = j.value, j.value++, y(j.value, E.value));
     }, ae = (e) => Ce(e), se = (e) => we(e);
     return (e, l) => {
-      const n = _e, r = pe, V = B("s-tree"), g = B("DownOutlined"), oe = ge, ie = fe, ue = me, ce = B("CloseCircleOutlined"), de = B("s-modal");
+      const n = _e, r = pe, V = U("s-tree"), g = U("DownOutlined"), oe = ge, ie = fe, ue = me, ce = U("CloseCircleOutlined"), de = U("s-modal");
       return k(), S("div", $e, [
         d(n, {
           value: m.value,
@@ -209,7 +209,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
                   t("div", Le, [
                     t("div", Te, [
                       t("div", je, i(_.value.title || _.value.name), 1),
-                      t("div", Ue, [
+                      t("div", Be, [
                         d(r, {
                           type: "link",
                           onClick: P
@@ -225,7 +225,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
                               default: h(() => [
                                 d(oe, { onClick: Q }, {
                                   default: h(() => [
-                                    t("a", Be, i(e.$l("节点全选")), 1)
+                                    t("a", Ue, i(e.$l("节点全选")), 1)
                                   ]),
                                   _: 1
                                 })

+ 15 - 15
lib/js/SSideMenu.js

@@ -1,10 +1,10 @@
 import { ref as I, computed as d, reactive as A, watch as w, onMounted as D, resolveComponent as u, openBlock as p, createElementBlock as L, createElementVNode as v, createVNode as g, withCtx as N, createBlock as $, h as V } from "vue";
 import { useRouter as F } from "vue-router";
-import { n as j, ad as O, cQ as H, ct as Q, cR as m } from "./index2.js";
-const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
+import { n as j, ad as O, c$ as H, cE as W, d0 as m } from "./index2.js";
+const X = { class: "s-menu-slide-common" }, q = { class: "menu-wrap" }, z = {
   __name: "SSideMenu",
   emits: ["collapsed"],
-  setup(z, { emit: k }) {
+  setup(G, { emit: k }) {
     const i = F(), b = k, y = O(), f = I(""), C = d(() => {
       const e = window.$menuTheme;
       return !e || !e.token ? {} : { components: { Menu: e.token } };
@@ -20,7 +20,7 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
         n.preOpenKeys = t;
       }
     );
-    const M = (e, t) => t ? t.startsWith("/") ? t : e ? `${e.replace(/\/+$/, "")}/${t}` : `/${t}` : e || "", S = /(Outlined|Filled|TwoTone)$/, T = (e) => {
+    const M = (e, t) => t ? t.startsWith("/") ? t : e ? `${e.replace(/\/+$/, "")}/${t}` : `/${t}` : e || "", S = /(Outlined|Filled|TwoTone)$/, E = (e) => {
       if (!e) return m;
       const t = String(e).split(/[-_\s]+/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("");
       if (!t) return m;
@@ -28,7 +28,7 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
       return typeof o == "string" ? m : o;
     }, h = (e, t, l = 0, o = "") => e.map((s) => {
       var K;
-      const c = window.$l(((K = s.meta) == null ? void 0 : K.title) || s.name || ""), r = l === 0 && !s.children, a = M(o, s.path), B = s.meta.icon ? () => V(T(s.meta.icon)) : null, _ = {
+      const c = window.$l(((K = s.meta) == null ? void 0 : K.title) || s.name || ""), r = l === 0 && !s.children, a = M(o, s.path), B = s.meta.icon ? () => V(E(s.meta.icon)) : null, _ = {
         key: a,
         icon: B,
         // icon: null,
@@ -37,7 +37,7 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
         path: a
       };
       return s.children && (_.children = h(s.children, t, l + 1, a)), _;
-    }), E = d(() => {
+    }), T = d(() => {
       var l;
       const e = ((l = y.dynamics[0]) == null ? void 0 : l.children) || [], t = (window.$staticRoutes || []).filter(
         (o) => {
@@ -49,9 +49,9 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
         var s;
         return !((s = o.meta) != null && s.hidden);
       });
-    }), R = d(() => h(E.value, n.collapsed)), x = () => {
+    }), x = d(() => h(T.value, n.collapsed)), P = () => {
       n.collapsed = !n.collapsed, n.openKeys = n.collapsed ? [] : n.preOpenKeys, b("collapsed", n.collapsed);
-    }, P = (e) => {
+    }, R = (e) => {
       i.push(e.key), n.selectedKeys = [e.key], window.$utils.ls.set("selectedKeys", n.selectedKeys);
     }, U = (e) => {
       n.openKeys = e, O().setMenuOpenKeys(n.openKeys);
@@ -73,9 +73,9 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
         e && (n.selectedKeys = [e], window.$utils.ls.set("selectedKeys", n.selectedKeys));
       }
     ), (e, t) => {
-      const l = Q, o = H, s = u("DoubleRightOutlined"), c = u("DoubleLeftOutlined");
-      return p(), L("div", W, [
-        v("div", X, [
+      const l = W, o = H, s = u("DoubleRightOutlined"), c = u("DoubleLeftOutlined");
+      return p(), L("div", X, [
+        v("div", q, [
           g(o, { theme: C.value }, {
             default: N(() => [
               g(l, {
@@ -84,9 +84,9 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
                 selectedKeys: n.selectedKeys,
                 "onUpdate:selectedKeys": t[1] || (t[1] = (r) => n.selectedKeys = r),
                 mode: "inline",
-                items: R.value,
+                items: x.value,
                 theme: f.value,
-                onSelect: P,
+                onSelect: R,
                 onOpenChange: U
               }, null, 8, ["openKeys", "selectedKeys", "items", "theme"])
             ]),
@@ -100,14 +100,14 @@ const W = { class: "s-menu-slide-common" }, X = { class: "menu-wrap" }, q = {
             color: "var(--s-menu-text, #344051)",
             border: "1px solid var(--s-menu-bg, #ebf7fe)"
           },
-          onClick: x
+          onClick: P
         }, [
           n.collapsed ? (p(), $(s, { key: 0 })) : (p(), $(c, { key: 1 }))
         ])
       ]);
     };
   }
-}, Z = /* @__PURE__ */ j(q, [["__scopeId", "data-v-e3383016"]]);
+}, Z = /* @__PURE__ */ j(z, [["__scopeId", "data-v-e3383016"]]);
 export {
   Z as default
 };

+ 1 - 1
lib/js/SSuperListLayout.js

@@ -10,7 +10,7 @@ var Y = (u, r, d) => r in u ? ze(u, r, { enumerable: !0, configurable: !0, writa
   return u;
 };
 import { ref as a, computed as z, watch as Z, onMounted as qe, onActivated as Ue, resolveComponent as h, resolveDirective as Ve, openBlock as l, createElementBlock as i, createElementVNode as m, toDisplayString as b, Fragment as ee, renderList as Ne, withDirectives as te, createBlock as R, withCtx as k, createTextVNode as D, resolveDynamicComponent as je, createCommentVNode as c, vShow as ne, renderSlot as v, createVNode as p, unref as He, nextTick as oe, h as We } from "vue";
-import { n as Ge, B as Je, y as Qe, cP as Xe } from "./index2.js";
+import { n as Ge, B as Je, y as Qe, c_ as Xe } from "./index2.js";
 const Ye = { class: "tools" }, Ze = { class: "title" }, et = { class: "btn-list" }, tt = {
   key: 0,
   style: { "margin-left": "8px" }

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
lib/js/SToggleLanguage.js


+ 38 - 38
lib/js/STopMenu.js

@@ -1,12 +1,12 @@
 import { ref as bn, computed as Ft, reactive as mn, watch as Vt, onMounted as wn, openBlock as vn, createElementBlock as Tn, createElementVNode as An, createVNode as kt, withCtx as Sn } from "vue";
 import { useRouter as Cn } from "vue-router";
-import { bY as xn, bX as F, n as Kn, ad as Wt, cQ as On, ct as jn } from "./index2.js";
+import { c7 as xn, c6 as F, n as Kn, ad as Wt, c$ as On, cE as jn } from "./index2.js";
 var V = { exports: {} };
 V.exports;
 (function(p, h) {
-  var C = 200, w = "__lodash_hash_undefined__", _ = 9007199254740991, s = "[object Arguments]", I = "[object Array]", P = "[object Boolean]", $ = "[object Date]", k = "[object Error]", o = "[object Function]", c = "[object GeneratorFunction]", i = "[object Map]", d = "[object Number]", g = "[object Object]", ot = "[object Promise]", at = "[object RegExp]", R = "[object Set]", st = "[object String]", it = "[object Symbol]", W = "[object WeakMap]", ct = "[object ArrayBuffer]", B = "[object DataView]", ut = "[object Float32Array]", ft = "[object Float64Array]", lt = "[object Int8Array]", pt = "[object Int16Array]", ht = "[object Int32Array]", dt = "[object Uint8Array]", _t = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", yt = "[object Uint32Array]", qt = /[\\^$.*+?()[\]{}|]/g, zt = /\w*$/, Xt = /^\[object .+?Constructor\]$/, Yt = /^(?:0|[1-9]\d*)$/, a = {};
-  a[s] = a[I] = a[ct] = a[B] = a[P] = a[$] = a[ut] = a[ft] = a[lt] = a[pt] = a[ht] = a[i] = a[d] = a[g] = a[at] = a[R] = a[st] = a[it] = a[dt] = a[_t] = a[gt] = a[yt] = !0, a[k] = a[o] = a[W] = !1;
-  var Jt = typeof F == "object" && F && F.Object === Object && F, Qt = typeof self == "object" && self && self.Object === Object && self, y = Jt || Qt || Function("return this")(), bt = h && !h.nodeType && h, mt = bt && !0 && p && !p.nodeType && p, Zt = mt && mt.exports === bt;
+  var C = 200, w = "__lodash_hash_undefined__", _ = 9007199254740991, s = "[object Arguments]", I = "[object Array]", $ = "[object Boolean]", P = "[object Date]", k = "[object Error]", o = "[object Function]", c = "[object GeneratorFunction]", i = "[object Map]", d = "[object Number]", g = "[object Object]", ot = "[object Promise]", at = "[object RegExp]", R = "[object Set]", st = "[object String]", it = "[object Symbol]", W = "[object WeakMap]", ct = "[object ArrayBuffer]", B = "[object DataView]", ut = "[object Float32Array]", ft = "[object Float64Array]", lt = "[object Int8Array]", pt = "[object Int16Array]", ht = "[object Int32Array]", dt = "[object Uint8Array]", _t = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", yt = "[object Uint32Array]", qt = /[\\^$.*+?()[\]{}|]/g, zt = /\w*$/, Jt = /^\[object .+?Constructor\]$/, Xt = /^(?:0|[1-9]\d*)$/, a = {};
+  a[s] = a[I] = a[ct] = a[B] = a[$] = a[P] = a[ut] = a[ft] = a[lt] = a[pt] = a[ht] = a[i] = a[d] = a[g] = a[at] = a[R] = a[st] = a[it] = a[dt] = a[_t] = a[gt] = a[yt] = !0, a[k] = a[o] = a[W] = !1;
+  var Yt = typeof F == "object" && F && F.Object === Object && F, Zt = typeof self == "object" && self && self.Object === Object && self, y = Yt || Zt || Function("return this")(), bt = h && !h.nodeType && h, mt = bt && !0 && p && !p.nodeType && p, Qt = mt && mt.exports === bt;
   function te(t, e) {
     return t.set(e[0], e[1]), t;
   }
@@ -67,7 +67,7 @@ V.exports;
     return t ? "Symbol(src)_1." + t : "";
   }(), Ct = ie.toString, v = G.hasOwnProperty, U = G.toString, ce = RegExp(
     "^" + Ct.call(v).replace(qt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
-  ), xt = Zt ? y.Buffer : void 0, Kt = y.Symbol, Ot = y.Uint8Array, ue = q(Object.getPrototypeOf, Object), fe = Object.create, le = G.propertyIsEnumerable, pe = se.splice, jt = Object.getOwnPropertySymbols, he = xt ? xt.isBuffer : void 0, de = q(Object.keys, Object), X = O(y, "DataView"), E = O(y, "Map"), Y = O(y, "Promise"), J = O(y, "Set"), Q = O(y, "WeakMap"), M = O(Object, "create"), _e = S(X), ge = S(E), ye = S(Y), be = S(J), me = S(Q), Et = Kt ? Kt.prototype : void 0, Mt = Et ? Et.valueOf : void 0;
+  ), xt = Qt ? y.Buffer : void 0, Kt = y.Symbol, Ot = y.Uint8Array, ue = q(Object.getPrototypeOf, Object), fe = Object.create, le = G.propertyIsEnumerable, pe = se.splice, jt = Object.getOwnPropertySymbols, he = xt ? xt.isBuffer : void 0, de = q(Object.keys, Object), J = O(y, "DataView"), E = O(y, "Map"), X = O(y, "Promise"), Y = O(y, "Set"), Z = O(y, "WeakMap"), M = O(Object, "create"), _e = S(J), ge = S(E), ye = S(X), be = S(Y), me = S(Z), Et = Kt ? Kt.prototype : void 0, Mt = Et ? Et.valueOf : void 0;
   function T(t) {
     var e = -1, n = t ? t.length : 0;
     for (this.clear(); ++e < n; ) {
@@ -147,13 +147,13 @@ V.exports;
   function Ie(t) {
     return L(this, t).get(t);
   }
-  function Pe(t) {
+  function $e(t) {
     return L(this, t).has(t);
   }
-  function $e(t, e) {
+  function Pe(t, e) {
     return L(this, t).set(t, e), this;
   }
-  x.prototype.clear = Ee, x.prototype.delete = Me, x.prototype.get = Ie, x.prototype.has = Pe, x.prototype.set = $e;
+  x.prototype.clear = Ee, x.prototype.delete = Me, x.prototype.get = Ie, x.prototype.has = $e, x.prototype.set = Pe;
   function K(t) {
     this.__data__ = new b(t);
   }
@@ -197,9 +197,9 @@ V.exports;
     return -1;
   }
   function Ne(t, e) {
-    return t && Pt(e, nt(e), t);
+    return t && $t(e, nt(e), t);
   }
-  function Z(t, e, n, r, u, f, m) {
+  function Q(t, e, n, r, u, f, m) {
     var l;
     if (r && (l = f ? r(t, u, f, m) : r(t)), l !== void 0)
       return l;
@@ -221,7 +221,7 @@ V.exports;
       } else {
         if (!a[j])
           return f ? t : {};
-        l = an(t, j, Z, e);
+        l = an(t, j, Q, e);
       }
     }
     m || (m = new K());
@@ -231,7 +231,7 @@ V.exports;
     if (m.set(t, l), !Ht)
       var Dt = n ? nn(t) : nt(t);
     return ne(Dt || t, function(rt, D) {
-      Dt && (D = rt, rt = t[D]), It(l, D, Z(rt, e, n, r, D, t, m));
+      Dt && (D = rt, rt = t[D]), It(l, D, Q(rt, e, n, r, D, t, m));
     }), l;
   }
   function De(t) {
@@ -247,7 +247,7 @@ V.exports;
   function ke(t) {
     if (!N(t) || un(t))
       return !1;
-    var e = Ut(t) || vt(t) ? ce : Xt;
+    var e = Ut(t) || vt(t) ? ce : Jt;
     return e.test(S(t));
   }
   function We(t) {
@@ -272,22 +272,22 @@ V.exports;
     var n = e ? tt(t.buffer) : t.buffer;
     return new t.constructor(n, t.byteOffset, t.byteLength);
   }
-  function Xe(t, e, n) {
+  function Je(t, e, n) {
     var r = e ? n(Tt(t), !0) : Tt(t);
     return wt(r, te, new t.constructor());
   }
-  function Ye(t) {
+  function Xe(t) {
     var e = new t.constructor(t.source, zt.exec(t));
     return e.lastIndex = t.lastIndex, e;
   }
-  function Je(t, e, n) {
+  function Ye(t, e, n) {
     var r = e ? n(At(t), !0) : At(t);
     return wt(r, ee, new t.constructor());
   }
-  function Qe(t) {
+  function Ze(t) {
     return Mt ? Object(Mt.call(t)) : {};
   }
-  function Ze(t, e) {
+  function Qe(t, e) {
     var n = e ? tt(t.buffer) : t.buffer;
     return new t.constructor(n, t.byteOffset, t.length);
   }
@@ -297,7 +297,7 @@ V.exports;
       e[n] = t[n];
     return e;
   }
-  function Pt(t, e, n, r) {
+  function $t(t, e, n, r) {
     n || (n = {});
     for (var u = -1, f = e.length; ++u < f; ) {
       var m = e[u], l = void 0;
@@ -306,10 +306,10 @@ V.exports;
     return n;
   }
   function en(t, e) {
-    return Pt(t, $t(t), e);
+    return $t(t, Pt(t), e);
   }
   function nn(t) {
-    return Fe(t, nt, $t);
+    return Fe(t, nt, Pt);
   }
   function L(t, e) {
     var n = t.__data__;
@@ -319,8 +319,8 @@ V.exports;
     var n = ae(t, e);
     return ke(n) ? n : void 0;
   }
-  var $t = jt ? q(jt, Object) : gn, A = Ve;
-  (X && A(new X(new ArrayBuffer(1))) != B || E && A(new E()) != i || Y && A(Y.resolve()) != ot || J && A(new J()) != R || Q && A(new Q()) != W) && (A = function(t) {
+  var Pt = jt ? q(jt, Object) : gn, A = Ve;
+  (J && A(new J(new ArrayBuffer(1))) != B || E && A(new E()) != i || X && A(X.resolve()) != ot || Y && A(new Y()) != R || Z && A(new Z()) != W) && (A = function(t) {
     var e = U.call(t), n = e == g ? t.constructor : void 0, r = n ? S(n) : void 0;
     if (r)
       switch (r) {
@@ -349,8 +349,8 @@ V.exports;
     switch (e) {
       case ct:
         return tt(t);
-      case P:
       case $:
+      case P:
         return new u(+t);
       case B:
         return ze(t, r);
@@ -363,22 +363,22 @@ V.exports;
       case _t:
       case gt:
       case yt:
-        return Ze(t, r);
+        return Qe(t, r);
       case i:
-        return Xe(t, r, n);
+        return Je(t, r, n);
       case d:
       case st:
         return new u(t);
       case at:
-        return Ye(t);
+        return Xe(t);
       case R:
-        return Je(t, r, n);
+        return Ye(t, r, n);
       case it:
-        return Qe(t);
+        return Ze(t);
     }
   }
   function sn(t, e) {
-    return e = e == null ? _ : e, !!e && (typeof t == "number" || Yt.test(t)) && t > -1 && t % 1 == 0 && t < e;
+    return e = e == null ? _ : e, !!e && (typeof t == "number" || Xt.test(t)) && t > -1 && t % 1 == 0 && t < e;
   }
   function cn(t) {
     var e = typeof t;
@@ -405,7 +405,7 @@ V.exports;
     return "";
   }
   function fn(t) {
-    return Z(t, !0, !0);
+    return Q(t, !0, !0);
   }
   function Bt(t, e) {
     return t === e || t !== t && e !== e;
@@ -463,7 +463,7 @@ function In(p) {
   }
   return p;
 }
-const Pn = { class: "s-menu-top-common" }, $n = { class: "menu-wrap" }, Rn = {
+const $n = { class: "s-menu-top-common" }, Pn = { class: "menu-wrap" }, Rn = {
   __name: "STopMenu",
   setup(p) {
     const h = Cn(), C = Wt(), w = bn(""), _ = Ft(() => {
@@ -491,13 +491,13 @@ const Pn = { class: "s-menu-top-common" }, $n = { class: "menu-wrap" }, Rn = {
         path: i.path
       };
       return i.children && (d.children = I(i.children)), d;
-    }), P = Ft(() => {
+    }), $ = Ft(() => {
       const o = In(C.dynamics.find((i) => i.path === "/")), c = o && o.children || [];
       return I([...c].filter((i) => {
         var d;
         return !((d = i.meta) != null && d.hidden);
       }));
-    }), $ = (o) => {
+    }), P = (o) => {
       h.push(o.key), s.selectedKeys = [o.key], window.$utils.ls.set("selectedKeys", s.selectedKeys);
     }, k = (o) => {
       const c = o.filter((g) => !s.preOpenKeys.includes(g)), i = c[c.length - 1];
@@ -519,8 +519,8 @@ const Pn = { class: "s-menu-top-common" }, $n = { class: "menu-wrap" }, Rn = {
       }
     ), (o, c) => {
       const i = jn, d = On;
-      return vn(), Tn("div", Pn, [
-        An("div", $n, [
+      return vn(), Tn("div", $n, [
+        An("div", Pn, [
           kt(d, { theme: _.value }, {
             default: Sn(() => [
               kt(i, {
@@ -530,8 +530,8 @@ const Pn = { class: "s-menu-top-common" }, $n = { class: "menu-wrap" }, Rn = {
                 "onUpdate:selectedKeys": c[1] || (c[1] = (g) => s.selectedKeys = g),
                 mode: "horizontal",
                 theme: w.value,
-                items: P.value,
-                onSelect: $,
+                items: $.value,
+                onSelect: P,
                 onOpenChange: k
               }, null, 8, ["openKeys", "selectedKeys", "theme", "items"])
             ]),

+ 12 - 12
lib/js/SUserSelect.js

@@ -15,8 +15,8 @@ var j = (S, F, w) => new Promise((I, m) => {
   g((w = w.apply(S, F)).next());
 });
 import { ref as u, watch as Ce, onMounted as ke, resolveComponent as J, openBlock as d, createElementBlock as v, createVNode as f, withCtx as $, createElementVNode as s, toDisplayString as i, createTextVNode as b, createCommentVNode as te, Fragment as q, renderList as ae } from "vue";
-import { ap as Se, B as we, dc as se, d2 as $e, d3 as be, dd as Ee } from "./index2.js";
-const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container" }, Ne = { class: "side" }, Ie = { class: "main" }, Te = { class: "filter" }, Ue = { class: "list-wrap" }, Ve = { class: "item left-wrap" }, Oe = { class: "head" }, Be = { class: "sub-title" }, Re = {
+import { aB as Se, B as we, dn as se, dd as $e, de as be, dp as Ee } from "./index2.js";
+const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container" }, Ne = { class: "side" }, Ie = { class: "main" }, Te = { class: "filter" }, Ue = { class: "list-wrap" }, Ve = { class: "item left-wrap" }, Be = { class: "head" }, Oe = { class: "sub-title" }, Re = {
   key: 0,
   class: "right"
 }, je = ["onClick"], qe = { class: "icon s-theme-icon-bg" }, Fe = ["src", "onError"], Me = { class: "cont" }, Pe = { class: "name" }, xe = { class: "job" }, ze = {
@@ -55,7 +55,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
     var ee, le;
     const I = w, m = S, M = (((le = (ee = window.$utils) == null ? void 0 : ee.env) == null ? void 0 : le.VITE_APP_API_FILE_URL) || "/") + "", T = (e) => /^https?:\/\//.test(e) ? e : `${M}file/preview?id=${e}`, g = u(""), h = u(""), y = u(""), p = u(!1), E = u(!1), U = u({}), C = u([]), n = u([]), k = u(1), A = u(0), L = u(!1);
     let V = null;
-    const D = u(""), c = u([]), O = u(1), K = u(20), P = u(0);
+    const D = u(""), c = u([]), B = u(1), K = u(20), P = u(0);
     let G = 0, H = "", Q = !1;
     const W = (e) => {
       if (e && e.length) {
@@ -67,16 +67,16 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
     Ce(
       () => m.value,
       (e) => {
-        W(e), Q && B();
+        W(e), Q && O();
       },
       { immediate: !0 }
     );
     const X = () => {
-      E.value = !0, B();
+      E.value = !0, O();
     }, Y = () => {
       X();
     }, ne = () => {
-      E.value = !1, W(m.value), B();
+      E.value = !1, W(m.value), O();
     }, N = (e = 1, l = 0) => j(this, null, function* () {
       if (p.value) {
         p.value = !1;
@@ -84,7 +84,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       }
       e === 1 && (c.value = []);
       let a = [];
-      if (n.value.length < 100 ? (O.value = 1, P.value = 0, a = n.value) : a = n.value.slice(l * (K.value || 20), e * (K.value || 20)), !a.length || c.value.length && a.length >= n.value.length && a.length >= c.value.length)
+      if (n.value.length < 100 ? (B.value = 1, P.value = 0, a = n.value) : a = n.value.slice(l * (K.value || 20), e * (K.value || 20)), !a.length || c.value.length && a.length >= n.value.length && a.length >= c.value.length)
         return;
       p.value = !0;
       const o = yield se(a), _ = c.value.concat(o || []);
@@ -96,7 +96,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
     }, Z = () => {
       const l = c.value.filter((o) => n.value.includes(o.id)).map((o) => o.name), a = l.length - 1;
       g.value = l.slice(0, 1).join(",") + (a > 0 ? " +" + a : "");
-    }, B = () => j(this, null, function* () {
+    }, O = () => j(this, null, function* () {
       if (!n.value.length) {
         g.value = "", c.value = [];
         return;
@@ -105,7 +105,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       c.value = e || [], Z();
     });
     ke(() => {
-      Q = !0, B();
+      Q = !0, O();
     });
     const ue = () => {
       C.value.forEach((e) => {
@@ -161,7 +161,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
     }, _e = ({ target: { offsetHeight: e, scrollHeight: l, scrollTop: a } }) => {
       p.value || e + a >= l - 20 && k.value < A.value && (k.value++, x());
     }, fe = ({ target: { offsetHeight: e, scrollHeight: l, scrollTop: a } }) => {
-      p.value || e + a >= l - 20 && (P.value = O.value, O.value++, N(O.value, P.value));
+      p.value || e + a >= l - 20 && (P.value = B.value, B.value++, N(B.value, P.value));
     }, me = (e) => be(e), ge = (e) => $e(e);
     return F({ open: X }), (e, l) => {
       const a = Se, o = we, _ = J("s-tree"), r = J("CloseCircleOutlined"), R = J("s-modal");
@@ -227,8 +227,8 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                 ]),
                 s("div", Ue, [
                   s("div", Ve, [
-                    s("div", Oe, [
-                      s("div", Be, i(U.value.title || U.value.name), 1),
+                    s("div", Be, [
+                      s("div", Oe, i(U.value.title || U.value.name), 1),
                       S.multiple ? (d(), v("div", Re, [
                         f(o, {
                           type: "link",

+ 1 - 1
lib/js/SettingColumns.js

@@ -21,7 +21,7 @@ var N = (n, t) => {
 };
 import { ref as B, watch as L, resolveComponent as D, openBlock as P, createBlock as Q, withCtx as f, createElementVNode as i, toDisplayString as u, createVNode as r, unref as X, createTextVNode as g } from "vue";
 import { d as Y } from "./vuedraggable.js";
-import { n as Z, d9 as ee, B as ne } from "./index2.js";
+import { n as Z, dk as ee, B as ne } from "./index2.js";
 import { _ as te } from "./index8.js";
 import { _ as se } from "./index9.js";
 const oe = { class: "drawer-wrap" }, ie = { class: "content-wrap" }, ae = { class: "table-wrap" }, de = { class: "title" }, le = { class: "columns-wrap" }, ce = { class: "item" }, re = { class: "td-item flex-start" }, ue = { class: "drag-icon" }, he = { class: "checkbox" }, fe = { class: "checkbox" }, _e = { class: "name" }, pe = { class: "td-item" }, me = { style: { "margin-right": "8px" } }, ve = { class: "drawer-footer" }, ge = /* @__PURE__ */ Object.assign({ name: "SettingColumns" }, {

+ 7 - 7
lib/js/SettingFilter.js

@@ -1,6 +1,6 @@
 import { ref as w, resolveComponent as S, openBlock as f, createBlock as $, withCtx as a, createElementVNode as v, createVNode as o, createTextVNode as i, toDisplayString as r, createElementBlock as y, Fragment as g, renderList as q } from "vue";
 import Q from "./CustomInput.js";
-import { n as W, da as X, db as Y, a6 as Z, a7 as ee, B as le } from "./index2.js";
+import { n as W, dl as X, dm as Y, a6 as Z, a7 as ee, B as le } from "./index2.js";
 import { _ as ne } from "./index8.js";
 import { _ as te, a as ae } from "./index10.js";
 const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { class: "remove-filter-wrap" }, ie = { class: "drawer-footer" }, re = /* @__PURE__ */ Object.assign({ name: "SFilter" }, {
@@ -34,7 +34,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
       const e = l == null ? void 0 : l.filterType, c = !e || e === "INPUT" ? P : O;
       return I.filter((p) => c.includes(p.id));
     }
-    function b(l) {
+    function k(l) {
       return !l || l === "INPUT" ? "includes" : "equal";
     }
     function M() {
@@ -54,7 +54,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
         return;
       }
       const c = s.filterConfig || {};
-      e.name = s.name || s.title || "", e.filterType = c.filterType || "INPUT", e.filterConfig = c, e.equals = b(e.filterType), e.value = e.filterType === "MULTIPLE_SELECT" ? [] : "";
+      e.name = s.name || s.title || "", e.filterType = c.filterType || "INPUT", e.filterConfig = c, e.equals = k(e.filterType), e.value = e.filterType === "MULTIPLE_SELECT" ? [] : "";
     }
     function D() {
       u.value = [], _.value = { filter: 1 }, d.value = !1, T("reset");
@@ -64,7 +64,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
         dataIndex: e.dataIndex,
         name: e.name,
         filterType: e.filterType,
-        equals: e.equals || b(e.filterType),
+        equals: e.equals || k(e.filterType),
         value: h.includes(e.equals) ? "" : e.value
       }));
       d.value = !1, T("submit", l, _.value.filter);
@@ -81,7 +81,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
       filters: u,
       superFilter: _
     }), (l, e) => {
-      const s = Y, c = X, p = ae, k = ee, E = Z, G = S("MinusCircleOutlined"), H = te, J = S("PlusOutlined"), m = le, K = ne;
+      const s = Y, c = X, p = ae, b = ee, E = Z, G = S("MinusCircleOutlined"), H = te, J = S("PlusOutlined"), m = le, K = ne;
       return f(), $(K, {
         rootClassName: "filter-drawer-wrap",
         title: `${l.$l("高级搜索")}`,
@@ -137,7 +137,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
                           onChange: (t) => V(t, n)
                         }, {
                           default: a(() => [
-                            (f(!0), y(g, null, q(C.value, (t) => (f(), $(k, {
+                            (f(!0), y(g, null, q(C.value, (t) => (f(), $(b, {
                               key: t.dataIndex,
                               value: t.dataIndex
                             }, {
@@ -158,7 +158,7 @@ const oe = { class: "drawer-wrap" }, ue = { class: "content-wrap" }, se = { clas
                           disabled: !n.dataIndex
                         }, {
                           default: a(() => [
-                            (f(!0), y(g, null, q(L(n), (t) => (f(), $(k, {
+                            (f(!0), y(g, null, q(L(n), (t) => (f(), $(b, {
                               key: t.id,
                               value: t.id
                             }, {

+ 1 - 1
lib/js/account.js

@@ -1,4 +1,4 @@
-import { ds as e } from "./index2.js";
+import { dD as e } from "./index2.js";
 const i = () => window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
 function a(t = {}) {
   return window.$utils.http({

+ 22 - 22
lib/js/activate.js

@@ -1,7 +1,7 @@
 var Ne = Object.defineProperty;
 var re = Object.getOwnPropertySymbols;
 var Ve = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
-var ue = (m, e, c) => e in m ? Ne(m, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[e] = c, j = (m, e) => {
+var ue = (m, e, c) => e in m ? Ne(m, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[e] = c, B = (m, e) => {
   for (var c in e || (e = {}))
     Ve.call(e, c) && ue(m, c, e[c]);
   if (re)
@@ -16,19 +16,19 @@ var W = (m, e, c) => new Promise((f, _) => {
     } catch ($) {
       _($);
     }
-  }, Z = (g) => {
+  }, j = (g) => {
     try {
       d(c.throw(g));
     } catch ($) {
       _($);
     }
-  }, d = (g) => g.done ? f(g.value) : Promise.resolve(g.value).then(U, Z);
+  }, d = (g) => g.done ? f(g.value) : Promise.resolve(g.value).then(U, j);
   d((c = c.apply(m, e)).next());
 });
-import { ref as n, reactive as X, watch as Ae, onMounted as Re, openBlock as x, createElementBlock as P, createElementVNode as l, toDisplayString as o, createVNode as s, withCtx as i, createCommentVNode as R, createTextVNode as V, normalizeStyle as B, withDirectives as Ue, vShow as Te, normalizeClass as Y, unref as Ee, nextTick as ze } from "vue";
+import { ref as n, reactive as X, watch as Ae, onMounted as Re, openBlock as x, createElementBlock as P, createElementVNode as l, toDisplayString as o, createVNode as s, withCtx as i, createCommentVNode as R, createTextVNode as V, normalizeStyle as Z, withDirectives as Ue, vShow as Te, normalizeClass as Y, unref as Ee, nextTick as ze } from "vue";
 import { useRouter as Le } from "vue-router";
-import { n as Me, I as qe, B as De, dj as Oe, dr as je } from "./index2.js";
-import { e as Be, f as Ze, h as Ge, i as He } from "./account.js";
+import { n as Me, I as qe, B as De, dv as Oe, dC as Be } from "./index2.js";
+import { e as Ze, f as je, h as Ge, i as He } from "./account.js";
 import { s as Je } from "./success-qrcode.js";
 import { C as Ke } from "./index18.js";
 import { _ as Qe, S as We } from "./index11.js";
@@ -50,10 +50,10 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
 }, Ra = { class: "page-title" }, Ua = { class: "page-desc" }, Ta = { class: "pwd-strength-bar" }, Ea = { class: "pwd-rule-tips" }, za = { class: "btn-group" }, La = {
   key: 3,
   class: "form-wrap finish-wrap"
-}, Ma = { class: "success-icon" }, qa = ["src", "alt"], Da = { class: "finish-title" }, Oa = { class: "finish-desc" }, ja = { class: "account-info-card" }, Ba = { class: "info-item" }, Za = { class: "info-label" }, Ga = { class: "info-value" }, Ha = { class: "info-item" }, Ja = { class: "info-label" }, Ka = { class: "info-value" }, Qa = { class: "info-item" }, Wa = { class: "info-label" }, Xa = { class: "info-value" }, Ya = { class: "btn-group finish-btn-group" }, et = { class: "footer" }, at = /* @__PURE__ */ Object.assign({ name: "LoginActivate" }, {
+}, Ma = { class: "success-icon" }, qa = ["src", "alt"], Da = { class: "finish-title" }, Oa = { class: "finish-desc" }, Ba = { class: "account-info-card" }, Za = { class: "info-item" }, ja = { class: "info-label" }, Ga = { class: "info-value" }, Ha = { class: "info-item" }, Ja = { class: "info-label" }, Ka = { class: "info-value" }, Qa = { class: "info-item" }, Wa = { class: "info-label" }, Xa = { class: "info-value" }, Ya = { class: "btn-group finish-btn-group" }, et = { class: "footer" }, at = /* @__PURE__ */ Object.assign({ name: "LoginActivate" }, {
   __name: "activate",
   setup(m) {
-    const e = (a) => window.$l ? window.$l(a) : a, c = Le(), f = n(0), _ = n(!1), U = n(""), Z = n(null), d = X({
+    const e = (a) => window.$l ? window.$l(a) : a, c = Le(), f = n(0), _ = n(!1), U = n(""), j = n(null), d = X({
       no: "",
       name: "",
       certNo: "",
@@ -114,10 +114,10 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
     }
     function fe() {
       return W(this, null, function* () {
-        const a = j({}, d);
+        const a = B({}, d);
         _.value = !0;
         try {
-          const t = yield Be(
+          const t = yield Ze(
             a.no,
             a.name,
             a.certNo,
@@ -175,8 +175,8 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
       (a = ee.value) == null || a.resetFields(), f.value = 0, w.value = !1, A.value = e("获取验证码"), D.value = Date.now() + 60 * 1e3, b.value && (clearInterval(b.value), b.value = null);
     }
     function he() {
-      const a = j({}, M);
-      return _.value = !0, Ze(a.code, T.value).then(() => {
+      const a = B({}, M);
+      return _.value = !0, je(a.code, T.value).then(() => {
         f.value = 2;
       }).catch(() => {
       }).finally(() => {
@@ -215,7 +215,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
     }
     function Ce() {
       z.value = "success", L.value = "", I.value = "success", N.value = "", _.value = !0;
-      const t = j({}, y).password;
+      const t = B({}, y).password;
       He(T.value, t).then((u) => {
         E.value = u.accountNo || "", te.value = u.activateTime || "";
         let v = "";
@@ -235,7 +235,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
     }
     function xe() {
       return W(this, null, function* () {
-        const a = yield je();
+        const a = yield Be();
         H.value = a.indexPageLogoUrl || U;
       });
     }
@@ -295,7 +295,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                 ]),
                 s(Q, {
                   ref_key: "formRef0",
-                  ref: Z,
+                  ref: j,
                   class: "activate-form",
                   model: d,
                   rules: g,
@@ -457,7 +457,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                             s(C, {
                               disabled: w.value,
                               type: "link",
-                              style: B({ color: w.value ? "var(--s-text-color-disabled)" : "var(--s-color)" }),
+                              style: Z({ color: w.value ? "var(--s-text-color-disabled)" : "var(--s-color)" }),
                               class: "phone-verify-button",
                               onClick: _e
                             }, {
@@ -557,15 +557,15 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                         l("div", Ta, [
                           l("div", {
                             class: Y(["strength-item", { active: k.value >= 1 }]),
-                            style: B(J(1))
+                            style: Z(J(1))
                           }, null, 6),
                           l("div", {
                             class: Y(["strength-item", { active: k.value >= 2 }]),
-                            style: B(J(2))
+                            style: Z(J(2))
                           }, null, 6),
                           l("div", {
                             class: Y(["strength-item", { active: k.value >= 3 }]),
-                            style: B(J(3))
+                            style: Z(J(3))
                           }, null, 6)
                         ]),
                         l("div", Ea, [
@@ -634,9 +634,9 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                 ]),
                 l("h2", Da, o(e("账号激活成功")), 1),
                 l("p", Oa, o(e("您的账号已成功激活,今后请使用账号 + 新密码登录统一信息平台。")), 1),
-                l("div", ja, [
-                  l("div", Ba, [
-                    l("span", Za, o(e("账号")), 1),
+                l("div", Ba, [
+                  l("div", Za, [
+                    l("span", ja, o(e("账号")), 1),
                     l("span", Ga, o(E.value), 1)
                   ]),
                   l("div", Ha, [

Fichier diff supprimé car celui-ci est trop grand
+ 10 - 10
lib/js/components-doc.js


+ 1 - 1
lib/js/dayjs.js

@@ -1,4 +1,4 @@
-import { bX as ut, bY as ct, ai as pe, bZ as Po, d as M, _ as x, c as re, K as le, w as Qe, b_ as Do, F as Mo, D as Ee, L as Ae, b$ as Ro, bx as No, c0 as Io, c1 as To, H as ea, g as Yo, m as dn, bL as Eo, T as Vo, c2 as Ot, r as ta, c3 as Oo, c4 as Ho, c5 as Ao, c6 as Bo, t as Wo, c7 as _o, bM as Fo, bR as fn, bS as Lo, c8 as na, c9 as aa, B as jo, bb as X, bd as pt, bc as Ue, e as vn, be as st, l as nt, U as fa, V as va, h as gt, u as pa, X as ga, aU as ha, ca as ma, cb as ba, cc as wa, a5 as Ca, W as $a, b2 as ka, o as zo, cd as Uo } from "./index2.js";
+import { c6 as ut, c7 as ct, ai as pe, c8 as Po, d as M, _ as x, c as re, K as le, w as Qe, c9 as Do, F as Mo, D as Ee, L as Ae, ca as Ro, bI as No, cb as Io, cc as To, H as ea, g as Yo, m as dn, bW as Eo, T as Vo, cd as Ot, r as ta, ce as Oo, cf as Ho, cg as Ao, ch as Bo, t as Wo, ci as _o, bX as Fo, c0 as fn, c1 as Lo, cj as na, ck as aa, B as jo, bm as X, bo as pt, bn as Ue, e as vn, bp as st, l as nt, U as fa, V as va, h as gt, u as pa, X as ga, b3 as ha, cl as ma, cm as ba, cn as wa, a5 as Ca, W as $a, bd as ka, o as zo, co as Uo } from "./index2.js";
 import { useAttrs as Ko, provide as ya, inject as xa, createVNode as g, createTextVNode as Sa, defineComponent as Ge, shallowRef as He, ref as O, watch as ge, onBeforeUnmount as kn, nextTick as Pa, computed as E, onBeforeUpdate as qo, watchEffect as Wt, toRef as se, onMounted as Da, getCurrentScope as Qo, onScopeDispose as Go, unref as Xo, getCurrentInstance as Zo, Fragment as Ht } from "vue";
 import { T as Jo } from "./index13.js";
 var Ma = { exports: {} };

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

@@ -14,13 +14,13 @@ var $ = (t, e, a) => new Promise((r, s) => {
   }, 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 G, onMounted as E1, onBeforeUnmount as b1, resolveComponent as j, openBlock as w, createElementBlock as X, 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";
+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 X, 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";
 import { useRouter as A1 } from "vue-router";
 import { e as t1 } from "./base64Util.js";
 import { b as z1, c as n1, d as $1, u as j1 } from "./account.js";
-import { g as S1, m as x1, u as I1, c as T1, _ as o1, dW as P1, b3 as H1, b2 as O1, b4 as V1, P as V, n as L1, B as N1, I as R1, dq as W1 } from "./index2.js";
+import { g as S1, m as x1, u as I1, c as T1, _ as o1, e5 as P1, be as H1, bd as O1, bf as V1, P as V, n as L1, B as N1, I as R1, dB as W1 } from "./index2.js";
 import { C as U1 } from "./index18.js";
-import { T as q1, P as G1, a as X1 } from "./index16.js";
+import { T as G1, P as q1, a as X1 } from "./index16.js";
 import { _ as Z1, S as K1 } from "./index11.js";
 import { F as J1, _ as Q1 } from "./index5.js";
 import { _ as Y1, a as l2 } from "./index10.js";
@@ -937,7 +937,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
   setup(t) {
     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 c = G({ no: "", mobile: "", email: "" }), v = G({ code: "" }), m = G({ 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 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" }]
       };
@@ -1064,7 +1064,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
     }), b1(() => {
       W();
     }), (n, p) => {
-      const g = N1, h1 = A, M1 = q1, f1 = G1, P = K1, k1 = Z1, Q = j("MailOutlined"), F1 = j("IdcardOutlined"), H = R1, z = Q1, m1 = j("MobileOutlined"), q = J1, Y = X1, v1 = j("KeyOutlined"), l1 = l2, g1 = Y1, _1 = j("LockOutlined"), e1 = W1, w1 = j("SafetyOutlined"), B1 = U1;
+      const g = N1, h1 = A, M1 = G1, f1 = q1, P = K1, k1 = Z1, Q = j("MailOutlined"), F1 = j("IdcardOutlined"), H = R1, z = Q1, m1 = j("MobileOutlined"), G = J1, Y = X1, v1 = j("KeyOutlined"), l1 = l2, g1 = Y1, _1 = j("LockOutlined"), e1 = W1, w1 = j("SafetyOutlined"), B1 = U1;
       return w(), X("div", M2, [
         B("div", f2, [
           l(B1, {
@@ -1144,7 +1144,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                     ], 2)
                   ])
                 ])) : O("", !0),
-                r.value === 1 ? (w(), S(q, {
+                r.value === 1 ? (w(), S(G, {
                   key: 1,
                   class: "forgot-form",
                   model: c,
@@ -1240,7 +1240,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                   ]),
                   _: 1
                 }, 8, ["model", "rules"])) : O("", !0),
-                r.value === 2 ? (w(), S(q, {
+                r.value === 2 ? (w(), S(G, {
                   key: 2,
                   class: "forgot-form",
                   model: v,
@@ -1330,7 +1330,7 @@ const M2 = { class: "forgot-page" }, f2 = { class: "main-wrap" }, k2 = {
                   ]),
                   _: 1
                 }, 8, ["model"])) : O("", !0),
-                r.value === 3 ? (w(), S(q, {
+                r.value === 3 ? (w(), S(G, {
                   key: 3,
                   class: "forgot-form",
                   model: m,

+ 33 - 33
lib/js/hasIn.js

@@ -1,21 +1,21 @@
-import { aM as o, bk as l, aF as f, bl as h, bm as O, at as T, bn as y, bo as b, aB as x, bp as C, bq as I } from "./index2.js";
-function v(n, r) {
+import { aX as o, bv as l, aQ as f, bw as h, bx as x, aE as O, by as m, bz as w, aM as T, bA as C, bB as v } from "./index2.js";
+function E(n, r) {
   for (var e = -1, i = n == null ? 0 : n.length, t = Array(i); ++e < i; )
     t[e] = r(n[e], e, n);
   return t;
 }
 var p = f ? f.prototype : void 0, d = p ? p.toString : void 0;
-function w(n) {
+function b(n) {
   if (typeof n == "string")
     return n;
   if (o(n))
-    return v(n, w) + "";
+    return E(n, b) + "";
   if (l(n))
     return d ? d.call(n) : "";
   var r = n + "";
   return r == "0" && 1 / n == -1 / 0 ? "-0" : r;
 }
-function E(n) {
+function I(n) {
   return n;
 }
 function M(n, r, e) {
@@ -31,11 +31,11 @@ function M(n, r, e) {
   }
   return n.apply(r, e);
 }
-var A = 800, _ = 16, N = Date.now;
-function R(n) {
+var A = 800, _ = 16, z = Date.now;
+function N(n) {
   var r = 0, e = 0;
   return function() {
-    var i = N(), t = _ - (i - e);
+    var i = z(), t = _ - (i - e);
     if (e = i, t > 0) {
       if (++r >= A)
         return arguments[0];
@@ -44,25 +44,25 @@ function R(n) {
     return n.apply(void 0, arguments);
   };
 }
-function z(n) {
+function R(n) {
   return function() {
     return n;
   };
 }
-var F = h ? function(n, r) {
+var $ = h ? function(n, r) {
   return h(n, "toString", {
     configurable: !0,
     enumerable: !1,
-    value: z(r),
+    value: R(r),
     writable: !0
   });
-} : E, $ = R(F), H = Object.prototype, V = H.hasOwnProperty;
+} : I, F = N($), H = Object.prototype, V = H.hasOwnProperty;
 function en(n, r, e) {
   var i = n[r];
-  (!(V.call(n, r) && O(i, e)) || e === void 0 && !(r in n)) && T(n, r, e);
+  (!(V.call(n, r) && x(i, e)) || e === void 0 && !(r in n)) && O(n, r, e);
 }
 var g = Math.max;
-function q(n, r, e) {
+function X(n, r, e) {
   return r = g(r === void 0 ? n.length - 1 : r, 0), function() {
     for (var i = arguments, t = -1, a = g(i.length - r, 0), u = Array(a); ++t < a; )
       u[t] = i[r + t];
@@ -79,10 +79,10 @@ function U(n, r) {
   var e = typeof n;
   return e == "number" || e == "symbol" || e == "boolean" || n == null || l(n) ? !0 : K.test(n) || !D.test(n) || r != null && n in Object(r);
 }
-var X = "Expected a function";
+var Z = "Expected a function";
 function c(n, r) {
   if (typeof n != "function" || r != null && typeof r != "function")
-    throw new TypeError(X);
+    throw new TypeError(Z);
   var e = function() {
     var i = arguments, t = r ? r.apply(this, i) : i[0], a = e.cache;
     if (a.has(t))
@@ -90,27 +90,27 @@ function c(n, r) {
     var u = n.apply(this, i);
     return e.cache = a.set(t, u) || a, u;
   };
-  return e.cache = new (c.Cache || y)(), e;
+  return e.cache = new (c.Cache || m)(), e;
 }
-c.Cache = y;
-var Z = 500;
+c.Cache = m;
+var q = 500;
 function B(n) {
   var r = c(n, function(i) {
-    return e.size === Z && e.clear(), i;
+    return e.size === q && e.clear(), i;
   }), e = r.cache;
   return r;
 }
-var G = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, L = /\\(\\)?/g, J = B(function(n) {
+var G = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, L = /\\(\\)?/g, Q = B(function(n) {
   var r = [];
   return n.charCodeAt(0) === 46 && r.push(""), n.replace(G, function(e, i, t, a) {
     r.push(t ? a.replace(L, "$1") : i || e);
   }), r;
 });
-function Q(n) {
-  return n == null ? "" : w(n);
+function J(n) {
+  return n == null ? "" : b(n);
 }
 function S(n, r) {
-  return o(n) ? n : U(n, r) ? [n] : J(Q(n));
+  return o(n) ? n : U(n, r) ? [n] : Q(J(n));
 }
 function P(n) {
   if (typeof n == "string" || l(n))
@@ -124,15 +124,15 @@ function tn(n, r) {
     n = n[P(r[e++])];
   return e && e == i ? n : void 0;
 }
-var m = f ? f.isConcatSpreadable : void 0;
+var y = f ? f.isConcatSpreadable : void 0;
 function W(n) {
-  return o(n) || b(n) || !!(m && n && n[m]);
+  return o(n) || w(n) || !!(y && n && n[y]);
 }
 function Y(n, r, e, i, t) {
   var a = -1, u = n.length;
   for (e || (e = W), t || (t = []); ++a < u; ) {
     var s = n[a];
-    e(s) ? x(t, s) : t[t.length] = s;
+    e(s) ? T(t, s) : t[t.length] = s;
   }
   return t;
 }
@@ -141,7 +141,7 @@ function k(n) {
   return r ? Y(n) : [];
 }
 function an(n) {
-  return $(q(n, void 0, k), n + "");
+  return F(X(n, void 0, k), n + "");
 }
 function j(n, r) {
   return n != null && r in Object(n);
@@ -154,7 +154,7 @@ function nn(n, r, e) {
       break;
     n = n[u];
   }
-  return a || ++i != t ? a : (t = n == null ? 0 : n.length, !!t && C(t) && I(u, t) && (o(n) || b(n)));
+  return a || ++i != t ? a : (t = n == null ? 0 : n.length, !!t && C(t) && v(u, t) && (o(n) || w(n)));
 }
 function un(n, r) {
   return n != null && nn(n, r, j);
@@ -163,12 +163,12 @@ export {
   en as a,
   tn as b,
   U as c,
-  v as d,
+  E as d,
   S as e,
   an as f,
   un as h,
-  E as i,
-  q as o,
-  $ as s,
+  I as i,
+  X as o,
+  F as s,
   P as t
 };

+ 1 - 1
lib/js/icon-groups.js

@@ -1,4 +1,4 @@
-import { aq as o } from "./index2.js";
+import { cI as o } from "./index2.js";
 const i = [
   { value: "all", label: "全部", suffix: "" },
   { value: "outlined", label: "线框", suffix: "Outlined" },

+ 1 - 1
lib/js/index.es.js

@@ -1,4 +1,4 @@
-import { bX as Ke, bY as Vo, e0 as Oi } from "./index2.js";
+import { c6 as Ke, c7 as Vo, eb as Oi } from "./index2.js";
 var vt = function(a) {
   return a && a.Math === Math && a;
 }, _ = (

+ 1 - 1
lib/js/index.js

@@ -1,6 +1,6 @@
 import "vue";
 import "ant-design-vue";
-import { e1 as e } from "./index2.js";
+import { ec as e } from "./index2.js";
 import "pinia";
 export {
   e as default

+ 1 - 1
lib/js/index11.js

@@ -1,4 +1,4 @@
-import { bd as T, be as q, e as he, f as J, bc as Z, bb as z, h as M, ck as Q, d as f, _ as P, i as j, y as oe, g as re, m as se, r as le, cl as Se, u as ae, b2 as ve, bJ as ce, b4 as be, cm as de, b as Ce, c as B, o as pe, P as x, cn as ye, b0 as Ie, F as xe, t as we, co as Pe, cp as De, l as Te } from "./index2.js";
+import { bo as T, bp as q, e as he, f as J, bn as Z, bm as z, h as M, cv as Q, d as f, _ as P, i as j, y as oe, g as re, m as se, r as le, cw as Se, u as ae, bd as ve, bU as ce, bf as be, cx as de, b as Ce, c as B, o as pe, P as x, cy as ye, bb as Ie, F as xe, t as we, cz as Pe, cA as De, l as Te } from "./index2.js";
 import { defineComponent as O, computed as v, createVNode as p, Fragment as ue, ref as ge, onUpdated as We } from "vue";
 import { u as ze } from "./useRefs.js";
 const Oe = ["normal", "exception", "active", "success"], F = () => ({

+ 48 - 48
lib/js/index12.js

@@ -1,13 +1,13 @@
-import { as as Xe, bq as ft, w as ge, c as le, K as Z, d as T, P as we, H as D, cq as ht, cr as gt, cs as mt, ct as $t, cu as yt, bb as j, cv as he, R as Fe, _ as te, e as me, F as xt, c8 as je, g as _t, m as St, r as tt, t as Ct, cw as at, bD as Tt, o as wt, i as nt, E as Pt, bz as Rt, h as De, u as Et, bK as It, L as Ve, ak as Bt, bJ as Lt, l as At, bd as xe, bc as Dt, be as kt } from "./index2.js";
-import { shallowRef as W, onBeforeUnmount as Me, defineComponent as ae, ref as J, computed as H, createVNode as g, watchEffect as Ce, onMounted as Te, watch as ie, provide as Mt, inject as Nt, toRefs as Ot } from "vue";
-import { u as Wt } from "./useRefs.js";
-import { e as ot, t as Ht, a as zt, b as Kt, h as Gt, f as Xt } from "./hasIn.js";
+import { aD as Xe, bB as ft, w as ge, c as le, K as q, d as T, P as we, H as D, cB as ht, cC as gt, cD as mt, cE as $t, cF as yt, bm as j, cG as he, R as Fe, _ as te, e as me, F as xt, cj as je, g as _t, m as St, r as tt, t as Ct, cH as at, bO as Tt, o as wt, i as nt, E as Pt, bK as Rt, h as De, u as Et, bV as It, L as Ve, ak as Bt, bU as Lt, l as At, bo as xe, bn as Dt, bp as kt } from "./index2.js";
+import { shallowRef as H, onBeforeUnmount as Me, defineComponent as ae, ref as J, computed as W, createVNode as g, watchEffect as Ce, onMounted as Te, watch as ie, provide as Mt, inject as Nt, toRefs as Ot } from "vue";
+import { u as Ht } from "./useRefs.js";
+import { e as ot, t as Wt, a as zt, b as Kt, h as Gt, f as Xt } from "./hasIn.js";
 function Ft(e, t, a, i) {
   if (!Xe(e))
     return e;
   t = ot(t, e);
   for (var o = -1, l = t.length, n = l - 1, s = e; s != null && ++o < l; ) {
-    var v = Ht(t[o]), d = a;
+    var v = Wt(t[o]), d = a;
     if (v === "__proto__" || v === "constructor" || v === "prototype")
       return e;
     if (o != n) {
@@ -34,7 +34,7 @@ var it = Xt(function(e, t) {
   return e == null ? {} : Vt(e, t);
 });
 function Yt(e) {
-  const t = W(), a = W(!1);
+  const t = H(), a = H(!1);
   function i() {
     for (var o = arguments.length, l = new Array(o), n = 0; n < o; n++)
       l[n] = arguments[n];
@@ -47,7 +47,7 @@ function Yt(e) {
   }), i;
 }
 function Ut(e) {
-  const t = W([]), a = W(typeof e == "function" ? e() : e), i = Yt(() => {
+  const t = H([]), a = H(typeof e == "function" ? e() : e), i = Yt(() => {
     let l = a.value;
     t.value.forEach((n) => {
       l = n(l);
@@ -58,7 +58,7 @@ function Ut(e) {
   }
   return [a, o];
 }
-const qt = ae({
+const Zt = ae({
   compatConfig: {
     MODE: 3
   },
@@ -120,7 +120,7 @@ const qt = ae({
         event: v
       });
     }
-    const s = H(() => {
+    const s = W(() => {
       var v;
       return e.editable && e.closable !== !1 && !(!((v = e.tab) === null || v === void 0) && v.disabled);
     });
@@ -162,7 +162,7 @@ const qt = ae({
           m.stopPropagation(), l(m);
         },
         onKeydown: (m) => {
-          [Z.SPACE, Z.ENTER].includes(m.which) && (m.preventDefault(), l(m));
+          [q.SPACE, q.ENTER].includes(m.which) && (m.preventDefault(), l(m));
         },
         onFocus: K
       }, [typeof c == "function" ? c() : c]), s.value && g("button", {
@@ -183,7 +183,7 @@ const qt = ae({
   left: 0,
   top: 0
 };
-function Zt(e, t) {
+function qt(e, t) {
   const a = J(/* @__PURE__ */ new Map());
   return Ce(() => {
     var i, o;
@@ -314,25 +314,25 @@ const lt = ae({
         which: y
       } = c;
       if (!o.value) {
-        [Z.DOWN, Z.SPACE, Z.ENTER].includes(y) && (l(!0), c.preventDefault());
+        [q.DOWN, q.SPACE, q.ENTER].includes(y) && (l(!0), c.preventDefault());
         return;
       }
       switch (y) {
-        case Z.UP:
+        case q.UP:
           v(-1), c.preventDefault();
           break;
-        case Z.DOWN:
+        case q.DOWN:
           v(1), c.preventDefault();
           break;
-        case Z.ESC:
+        case q.ESC:
           l(!1);
           break;
-        case Z.SPACE:
-        case Z.ENTER:
+        case q.SPACE:
+        case q.ENTER:
           n.value !== null && e.onTabClick(n.value, c);
           break;
       }
-    }, p = H(() => `${e.id}-more-popup`), S = H(() => n.value !== null ? `${p.value}-${n.value}` : null), h = (c, y) => {
+    }, p = W(() => `${e.id}-more-popup`), S = W(() => n.value !== null ? `${p.value}-${n.value}` : null), h = (c, y) => {
       c.preventDefault(), c.stopPropagation(), e.editable.onEdit("remove", {
         key: y,
         event: c
@@ -475,7 +475,7 @@ ae({
     };
   }
 });
-const ea = 0.1, Ue = 0.01, _e = 20, qe = Math.pow(0.995, _e);
+const ea = 0.1, Ue = 0.01, _e = 20, Ze = Math.pow(0.995, _e);
 function ta(e, t) {
   const [a, i] = D(), [o, l] = D(0), [n, s] = D(0), [v, d] = D(), p = J();
   function S(r) {
@@ -517,7 +517,7 @@ function ta(e, t) {
           clearInterval(p.value);
           return;
         }
-        R *= qe, G *= qe, t(R * _e, G * _e);
+        R *= Ze, G *= Ze, t(R * _e, G * _e);
       }, _e);
     }
   }
@@ -564,7 +564,7 @@ function ta(e, t) {
     document.removeEventListener("touchmove", k), document.removeEventListener("touchend", K);
   });
 }
-function Ze(e, t) {
+function qe(e, t) {
   const a = J(e);
   function i(o) {
     const l = typeof o == "function" ? o(a.value) : o;
@@ -645,19 +645,19 @@ const Je = {
     const {
       tabs: o,
       prefixCls: l
-    } = dt(), n = W(), s = W(), v = W(), d = W(), [p, S] = Wt(), h = H(() => e.tabPosition === "top" || e.tabPosition === "bottom"), [c, y] = Ze(0, (f, b) => {
+    } = dt(), n = H(), s = H(), v = H(), d = H(), [p, S] = Ht(), h = W(() => e.tabPosition === "top" || e.tabPosition === "bottom"), [c, y] = qe(0, (f, b) => {
       h.value && e.onTabScroll && e.onTabScroll({
         direction: f > b ? "left" : "right"
       });
-    }), [x, w] = Ze(0, (f, b) => {
+    }), [x, w] = qe(0, (f, b) => {
       !h.value && e.onTabScroll && e.onTabScroll({
         direction: f > b ? "top" : "bottom"
       });
-    }), [C, k] = D(0), [K, M] = D(0), [r, m] = D(null), [u, $] = D(null), [I, R] = D(0), [G, re] = D(0), [se, ce] = Ut(/* @__PURE__ */ new Map()), E = Zt(o, se), Q = H(() => `${l.value}-nav-operations-hidden`), N = W(0), V = W(0);
+    }), [C, k] = D(0), [K, M] = D(0), [r, m] = D(null), [u, $] = D(null), [I, R] = D(0), [G, re] = D(0), [se, ce] = Ut(/* @__PURE__ */ new Map()), E = qt(o, se), Q = W(() => `${l.value}-nav-operations-hidden`), N = H(0), V = H(0);
     Ce(() => {
       h.value ? e.rtl ? (N.value = 0, V.value = Math.max(0, C.value - r.value)) : (N.value = Math.min(0, r.value - C.value), V.value = 0) : (N.value = Math.min(0, u.value - K.value), V.value = 0);
     });
-    const Y = (f) => f < N.value ? N.value : f > V.value ? V.value : f, ue = W(), [z, ve] = D(), be = () => {
+    const Y = (f) => f < N.value ? N.value : f > V.value ? V.value : f, ue = H(), [z, ve] = D(), be = () => {
       ve(Date.now());
     }, pe = () => {
       clearTimeout(ue.value);
@@ -696,7 +696,7 @@ const Je = {
         let _ = x.value;
         b.top < -x.value ? _ = -b.top : b.top + b.height > -x.value + u.value && (_ = -(b.top + b.height - u.value)), y(0), w(Y(_));
       }
-    }, Pe = W(0), Re = W(0);
+    }, Pe = H(0), Re = H(0);
     Ce(() => {
       let f, b, _, P, L, B;
       const U = E.value;
@@ -706,9 +706,9 @@ const Je = {
       const F = o.value;
       if (!F.length)
         return [Pe.value, Re.value] = [0, 0];
-      const q = F.length;
-      let oe = q;
-      for (let X = 0; X < q; X += 1) {
+      const Z = F.length;
+      let oe = Z;
+      for (let X = 0; X < Z; X += 1) {
         const ee = U.get(F[X].key) || Je;
         if (ee[b] + ee[f] > _ + O) {
           oe = X - 1;
@@ -716,7 +716,7 @@ const Je = {
         }
       }
       let A = 0;
-      for (let X = q - 1; X >= 0; X -= 1)
+      for (let X = Z - 1; X >= 0; X -= 1)
         if ((U.get(F[X].key) || Je)[b] < _) {
           A = X + 1;
           break;
@@ -733,11 +733,11 @@ const Je = {
           } = P;
           const B = S.value.get(L), U = (B == null ? void 0 : B.$el) || B;
           if (U) {
-            const [O, F, q, oe] = na(U, _);
+            const [O, F, Z, oe] = na(U, _);
             b.set(L, {
               width: O,
               height: F,
-              left: q,
+              left: Z,
               top: oe
             });
           }
@@ -751,16 +751,16 @@ const Je = {
     });
     const Ee = () => {
       var f, b, _, P, L;
-      const B = ((f = n.value) === null || f === void 0 ? void 0 : f.offsetWidth) || 0, U = ((b = n.value) === null || b === void 0 ? void 0 : b.offsetHeight) || 0, O = ((_ = d.value) === null || _ === void 0 ? void 0 : _.$el) || {}, F = O.offsetWidth || 0, q = O.offsetHeight || 0;
-      m(B), $(U), R(F), re(q);
-      const oe = (((P = s.value) === null || P === void 0 ? void 0 : P.offsetWidth) || 0) - F, A = (((L = s.value) === null || L === void 0 ? void 0 : L.offsetHeight) || 0) - q;
+      const B = ((f = n.value) === null || f === void 0 ? void 0 : f.offsetWidth) || 0, U = ((b = n.value) === null || b === void 0 ? void 0 : b.offsetHeight) || 0, O = ((_ = d.value) === null || _ === void 0 ? void 0 : _.$el) || {}, F = O.offsetWidth || 0, Z = O.offsetHeight || 0;
+      m(B), $(U), R(F), re(Z);
+      const oe = (((P = s.value) === null || P === void 0 ? void 0 : P.offsetWidth) || 0) - F, A = (((L = s.value) === null || L === void 0 ? void 0 : L.offsetHeight) || 0) - Z;
       k(oe), M(A), Ne();
-    }, Oe = H(() => [...o.value.slice(0, Pe.value), ...o.value.slice(Re.value + 1)]), [ut, vt] = D(), ne = H(() => E.value.get(e.activeKey)), We = W(), He = () => {
-      ge.cancel(We.value);
+    }, Oe = W(() => [...o.value.slice(0, Pe.value), ...o.value.slice(Re.value + 1)]), [ut, vt] = D(), ne = W(() => E.value.get(e.activeKey)), He = H(), We = () => {
+      ge.cancel(He.value);
     };
     ie([ne, h, () => e.rtl], () => {
       const f = {};
-      ne.value && (h.value ? (e.rtl ? f.right = he(ne.value.right) : f.left = he(ne.value.left), f.width = he(ne.value.width)) : (f.top = he(ne.value.top), f.height = he(ne.value.height))), He(), We.value = ge(() => {
+      ne.value && (h.value ? (e.rtl ? f.right = he(ne.value.right) : f.left = he(ne.value.left), f.width = he(ne.value.width)) : (f.top = he(ne.value.top), f.height = he(ne.value.height))), We(), He.value = ge(() => {
         vt(f);
       });
     }), ie([() => e.activeKey, ne, E, h], () => {
@@ -787,7 +787,7 @@ const Je = {
       }, [L]) : null;
     };
     return Me(() => {
-      pe(), He();
+      pe(), We();
     }), () => {
       const {
         id: f,
@@ -800,7 +800,7 @@ const Je = {
         tabBarGutter: O,
         onTabClick: F
       } = e, {
-        class: q,
+        class: Z,
         style: oe
       } = a, A = l.value, X = !!Oe.value.length, ee = `${A}-nav-wrap`;
       let Be, Le, ze, Ke;
@@ -811,7 +811,7 @@ const Je = {
         const {
           key: fe
         } = Ae;
-        return g(qt, {
+        return g(Zt, {
           id: f,
           prefixCls: A,
           key: fe,
@@ -832,7 +832,7 @@ const Je = {
       });
       return g("div", {
         role: "tablist",
-        class: le(`${A}-nav`, q),
+        class: le(`${A}-nav`, Z),
         style: oe,
         onKeydown: () => {
           be();
@@ -1863,7 +1863,7 @@ const fa = ae({
       size: n,
       rootPrefixCls: s,
       getPopupContainer: v
-    } = Et("tabs", e), [d, p] = ba(o), S = H(() => l.value === "rtl"), h = H(() => {
+    } = Et("tabs", e), [d, p] = ba(o), S = W(() => l.value === "rtl"), h = W(() => {
       const {
         animated: u,
         tabPosition: $
@@ -1886,7 +1886,7 @@ const fa = ae({
       var u;
       return (u = e.tabs[0]) === null || u === void 0 ? void 0 : u.key;
     }, {
-      value: H(() => e.activeKey),
+      value: W(() => e.activeKey),
       defaultValue: e.defaultActiveKey
     }), [C, k] = D(() => e.tabs.findIndex((u) => u.key === x.value));
     Ce(() => {
@@ -1895,8 +1895,8 @@ const fa = ae({
       $ === -1 && ($ = Math.max(0, Math.min(C.value, e.tabs.length - 1)), w((u = e.tabs[$]) === null || u === void 0 ? void 0 : u.key)), k($);
     });
     const [K, M] = Ve(null, {
-      value: H(() => e.id)
-    }), r = H(() => c.value && !["left", "right"].includes(e.tabPosition) ? "top" : e.tabPosition);
+      value: W(() => e.id)
+    }), r = W(() => c.value && !["left", "right"].includes(e.tabPosition) ? "top" : e.tabPosition);
     Te(() => {
       e.id || (M(`rc-tabs-${process.env.NODE_ENV === "test" ? "test" : et}`), et += 1);
     });
@@ -1907,7 +1907,7 @@ const fa = ae({
       w(u), G && ((R = e.onChange) === null || R === void 0 || R.call(e, u));
     };
     return st({
-      tabs: H(() => e.tabs),
+      tabs: W(() => e.tabs),
       prefixCls: o
     }), () => {
       const {
@@ -2062,7 +2062,7 @@ const fa = ae({
     }, {
       immediate: !0
     });
-    const l = H(() => e.active ? {} : e.animated ? {
+    const l = W(() => e.active ? {} : e.animated ? {
       visibility: "hidden",
       height: 0,
       overflowY: "hidden"

+ 9 - 9
lib/js/index13.js

@@ -1,7 +1,7 @@
-import { g as L, m as O, d as P, r as R, ce as j, cf as X, u as z, c as F, _ as b, bf as U, cg as V, ch as J, ci as q, bJ as G, P as B, cj as K } from "./index2.js";
+import { g as L, m as O, d as P, r as R, cp as j, cq as U, u as z, c as F, _ as b, bq as X, cr as q, cs as V, ct as G, bU as J, P as B, cu as K } from "./index2.js";
 import { defineComponent as D, computed as m, createVNode as d, shallowRef as Q, watchEffect as Y, Fragment as Z } from "vue";
 const h = (e, c, l) => {
-  const r = X(l);
+  const r = U(l);
   return {
     [`${e.componentCls}-${c}`]: {
       color: e[`color${l}`],
@@ -221,12 +221,12 @@ const h = (e, c, l) => {
       prefixCls: o,
       direction: t
     } = z("tag", e), [g, C] = H(o), s = Q(!0);
-    process.env.NODE_ENV !== "production" && U(e.visible === void 0, "Tag", '`visible` is deprecated, please use `<Tag v-show="visible" />` instead.'), Y(() => {
+    process.env.NODE_ENV !== "production" && X(e.visible === void 0, "Tag", '`visible` is deprecated, please use `<Tag v-show="visible" />` instead.'), Y(() => {
       e.visible !== void 0 && (s.value = e.visible);
     });
     const a = (i) => {
       i.stopPropagation(), r("update:visible", !1), r("close", i), !i.defaultPrevented && e.visible === void 0 && (s.value = !1);
-    }, u = m(() => V(e.color) || J(e.color)), w = m(() => F(o.value, C.value, {
+    }, u = m(() => q(e.color) || V(e.color)), w = m(() => F(o.value, C.value, {
       [`${o.value}-${e.color}`]: u.value,
       [`${o.value}-has-color`]: e.color && !u.value,
       [`${o.value}-hidden`]: !s.value,
@@ -236,26 +236,26 @@ const h = (e, c, l) => {
       r("click", i);
     };
     return () => {
-      var i, f, p;
+      var i, p, f;
       const {
         icon: N = (i = l.icon) === null || i === void 0 ? void 0 : i.call(l),
         color: $,
-        closeIcon: y = (f = l.closeIcon) === null || f === void 0 ? void 0 : f.call(l),
+        closeIcon: y = (p = l.closeIcon) === null || p === void 0 ? void 0 : p.call(l),
         closable: _ = !1
       } = e, A = () => _ ? y ? d("span", {
         class: `${o.value}-close-icon`,
         onClick: a
-      }, [y]) : d(G, {
+      }, [y]) : d(J, {
         class: `${o.value}-close-icon`,
         onClick: a
       }, null) : null, E = {
         backgroundColor: $ && !u.value ? $ : void 0
-      }, T = N || null, I = (p = l.default) === null || p === void 0 ? void 0 : p.call(l), k = T ? d(Z, null, [T, d("span", null, [I])]) : I, W = e.onClick !== void 0, x = d("span", b(b({}, n), {}, {
+      }, T = N || null, I = (f = l.default) === null || f === void 0 ? void 0 : f.call(l), k = T ? d(Z, null, [T, d("span", null, [I])]) : I, W = e.onClick !== void 0, x = d("span", b(b({}, n), {}, {
         onClick: M,
         class: [w.value, n.class],
         style: [E, n.style]
       }), [k, A()]);
-      return g(W ? d(q, null, {
+      return g(W ? d(G, null, {
         default: () => [x]
       }) : x);
     };

+ 18 - 18
lib/js/index14.js

@@ -1,6 +1,6 @@
-import { cD as A, cE as g, cF as w, cG as R, _ as v, d as p, cH as m, cI as j, cJ as M, cK as G, cL as U, cM as D, cN as F } from "./index2.js";
+import { cO as A, cP as R, cQ as g, cR as w, _ as v, d as p, cS as m, cT as j, cU as U, cV as M, cW as G, cX as P, cY as V } from "./index2.js";
 import { defineComponent as l, createVNode as _ } from "vue";
-const P = l({
+const D = l({
   compatConfig: {
     MODE: 3
   },
@@ -14,7 +14,7 @@ const P = l({
       return _("tr", null, [(e = o.default) === null || e === void 0 ? void 0 : e.call(o)]);
     };
   }
-}), V = l({
+}), F = l({
   name: "ATableSummaryCell",
   props: ["index", "colSpan", "rowSpan", "align"],
   setup(n, a) {
@@ -22,7 +22,7 @@ const P = l({
       attrs: o,
       slots: e
     } = a;
-    const T = A(), x = g();
+    const T = A(), x = R();
     return () => {
       const {
         index: t,
@@ -30,18 +30,18 @@ const P = l({
         rowSpan: b,
         align: f
       } = n, {
-        prefixCls: E,
-        direction: I
+        prefixCls: O,
+        direction: E
       } = T, {
-        scrollColumnIndex: N,
-        stickyOffsets: O,
+        scrollColumnIndex: I,
+        stickyOffsets: N,
         flattenColumns: y
-      } = x, S = t + s - 1 + 1 === N ? s + 1 : s, L = w(t, t + S - 1, y, O, I);
-      return _(R, v({
+      } = x, S = t + s - 1 + 1 === I ? s + 1 : s, L = g(t, t + S - 1, y, N, E);
+      return _(w, v({
         class: o.class,
         index: t,
         component: "td",
-        prefixCls: E,
+        prefixCls: O,
         record: null,
         dataIndex: null,
         align: f,
@@ -67,15 +67,15 @@ const P = l({
   render() {
     return null;
   }
-}), C = P, i = V, d = p(F, {
+}), C = D, i = F, d = p(V, {
   Cell: i,
   Row: C,
   name: "ATableSummary"
-}), J = p(m, {
-  SELECTION_ALL: D,
-  SELECTION_INVERT: U,
-  SELECTION_NONE: G,
-  SELECTION_COLUMN: M,
+}), Q = p(m, {
+  SELECTION_ALL: P,
+  SELECTION_INVERT: G,
+  SELECTION_NONE: M,
+  SELECTION_COLUMN: U,
   EXPAND_COLUMN: j,
   Column: c,
   ColumnGroup: u,
@@ -83,5 +83,5 @@ const P = l({
   install: (n) => (n.component(d.name, d), n.component(i.name, i), n.component(C.name, C), n.component(m.name, m), n.component(c.name, c), n.component(u.name, u), n)
 });
 export {
-  J as _
+  Q as _
 };

+ 45 - 45
lib/js/index15.js

@@ -1,41 +1,41 @@
-import { g as j, m as M, d as p, r as O, u as A, _ as y, i as N, bc as U, dH as $, f as B, bb as P, be as _, o as L } from "./index2.js";
+import { g as j, m as M, d as p, r as O, u as A, _ as y, i as N, bn as U, dS as $, f as B, bm as P, bp as _, o as L } from "./index2.js";
 import { createVNode as m, defineComponent as R, ref as D, onMounted as V, onUpdated as X, onBeforeUnmount as Y } from "vue";
 import { S as q } from "./index18.js";
-const H = (t) => {
+const z = (t) => {
   const {
     value: n,
     formatter: e,
     precision: a,
     decimalSeparator: s,
     groupSeparator: u = "",
-    prefixCls: c
+    prefixCls: r
   } = t;
-  let r;
+  let c;
   if (typeof e == "function")
-    r = e({
+    c = e({
       value: n
     });
   else {
     const i = String(n), f = i.match(/^(-?)(\d*)(\.(\d+))?$/);
     if (!f)
-      r = i;
+      c = i;
     else {
       const d = f[1];
       let o = f[2] || "0", l = f[4] || "";
-      o = o.replace(/\B(?=(\d{3})+(?!\d))/g, u), typeof a == "number" && (l = l.padEnd(a, "0").slice(0, a > 0 ? a : 0)), l && (l = `${s}${l}`), r = [m("span", {
+      o = o.replace(/\B(?=(\d{3})+(?!\d))/g, u), typeof a == "number" && (l = l.padEnd(a, "0").slice(0, a > 0 ? a : 0)), l && (l = `${s}${l}`), c = [m("span", {
         key: "int",
-        class: `${c}-content-value-int`
+        class: `${r}-content-value-int`
       }, [d, o]), l && m("span", {
         key: "decimal",
-        class: `${c}-content-value-decimal`
+        class: `${r}-content-value-decimal`
       }, [l])];
     }
   }
   return m("span", {
-    class: `${c}-content-value`
-  }, [r]);
+    class: `${r}-content-value`
+  }, [c]);
 };
-H.displayName = "StatisticNumber";
+z.displayName = "StatisticNumber";
 const G = (t) => {
   const {
     componentCls: n,
@@ -43,8 +43,8 @@ const G = (t) => {
     padding: a,
     colorTextDescription: s,
     statisticTitleFontSize: u,
-    colorTextHeading: c,
-    statisticContentFontSize: r,
+    colorTextHeading: r,
+    statisticContentFontSize: c,
     statisticFontFamily: i
   } = t;
   return {
@@ -58,8 +58,8 @@ const G = (t) => {
         paddingTop: a
       },
       [`${n}-content`]: {
-        color: c,
-        fontSize: r,
+        color: r,
+        fontSize: c,
         fontFamily: i,
         [`${n}-content-value`]: {
           display: "inline-block",
@@ -88,7 +88,7 @@ const G = (t) => {
     statisticFontFamily: a
   });
   return [G(s)];
-}), z = () => ({
+}), E = () => ({
   prefixCls: String,
   decimalSeparator: String,
   groupSeparator: String,
@@ -111,7 +111,7 @@ const G = (t) => {
   },
   name: "AStatistic",
   inheritAttrs: !1,
-  props: N(z(), {
+  props: N(E(), {
     decimalSeparator: ".",
     groupSeparator: ",",
     loading: !1
@@ -125,25 +125,25 @@ const G = (t) => {
     const {
       prefixCls: s,
       direction: u
-    } = A("statistic", t), [c, r] = J(s);
+    } = A("statistic", t), [r, c] = J(s);
     return () => {
-      var i, f, d, o, l, g, S;
+      var i, f, d, o, l, S, g;
       const {
-        value: E = 0,
+        value: H = 0,
         valueStyle: I,
         valueRender: T
-      } = t, x = s.value, b = (i = t.title) !== null && i !== void 0 ? i : (f = e.title) === null || f === void 0 ? void 0 : f.call(e), h = (d = t.prefix) !== null && d !== void 0 ? d : (o = e.prefix) === null || o === void 0 ? void 0 : o.call(e), F = (l = t.suffix) !== null && l !== void 0 ? l : (g = e.suffix) === null || g === void 0 ? void 0 : g.call(e), k = (S = t.formatter) !== null && S !== void 0 ? S : e.formatter;
-      let C = m(H, y({
+      } = t, x = s.value, b = (i = t.title) !== null && i !== void 0 ? i : (f = e.title) === null || f === void 0 ? void 0 : f.call(e), h = (d = t.prefix) !== null && d !== void 0 ? d : (o = e.prefix) === null || o === void 0 ? void 0 : o.call(e), F = (l = t.suffix) !== null && l !== void 0 ? l : (S = e.suffix) === null || S === void 0 ? void 0 : S.call(e), k = (g = t.formatter) !== null && g !== void 0 ? g : e.formatter;
+      let C = m(z, y({
         "data-for-update": Date.now()
       }, p(p({}, t), {
         prefixCls: x,
-        value: E,
+        value: H,
         formatter: k
       })), null);
-      return T && (C = T(C)), c(m("div", y(y({}, a), {}, {
+      return T && (C = T(C)), r(m("div", y(y({}, a), {}, {
         class: [x, {
           [`${x}-rtl`]: u.value === "rtl"
-        }, a.class, r.value]
+        }, a.class, c.value]
       }), [b && m("div", {
         class: `${x}-title`
       }, [b]), m(q, {
@@ -173,21 +173,21 @@ const G = (t) => {
 ];
 function Q(t, n) {
   let e = t;
-  const a = /\[[^\]]*]/g, s = (n.match(a) || []).map((i) => i.slice(1, -1)), u = n.replace(a, "[]"), c = K.reduce((i, f) => {
+  const a = /\[[^\]]*]/g, s = (n.match(a) || []).map((i) => i.slice(1, -1)), u = n.replace(a, "[]"), r = K.reduce((i, f) => {
     let [d, o] = f;
     if (i.includes(d)) {
       const l = Math.floor(e / o);
-      return e -= l * o, i.replace(new RegExp(`${d}+`, "g"), (g) => {
-        const S = g.length;
-        return l.toString().padStart(S, "0");
+      return e -= l * o, i.replace(new RegExp(`${d}+`, "g"), (S) => {
+        const g = S.length;
+        return l.toString().padStart(g, "0");
       });
     }
     return i;
   }, u);
-  let r = 0;
-  return c.replace(a, () => {
-    const i = s[r];
-    return r += 1, i;
+  let c = 0;
+  return r.replace(a, () => {
+    const i = s[c];
+    return c += 1, i;
   });
 }
 function W(t, n) {
@@ -200,7 +200,7 @@ const Z = 1e3 / 30;
 function w(t) {
   return new Date(t).getTime();
 }
-const tt = () => p(p({}, z()), {
+const tt = () => p(p({}, E()), {
   value: _([Number, String, Object]),
   format: String,
   onFinish: Function,
@@ -219,16 +219,16 @@ const tt = () => p(p({}, z()), {
       emit: e,
       slots: a
     } = n;
-    const s = D(), u = D(), c = () => {
+    const s = D(), u = D(), r = () => {
       const {
         value: o
       } = t;
-      w(o) >= Date.now() ? r() : i();
-    }, r = () => {
+      w(o) >= Date.now() ? c() : i();
+    }, c = () => {
       if (s.value) return;
       const o = w(t.value);
       s.value = setInterval(() => {
-        u.value.$forceUpdate(), o > Date.now() && e("change", o - Date.now()), c();
+        u.value.$forceUpdate(), o > Date.now() && e("change", o - Date.now()), r();
       }, Z);
     }, i = () => {
       const {
@@ -238,19 +238,19 @@ const tt = () => p(p({}, z()), {
     }, f = (o) => {
       let {
         value: l,
-        config: g
+        config: S
       } = o;
       const {
-        format: S
+        format: g
       } = t;
-      return W(l, p(p({}, g), {
-        format: S
+      return W(l, p(p({}, S), {
+        format: g
       }));
     }, d = (o) => o;
     return V(() => {
-      c();
+      r();
     }), X(() => {
-      c();
+      r();
     }), Y(() => {
       i();
     }), () => {

+ 16 - 16
lib/js/index16.js

@@ -1,4 +1,4 @@
-import { d as s, _ as D, K as V, dt as ze, du as Se, bL as Me, g as Ke, c as Te, aj as We, dv as Ue, dw as Fe, u as we, w as ae, bf as X, L as Ve, d0 as se, dx as Xe, o as W, R as qe, y as ce, dy as Ee, dz as Ge, cm as Je, dA as Qe, dB as Ye } from "./index2.js";
+import { d as s, _ as B, K as V, dE as ze, dF as Se, bW as Me, g as Ke, c as Te, aj as We, dG as Ue, dH as Fe, u as we, w as ae, bq as X, L as Ve, db as se, dI as Xe, o as W, R as qe, y as ce, dJ as Ee, dK as Ge, cx as Je, dL as Qe, dM as Ye } from "./index2.js";
 import { defineComponent as ie, shallowRef as Ze, onMounted as fe, createVNode as f, toRefs as et, reactive as Oe, watch as ue, ref as pe, createApp as tt, computed as oe, onBeforeUnmount as nt, nextTick as be, watchEffect as ot, Fragment as he, toRaw as it } from "vue";
 var lt = function(e, n) {
   var o = {};
@@ -70,7 +70,7 @@ const rt = {
         disabled: I
       } = e, N = lt(e, ["noStyle", "disabled"]);
       let $ = {};
-      return S || ($ = s({}, rt)), I && ($.pointerEvents = "none"), f("div", D(D(D({
+      return S || ($ = s({}, rt)), I && ($.pointerEvents = "none"), f("div", B(B(B({
         role: "button",
         tabindex: 0,
         ref: a
@@ -436,7 +436,7 @@ const rt = {
         [`${d.value}-rtl`]: e.direction === "rtl",
         [e.component ? `${d.value}-${e.component}` : ""]: !0
       }, i.class, R.value);
-      return $(f("div", D(D({}, i), {}, {
+      return $(f("div", B(B({}, i), {}, {
         class: g
       }), [f(We, {
         ref: m,
@@ -594,7 +594,7 @@ const St = () => ({
         direction: _,
         component: v = "article"
       } = C, S = Ct(C, ["prefixCls", "direction", "component"]);
-      return a(f(v, D(D({}, S), {}, {
+      return a(f(v, B(B({}, S), {}, {
         class: Te(i.value, {
           [`${i.value}-rtl`]: d.value === "rtl"
         }, t.class, l.value)
@@ -878,7 +878,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
         strong: z,
         keyboard: j
       } = r, F = c;
-      function B(ee, k) {
+      function D(ee, k) {
         if (!ee) return;
         const te = /* @__PURE__ */ function() {
           return F;
@@ -887,7 +887,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
           default: () => [te]
         });
       }
-      return B(z, "strong"), B(T, "u"), B(P, "del"), B(x, "code"), B(p, "mark"), B(j, "kbd"), F;
+      return D(z, "strong"), D(T, "u"), D(P, "del"), D(x, "code"), D(p, "mark"), D(j, "kbd"), F;
     }
     function L(r) {
       const {
@@ -992,7 +992,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
             disabled: z,
             content: j,
             class: F,
-            style: B
+            style: D
           } = T, ee = kt(T, ["type", "disabled", "content", "class", "style"]), {
             rows: k,
             suffix: te,
@@ -1000,10 +1000,10 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
           } = y.value, {
             edit: $e,
             copy: Pe,
-            copied: Be,
-            expand: De
+            copied: De,
+            expand: Be
           } = x;
-          l.editStr = $e, l.copyStr = Pe, l.copiedStr = Be, l.expandStr = De;
+          l.editStr = $e, l.copyStr = Pe, l.copiedStr = De, l.expandStr = Be;
           const Re = W(ee, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), ne = H.value, Ae = k === 1 && ne, ge = k && k > 1 && ne;
           let M = p, je;
           if (k && l.isEllipsis && !l.expanded && !ne) {
@@ -1023,7 +1023,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
             onResize: O,
             disabled: !k
           }, {
-            default: () => [f(E, D({
+            default: () => [f(E, B({
               ref: m,
               class: [{
                 [`${d.value}-${P}`]: P,
@@ -1033,7 +1033,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
                 [`${d.value}-ellipsis-single-line`]: Ae,
                 [`${d.value}-ellipsis-multiple-line`]: ge
               }, F],
-              style: s(s({}, B), {
+              style: s(s({}, D), {
                 WebkitLineClamp: ge ? k : void 0
               }),
               "aria-label": je,
@@ -1098,7 +1098,7 @@ const Pt = () => W(q(), ["component"]), Q = (e, n) => {
 Q.displayName = "ATypographyParagraph";
 Q.inheritAttrs = !1;
 Q.props = Pt();
-const Bt = () => s(s({}, W(q(), ["component"])), {
+const Dt = () => s(s({}, W(q(), ["component"])), {
   ellipsis: {
     type: [Boolean, Object],
     default: void 0
@@ -1120,8 +1120,8 @@ const Bt = () => s(s({}, W(q(), ["component"])), {
 };
 Y.displayName = "ATypographyText";
 Y.inheritAttrs = !1;
-Y.props = Bt();
-var Dt = function(e, n) {
+Y.props = Dt();
+var Bt = function(e, n) {
   var o = {};
   for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
   if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
@@ -1137,7 +1137,7 @@ const Rt = Ye(1, 2, 3, 4, 5), At = () => s(s({}, W(q(), ["component", "strong"])
   } = n;
   const {
     level: i = 1
-  } = e, d = Dt(e, ["level"]);
+  } = e, d = Bt(e, ["level"]);
   let a;
   Rt.includes(i) ? a = `h${i}` : (X(!1, "Typography", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."), a = "h1");
   const l = s(s(s({}, d), {

+ 13 - 13
lib/js/index17.js

@@ -1,5 +1,5 @@
-import { g as j, m as F, d, r as k, b as X, u as R, bD as Y, _ as M, dC as q, c as J, b0 as K, bc as Q, P, b5 as N, dD as I } from "./index2.js";
-import { defineComponent as L, computed as o, createVNode as h, ref as O, watch as U, Fragment as Z } from "vue";
+import { g as j, m as F, d, r as k, b as X, u as R, bO as Y, _ as M, dN as q, c as J, bb as K, bn as Q, P as D, bg as N, dO as I } from "./index2.js";
+import { defineComponent as L, computed as o, createVNode as h, ref as P, watch as U, Fragment as Z } from "vue";
 import { u as tt } from "./useFlexGapSupport.js";
 const et = (t) => {
   const {
@@ -204,8 +204,8 @@ const et = (t) => {
   size: {
     type: [String, Number, Array]
   },
-  direction: P.oneOf(N("horizontal", "vertical")).def("horizontal"),
-  align: P.oneOf(N("start", "end", "center", "baseline")),
+  direction: D.oneOf(N("horizontal", "vertical")).def("horizontal"),
+  align: D.oneOf(N("start", "end", "center", "baseline")),
   wrap: Q()
 });
 function ot(t) {
@@ -231,7 +231,7 @@ const C = L({
     } = R("space", t), [S, b] = q(i), m = tt(), c = o(() => {
       var n, g, $;
       return ($ = (n = t.size) !== null && n !== void 0 ? n : (g = f == null ? void 0 : f.value) === null || g === void 0 ? void 0 : g.size) !== null && $ !== void 0 ? $ : "small";
-    }), p = O(), v = O();
+    }), p = P(), v = P();
     U(c, () => {
       [p.value, v.value] = (Array.isArray(c.value) ? c.value : [c.value, c.value]).map((n) => ot(n));
     }, {
@@ -252,30 +252,30 @@ const C = L({
       const {
         wrap: $,
         direction: V = "horizontal"
-      } = t, A = (n = l.default) === null || n === void 0 ? void 0 : n.call(l), D = K(A), E = D.length;
-      if (E === 0)
+      } = t, A = (n = l.default) === null || n === void 0 ? void 0 : n.call(l), E = K(A), W = E.length;
+      if (W === 0)
         return null;
-      const y = (g = l.split) === null || g === void 0 ? void 0 : g.call(l), W = `${i.value}-item`, H = p.value, B = E - 1;
+      const y = (g = l.split) === null || g === void 0 ? void 0 : g.call(l), H = `${i.value}-item`, O = p.value, B = W - 1;
       return h("div", M(M({}, a), {}, {
         class: [u.value, a.class],
         style: [s.value, a.style]
-      }), [D.map((T, z) => {
+      }), [E.map((T, z) => {
         let G = A.indexOf(T);
         G === -1 && (G = `$$space-${z}`);
         let w = {};
         return m.value || (V === "vertical" ? z < B && (w = {
-          marginBottom: `${H / (y ? 2 : 1)}px`
+          marginBottom: `${O / (y ? 2 : 1)}px`
         }) : w = d(d({}, z < B && {
-          [_.value]: `${H / (y ? 2 : 1)}px`
+          [_.value]: `${O / (y ? 2 : 1)}px`
         }), $ && {
           paddingBottom: `${v.value}px`
         })), S(h(Z, {
           key: G
         }, [h("div", {
-          class: W,
+          class: H,
           style: w
         }, [T]), z < B && y && h("span", {
-          class: `${W}-split`,
+          class: `${H}-split`,
           style: w
         }, [y])]));
       })]);

+ 33 - 33
lib/js/index18.js

@@ -1,4 +1,4 @@
-import { g as he, m as me, d as o, r as Re, cC as N, t as ve, c as x, cl as ze, u as B, i as ae, _ as w, o as fe, dE as E, bD as Ee, h as Le, dF as De, aT as Ge, dG as We, P as L, bI as U, dH as J } from "./index2.js";
+import { g as he, m as me, d as o, r as Re, cN as N, t as ve, c as x, cw as ze, u as B, i as ae, _ as w, o as fe, dP as E, bO as Ee, h as Le, dQ as De, b2 as Ge, dR as We, P as L, bT as Q, dS as U } from "./index2.js";
 import { defineComponent as y, createVNode as r, computed as G, isVNode as pe } from "vue";
 import { T as be } from "./index12.js";
 const _e = (e) => {
@@ -339,18 +339,18 @@ const _e = (e) => {
       }, null);
     };
   }
-}), Ue = () => ({
+}), Qe = () => ({
   prefixCls: String,
   width: {
     type: [Number, String, Array]
   },
   rows: Number
-}), Je = y({
+}), Ue = y({
   compatConfig: {
     MODE: 3
   },
   name: "SkeletonParagraph",
-  props: Ue(),
+  props: Qe(),
   setup(e) {
     const t = (n) => {
       const {
@@ -411,7 +411,7 @@ const _e = (e) => {
   }, null);
 };
 W.displayName = "SkeletonElement";
-const Qe = new ze("ant-skeleton-loading", {
+const Je = new ze("ant-skeleton-loading", {
   "0%": {
     transform: "translateX(-37.5%)"
   },
@@ -438,13 +438,13 @@ const Qe = new ze("ant-skeleton-loading", {
     bottom: 0,
     insetInlineStart: "-150%",
     background: e.skeletonLoadingBackground,
-    animationName: Qe,
+    animationName: Je,
     animationDuration: e.skeletonLoadingMotionDuration,
     animationTimingFunction: "ease",
     animationIterationCount: "infinite",
     content: '""'
   }
-}), Q = (e) => o({
+}), J = (e) => o({
   width: e * 5,
   minWidth: e * 5
 }, q(e)), Ze = (e) => {
@@ -482,9 +482,9 @@ const Qe = new ze("ant-skeleton-loading", {
       verticalAlign: "top",
       background: d,
       borderRadius: n
-    }, Q(t)),
-    [`${a}-lg`]: o({}, Q(i)),
-    [`${a}-sm`]: o({}, Q(l))
+    }, J(t)),
+    [`${a}-lg`]: o({}, J(i)),
+    [`${a}-sm`]: o({}, J(l))
   };
 }, $e = (e) => o({
   width: e
@@ -579,7 +579,7 @@ const Qe = new ze("ant-skeleton-loading", {
     skeletonBlockRadius: f,
     skeletonParagraphLineHeight: S,
     controlHeightXS: H,
-    skeletonParagraphMarginTop: I
+    skeletonParagraphMarginTop: A
   } = e;
   return {
     [`${t}`]: {
@@ -644,7 +644,7 @@ const Qe = new ze("ant-skeleton-loading", {
       [`${a}`]: {
         marginBlockStart: u,
         [`+ ${i}`]: {
-          marginBlockStart: I
+          marginBlockStart: A
         }
       }
     },
@@ -786,32 +786,32 @@ const $ = y({
         const h = !!b || b === "", f = !!m || m === "", S = !!v || v === "";
         let H;
         if (h) {
-          const A = o(o({
+          const I = o(o({
             prefixCls: `${s}-avatar`
           }, it(f, S)), ee(b));
           H = r("div", {
             class: `${s}-header`
-          }, [r(W, A, null)]);
+          }, [r(W, I, null)]);
         }
-        let I;
+        let A;
         if (f || S) {
-          let A;
+          let I;
           if (f) {
             const C = o(o({
               prefixCls: `${s}-title`
             }, rt(h, S)), ee(m));
-            A = r(oe, C, null);
+            I = r(oe, C, null);
           }
           let P;
           if (S) {
             const C = o(o({
               prefixCls: `${s}-paragraph`
             }, lt(h, f)), ee(v));
-            P = r(Je, C, null);
+            P = r(Ue, C, null);
           }
-          I = r("div", {
+          A = r("div", {
             class: `${s}-content`
-          }, [A, P]);
+          }, [I, P]);
         }
         const k = x(s, {
           [`${s}-with-avatar`]: h,
@@ -822,7 +822,7 @@ const $ = y({
         });
         return l(r("div", {
           class: k
-        }, [H, I]));
+        }, [H, A]));
       }
       return (g = n.default) === null || g === void 0 ? void 0 : g.call(n);
     };
@@ -1006,9 +1006,9 @@ const {
       var p, u, s, h, f, S;
       const {
         headStyle: H = {},
-        bodyStyle: I = {},
+        bodyStyle: A = {},
         loading: k,
-        bordered: A = !0,
+        bordered: I = !0,
         type: P,
         tabList: C,
         hoverable: we,
@@ -1023,7 +1023,7 @@ const {
         [`${c}`]: !0,
         [T.value]: !0,
         [`${c}-loading`]: k,
-        [`${c}-bordered`]: A,
+        [`${c}-bordered`]: I,
         [`${c}-hoverable`]: !!we,
         [`${c}-contain-grid`]: v(R),
         [`${c}-contain-tabs`]: C && C.length,
@@ -1039,14 +1039,14 @@ const {
         title: !1
       }, {
         default: () => [R]
-      }), se = ie !== void 0, Ie = {
+      }), se = ie !== void 0, Ae = {
         size: "large",
         [se ? "activeKey" : "defaultActiveKey"]: se ? ie : Be,
         onChange: m,
         class: `${c}-head-tabs`
       };
       let de;
-      const ce = C && C.length ? r(be, Ie, {
+      const ce = C && C.length ? r(be, Ae, {
         default: () => [C.map((z) => {
           const {
             tab: ue,
@@ -1072,11 +1072,11 @@ const {
       }, [X]), K && r("div", {
         class: `${c}-extra`
       }, [K])]), ce]));
-      const Ae = le ? r("div", {
+      const Ie = le ? r("div", {
         class: `${c}-cover`
       }, [le]) : null, Me = r("div", {
         class: `${c}-body`,
-        style: I
+        style: A
       }, [k ? He : R]), Pe = F && F.length ? r("ul", {
         class: `${c}-actions`
       }, [b(F)]) : null;
@@ -1084,14 +1084,14 @@ const {
         ref: "cardContainerRef"
       }, a), {}, {
         class: [Te, a.class]
-      }), [de, Ae, R && R.length ? Me : null, Pe]));
+      }), [de, Ie, R && R.length ? Me : null, Pe]));
     };
   }
 }), pt = () => ({
   prefixCls: String,
-  title: J(),
-  description: J(),
-  avatar: J()
+  title: U(),
+  description: U(),
+  avatar: U()
 }), te = y({
   compatConfig: {
     MODE: 3
@@ -1109,7 +1109,7 @@ const {
     return () => {
       const i = {
         [`${a.value}-meta`]: !0
-      }, l = U(n, e, "avatar"), d = U(n, e, "title"), g = U(n, e, "description"), T = l ? r("div", {
+      }, l = Q(n, e, "avatar"), d = Q(n, e, "title"), g = Q(n, e, "description"), T = l ? r("div", {
         class: `${a.value}-meta-avatar`
       }, [l]) : null, b = d ? r("div", {
         class: `${a.value}-meta-title`

Fichier diff supprimé car celui-ci est trop grand
+ 295 - 273
lib/js/index2.js


+ 1 - 1
lib/js/index3.js

@@ -15,7 +15,7 @@ var dA = (M, n, A) => new Promise((D, w) => {
   c((A = A.apply(M, n)).next());
 });
 import { e as Og } from "./base64Util.js";
-import { bX as I, df as gw, bY as Bw, n as PA, dg as ZB, dh as bB, di as lB, dj as GB, ad as dB, dk as ww, dl as aB, dm as Dw, I as uB, d9 as yB, B as XB, a6 as sw, a7 as ew, dn as mA, dp as Kg, dq as Cw, y as tw, dr as jB, ao as Mw } from "./index2.js";
+import { c6 as I, dr as gw, c7 as Bw, n as PA, ds as ZB, dt as bB, du as lB, dv as GB, ad as dB, dw as ww, dx as aB, dy as Dw, I as uB, dk as yB, B as XB, a6 as sw, a7 as ew, dz as mA, dA as Kg, dB as Cw, y as tw, dC as jB, aA as Mw } from "./index2.js";
 import { openBlock as m, createElementBlock as T, normalizeStyle as vA, createElementVNode as V, withDirectives as xg, vShow as Zg, createVNode as o, Transition as vw, withCtx as F, normalizeClass as oA, toDisplayString as E, createCommentVNode as AA, Fragment as FA, renderList as bg, createTextVNode as $, createBlock as DA, resolveDynamicComponent as kA, resolveComponent as YA, withModifiers as jA, ref as MA, computed as rw, reactive as fw, onMounted as nw, unref as Eg, normalizeProps as zw, guardReactiveProps as Pw } from "vue";
 import { F as VB, _ as oB } from "./index5.js";
 import { T as cw, _ as Yw } from "./index12.js";

+ 1 - 1
lib/js/index5.js

@@ -1,4 +1,4 @@
-import { ar as bn, as as Pe, at as wn, au as Tt, av as Ye, aw as xn, ax as qe, ay as $n, az as It, aA as Fn, aB as An, aC as _t, aD as On, aE as lt, aF as st, aG as Je, aH as Ze, aI as jt, aJ as Ce, aK as Cn, aL as Mt, aM as Lt, aN as Sn, aO as Rt, aP as En, aQ as Pn, aR as ut, aS as qn, aT as Tn, d as P, D as Ne, E as In, aU as _n, c as pe, y as jn, aV as Mn, aW as Ln, _ as W, g as Rn, m as Nn, aX as Nt, aY as Vn, r as Vt, aZ as Dn, a_ as Bn, a$ as Gn, b0 as Dt, u as Bt, b1 as Wn, V as zn, a1 as Un, b2 as Hn, b3 as Kn, b4 as Xn, P as de, b5 as Qe, b6 as Yn, b7 as Gt, b8 as Jn, b9 as Zn, ba as Qn, i as kn, bb as ue, bc as me, bd as ft, be as ct, f as er, e as $e, bf as je, U as tr, bg as Ve } from "./index2.js";
+import { aC as bn, aD as Pe, aE as wn, aF as Tt, aG as Ye, aH as xn, aI as qe, aJ as $n, aK as It, aL as Fn, aM as An, aN as _t, aO as On, aP as lt, aQ as st, aR as Je, aS as Ze, aT as jt, aU as Ce, aV as Cn, aW as Mt, aX as Lt, aY as Sn, aZ as Rt, a_ as En, a$ as Pn, b0 as ut, b1 as qn, b2 as Tn, d as P, D as Ne, E as In, b3 as _n, c as pe, y as jn, b4 as Mn, b5 as Ln, _ as W, g as Rn, m as Nn, b6 as Nt, b7 as Vn, r as Vt, b8 as Dn, b9 as Bn, ba as Gn, bb as Dt, u as Bt, bc as Wn, V as zn, a1 as Un, bd as Hn, be as Kn, bf as Xn, P as de, bg as Qe, bh as Yn, bi as Gt, bj as Jn, bk as Zn, bl as Qn, i as kn, bm as ue, bn as me, bo as ft, bp as ct, f as er, e as $e, bq as je, U as tr, br as Ve } from "./index2.js";
 import { cloneVNode as nr, inject as Wt, computed as F, provide as zt, createVNode as _, Fragment as Se, defineComponent as Te, ref as ke, watch as se, Transition as rr, withDirectives as ir, TransitionGroup as ar, vShow as or, shallowRef as ee, watchEffect as De, onBeforeUnmount as lr, reactive as Ut, onMounted as sr, toRaw as Be, nextTick as Ht, unref as ae } from "vue";
 import { a as Kt, s as ur, o as fr, i as Xt, b as et, c as Yt, t as Ee, h as cr, d as Jt, e as Zt, f as dr } from "./hasIn.js";
 import { C as Qt, A as mr } from "./Col.js";

+ 16 - 16
lib/js/index6.js

@@ -1,6 +1,6 @@
-import { g as P, m as S, br as _, d, r as w, bs as B, bt as k, b as T, bf as N, u as z, c as A, y as D, _ as h, a3 as I, o as W, i as E, bu as H, b0 as C, bv as j, f as $ } from "./index2.js";
-import { defineComponent as M, ref as R, computed as L, createVNode as b, Fragment as O } from "vue";
-const F = (e) => {
+import { g as P, m as S, bC as _, d, r as w, bD as B, bE as k, b as T, bq as D, u as N, c as z, y as A, _ as h, a3 as I, o as W, i as E, bF as H, bb as C, bG as j, f as $ } from "./index2.js";
+import { defineComponent as M, ref as R, computed as F, createVNode as b, Fragment as G } from "vue";
+const L = (e) => {
   const {
     componentCls: o,
     popoverBg: r,
@@ -74,7 +74,7 @@ const F = (e) => {
       }
     }
   ];
-}, G = (e) => {
+}, O = (e) => {
   const {
     componentCls: o
   } = e;
@@ -94,7 +94,7 @@ const F = (e) => {
       };
     })
   };
-}, V = (e) => {
+}, q = (e) => {
   const {
     componentCls: o,
     lineWidth: r,
@@ -121,7 +121,7 @@ const F = (e) => {
       }
     }
   };
-}, X = P("Popover", (e) => {
+}, V = P("Popover", (e) => {
   const {
     colorBgElevated: o,
     colorText: r,
@@ -132,7 +132,7 @@ const F = (e) => {
     popoverPadding: 12
     // Fixed Value
   });
-  return [F(a), G(a), t && V(a), _(a, "zoom-big")];
+  return [L(a), O(a), t && q(a), _(a, "zoom-big")];
 }, (e) => {
   let {
     zIndexPopupBase: o
@@ -141,16 +141,16 @@ const F = (e) => {
     zIndexPopup: o + 30,
     width: 177
   };
-}), Z = () => d(d({}, j()), {
+}), X = () => d(d({}, j()), {
   content: $(),
   title: $()
-}), q = M({
+}), Z = M({
   compatConfig: {
     MODE: 3
   },
   name: "APopover",
   inheritAttrs: !1,
-  props: E(Z(), d(d({}, H()), {
+  props: E(X(), d(d({}, H()), {
     trigger: "hover",
     placement: "top",
     mouseEnterDelay: 0.1,
@@ -163,7 +163,7 @@ const F = (e) => {
       attrs: a
     } = o;
     const s = R();
-    N(e.visible === void 0, "popover", "`visible` will be removed in next major version, please use `open` instead."), r({
+    D(e.visible === void 0, "popover", "`visible` will be removed in next major version, please use `open` instead."), r({
       getPopupDomNode: () => {
         var n, i;
         return (i = (n = s.value) === null || n === void 0 ? void 0 : n.getPopupDomNode) === null || i === void 0 ? void 0 : i.call(n);
@@ -172,21 +172,21 @@ const F = (e) => {
     const {
       prefixCls: l,
       configProvider: c
-    } = z("popover", e), [u, g] = X(l), p = L(() => c.getPrefixCls()), v = () => {
+    } = N("popover", e), [u, g] = V(l), p = F(() => c.getPrefixCls()), v = () => {
       var n, i;
       const {
         title: m = C((n = t.title) === null || n === void 0 ? void 0 : n.call(t)),
         content: f = C((i = t.content) === null || i === void 0 ? void 0 : i.call(t))
       } = e, x = !!(Array.isArray(m) ? m.length : m), y = !!(Array.isArray(f) ? f.length : m);
-      return !x && !y ? null : b(O, null, [x && b("div", {
+      return !x && !y ? null : b(G, null, [x && b("div", {
         class: `${l.value}-title`
       }, [m]), b("div", {
         class: `${l.value}-inner-content`
       }, [f])]);
     };
     return () => {
-      const n = A(e.overlayClassName, g.value);
-      return u(b(D, h(h(h({}, W(e, ["title", "content"])), a), {}, {
+      const n = z(e.overlayClassName, g.value);
+      return u(b(A, h(h(h({}, W(e, ["title", "content"])), a), {}, {
         prefixCls: l.value,
         ref: s,
         overlayClassName: n,
@@ -198,7 +198,7 @@ const F = (e) => {
       }));
     };
   }
-}), U = T(q);
+}), U = T(Z);
 export {
   U as _
 };

+ 119 - 119
lib/js/index7.js

@@ -1,5 +1,5 @@
-import { G as ot, bw as rt, bx as st, K as ue, by as ct, _ as z, d as p, b0 as it, D as H, bz as ut, A as dt, N as $e, J as vt, L as Xe, M as ft, bA as ht, bB as Ye, o as Ce, O as pt, i as qe, Q as mt, P as de, g as gt, m as et, bC as yt, S as bt, h as Oe, U as St, V as Ct, W as wt, u as xt, X as It, Y as Vt, a4 as kt, Z as Tt, c as Ge, a2 as Nt, a5 as Et, bD as Lt, bE as Dt, bb as Fe, bd as He, e as Pt, be as _t, bc as At } from "./index2.js";
-import { inject as Kt, provide as Ot, defineComponent as We, ref as ye, computed as y, watch as be, nextTick as Ft, shallowRef as R, toRaw as le, createVNode as X, watchEffect as Se, toRef as oe, toRefs as Ht } from "vue";
+import { G as ot, bH as rt, bI as st, K as ue, bJ as ct, _ as z, d as p, bb as it, D as H, bK as ut, A as dt, N as $e, J as vt, L as Xe, M as ft, bL as ht, bM as Ye, o as Ce, O as pt, i as qe, Q as mt, P as de, g as gt, m as et, bN as yt, S as bt, h as Oe, U as St, V as Ct, W as wt, u as xt, X as It, Y as Vt, a4 as kt, Z as Nt, c as Ge, a2 as Tt, a5 as Et, bO as Lt, bP as Pt, bm as Fe, bo as He, e as Dt, bp as Kt, bn as _t } from "./index2.js";
+import { inject as At, provide as Ot, defineComponent as We, ref as ye, computed as y, watch as be, nextTick as Ft, shallowRef as R, toRaw as le, createVNode as X, watchEffect as Se, toRef as oe, toRefs as Ht } from "vue";
 function tt(e) {
   return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
 }
@@ -38,7 +38,7 @@ function Rt(e) {
   return Ot(lt, e);
 }
 function jt() {
-  return Kt(lt, {});
+  return At(lt, {});
 }
 const Bt = {
   width: 0,
@@ -97,22 +97,22 @@ const Bt = {
       let {
         node: L
       } = b;
-      var _, N;
+      var K, T;
       const {
         checkable: U,
         checkedKeys: Y
       } = n;
-      U && Re(L) || ((_ = r.onSelect) === null || _ === void 0 || _.call(r, L.key, {
+      U && Re(L) || ((K = r.onSelect) === null || K === void 0 || K.call(r, L.key, {
         selected: !Y.includes(L.key)
-      }), l.multiple || (N = l.toggleOpen) === null || N === void 0 || N.call(l, !1));
-    }, A = ye(null), K = y(() => n.keyEntities[A.value]), F = (v) => {
-      A.value = v;
+      }), l.multiple || (T = l.toggleOpen) === null || T === void 0 || T.call(l, !1));
+    }, _ = ye(null), A = y(() => n.keyEntities[_.value]), F = (v) => {
+      _.value = v;
     };
     return t({
       scrollTo: function() {
-        for (var v, b, L = arguments.length, _ = new Array(L), N = 0; N < L; N++)
-          _[N] = arguments[N];
-        return (b = (v = s.value) === null || v === void 0 ? void 0 : v.scrollTo) === null || b === void 0 ? void 0 : b.call(v, ..._);
+        for (var v, b, L = arguments.length, K = new Array(L), T = 0; T < L; T++)
+          K[T] = arguments[T];
+        return (b = (v = s.value) === null || v === void 0 ? void 0 : v.scrollTo) === null || b === void 0 ? void 0 : b.call(v, ...K);
       },
       onKeydown: (v) => {
         var b;
@@ -127,16 +127,16 @@ const Bt = {
             (b = s.value) === null || b === void 0 || b.onKeydown(v);
             break;
           case ue.ENTER: {
-            if (K.value) {
+            if (A.value) {
               const {
-                selectable: _,
-                value: N
-              } = K.value.node || {};
-              _ !== !1 && O(null, {
+                selectable: K,
+                value: T
+              } = A.value.node || {};
+              K !== !1 && O(null, {
                 node: {
-                  key: A.value
+                  key: _.value
                 },
-                selected: !n.checkedKeys.includes(N)
+                selected: !n.checkedKeys.includes(T)
               });
             }
             break;
@@ -152,8 +152,8 @@ const Bt = {
       const {
         prefixCls: b,
         multiple: L,
-        searchValue: _,
-        open: N,
+        searchValue: K,
+        open: T,
         notFoundContent: U = (v = a.notFoundContent) === null || v === void 0 ? void 0 : v.call(a)
       } = l, {
         listHeight: Y,
@@ -171,7 +171,7 @@ const Bt = {
         loadData: pe,
         treeLoadedKeys: ie,
         treeMotion: m,
-        onTreeLoad: D,
+        onTreeLoad: P,
         checkedKeys: M
       } = n;
       if (d.value.length === 0)
@@ -185,10 +185,10 @@ const Bt = {
       };
       return ie && (Q.loadedKeys = ie), I.value && (Q.expandedKeys = I.value), X("div", {
         onMousedown: k
-      }, [K.value && N && X("span", {
+      }, [A.value && T && X("span", {
         style: Bt,
         "aria-live": "assertive"
-      }, [K.value.node.value]), X(ct, z(z({
+      }, [A.value.node.value]), X(ct, z(z({
         ref: s,
         focusable: !1,
         prefixCls: `${b}-tree`,
@@ -201,9 +201,9 @@ const Bt = {
         showIcon: J,
         switcherIcon: fe,
         showLine: he,
-        loadData: _ ? null : pe,
+        loadData: K ? null : pe,
         motion: m,
-        activeKey: A.value,
+        activeKey: _.value,
         checkable: se,
         checkStrictly: !0,
         checkedKeys: o.value,
@@ -214,7 +214,7 @@ const Bt = {
         onSelect: O,
         onCheck: O,
         onExpand: w,
-        onLoad: D,
+        onLoad: P,
         filterTreeNode: g,
         expandAction: re
       }), p(p({}, a), {
@@ -265,8 +265,8 @@ function Yt(e) {
       if (!Xt(t))
         return H(!t, "TreeSelect/TreeSelectNode can only accept TreeSelectNode as children."), null;
       const s = t.children || {}, d = t.key, o = {};
-      for (const [L, _] of Object.entries(t.props))
-        o[ut(L)] = _;
+      for (const [L, K] of Object.entries(t.props))
+        o[ut(L)] = K;
       const {
         isLeaf: u,
         checkable: g,
@@ -281,10 +281,10 @@ function Yt(e) {
         disableCheckbox: I || I === "" || void 0
       }, k = p(p({}, o), w), {
         title: O = (l = s.title) === null || l === void 0 ? void 0 : l.call(s, k),
-        switcherIcon: A = (n = s.switcherIcon) === null || n === void 0 ? void 0 : n.call(s, k)
-      } = o, K = zt(o, ["title", "switcherIcon"]), F = (r = s.default) === null || r === void 0 ? void 0 : r.call(s), v = p(p(p({}, K), {
+        switcherIcon: _ = (n = s.switcherIcon) === null || n === void 0 ? void 0 : n.call(s, k)
+      } = o, A = zt(o, ["title", "switcherIcon"]), F = (r = s.default) === null || r === void 0 ? void 0 : r.call(s), v = p(p(p({}, A), {
         title: O,
-        switcherIcon: A,
+        switcherIcon: _,
         key: d,
         isLeaf: u
       }), w), b = c(F);
@@ -309,14 +309,14 @@ function Gt(e, c, a, t, l, n) {
     function o(u) {
       let g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
       return u.map((C, I) => {
-        const w = `${g}-${I}`, k = C[n.value], O = a.includes(k), A = o(C[n.children] || [], w, O), K = X(ve, C, {
-          default: () => [A.map((F) => F.node)]
+        const w = `${g}-${I}`, k = C[n.value], O = a.includes(k), _ = o(C[n.children] || [], w, O), A = X(ve, C, {
+          default: () => [_.map((F) => F.node)]
         });
-        if (c === k && (r = K), O) {
+        if (c === k && (r = A), O) {
           const F = {
             pos: w,
-            node: K,
-            children: A
+            node: A,
+            children: _
           };
           return V || s.push(F), F;
         }
@@ -475,9 +475,9 @@ const Zt = (e) => {
       let V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
       const C = [];
       for (let I = 0, w = g.length; I < w; I++) {
-        const k = g[I], O = k[r], A = V || o(s, Be(k)), K = u(O || [], A);
-        (A || K.length) && C.push(p(p({}, k), {
-          [r]: K
+        const k = g[I], O = k[r], _ = V || o(s, Be(k)), A = u(O || [], _);
+        (_ || A.length) && C.push(p(p({}, k), {
+          [r]: A
         }));
       }
       return C;
@@ -678,11 +678,11 @@ const al = We({
         missingRawValues: f,
         existRawValues: h
       };
-    }, A = tl(I, g, {
+    }, _ = tl(I, g, {
       fieldNames: u,
       treeNodeFilterProp: oe(e, "treeNodeFilterProp"),
       filterTreeNode: oe(e, "filterTreeNode")
-    }), K = (i) => {
+    }), A = (i) => {
       if (i) {
         if (e.treeNodeLabelProp)
           return i[e.treeNodeLabelProp];
@@ -702,41 +702,41 @@ const al = We({
         label: x
       } = h;
       const {
-        value: P,
+        value: D,
         halfChecked: E
       } = h;
       let S;
-      const T = k.value.get(P);
-      return T && (x = x != null ? x : K(T.node), S = T.node.disabled), {
+      const N = k.value.get(D);
+      return N && (x = x != null ? x : A(N.node), S = N.node.disabled), {
         label: x,
-        value: P,
+        value: D,
         halfChecked: E,
         disabled: S
       };
     }), [b, L] = Xe(e.defaultValue, {
       value: oe(e, "value")
-    }), _ = y(() => F(b.value)), N = R([]), U = R([]);
+    }), K = y(() => F(b.value)), T = R([]), U = R([]);
     Se(() => {
       const i = [], f = [];
-      _.value.forEach((h) => {
+      K.value.forEach((h) => {
         h.halfChecked ? f.push(h) : i.push(h);
-      }), N.value = i, U.value = f;
+      }), T.value = i, U.value = f;
     });
-    const Y = y(() => N.value.map((i) => i.value)), {
+    const Y = y(() => T.value.map((i) => i.value)), {
       maxLevel: j,
       levelEntities: ne
-    } = ft(w), [G, re] = el(N, U, r, w, j, ne), se = y(() => {
+    } = ft(w), [G, re] = el(T, U, r, w, j, ne), se = y(() => {
       const h = Je(G.value, e.showCheckedStrategy, w.value, u.value).map((E) => {
-        var S, T, $;
-        return ($ = (T = (S = w.value[E]) === null || S === void 0 ? void 0 : S.node) === null || T === void 0 ? void 0 : T[u.value.value]) !== null && $ !== void 0 ? $ : E;
+        var S, N, $;
+        return ($ = (N = (S = w.value[E]) === null || S === void 0 ? void 0 : S.node) === null || N === void 0 ? void 0 : N[u.value.value]) !== null && $ !== void 0 ? $ : E;
       }).map((E) => {
-        const S = N.value.find((T) => T.value === E);
+        const S = T.value.find((N) => N.value === E);
         return {
           value: E,
           label: S == null ? void 0 : S.label
         };
-      }), x = v(h), P = x[0];
-      return !o.value && P && je(P.value) && je(P.label) ? [] : x.map((E) => {
+      }), x = v(h), D = x[0];
+      return !o.value && D && je(D.value) && je(D.label) ? [] : x.map((E) => {
         var S;
         return p(p({}, E), {
           label: (S = E.label) !== null && S !== void 0 ? S : E.value
@@ -745,8 +745,8 @@ const al = We({
     }), [ce] = Zt(se), ae = (i, f, h) => {
       const x = v(i);
       if (L(x), e.autoClearSearchValue && V(""), e.onChange) {
-        let P = i;
-        r.value && (P = Je(i, e.showCheckedStrategy, w.value, u.value).map((te) => {
+        let D = i;
+        r.value && (D = Je(i, e.showCheckedStrategy, w.value, u.value).map((te) => {
           const ge = k.value.get(te);
           return ge ? ge.node[u.value.value] : te;
         }));
@@ -757,14 +757,14 @@ const al = We({
           triggerValue: void 0,
           selected: void 0
         };
-        let T = P;
+        let N = D;
         if (e.treeCheckStrictly) {
-          const W = U.value.filter((te) => !P.includes(te.value));
-          T = [...T, ...W];
+          const W = U.value.filter((te) => !D.includes(te.value));
+          N = [...N, ...W];
         }
-        const $ = v(T), q = {
+        const $ = v(N), q = {
           // [Legacy] Always return as array contains label & value
-          preValue: N.value,
+          preValue: T.value,
           triggerValue: E
         };
         let ee = !0;
@@ -777,8 +777,8 @@ const al = We({
         selected: h,
         source: x
       } = f;
-      var P, E, S;
-      const T = le(w.value), $ = le(k.value), q = T[i], ee = q == null ? void 0 : q.node, B = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
+      var D, E, S;
+      const N = le(w.value), $ = le(k.value), q = N[i], ee = q == null ? void 0 : q.node, B = (D = ee == null ? void 0 : ee[u.value.value]) !== null && D !== void 0 ? D : i;
       if (!o.value)
         ae([B], {
           selected: !0,
@@ -790,15 +790,15 @@ const al = We({
           const {
             missingRawValues: te,
             existRawValues: ge
-          } = O(W), ze = ge.map((Ke) => $.get(Ke).key);
-          let Ae;
+          } = O(W), ze = ge.map((Ae) => $.get(Ae).key);
+          let _e;
           h ? {
-            checkedKeys: Ae
-          } = $e(ze, !0, T, j.value, ne.value) : {
-            checkedKeys: Ae
+            checkedKeys: _e
+          } = $e(ze, !0, N, j.value, ne.value) : {
+            checkedKeys: _e
           } = $e(ze, {
             halfCheckedKeys: re.value
-          }, T, j.value, ne.value), W = [...te, ...Ae.map((Ke) => T[Ke].node[u.value.value])];
+          }, N, j.value, ne.value), W = [...te, ..._e.map((Ae) => N[Ae].node[u.value.value])];
         }
         ae(W, {
           selected: h,
@@ -830,7 +830,7 @@ const al = We({
       // Data
       loadData: ie,
       treeLoadedKeys: m,
-      onTreeLoad: D,
+      onTreeLoad: P,
       // Expanded
       treeDefaultExpandAll: M,
       treeExpandedKeys: Q,
@@ -841,20 +841,20 @@ const al = We({
       listHeight: Ve,
       listItemHeight: ke,
       // Tree
-      treeLine: Te,
+      treeLine: Ne,
       treeIcon: me,
-      showTreeIcon: Ne,
+      showTreeIcon: Te,
       switcherIcon: Ee,
       treeMotion: Le,
-      customSlots: De,
-      dropdownMatchSelectWidth: Pe,
-      treeExpandAction: _e
+      customSlots: Pe,
+      dropdownMatchSelectWidth: De,
+      treeExpandAction: Ke
     } = Ht(e);
     ht(Ye({
       checkable: s,
       loadData: ie,
       treeLoadedKeys: m,
-      onTreeLoad: D,
+      onTreeLoad: P,
       checkedKeys: G,
       halfCheckedKeys: re,
       treeDefaultExpandAll: M,
@@ -863,21 +863,21 @@ const al = We({
       onTreeExpand: xe,
       treeIcon: me,
       treeMotion: Le,
-      showTreeIcon: Ne,
+      showTreeIcon: Te,
       switcherIcon: Ee,
-      treeLine: Te,
+      treeLine: Ne,
       treeNodeFilterProp: pe,
       keyEntities: w,
-      customSlots: De
+      customSlots: Pe
     })), Rt(Ye({
       virtual: Ie,
       listHeight: Ve,
       listItemHeight: ke,
-      treeData: A,
+      treeData: _,
       fieldNames: u,
       onSelect: J,
-      dropdownMatchSelectWidth: Pe,
-      treeExpandAction: _e
+      dropdownMatchSelectWidth: De,
+      treeExpandAction: Ke
     }));
     const Z = ye();
     return t({
@@ -1026,9 +1026,9 @@ function sl() {
   return p(p({}, Ce(at(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {
     suffixIcon: de.any,
     size: He(),
-    bordered: At(),
-    treeLine: _t([Boolean, Object]),
-    replaceFields: Pt(),
+    bordered: _t(),
+    treeLine: Kt([Boolean, Object]),
+    replaceFields: Dt(),
     placement: He(),
     status: He(),
     popupClassName: String,
@@ -1072,28 +1072,28 @@ const Me = We({
       getPrefixCls: k,
       disabled: O
     } = xt("select", e), {
-      compactSize: A,
-      compactItemClassnames: K
-    } = It(o, g), F = y(() => A.value || I.value), v = Vt(), b = y(() => {
+      compactSize: _,
+      compactItemClassnames: A
+    } = It(o, g), F = y(() => _.value || I.value), v = Vt(), b = y(() => {
       var m;
       return (m = O.value) !== null && m !== void 0 ? m : v.value;
-    }), L = y(() => k()), _ = y(() => e.placement !== void 0 ? e.placement : g.value === "rtl" ? "bottomRight" : "bottomLeft"), N = y(() => Qe(L.value, kt(_.value), e.transitionName)), U = y(() => Qe(L.value, "", e.choiceTransitionName)), Y = y(() => k("select-tree", e.prefixCls)), j = y(() => k("tree-select", e.prefixCls)), [ne, G] = Tt(o), [re] = rl(j, Y), se = y(() => Ge(e.popupClassName || e.dropdownClassName, `${j.value}-dropdown`, {
+    }), L = y(() => k()), K = y(() => e.placement !== void 0 ? e.placement : g.value === "rtl" ? "bottomRight" : "bottomLeft"), T = y(() => Qe(L.value, kt(K.value), e.transitionName)), U = y(() => Qe(L.value, "", e.choiceTransitionName)), Y = y(() => k("select-tree", e.prefixCls)), j = y(() => k("tree-select", e.prefixCls)), [ne, G] = Nt(o), [re] = rl(j, Y), se = y(() => Ge(e.popupClassName || e.dropdownClassName, `${j.value}-dropdown`, {
       [`${j.value}-dropdown-rtl`]: g.value === "rtl"
     }, G.value)), ce = y(() => !!(e.treeCheckable || e.multiple)), ae = y(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !ce.value), J = ye();
     l({
       focus() {
-        var m, D;
-        (D = (m = J.value).focus) === null || D === void 0 || D.call(m);
+        var m, P;
+        (P = (m = J.value).focus) === null || P === void 0 || P.call(m);
       },
       blur() {
-        var m, D;
-        (D = (m = J.value).blur) === null || D === void 0 || D.call(m);
+        var m, P;
+        (P = (m = J.value).blur) === null || P === void 0 || P.call(m);
       }
     });
     const fe = function() {
-      for (var m = arguments.length, D = new Array(m), M = 0; M < m; M++)
-        D[M] = arguments[M];
-      n("update:value", D[0]), n("change", ...D), r.onFieldChange();
+      for (var m = arguments.length, P = new Array(m), M = 0; M < m; M++)
+        P[M] = arguments[M];
+      n("update:value", P[0]), n("change", ...P), r.onFieldChange();
     }, he = (m) => {
       n("update:treeExpandedKeys", m), n("treeExpand", m);
     }, pe = (m) => {
@@ -1102,7 +1102,7 @@ const Me = We({
       n("blur", m), r.onFieldBlur();
     };
     return () => {
-      var m, D, M;
+      var m, P, M;
       const {
         notFoundContent: Q = (m = t.notFoundContent) === null || m === void 0 ? void 0 : m.call(t),
         prefixCls: we,
@@ -1110,42 +1110,42 @@ const Me = We({
         listHeight: Ie,
         listItemHeight: Ve,
         multiple: ke,
-        treeIcon: Te,
+        treeIcon: Ne,
         treeLine: me,
-        showArrow: Ne,
-        switcherIcon: Ee = (D = t.switcherIcon) === null || D === void 0 ? void 0 : D.call(t),
+        showArrow: Te,
+        switcherIcon: Ee = (P = t.switcherIcon) === null || P === void 0 ? void 0 : P.call(t),
         fieldNames: Le = e.replaceFields,
-        id: De = r.id.value,
-        placeholder: Pe = (M = t.placeholder) === null || M === void 0 ? void 0 : M.call(t)
+        id: Pe = r.id.value,
+        placeholder: De = (M = t.placeholder) === null || M === void 0 ? void 0 : M.call(t)
       } = e, {
-        isFormItemInput: _e,
+        isFormItemInput: Ke,
         hasFeedback: Z,
         feedbackIcon: i
       } = s, {
         suffixIcon: f,
         removeIcon: h,
         clearIcon: x
-      } = Nt(p(p({}, e), {
+      } = Tt(p(p({}, e), {
         multiple: ce.value,
         showArrow: ae.value,
         hasFeedback: Z,
         feedbackIcon: i,
         prefixCls: o.value
       }), t);
-      let P;
-      Q !== void 0 ? P = Q : P = u("Select");
+      let D;
+      Q !== void 0 ? D = Q : D = u("Select");
       const E = Ce(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), S = Ge(!we && j.value, {
         [`${o.value}-lg`]: F.value === "large",
         [`${o.value}-sm`]: F.value === "small",
         [`${o.value}-rtl`]: g.value === "rtl",
         [`${o.value}-borderless`]: !xe,
-        [`${o.value}-in-form-item`]: _e
-      }, Et(o.value, d.value, Z), K.value, a.class, G.value), T = {};
-      return e.treeData === void 0 && t.default && (T.children = Lt(t.default())), ne(re(X(al, z(z(z(z({}, a), E), {}, {
+        [`${o.value}-in-form-item`]: Ke
+      }, Et(o.value, d.value, Z), A.value, a.class, G.value), N = {};
+      return e.treeData === void 0 && t.default && (N.children = Lt(t.default())), ne(re(X(al, z(z(z(z({}, a), E), {}, {
         disabled: b.value,
         virtual: V.value,
         dropdownMatchSelectWidth: C.value,
-        id: De,
+        id: Pe,
         fieldNames: Le,
         ref: J,
         prefixCls: o.value,
@@ -1157,9 +1157,9 @@ const Me = We({
         multiple: ke,
         removeIcon: h,
         clearIcon: x,
-        switcherIcon: ($) => Dt(Y.value, Ee, $, t.leafIcon, me),
-        showTreeIcon: Te,
-        notFoundContent: P,
+        switcherIcon: ($) => Pt(Y.value, Ee, $, t.leafIcon, me),
+        showTreeIcon: Ne,
+        notFoundContent: D,
         getPopupContainer: w == null ? void 0 : w.value,
         treeMotion: null,
         dropdownClassName: se.value,
@@ -1168,17 +1168,17 @@ const Me = We({
         onBlur: ie,
         onSearch: pe,
         onTreeExpand: he
-      }, T), {}, {
-        transitionName: N.value,
+      }, N), {}, {
+        transitionName: T.value,
         customSlots: p(p({}, t), {
           treeCheckable: () => X("span", {
             class: `${o.value}-tree-checkbox-inner`
           }, null)
         }),
         maxTagPlaceholder: e.maxTagPlaceholder || t.maxTagPlaceholder,
-        placement: _.value,
-        showArrow: Z || Ne,
-        placeholder: Pe
+        placement: K.value,
+        showArrow: Z || Te,
+        placeholder: De
       }), p(p({}, t), {
         treeCheckable: () => X("span", {
           class: `${o.value}-tree-checkbox-inner`

+ 72 - 72
lib/js/index8.js

@@ -1,5 +1,5 @@
-import { d as B, P as c, e as j, bb as Se, l as ke, c as G, _ as P, o as fe, K as $e, bF as xe, i as pe, g as Oe, m as Pe, b as De, u as _e, h as ne, bG as oe, a$ as ae, a3 as re, bH as Ne, bI as K, bJ as Ie } from "./index2.js";
-import { defineComponent as q, shallowRef as O, onMounted as me, nextTick as L, watch as E, onUnmounted as ve, createVNode as u, Transition as le, withDirectives as ie, vShow as se, ref as Me, computed as I, inject as Te, provide as je } from "vue";
+import { d as B, P as c, e as j, bm as Se, l as ke, c as G, _ as P, o as fe, K as xe, bQ as $e, i as pe, g as Oe, m as Pe, b as De, u as _e, h as ne, bR as oe, ba as ae, a3 as re, bS as Ne, bT as K, bU as Ie } from "./index2.js";
+import { defineComponent as q, shallowRef as O, onMounted as me, nextTick as L, watch as E, onUnmounted as ve, createVNode as u, Transition as le, withDirectives as ie, vShow as se, ref as Te, computed as I, inject as Me, provide as je } from "vue";
 const ye = () => ({
   prefixCls: String,
   width: c.oneOfType([c.string, c.number]),
@@ -67,19 +67,19 @@ const ye = () => ({
 function Ae(e) {
   return Array.isArray(e) ? e : [e];
 }
-const Fe = {
+const Ve = {
   transition: "transitionend",
   WebkitTransition: "webkitTransitionEnd",
   MozTransition: "transitionend",
   OTransition: "oTransitionEnd otransitionend"
 };
-Object.keys(Fe).filter((e) => {
+Object.keys(Ve).filter((e) => {
   if (typeof document == "undefined")
     return !1;
   const o = document.getElementsByTagName("html")[0];
   return e in (o ? o.style : {});
 })[0];
-const Ve = !(typeof window != "undefined" && window.document && window.document.createElement);
+const Fe = !(typeof window != "undefined" && window.document && window.document.createElement);
 var ze = function(e, o) {
   var l = {};
   for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (l[t] = e[t]);
@@ -144,7 +144,7 @@ const de = q({
     }, y = (a) => {
       l("close", a);
     }, g = (a) => {
-      a.keyCode === $e.ESC && (a.stopPropagation(), y(a));
+      a.keyCode === xe.ESC && (a.stopPropagation(), y(a));
     }, C = () => {
       const {
         open: a,
@@ -156,17 +156,17 @@ const de = q({
         level: d,
         getContainer: f
       } = a;
-      if (Ve)
+      if (Fe)
         return;
       const k = f == null ? void 0 : f(), v = k ? k.parentNode : null;
-      m = [], d === "all" ? (v ? Array.prototype.slice.call(v.children) : []).forEach(($) => {
-        $.nodeName !== "SCRIPT" && $.nodeName !== "STYLE" && $.nodeName !== "LINK" && $ !== k && m.push($);
+      m = [], d === "all" ? (v ? Array.prototype.slice.call(v.children) : []).forEach((x) => {
+        x.nodeName !== "SCRIPT" && x.nodeName !== "STYLE" && x.nodeName !== "LINK" && x !== k && m.push(x);
       }) : d && Ae(d).forEach((p) => {
-        document.querySelectorAll(p).forEach(($) => {
-          m.push($);
+        document.querySelectorAll(p).forEach((x) => {
+          m.push(x);
         });
       });
-    }, M = (a) => {
+    }, T = (a) => {
       l("handleClick", a);
     }, N = O(!1);
     return E(S, () => {
@@ -180,46 +180,46 @@ const de = q({
         height: k,
         open: v,
         prefixCls: p,
-        placement: $,
+        placement: x,
         level: A,
-        levelMove: F,
-        ease: J,
-        duration: Q,
+        levelMove: V,
+        ease: Q,
+        duration: J,
         getContainer: Z,
         onChange: ee,
         afterVisibleChange: te,
-        showMask: V,
+        showMask: F,
         maskClosable: W,
-        maskStyle: H,
-        keyboard: R,
+        maskStyle: R,
+        keyboard: H,
         getOpenCount: n,
         scrollLocker: r,
         contentWrapperStyle: s,
-        style: x,
-        class: T,
+        style: $,
+        class: M,
         rootClassName: U,
         rootStyle: X,
         maskMotion: he,
         motion: Y,
         inline: ge
       } = e, be = ze(e, ["width", "height", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "keyboard", "getOpenCount", "scrollLocker", "contentWrapperStyle", "style", "class", "rootClassName", "rootStyle", "maskMotion", "motion", "inline"]), z = v && N.value, we = G(p, {
-        [`${p}-${$}`]: !0,
+        [`${p}-${x}`]: !0,
         [`${p}-open`]: z,
         [`${p}-inline`]: ge,
-        "no-mask": !V,
+        "no-mask": !F,
         [U]: !0
-      }), Ce = typeof Y == "function" ? Y($) : Y;
+      }), Ce = typeof Y == "function" ? Y(x) : Y;
       return u("div", P(P({}, fe(be, ["autofocus"])), {}, {
         tabindex: -1,
         class: we,
         style: X,
         ref: S,
-        onKeydown: z && R ? g : void 0
+        onKeydown: z && H ? g : void 0
       }), [u(le, he, {
-        default: () => [V && ie(u("div", {
+        default: () => [F && ie(u("div", {
           class: `${p}-mask`,
           onClick: W ? y : void 0,
-          style: H,
+          style: R,
           ref: D
         }, null), [[se, z]])]
       }), u(le, P(P({}, Ce), {}, {
@@ -231,11 +231,11 @@ const de = q({
           style: [s],
           ref: i
         }, [u("div", {
-          class: [`${p}-content`, T],
-          style: x,
+          class: [`${p}-content`, M],
+          style: $,
           ref: w
         }, [(a = t.default) === null || a === void 0 ? void 0 : a.call(t)]), t.handler ? u("div", {
-          onClick: M,
+          onClick: T,
           ref: b
         }, [(d = t.handler) === null || d === void 0 ? void 0 : d.call(t)]) : null]), [[se, z]])]
       })]);
@@ -277,7 +277,7 @@ const Le = q({
       emit: l,
       slots: t
     } = o;
-    const i = Me(null), S = (b) => {
+    const i = Te(null), S = (b) => {
       l("handleClick", b);
     }, D = (b) => {
       l("close", b);
@@ -301,18 +301,18 @@ const Le = q({
           inline: !0
         }), t);
       const _ = !!t.handler || y;
-      return (_ || e.open || i.value) && (C = u(xe, {
+      return (_ || e.open || i.value) && (C = u($e, {
         autoLock: !0,
         visible: e.open,
         forceRender: _,
         getContainer: b,
         wrapperClassName: w
       }, {
-        default: (M) => {
+        default: (T) => {
           var {
             visible: N,
             afterClose: a
-          } = M, d = ce(M, ["visible", "afterClose"]);
+          } = T, d = ce(T, ["visible", "afterClose"]);
           return u(de, P(P(P({
             ref: i
           }, g), d), {}, {
@@ -436,7 +436,7 @@ const Le = q({
       }
     }
   };
-}, He = (e) => {
+}, Re = (e) => {
   const {
     componentCls: o,
     zIndexPopup: l,
@@ -452,7 +452,7 @@ const Le = q({
     lineType: g,
     colorSplit: C,
     marginSM: _,
-    colorIcon: M,
+    colorIcon: T,
     colorIconHover: N,
     colorText: a,
     fontWeightStrong: d,
@@ -567,7 +567,7 @@ const Le = q({
       [`${o}-close`]: {
         display: "inline-block",
         marginInlineEnd: _,
-        color: M,
+        color: T,
         fontWeight: d,
         fontSize: m,
         fontStyle: "normal",
@@ -614,12 +614,12 @@ const Le = q({
       }
     }
   };
-}, Re = Oe("Drawer", (e) => {
+}, He = Oe("Drawer", (e) => {
   const o = Pe(e, {
     drawerFooterPaddingVertical: e.paddingXS,
     drawerFooterPaddingHorizontal: e.padding
   });
-  return [He(o), We(o)];
+  return [Re(o), We(o)];
 }, (e) => ({
   zIndexPopup: e.zIndexPopupBase
 }));
@@ -750,11 +750,11 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
     }, {
       immediate: !0
     });
-    const y = Te("parentDrawerOpts", null), {
+    const y = Me("parentDrawerOpts", null), {
       prefixCls: g,
       getPopupContainer: C,
       direction: _
-    } = _e("drawer", e), [M, N] = Re(g), a = I(() => (
+    } = _e("drawer", e), [T, N] = He(g), a = I(() => (
       // 有可能为 false,所以不能直接判断
       e.getContainer === void 0 && (C != null && C.value) ? () => C.value(document.body) : e.getContainer
     ));
@@ -787,7 +787,7 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
     }, p = (n) => {
       var r;
       n || (D.value === !1 && (D.value = !0), e.destroyOnClose && (w.value = !1)), (r = e.afterVisibleChange) === null || r === void 0 || r.call(e, n), l("afterVisibleChange", n), l("afterOpenChange", n);
-    }, $ = I(() => {
+    }, x = I(() => {
       const {
         push: n,
         placement: r
@@ -797,10 +797,10 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
     }), A = I(() => {
       var n;
       return (n = e.width) !== null && n !== void 0 ? n : e.size === "large" ? 736 : 378;
-    }), F = I(() => {
+    }), V = I(() => {
       var n;
       return (n = e.height) !== null && n !== void 0 ? n : e.size === "large" ? 736 : 378;
-    }), J = I(() => {
+    }), Q = I(() => {
       const {
         mask: n,
         placement: r
@@ -808,61 +808,61 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
       if (!m.value && !n)
         return {};
       const s = {};
-      return r === "left" || r === "right" ? s.width = oe(A.value) ? `${A.value}px` : A.value : s.height = oe(F.value) ? `${F.value}px` : F.value, s;
-    }), Q = I(() => {
+      return r === "left" || r === "right" ? s.width = oe(A.value) ? `${A.value}px` : A.value : s.height = oe(V.value) ? `${V.value}px` : V.value, s;
+    }), J = I(() => {
       const {
         zIndex: n,
         contentWrapperStyle: r
-      } = e, s = J.value;
+      } = e, s = Q.value;
       return [{
         zIndex: n,
-        transform: S.value ? $.value : void 0
+        transform: S.value ? x.value : void 0
       }, B({}, r), s];
     }), Z = (n) => {
       const {
         closable: r,
         headerStyle: s
-      } = e, x = K(t, e, "extra"), T = K(t, e, "title");
-      return !T && !r ? null : u("div", {
+      } = e, $ = K(t, e, "extra"), M = K(t, e, "title");
+      return !M && !r ? null : u("div", {
         class: G(`${n}-header`, {
-          [`${n}-header-close-only`]: r && !T && !x
+          [`${n}-header-close-only`]: r && !M && !$
         }),
         style: s
       }, [u("div", {
         class: `${n}-header-title`
-      }, [ee(n), T && u("div", {
+      }, [ee(n), M && u("div", {
         class: `${n}-title`
-      }, [T])]), x && u("div", {
+      }, [M])]), $ && u("div", {
         class: `${n}-extra`
-      }, [x])]);
+      }, [$])]);
     }, ee = (n) => {
       var r;
       const {
         closable: s
-      } = e, x = t.closeIcon ? (r = t.closeIcon) === null || r === void 0 ? void 0 : r.call(t) : e.closeIcon;
+      } = e, $ = t.closeIcon ? (r = t.closeIcon) === null || r === void 0 ? void 0 : r.call(t) : e.closeIcon;
       return s && u("button", {
         key: "closer",
         onClick: v,
         "aria-label": "Close",
         class: `${n}-close`
-      }, [x === void 0 ? u(Ie, null, null) : x]);
+      }, [$ === void 0 ? u(Ie, null, null) : $]);
     }, te = (n) => {
       var r;
       if (D.value && !e.forceRender && !w.value)
         return null;
       const {
         bodyStyle: s,
-        drawerStyle: x
+        drawerStyle: $
       } = e;
       return u("div", {
         class: `${n}-wrapper-body`,
-        style: x
+        style: $
       }, [Z(n), u("div", {
         key: "body",
         class: `${n}-body`,
         style: s
-      }, [(r = t.default) === null || r === void 0 ? void 0 : r.call(t)]), V(n)]);
-    }, V = (n) => {
+      }, [(r = t.default) === null || r === void 0 ? void 0 : r.call(t)]), F(n)]);
+    }, F = (n) => {
       const r = K(t, e, "footer");
       if (!r)
         return null;
@@ -874,35 +874,35 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
     }, W = I(() => G({
       "no-mask": !e.mask,
       [`${g.value}-rtl`]: _.value === "rtl"
-    }, e.rootClassName, N.value)), H = I(() => ae(re(g.value, "mask-motion"))), R = (n) => ae(re(g.value, `panel-motion-${n}`));
+    }, e.rootClassName, N.value)), R = I(() => ae(re(g.value, "mask-motion"))), H = (n) => ae(re(g.value, `panel-motion-${n}`));
     return () => {
       const {
         width: n,
         height: r,
         placement: s,
-        mask: x,
-        forceRender: T
+        mask: $,
+        forceRender: M
       } = e, U = Ue(e, ["width", "height", "placement", "mask", "forceRender"]), X = B(B(B({}, i), fe(U, ["size", "closeIcon", "closable", "destroyOnClose", "drawerStyle", "headerStyle", "bodyStyle", "title", "push", "onAfterVisibleChange", "onClose", "onUpdate:visible", "onUpdate:open", "visible"])), {
-        forceRender: T,
+        forceRender: M,
         onClose: v,
         afterVisibleChange: p,
         handler: !1,
         prefixCls: g.value,
         open: m.value,
-        showMask: x,
+        showMask: $,
         placement: s,
         ref: b
       });
-      return M(u(Ne, null, {
+      return T(u(Ne, null, {
         default: () => [u(Le, P(P({}, X), {}, {
-          maskMotion: H.value,
-          motion: R,
+          maskMotion: R.value,
+          motion: H,
           width: A.value,
-          height: F.value,
+          height: V.value,
           getContainer: a.value,
           rootClassName: W.value,
           rootStyle: e.rootStyle,
-          contentWrapperStyle: Q.value
+          contentWrapperStyle: J.value
         }), {
           handler: e.handle ? () => e.handle : t.handle,
           default: () => te(g.value)
@@ -910,7 +910,7 @@ const Xe = ["top", "right", "bottom", "left"], ue = {
       }));
     };
   }
-}), Je = De(Ke);
+}), Qe = De(Ke);
 export {
-  Je as _
+  Qe as _
 };

+ 69 - 69
lib/js/index9.js

@@ -1,5 +1,5 @@
-import { bK as et, c as W, _ as V, bb as A, D as tt, w as Ae, d as v, K as ie, bc as F, be as Z, bd as we, g as nt, bL as rt, T as at, r as Ve, bM as We, bN as je, bO as lt, bP as it, bQ as ot, bR as st, bS as He, bT as ut, U as dt, V as ct, W as ft, u as pt, X as mt, Y as gt, a5 as Se, o as vt, bU as bt, bV as ht, bH as Oe, bW as Te, F as St, P as $e } from "./index2.js";
-import { defineComponent as Ee, ref as Ge, onBeforeUnmount as Le, createVNode as h, shallowRef as M, computed as j, watch as ee } from "vue";
+import { bV as et, c as W, _ as V, bm as A, D as tt, w as Ae, d as v, K as ie, bn as F, bp as Q, bo as we, g as nt, bW as rt, T as at, r as Ve, bX as We, bY as je, bZ as lt, b_ as it, b$ as ot, c0 as st, c1 as He, c2 as ut, U as dt, V as ct, W as ft, u as pt, X as mt, Y as gt, a5 as Se, o as vt, c3 as bt, c4 as ht, bS as Oe, c5 as Te, F as St, P as $e } from "./index2.js";
+import { defineComponent as Ee, ref as Ge, onBeforeUnmount as qe, createVNode as h, shallowRef as M, computed as j, watch as ee } from "vue";
 function xe() {
   return typeof BigInt == "function";
 }
@@ -29,9 +29,9 @@ function ne(e) {
     const a = t.match(/\.(\d+)/);
     return a != null && a[1] && (n += a[1].length), n;
   }
-  return t.includes(".") && _e(t) ? t.length - t.indexOf(".") - 1 : 0;
+  return t.includes(".") && De(t) ? t.length - t.indexOf(".") - 1 : 0;
 }
-function De(e) {
+function _e(e) {
   let t = String(e);
   if (Ce(e)) {
     if (e > Number.MAX_SAFE_INTEGER)
@@ -42,7 +42,7 @@ function De(e) {
   }
   return te(t).fullStr;
 }
-function _e(e) {
+function De(e) {
   return typeof e == "number" ? !Number.isNaN(e) : e ? (
     // Normal type: 11.28
     /^\s*-?\d+(\.\d+)?\s*$/.test(e) || // Pre-number: 1.
@@ -50,12 +50,12 @@ function _e(e) {
     /^\s*-?\.\d+\s*$/.test(e)
   ) : !1;
 }
-function Ue(e) {
+function Le(e) {
   return !e && e !== 0 && !Number.isNaN(e) || !String(e).trim();
 }
 class z {
   constructor(t) {
-    if (this.origin = "", Ue(t)) {
+    if (this.origin = "", Le(t)) {
       this.empty = !0;
       return;
     }
@@ -97,12 +97,12 @@ class z {
     return this.number;
   }
   toString() {
-    return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : De(this.number) : this.origin;
+    return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : _e(this.number) : this.origin;
   }
 }
-class q {
+class U {
   constructor(t) {
-    if (this.origin = "", Ue(t)) {
+    if (this.origin = "", Le(t)) {
       this.empty = !0;
       return;
     }
@@ -111,7 +111,7 @@ class q {
       return;
     }
     let n = t;
-    if (Ce(n) && (n = Number(n)), n = typeof n == "string" ? n : De(n), _e(n)) {
+    if (Ce(n) && (n = Number(n)), n = typeof n == "string" ? n : _e(n), De(n)) {
       const a = te(n);
       this.negative = a.negative;
       const o = a.trimStr.split(".");
@@ -139,20 +139,20 @@ class q {
     return BigInt(n);
   }
   negate() {
-    const t = new q(this.toString());
+    const t = new U(this.toString());
     return t.negative = !t.negative, t;
   }
   add(t) {
     if (this.isInvalidate())
-      return new q(t);
-    const n = new q(t);
+      return new U(t);
+    const n = new U(t);
     if (n.isInvalidate())
       return this;
     const a = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), o = this.alignDecimal(a), l = n.alignDecimal(a), d = (o + l).toString(), {
       negativeStr: c,
       trimStr: f
     } = te(d), p = `${c}${f.padStart(a + 1, "0")}`;
-    return new q(`${p.slice(0, -a)}.${p.slice(-a)}`);
+    return new U(`${p.slice(0, -a)}.${p.slice(-a)}`);
   }
   isEmpty() {
     return this.empty;
@@ -176,8 +176,8 @@ class q {
     return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : te(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr : this.origin;
   }
 }
-function _(e) {
-  return xe() ? new q(e) : new z(e);
+function D(e) {
+  return xe() ? new U(e) : new z(e);
 }
 function Ie(e, t, n) {
   let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
@@ -191,7 +191,7 @@ function Ie(e, t, n) {
   if (n >= 0) {
     const p = Number(d[n]);
     if (p >= 5 && !a) {
-      const s = _(e).add(`${o}0.${"0".repeat(n)}${10 - p}`);
+      const s = D(e).add(`${o}0.${"0".repeat(n)}${10 - p}`);
       return Ie(s.toString(), t, n, a);
     }
     return n === 0 ? f : `${f}${t}${d.padEnd(n, "0").slice(0, n)}`;
@@ -225,7 +225,7 @@ const $t = 200, Nt = 600, yt = Ee({
     }, d = () => {
       clearTimeout(o.value);
     };
-    return Le(() => {
+    return qe(() => {
       d();
     }), () => {
       if (et())
@@ -322,7 +322,7 @@ const xt = () => {
   const e = M(0), t = () => {
     Ae.cancel(e.value);
   };
-  return Le(() => {
+  return qe(() => {
     t();
   }), (n) => {
     t(), e.value = Ae(() => {
@@ -338,17 +338,17 @@ var It = function(e, t) {
   return n;
 };
 const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) => {
-  const t = _(e);
+  const t = D(e);
   return t.isInvalidate() ? null : t;
-}, qe = () => ({
+}, Ue = () => ({
   /** value will show as string */
   stringMode: F(),
-  defaultValue: Z([String, Number]),
-  value: Z([String, Number]),
+  defaultValue: Q([String, Number]),
+  value: Q([String, Number]),
   prefixCls: we(),
-  min: Z([String, Number]),
-  max: Z([String, Number]),
-  step: Z([String, Number], 1),
+  min: Q([String, Number]),
+  max: Q([String, Number]),
+  step: Q([String, Number], 1),
   tabindex: Number,
   controls: F(!0),
   readonly: F(),
@@ -375,7 +375,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
   },
   name: "InnerInputNumber",
   inheritAttrs: !1,
-  props: v(v({}, qe()), {
+  props: v(v({}, Ue()), {
     lazy: Boolean
   }),
   slots: Object,
@@ -386,7 +386,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
       emit: o,
       expose: l
     } = t;
-    const d = M(), c = M(!1), f = M(!1), p = M(!1), s = M(_(e.value));
+    const d = M(), c = M(!1), f = M(!1), p = M(!1), s = M(D(e.value));
     function w(r) {
       e.value === void 0 && (s.value = r);
     }
@@ -405,10 +405,10 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
           userTyping: i,
           input: String($.value)
         });
-      let u = typeof r == "number" ? De(r) : r;
+      let u = typeof r == "number" ? _e(r) : r;
       if (!i) {
         const m = S(u, i);
-        if (_e(u) && (e.decimalSeparator || m >= 0)) {
+        if (De(u) && (e.decimalSeparator || m >= 0)) {
           const y = e.decimalSeparator || ".";
           u = Ie(u, y, m);
         }
@@ -428,44 +428,44 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         i
       );
     }
-    const D = j(() => Fe(e.max)), N = j(() => Fe(e.min)), x = j(() => !D.value || !s.value || s.value.isInvalidate() ? !1 : D.value.lessEquals(s.value)), O = j(() => !N.value || !s.value || s.value.isInvalidate() ? !1 : s.value.lessEquals(N.value)), [k, K] = wt(d, c), X = (r) => D.value && !r.lessEquals(D.value) ? D.value : N.value && !N.value.lessEquals(r) ? N.value : null, oe = (r) => !X(r), Y = (r, i) => {
+    const _ = j(() => Fe(e.max)), N = j(() => Fe(e.min)), x = j(() => !_.value || !s.value || s.value.isInvalidate() ? !1 : _.value.lessEquals(s.value)), O = j(() => !N.value || !s.value || s.value.isInvalidate() ? !1 : s.value.lessEquals(N.value)), [k, K] = wt(d, c), X = (r) => _.value && !r.lessEquals(_.value) ? _.value : N.value && !N.value.lessEquals(r) ? N.value : null, oe = (r) => !X(r), Y = (r, i) => {
       var u;
       let m = r, y = oe(m) || m.isEmpty();
       if (!m.isEmpty() && !i && (m = X(m) || m, y = !0), !e.readonly && !e.disabled && y) {
-        const R = m.toString(), L = S(R, i);
-        return L >= 0 && (m = _(Ie(R, ".", L))), m.equals(s.value) || (w(m), (u = e.onChange) === null || u === void 0 || u.call(e, m.isEmpty() ? null : Be(e.stringMode, m)), e.value === void 0 && C(m, i)), m;
+        const R = m.toString(), q = S(R, i);
+        return q >= 0 && (m = D(Ie(R, ".", q))), m.equals(s.value) || (w(m), (u = e.onChange) === null || u === void 0 || u.call(e, m.isEmpty() ? null : Be(e.stringMode, m)), e.value === void 0 && C(m, i)), m;
       }
       return s.value;
-    }, se = xt(), Q = (r) => {
+    }, se = xt(), Z = (r) => {
       var i;
       if (k(), $.value = r, !p.value) {
-        const u = I(r), m = _(u);
+        const u = I(r), m = D(u);
         m.isNaN() || Y(m, !0);
       }
       (i = e.onInput) === null || i === void 0 || i.call(e, r), se(() => {
         let u = r;
-        e.parser || (u = r.replace(/。/g, ".")), u !== r && Q(u);
+        e.parser || (u = r.replace(/。/g, ".")), u !== r && Z(u);
       });
     }, b = () => {
       p.value = !0;
     }, J = () => {
-      p.value = !1, Q(d.value.value);
+      p.value = !1, Z(d.value.value);
     }, H = (r) => {
-      Q(r.target.value);
+      Z(r.target.value);
     }, G = (r) => {
       var i, u;
       if (r && x.value || !r && O.value)
         return;
       f.value = !1;
-      let m = _(e.step);
+      let m = D(e.step);
       r || (m = m.negate());
-      const y = (s.value || _(0)).add(m.toString()), R = Y(y, !1);
+      const y = (s.value || D(0)).add(m.toString()), R = Y(y, !1);
       (i = e.onStep) === null || i === void 0 || i.call(e, Be(e.stringMode, R), {
         offset: e.step,
         type: r ? "up" : "down"
       }), (u = d.value) === null || u === void 0 || u.focus();
     }, T = (r) => {
-      const i = _(I($.value));
+      const i = D(I($.value));
       let u = i;
       i.isNaN() ? u = s.value : u = Y(i, r), e.value !== void 0 ? C(s.value, !1) : u.isNaN() || C(u, !1);
     }, ue = () => {
@@ -486,9 +486,9 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
     }, {
       flush: "post"
     }), ee(() => e.value, () => {
-      const r = _(e.value);
+      const r = D(e.value);
       s.value = r;
-      const i = _(I($.value));
+      const i = D(I($.value));
       (!r.equals(i) || !f.value || e.formatter) && C(r, f.value);
     }, {
       flush: "post"
@@ -514,7 +514,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         max: m,
         step: y = 1,
         defaultValue: R,
-        value: L,
+        value: q,
         disabled: ae,
         readonly: le,
         keyboard: g,
@@ -522,7 +522,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         autofocus: B,
         stringMode: pe,
         parser: me,
-        formatter: U,
+        formatter: L,
         precision: ge,
         decimalSeparator: ve,
         onChange: be,
@@ -533,7 +533,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         class: Ke,
         style: Xe
       } = r, Ye = It(r, ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"]), {
-        upHandler: Qe,
+        upHandler: Ze,
         downHandler: Je
       } = a, Re = `${i}-input`, he = {};
       return ke ? he.onChange = H : he.onInput = H, h("div", {
@@ -553,7 +553,7 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         downDisabled: O.value,
         onStep: G
       }, {
-        upNode: Qe,
+        upNode: Ze,
         downNode: Je
       }), h("div", {
         class: `${Re}-wrap`
@@ -571,8 +571,8 @@ const Be = (e, t) => e || t.isEmpty() ? t.toString() : t.toNumber(), Fe = (e) =>
         value: $.value,
         disabled: ae,
         readonly: le,
-        onFocus: (Ze) => {
-          c.value = !0, o("focus", Ze);
+        onFocus: (Qe) => {
+          c.value = !0, o("focus", Qe);
         }
       }, he), {}, {
         onBlur: re,
@@ -605,7 +605,7 @@ const Ct = (e) => {
     inputPaddingHorizontal: E,
     colorBgContainer: P,
     colorTextDisabled: C,
-    borderRadiusSM: D,
+    borderRadiusSM: _,
     borderRadiusLG: N,
     controlWidth: x,
     handleVisible: O
@@ -635,7 +635,7 @@ const Ct = (e) => {
         },
         "&-sm": {
           padding: 0,
-          borderRadius: D,
+          borderRadius: _,
           [`input${t}-input`]: {
             height: f - 2 * n,
             padding: `0 ${s}px`
@@ -671,7 +671,7 @@ const Ct = (e) => {
             },
             "&-sm": {
               [`${t}-group-addon`]: {
-                borderRadius: D
+                borderRadius: _
               }
             }
           }
@@ -812,7 +812,7 @@ const Ct = (e) => {
       }
     }
   ];
-}, Dt = (e) => {
+}, _t = (e) => {
   const {
     componentCls: t,
     inputPaddingHorizontal: n,
@@ -887,11 +887,11 @@ const Ct = (e) => {
       }
     })
   };
-}, _t = nt("InputNumber", (e) => {
+}, Dt = nt("InputNumber", (e) => {
   const t = rt(e);
   return [
     Ct(t),
-    Dt(t),
+    _t(t),
     // =====================================================
     // ==             Space Compact                       ==
     // =====================================================
@@ -910,7 +910,7 @@ var Mt = function(e, t) {
     t.indexOf(a[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[o]) && (n[a[o]] = e[a[o]]);
   return n;
 };
-const ze = qe(), Pt = () => v(v({}, ze), {
+const ze = Ue(), Pt = () => v(v({}, ze), {
   size: we(),
   bordered: F(!0),
   placeholder: String,
@@ -951,7 +951,7 @@ const ze = qe(), Pt = () => v(v({}, ze), {
     } = mt(s, S), P = gt(), C = j(() => {
       var b;
       return (b = I.value) !== null && b !== void 0 ? b : P.value;
-    }), [D, N] = _t(s), x = j(() => $.value || w.value), O = M((d = e.value) !== null && d !== void 0 ? d : e.defaultValue), k = M(!1);
+    }), [_, N] = Dt(s), x = j(() => $.value || w.value), O = M((d = e.value) !== null && d !== void 0 ? d : e.defaultValue), k = M(!1);
     ee(() => e.value, () => {
       O.value = e.value;
     });
@@ -970,7 +970,7 @@ const ze = qe(), Pt = () => v(v({}, ze), {
       e.value === void 0 && (O.value = b), n("update:value", b), n("change", b), c.onFieldChange();
     }, se = (b) => {
       k.value = !1, n("blur", b), c.onFieldBlur();
-    }, Q = (b) => {
+    }, Z = (b) => {
       k.value = !0, n("focus", b);
     };
     return () => {
@@ -989,7 +989,7 @@ const ze = qe(), Pt = () => v(v({}, ze), {
         style: m,
         addonBefore: y = (J = l.addonBefore) === null || J === void 0 ? void 0 : J.call(l),
         addonAfter: R = (H = l.addonAfter) === null || H === void 0 ? void 0 : H.call(l),
-        prefix: L = (G = l.prefix) === null || G === void 0 ? void 0 : G.call(l),
+        prefix: q = (G = l.prefix) === null || G === void 0 ? void 0 : G.call(l),
         valueModifiers: ae = {}
       } = re, le = Mt(re, ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"]), g = s.value, fe = W({
         [`${g}-lg`]: x.value === "large",
@@ -1008,7 +1008,7 @@ const ze = qe(), Pt = () => v(v({}, ze), {
         readonly: u,
         onChange: Y,
         onBlur: se,
-        onFocus: Q
+        onFocus: Z
       }), {
         upHandler: l.upIcon ? () => h("span", {
           class: `${g}-handler-up-inner`
@@ -1021,9 +1021,9 @@ const ze = qe(), Pt = () => v(v({}, ze), {
           class: `${g}-handler-down-inner`
         }, null)
       });
-      const pe = Ne(y) || Ne(R), me = Ne(L);
+      const pe = Ne(y) || Ne(R), me = Ne(q);
       if (me || T) {
-        const U = W(`${g}-affix-wrapper`, Se(`${g}-affix-wrapper`, p.value, T), {
+        const L = W(`${g}-affix-wrapper`, Se(`${g}-affix-wrapper`, p.value, T), {
           [`${g}-affix-wrapper-focused`]: k.value,
           [`${g}-affix-wrapper-disabled`]: C.value,
           [`${g}-affix-wrapper-sm`]: x.value === "small",
@@ -1035,22 +1035,22 @@ const ze = qe(), Pt = () => v(v({}, ze), {
           [`${r}`]: !pe && r
         }, N.value);
         B = h("div", {
-          class: U,
+          class: L,
           style: m,
           onClick: X
         }, [me && h("span", {
           class: `${g}-prefix`
-        }, [L]), B, T && h("span", {
+        }, [q]), B, T && h("span", {
           class: `${g}-suffix`
         }, [de])]);
       }
       if (pe) {
-        const U = `${g}-group`, ge = `${U}-addon`, ve = y ? h("div", {
+        const L = `${g}-group`, ge = `${L}-addon`, ve = y ? h("div", {
           class: ge
         }, [y]) : null, be = R ? h("div", {
           class: ge
-        }, [R]) : null, Me = W(`${g}-wrapper`, U, {
-          [`${U}-rtl`]: S.value === "rtl"
+        }, [R]) : null, Me = W(`${g}-wrapper`, L, {
+          [`${L}-rtl`]: S.value === "rtl"
         }, N.value), Pe = W(`${g}-group-wrapper`, {
           [`${g}-group-wrapper-sm`]: x.value === "small",
           [`${g}-group-wrapper-lg`]: x.value === "large",
@@ -1071,7 +1071,7 @@ const ze = qe(), Pt = () => v(v({}, ze), {
           })]
         })])]);
       }
-      return D(St(B, {
+      return _(St(B, {
         style: m
       }));
     };

+ 1 - 1
lib/js/jspdf.es.min.js

@@ -1,7 +1,7 @@
 var Nf = Object.defineProperty;
 var Lf = (n, e, t) => e in n ? Nf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
 var xe = (n, e, t) => Lf(n, typeof e != "symbol" ? e + "" : e, t);
-import { de as Se } from "./index2.js";
+import { dq as Se } from "./index2.js";
 var tr = Uint8Array, Rn = Uint16Array, Ko = Int32Array, Xo = new tr([
   0,
   0,

+ 20 - 20
lib/js/message.js

@@ -1,27 +1,27 @@
-var k = (h, m, p) => new Promise((b, _) => {
+var k = (h, m, d) => new Promise((b, _) => {
   var R = (s) => {
     try {
-      d(p.next(s));
+      p(d.next(s));
     } catch (w) {
       _(w);
     }
   }, e = (s) => {
     try {
-      d(p.throw(s));
+      p(d.throw(s));
     } catch (w) {
       _(w);
     }
-  }, d = (s) => s.done ? b(s.value) : Promise.resolve(s.value).then(R, e);
-  d((p = p.apply(h, m)).next());
+  }, p = (s) => s.done ? b(s.value) : Promise.resolve(s.value).then(R, e);
+  p((d = d.apply(h, m)).next());
 });
 import { ref as D, reactive as N, onMounted as S, onUnmounted as A, resolveComponent as T, openBlock as M, createBlock as I, withCtx as n, createVNode as o, createElementVNode as y, toDisplayString as u, createCommentVNode as O } from "vue";
-import { dM as L, I as Q, dX as X, dY as Z, dZ as q, d_ as x, d$ as z, dQ as F, dR as G, ai as C } from "./index2.js";
-import { T as H, _ as J } from "./index12.js";
-import { R as W } from "./dayjs.js";
+import { dX as L, I as X, e6 as q, e7 as x, e8 as z, e9 as F, ea as G, d$ as H, e0 as J, ai as C } from "./index2.js";
+import { T as Q, _ as W } from "./index12.js";
+import { R as Z } from "./dayjs.js";
 const ee = ["onClick"], te = !1, ce = /* @__PURE__ */ Object.assign({ name: "MessageCenter" }, {
   __name: "message",
   setup(h) {
-    const m = D(null), p = D(0), b = D(0), _ = D(0), R = D(0), e = N({
+    const m = D(null), d = D(0), b = D(0), _ = D(0), R = D(0), e = N({
       activeKey: "1",
       searchValue: "",
       startRange: [],
@@ -31,7 +31,7 @@ const ee = ["onClick"], te = !1, ce = /* @__PURE__ */ Object.assign({ name: "Mes
       completeBeginDate: "",
       completeEndDate: "",
       contentTitle: ""
-    }), d = D([]), s = [
+    }), p = D([]), s = [
       {
         title: window.$l("标题"),
         dataIndex: "contentTitle",
@@ -66,25 +66,25 @@ const ee = ["onClick"], te = !1, ce = /* @__PURE__ */ Object.assign({ name: "Mes
         template: !1
       }
     ], Y = () => m.value.reload(), E = (t) => {
-      t === "1" || t === "2" ? (e.completeRange = [], e.completeBeginDate = "", e.completeEndDate = "", d.value = s) : d.value = w, Y();
+      t === "1" || t === "2" ? (e.completeRange = [], e.completeBeginDate = "", e.completeEndDate = "", p.value = s) : p.value = w, Y();
     }, U = () => k(this, null, function* () {
       try {
-        const t = yield X();
-        p.value = t.toDealCount || 0, b.value = t.toReadCount || 0, _.value = t.isDealCount || 0, R.value = t.isReadCount || 0;
+        const t = yield q();
+        d.value = t.toDealCount || 0, b.value = t.toReadCount || 0, _.value = t.isDealCount || 0, R.value = t.isReadCount || 0;
       } catch (t) {
         console.warn("[message] 消息数量获取失败:", t);
       }
-    }), V = (t = {}) => e.activeKey === "1" ? Z(e, t) : e.activeKey === "2" ? q(e, t) : e.activeKey === "3" ? x(e, t) : z(e, t), K = () => {
+    }), V = (t = {}) => e.activeKey === "1" ? x(e, t) : e.activeKey === "2" ? z(e, t) : e.activeKey === "3" ? F(e, t) : G(e, t), K = () => {
       e.startRange.length > 0 ? (e.beginDate = C(e.startRange[0]).format("YYYY-MM-DD 00:00:00"), e.endDate = C(e.startRange[1]).format("YYYY-MM-DD 23:59:59")) : (e.beginDate = "", e.endDate = ""), e.completeRange.length > 0 ? (e.completeBeginDate = C(e.completeRange[0]).format("YYYY-MM-DD 00:00:00"), e.completeEndDate = C(e.completeRange[1]).format("YYYY-MM-DD 23:59:59")) : (e.completeBeginDate = "", e.completeEndDate = ""), m.value.reload();
     }, B = () => {
       e.activeKey = "1", e.searchValue = "", e.startRange = [], e.endDate = "", e.beginDate = "", e.completeRange = [], e.completeBeginDate = "", e.completeEndDate = "", m.value.reload();
     }, P = (t = {}) => {
-      if (e.activeKey === "2" && F([t.id]), t.clientId === "flow") {
+      if (e.activeKey === "2" && H([t.id]), t.clientId === "flow") {
         const a = {
           client_id: `${window.$utils.env.VITE_APP_CLIENT_ID}`,
           scope: "snsapi_base"
         };
-        G(a).then((g) => {
+        J(a).then((g) => {
           const v = g && typeof g == "object" ? g.data : g;
           if (!v) {
             location.reload();
@@ -107,19 +107,19 @@ const ee = ["onClick"], te = !1, ce = /* @__PURE__ */ Object.assign({ name: "Mes
     };
     let $ = null;
     return S(() => {
-      U(), d.value = s, $ = L(() => {
+      U(), p.value = s, $ = L(() => {
         U(), Y();
       });
     }), A(() => {
       $ && $(), $ = null;
     }), (t, a) => {
-      const g = Q, v = T("s-filter-item"), r = W, f = T("s-filter-wrap"), l = J, c = H, j = T("s-list-layout");
+      const g = X, v = T("s-filter-item"), r = Z, f = T("s-filter-wrap"), l = W, c = Q, j = T("s-list-layout");
       return M(), I(j, {
         ref_key: "layout",
         ref: m,
         buttons: [],
         onReset: B,
-        columns: d.value,
+        columns: p.value,
         loadData: V,
         isSelection: te,
         title: t.$l("我的消息")
@@ -187,7 +187,7 @@ const ee = ["onClick"], te = !1, ce = /* @__PURE__ */ Object.assign({ name: "Mes
             default: n(() => [
               o(l, { key: "1" }, {
                 tab: n(() => [
-                  y("span", null, u(t.$l("待处理")) + "(" + u(p.value) + ")", 1)
+                  y("span", null, u(t.$l("待处理")) + "(" + u(d.value) + ")", 1)
                 ]),
                 _: 1
               }),

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

@@ -14,10 +14,10 @@ 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 O, 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 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 { 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, bd as G, e as ze, _ as D, b as $e, bf as Be, aU as Ue, u as Oe, co as De, ao as le, B as ae, dT as ke, dU as Fe, dV as He, n as Ve, dr as qe, ad as Ke } from "./index2.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, cz as De, aA as le, B as ae, e2 as ke, e3 as Fe, e4 as He, n as Ve, dC as qe, ad as Ke } from "./index2.js";
 import { s as oe } from "./success-qrcode.js";
 import { C as Ge } from "./index18.js";
 import { T as Ye, a as We, P as Xe } from "./index16.js";
@@ -790,9 +790,9 @@ const st = function() {
       expose: d
     } = o;
     process.env.NODE_ENV !== "production" && Be(!(r.icon && r.errorLevel === "L"), "QRCode", "ErrorLevel `L` is not recommended to be used with `icon`, for scanning result would be affected by low level.");
-    const [a] = Ue("QRCode"), {
+    const [a] = Oe("QRCode"), {
       prefixCls: w
-    } = Oe("qrcode", r), [e, t] = Qe(w), [, n] = De(), s = L();
+    } = Ue("qrcode", r), [e, t] = Qe(w), [, n] = De(), s = L();
     d({
       toDataURL: (u, c) => {
         var p;
@@ -854,7 +854,7 @@ const st = function() {
     };
   }
 }), at = $e(lt), W = /* @__PURE__ */ new Set();
-let U = "", X = null, k = "";
+let O = "", X = null, k = "";
 function ct(r) {
   W.forEach((o) => {
     try {
@@ -865,22 +865,22 @@ function ct(r) {
   });
 }
 function se(r) {
-  if (!r || !r.connected || !U) return;
-  const o = `${r.id}|${U}`;
-  k !== o && (k = o, r.emit("QRCodeKey", U));
+  if (!r || !r.connected || !O) return;
+  const o = `${r.id}|${O}`;
+  k !== o && (k = o, r.emit("QRCodeKey", O));
 }
 function ut(r) {
   return W.add(r), () => W.delete(r);
 }
 function dt({ url: r, path: o, qrId: l } = {}) {
-  if (U = l || "", !U) return null;
+  if (O = l || "", !O) return null;
   const h = Fe({ url: r, path: o });
   return h ? (X !== h && (X = h, k = "", h.on("connect", () => {
     k = "", se(h);
   }), h.on("QRWsEvent", ct)), se(h), h) : null;
 }
 function V() {
-  U = "", k = "", X = null, He();
+  O = "", k = "", X = null, He();
 }
 const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "brand" }, mt = ["src", "alt"], pt = { class: "qr-box" }, vt = {
   key: 0,
@@ -987,7 +987,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
       _(), c && (c(), c = null), V(), C();
     }), (f, b) => {
       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(), O("div", ht, [
+      return B(), U("div", ht, [
         S("div", ft, [
           v(ye, {
             class: "qr-card",
@@ -1011,7 +1011,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
                 })
               ]),
               S("div", pt, [
-                a.value ? (B(), O("div", vt, [
+                a.value ? (B(), U("div", vt, [
                   v(z, {
                     value: a.value,
                     size: 220,
@@ -1023,7 +1023,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
                     color: bt,
                     onRefresh: m
                   }, null, 8, ["value", "icon", "status"]),
-                  t.value === "scanned" ? (B(), O("div", wt, [
+                  t.value === "scanned" ? (B(), U("div", wt, [
                     S("img", {
                       class: "overlay-img",
                       src: te(oe),
@@ -1042,7 +1042,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
                       ]),
                       _: 1
                     })
-                  ])) : n.value ? (B(), O("div", Rt, [
+                  ])) : n.value ? (B(), U("div", Rt, [
                     S("img", {
                       class: "overlay-img",
                       src: te(oe),
@@ -1050,7 +1050,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
                     }, null, 8, Mt),
                     S("div", yt, R(o("登录成功")), 1)
                   ])) : ne("", !0)
-                ])) : (B(), O("div", At, [
+                ])) : (B(), U("div", At, [
                   v(we, { size: "large" }),
                   v(q, {
                     type: "secondary",
@@ -1133,7 +1133,7 @@ const ht = { class: "qr-page" }, ft = { class: "main-wrap" }, gt = { class: "bra
       ]);
     };
   }
-}), Ot = /* @__PURE__ */ Ve(St, [["__scopeId", "data-v-d7668345"]]);
+}), Ut = /* @__PURE__ */ Ve(St, [["__scopeId", "data-v-d7668345"]]);
 export {
-  Ot as default
+  Ut as default
 };

+ 11 - 19
lib/js/upload.js

@@ -1,31 +1,23 @@
-function l(e, t, n) {
-  const a = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
+function o(n, t) {
+  const a = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME, i = new FormData();
+  i.append("path", n);
+  for (let e = 0; e < t.length; e++)
+    i.append("files", t[e], t[e].name);
   return window.$utils.http({
-    url: `${a}/file/uploadWithBase64?businessTableName=${t}&invariantId=${n}`,
-    data: e
-  });
-}
-function o(e, t) {
-  const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME, a = new FormData();
-  a.append("path", e);
-  for (let i = 0; i < t.length; i++)
-    a.append("files", t[i], t[i].name);
-  return window.$utils.http({
-    url: `${n}/ftpFile/batchFileSave`,
-    data: a,
+    url: `${a}/ftpFile/batchFileSave`,
+    data: i,
     headers: {
       "Content-Type": "multipart/form-data"
     }
   });
 }
-function d(e, t) {
-  const n = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
+function l(n, t) {
+  const a = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
   return window.$utils.http({
-    url: `${n}/ftpFile/delete?path=${e}&imageUrl=${encodeURIComponent(t)}`
+    url: `${a}/ftpFile/delete?path=${n}&imageUrl=${encodeURIComponent(t)}`
   });
 }
 export {
   o as b,
-  d,
-  l as u
+  l as d
 };

+ 3 - 3
lib/js/useFlexGapSupport.js

@@ -1,11 +1,11 @@
 import { shallowRef as o, onMounted as t } from "vue";
-import { bj as p } from "./index2.js";
-const a = () => {
+import { bu as p } from "./index2.js";
+const u = () => {
   const e = o(!1);
   return t(() => {
     e.value = p();
   }), e;
 };
 export {
-  a as u
+  u
 };

Fichier diff supprimé car celui-ci est trop grand
+ 46 - 46
lib/js/workplace.js


+ 9 - 1
package.json

@@ -15,9 +15,17 @@
     "sso",
     "static"
   ],
+  "publishConfig": {
+    "registry": "http://192.168.200.4:4873"
+  },
   "scripts": {
     "dev": "vite",
-    "build": "vite build && @powershell copy './package.json' './dist/' && @powershell Copy-Item -Recurse -Force './docs' './dist' && @powershell Copy-Item -Recurse -Force './vite-plugins' './dist' && @powershell if (Test-Path './dist/sso') { Remove-Item -Recurse -Force './dist/sso' } ; Copy-Item -Recurse './packages/sso' './dist/sso' && @powershell if (Test-Path './dist/static') { Remove-Item -Recurse -Force './dist/static' } ; Copy-Item -Recurse './packages/static' './dist/static' && cd dist && git init && git add -A && git commit -m 'deploy' && git push -f http://192.168.200.4:6110/sapit/sapit-ui-plus.git master",
+    "build": "npm run build:pkg && npm run publish:git",
+    "build:lib": "vite build",
+    "build:pkg": "vite build && @powershell copy './package.json' './dist/' && @powershell Copy-Item -Recurse -Force './docs' './dist' && @powershell Copy-Item -Recurse -Force './vite-plugins' './dist' && @powershell if (Test-Path './dist/sso') { Remove-Item -Recurse -Force './dist/sso' } ; Copy-Item -Recurse './packages/sso' './dist/sso' && @powershell if (Test-Path './dist/static') { Remove-Item -Recurse -Force './dist/static' } ; Copy-Item -Recurse './packages/static' './dist/static'",
+    "publish:git": "cd dist && git init && git add -A && git commit -m 'deploy' && git push -f http://192.168.200.4:6110/sapit/sapit-ui-plus.git master",
+    "publish:npm": "node scripts/publish.js",
+    "pack:tgz": "npm run build:pkg && node scripts/pack.js",
     "preview": "vite preview",
     "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
     "format": "prettier --write src/"

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff