diry 1 тиждень тому
батько
коміт
8e604898e7

+ 48 - 2
docs/sapit-ui-base-guide.en.md

@@ -64,9 +64,9 @@ sapit-ui-framework/
 | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
 | Layout           | `SSkeletonLayout` (skeleton layout: title + button group + content, see 2.16), `SListLayout`, `SListCardLayout` (card list, see 2.19), `SListTableTreeLayout`, `SSuperListLayout` (advanced list, see 2.20), `SFormLayout`, `SPanelLayout`, `SCollapses`/`SCollapsesItem`, `SDrawer`                                                                                                                                                                                                                                                                                                                                                                                                                                      |
 | Overlay          | `SModal`, `SModalTemplate`, `ModalHeader`, `SIconModal`, `SImportModal` (bulk import, see 2.11)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
-| Form / filter    | `SForm`, `SFormItem` (multi-column + `full` for a whole row, see 3.4), `SExtendFieldsForm`/`SExtendFieldsFormItem` (dynamic extra fields), `SFilterWrap`, `SFilterItem` (`full` for a whole row, see 3.4), `SFilterToolbar` (filter area shell: main row + more-filters collapse + reset, see 3.4), `STableToolbar` (table area shell: body height auto-fits the content area; used as a pair with `SFilterToolbar`, see 3.4), `SCascader`, `STree`, `STreeSelect`, `SDataRangeTreeSelect` (data-permission scope tree), `SUserSelect`, `SUserSelectButton`, `SChooseUser` (user picker with data permission, see 2.14), `SBelowChoosePosition` (position picker, see 2.15), `SOfficeSelect`, `SIconSelect` (icon picker) |
+| Form / filter    | `SForm`, `SFormItem` (multi-column + `full` for a whole row, see 3.4), `SExtendFieldsForm`/`SExtendFieldsFormItem` (dynamic extra fields), `SFilterWrap`, `SFilterItem` (`full` for a whole row, see 3.4), `SFilterToolbar` (filter area shell: main row + more-filters collapse + reset, see 3.4), `STableToolbar` (table area shell: body height auto-fits the content area; used as a pair with `SFilterToolbar`, see 3.4), `SCascader`, `STree`, `STreeSelect`, `SDataRangeTreeSelect` (data-permission scope tree), `SUserSelect`, `SUserSelectButton`, `SChooseUser` (user picker with data permission, see 2.14), `SBelowChoosePosition` (position picker, see 2.15), `SOfficeSelect`, `SIconSelect` (icon dropdown, searchable/multiple), `SIconSelectPopover` (icon grid panel), `SIconModal` (icon browser) |
 | Upload           | `SFileUpload`, `SDraggerUpload`, `SCopperUpload`, `CropperModal`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
-| Display / others | `SEditor`, `SEmpty`, `SIcon`, `SSvg`, `SAnchor`, `SColorPicker`, `SToggleLanguage`, `SettingFilter`, `SettingColumns`, `SSideMenu`/`STopMenu`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
+| Display / others | `STab`/`STabItem` (tab bar: arrows + drag when the tabs overflow, see 2.21), `SEditor`, `SEmpty`, `SIcon`, `SSvg`, `SAnchor`, `SColorPicker`, `SToggleLanguage`, `SettingFilter`, `SettingColumns`, `SSideMenu`/`STopMenu`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
 
 > Component usage lives in the built-in component page **`/components`** (two tabs: "s components" and "tools / config"; the latter lists every web-config option and every `$utils` method).
 >
@@ -816,6 +816,52 @@ loadData({
 
 Single-value `equal` / `includes` conditions are additionally flattened to a same-named field (`params[dataIndex] = value`), so the backend can read them directly without parsing `filterConditions`.
 
+### 2.21 STab — horizontal tab bar (arrows appear only when the tabs overflow)
+
+A single horizontal row of tabs. Left/right arrows appear **only when the tabs do not fit**, and the bar can be dragged horizontally with the left mouse button.
+
+```vue
+<!-- option 1: pass an array, the component renders the tabs -->
+<s-tab v-model:activeKey="active" :tabs="tabs" @change="onChange" />
+
+<!-- option 2: write <s-tab-item> yourself (for custom tab content) -->
+<s-tab v-model:activeKey="active">
+  <s-tab-item value="1">Task config</s-tab-item>
+  <s-tab-item value="2"><span>Execution log</span><a-badge :count="3" /></s-tab-item>
+</s-tab>
+
+<!-- no activeKey at all: defaultActiveKey wins, otherwise the first tab is selected -->
+<s-tab :tabs="tabs" default-active-key="2" />
+```
+
+| Item                | Description                                                                                                        |
+| ------------------- | ------------------------------------------------------------------------------------------------------------------ |
+| `v-model:activeKey` | Current value, `String`/`Number`. Leaving it empty (or `''`) still selects something — see the next row            |
+| `defaultActiveKey`  | Default value used when `activeKey` is absent or empty; **if both are absent the first tab is selected**           |
+| `tabs`              | `[{ label, value }]`; map other field names with `tabKey` (default `{ label: 'label', value: 'value' }`)            |
+| `tabKey`            | Field mapping, same convention as `SFormLayout` / `SSkeletonLayout`                                                |
+| `stepRatio`         | Screens to scroll per arrow click when already at the first/last tab, default `0.6`                                |
+| `@change`           | `(key, item)`; `item` is `undefined` in slot mode                                                                  |
+| Slot                | Default slot holds `s-tab-item`; once used, `tabs` is ignored                                                      |
+| expose              | `syncArrow()` / `scrollToActive()` / `scrollRef`                                                                   |
+
+**Interaction rules**
+
+| Case                    | Behaviour                                                                                             |
+| ----------------------- | ----------------------------------------------------------------------------------------------------- |
+| Tabs fit                | No arrows rendered, tabs fill the row                                                                 |
+| Tabs overflow           | Left/right arrows appear                                                                              |
+| 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                                     |
+| 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 |
+| Touch                   | Not intercepted — native horizontal scrolling and momentum are kept                                    |
+| Keyboard                | Left/right arrow keys switch tabs once a tab has focus                                                |
+
+> The bar only renders the tab bar, not the panes. Render the content yourself from `activeKey` — use `v-show` rather than `v-if`, otherwise component instances inside hidden tabs are destroyed (permission pages that must read every tab's selection depend on this).
+
+Colours are derived from the theme (`--s-color`); override `--s-tab-color` / `--s-tab-active-color` / `--s-tab-disabled-color` on a wrapper to tune them without touching the component.
+
 ## 3. Layout and height rules
 
 > This chapter is a **mandatory contract for the base's internal layout components**. Business pages only use the layouts and never compute heights themselves; any new layout component must satisfy these rules first.

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

@@ -62,7 +62,7 @@ sapit-ui-framework/
 | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
 | 布局类    | `SSkeletonLayout`(骨架布局:标题 + 按钮组 + 内容区,见 2.16)、`SListLayout`、`SListCardLayout`(卡片列表,见 2.19)、`SListTableTreeLayout`、`SSuperListLayout`(高级列表,见 2.20)、`SFormLayout`、`SPanelLayout`、`SCollapses`/`SCollapsesItem`、`SDrawer`                                                                                                                                                                                                                                                                                                                                                                                                        |
 | 弹层类    | `SModal`、`SModalTemplate`、`ModalHeader`、`SIconModal`、`SImportModal`(批量导入,见 2.11)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
-| 表单/筛选 | `SForm`、`SFormItem`(多列 + `full` 独占整行,见 3.4)、`SExtendFieldsForm`/`SExtendFieldsFormItem`(动态扩展字段)、`SFilterWrap`、`SFilterItem`(`full` 独占整行,见 3.4)、`SFilterToolbar`(查询区外壳:主区 + 更多筛选折叠 + 条件重置,见 3.4)、`STableToolbar`(表格区外壳:表体高度自动贴合内容区,与 `SFilterToolbar` 成对使用,见 3.4)、`SFilterTableToolbar`(查询区 + 表格区组合件,见 2.22)、`SCascader`、`STree`、`STreeSelect`、`SDataRangeTreeSelect`(数据权限范围树)、`SUserSelect`、`SUserSelectButton`、`SChooseUser`(带数据权限选人弹窗,见 2.14)、`SBelowChoosePosition`(选岗位弹窗,见 2.15)、`SOfficeSelect`、`SIconSelect`(图标选择) |
+| 表单/筛选 | `SForm`、`SFormItem`(多列 + `full` 独占整行,见 3.4)、`SExtendFieldsForm`/`SExtendFieldsFormItem`(动态扩展字段)、`SFilterWrap`、`SFilterItem`(`full` 独占整行,见 3.4)、`SFilterToolbar`(查询区外壳:主区 + 更多筛选折叠 + 条件重置,见 3.4)、`STableToolbar`(表格区外壳:表体高度自动贴合内容区,与 `SFilterToolbar` 成对使用,见 3.4)、`SFilterTableToolbar`(查询区 + 表格区组合件,见 2.22)、`SCascader`、`STree`、`STreeSelect`、`SDataRangeTreeSelect`(数据权限范围树)、`SUserSelect`、`SUserSelectButton`、`SChooseUser`(带数据权限选人弹窗,见 2.14)、`SBelowChoosePosition`(选岗位弹窗,见 2.15)、`SOfficeSelect`、`SIconSelect`(图标下拉,可搜索/多选)、`SIconSelectPopover`(图标网格面板)、`SIconModal`(图标浏览弹窗) |
 | 上传类    | `SFileUpload`、`SDraggerUpload`、`SCopperUpload`、`CropperModal`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
 | 展示/其它 | `STab`/`STabItem`(标签栏,超出宽度自动出左右箭头,见 2.21)、`SEditor`、`SEmpty`、`SIcon`、`SSvg`、`SAnchor`、`SColorPicker`、`SToggleLanguage`、`SettingFilter`、`SettingColumns`、`SSideMenu`/`STopMenu`                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
 
@@ -852,9 +852,16 @@ const onChange = (key, item) => {
 </s-tab>
 ```
 
+**默认选中**:不传 `activeKey` 也能用 —— 传 `default-active-key` 就选中它,两者都没传则自动选中第一项(组件挂载后补默认值,并通过 `update:activeKey` 同步给父级,`@change` 不算用户操作、不会触发)。
+
+```vue
+<s-tab :tabs="tabs" default-active-key="2" />
+```
+
 | 项                  | 说明                                                                                     |
 | ------------------- | ---------------------------------------------------------------------------------------- |
-| `v-model:activeKey` | 当前选中值,`String`/`Number`                                                            |
+| `v-model:activeKey` | 当前选中值,`String`/`Number`;**不传 / 传空(`''`)都会自动选中**(见下一行)             |
+| `defaultActiveKey`  | 默认选中值:`activeKey` 没传或传空时生效;**它也没传就默认选中第一项**                     |
 | `tabs`              | `[{ label, value }]`;字段名不同用 `tabKey`(默认 `{ label: 'label', value: 'value' }`) |
 | `tabKey`            | 字段映射,与 `SFormLayout`/`SSkeletonLayout` 的 `tabs` 约定一致                          |
 | `stepRatio`         | 已到首个/末个标签但仍可滚动时,一次滚多少屏,默认 `0.6`                                  |
@@ -871,6 +878,8 @@ const onChange = (key, item) => {
 | 点右箭头   | 选中下一个标签并滚进可视区;已是最后一个则退化为「纯滚动一屏」 |
 | 箭头禁用   | 既没有上一个/下一个标签,也无法再滚动时禁用                    |
 | 滚轮       | 纵向滚轮转横向滚动,不会带动整页                               |
+| 鼠标拖动   | 按住左键左右拖动即可平移标签栏(仅溢出时生效);位移超过 5px 才算拖动,不会误触发标签切换 |
+| 触摸       | 不接管,保持系统原生横向滚动与惯性                             |
 | 键盘       | 标签聚焦后左右方向键切换                                       |
 
 > ⚠️ 只给标签栏,不给内容区。内容请自己按 `activeKey` 渲染(切显隐用 `v-show`,不要用 `v-if`,否则隐藏页签里的组件实例会丢)。

+ 1 - 1
lib/config.json

@@ -1 +1 @@
-{"_hash":1794200636534,"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":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"}

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
lib/css/style.css


+ 1 - 1
lib/js/ActionButton.js

@@ -1,4 +1,4 @@
-import { c$ as b, B as p, _ as i, cU as y, e as O } from "./index2.js";
+import { d0 as b, B as p, _ as i, cV 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);

+ 1 - 1
lib/js/CustomInput.js

@@ -15,7 +15,7 @@ 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, d6 as y, d7 as H } from "./index2.js";
+import { I as g, a6 as B, a7 as G, d7 as y, d8 as H } from "./index2.js";
 import { _ as $ } from "./index9.js";
 import { D as R } from "./dayjs.js";
 const j = {

+ 60 - 41
lib/js/SIconModal.js

@@ -1,9 +1,10 @@
-import { ref as w, watch as C, resolveComponent as k, resolveDirective as y, openBlock as s, createBlock as n, withCtx as b, createElementVNode as c, createElementBlock as i, Fragment as g, renderList as I, unref as T, withDirectives as $, resolveDynamicComponent as B, normalizeClass as D, toDisplayString as x } from "vue";
-import { n as N, ap as S } from "./index2.js";
-const E = {
-  class: "icon-list",
-  style: { height: "60vh", overflow: "hidden auto" }
-}, F = ["onClick"], H = { class: "name" }, M = {
+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 { g as x, f as z } from "./icon-groups.js";
+import { n as F, ap 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"
+}, K = {
   __name: "SIconModal",
   props: {
     value: {
@@ -16,50 +17,68 @@ const E = {
     }
   },
   emits: ["update:value"],
-  setup(l, { emit: r }) {
-    const d = ["createFromIconfontCN", "default", "getTwoToneColor", "setTwoToneColor"], u = Object.keys(S).filter((t) => !d.includes(t)), m = l, v = r, o = w(!1);
-    C(
-      () => m.value,
-      (t) => {
-        o.value = t;
+  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(
+      () => f.value,
+      (e) => {
+        a.value = e;
       }
     );
-    const p = () => {
-      o.value = !1, v("update:value", !1);
-    }, f = (t) => {
-      window.$message.success(`<${t}/>`);
+    const y = () => {
+      a.value = !1, w("update:value", !1);
+    }, C = (e) => {
+      r.value = e;
     };
-    return (t, a) => {
-      const _ = k("s-modal"), h = y("clipboard");
-      return s(), n(_, {
-        value: o.value,
-        "onUpdate:value": a[0] || (a[0] = (e) => o.value = e),
+    p(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($, {
+        value: a.value,
+        "onUpdate:value": s[1] || (s[1] = (t) => a.value = t),
         keyboard: "",
-        title: t.$l("图标选择"),
-        width: l.width,
-        onHandCancel: p
+        title: e.$l("图标选择"),
+        width: d.width,
+        tabs: b.value,
+        onTabsChange: C,
+        onHandCancel: y
       }, {
-        default: b(() => [
-          c("div", E, [
-            (s(!0), i(g, null, I(T(u), (e) => $((s(), i("div", {
-              key: e,
-              class: "item-icon",
-              onClick: (j) => f(e)
-            }, [
-              (s(), n(B(e), {
-                class: D(e)
-              }, null, 8, ["class"])),
-              c("div", H, x(e), 1)
-            ], 8, F)), [
-              [h, `<${e}/>`]
-            ])), 128))
+        default: N(() => [
+          c("div", L, [
+            T(k, {
+              value: l.value,
+              "onUpdate:value": s[0] || (s[0] = (t) => l.value = t),
+              class: "icon-search",
+              placeholder: e.$l("搜索图标"),
+              "allow-clear": ""
+            }, null, 8, ["value", "placeholder"]),
+            c("div", j, [
+              (o(!0), i(S, null, V(u.value, (t) => E((o(), i("div", {
+                key: t,
+                class: "item-icon",
+                onClick: (O) => g(t)
+              }, [
+                (o(), m(H(t), {
+                  class: M(t)
+                }, null, 8, ["class"])),
+                c("div", A, _(t), 1)
+              ], 8, q)), [
+                [I, `<${t}/>`]
+              ])), 128)),
+              u.value.length ? U("", !0) : (o(), i("div", J, _(e.$l("暂无数据")), 1))
+            ])
           ])
         ]),
         _: 1
-      }, 8, ["value", "title", "width"]);
+      }, 8, ["value", "title", "width", "tabs"]);
     };
   }
-}, O = /* @__PURE__ */ N(M, [["__scopeId", "data-v-cd8fd293"]]);
+}, W = /* @__PURE__ */ F(K, [["__scopeId", "data-v-2d28cd6d"]]);
 export {
-  O as default
+  W as default
 };

+ 57 - 69
lib/js/SIconSelect.js

@@ -1,6 +1,7 @@
-import { ref as m, computed as x, resolveComponent as N, openBlock as a, createElementBlock as c, createVNode as i, normalizeStyle as $, withCtx as p, createBlock as f, resolveDynamicComponent as w, createCommentVNode as T, createElementVNode as r, Fragment as b, renderList as B, normalizeClass as L, toDisplayString as V } from "vue";
-import { n as z, ap as D, I as E, aq as F } from "./index2.js";
-const U = { class: "s-icon-select-common" }, j = { class: "icon-search" }, q = { class: "icon-list" }, H = ["onClick"], O = { class: "name" }, A = {
+import { useAttrs as y, resolveComponent as S, openBlock as o, createBlock as c, mergeProps as _, unref as s, withCtx as d, createElementBlock as v, Fragment as w, renderList as B, createVNode as b, createElementVNode as x, toDisplayString as C } from "vue";
+import { f as k } from "./icon-groups.js";
+import { a6 as L, a7 as N } from "./index2.js";
+const W = { style: { "margin-left": "8px" } }, O = {
   __name: "SIconSelect",
   props: {
     // 选中图标名,支持 v-model:value
@@ -8,84 +9,71 @@ const U = { class: "s-icon-select-common" }, j = { class: "icon-search" }, q = {
       type: String,
       default: ""
     },
-    width: {
-      type: [Number, String],
-      default: 300
-    },
     placeholder: {
       type: String,
       default() {
         return window.$l("请选择图标");
       }
     },
-    title: {
-      type: String,
-      default() {
-        return window.$l("图标选择");
-      }
+    multiple: {
+      type: Boolean,
+      default: !1
+    },
+    disabled: {
+      type: Boolean,
+      default: !1
+    },
+    required: {
+      type: Boolean,
+      default: !1
+    },
+    minWidth: {
+      type: Number,
+      default: 240
     }
   },
   emits: ["update:value", "change"],
-  setup(e, { expose: h, emit: y }) {
-    const u = y, C = ["createFromIconfontCN", "default", "getTwoToneColor", "setTwoToneColor"], d = Object.keys(D).filter((l) => !C.includes(l)), o = m(!1), s = m(""), k = x(() => {
-      const l = s.value.trim().toLowerCase();
-      return l ? d.filter((n) => n.toLowerCase().includes(l)) : d;
-    }), v = () => {
-      o.value = !0;
-    }, _ = (l) => {
-      u("update:value", l), u("change", l), o.value = !1;
+  setup(t, { emit: i }) {
+    const u = y(), r = i, m = (e) => {
+      r("update:value", e), r("change", e);
+    }, f = k("all", ""), p = (e, l) => {
+      var a;
+      return String((a = l == null ? void 0 : l.value) != null ? a : "").toLowerCase().includes(String(e != null ? e : "").trim().toLowerCase());
     };
-    return h({ open: v }), (l, n) => {
-      const g = E, S = F, I = N("s-modal");
-      return a(), c("div", U, [
-        i(g, {
-          readonly: !0,
-          value: e.value,
-          placeholder: e.placeholder,
-          style: $({ width: e.width.includes("px") || e.width.includes("%") ? e.width : e.width + "px" }),
-          onClick: v
-        }, {
-          prefix: p(() => [
-            e.value ? (a(), f(w(e.value), {
-              key: 0,
-              class: "prefix-icon"
-            })) : T("", !0)
-          ]),
-          _: 1
-        }, 8, ["value", "placeholder", "style"]),
-        i(I, {
-          value: o.value,
-          "onUpdate:value": n[1] || (n[1] = (t) => o.value = t),
-          title: e.title,
-          width: 900,
-          onHandCancel: n[2] || (n[2] = (t) => o.value = !1)
-        }, {
-          default: p(() => [
-            r("div", j, [
-              i(S, {
-                value: s.value,
-                "onUpdate:value": n[0] || (n[0] = (t) => s.value = t),
-                placeholder: l.$l("搜索图标"),
-                "allow-clear": ""
-              }, null, 8, ["value", "placeholder"])
+    return (e, l) => {
+      const a = S("s-icon"), h = N, g = L;
+      return o(), c(g, _({
+        value: t.value,
+        disabled: t.disabled,
+        mode: t.multiple ? "multiple" : void 0,
+        "allow-clear": !t.required,
+        placeholder: t.placeholder,
+        "show-search": "",
+        "filter-option": p,
+        onChange: m
+      }, s(u), {
+        style: { minWidth: t.minWidth + "px" }
+      }), {
+        default: d(() => [
+          (o(!0), v(w, null, B(s(f), (n) => (o(), c(h, {
+            value: n,
+            key: n
+          }, {
+            default: d(() => [
+              b(a, {
+                name: n,
+                color: ""
+              }, null, 8, ["name"]),
+              x("span", W, C(n), 1)
             ]),
-            r("div", q, [
-              (a(!0), c(b, null, B(k.value, (t) => (a(), c("div", {
-                key: t,
-                class: L(["item-icon", { active: t === e.value }]),
-                onClick: (G) => _(t)
-              }, [
-                (a(), f(w(t), { class: "icon" })),
-                r("div", O, V(t), 1)
-              ], 10, H))), 128))
-            ])
-          ]),
-          _: 1
-        }, 8, ["value", "title"])
-      ]);
+            _: 2
+          }, 1032, ["value"]))), 128))
+        ]),
+        _: 1
+      }, 16, ["value", "disabled", "mode", "allow-clear", "placeholder", "style"]);
     };
   }
-}, M = /* @__PURE__ */ z(A, [["__scopeId", "data-v-cff8ed31"]]);
+};
 export {
-  M as default
+  O as default
 };

+ 120 - 0
lib/js/SIconSelectPopover.js

@@ -0,0 +1,120 @@
+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 { _ as j } from "./index6.js";
+const q = { class: "s-icon-select-common" }, A = { class: "icon-list" }, G = ["onClick"], H = ["title"], J = {
+  key: 0,
+  class: "icon-empty"
+}, K = {
+  __name: "SIconSelectPopover",
+  props: {
+    // 选中图标名,支持 v-model:value
+    value: {
+      type: String,
+      default: ""
+    },
+    width: {
+      type: [Number, String],
+      default: 280
+    },
+    placeholder: {
+      type: String,
+      default() {
+        return window.$l("请选择图标");
+      }
+    },
+    // 保留:下拉版不再需要弹窗标题,兼容旧调用方传参
+    title: {
+      type: String,
+      default() {
+        return window.$l("图标选择");
+      }
+    }
+  },
+  emits: ["update:value", "change"],
+  setup(l, { expose: x, emit: S }) {
+    const $ = l, d = S, o = f(!1), s = f(""), m = u(() => {
+      const e = $.width;
+      if (typeof e == "number") return `${e}px`;
+      const n = String(e != null ? e : "").trim();
+      return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : "280px";
+    }), C = u(() => {
+      const e = parseFloat(m.value);
+      return `${Math.max(280, Number.isFinite(e) ? e : 0)}px`;
+    }), v = u(() => P("all", s.value));
+    z(o, (e) => {
+      e || (s.value = "");
+    });
+    const I = () => {
+      o.value = !0;
+    }, b = (e) => {
+      d("update:value", e), d("change", e), o.value = !1;
+    };
+    return x({ open: I }), (e, n) => {
+      const N = M, B = D("down-outlined"), F = W, V = j;
+      return a(), c("div", q, [
+        r(V, {
+          trigger: "click",
+          placement: "bottomLeft",
+          open: o.value,
+          "onUpdate:open": n[1] || (n[1] = (t) => o.value = t)
+        }, {
+          content: i(() => [
+            p("div", {
+              class: "picker-panel",
+              style: _({ width: C.value })
+            }, [
+              r(N, {
+                value: s.value,
+                "onUpdate:value": n[0] || (n[0] = (t) => s.value = t),
+                class: "icon-search",
+                placeholder: e.$l("搜索图标"),
+                "allow-clear": ""
+              }, null, 8, ["value", "placeholder"]),
+              p("div", A, [
+                (a(!0), c(E, null, L(v.value, (t) => (a(), c("div", {
+                  key: t,
+                  class: h(["item-icon", { active: t === l.value }]),
+                  onClick: (O) => b(t)
+                }, [
+                  (a(), y(g(t), { class: "icon" })),
+                  p("div", {
+                    class: "name",
+                    title: t
+                  }, k(t), 9, H)
+                ], 10, G))), 128)),
+                v.value.length ? w("", !0) : (a(), c("div", J, k(e.$l("暂无数据")), 1))
+              ])
+            ], 4)
+          ]),
+          default: i(() => [
+            r(F, {
+              class: "icon-input",
+              readonly: !0,
+              value: l.value,
+              placeholder: l.placeholder,
+              style: _({ width: m.value })
+            }, {
+              prefix: i(() => [
+                l.value ? (a(), y(g(l.value), {
+                  key: 0,
+                  class: "prefix-icon"
+                })) : w("", !0)
+              ]),
+              suffix: i(() => [
+                r(B, {
+                  class: h(["select-arrow", { open: o.value }])
+                }, null, 8, ["class"])
+              ]),
+              _: 1
+            }, 8, ["value", "placeholder", "style"])
+          ]),
+          _: 1
+        }, 8, ["open"])
+      ]);
+    };
+  }
+}, Y = /* @__PURE__ */ U(K, [["__scopeId", "data-v-854f2576"]]);
+export {
+  Y as default
+};

+ 38 - 38
lib/js/SModal.js

@@ -12,7 +12,7 @@ var De = (e, t, o) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writ
 }, 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 Ht from "./ModalHeader.js";
-import { cR 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, cS as Rt, K as We, cT as zt, 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, cU as Xt, e as ge, cV as Kt, a as Yt, b3 as Ut, b2 as Qt, b4 as Zt, cW as qt, cX as Jt, cY as eo, cQ as to, cZ as oo, c_ as no, aW as lo, n as ao, ao as io } from "./index2.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 { A as Ve } from "./ActionButton.js";
 import { T as ro, _ as so } from "./index12.js";
 import { _ as co, S as uo } from "./index11.js";
@@ -48,7 +48,7 @@ const fo = new nt("antFadeIn", {
     }
   }];
 };
-function Re() {
+function ze() {
   return {
     keyboard: {
       type: Boolean,
@@ -165,7 +165,7 @@ const yo = {
   },
   name: "DialogContent",
   inheritAttrs: !1,
-  props: f(f({}, Re()), {
+  props: f(f({}, ze()), {
     motionName: String,
     ariaId: String,
     onVisibleChanged: Function,
@@ -223,7 +223,7 @@ const yo = {
         closable: T,
         closeIcon: F = (y = n.closeIcon) === null || y === void 0 ? void 0 : y.call(n),
         onClose: O,
-        bodyStyle: R,
+        bodyStyle: z,
         bodyProps: g,
         onMousedown: A,
         onMouseup: S,
@@ -236,8 +236,8 @@ const yo = {
       c && (L = a("div", {
         class: `${w}-footer`
       }, [c]));
-      let z;
-      h && (z = a("div", {
+      let R;
+      h && (R = a("div", {
         class: `${w}-header`
       }, [a("div", {
         class: `${w}-title`,
@@ -254,9 +254,9 @@ const yo = {
       }, null)]));
       const W = a("div", {
         class: `${w}-content`
-      }, [Y, z, a("div", P({
+      }, [Y, R, a("div", P({
         class: `${w}-body`,
-        style: R
+        style: z
       }, g), [(x = n.default) === null || x === void 0 ? void 0 : x.call(n)]), L]), U = lt(X);
       return a(Qe, P(P({}, U), {}, {
         onBeforeEnter: u,
@@ -317,7 +317,7 @@ const yo = {
   },
   name: "VcDialog",
   inheritAttrs: !1,
-  props: Be(f(f({}, Re()), {
+  props: Be(f(f({}, ze()), {
     getOpenCount: Function,
     scrollLocker: Object
   }), {
@@ -339,7 +339,7 @@ const yo = {
     const l = D(), i = D(), p = D(), m = D(e.visible), $ = D(`vcDialogTitle${po()}`), v = (c) => {
       var h, C;
       if (c)
-        Rt(i.value, document.activeElement) || (l.value = document.activeElement, (h = p.value) === null || h === void 0 || h.focus());
+        zt(i.value, document.activeElement) || (l.value = document.activeElement, (h = p.value) === null || h === void 0 || h.focus());
       else {
         const T = m.value;
         if (m.value = !1, e.mask && l.value && e.focusTriggerAfterClose) {
@@ -390,7 +390,7 @@ const yo = {
         maskTransitionName: T,
         maskAnimation: F,
         zIndex: O,
-        wrapClassName: R,
+        wrapClassName: z,
         rootClassName: g,
         wrapStyle: A,
         closable: S,
@@ -399,7 +399,7 @@ const yo = {
         transitionName: G,
         animation: X,
         wrapProps: L,
-        title: z = n.title
+        title: R = n.title
       } = e, {
         style: Y,
         class: W
@@ -419,11 +419,11 @@ const yo = {
       }, null), a("div", P({
         tabIndex: -1,
         onKeydown: w,
-        class: ye(`${c}-wrap`, R),
+        class: ye(`${c}-wrap`, z),
         ref: i,
         onClick: x,
         role: "dialog",
-        "aria-labelledby": z ? $.value : null,
+        "aria-labelledby": R ? $.value : null,
         style: f(f({
           zIndex: O
         }, A), {
@@ -445,7 +445,7 @@ const yo = {
       }), n)])]);
     };
   }
-}), xo = Re(), So = J({
+}), xo = ze(), So = J({
   compatConfig: {
     MODE: 3
   },
@@ -460,7 +460,7 @@ const yo = {
       slots: n
     } = t;
     const l = B(e.visible);
-    return zt({}, {
+    return Rt({}, {
       inTriggerContext: !1
     }), j(() => e.visible, () => {
       e.visible && (l.value = !0);
@@ -1004,7 +1004,7 @@ const Ao = () => ({
         wrapClassName: T,
         centered: F,
         getContainer: O,
-        closeIcon: R = (x = n.closeIcon) === null || x === void 0 ? void 0 : x.call(n),
+        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, {
         [`${p.value}-centered`]: !!F,
@@ -1026,7 +1026,7 @@ const Ao = () => ({
         footer: n.footer || y,
         closeIcon: () => a("span", {
           class: `${p.value}-close-x`
-        }, [R || a(Gt, {
+        }, [z || a(Gt, {
           class: `${p.value}-close-icon`
         }, null)])
       })));
@@ -1066,7 +1066,7 @@ const rt = J({
         mask: T = !0,
         maskClosable: F = !1,
         type: O,
-        open: R,
+        open: z,
         title: g,
         content: A,
         direction: S,
@@ -1075,7 +1075,7 @@ const rt = J({
         focusTriggerAfterClose: G,
         rootPrefixCls: X,
         bodyStyle: L,
-        wrapClassName: z,
+        wrapClassName: R,
         footer: Y
       } = e;
       let W = l;
@@ -1109,11 +1109,11 @@ const rt = J({
         class: Pe,
         wrapClassName: ye({
           [`${re}-centered`]: !!r
-        }, z),
+        }, R),
         onCancel: (V) => m == null ? void 0 : m({
           triggerCancel: !0
         }, V),
-        open: R,
+        open: z,
         title: "",
         footer: "",
         transitionName: Te(X, "zoom", e.transitionName),
@@ -1298,7 +1298,7 @@ const No = J({
     }), () => n.value.map((i) => i());
   }
 });
-function Ro() {
+function zo() {
   const e = D(null), t = D([]);
   j(t, () => {
     t.value.length && ([...t.value].forEach((p) => {
@@ -1318,7 +1318,7 @@ function Ro() {
       v.value = !1;
       for (var C = arguments.length, T = new Array(C), F = 0; F < C; F++)
         T[F] = arguments[F];
-      const O = T.some((R) => R && R.triggerCancel);
+      const O = T.some((z) => z && z.triggerCancel);
       d.value.onCancel && O && d.value.onCancel(() => {
       }, ...T.slice(1));
     };
@@ -1360,7 +1360,7 @@ function Ro() {
 function mt(e) {
   return Ce(st(e));
 }
-_.useModal = Ro;
+_.useModal = zo;
 _.info = function(t) {
   return Ce(ct(t));
 };
@@ -1384,7 +1384,7 @@ _.destroyAll = function() {
 _.install = function(e) {
   return e.component(_.name, _), e;
 };
-function zo(e) {
+function Ro(e) {
   return Bt() ? (Pt(e), !0) : !1;
 }
 function I(e) {
@@ -1446,7 +1446,7 @@ function Oe(...e) {
   ), v = () => {
     $(), p();
   };
-  return zo(v), v;
+  return Ro(v), v;
 }
 function Wo(e, t = {}) {
   var o, n;
@@ -1486,12 +1486,12 @@ function Wo(e, t = {}) {
       x: H,
       y: M
     }, $ == null || $(c.value, g), T(g);
-  }, R = (g) => {
+  }, z = (g) => {
     I(t.disabled) || !C(g) || h.value && (h.value = void 0, v == null || v(c.value, g), T(g));
   };
   if (vt) {
     const g = { capture: (n = t.capture) != null ? n : !0 };
-    Oe(x, "pointerdown", F, g), Oe(r, "pointermove", O, g), Oe(r, "pointerup", R, g);
+    Oe(x, "pointerdown", F, g), Oe(r, "pointermove", O, g), Oe(r, "pointerup", z, g);
   }
   return Fe(ve({}, ko(c)), {
     position: c,
@@ -1609,20 +1609,20 @@ 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), R = 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), 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("");
     j(() => o.tabs, () => {
       const b = o.tabs || [];
       if (!b.length) {
         g.value = "";
         return;
       }
-      const V = R.value;
+      const V = z.value;
       b.some((K) => K && K[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(() => ({
       transform: `translate(${r.value}px, ${y.value}px)`
     })), G = B(ve({}, o.bodyStyle));
-    let X = -1, L = null, z = null;
+    let X = -1, L = null, R = null;
     const Y = (b) => {
       p.value = b, i.value = F.value ? null : b;
     }, W = () => {
@@ -1677,7 +1677,7 @@ const Vo = { class: "modalHeader" }, jo = {
     }), j(v, () => {
       v.value || (s.value = !1);
     }), j(h, (b) => {
-      z && (z.disconnect(), z = null), b && typeof ResizeObserver != "undefined" && (z = new ResizeObserver(() => U()), z.observe(b)), U();
+      R && (R.disconnect(), R = null), b && typeof ResizeObserver != "undefined" && (R = new ResizeObserver(() => U()), R.observe(b)), U();
     }), j(
       () => o.value,
       (b) => {
@@ -1696,9 +1696,9 @@ const Vo = { class: "modalHeader" }, jo = {
       },
       { immediate: !0 }
     ), et(() => {
-      z && (z.disconnect(), z = null), L && (cancelAnimationFrame(L), L = null);
+      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, ze = we("save-outlined"), gt = we("arrow-left-outlined"), yt = we("arrow-right-outlined"), Ct = _;
+      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 = _;
       return E(), ne(Ct, Ot({
         open: O.value,
         "body-style": G.value,
@@ -1753,7 +1753,7 @@ const Vo = { class: "modalHeader" }, jo = {
               onClick: se
             }, {
               default: k(() => [
-                a(ze),
+                a(Re),
                 ue(" " + ae(b.$l(e.saveBtnText)), 1)
               ]),
               _: 1
@@ -1801,7 +1801,7 @@ const Vo = { class: "modalHeader" }, jo = {
               onClick: se
             }, {
               default: k(() => [
-                a(ze),
+                a(Re),
                 ue(" " + ae(b.$l(e.saveBtnText)), 1)
               ]),
               _: 1
@@ -1830,7 +1830,7 @@ const Vo = { class: "modalHeader" }, jo = {
                     default: k(() => [
                       (E(!0), le(Me, null, ke(e.tabs, (oe) => (E(), ne(K, {
                         tab: oe[e.tabKey.label],
-                        key: oe[R.value]
+                        key: oe[z.value]
                       }, null, 8, ["tab"]))), 128))
                     ]),
                     _: 1

+ 18 - 18
lib/js/SOfficeSelect.js

@@ -14,12 +14,12 @@ 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 G, renderList as J, createCommentVNode as he } from "vue";
-import { aq as _e, B as pe, d0 as me, ct as fe, cu as ge, d1 as we, d2 as Ce, d3 as ye, d4 as ke, d5 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" }, qe = {
+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 = {
   key: 0,
   class: "not-more"
-}, ze = { class: "item right-wrap" }, Ge = { class: "head" }, Je = { class: "sub-title" }, Re = { class: "icon s-theme-icon-bg" }, xe = { class: "cont" }, He = { class: "name" }, Ke = { class: "job" }, Pe = ["onClick"], Ze = {
+}, 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 = {
   __name: "SOfficeSelect",
   props: {
     value: {
@@ -63,9 +63,9 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
       },
       { immediate: !0 }
     );
-    const q = () => {
+    const z = () => {
       c.value = !0;
-    }, R = () => {
+    }, q = () => {
       c.value = !1;
     }, y = (e = 1, l = 0) => U(this, null, function* () {
       if (u.value) {
@@ -151,8 +151,8 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
           "onUpdate:value": l[0] || (l[0] = (a) => m.value = a),
           readonly: !0,
           placeholder: $.placeholder,
-          onClick: q,
-          onSearch: q
+          onClick: z,
+          onSearch: z
         }, null, 8, ["value", "placeholder"]),
         d(de, {
           value: c.value,
@@ -164,7 +164,7 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
           footer: h(() => [
             d(r, {
               key: "back",
-              onClick: R
+              onClick: q
             }, {
               default: h(() => [
                 I(i(e.$l("取消")), 1)
@@ -250,10 +250,10 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
                       class: "user-list",
                       onScroll: te
                     }, [
-                      (k(!0), S(G, null, J(f.value, (a) => (k(), S("div", {
+                      (k(!0), S(J, null, R(f.value, (a) => (k(), S("div", {
                         class: "item",
                         key: a.id,
-                        onClick: (z) => ee(a)
+                        onClick: (G) => ee(a)
                       }, [
                         t("div", De, i(a.name && a.name.slice(0, 1)), 1),
                         t("div", Ee, [
@@ -261,12 +261,12 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
                           t("div", Me, i(a.deptName), 1)
                         ])
                       ], 8, Ie))), 128)),
-                      C.value >= L.value ? (k(), S("div", qe, i(e.$l("没有更多了")), 1)) : he("", !0)
+                      C.value >= L.value ? (k(), S("div", ze, i(e.$l("没有更多了")), 1)) : he("", !0)
                     ], 32)
                   ]),
-                  t("div", ze, [
-                    t("div", Ge, [
-                      t("div", Je, i(e.$l("本次已选")), 1),
+                  t("div", Ge, [
+                    t("div", Je, [
+                      t("div", Re, i(e.$l("本次已选")), 1),
                       d(r, {
                         type: "link",
                         onClick: X
@@ -281,18 +281,18 @@ const $e = { class: "s-office-select-common" }, be = { class: "modal-container"
                       class: "user-list select-list",
                       onScroll: ne
                     }, [
-                      (k(!0), S(G, null, J(v.value, (a, z) => (k(), S("div", {
+                      (k(!0), S(J, null, R(v.value, (a, G) => (k(), S("div", {
                         class: "item",
                         key: a.id
                       }, [
-                        t("div", Re, i(a.name && a.name.slice(0, 1)), 1),
+                        t("div", qe, i(a.name && a.name.slice(0, 1)), 1),
                         t("div", xe, [
                           t("div", He, i(a.name) + " (" + i(a.nameOrCount) + ")", 1),
                           t("div", Ke, i(a.deptName), 1)
                         ]),
                         t("div", {
                           class: "icon no-bg",
-                          onClick: (Qe) => le(a, z)
+                          onClick: (Qe) => le(a, G)
                         }, [
                           d(ce)
                         ], 8, Pe)

+ 49 - 43
lib/js/SSideMenu.js

@@ -1,39 +1,45 @@
-import { ref as R, computed as i, reactive as T, watch as K, onMounted as U, resolveComponent as _, openBlock as u, createElementBlock as B, createElementVNode as w, createVNode as v, withCtx as D, createBlock as g } from "vue";
-import { useRouter as L } from "vue-router";
-import { n as V, ad as $, cQ as A, ct as I } from "./index2.js";
-const N = { class: "s-menu-slide-common" }, j = { class: "menu-wrap" }, H = {
+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 = {
   __name: "SSideMenu",
   emits: ["collapsed"],
-  setup(Q, { emit: k }) {
-    const a = L(), b = k, p = $(), m = R(""), M = i(() => {
+  setup(z, { 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 } };
-    }), n = T({
+    }), n = A({
       collapsed: !1,
       selectedKeys: [],
       openKeys: [],
       preOpenKeys: []
     });
-    K(
+    w(
       () => n.openKeys,
       (e, t) => {
         n.preOpenKeys = t;
       }
     );
-    const O = (e, t) => t ? t.startsWith("/") ? t : e ? `${e.replace(/\/+$/, "")}/${t}` : `/${t}` : e || "", y = (e, t, l = 0, o = "") => e.map((s) => {
-      var h;
-      const c = window.$l(((h = s.meta) == null ? void 0 : h.title) || s.name || ""), r = l === 0 && !s.children, d = O(o, s.path), f = {
-        key: d,
-        // icon: item.icon ? () => h(item.icon) : null,
-        icon: null,
+    const M = (e, t) => t ? t.startsWith("/") ? t : e ? `${e.replace(/\/+$/, "")}/${t}` : `/${t}` : e || "", S = /(Outlined|Filled|TwoTone)$/, T = (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;
+      const l = S.test(t) ? t : t + "Outlined", o = u(l);
+      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, _ = {
+        key: a,
+        icon: B,
+        // icon: null,
         label: t && r ? c.slice(0, 1) : c,
         // title: name,
-        path: d
+        path: a
       };
-      return s.children && (f.children = y(s.children, t, l + 1, d)), f;
-    }), C = i(() => {
+      return s.children && (_.children = h(s.children, t, l + 1, a)), _;
+    }), E = d(() => {
       var l;
-      const e = ((l = p.dynamics[0]) == null ? void 0 : l.children) || [], t = (window.$staticRoutes || []).filter(
+      const e = ((l = y.dynamics[0]) == null ? void 0 : l.children) || [], t = (window.$staticRoutes || []).filter(
         (o) => {
           var s, c;
           return o && o.path && ((s = o.meta) == null ? void 0 : s.title) && !((c = o.meta) != null && c.hidden);
@@ -43,65 +49,65 @@ const N = { class: "s-menu-slide-common" }, j = { class: "menu-wrap" }, H = {
         var s;
         return !((s = o.meta) != null && s.hidden);
       });
-    }), E = i(() => y(C.value, n.collapsed)), S = () => {
+    }), R = d(() => h(E.value, n.collapsed)), x = () => {
       n.collapsed = !n.collapsed, n.openKeys = n.collapsed ? [] : n.preOpenKeys, b("collapsed", n.collapsed);
-    }, x = (e) => {
-      a.push(e.key), n.selectedKeys = [e.key], window.$utils.ls.set("selectedKeys", n.selectedKeys);
     }, P = (e) => {
-      n.openKeys = e, $().setMenuOpenKeys(n.openKeys);
+      i.push(e.key), n.selectedKeys = [e.key], window.$utils.ls.set("selectedKeys", n.selectedKeys);
+    }, U = (e) => {
+      n.openKeys = e, O().setMenuOpenKeys(n.openKeys);
     };
-    return U(() => {
+    return D(() => {
       var o;
-      m.value = window.$utils.env.VITE_APP_MENU_THEME || "light";
+      f.value = window.$utils.env.VITE_APP_MENU_THEME || "light";
       const e = (window.$utils.env.VITE_APP_BASE_URL || "/").replace(/\/+$/, "");
-      let t = ((o = a.currentRoute.value) == null ? void 0 : o.path) || "";
+      let t = ((o = i.currentRoute.value) == null ? void 0 : o.path) || "";
       t || (t = location.pathname, e && t.indexOf(e) === 0 && (t = t.slice(e.length) || "/")), window.$utils.ls.set("selectedKeys", [t]), n.selectedKeys = window.$utils.ls.get("selectedKeys") || [];
-      const l = p.openKeys || [];
+      const l = y.openKeys || [];
       n.openKeys = l;
-    }), K(
+    }), w(
       () => {
         var e;
-        return (e = a.currentRoute.value) == null ? void 0 : e.path;
+        return (e = i.currentRoute.value) == null ? void 0 : e.path;
       },
       (e) => {
         e && (n.selectedKeys = [e], window.$utils.ls.set("selectedKeys", n.selectedKeys));
       }
     ), (e, t) => {
-      const l = I, o = A, s = _("DoubleRightOutlined"), c = _("DoubleLeftOutlined");
-      return u(), B("div", N, [
-        w("div", j, [
-          v(o, { theme: M.value }, {
-            default: D(() => [
-              v(l, {
+      const l = Q, o = H, s = u("DoubleRightOutlined"), c = u("DoubleLeftOutlined");
+      return p(), L("div", W, [
+        v("div", X, [
+          g(o, { theme: C.value }, {
+            default: N(() => [
+              g(l, {
                 openKeys: n.openKeys,
                 "onUpdate:openKeys": t[0] || (t[0] = (r) => n.openKeys = r),
                 selectedKeys: n.selectedKeys,
                 "onUpdate:selectedKeys": t[1] || (t[1] = (r) => n.selectedKeys = r),
                 mode: "inline",
-                items: E.value,
-                theme: m.value,
-                onSelect: x,
-                onOpenChange: P
+                items: R.value,
+                theme: f.value,
+                onSelect: P,
+                onOpenChange: U
               }, null, 8, ["openKeys", "selectedKeys", "items", "theme"])
             ]),
             _: 1
           }, 8, ["theme"])
         ]),
-        w("div", {
+        v("div", {
           class: "right-border-btn",
           style: {
             backgroundColor: "var(--s-menu-bg, #ebf7fe)",
             color: "var(--s-menu-text, #344051)",
             border: "1px solid var(--s-menu-bg, #ebf7fe)"
           },
-          onClick: S
+          onClick: x
         }, [
-          n.collapsed ? (u(), g(s, { key: 0 })) : (u(), g(c, { key: 1 }))
+          n.collapsed ? (p(), $(s, { key: 0 })) : (p(), $(c, { key: 1 }))
         ])
       ]);
     };
   }
-}, F = /* @__PURE__ */ V(H, [["__scopeId", "data-v-2ec64017"]]);
+}, Z = /* @__PURE__ */ j(q, [["__scopeId", "data-v-e3383016"]]);
 export {
-  F as default
+  Z as default
 };

+ 163 - 103
lib/js/STab.js

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

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
lib/js/SToggleLanguage.js


+ 18 - 18
lib/js/SUserSelect.js

@@ -1,4 +1,4 @@
-var R = (S, F, w) => new Promise((I, m) => {
+var j = (S, F, w) => new Promise((I, m) => {
   var M = (h) => {
     try {
       g(w.next(h));
@@ -14,12 +14,12 @@ var R = (S, F, w) => new Promise((I, m) => {
   }, g = (h) => h.done ? I(h.value) : Promise.resolve(h.value).then(M, T);
   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 j, renderList as ae } from "vue";
-import { aq as Se, B as we, db as se, d1 as $e, d2 as be, dc 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" }, qe = {
+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 = {
   key: 0,
   class: "right"
-}, Re = ["onClick"], je = { class: "icon s-theme-icon-bg" }, Fe = ["src", "onError"], Me = { class: "cont" }, Pe = { class: "name" }, xe = { class: "job" }, ze = {
+}, je = ["onClick"], qe = { class: "icon s-theme-icon-bg" }, Fe = ["src", "onError"], Me = { class: "cont" }, Pe = { class: "name" }, xe = { class: "job" }, ze = {
   key: 0,
   class: "not-more"
 }, Je = { class: "item right-wrap" }, De = { class: "head" }, Ke = { class: "sub-title" }, Ge = { class: "icon s-theme-icon-bg" }, He = ["src", "onError"], Qe = { class: "cont" }, We = { class: "name" }, Xe = { class: "job" }, Ye = ["onClick"], tl = {
@@ -77,7 +77,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       X();
     }, ne = () => {
       E.value = !1, W(m.value), B();
-    }, N = (e = 1, l = 0) => R(this, null, function* () {
+    }, N = (e = 1, l = 0) => j(this, null, function* () {
       if (p.value) {
         p.value = !1;
         return;
@@ -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 = () => R(this, null, function* () {
+    }, B = () => j(this, null, function* () {
       if (!n.value.length) {
         g.value = "", c.value = [];
         return;
@@ -130,7 +130,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       var o;
       const a = Array.isArray(e) ? e : e ? [e] : [];
       a.length && (U.value = ((o = l == null ? void 0 : l.node) == null ? void 0 : o.dataRef) || (l == null ? void 0 : l.node) || {}, D.value = a, k.value = 1, A.value = 0, C.value = [], x());
-    }, x = () => R(this, null, function* () {
+    }, x = () => j(this, null, function* () {
       const e = ++G, l = U.value || {}, a = `${(D.value || [])[0]}_${k.value}_${y.value}`;
       if (a === H && p.value) return;
       H = a;
@@ -147,7 +147,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       const _ = yield Ee(o);
       if (e !== G) return;
       const r = C.value.concat(_.list || []);
-      C.value = [...new Map(r.map((q) => [q.id, q])).values()], A.value = _.pages, V = setTimeout(() => {
+      C.value = [...new Map(r.map((R) => [R.id, R])).values()], A.value = _.pages, V = setTimeout(() => {
         p.value = !1, clearTimeout(V);
       }, 200);
     }), he = (e) => {
@@ -164,7 +164,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
       p.value || e + a >= l - 20 && (P.value = O.value, O.value++, N(O.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"), q = J("s-modal");
+      const a = Se, o = we, _ = J("s-tree"), r = J("CloseCircleOutlined"), R = J("s-modal");
       return d(), v("div", Ae, [
         f(a, {
           value: g.value,
@@ -174,7 +174,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
           onClick: Y,
           onSearch: Y
         }, null, 8, ["value", "placeholder"]),
-        f(q, {
+        f(R, {
           value: E.value,
           "onUpdate:value": l[3] || (l[3] = (t) => E.value = t),
           title: S.title,
@@ -229,7 +229,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                   s("div", Ve, [
                     s("div", Oe, [
                       s("div", Be, i(U.value.title || U.value.name), 1),
-                      S.multiple ? (d(), v("div", qe, [
+                      S.multiple ? (d(), v("div", Re, [
                         f(o, {
                           type: "link",
                           onClick: ce
@@ -245,19 +245,19 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                       class: "user-list",
                       onScroll: _e
                     }, [
-                      (d(!0), v(j, null, ae(C.value, (t) => (d(), v("div", {
+                      (d(!0), v(q, null, ae(C.value, (t) => (d(), v("div", {
                         class: "item",
                         key: t.id,
                         onClick: (z) => he(t)
                       }, [
-                        s("div", je, [
+                        s("div", qe, [
                           t.avatar || t.cover ? (d(), v("img", {
                             key: 0,
                             class: "avatar-img",
                             src: T(t.avatar || t.cover),
                             alt: "",
                             onError: (z) => t.cover = ""
-                          }, null, 40, Fe)) : (d(), v(j, { key: 1 }, [
+                          }, null, 40, Fe)) : (d(), v(q, { key: 1 }, [
                             b(i(t.name && t.name.slice(0, 1)), 1)
                           ], 64))
                         ]),
@@ -265,7 +265,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                           s("div", Pe, i(t.name + (t.userid || t.loginName ? "(" + (t.userid || t.loginName) + ")" : "")), 1),
                           s("div", xe, i(t.mainJobName), 1)
                         ])
-                      ], 8, Re))), 128)),
+                      ], 8, je))), 128)),
                       k.value >= A.value ? (d(), v("div", ze, i(e.$l("没有更多了")), 1)) : te("", !0)
                     ], 32)
                   ]),
@@ -286,7 +286,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                       class: "user-list select-list",
                       onScroll: fe
                     }, [
-                      (d(!0), v(j, null, ae(c.value, (t, z) => (d(), v("div", {
+                      (d(!0), v(q, null, ae(c.value, (t, z) => (d(), v("div", {
                         class: "item",
                         key: t.id
                       }, [
@@ -297,7 +297,7 @@ const Ae = { class: "s-office-select-common" }, Le = { class: "modal-container"
                             src: T(t.avatar || t.cover),
                             alt: "",
                             onError: (ye) => t.cover = ""
-                          }, null, 40, He)) : (d(), v(j, { key: 1 }, [
+                          }, null, 40, He)) : (d(), v(q, { key: 1 }, [
                             b(i(t.name && t.name.slice(0, 1)), 1)
                           ], 64))
                         ]),

+ 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, d8 as ee, B as ne } from "./index2.js";
+import { n as Z, d9 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, d9 as X, da as Y, a6 as Z, a7 as ee, B as le } from "./index2.js";
+import { n as W, da as X, db 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 k(l) {
+    function b(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 = k(e.filterType), e.value = e.filterType === "MULTIPLE_SELECT" ? [] : "";
+      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" ? [] : "";
     }
     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 || k(e.filterType),
+        equals: e.equals || b(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, b = ee, E = Z, G = S("MinusCircleOutlined"), H = te, J = S("PlusOutlined"), m = le, K = ne;
+      const s = Y, c = X, p = ae, k = 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(), $(b, {
+                            (f(!0), y(g, null, q(C.value, (t) => (f(), $(k, {
                               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(), $(b, {
+                            (f(!0), y(g, null, q(L(n), (t) => (f(), $(k, {
                               key: t.id,
                               value: t.id
                             }, {

+ 1 - 1
lib/js/account.js

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

+ 44 - 44
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, B = (m, e) => {
+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) => {
   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 ($) {
       _($);
     }
-  }, j = (g) => {
+  }, Z = (g) => {
     try {
       d(c.throw(g));
     } catch ($) {
       _($);
     }
-  }, d = (g) => g.done ? f(g.value) : Promise.resolve(g.value).then(U, j);
+  }, d = (g) => g.done ? f(g.value) : Promise.resolve(g.value).then(U, Z);
   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 Z, withDirectives as Ue, vShow as Te, normalizeClass as Y, unref as Ee, nextTick as qe } from "vue";
-import { useRouter as ze } from "vue-router";
-import { n as Le, I as Me, B as De, di as Oe, dq as Be } from "./index2.js";
-import { e as Ze, f as je, h as Ge, i as He } from "./account.js";
+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 { 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 { s as Je } from "./success-qrcode.js";
 import { C as Ke } from "./index18.js";
 import { _ as Qe, S as We } from "./index11.js";
@@ -47,13 +47,13 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
 }, Aa = {
   key: 2,
   class: "form-wrap"
-}, Ra = { class: "page-title" }, Ua = { class: "page-desc" }, Ta = { class: "pwd-strength-bar" }, Ea = { class: "pwd-rule-tips" }, qa = { class: "btn-group" }, za = {
+}, 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"
-}, La = { class: "success-icon" }, Ma = ["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" }, {
+}, 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" }, {
   __name: "activate",
   setup(m) {
-    const e = (a) => window.$l ? window.$l(a) : a, c = ze(), f = n(0), _ = n(!1), U = n(""), j = n(null), d = X({
+    const e = (a) => window.$l ? window.$l(a) : a, c = Le(), f = n(0), _ = n(!1), U = n(""), Z = n(null), d = X({
       no: "",
       name: "",
       certNo: "",
@@ -63,11 +63,11 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
       name: [{ required: !0, message: e("请输入姓名") }],
       certNo: [{ required: !0, message: e("请输入证件号后6位") }],
       verificationCode: [{ required: !0, message: e("请输入验证码") }]
-    }, $ = n(null), G = n(""), T = n(""), ee = n(null), L = X({
+    }, $ = n(null), G = n(""), T = n(""), ee = n(null), M = X({
       code: ""
     }), ce = {
       code: [{ required: !0, message: e("请输入4位验证码") }]
-    }, r = n(""), M = n(""), S = n(""), A = n(e("获取验证码")), D = n(Date.now() + 60 * 1e3), w = n(!1), b = n(null), ae = n(null), y = X({
+    }, r = n(""), q = n(""), S = n(""), A = n(e("获取验证码")), D = n(Date.now() + 60 * 1e3), w = n(!1), b = n(null), ae = n(null), y = X({
       password: "",
       confirmPassword: ""
     });
@@ -92,7 +92,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
         { required: !0, message: e("请再次输入密码") },
         { validator: de }
       ]
-    }, E = n(""), k = n(0), q = n(""), z = n(""), I = n(""), N = n(""), O = n(""), te = n(""), le = n(""), H = n(U), pe = {
+    }, E = n(""), k = n(0), z = n(""), L = n(""), I = n(""), N = n(""), O = n(""), te = n(""), le = n(""), H = n(U), pe = {
       1: "var(--s-color-success)",
       2: "var(--s-color-warning)",
       3: "var(--s-color-error)"
@@ -114,17 +114,17 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
     }
     function fe() {
       return W(this, null, function* () {
-        const a = B({}, d);
+        const a = j({}, d);
         _.value = !0;
         try {
-          const t = yield Ze(
+          const t = yield Be(
             a.no,
             a.name,
             a.certNo,
             a.verificationCode,
             G.value
           );
-          r.value = t.verifyType || "", S.value = t.realValue || "", T.value = t.userId || "", E.value = t.no || "", r.value === "telphone" ? M.value = ne(S.value) : r.value === "email" ? M.value = ie(S.value) : M.value = "", f.value = 1;
+          r.value = t.verifyType || "", S.value = t.realValue || "", T.value = t.userId || "", E.value = t.no || "", r.value === "telphone" ? q.value = ne(S.value) : r.value === "email" ? q.value = ie(S.value) : q.value = "", f.value = 1;
         } catch (t) {
           K();
         } finally {
@@ -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 = B({}, L);
-      return _.value = !0, je(a.code, T.value).then(() => {
+      const a = j({}, M);
+      return _.value = !0, Ze(a.code, T.value).then(() => {
         f.value = 2;
       }).catch(() => {
       }).finally(() => {
@@ -196,7 +196,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
       /[a-z]/.test(a) && t++, /[A-Z]/.test(a) && t++, /\d/.test(a) && t++, /[!@#$%^&*()_+\-=\[\]{};:\\|,.<>\/?!¥()【】;:,。、?“”‘’]/.test(a) && t++, t <= 1 ? k.value = 1 : t <= 3 ? k.value = 2 : k.value = 3;
     }
     function be() {
-      qe(() => {
+      ze(() => {
         const a = y.confirmPassword || "", t = y.password || "";
         if (!a) {
           I.value = "", N.value = "";
@@ -207,15 +207,15 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
     }
     function ye({ errorFields: a = [] }) {
       const t = a.find((v) => v.name && v.name[0] === "password"), u = a.find((v) => v.name && v.name[0] === "confirmPassword");
-      t ? (q.value = "error", z.value = t.errors[0]) : (q.value = "", z.value = ""), u ? (I.value = "error", N.value = u.errors[0]) : (I.value = "", N.value = "");
+      t ? (z.value = "error", L.value = t.errors[0]) : (z.value = "", L.value = ""), u ? (I.value = "error", N.value = u.errors[0]) : (I.value = "", N.value = "");
     }
     function ke() {
       var a;
-      (a = ae.value) == null || a.resetFields(), f.value = 1, k.value = 0, q.value = "", z.value = "", I.value = "", N.value = "", w.value = !1, A.value = e("获取验证码"), D.value = Date.now() + 60 * 1e3, b.value && (clearInterval(b.value), b.value = null);
+      (a = ae.value) == null || a.resetFields(), f.value = 1, k.value = 0, z.value = "", L.value = "", I.value = "", N.value = "", w.value = !1, A.value = e("获取验证码"), D.value = Date.now() + 60 * 1e3, b.value && (clearInterval(b.value), b.value = null);
     }
     function Ce() {
-      q.value = "success", z.value = "", I.value = "success", N.value = "", _.value = !0;
-      const t = B({}, y).password;
+      z.value = "success", L.value = "", I.value = "success", N.value = "", _.value = !0;
+      const t = j({}, 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 Be();
+        const a = yield je();
         H.value = a.indexPageLogoUrl || U;
       });
     }
@@ -250,7 +250,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
         H.value = U;
       });
     }), (a, t) => {
-      const u = We, v = Qe, F = Me, h = Ye, Pe = aa, $e = ea, C = De, Q = Xe, Se = ta, Ie = Ke;
+      const u = We, v = Qe, F = qe, h = Ye, Pe = aa, $e = ea, C = De, Q = Xe, Se = ta, Ie = Ke;
       return x(), P("div", la, [
         l("div", sa, [
           l("div", oa, [
@@ -295,7 +295,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                 ]),
                 s(Q, {
                   ref_key: "formRef0",
-                  ref: j,
+                  ref: Z,
                   class: "activate-form",
                   model: d,
                   rules: g,
@@ -428,13 +428,13 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                 r.value ? (x(), P("div", Ca, [
                   l("div", xa, [
                     l("span", Pa, o(r.value === "telphone" ? e("预留手机号") : e("预留邮箱")), 1),
-                    l("span", $a, o(M.value), 1)
+                    l("span", $a, o(q.value), 1)
                   ]),
                   s(Q, {
                     ref_key: "formRef1",
                     ref: ee,
                     class: "activate-form",
-                    model: L,
+                    model: M,
                     rules: ce,
                     onFinish: he
                   }, {
@@ -449,15 +449,15 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                         default: i(() => [
                           l("div", Sa, [
                             s(F, {
-                              value: L.code,
-                              "onUpdate:value": t[4] || (t[4] = (p) => L.code = p),
+                              value: M.code,
+                              "onUpdate:value": t[4] || (t[4] = (p) => M.code = p),
                               style: { width: "200px" },
                               placeholder: e("4 位数字")
                             }, null, 8, ["value", "placeholder"]),
                             s(C, {
                               disabled: w.value,
                               type: "link",
-                              style: Z({ color: w.value ? "var(--s-text-color-disabled)" : "var(--s-color)" }),
+                              style: B({ color: w.value ? "var(--s-text-color-disabled)" : "var(--s-color)" }),
                               class: "phone-verify-button",
                               onClick: _e
                             }, {
@@ -543,8 +543,8 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                       name: "password",
                       "label-col": { span: 8 },
                       "wrapper-col": { span: 16 },
-                      "validate-status": q.value,
-                      help: z.value
+                      "validate-status": z.value,
+                      help: L.value
                     }, {
                       default: i(() => [
                         s(F, {
@@ -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: Z(J(1))
+                            style: B(J(1))
                           }, null, 6),
                           l("div", {
                             class: Y(["strength-item", { active: k.value >= 2 }]),
-                            style: Z(J(2))
+                            style: B(J(2))
                           }, null, 6),
                           l("div", {
                             class: Y(["strength-item", { active: k.value >= 3 }]),
-                            style: Z(J(3))
+                            style: B(J(3))
                           }, null, 6)
                         ]),
                         l("div", Ea, [
@@ -599,7 +599,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                       "wrapper-col": { span: 24 }
                     }, {
                       default: i(() => [
-                        l("div", qa, [
+                        l("div", za, [
                           s(C, { onClick: ke }, {
                             default: i(() => [
                               V(o(e("上一步")), 1)
@@ -624,19 +624,19 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
                   _: 1
                 }, 8, ["model"])
               ])) : R("", !0),
-              f.value === 3 ? (x(), P("div", za, [
-                l("div", La, [
+              f.value === 3 ? (x(), P("div", La, [
+                l("div", Ma, [
                   l("img", {
                     style: { width: "60px" },
                     src: Ee(Je),
                     alt: e("成功")
-                  }, null, 8, Ma)
+                  }, null, 8, qa)
                 ]),
                 l("h2", Da, o(e("账号激活成功")), 1),
                 l("p", Oa, o(e("您的账号已成功激活,今后请使用账号 + 新密码登录统一信息平台。")), 1),
-                l("div", Ba, [
-                  l("div", Za, [
-                    l("span", ja, o(e("账号")), 1),
+                l("div", ja, [
+                  l("div", Ba, [
+                    l("span", Za, o(e("账号")), 1),
                     l("span", Ga, o(E.value), 1)
                   ]),
                   l("div", Ha, [
@@ -668,7 +668,7 @@ const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "
       ]);
     };
   }
-}), pt = /* @__PURE__ */ Le(at, [["__scopeId", "data-v-135ab6bd"]]);
+}), pt = /* @__PURE__ */ Me(at, [["__scopeId", "data-v-135ab6bd"]]);
 export {
   pt as default
 };

Різницю між файлами не показано, бо вона завелика
+ 16 - 16
lib/js/components-doc.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
lib/js/docs.js


+ 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 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 { 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 { 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, dp as W1 } from "./index2.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 { C as U1 } from "./index18.js";
-import { T as G1, P as q1, a as X1 } from "./index16.js";
+import { T as q1, P as G1, 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 = 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 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 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 = 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;
+      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;
       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(G, {
+                r.value === 1 ? (w(), S(q, {
                   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(G, {
+                r.value === 2 ? (w(), S(q, {
                   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(G, {
+                r.value === 3 ? (w(), S(q, {
                   key: 3,
                   class: "forgot-form",
                   model: m,

+ 19 - 0
lib/js/icon-groups.js

@@ -0,0 +1,19 @@
+import { aq as o } from "./index2.js";
+const i = [
+  { value: "all", label: "全部", suffix: "" },
+  { value: "outlined", label: "线框", suffix: "Outlined" },
+  { value: "filled", label: "实底", suffix: "Filled" },
+  { value: "twoTone", label: "双色", suffix: "TwoTone" }
+], t = Object.keys(o).filter(
+  (e) => i.some((l) => l.suffix && e.endsWith(l.suffix))
+), a = i.reduce((e, l) => (e[l.value] = l.suffix ? t.filter((s) => s.endsWith(l.suffix)) : t, e), {}), u = (e) => a[e] || t, r = (e, l) => {
+  const s = u(e), n = String(l || "").trim().toLowerCase();
+  return n ? s.filter((f) => f.toLowerCase().includes(n)) : s;
+}, d = () => i.map((e) => ({
+  value: e.value,
+  label: window.$l ? window.$l(e.label) : e.label
+}));
+export {
+  r as f,
+  d as g
+};

+ 15 - 15
lib/js/index15.js

@@ -1,7 +1,7 @@
-import { g as j, m as M, d as p, r as O, u as A, _ as y, i as N, bc as U, dG as $, f as B, bb as P, be 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 G } from "vue";
-import { S as Y } from "./index18.js";
-const z = (t) => {
+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 { 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 {
     value: n,
     formatter: e,
@@ -35,8 +35,8 @@ const z = (t) => {
     class: `${c}-content-value`
   }, [r]);
 };
-z.displayName = "StatisticNumber";
-const q = (t) => {
+H.displayName = "StatisticNumber";
+const G = (t) => {
   const {
     componentCls: n,
     marginXXS: e,
@@ -87,8 +87,8 @@ const q = (t) => {
     statisticContentFontSize: n,
     statisticFontFamily: a
   });
-  return [q(s)];
-}), E = () => ({
+  return [G(s)];
+}), z = () => ({
   prefixCls: String,
   decimalSeparator: String,
   groupSeparator: String,
@@ -111,7 +111,7 @@ const q = (t) => {
   },
   name: "AStatistic",
   inheritAttrs: !1,
-  props: N(E(), {
+  props: N(z(), {
     decimalSeparator: ".",
     groupSeparator: ",",
     loading: !1
@@ -129,15 +129,15 @@ const q = (t) => {
     return () => {
       var i, f, d, o, l, g, S;
       const {
-        value: H = 0,
+        value: E = 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(z, y({
+      let C = m(H, y({
         "data-for-update": Date.now()
       }, p(p({}, t), {
         prefixCls: x,
-        value: H,
+        value: E,
         formatter: k
       })), null);
       return T && (C = T(C)), c(m("div", y(y({}, a), {}, {
@@ -146,7 +146,7 @@ const q = (t) => {
         }, a.class, r.value]
       }), [b && m("div", {
         class: `${x}-title`
-      }, [b]), m(Y, {
+      }, [b]), m(q, {
         paragraph: !1,
         loading: t.loading
       }, {
@@ -200,7 +200,7 @@ const Z = 1e3 / 30;
 function w(t) {
   return new Date(t).getTime();
 }
-const tt = () => p(p({}, E()), {
+const tt = () => p(p({}, z()), {
   value: _([Number, String, Object]),
   format: String,
   onFinish: Function,
@@ -251,7 +251,7 @@ const tt = () => p(p({}, E()), {
       c();
     }), X(() => {
       c();
-    }), G(() => {
+    }), Y(() => {
       i();
     }), () => {
       const o = t.value;

+ 39 - 39
lib/js/index16.js

@@ -1,4 +1,4 @@
-import { d as s, _ as B, K as V, ds as ze, dt as Se, bL as Me, g as Ke, c as Te, aj as We, du as Ue, dv as Fe, u as we, w as ae, bf as X, L as Ve, c$ as se, dw as Xe, o as W, R as qe, y as ce, dx as Ee, dy as Ge, cm as Je, dz as Qe, dA as Ye } from "./index2.js";
+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 { 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 = {};
@@ -67,10 +67,10 @@ const rt = {
       var v;
       const {
         noStyle: S,
-        disabled: $
+        disabled: I
       } = e, N = lt(e, ["noStyle", "disabled"]);
-      let I = {};
-      return S || (I = s({}, rt)), $ && (I.pointerEvents = "none"), f("div", B(B(B({
+      let $ = {};
+      return S || ($ = s({}, rt)), I && ($.pointerEvents = "none"), f("div", D(D(D({
         role: "button",
         tabindex: 0,
         ref: a
@@ -78,7 +78,7 @@ const rt = {
         onClick: C,
         onKeydown: l,
         onKeyup: m,
-        style: s(s({}, I), i.style || {})
+        style: s(s({}, $), i.style || {})
       }), [(v = o.default) === null || v === void 0 ? void 0 : v.call(o)]);
     };
   }
@@ -422,13 +422,13 @@ const rt = {
       } = g;
       a.lastKeyCode === u && !a.inComposition && !h && !b && !O && !H && (u === V.ENTER ? (N(), o("end")) : u === V.ESC && (a.current = e.originContent, o("cancel")));
     }
-    function $() {
+    function I() {
       N();
     }
     function N() {
       o("save", a.current.trim());
     }
-    const [I, R] = ke(d);
+    const [$, R] = ke(d);
     return () => {
       const g = Te({
         [`${d.value}`]: !0,
@@ -436,7 +436,7 @@ const rt = {
         [`${d.value}-rtl`]: e.direction === "rtl",
         [e.component ? `${d.value}-${e.component}` : ""]: !0
       }, i.class, R.value);
-      return I(f("div", B(B({}, i), {}, {
+      return $(f("div", D(D({}, i), {}, {
         class: g
       }), [f(We, {
         ref: m,
@@ -447,7 +447,7 @@ const rt = {
         onKeyup: S,
         onCompositionstart: y,
         onCompositionend: _,
-        onBlur: $,
+        onBlur: I,
         rows: 1,
         autoSize: e.autoSize === void 0 || e.autoSize
       }, null), t.enterIcon ? t.enterIcon({
@@ -514,14 +514,14 @@ const xt = (e, n, o, t, i) => {
   C.unmount();
   const S = [];
   w.innerHTML = "";
-  const $ = document.createElement("span");
-  w.appendChild($);
+  const I = document.createElement("span");
+  w.appendChild(I);
   const N = document.createTextNode(i + a);
-  $.appendChild(N), v.forEach((u) => {
+  I.appendChild(N), v.forEach((u) => {
     w.appendChild(u);
   });
-  function I(u) {
-    $.insertBefore(u, N);
+  function $(u) {
+    I.insertBefore(u, N);
   }
   function R(u, h) {
     let b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, O = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : h.length, H = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
@@ -543,7 +543,7 @@ const xt = (e, n, o, t, i) => {
   function g(u) {
     if (u.nodeType === bt) {
       const b = u.textContent || "", O = document.createTextNode(b);
-      return I(O), R(O, b);
+      return $(O), R(O, b);
     }
     return {
       finished: !1,
@@ -594,7 +594,7 @@ const St = () => ({
         direction: _,
         component: v = "article"
       } = C, S = Ct(C, ["prefixCls", "direction", "component"]);
-      return a(f(v, B(B({}, S), {}, {
+      return a(f(v, D(D({}, S), {}, {
         class: Te(i.value, {
           [`${i.value}-rtl`]: d.value === "rtl"
         }, t.class, l.value)
@@ -784,7 +784,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
     function S(r) {
       r.preventDefault(), l.originContent = e.content, b(!0);
     }
-    function $(r) {
+    function I(r) {
       N(r), b(!1);
     }
     function N(r) {
@@ -793,7 +793,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
       } = g.value;
       r !== e.content && (i("update:content", r), c == null || c(r));
     }
-    function I() {
+    function $() {
       var r, c;
       (c = (r = g.value).onCancel) === null || c === void 0 || c.call(r), b(!1);
     }
@@ -878,7 +878,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
         strong: z,
         keyboard: j
       } = r, F = c;
-      function D(ee, k) {
+      function B(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 D(z, "strong"), D(T, "u"), D(P, "del"), D(x, "code"), D(p, "mark"), D(j, "kbd"), F;
+      return B(z, "strong"), B(T, "u"), B(P, "del"), B(x, "code"), B(p, "mark"), B(j, "kbd"), F;
     }
     function L(r) {
       const {
@@ -949,7 +949,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
         })]
       });
     }
-    function $e() {
+    function Ie() {
       const {
         class: r,
         style: c
@@ -966,9 +966,9 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
         originContent: l.originContent,
         maxlength: p,
         autoSize: x,
-        onSave: $,
+        onSave: I,
         onChange: N,
-        onCancel: I,
+        onCancel: $,
         onEnd: T,
         direction: a.value,
         component: e.component
@@ -984,7 +984,7 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
       const {
         triggerType: c = ["icon"]
       } = g.value, p = e.ellipsis || e.editable ? e.content !== void 0 ? e.content : (r = o.default) === null || r === void 0 ? void 0 : r.call(o) : o.default ? o.default() : e.content;
-      return u.value ? $e() : f(Xe, {
+      return u.value ? Ie() : f(Xe, {
         componentName: "Text",
         children: (x) => {
           const T = s(s({}, e), t), {
@@ -992,18 +992,18 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
             disabled: z,
             content: j,
             class: F,
-            style: D
+            style: B
           } = T, ee = kt(T, ["type", "disabled", "content", "class", "style"]), {
             rows: k,
             suffix: te,
             tooltip: re
           } = y.value, {
-            edit: Ie,
+            edit: $e,
             copy: Pe,
-            copied: De,
-            expand: Be
+            copied: Be,
+            expand: De
           } = x;
-          l.editStr = Ie, l.copyStr = Pe, l.copiedStr = De, l.expandStr = Be;
+          l.editStr = $e, l.copyStr = Pe, l.copiedStr = Be, l.expandStr = De;
           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, B({
+            default: () => [f(E, D({
               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({}, D), {
+              style: s(s({}, B), {
                 WebkitLineClamp: ge ? k : void 0
               }),
               "aria-label": je,
@@ -1053,14 +1053,14 @@ const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () =>
     };
   }
 });
-var $t = function(e, n) {
+var It = 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++)
     n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
   return o;
 };
-const It = () => W(s(s({}, q()), {
+const $t = () => W(s(s({}, q()), {
   ellipsis: {
     type: Boolean,
     default: void 0
@@ -1073,7 +1073,7 @@ const It = () => W(s(s({}, q()), {
   const i = s(s({}, e), t), {
     ellipsis: d,
     rel: a
-  } = i, l = $t(i, ["ellipsis", "rel"]);
+  } = i, l = It(i, ["ellipsis", "rel"]);
   X(typeof d != "object", "Typography.Link", "`ellipsis` only supports boolean value.");
   const m = s(s({}, l), {
     rel: a === void 0 && l.target === "_blank" ? "noopener noreferrer" : a,
@@ -1084,7 +1084,7 @@ const It = () => W(s(s({}, q()), {
 };
 J.displayName = "ATypographyLink";
 J.inheritAttrs = !1;
-J.props = It();
+J.props = $t();
 const Pt = () => W(q(), ["component"]), Q = (e, n) => {
   let {
     slots: o,
@@ -1098,7 +1098,7 @@ const Pt = () => W(q(), ["component"]), Q = (e, n) => {
 Q.displayName = "ATypographyParagraph";
 Q.inheritAttrs = !1;
 Q.props = Pt();
-const Dt = () => s(s({}, W(q(), ["component"])), {
+const Bt = () => s(s({}, W(q(), ["component"])), {
   ellipsis: {
     type: [Boolean, Object],
     default: void 0
@@ -1120,8 +1120,8 @@ const Dt = () => s(s({}, W(q(), ["component"])), {
 };
 Y.displayName = "ATypographyText";
 Y.inheritAttrs = !1;
-Y.props = Dt();
-var Bt = function(e, n) {
+Y.props = Bt();
+var Dt = 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 = Bt(e, ["level"]);
+  } = e, d = Dt(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), {

+ 7 - 7
lib/js/index17.js

@@ -1,4 +1,4 @@
-import { g as j, m as F, d, r as k, b as X, u as R, bD as Y, _ as M, dB as q, c as J, b0 as K, bc as Q, P, b5 as N, dC as I } from "./index2.js";
+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 { u as tt } from "./useFlexGapSupport.js";
 const et = (t) => {
@@ -252,14 +252,14 @@ const C = L({
       const {
         wrap: $,
         direction: V = "horizontal"
-      } = t, A = (n = l.default) === null || n === void 0 ? void 0 : n.call(l), E = K(A), W = E.length;
-      if (W === 0)
+      } = t, A = (n = l.default) === null || n === void 0 ? void 0 : n.call(l), D = K(A), E = D.length;
+      if (E === 0)
         return null;
-      const y = (g = l.split) === null || g === void 0 ? void 0 : g.call(l), D = `${i.value}-item`, H = p.value, B = W - 1;
+      const y = (g = l.split) === null || g === void 0 ? void 0 : g.call(l), W = `${i.value}-item`, H = p.value, B = E - 1;
       return h("div", M(M({}, a), {}, {
         class: [u.value, a.class],
         style: [s.value, a.style]
-      }), [E.map((T, z) => {
+      }), [D.map((T, z) => {
         let G = A.indexOf(T);
         G === -1 && (G = `$$space-${z}`);
         let w = {};
@@ -272,10 +272,10 @@ const C = L({
         })), S(h(Z, {
           key: G
         }, [h("div", {
-          class: D,
+          class: W,
           style: w
         }, [T]), z < B && y && h("span", {
-          class: `${D}-split`,
+          class: `${W}-split`,
           style: w
         }, [y])]));
       })]);

+ 14 - 14
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, dD as E, bD as Ee, h as De, dE as Le, aT as Ge, dF as We, P as D, bI as U, dG as J } from "./index2.js";
+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 { defineComponent as y, createVNode as r, computed as G, isVNode as pe } from "vue";
 import { T as be } from "./index12.js";
 const _e = (e) => {
@@ -932,8 +932,8 @@ const {
   TabPane: ut
 } = be, gt = () => ({
   prefixCls: String,
-  title: D.any,
-  extra: D.any,
+  title: L.any,
+  extra: L.any,
   bordered: {
     type: Boolean,
     default: !0
@@ -960,18 +960,18 @@ const {
   size: {
     type: String
   },
-  actions: D.any,
+  actions: L.any,
   tabList: {
     type: Array
   },
-  tabBarExtraContent: D.any,
+  tabBarExtraContent: L.any,
   activeTabKey: String,
   defaultActiveTabKey: String,
-  cover: D.any,
+  cover: L.any,
   onTabChange: {
     type: Function
   }
-}), L = y({
+}), D = y({
   compatConfig: {
     MODE: 3
   },
@@ -1052,9 +1052,9 @@ const {
             tab: ue,
             slots: O
           } = z, ge = O == null ? void 0 : O.tab;
-          De(!O, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
+          Le(!O, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
           let V = ue !== void 0 ? ue : n[ge] ? n[ge](z) : null;
-          return V = Le(n, "customTab", z, () => [V]), r(ut, {
+          return V = De(n, "customTab", z, () => [V]), r(ut, {
             tab: V,
             key: z.key,
             disabled: z.disabled
@@ -1154,13 +1154,13 @@ const {
     };
   }
 });
-L.Meta = te;
-L.Grid = ne;
-L.install = function(e) {
-  return e.component(L.name, L), e.component(te.name, te), e.component(ne.name, ne), e;
+D.Meta = te;
+D.Grid = ne;
+D.install = function(e) {
+  return e.component(D.name, D), e.component(te.name, te), e.component(ne.name, ne), e;
 };
 export {
-  L as C,
+  D as C,
   $ as S,
   ne as _
 };

Різницю між файлами не показано, бо вона завелика
+ 278 - 207
lib/js/index2.js


+ 4 - 4
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, de as gw, bY as Bw, n as PA, df as ZB, dg as bB, dh as lB, di as GB, ad as dB, dj as ww, dk as aB, dl as Dw, I as uB, d8 as yB, B as XB, a6 as sw, a7 as ew, dm as mA, dn as Kg, dp as Cw, y as tw, dq as jB, ao as Mw } from "./index2.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 { 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";
@@ -6496,8 +6496,8 @@ const ys = /* @__PURE__ */ PA(bs, [["render", us], ["__scopeId", "data-v-f031e83
   },
   setup(M) {
     const n = M, A = (b) => window.$l ? window.$l(b) : b, D = Ww(), w = Hw(), z = [
-      { icon: "SafetyCertificateOutlined", text: "统一身份认证,一次登录全校通行" },
-      { icon: "AppstoreOutlined", text: "办事、资讯、应用一站聚合" },
+      { icon: "SafetyOutlined", text: "统一身份认证,一次登录全校通行" },
+      { icon: "SafetyOutlined", text: "办事、资讯、应用一站聚合" },
       { icon: "SafetyOutlined", text: "全流程安全审计,保障数据隐私" }
     ], l = MA(n.logo || Kg), c = MA("统一认证中心"), Y = MA(null), B = MA(!1), s = MA(""), Q = MA(!1), e = MA(!1), f = MA(""), t = MA(""), P = MA(""), v = MA({}), H = MA(0), g = rw(() => H.value > Date.now()), C = fw({
       loginName: "",
@@ -6942,7 +6942,7 @@ const ys = /* @__PURE__ */ PA(bs, [["render", us], ["__scopeId", "data-v-f031e83
       ]);
     };
   }
-}), Rs = /* @__PURE__ */ PA(hs, [["__scopeId", "data-v-294a1d7f"]]), _s = {
+}), Rs = /* @__PURE__ */ PA(hs, [["__scopeId", "data-v-7d47f675"]]), _s = {
   1: KB,
   2: xs,
   3: ys,

+ 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 { dd as Se } from "./index2.js";
+import { de as Se } from "./index2.js";
 var tr = Uint8Array, Rn = Uint16Array, Ko = Int32Array, Xo = new tr([
   0,
   0,

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

@@ -17,7 +17,7 @@ var Q = (r, o, l) => new Promise((h, d) => {
 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 { 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, dq as qe, ad as Ke } from "./index2.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 { 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";

Різницю між файлами не показано, бо вона завелика
+ 326 - 326
lib/js/workplace.js


Деякі файли не було показано, через те що забагато файлів було змінено