diry 1 vecka sedan
förälder
incheckning
eb89d6d110
7 ändrade filer med 387 tillägg och 319 borttagningar
  1. 1 1
      docs/sapit-ui-base-guide.en.md
  2. 1 1
      docs/sapit-ui-基座说明与业务使用.md
  3. 1 1
      lib/config.json
  4. 0 0
      lib/css/style.css
  5. 100 103
      lib/js/STab.js
  6. 0 0
      lib/js/docs.js
  7. 284 213
      lib/js/index2.js

+ 1 - 1
docs/sapit-ui-base-guide.en.md

@@ -854,7 +854,7 @@ A single horizontal row of tabs. Left/right arrows appear **only when the tabs d
 | Click right arrow       | Selects the next tab and scrolls it into view; on the last tab it degrades to "scroll one screen"      |
 | Click right arrow       | Selects the next tab and scrolls it into view; on the last tab it degrades to "scroll one screen"      |
 | Arrow disabled          | Neither the previous/next tab nor further scrolling is available                                     |
 | Arrow disabled          | Neither the previous/next tab nor further scrolling is available                                     |
 | Mouse wheel             | Vertical wheel scrolls horizontally, the page does not move                                           |
 | Mouse wheel             | Vertical wheel scrolls horizontally, the page does not move                                           |
-| Mouse drag              | Hold the left button and drag to pan the bar (only when overflowing); a move beyond 5px counts as a drag, so click-to-switch never fires by accident |
+| Mouse drag              | Hold the left button and drag to pan the bar (only when overflowing); a move beyond 5px counts as a drag, so click-to-switch never fires by accident. **Hovering shows no grab cursor — it turns into a grabbing hand only while the button is pressed** |
 | Touch                   | Not intercepted — native horizontal scrolling and momentum are kept                                    |
 | Touch                   | Not intercepted — native horizontal scrolling and momentum are kept                                    |
 | Keyboard                | Left/right arrow keys switch tabs once a tab has focus                                                |
 | Keyboard                | Left/right arrow keys switch tabs once a tab has focus                                                |
 
 

+ 1 - 1
docs/sapit-ui-基座说明与业务使用.md

@@ -878,7 +878,7 @@ const onChange = (key, item) => {
 | 点右箭头   | 选中下一个标签并滚进可视区;已是最后一个则退化为「纯滚动一屏」 |
 | 点右箭头   | 选中下一个标签并滚进可视区;已是最后一个则退化为「纯滚动一屏」 |
 | 箭头禁用   | 既没有上一个/下一个标签,也无法再滚动时禁用                    |
 | 箭头禁用   | 既没有上一个/下一个标签,也无法再滚动时禁用                    |
 | 滚轮       | 纵向滚轮转横向滚动,不会带动整页                               |
 | 滚轮       | 纵向滚轮转横向滚动,不会带动整页                               |
-| 鼠标拖动   | 按住左键左右拖动即可平移标签栏(仅溢出时生效);位移超过 5px 才算拖动,不会误触发标签切换 |
+| 鼠标拖动   | 按住左键左右拖动即可平移标签栏(仅溢出时生效);位移超过 5px 才算拖动,不会误触发标签切换;**悬停不显示抓手光标,按下才变抓手** |
 | 触摸       | 不接管,保持系统原生横向滚动与惯性                             |
 | 触摸       | 不接管,保持系统原生横向滚动与惯性                             |
 | 键盘       | 标签聚焦后左右方向键切换                                       |
 | 键盘       | 标签聚焦后左右方向键切换                                       |
 
 

+ 1 - 1
lib/config.json

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

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
lib/css/style.css


+ 100 - 103
lib/js/STab.js

@@ -1,6 +1,6 @@
-import { useSlots as se, ref as c, computed as g, provide as ce, watch as I, nextTick as k, onMounted as fe, onBeforeUnmount as de, resolveComponent as M, openBlock as _, createElementBlock as C, normalizeClass as V, createVNode as $, createCommentVNode as z, createElementVNode as F, withModifiers as R, Fragment as ve, renderList as pe, withKeys as j, toDisplayString as be, renderSlot as he } from "vue";
+import { useSlots as se, ref as c, computed as h, provide as ce, watch as M, nextTick as K, onMounted as de, onBeforeUnmount as fe, resolveComponent as V, openBlock as k, createElementBlock as _, normalizeClass as $, createVNode as z, createCommentVNode as F, createElementVNode as j, withModifiers as L, Fragment as ve, renderList as pe, withKeys as G, toDisplayString as be, renderSlot as he } from "vue";
 import { n as ye } from "./index2.js";
 import { n as ye } from "./index2.js";
-const ge = ["disabled", "title"], me = ["data-value", "aria-selected", "tabindex", "onClick", "onKeydown"], we = ["disabled", "title"], G = 8, Ke = 5, ke = /* @__PURE__ */ Object.assign({ name: "STab" }, {
+const ge = ["disabled", "title"], me = ["data-value", "aria-selected", "tabindex", "onClick", "onKeydown"], we = ["disabled", "title"], H = 8, Ke = 5, ke = /* @__PURE__ */ Object.assign({ name: "STab" }, {
   __name: "STab",
   __name: "STab",
   props: {
   props: {
     // 用法一的数据源:[{ label, value }];字段名可用 tabKey 改
     // 用法一的数据源:[{ label, value }];字段名可用 tabKey 改
@@ -30,214 +30,211 @@ const ge = ["disabled", "title"], me = ["data-value", "aria-selected", "tabindex
     }
     }
   },
   },
   emits: ["update:activeKey", "change"],
   emits: ["update:activeKey", "change"],
-  setup(H, { expose: Y, emit: q }) {
-    const u = H, m = q, U = se(), r = c(null), X = c(null), N = c(!1), O = c(!1), f = c(!1), l = c(u.activeKey), A = c(!1), d = g(() => u.tabs || []), J = g(() => u.tabKey && u.tabKey.value || "value"), Q = g(() => u.tabKey && u.tabKey.label || "label"), D = g(() => !!U.default);
+  setup(Y, { expose: q, emit: U }) {
+    const u = Y, y = U, J = se(), r = c(null), N = c(null), O = c(!1), P = c(!1), g = c(!1), l = c(u.activeKey), R = c(!1), d = h(() => u.tabs || []), Q = h(() => u.tabKey && u.tabKey.value || "value"), Z = h(() => u.tabKey && u.tabKey.label || "label"), D = h(() => !!J.default);
     function s(e, t) {
     function s(e, t) {
-      const n = e && e[J.value];
+      const n = e && e[Q.value];
       return n == null ? t : n;
       return n == null ? t : n;
     }
     }
-    function Z(e) {
+    function ee(e) {
       var n, a;
       var n, a;
       if (!e) return "";
       if (!e) return "";
-      const t = e[Q.value];
+      const t = e[Z.value];
       return t == null ? (a = (n = e.label) != null ? n : e.tab) != null ? a : "" : t;
       return t == null ? (a = (n = e.label) != null ? n : e.tab) != null ? a : "" : t;
     }
     }
-    const S = (e) => e === "" || e === void 0 || e === null;
-    function ee() {
+    const C = (e) => e === "" || e === void 0 || e === null;
+    function te() {
       if (!D.value && d.value.length) return s(d.value[0], 0);
       if (!D.value && d.value.length) return s(d.value[0], 0);
-      const e = v();
+      const e = f();
       return e.length ? e[0].dataset.value : "";
       return e.length ? e[0].dataset.value : "";
     }
     }
-    function te() {
-      return S(u.defaultActiveKey) ? ee() : u.defaultActiveKey;
+    function ne() {
+      return C(u.defaultActiveKey) ? te() : u.defaultActiveKey;
     }
     }
-    function L() {
-      if (!S(l.value)) return !1;
-      const e = te();
-      return S(e) ? !1 : (l.value = e, !0);
+    function A() {
+      if (!C(l.value)) return !1;
+      const e = ne();
+      return C(e) ? !1 : (l.value = e, !0);
     }
     }
-    function v() {
-      const e = X.value;
+    function f() {
+      const e = N.value;
       return e ? Array.from(e.querySelectorAll(".s-tab-item")) : [];
       return e ? Array.from(e.querySelectorAll(".s-tab-item")) : [];
     }
     }
-    function w() {
-      return v().findIndex((e) => e.dataset.value === String(l.value));
+    function m() {
+      return f().findIndex((e) => e.dataset.value === String(l.value));
     }
     }
-    function K() {
+    function w() {
       const e = r.value;
       const e = r.value;
-      e && (f.value = e.scrollWidth - e.clientWidth > 1, N.value = e.scrollLeft > 1, O.value = e.scrollLeft + e.clientWidth < e.scrollWidth - 1);
+      e && (g.value = e.scrollWidth - e.clientWidth > 1, O.value = e.scrollLeft > 1, P.value = e.scrollLeft + e.clientWidth < e.scrollWidth - 1);
     }
     }
-    function ne(e) {
+    function le(e) {
       const t = r.value;
       const t = r.value;
       if (!t || !e) return;
       if (!t || !e) return;
       const n = t.getBoundingClientRect(), a = e.getBoundingClientRect();
       const n = t.getBoundingClientRect(), a = e.getBoundingClientRect();
       let o = null;
       let o = null;
-      a.left < n.left ? o = t.scrollLeft + (a.left - n.left) - G : a.right > n.right && (o = t.scrollLeft + (a.right - n.right) + G), o !== null && t.scrollTo({ left: Math.max(0, o), behavior: "smooth" });
+      a.left < n.left ? o = t.scrollLeft + (a.left - n.left) - H : a.right > n.right && (o = t.scrollLeft + (a.right - n.right) + H), o !== null && t.scrollTo({ left: Math.max(0, o), behavior: "smooth" });
     }
     }
-    function p() {
-      const e = w();
-      e >= 0 && ne(v()[e]);
+    function v() {
+      const e = m();
+      e >= 0 && le(f()[e]);
     }
     }
     function W(e) {
     function W(e) {
       const t = r.value;
       const t = r.value;
       t && t.scrollBy({ left: e * t.clientWidth * u.stepRatio, behavior: "smooth" });
       t && t.scrollBy({ left: e * t.clientWidth * u.stepRatio, behavior: "smooth" });
     }
     }
-    function x(e) {
+    function E(e) {
       if (e === l.value) return;
       if (e === l.value) return;
-      l.value = e, m("update:activeKey", e);
+      l.value = e, y("update:activeKey", e);
       const t = d.value.findIndex((n, a) => s(n, a) === e);
       const t = d.value.findIndex((n, a) => s(n, a) === e);
-      m("change", e, t >= 0 ? d.value[t] : void 0), k(p);
+      y("change", e, t >= 0 ? d.value[t] : void 0), K(v);
     }
     }
-    function P() {
-      const e = v(), t = w();
+    function T() {
+      const e = f(), t = m();
       if (t > 0) {
       if (t > 0) {
-        x(e[t - 1].dataset.value);
+        E(e[t - 1].dataset.value);
         return;
         return;
       }
       }
       W(-1);
       W(-1);
     }
     }
-    function T() {
-      const e = v(), t = w();
+    function X() {
+      const e = f(), t = m();
       if (t >= 0 && t < e.length - 1) {
       if (t >= 0 && t < e.length - 1) {
-        x(e[t + 1].dataset.value);
+        E(e[t + 1].dataset.value);
         return;
         return;
       }
       }
       W(1);
       W(1);
     }
     }
-    function le(e) {
+    function ae(e) {
       const t = r.value;
       const t = r.value;
-      if (!t || !f.value) return;
+      if (!t || !g.value) return;
       const n = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
       const n = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
       t.scrollLeft += n;
       t.scrollLeft += n;
     }
     }
-    let i = null, E = !1;
-    function ae(e) {
-      E = !1, !(!r.value || !f.value) && e.pointerType !== "touch" && e.button === 0 && (i = { id: e.pointerId, startX: e.clientX, lastX: e.clientX, moved: !1 }, window.addEventListener("pointerup", b, !0), window.addEventListener("pointercancel", b, !0));
-    }
+    let i = null, S = !1;
     function re(e) {
     function re(e) {
+      S = !1, !(!r.value || !g.value) && e.pointerType !== "touch" && e.button === 0 && (i = { id: e.pointerId, startX: e.clientX, lastX: e.clientX, moved: !1 }, R.value = !0, window.addEventListener("pointermove", B, !0), window.addEventListener("pointerup", x, !0), window.addEventListener("pointercancel", x, !0));
+    }
+    function B(e) {
       var n;
       var n;
       if (!i || e.pointerId !== i.id) return;
       if (!i || e.pointerId !== i.id) return;
       const t = r.value;
       const t = r.value;
       if (t) {
       if (t) {
         if (!i.moved) {
         if (!i.moved) {
           if (Math.abs(e.clientX - i.startX) < Ke) return;
           if (Math.abs(e.clientX - i.startX) < Ke) return;
-          i.moved = !0, A.value = !0, (n = t.setPointerCapture) == null || n.call(t, e.pointerId);
+          i.moved = !0, (n = t.setPointerCapture) == null || n.call(t, e.pointerId);
         }
         }
         t.scrollLeft -= e.clientX - i.lastX, i.lastX = e.clientX;
         t.scrollLeft -= e.clientX - i.lastX, i.lastX = e.clientX;
       }
       }
     }
     }
-    function b() {
+    function x() {
       var a;
       var a;
-      if (B(), !i) return;
+      if (I(), !i) return;
       const e = r.value, { moved: t, id: n } = i;
       const e = r.value, { moved: t, id: n } = i;
-      i = null, A.value = !1, (a = e == null ? void 0 : e.hasPointerCapture) != null && a.call(e, n) && e.releasePointerCapture(n), t && (E = !0);
+      i = null, R.value = !1, (a = e == null ? void 0 : e.hasPointerCapture) != null && a.call(e, n) && e.releasePointerCapture(n), t && (S = !0);
     }
     }
-    function B() {
-      window.removeEventListener("pointerup", b, !0), window.removeEventListener("pointercancel", b, !0);
+    function I() {
+      window.removeEventListener("pointermove", B, !0), window.removeEventListener("pointerup", x, !0), window.removeEventListener("pointercancel", x, !0);
     }
     }
     function oe(e) {
     function oe(e) {
-      E && (E = !1, e.preventDefault(), e.stopPropagation());
+      S && (S = !1, e.preventDefault(), e.stopPropagation());
     }
     }
-    const ie = g(() => w() > 0 || N.value), ue = g(() => {
-      const e = w();
-      return e >= 0 && e < v().length - 1 || O.value;
+    const ie = h(() => m() > 0 || O.value), ue = h(() => {
+      const e = m();
+      return e >= 0 && e < f().length - 1 || P.value;
     });
     });
     ce("sTabContext", {
     ce("sTabContext", {
       activeValue: l,
       activeValue: l,
-      select: x,
-      prev: P,
-      next: T
-    }), I(
+      select: E,
+      prev: T,
+      next: X
+    }), M(
       () => u.activeKey,
       () => u.activeKey,
       (e) => {
       (e) => {
         if (e !== l.value) {
         if (e !== l.value) {
-          if (S(e)) {
-            L() && m("update:activeKey", l.value), k(p);
+          if (C(e)) {
+            A() && y("update:activeKey", l.value), K(v);
             return;
             return;
           }
           }
-          l.value = e, k(p);
+          l.value = e, K(v);
         }
         }
       }
       }
-    ), I(
+    ), M(
       () => d.value,
       () => d.value,
       () => {
       () => {
-        k(() => {
-          K(), L() && m("update:activeKey", l.value), p();
+        K(() => {
+          w(), A() && y("update:activeKey", l.value), v();
         });
         });
       },
       },
       { deep: !0 }
       { deep: !0 }
     );
     );
-    let h = null;
-    return fe(() => {
-      k(() => {
-        K(), L() && m("update:activeKey", l.value), p();
-      }), window.ResizeObserver && r.value && (h = new ResizeObserver(() => K()), h.observe(r.value), r.value.firstElementChild && h.observe(r.value.firstElementChild));
-    }), de(() => {
-      B(), h && (h.disconnect(), h = null);
-    }), Y({ syncArrow: K, scrollToActive: p, scrollRef: r }), (e, t) => {
-      const n = M("left-outlined"), a = M("right-outlined");
-      return _(), C("div", {
-        class: V(["s-tab", { "is-overflow": f.value, dragging: A.value }])
+    let p = null;
+    return de(() => {
+      K(() => {
+        w(), A() && y("update:activeKey", l.value), v();
+      }), window.ResizeObserver && r.value && (p = new ResizeObserver(() => w()), p.observe(r.value), r.value.firstElementChild && p.observe(r.value.firstElementChild));
+    }), fe(() => {
+      I(), p && (p.disconnect(), p = null);
+    }), q({ syncArrow: w, scrollToActive: v, scrollRef: r }), (e, t) => {
+      const n = V("left-outlined"), a = V("right-outlined");
+      return k(), _("div", {
+        class: $(["s-tab", { dragging: R.value }])
       }, [
       }, [
-        f.value ? (_(), C("button", {
+        g.value ? (k(), _("button", {
           key: 0,
           key: 0,
           type: "link",
           type: "link",
           class: "s-tab-arrow prev",
           class: "s-tab-arrow prev",
           disabled: !ie.value,
           disabled: !ie.value,
           title: e.$l("上一个"),
           title: e.$l("上一个"),
-          onClick: P
+          onClick: T
         }, [
         }, [
-          $(n)
-        ], 8, ge)) : z("", !0),
-        F("div", {
+          z(n)
+        ], 8, ge)) : F("", !0),
+        j("div", {
           ref_key: "scrollRef",
           ref_key: "scrollRef",
           ref: r,
           ref: r,
           class: "s-tab-scroll",
           class: "s-tab-scroll",
           role: "tablist",
           role: "tablist",
-          onScroll: K,
-          onWheel: R(le, ["prevent"]),
-          onPointerdown: ae,
-          onPointermove: re,
-          onPointerup: b,
-          onPointercancel: b,
-          onDragstart: t[0] || (t[0] = R(() => {
+          onScroll: w,
+          onWheel: L(ae, ["prevent"]),
+          onPointerdown: re,
+          onDragstart: t[0] || (t[0] = L(() => {
           }, ["prevent"])),
           }, ["prevent"])),
           onClickCapture: oe
           onClickCapture: oe
         }, [
         }, [
-          F("div", {
+          j("div", {
             ref_key: "trackRef",
             ref_key: "trackRef",
-            ref: X,
+            ref: N,
             class: "s-tab-track"
             class: "s-tab-track"
           }, [
           }, [
-            D.value ? he(e.$slots, "default", {}, void 0, !0, 1) : (_(!0), C(ve, { key: 0 }, pe(d.value, (o, y) => (_(), C("a", {
-              key: s(o, y),
-              class: V(["s-tab-item", { active: s(o, y) === l.value }]),
-              "data-value": s(o, y),
+            D.value ? he(e.$slots, "default", {}, void 0, !0, 1) : (k(!0), _(ve, { key: 0 }, pe(d.value, (o, b) => (k(), _("a", {
+              key: s(o, b),
+              class: $(["s-tab-item", { active: s(o, b) === l.value }]),
+              "data-value": s(o, b),
               role: "tab",
               role: "tab",
-              "aria-selected": s(o, y) === l.value,
-              tabindex: s(o, y) === l.value ? 0 : -1,
-              onClick: (_e) => x(s(o, y)),
+              "aria-selected": s(o, b) === l.value,
+              tabindex: s(o, b) === l.value ? 0 : -1,
+              onClick: (_e) => E(s(o, b)),
               onKeydown: [
               onKeydown: [
-                j(R(P, ["prevent"]), ["left"]),
-                j(R(T, ["prevent"]), ["right"])
+                G(L(T, ["prevent"]), ["left"]),
+                G(L(X, ["prevent"]), ["right"])
               ]
               ]
-            }, be(Z(o)), 43, me))), 128))
+            }, be(ee(o)), 43, me))), 128))
           ], 512)
           ], 512)
         ], 544),
         ], 544),
-        f.value ? (_(), C("button", {
+        g.value ? (k(), _("button", {
           key: 1,
           key: 1,
           type: "link",
           type: "link",
           class: "s-tab-arrow next",
           class: "s-tab-arrow next",
           disabled: !ue.value,
           disabled: !ue.value,
           title: e.$l("下一个"),
           title: e.$l("下一个"),
-          onClick: T
+          onClick: X
         }, [
         }, [
-          $(a)
-        ], 8, we)) : z("", !0)
+          z(a)
+        ], 8, we)) : F("", !0)
       ], 2);
       ], 2);
     };
     };
   }
   }
-}), xe = /* @__PURE__ */ ye(ke, [["__scopeId", "data-v-328b8dcc"]]);
+}), Se = /* @__PURE__ */ ye(ke, [["__scopeId", "data-v-ac556582"]]);
 export {
 export {
-  xe as default
+  Se as default
 };
 };

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
lib/js/docs.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 284 - 213
lib/js/index2.js


Vissa filer visades inte eftersom för många filer har ändrats