st-comp 0.0.247 → 0.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +1 -0
- package/es/ChartLayout.js +4 -4
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +72 -70
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +36 -35
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +20 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +30 -28
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +50 -49
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +19 -18
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +590 -575
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +28 -26
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +77 -76
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +38 -37
- package/es/User.cjs +1 -1
- package/es/User.js +143 -141
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +29 -27
- package/es/VarietyAiHelper.cjs +4 -0
- package/es/VarietyAiHelper.js +270 -0
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +13 -12
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +70 -68
- package/es/{VarietySelect-2fd501da.cjs → VarietySelect-5c845562.cjs} +1 -1
- package/es/{VarietySelect-5a9dd50b.js → VarietySelect-9f267958.js} +4 -4
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +24 -22
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +70 -70
- package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-2b82e9f7.cjs} +1 -1
- package/es/{_initCloneObject-c34c65bc.js → _initCloneObject-69c8ae23.js} +3 -3
- package/es/aiTools.js +36 -0
- package/es/{base-a5af3db3.js → base-29f73b05.js} +2 -2
- package/es/{castArray-7741a212.js → castArray-609a313e.js} +1 -1
- package/es/{config-provider-2182708a.cjs → config-provider-2ae47cc8.cjs} +1 -1
- package/es/{config-provider-06a63185.js → config-provider-7860903c.js} +4 -4
- package/es/{debounce-8d53f4dd.js → debounce-a09ce9a3.js} +1 -1
- package/es/{dropdown-302f71e7.js → dropdown-497442b7.js} +20 -19
- package/es/dropdown-eba9eaf5.cjs +1 -0
- package/es/{el-autocomplete-ed75a659.js → el-autocomplete-27c60cc8.js} +18 -17
- package/es/el-autocomplete-b59eb529.cjs +1 -0
- package/es/{el-button-68baab7b.cjs → el-button-974ff9e9.cjs} +1 -1
- package/es/{el-button-d09ff85f.js → el-button-e2c63c08.js} +4 -4
- package/es/el-checkbox-08185353.cjs +1 -0
- package/es/{el-checkbox-64648e02.js → el-checkbox-71ebd862.js} +4 -4
- package/es/el-dialog-1b185570.cjs +1 -0
- package/es/{el-dialog-6a80e3d8.js → el-dialog-eedcfd3e.js} +6 -6
- package/es/{el-divider-4e059794.js → el-divider-523e5874.js} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-f5a1607a.js} +3 -3
- package/es/{el-form-item-4eca95be.js → el-form-item-bdcfd297.js} +8 -8
- package/es/{el-form-item-4076e55f.cjs → el-form-item-c997b4fa.cjs} +1 -1
- package/es/{el-input-cae60510.js → el-input-d47281da.js} +68 -68
- package/es/el-input-fa18ef84.cjs +1 -0
- package/es/el-input-number-3d94fa58.cjs +1 -0
- package/es/{el-input-number-c2499410.js → el-input-number-c8018cb1.js} +15 -15
- package/es/{el-loading-c738468d.js → el-loading-0cd81d05.js} +2 -2
- package/es/{el-loading-05826e64.cjs → el-loading-969a79ca.cjs} +1 -1
- package/es/el-menu-item-26071fd6.cjs +1 -0
- package/es/{el-menu-item-f904f685.js → el-menu-item-dac65bb3.js} +18 -17
- package/es/el-message-0ea8fbf8.cjs +1 -0
- package/es/el-message-4ed993c7.js +1 -0
- package/es/el-message-box-31e0aa98.cjs +1 -0
- package/es/{el-message-box-05d8cf39.js → el-message-box-fea4fca8.js} +11 -11
- package/es/{el-overlay-cc9bc792.js → el-overlay-1ee0338d.js} +19 -19
- package/es/el-overlay-ea65cb05.cjs +1 -0
- package/es/{el-popconfirm-a6f66a0e.js → el-popconfirm-089b8bec.js} +21 -20
- package/es/el-popconfirm-9e232436.cjs +1 -0
- package/es/el-popper-2d3914e4.cjs +1 -0
- package/es/el-popper-c9b3d3cf.js +1662 -0
- package/es/el-segmented-140ac042.cjs +1 -0
- package/es/{el-segmented-51b1c797.js → el-segmented-9d3a9e11.js} +4 -4
- package/es/el-select-a11f33e8.cjs +1 -0
- package/es/{el-select-1b149fab.js → el-select-e51e11c1.js} +44 -43
- package/es/{el-table-column-3e30ebae.js → el-table-column-05d292a8.js} +25 -24
- package/es/el-table-column-98570a4d.cjs +14 -0
- package/es/{el-tag-0a25efdf.js → el-tag-17cd04a1.js} +13 -13
- package/es/el-tag-6d8e653e.cjs +1 -0
- package/es/{el-text-73d899ff.js → el-text-2710fff3.js} +2 -2
- package/es/{el-text-1470de46.cjs → el-text-a18106cb.cjs} +1 -1
- package/es/{index-42e59bf5.js → index-0ee486ad.js} +3 -3
- package/es/index-0f79095c.js +440 -0
- package/es/{index-6806997d.js → index-1d9b50de.js} +3 -3
- package/es/index-28e03bad.cjs +1 -0
- package/es/{index-269b22da.cjs → index-299ee017.cjs} +1 -1
- package/es/{index-cebc7160.cjs → index-33f80550.cjs} +1 -1
- package/es/{index-4f48940d.cjs → index-37b8d3c6.cjs} +1 -1
- package/es/{index-2375023e.cjs → index-5befc414.cjs} +4 -4
- package/es/{index-696b6a94.cjs → index-6b99def3.cjs} +1 -1
- package/es/index-6ca95c8a.cjs +1 -0
- package/es/index-7dce9f59.cjs +1 -0
- package/es/{index-960806da.js → index-8391a3df.js} +3 -3
- package/es/{index-ac98a4d8.js → index-8f9d0d17.js} +16 -15
- package/es/{index-94e43e0d.js → index-95e5d454.js} +3 -3
- package/es/{index-4194c942.js → index-b0117ba2.js} +2 -2
- package/es/{index-6e967429.js → index-bcd895a0.js} +3 -3
- package/es/{index-87b4bf61.js → index-c2b9bbfd.js} +95 -65
- package/es/{index-54d289d1.js → index-c71e37dc.js} +11 -11
- package/es/{index-d77a7336.js → index-de24705f.js} +1 -1
- package/es/index-e8eeea22.cjs +1 -0
- package/es/{index-ee977f79.cjs → index-eb99b188.cjs} +1 -1
- package/es/{el-message-0df23ae7.js → index-f30561d3.js} +17 -17
- package/es/{python-c67c8901.cjs → python-27ece6fa.cjs} +2 -2
- package/es/{python-a914569a.js → python-656db04f.js} +30 -28
- package/es/{raf-80ef0c0a.js → raf-744cf95a.js} +1 -1
- package/es/{scroll-679bd6bf.js → scroll-6799bafc.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-47e50c10.js → use-form-common-props-cb0ca65c.js} +41 -41
- package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-d3ed62c6.cjs} +1 -1
- package/es/{use-global-config-cf78ebac.cjs → use-global-config-c80f33a4.cjs} +1 -1
- package/es/{use-global-config-f52caea0.js → use-global-config-cdaeca54.js} +4 -4
- package/es/{validator-3cad04b2.cjs → validator-07160325.cjs} +1 -1
- package/es/{validator-94c04152.js → validator-4ab9774f.js} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-a83e6de8.js} +1 -1
- package/es/{zh-cn-aabfaa94.cjs → zh-cn-6a0f844c.cjs} +1 -1
- package/es/{zh-cn-4921961d.js → zh-cn-8a6390a4.js} +2 -2
- package/lib/aiTools.js +36 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +188 -185
- package/lib/{index-750ede1b.js → index-6ac0579e.js} +20224 -19939
- package/lib/{python-e34a2958.js → python-0432340a.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlinePlus/index.vue +88 -62
- package/packages/VarietyAiHelper/index.ts +8 -0
- package/packages/VarietyAiHelper/index.vue +430 -0
- package/packages/index.ts +2 -0
- package/public/aiTools.js +36 -0
- package/src/App.vue +21 -0
- package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +1 -1
- package/src/pages/KlineNew/components/KlineBasic/utils.js +1 -1
- package/src/pages/KlineNew/components/KlineSlide/utils.js +1 -1
- package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +312 -0
- package/src/pages/KlinePlus/KlineDialog/api.js +108 -0
- package/src/pages/KlinePlus/KlineDialog/index.vue +582 -0
- package/src/pages/KlinePlus/KlineDialog/indicator.js +109 -0
- package/src/pages/KlinePlus/KlineDialog/tools.js +86 -0
- package/src/pages/KlinePlus/index.vue +23 -209
- package/src/pages/VarietyAiHelper/index.vue +20 -0
- package/src/pages/VarietySearch/index.vue +75 -51
- package/src/router/routes.ts +5 -0
- package/es/dropdown-89b74bc9.cjs +0 -1
- package/es/el-autocomplete-b9a3054a.cjs +0 -1
- package/es/el-checkbox-b982e2ef.cjs +0 -1
- package/es/el-dialog-ad7309e9.cjs +0 -1
- package/es/el-input-172c49f8.cjs +0 -1
- package/es/el-input-number-c2e71528.cjs +0 -1
- package/es/el-menu-item-7f986598.cjs +0 -1
- package/es/el-message-a86c0efa.cjs +0 -1
- package/es/el-message-box-40ff2af5.cjs +0 -1
- package/es/el-overlay-d7a6e4a9.cjs +0 -1
- package/es/el-popconfirm-737a015b.cjs +0 -1
- package/es/el-popper-7ba87e05.cjs +0 -1
- package/es/el-popper-a38874f4.js +0 -2094
- package/es/el-segmented-3fd66a0e.cjs +0 -1
- package/es/el-select-12f6deb7.cjs +0 -1
- package/es/el-table-column-516a0ed9.cjs +0 -14
- package/es/el-tag-789f05d3.cjs +0 -1
- package/es/index-8de94a49.cjs +0 -1
- package/es/index-c04f444f.cjs +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { E as FA } from "./el-button-
|
|
3
|
-
import "./el-tag-
|
|
4
|
-
import { E as BA, a as WA } from "./el-select-
|
|
1
|
+
import "./base-29f73b05.js";
|
|
2
|
+
import { E as FA } from "./el-button-e2c63c08.js";
|
|
3
|
+
import "./el-tag-17cd04a1.js";
|
|
4
|
+
import { E as BA, a as WA } from "./el-select-e51e11c1.js";
|
|
5
5
|
import "./el-scrollbar-323542e7.js";
|
|
6
|
-
import { E as VA } from "./el-popper-
|
|
7
|
-
import { E as HA } from "./el-input-
|
|
6
|
+
import { E as VA } from "./el-popper-c9b3d3cf.js";
|
|
7
|
+
import { E as HA } from "./el-input-d47281da.js";
|
|
8
8
|
import "./el-tooltip-4ed993c7.js";
|
|
9
9
|
import { inject as zA, ref as Jn, onMounted as UA, onUnmounted as $A, openBlock as _i, createElementBlock as on, createElementVNode as bi, createBlock as md, Teleport as zy, toDisplayString as mo, Fragment as el, renderList as pd, normalizeClass as Uy, createCommentVNode as Os, createVNode as _d, withCtx as bd, unref as KA, createTextVNode as jA, nextTick as bc, pushScopeId as qA, popScopeId as GA } from "vue";
|
|
10
10
|
import { G as $y } from "./index-7ed0999e.js";
|
|
11
|
-
import { i as ZA, E as YA } from "./index-
|
|
12
|
-
import { V as QA } from "./VarietySelect-
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
11
|
+
import { i as ZA, E as YA } from "./index-c2b9bbfd.js";
|
|
12
|
+
import { V as QA } from "./VarietySelect-9f267958.js";
|
|
13
|
+
import { _ as XA } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
+
import "./el-message-4ed993c7.js";
|
|
15
|
+
import { E as JA } from "./index-f30561d3.js";
|
|
15
16
|
const eM = (s) => {
|
|
16
17
|
if (!s)
|
|
17
18
|
return [];
|
|
@@ -8845,7 +8846,7 @@ class h_ {
|
|
|
8845
8846
|
}
|
|
8846
8847
|
}
|
|
8847
8848
|
h_._bigBlock32 = new DataView(new ArrayBuffer(320));
|
|
8848
|
-
const { registerWindow:
|
|
8849
|
+
const { registerWindow: kY, getWindow: we, getDocument: DY, getWindows: $E, getWindowsCount: f5, getWindowId: Wm, getWindowById: kL, hasWindow: xY, onDidRegisterWindow: d_, onWillUnregisterWindow: g5, onDidUnregisterWindow: m5 } = function() {
|
|
8849
8850
|
const s = /* @__PURE__ */ new Map();
|
|
8850
8851
|
rR(ht, 1);
|
|
8851
8852
|
const e = { window: ht, disposables: new me() };
|
|
@@ -72989,7 +72990,7 @@ RA({
|
|
|
72989
72990
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
72990
72991
|
aliases: ["Python", "py"],
|
|
72991
72992
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
72992
|
-
loader: () => import("./python-
|
|
72993
|
+
loader: () => import("./python-656db04f.js")
|
|
72993
72994
|
});
|
|
72994
72995
|
/*!-----------------------------------------------------------------------------
|
|
72995
72996
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -73101,7 +73102,7 @@ const p0 = (s) => (qA("data-v-e561aed9"), s = s(), GA(), s), EZ = { class: "edit
|
|
|
73101
73102
|
}
|
|
73102
73103
|
default: {
|
|
73103
73104
|
if (!Ft.modelValue) {
|
|
73104
|
-
|
|
73105
|
+
JA.error("请检查插入格式内是否填写完整");
|
|
73105
73106
|
return;
|
|
73106
73107
|
}
|
|
73107
73108
|
let dt = Ft.modelValue;
|
|
@@ -73446,8 +73447,8 @@ const p0 = (s) => (qA("data-v-e561aed9"), s = s(), GA(), s), EZ = { class: "edit
|
|
|
73446
73447
|
]);
|
|
73447
73448
|
};
|
|
73448
73449
|
}
|
|
73449
|
-
},
|
|
73450
|
+
}, gX = /* @__PURE__ */ XA(tY, [["__scopeId", "data-v-e561aed9"]]);
|
|
73450
73451
|
export {
|
|
73451
|
-
|
|
73452
|
+
gX as M,
|
|
73452
73453
|
wZ as m
|
|
73453
73454
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, computed as w, openBlock as r, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as g, createElementVNode as i, renderSlot as b, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
|
|
2
|
-
import { E as _, c as h } from "./index-
|
|
3
|
-
import { b as V, u as $, _ as I, w as P } from "./base-
|
|
4
|
-
import { k as F, e as K } from "./use-form-common-props-
|
|
2
|
+
import { E as _, c as h } from "./index-c2b9bbfd.js";
|
|
3
|
+
import { b as V, u as $, _ as I, w as P } from "./base-29f73b05.js";
|
|
4
|
+
import { k as F, e as K } from "./use-form-common-props-cb0ca65c.js";
|
|
5
5
|
const j = V({
|
|
6
6
|
type: {
|
|
7
7
|
type: String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./base-
|
|
1
|
+
import "./base-29f73b05.js";
|
|
2
2
|
import { computed as i, openBlock as d, createElementBlock as v, normalizeStyle as V, createVNode as _, Transition as k, withCtx as g, Fragment as z, renderList as A, createElementVNode as s, withDirectives as S, unref as N, vShow as F, toDisplayString as x, createCommentVNode as w, normalizeClass as h } from "vue";
|
|
3
|
-
import { o as Z, E as B } from "./index-
|
|
3
|
+
import { o as Z, E as B } from "./index-c2b9bbfd.js";
|
|
4
4
|
import { _ as E } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
5
|
const L = {
|
|
6
6
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as h, computed as a, ref as T, unref as s, openBlock as u, createBlock as R, mergeProps as U, withCtx as v, createElementBlock as $, normalizeClass as D, toDisplayString as c, createCommentVNode as b, renderSlot as g, createTextVNode as K } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { d } from "./dropdown-
|
|
4
|
-
import { b as O, o as H, u as I, n as L, _ as z, A as F, w as j } from "./base-
|
|
2
|
+
import { a as f, u as r, E as V } from "./el-popper-c9b3d3cf.js";
|
|
3
|
+
import { d } from "./dropdown-497442b7.js";
|
|
4
|
+
import { b as O, o as H, u as I, n as L, _ as z, A as F, w as j } from "./base-29f73b05.js";
|
|
5
5
|
const q = O({
|
|
6
6
|
trigger: f.trigger,
|
|
7
7
|
triggerKeys: f.triggerKeys,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, computed as n, openBlock as l, createElementBlock as s, mergeProps as v, unref as p, renderSlot as i, createElementVNode as e } from "vue";
|
|
2
|
-
import { b as w, e as d, u as m, i as h, n as
|
|
2
|
+
import { b as w, e as d, u as m, i as h, n as g, _ as f, w as x } from "./base-29f73b05.js";
|
|
3
3
|
const C = w({
|
|
4
4
|
size: {
|
|
5
5
|
type: d([Number, String])
|
|
@@ -17,7 +17,7 @@ const C = w({
|
|
|
17
17
|
const t = _, r = m("icon"), c = n(() => {
|
|
18
18
|
const { size: u, color: o } = t;
|
|
19
19
|
return !u && !o ? {} : {
|
|
20
|
-
fontSize: h(u) ? void 0 :
|
|
20
|
+
fontSize: h(u) ? void 0 : g(u),
|
|
21
21
|
"--color": o
|
|
22
22
|
};
|
|
23
23
|
});
|
|
@@ -29,8 +29,8 @@ const C = w({
|
|
|
29
29
|
], 16));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
var z = /* @__PURE__ */
|
|
33
|
-
const
|
|
32
|
+
var z = /* @__PURE__ */ f(M, [["__file", "icon.vue"]]);
|
|
33
|
+
const l2 = x(z);
|
|
34
34
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
35
35
|
var y = /* @__PURE__ */ a({
|
|
36
36
|
name: "ArrowDown",
|
|
@@ -46,7 +46,7 @@ var y = /* @__PURE__ */ a({
|
|
|
46
46
|
})
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
49
|
+
}), s2 = y, B = /* @__PURE__ */ a({
|
|
50
50
|
name: "ArrowLeft",
|
|
51
51
|
__name: "arrow-left",
|
|
52
52
|
setup(_) {
|
|
@@ -60,7 +60,7 @@ var y = /* @__PURE__ */ a({
|
|
|
60
60
|
})
|
|
61
61
|
]));
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), u2 = B, H = /* @__PURE__ */ a({
|
|
64
64
|
name: "ArrowRight",
|
|
65
65
|
__name: "arrow-right",
|
|
66
66
|
setup(_) {
|
|
@@ -74,7 +74,7 @@ var y = /* @__PURE__ */ a({
|
|
|
74
74
|
})
|
|
75
75
|
]));
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
77
|
+
}), o2 = H, V = /* @__PURE__ */ a({
|
|
78
78
|
name: "ArrowUp",
|
|
79
79
|
__name: "arrow-up",
|
|
80
80
|
setup(_) {
|
|
@@ -88,7 +88,7 @@ var y = /* @__PURE__ */ a({
|
|
|
88
88
|
})
|
|
89
89
|
]));
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), p2 = V, A = /* @__PURE__ */ a({
|
|
92
92
|
name: "CircleCheck",
|
|
93
93
|
__name: "circle-check",
|
|
94
94
|
setup(_) {
|
|
@@ -106,7 +106,7 @@ var y = /* @__PURE__ */ a({
|
|
|
106
106
|
})
|
|
107
107
|
]));
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
109
|
+
}), c2 = A, F = /* @__PURE__ */ a({
|
|
110
110
|
name: "CircleCloseFilled",
|
|
111
111
|
__name: "circle-close-filled",
|
|
112
112
|
setup(_) {
|
|
@@ -120,7 +120,7 @@ var y = /* @__PURE__ */ a({
|
|
|
120
120
|
})
|
|
121
121
|
]));
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), n2 = F, S = /* @__PURE__ */ a({
|
|
124
124
|
name: "CircleClose",
|
|
125
125
|
__name: "circle-close",
|
|
126
126
|
setup(_) {
|
|
@@ -138,7 +138,7 @@ var y = /* @__PURE__ */ a({
|
|
|
138
138
|
})
|
|
139
139
|
]));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), v2 = S, D = /* @__PURE__ */ a({
|
|
142
142
|
name: "Close",
|
|
143
143
|
__name: "close",
|
|
144
144
|
setup(_) {
|
|
@@ -152,7 +152,7 @@ var y = /* @__PURE__ */ a({
|
|
|
152
152
|
})
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), i2 = D, k = /* @__PURE__ */ a({
|
|
156
156
|
name: "DArrowLeft",
|
|
157
157
|
__name: "d-arrow-left",
|
|
158
158
|
setup(_) {
|
|
@@ -166,7 +166,7 @@ var y = /* @__PURE__ */ a({
|
|
|
166
166
|
})
|
|
167
167
|
]));
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), w2 = k, P = /* @__PURE__ */ a({
|
|
170
170
|
name: "DArrowRight",
|
|
171
171
|
__name: "d-arrow-right",
|
|
172
172
|
setup(_) {
|
|
@@ -180,7 +180,7 @@ var y = /* @__PURE__ */ a({
|
|
|
180
180
|
})
|
|
181
181
|
]));
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
183
|
+
}), d2 = P, E = /* @__PURE__ */ a({
|
|
184
184
|
name: "Delete",
|
|
185
185
|
__name: "delete",
|
|
186
186
|
setup(_) {
|
|
@@ -194,7 +194,7 @@ var y = /* @__PURE__ */ a({
|
|
|
194
194
|
})
|
|
195
195
|
]));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), m2 = E, b = /* @__PURE__ */ a({
|
|
198
198
|
name: "DocumentCopy",
|
|
199
199
|
__name: "document-copy",
|
|
200
200
|
setup(_) {
|
|
@@ -208,7 +208,7 @@ var y = /* @__PURE__ */ a({
|
|
|
208
208
|
})
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), h2 = b, I = /* @__PURE__ */ a({
|
|
212
212
|
name: "Document",
|
|
213
213
|
__name: "document",
|
|
214
214
|
setup(_) {
|
|
@@ -222,7 +222,7 @@ var y = /* @__PURE__ */ a({
|
|
|
222
222
|
})
|
|
223
223
|
]));
|
|
224
224
|
}
|
|
225
|
-
}),
|
|
225
|
+
}), g2 = I, U = /* @__PURE__ */ a({
|
|
226
226
|
name: "Edit",
|
|
227
227
|
__name: "edit",
|
|
228
228
|
setup(_) {
|
|
@@ -240,7 +240,7 @@ var y = /* @__PURE__ */ a({
|
|
|
240
240
|
})
|
|
241
241
|
]));
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), f2 = U, q = /* @__PURE__ */ a({
|
|
244
244
|
name: "Hide",
|
|
245
245
|
__name: "hide",
|
|
246
246
|
setup(_) {
|
|
@@ -258,7 +258,7 @@ var y = /* @__PURE__ */ a({
|
|
|
258
258
|
})
|
|
259
259
|
]));
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), x2 = q, Z = /* @__PURE__ */ a({
|
|
262
262
|
name: "InfoFilled",
|
|
263
263
|
__name: "info-filled",
|
|
264
264
|
setup(_) {
|
|
@@ -272,7 +272,7 @@ var y = /* @__PURE__ */ a({
|
|
|
272
272
|
})
|
|
273
273
|
]));
|
|
274
274
|
}
|
|
275
|
-
}),
|
|
275
|
+
}), C2 = Z, N = /* @__PURE__ */ a({
|
|
276
276
|
name: "Loading",
|
|
277
277
|
__name: "loading",
|
|
278
278
|
setup(_) {
|
|
@@ -286,7 +286,7 @@ var y = /* @__PURE__ */ a({
|
|
|
286
286
|
})
|
|
287
287
|
]));
|
|
288
288
|
}
|
|
289
|
-
}),
|
|
289
|
+
}), L2 = N, R = /* @__PURE__ */ a({
|
|
290
290
|
name: "Minus",
|
|
291
291
|
__name: "minus",
|
|
292
292
|
setup(_) {
|
|
@@ -300,7 +300,7 @@ var y = /* @__PURE__ */ a({
|
|
|
300
300
|
})
|
|
301
301
|
]));
|
|
302
302
|
}
|
|
303
|
-
}),
|
|
303
|
+
}), M2 = R, $ = /* @__PURE__ */ a({
|
|
304
304
|
name: "MoreFilled",
|
|
305
305
|
__name: "more-filled",
|
|
306
306
|
setup(_) {
|
|
@@ -314,7 +314,7 @@ var y = /* @__PURE__ */ a({
|
|
|
314
314
|
})
|
|
315
315
|
]));
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), z2 = $, j = /* @__PURE__ */ a({
|
|
318
318
|
name: "More",
|
|
319
319
|
__name: "more",
|
|
320
320
|
setup(_) {
|
|
@@ -328,7 +328,7 @@ var y = /* @__PURE__ */ a({
|
|
|
328
328
|
})
|
|
329
329
|
]));
|
|
330
330
|
}
|
|
331
|
-
}),
|
|
331
|
+
}), y2 = j, G = /* @__PURE__ */ a({
|
|
332
332
|
name: "PictureFilled",
|
|
333
333
|
__name: "picture-filled",
|
|
334
334
|
setup(_) {
|
|
@@ -342,7 +342,7 @@ var y = /* @__PURE__ */ a({
|
|
|
342
342
|
})
|
|
343
343
|
]));
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), B2 = G, Q = /* @__PURE__ */ a({
|
|
346
346
|
name: "Plus",
|
|
347
347
|
__name: "plus",
|
|
348
348
|
setup(_) {
|
|
@@ -356,7 +356,21 @@ var y = /* @__PURE__ */ a({
|
|
|
356
356
|
})
|
|
357
357
|
]));
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
359
|
+
}), H2 = Q, T = /* @__PURE__ */ a({
|
|
360
|
+
name: "Promotion",
|
|
361
|
+
__name: "promotion",
|
|
362
|
+
setup(_) {
|
|
363
|
+
return (t, r) => (l(), s("svg", {
|
|
364
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
365
|
+
viewBox: "0 0 1024 1024"
|
|
366
|
+
}, [
|
|
367
|
+
e("path", {
|
|
368
|
+
fill: "currentColor",
|
|
369
|
+
d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
|
|
370
|
+
})
|
|
371
|
+
]));
|
|
372
|
+
}
|
|
373
|
+
}), V2 = T, W = /* @__PURE__ */ a({
|
|
360
374
|
name: "QuestionFilled",
|
|
361
375
|
__name: "question-filled",
|
|
362
376
|
setup(_) {
|
|
@@ -370,7 +384,7 @@ var y = /* @__PURE__ */ a({
|
|
|
370
384
|
})
|
|
371
385
|
]));
|
|
372
386
|
}
|
|
373
|
-
}),
|
|
387
|
+
}), A2 = W, J = /* @__PURE__ */ a({
|
|
374
388
|
name: "Right",
|
|
375
389
|
__name: "right",
|
|
376
390
|
setup(_) {
|
|
@@ -384,7 +398,21 @@ var y = /* @__PURE__ */ a({
|
|
|
384
398
|
})
|
|
385
399
|
]));
|
|
386
400
|
}
|
|
387
|
-
}),
|
|
401
|
+
}), F2 = J, K = /* @__PURE__ */ a({
|
|
402
|
+
name: "Service",
|
|
403
|
+
__name: "service",
|
|
404
|
+
setup(_) {
|
|
405
|
+
return (t, r) => (l(), s("svg", {
|
|
406
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
407
|
+
viewBox: "0 0 1024 1024"
|
|
408
|
+
}, [
|
|
409
|
+
e("path", {
|
|
410
|
+
fill: "currentColor",
|
|
411
|
+
d: "M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"
|
|
412
|
+
})
|
|
413
|
+
]));
|
|
414
|
+
}
|
|
415
|
+
}), S2 = K, O = /* @__PURE__ */ a({
|
|
388
416
|
name: "SortDown",
|
|
389
417
|
__name: "sort-down",
|
|
390
418
|
setup(_) {
|
|
@@ -398,7 +426,7 @@ var y = /* @__PURE__ */ a({
|
|
|
398
426
|
})
|
|
399
427
|
]));
|
|
400
428
|
}
|
|
401
|
-
}),
|
|
429
|
+
}), D2 = O, X = /* @__PURE__ */ a({
|
|
402
430
|
name: "SortUp",
|
|
403
431
|
__name: "sort-up",
|
|
404
432
|
setup(_) {
|
|
@@ -412,7 +440,7 @@ var y = /* @__PURE__ */ a({
|
|
|
412
440
|
})
|
|
413
441
|
]));
|
|
414
442
|
}
|
|
415
|
-
}),
|
|
443
|
+
}), k2 = X, Y = /* @__PURE__ */ a({
|
|
416
444
|
name: "SuccessFilled",
|
|
417
445
|
__name: "success-filled",
|
|
418
446
|
setup(_) {
|
|
@@ -426,7 +454,7 @@ var y = /* @__PURE__ */ a({
|
|
|
426
454
|
})
|
|
427
455
|
]));
|
|
428
456
|
}
|
|
429
|
-
}),
|
|
457
|
+
}), P2 = Y, e2 = /* @__PURE__ */ a({
|
|
430
458
|
name: "UserFilled",
|
|
431
459
|
__name: "user-filled",
|
|
432
460
|
setup(_) {
|
|
@@ -440,7 +468,7 @@ var y = /* @__PURE__ */ a({
|
|
|
440
468
|
})
|
|
441
469
|
]));
|
|
442
470
|
}
|
|
443
|
-
}),
|
|
471
|
+
}), E2 = e2, a2 = /* @__PURE__ */ a({
|
|
444
472
|
name: "View",
|
|
445
473
|
__name: "view",
|
|
446
474
|
setup(_) {
|
|
@@ -454,7 +482,7 @@ var y = /* @__PURE__ */ a({
|
|
|
454
482
|
})
|
|
455
483
|
]));
|
|
456
484
|
}
|
|
457
|
-
}),
|
|
485
|
+
}), b2 = a2, _2 = /* @__PURE__ */ a({
|
|
458
486
|
name: "WarningFilled",
|
|
459
487
|
__name: "warning-filled",
|
|
460
488
|
setup(_) {
|
|
@@ -468,37 +496,39 @@ var y = /* @__PURE__ */ a({
|
|
|
468
496
|
})
|
|
469
497
|
]));
|
|
470
498
|
}
|
|
471
|
-
}),
|
|
499
|
+
}), I2 = _2;
|
|
472
500
|
export {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
b2 as A,
|
|
502
|
+
x2 as B,
|
|
503
|
+
k2 as C,
|
|
504
|
+
D2 as D,
|
|
505
|
+
l2 as E,
|
|
506
|
+
P2 as F,
|
|
507
|
+
I2 as G,
|
|
508
|
+
m2 as a,
|
|
509
|
+
g2 as b,
|
|
510
|
+
i2 as c,
|
|
511
|
+
h2 as d,
|
|
512
|
+
f2 as e,
|
|
513
|
+
s2 as f,
|
|
514
|
+
o2 as g,
|
|
515
|
+
w2 as h,
|
|
516
|
+
C2 as i,
|
|
517
|
+
z2 as j,
|
|
518
|
+
d2 as k,
|
|
519
|
+
L2 as l,
|
|
520
|
+
y2 as m,
|
|
521
|
+
u2 as n,
|
|
522
|
+
c2 as o,
|
|
523
|
+
V2 as p,
|
|
524
|
+
A2 as q,
|
|
525
|
+
F2 as r,
|
|
526
|
+
S2 as s,
|
|
527
|
+
B2 as t,
|
|
528
|
+
E2 as u,
|
|
529
|
+
H2 as v,
|
|
530
|
+
n2 as w,
|
|
531
|
+
M2 as x,
|
|
532
|
+
p2 as y,
|
|
533
|
+
v2 as z
|
|
504
534
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getCurrentInstance as F, shallowRef as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import { x as C } from "./base-
|
|
1
|
+
import { getCurrentInstance as F, shallowRef as k, ref as g, watch as A, unref as p, nextTick as E } from "vue";
|
|
2
|
+
import { c as m } from "./use-form-common-props-cb0ca65c.js";
|
|
3
|
+
import { k as _ } from "./index-0f79095c.js";
|
|
4
|
+
import { x as C } from "./base-29f73b05.js";
|
|
5
5
|
function D(l, {
|
|
6
6
|
disabled: n,
|
|
7
7
|
beforeFocus: s,
|
|
@@ -9,7 +9,7 @@ function D(l, {
|
|
|
9
9
|
beforeBlur: i,
|
|
10
10
|
afterBlur: r
|
|
11
11
|
} = {}) {
|
|
12
|
-
const
|
|
12
|
+
const v = F(), { emit: o } = v, e = k(), u = g(!1), d = (t) => {
|
|
13
13
|
const a = C(s) ? s(t) : !1;
|
|
14
14
|
p(n) || u.value || a || (u.value = !0, o("focus", t), c == null || c());
|
|
15
15
|
}, h = (t) => {
|
|
@@ -18,18 +18,18 @@ function D(l, {
|
|
|
18
18
|
p(n) || t.relatedTarget && ((a = e.value) != null && a.contains(t.relatedTarget)) || f || (u.value = !1, o("blur", t), r == null || r());
|
|
19
19
|
}, x = (t) => {
|
|
20
20
|
var a, f;
|
|
21
|
-
p(n) ||
|
|
21
|
+
p(n) || _(t.target) || (a = e.value) != null && a.contains(document.activeElement) && e.value !== document.activeElement || (f = l.value) == null || f.focus();
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return A([e, () => p(n)], ([t, a]) => {
|
|
24
24
|
t && (a ? t.removeAttribute("tabindex") : t.setAttribute("tabindex", "-1"));
|
|
25
|
-
}),
|
|
25
|
+
}), m(e, "focus", d, !0), m(e, "blur", h, !0), m(e, "click", x, !0), {
|
|
26
26
|
isFocused: u,
|
|
27
27
|
wrapperRef: e,
|
|
28
28
|
handleFocus: d,
|
|
29
29
|
handleBlur: h
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const b = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
|
|
33
33
|
function I({
|
|
34
34
|
afterComposition: l,
|
|
35
35
|
emit: n
|
|
@@ -40,9 +40,9 @@ function I({
|
|
|
40
40
|
var e;
|
|
41
41
|
n == null || n("compositionupdate", o);
|
|
42
42
|
const u = (e = o.target) == null ? void 0 : e.value, d = u[u.length - 1] || "";
|
|
43
|
-
s.value = !
|
|
43
|
+
s.value = !b(d);
|
|
44
44
|
}, r = (o) => {
|
|
45
|
-
n == null || n("compositionend", o), s.value && (s.value = !1,
|
|
45
|
+
n == null || n("compositionend", o), s.value && (s.value = !1, E(() => l(o)));
|
|
46
46
|
};
|
|
47
47
|
return {
|
|
48
48
|
isComposing: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as c, ref as l, computed as s, unref as i, isRef as d } from "vue";
|
|
2
|
-
import { h as u } from "./index-
|
|
2
|
+
import { h as u } from "./index-8391a3df.js";
|
|
3
3
|
function m(e, t, a) {
|
|
4
4
|
var o = e == null ? void 0 : u(e, t);
|
|
5
5
|
return o === void 0 ? a : o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),T=require("./use-form-common-props-d3ed62c6.cjs"),C=require("./el-scrollbar-bc3f790d.cjs"),a=require("./base-ef747d02.cjs"),M=require("./index-28e03bad.cjs"),x=Symbol("scrollbarContextKey"),D=a.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),q="Thumb",j=e.defineComponent({__name:"thumb",props:D,setup(z){const p=z,n=e.inject(x),o=a.useNamespace("scrollbar");n||M.throwError(q,"can not inject scrollbar context");const f=e.ref(),d=e.ref(),g=e.ref({}),b=e.ref(!1);let i=!1,c=!1,m=0,S=0,r=a.isClient?document.onselectstart:null;const t=e.computed(()=>C.BAR_MAP[p.vertical?"vertical":"horizontal"]),h=e.computed(()=>C.renderThumbStyle({size:p.size,move:p.move,bar:t.value})),y=e.computed(()=>f.value[t.value.offset]**2/n.wrapElement[t.value.scrollSize]/p.ratio/d.value[t.value.offset]),N=u=>{var w;if(u.stopPropagation(),u.ctrlKey||[1,2].includes(u.button))return;(w=window.getSelection())==null||w.removeAllRanges(),_(u);const v=u.currentTarget;v&&(g.value[t.value.axis]=v[t.value.offset]-(u[t.value.client]-v.getBoundingClientRect()[t.value.direction]))},E=u=>{if(!d.value||!f.value||!n.wrapElement)return;const w=Math.abs(u.target.getBoundingClientRect()[t.value.direction]-u[t.value.client]),v=d.value[t.value.offset]/2,l=(w-v)*100*y.value/f.value[t.value.offset];n.wrapElement[t.value.scroll]=l*n.wrapElement[t.value.scrollSize]/100},_=u=>{u.stopImmediatePropagation(),i=!0,m=n.wrapElement.scrollHeight,S=n.wrapElement.scrollWidth,document.addEventListener("mousemove",H),document.addEventListener("mouseup",P),r=document.onselectstart,document.onselectstart=()=>!1},H=u=>{if(!f.value||!d.value||i===!1)return;const w=g.value[t.value.axis];if(!w)return;const v=(f.value.getBoundingClientRect()[t.value.direction]-u[t.value.client])*-1,l=d.value[t.value.offset]-w,s=(v-l)*100*y.value/f.value[t.value.offset];t.value.scroll==="scrollLeft"?n.wrapElement[t.value.scroll]=s*S/100:n.wrapElement[t.value.scroll]=s*m/100},P=()=>{i=!1,g.value[t.value.axis]=0,document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",P),B(),c&&(b.value=!1)},A=()=>{c=!1,b.value=!!p.size},R=()=>{c=!0,b.value=i};e.onBeforeUnmount(()=>{B(),document.removeEventListener("mouseup",P)});const B=()=>{document.onselectstart!==r&&(document.onselectstart=r)};return T.useEventListener(e.toRef(n,"scrollbarElement"),"mousemove",A),T.useEventListener(e.toRef(n,"scrollbarElement"),"mouseleave",R),(u,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(o).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:f,class:e.normalizeClass([e.unref(o).e("bar"),e.unref(o).is(e.unref(t).key)]),onMousedown:E,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:d,class:e.normalizeClass(e.unref(o).e("thumb")),style:e.normalizeStyle(e.unref(h)),onMousedown:N},null,38)],42,["onClick"]),[[e.vShow,u.always||b.value]])]),_:1},8,["name"]))}});var O=a._export_sfc(j,[["__file","thumb.vue"]]);const G=a.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),V=e.defineComponent({__name:"bar",props:G,setup(z,{expose:p}){const n=z,o=e.inject(x),f=e.ref(0),d=e.ref(0),g=e.ref(""),b=e.ref(""),i=e.ref(1),c=e.ref(1);return p({handleScroll:r=>{if(r){const t=r.offsetHeight-C.GAP,h=r.offsetWidth-C.GAP;d.value=r.scrollTop*100/t*i.value,f.value=r.scrollLeft*100/h*c.value}},update:()=>{const r=o==null?void 0:o.wrapElement;if(!r)return;const t=r.offsetHeight-C.GAP,h=r.offsetWidth-C.GAP,y=t**2/r.scrollHeight,N=h**2/r.scrollWidth,E=Math.max(y,n.minSize),_=Math.max(N,n.minSize);i.value=y/(t-y)/(E/(t-E)),c.value=N/(h-N)/(_/(h-_)),b.value=E+C.GAP<t?`${E}px`:"",g.value=_+C.GAP<h?`${_}px`:""}}),(r,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(O,{move:f.value,ratio:c.value,size:g.value,always:r.always},null,8,["move","ratio","size","always"]),e.createVNode(O,{move:d.value,ratio:i.value,size:b.value,vertical:"",always:r.always},null,8,["move","ratio","size","always"])],64))}});var $=a._export_sfc(V,[["__file","bar.vue"]]);const I=a.buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:a.definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...M.useAriaProps(["ariaLabel","ariaOrientation"])}),W={"end-reached":z=>["left","right","top","bottom"].includes(z),scroll:({scrollTop:z,scrollLeft:p})=>[z,p].every(a.isNumber)},K="ElScrollbar",U=e.defineComponent({name:K}),F=e.defineComponent({...U,props:I,emits:W,setup(z,{expose:p,emit:n}){const o=z,f=a.useNamespace("scrollbar");let d,g,b,i=0,c=0,m="";const S={bottom:!1,top:!1,right:!1,left:!1},r=e.ref(),t=e.ref(),h=e.ref(),y=e.ref(),N=e.computed(()=>{const l={};return o.height&&(l.height=a.addUnit(o.height)),o.maxHeight&&(l.maxHeight=a.addUnit(o.maxHeight)),[o.wrapStyle,l]}),E=e.computed(()=>[o.wrapClass,f.e("wrap"),{[f.em("wrap","hidden-default")]:!o.native}]),_=e.computed(()=>[f.e("view"),o.viewClass]),H=l=>{var s;return(s=S[l])!=null?s:!1},P={top:"bottom",bottom:"top",left:"right",right:"left"},A=l=>{const s=P[m];if(!s)return;const k=l[m],L=l[s];k&&!S[m]&&(S[m]=!0),!L&&S[s]&&(S[s]=!1)},R=()=>{var l;if(t.value){(l=y.value)==null||l.handleScroll(t.value);const s=i,k=c;i=t.value.scrollTop,c=t.value.scrollLeft;const L={bottom:i+t.value.clientHeight>=t.value.scrollHeight-o.distance,top:i<=o.distance&&s!==0,right:c+t.value.clientWidth>=t.value.scrollWidth-o.distance&&k!==c,left:c<=o.distance&&k!==0};if(n("scroll",{scrollTop:i,scrollLeft:c}),s!==i&&(m=i>s?"bottom":"top"),k!==c&&(m=c>k?"right":"left"),o.distance>0){if(H(m))return;A(L)}L[m]&&n("end-reached",m)}};function B(l,s){a.isObject(l)?t.value.scrollTo(l):a.isNumber(l)&&a.isNumber(s)&&t.value.scrollTo(l,s)}const u=l=>{a.isNumber(l)&&(t.value.scrollTop=l)},w=l=>{a.isNumber(l)&&(t.value.scrollLeft=l)},v=()=>{var l;(l=y.value)==null||l.update(),S[m]=!1};return e.watch(()=>o.noresize,l=>{l?(d==null||d(),g==null||g(),b==null||b()):({stop:d}=T.useResizeObserver(h,v),{stop:g}=T.useResizeObserver(t,v),b=T.useEventListener("resize",v))},{immediate:!0}),e.watch(()=>[o.maxHeight,o.height],()=>{o.native||e.nextTick(()=>{var l;v(),t.value&&((l=y.value)==null||l.handleScroll(t.value))})}),e.provide(x,e.reactive({scrollbarElement:r,wrapElement:t})),e.onActivated(()=>{t.value&&(t.value.scrollTop=i,t.value.scrollLeft=c)}),e.onMounted(()=>{o.native||e.nextTick(()=>{v()})}),e.onUpdated(()=>v()),p({wrapRef:t,update:v,scrollTo:B,setScrollTop:u,setScrollLeft:w,handleScroll:R}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:r,class:e.normalizeClass(e.unref(f).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:t,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(e.unref(N)),tabindex:l.tabindex,onScroll:R},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{id:l.id,ref_key:"resizeRef",ref:h,class:e.normalizeClass(e.unref(_)),style:e.normalizeStyle(l.viewStyle),role:l.role,"aria-label":l.ariaLabel,"aria-orientation":l.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),l.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock($,{key:0,ref_key:"barRef",ref:y,always:l.always,"min-size":l.minSize},null,8,["always","min-size"]))],2))}});var X=a._export_sfc(F,[["__file","scrollbar.vue"]]);const Y=a.withInstall(X);exports.ElScrollbar=Y;exports.scrollbarEmits=W;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./base-ef747d02.cjs");const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";require("./base-ef747d02.cjs");const e=require("vue"),f=require("./index-33f80550.cjs"),h=require("./_plugin-vue_export-helper-f246444f.cjs");const g={key:0,class:"rule-box"},x={key:0,class:"level-box"},V={class:"level-color"},C={class:"level-text"},w={__name:"index",props:{value:{type:String,default:""},isFocus:{type:Boolean,default:!1},textColor:{type:[String,null],default:null}},setup(c,{expose:m}){const v=c,u=[{text:"不能包含空格",validator:t=>!/\s/.test(t)},{text:"长度为8-18个字符",validator:t=>t.length>=8&&t.length<=18},{text:"必须包含字母、数字、符号中至少2种",validator:t=>{const l=/[a-zA-Z]/.test(t),a=/\d/.test(t),r=/[^a-zA-Z0-9]/.test(t);return[l,a,r].filter(Boolean).length>=2}},{text:"请勿输入连续、重复6位以上字母或数字, 0123456, 1111111",validator:t=>{if(/([a-zA-Z0-9])\1{6,}/.test(t)||/(?:0123456|1234567|2345678|3456789|9876543|8765432|7654321|6543210)/.test(t))return!1;const r=t.toLowerCase(),d=s=>{if(!/^[a-z]+$/.test(s))return!1;for(let n=1;n<s.length;n++)if(s.charCodeAt(n)!==s.charCodeAt(n-1)+1)return!1;return!0};for(let s=0;s<=r.length-7;s++){const n=r.substr(s,7);if(d(n))return!1}return!0}}],p=e.computed(()=>!u.map(l=>l.validator(v.value)).includes(!1)),o=e.computed(()=>{const t=v.value;if(!t)return 0;let l=0;return t.length>=8&&l++,t.length>=12&&l++,/\d/.test(t)&&l++,/[a-z]/.test(t)&&l++,/[A-Z]/.test(t)&&l++,/[^a-zA-Z0-9]/.test(t)&&l++,l<=2?1:l<=4?2:3}),i=e.computed(()=>{switch(o.value){case 1:return"lv1";case 2:return"lv2";case 3:return"lv3";default:return""}}),_=e.computed(()=>{switch(o.value){case 1:return"弱";case 2:return"中";case 3:return"强";default:return""}});return m({pwdValidators:u,levelValue:o,ruleFormPassword:[{required:!0,trigger:"blur",message:"密码不能为空"},...u.map(t=>({trigger:"blur",validator:(l,a,r)=>{t.validator(a)?r():r(t.text)}}))]}),(t,l)=>{const a=f.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"password-prompt",style:e.normalizeStyle({color:c.textColor??"var(--el-color-info)"})},[e.createVNode(e.Transition,{name:"slide-down"},{default:e.withCtx(()=>[c.isFocus?(e.openBlock(),e.createElementBlock("div",g,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(r,d)=>e.createElementVNode("div",{class:"rule-item",key:d},[e.withDirectives(e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(f.circle_check_default))]),_:2},1536),[[e.vShow,r.validator(c.value)]]),e.createElementVNode("span",null,e.toDisplayString(r.text),1)])),64))])):e.createCommentVNode("",!0)]),_:1}),!c.isFocus&&p.value?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",V,[e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[o.value>=1?i.value:""]])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[o.value>=2?i.value:""]])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[o.value>=3?i.value:""]])},null,2)]),e.createElementVNode("div",C,"密码强度: "+e.toDisplayString(_.value),1)])):e.createCommentVNode("",!0)],4)}}},N=h._export_sfc(w,[["__scopeId","data-v-ff60a416"]]);exports.PasswordPrompt=N;
|