st-comp 0.0.196 → 0.0.198
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/es/ChartLayout.js +4 -4
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +21 -21
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +42 -39
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +68 -65
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +20 -17
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +29 -26
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +49 -46
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +19 -16
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +22 -19
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +45 -42
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +52 -49
- package/es/User.cjs +1 -1
- package/es/User.js +646 -491
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +27 -24
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +18 -16
- package/es/VarietySearch.cjs +11 -11
- package/es/VarietySearch.js +708 -705
- package/es/VarietyTextCopy.cjs +5 -0
- package/es/VarietyTextCopy.js +89 -0
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +31 -29
- package/es/_initCloneObject-52b6a510.cjs +1 -0
- package/es/{_initCloneObject-64989891.js → _initCloneObject-eaef9418.js} +5 -5
- package/es/{base-62a70f61.js → base-a5af3db3.js} +2 -2
- package/es/castArray-35947698.cjs +1 -0
- package/es/castArray-7741a212.js +10 -0
- package/es/config-provider-a584d81e.cjs +1 -0
- package/es/{config-provider-962c9213.js → config-provider-b16efd62.js} +4 -4
- package/es/{debounce-ccdceb02.js → debounce-8d53f4dd.js} +9 -9
- package/es/dropdown-071c5d7e.cjs +1 -0
- package/es/{dropdown-220099ea.js → dropdown-a59bba73.js} +19 -19
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-a2dd1bb5.js → el-autocomplete-ba808eb6.js} +13 -12
- package/es/{el-button-639a79ee.js → el-button-c95adb85.js} +4 -4
- package/es/el-button-eec58cff.cjs +1 -0
- package/es/{el-dialog-43cb14a3.js → el-dialog-41ab8417.js} +6 -6
- package/es/el-dialog-ae86edb8.cjs +1 -0
- package/es/{el-divider-2f300113.js → el-divider-4e059794.js} +1 -1
- package/es/{el-empty-34086220.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/{el-form-item-5425e443.js → el-form-item-eeb64520.js} +29 -28
- package/es/{el-input-f24248f2.js → el-input-2f75c4ba.js} +5 -5
- package/es/el-input-7fd293af.cjs +1 -0
- package/es/el-input-number-22e21d16.cjs +1 -0
- package/es/{el-input-number-36036e60.js → el-input-number-5193fe6d.js} +6 -6
- package/es/{el-loading-a6dd5081.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-74b350d7.js → el-loading-f6022062.js} +2 -2
- package/es/el-menu-item-17dc717e.cjs +1 -0
- package/es/{el-menu-item-7d04ed7a.js → el-menu-item-7e881203.js} +6 -6
- package/es/el-message-5e6a6be9.cjs +1 -0
- package/es/el-message-box-48d71ee5.cjs +1 -0
- package/es/{el-message-box-1286fd77.js → el-message-box-81ffd21e.js} +11 -11
- package/es/{el-message-4e885359.js → el-message-e544a8f5.js} +27 -27
- package/es/{el-overlay-0310aac7.js → el-overlay-09ad71cd.js} +29 -29
- package/es/el-overlay-9e34965f.cjs +1 -0
- package/es/el-popconfirm-70a976bf.cjs +1 -0
- package/es/{el-popconfirm-6235978c.js → el-popconfirm-81dcd202.js} +11 -11
- package/es/el-popper-b4f97157.js +2094 -0
- package/es/el-popper-b6c99b28.cjs +1 -0
- package/es/el-scrollbar-323542e7.js +34 -0
- package/es/el-scrollbar-bc3f790d.cjs +1 -0
- package/es/{el-segmented-ee920d27.js → el-segmented-b868d074.js} +4 -4
- package/es/el-segmented-f8fce9ac.cjs +1 -0
- package/es/{el-select-bfade57c.js → el-select-95627997.js} +318 -316
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/el-table-column-079b76f5.cjs +14 -0
- package/es/{el-table-column-41685d02.js → el-table-column-72c50d58.js} +38 -36
- package/es/{el-tag-ada32d9e.js → el-tag-66cab138.js} +17 -17
- package/es/{el-tag-defe821c.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/index-11547a0c.cjs +1 -0
- package/es/{index-492bd129.js → index-1f7d4f70.js} +2 -2
- package/es/index-298075cf.cjs +1 -0
- package/es/{index-787d3588.js → index-57672682.js} +3 -3
- package/es/index-844bdd85.js +326 -0
- package/es/{index-843be67c.js → index-88546436.js} +10 -10
- package/es/{index-89502796.js → index-960806da.js} +6 -6
- package/es/{index-0a8e1adb.js → index-a871c3eb.js} +1 -1
- package/es/index-c108567d.cjs +1 -0
- package/es/{index-482f09b5.js → index-d77a7336.js} +1 -1
- package/es/{index-6277c792.js → index-d91dc23f.js} +5 -5
- package/es/{index-3e26cc9f.js → index-e5566b94.js} +88 -95
- package/es/index-f3562b52.cjs +1 -0
- package/es/{index-bc26fe71.cjs → index-f967d6c1.cjs} +1 -1
- package/es/{raf-41aed4d4.js → raf-80ef0c0a.js} +1 -1
- package/es/{scroll-7d352c1f.js → scroll-679bd6bf.js} +1 -1
- package/es/style.css +1 -1
- package/es/{el-scrollbar-d8e60ed2.js → use-form-common-props-815d48a6.js} +120 -151
- package/es/use-form-common-props-fd9b61a0.cjs +1 -0
- package/es/use-global-config-30d7d8ce.cjs +1 -0
- package/es/{use-global-config-2704a841.js → use-global-config-b5e9d3d5.js} +16 -16
- package/es/validator-1b8a6128.cjs +1 -0
- package/es/{validator-61a65ac7.js → validator-764a9db0.js} +1 -1
- package/es/{vnode-c51c8aa3.js → vnode-5ddb7ed1.js} +1 -1
- package/es/{zh-cn-6ee4b8df.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-19fbf029.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +162 -158
- package/lib/{index-dac23ed6.js → index-a75ac019.js} +18140 -17918
- package/lib/{python-fdc6b946.js → python-0eadb75b.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/ConfigProvider/index.vue +3 -2
- package/packages/User/components/EditInfoDialog.vue +132 -0
- package/packages/User/index.vue +19 -3
- package/packages/VarietyTextCopy/index.ts +8 -0
- package/packages/VarietyTextCopy/index.vue +136 -0
- package/packages/index.ts +2 -0
- package/src/pages/User/index.vue +2 -2
- package/src/pages/VarietyTextCopy/index.vue +24 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-1136ed17.cjs +0 -1
- package/es/config-provider-c629566a.cjs +0 -1
- package/es/dropdown-28ffc2a0.cjs +0 -1
- package/es/el-autocomplete-01985d09.cjs +0 -1
- package/es/el-button-1cb4ce47.cjs +0 -1
- package/es/el-dialog-10b4cda4.cjs +0 -1
- package/es/el-form-item-6d81753f.cjs +0 -12
- package/es/el-input-ebe964c2.cjs +0 -1
- package/es/el-input-number-e3d58911.cjs +0 -1
- package/es/el-menu-item-9a591f08.cjs +0 -1
- package/es/el-message-3517c44c.cjs +0 -1
- package/es/el-message-box-317e9f09.cjs +0 -1
- package/es/el-overlay-ed457566.cjs +0 -1
- package/es/el-popconfirm-d61782ad.cjs +0 -1
- package/es/el-popper-32eaad7d.cjs +0 -1
- package/es/el-popper-f38ba0a1.js +0 -2412
- package/es/el-scrollbar-2cac7413.cjs +0 -1
- package/es/el-segmented-bf42d915.cjs +0 -1
- package/es/el-select-64816d07.cjs +0 -1
- package/es/el-table-column-00904cbd.cjs +0 -14
- package/es/index-b306360f.cjs +0 -1
- package/es/index-d4910ece.cjs +0 -1
- package/es/index-ecf79ee2.cjs +0 -1
- package/es/use-global-config-878461f3.cjs +0 -1
- package/es/validator-027eff1b.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { i as
|
|
3
|
-
import { g as I } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { s as D, j as F, z as T } from "./base-
|
|
1
|
+
import { S as M, p as g, k as O } from "./index-e5566b94.js";
|
|
2
|
+
import { i as P, g as E, t as A, h as v, c as L } from "./index-960806da.js";
|
|
3
|
+
import { g as I } from "./index-d77a7336.js";
|
|
4
|
+
import { n as _, k as x } from "./el-popper-b4f97157.js";
|
|
5
|
+
import { s as D, j as F, z as T } from "./base-a5af3db3.js";
|
|
6
6
|
var w = 1, H = 2;
|
|
7
7
|
function G(n, e, t, r) {
|
|
8
8
|
var s = t.length, o = s, f = !r;
|
|
@@ -20,7 +20,7 @@ function G(n, e, t, r) {
|
|
|
20
20
|
if (c === void 0 && !(a in n))
|
|
21
21
|
return !1;
|
|
22
22
|
} else {
|
|
23
|
-
var d = new
|
|
23
|
+
var d = new M();
|
|
24
24
|
if (r)
|
|
25
25
|
var p = r(c, l, a, n, e, d);
|
|
26
26
|
if (!(p === void 0 ? g(l, c, w | H, r, d) : p))
|
|
@@ -30,10 +30,10 @@ function G(n, e, t, r) {
|
|
|
30
30
|
return !0;
|
|
31
31
|
}
|
|
32
32
|
function C(n) {
|
|
33
|
-
return n === n && !
|
|
33
|
+
return n === n && !P(n);
|
|
34
34
|
}
|
|
35
35
|
function S(n) {
|
|
36
|
-
for (var e =
|
|
36
|
+
for (var e = O(n), t = e.length; t--; ) {
|
|
37
37
|
var r = e[t], s = n[r];
|
|
38
38
|
e[t] = [r, s, C(s)];
|
|
39
39
|
}
|
|
@@ -51,27 +51,27 @@ function B(n) {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
var U = 1, $ = 2;
|
|
54
|
-
function
|
|
54
|
+
function K(n, e) {
|
|
55
55
|
return E(n) && C(e) ? R(A(n), e) : function(t) {
|
|
56
56
|
var r = I(t, n);
|
|
57
57
|
return r === void 0 && r === e ? _(t, n) : g(e, r, U | $);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function N(n) {
|
|
61
61
|
return function(e) {
|
|
62
62
|
return e == null ? void 0 : e[n];
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function k(n) {
|
|
66
66
|
return function(e) {
|
|
67
|
-
return
|
|
67
|
+
return v(e, n);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return E(n) ?
|
|
70
|
+
function q(n) {
|
|
71
|
+
return E(n) ? N(A(n)) : k(n);
|
|
72
72
|
}
|
|
73
73
|
function Z(n) {
|
|
74
|
-
return typeof n == "function" ? n : n == null ? x : typeof n == "object" ? L(n) ?
|
|
74
|
+
return typeof n == "function" ? n : n == null ? x : typeof n == "object" ? L(n) ? K(n[0], n[1]) : B(n) : q(n);
|
|
75
75
|
}
|
|
76
76
|
const u = /* @__PURE__ */ new Map();
|
|
77
77
|
if (D) {
|
|
@@ -88,8 +88,8 @@ if (D) {
|
|
|
88
88
|
function h(n, e) {
|
|
89
89
|
let t = [];
|
|
90
90
|
return F(e.arg) ? t = e.arg : T(e.arg) && t.push(e.arg), function(r, s) {
|
|
91
|
-
const o = e.instance.popperRef, f = r.target, i = s == null ? void 0 : s.target, a = !e || !e.instance, c = !f || !i, l = n.contains(f) || n.contains(i), d = n === f, p = t.length && t.some((m) => m == null ? void 0 : m.contains(f)) || t.length && t.includes(i),
|
|
92
|
-
a || c || l || d || p ||
|
|
91
|
+
const o = e.instance.popperRef, f = r.target, i = s == null ? void 0 : s.target, a = !e || !e.instance, c = !f || !i, l = n.contains(f) || n.contains(i), d = n === f, p = t.length && t.some((m) => m == null ? void 0 : m.contains(f)) || t.length && t.includes(i), y = o && (o.contains(f) || o.contains(i));
|
|
92
|
+
a || c || l || d || p || y || e.value(r, s);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
const z = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const E=require("./index-
|
|
1
|
+
"use strict";const E=require("./index-c108567d.cjs"),c=require("./index-9780a537.cjs"),I=require("./index-bb833443.cjs"),y=require("./el-popper-b6c99b28.cjs"),g=require("./base-ef747d02.cjs");var M=1,m=2;function v(n,e,t,r){var i=t.length,u=i,o=!r;if(n==null)return!u;for(n=Object(n);i--;){var s=t[i];if(o&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<u;){s=t[i];var a=s[0],d=n[a],l=s[1];if(o&&s[2]){if(d===void 0&&!(a in n))return!1}else{var p=new E.Stack;if(r)var h=r(d,l,a,n,e,p);if(!(h===void 0?E.baseIsEqual(l,d,M|m,r,p):h))return!1}}return!0}function R(n){return n===n&&!c.isObject(n)}function x(n){for(var e=E.keys(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,R(i)]}return e}function O(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}function L(n){var e=x(n);return e.length==1&&e[0][2]?O(e[0][0],e[0][1]):function(t){return t===n||v(t,n,e)}}var _=1,q=2;function D(n,e){return c.isKey(n)&&R(e)?O(c.toKey(n),e):function(t){var r=I.get(t,n);return r===void 0&&r===e?y.hasIn(t,n):E.baseIsEqual(e,r,_|q)}}function F(n){return function(e){return e==null?void 0:e[n]}}function T(n){return function(e){return c.baseGet(e,n)}}function w(n){return c.isKey(n)?F(c.toKey(n)):T(n)}function H(n){return typeof n=="function"?n:n==null?y.identity:typeof n=="object"?c.isArray(n)?D(n[0],n[1]):L(n):w(n)}const f=new Map;if(g.isClient){let n;document.addEventListener("mousedown",e=>n=e),document.addEventListener("mouseup",e=>{if(n){for(const t of f.values())for(const{documentHandler:r}of t)r(e,n);n=void 0}})}function C(n,e){let t=[];return g.isArray(e.arg)?t=e.arg:g.isElement(e.arg)&&t.push(e.arg),function(r,i){const u=e.instance.popperRef,o=r.target,s=i==null?void 0:i.target,a=!e||!e.instance,d=!o||!s,l=n.contains(o)||n.contains(s),p=n===o,h=t.length&&t.some(A=>A==null?void 0:A.contains(o))||t.length&&t.includes(s),P=u&&(u.contains(o)||u.contains(s));a||d||l||p||h||P||e.value(r,i)}}const G={beforeMount(n,e){f.has(n)||f.set(n,[]),f.get(n).push({documentHandler:C(n,e),bindingFn:e.value})},updated(n,e){f.has(n)||f.set(n,[]);const t=f.get(n),r=t.findIndex(u=>u.bindingFn===e.oldValue),i={documentHandler:C(n,e),bindingFn:e.value};r>=0?t.splice(r,1,i):t.push(i)},unmounted(n){f.delete(n)}};exports.ClickOutside=G;exports.baseIteratee=H;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),p=require("./use-form-common-props-fd9b61a0.cjs"),g=require("./el-popper-b6c99b28.cjs"),h=require("./base-ef747d02.cjs");function E(l,{disabled:o,beforeFocus:i,afterFocus:d,beforeBlur:a,afterBlur:c}={}){const m=s.getCurrentInstance(),{emit:n}=m,t=s.shallowRef(),r=s.ref(!1),v=e=>{const u=h.isFunction(i)?i(e):!1;s.unref(o)||r.value||u||(r.value=!0,n("focus",e),d==null||d())},C=e=>{var u;const f=h.isFunction(a)?a(e):!1;s.unref(o)||e.relatedTarget&&((u=t.value)!=null&&u.contains(e.relatedTarget))||f||(r.value=!1,n("blur",e),c==null||c())},F=e=>{var u,f;s.unref(o)||g.isFocusable(e.target)||(u=t.value)!=null&&u.contains(document.activeElement)&&t.value!==document.activeElement||(f=l.value)==null||f.focus()};return s.watch([t,()=>s.unref(o)],([e,u])=>{e&&(u?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),p.useEventListener(t,"focus",v,!0),p.useEventListener(t,"blur",C,!0),p.useEventListener(t,"click",F,!0),{isFocused:r,wrapperRef:t,handleFocus:v,handleBlur:C}}const b=l=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);function q({afterComposition:l,emit:o}){const i=s.ref(!1),d=n=>{o==null||o("compositionstart",n),i.value=!0},a=n=>{var t;o==null||o("compositionupdate",n);const r=(t=n.target)==null?void 0:t.value,v=r[r.length-1]||"";i.value=!b(v)},c=n=>{o==null||o("compositionend",n),i.value&&(i.value=!1,s.nextTick(()=>l(n)))};return{isComposing:i,handleComposition:n=>{n.type==="compositionend"?c(n):a(n)},handleCompositionStart:d,handleCompositionUpdate:a,handleCompositionEnd:c}}exports.useComposition=q;exports.useFocusController=E;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./base-
|
|
1
|
+
import "./base-a5af3db3.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-a871c3eb.js";
|
|
4
4
|
import { _ as E } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
5
|
const L = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),T=require("./use-form-common-props-fd9b61a0.cjs"),C=require("./el-scrollbar-bc3f790d.cjs"),a=require("./base-ef747d02.cjs"),M=require("./el-popper-b6c99b28.cjs"),O=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(O),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",k),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},k=()=>{i=!1,g.value[t.value.axis]=0,document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",k),B(),c&&(b.value=!1)},A=()=>{c=!1,b.value=!!p.size},R=()=>{c=!0,b.value=i};e.onBeforeUnmount(()=>{B(),document.removeEventListener("mouseup",k)});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 x=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(O),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(x,{move:f.value,ratio:c.value,size:g.value,always:r.always},null,8,["move","ratio","size","always"]),e.createVNode(x,{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},k={top:"bottom",bottom:"top",left:"right",right:"left"},A=l=>{const s=k[m];if(!s)return;const P=l[m],L=l[s];P&&!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,P=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&&P!==c,left:c<=o.distance&&P!==0};if(n("scroll",{scrollTop:i,scrollLeft:c}),s!==i&&(m=i>s?"bottom":"top"),P!==c&&(m=c>P?"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(O,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,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 "./
|
|
2
|
+
import { E as _, c as h } from "./index-a871c3eb.js";
|
|
3
|
+
import { b as V, u as $, _ as I, w as P } from "./base-a5af3db3.js";
|
|
4
|
+
import { k as F, e as K } from "./use-form-common-props-815d48a6.js";
|
|
5
5
|
const j = V({
|
|
6
6
|
type: {
|
|
7
7
|
type: String,
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { defineComponent as x, inject as Z, ref as f, computed as R, onBeforeUnmount as oe, toRef as q, openBlock as k, createBlock as D, Transition as ae, unref as w, withCtx as ee, withDirectives as re, createElementVNode as $, normalizeClass as P, withModifiers as se, normalizeStyle as j, vShow as ne, createElementBlock as te, Fragment as ie, createVNode as G, watch as X, nextTick as Y, provide as ce, reactive as ue, onActivated as ve, onMounted as fe, onUpdated as me, resolveDynamicComponent as de, renderSlot as pe, createCommentVNode as he } from "vue";
|
|
2
|
+
import { c as I, u as F } from "./use-form-common-props-815d48a6.js";
|
|
3
|
+
import { B as be, r as ge, G as C } from "./el-scrollbar-323542e7.js";
|
|
4
|
+
import { b as K, _ as U, u as le, s as ye, e as Se, p as N, n as J, f as we, w as ze } from "./base-a5af3db3.js";
|
|
5
|
+
import { b as _e, u as Ee } from "./el-popper-b4f97157.js";
|
|
6
|
+
const V = Symbol("scrollbarContextKey"), Te = K({
|
|
7
|
+
vertical: Boolean,
|
|
8
|
+
size: String,
|
|
9
|
+
move: Number,
|
|
10
|
+
ratio: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
always: Boolean
|
|
15
|
+
}), He = "Thumb", Ce = /* @__PURE__ */ x({
|
|
16
|
+
__name: "thumb",
|
|
17
|
+
props: Te,
|
|
18
|
+
setup(z) {
|
|
19
|
+
const d = z, r = Z(V), l = le("scrollbar");
|
|
20
|
+
r || _e(He, "can not inject scrollbar context");
|
|
21
|
+
const c = f(), m = f(), g = f({}), p = f(!1);
|
|
22
|
+
let s = !1, n = !1, v = 0, y = 0, o = ye ? document.onselectstart : null;
|
|
23
|
+
const e = R(() => be[d.vertical ? "vertical" : "horizontal"]), h = R(() => ge({
|
|
24
|
+
size: d.size,
|
|
25
|
+
move: d.move,
|
|
26
|
+
bar: e.value
|
|
27
|
+
})), b = R(() => c.value[e.value.offset] ** 2 / r.wrapElement[e.value.scrollSize] / d.ratio / m.value[e.value.offset]), T = (i) => {
|
|
28
|
+
var S;
|
|
29
|
+
if (i.stopPropagation(), i.ctrlKey || [1, 2].includes(i.button))
|
|
30
|
+
return;
|
|
31
|
+
(S = window.getSelection()) == null || S.removeAllRanges(), E(i);
|
|
32
|
+
const u = i.currentTarget;
|
|
33
|
+
u && (g.value[e.value.axis] = u[e.value.offset] - (i[e.value.client] - u.getBoundingClientRect()[e.value.direction]));
|
|
34
|
+
}, _ = (i) => {
|
|
35
|
+
if (!m.value || !c.value || !r.wrapElement)
|
|
36
|
+
return;
|
|
37
|
+
const S = Math.abs(i.target.getBoundingClientRect()[e.value.direction] - i[e.value.client]), u = m.value[e.value.offset] / 2, t = (S - u) * 100 * b.value / c.value[e.value.offset];
|
|
38
|
+
r.wrapElement[e.value.scroll] = t * r.wrapElement[e.value.scrollSize] / 100;
|
|
39
|
+
}, E = (i) => {
|
|
40
|
+
i.stopImmediatePropagation(), s = !0, v = r.wrapElement.scrollHeight, y = r.wrapElement.scrollWidth, document.addEventListener("mousemove", B), document.addEventListener("mouseup", L), o = document.onselectstart, document.onselectstart = () => !1;
|
|
41
|
+
}, B = (i) => {
|
|
42
|
+
if (!c.value || !m.value || s === !1)
|
|
43
|
+
return;
|
|
44
|
+
const S = g.value[e.value.axis];
|
|
45
|
+
if (!S)
|
|
46
|
+
return;
|
|
47
|
+
const u = (c.value.getBoundingClientRect()[e.value.direction] - i[e.value.client]) * -1, t = m.value[e.value.offset] - S, a = (u - t) * 100 * b.value / c.value[e.value.offset];
|
|
48
|
+
e.value.scroll === "scrollLeft" ? r.wrapElement[e.value.scroll] = a * y / 100 : r.wrapElement[e.value.scroll] = a * v / 100;
|
|
49
|
+
}, L = () => {
|
|
50
|
+
s = !1, g.value[e.value.axis] = 0, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L), A(), n && (p.value = !1);
|
|
51
|
+
}, W = () => {
|
|
52
|
+
n = !1, p.value = !!d.size;
|
|
53
|
+
}, O = () => {
|
|
54
|
+
n = !0, p.value = s;
|
|
55
|
+
};
|
|
56
|
+
oe(() => {
|
|
57
|
+
A(), document.removeEventListener("mouseup", L);
|
|
58
|
+
});
|
|
59
|
+
const A = () => {
|
|
60
|
+
document.onselectstart !== o && (document.onselectstart = o);
|
|
61
|
+
};
|
|
62
|
+
return I(q(r, "scrollbarElement"), "mousemove", W), I(q(r, "scrollbarElement"), "mouseleave", O), (i, S) => (k(), D(ae, {
|
|
63
|
+
name: w(l).b("fade"),
|
|
64
|
+
persisted: ""
|
|
65
|
+
}, {
|
|
66
|
+
default: ee(() => [
|
|
67
|
+
re($("div", {
|
|
68
|
+
ref_key: "instance",
|
|
69
|
+
ref: c,
|
|
70
|
+
class: P([w(l).e("bar"), w(l).is(w(e).key)]),
|
|
71
|
+
onMousedown: _,
|
|
72
|
+
onClick: se(() => {
|
|
73
|
+
}, ["stop"])
|
|
74
|
+
}, [
|
|
75
|
+
$("div", {
|
|
76
|
+
ref_key: "thumb",
|
|
77
|
+
ref: m,
|
|
78
|
+
class: P(w(l).e("thumb")),
|
|
79
|
+
style: j(w(h)),
|
|
80
|
+
onMousedown: T
|
|
81
|
+
}, null, 38)
|
|
82
|
+
], 42, ["onClick"]), [
|
|
83
|
+
[ne, i.always || p.value]
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["name"]));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var Q = /* @__PURE__ */ U(Ce, [["__file", "thumb.vue"]]);
|
|
91
|
+
const Re = K({
|
|
92
|
+
always: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: !0
|
|
95
|
+
},
|
|
96
|
+
minSize: {
|
|
97
|
+
type: Number,
|
|
98
|
+
required: !0
|
|
99
|
+
}
|
|
100
|
+
}), Le = /* @__PURE__ */ x({
|
|
101
|
+
__name: "bar",
|
|
102
|
+
props: Re,
|
|
103
|
+
setup(z, { expose: d }) {
|
|
104
|
+
const r = z, l = Z(V), c = f(0), m = f(0), g = f(""), p = f(""), s = f(1), n = f(1);
|
|
105
|
+
return d({
|
|
106
|
+
handleScroll: (o) => {
|
|
107
|
+
if (o) {
|
|
108
|
+
const e = o.offsetHeight - C, h = o.offsetWidth - C;
|
|
109
|
+
m.value = o.scrollTop * 100 / e * s.value, c.value = o.scrollLeft * 100 / h * n.value;
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
update: () => {
|
|
113
|
+
const o = l == null ? void 0 : l.wrapElement;
|
|
114
|
+
if (!o)
|
|
115
|
+
return;
|
|
116
|
+
const e = o.offsetHeight - C, h = o.offsetWidth - C, b = e ** 2 / o.scrollHeight, T = h ** 2 / o.scrollWidth, _ = Math.max(b, r.minSize), E = Math.max(T, r.minSize);
|
|
117
|
+
s.value = b / (e - b) / (_ / (e - _)), n.value = T / (h - T) / (E / (h - E)), p.value = _ + C < e ? `${_}px` : "", g.value = E + C < h ? `${E}px` : "";
|
|
118
|
+
}
|
|
119
|
+
}), (o, e) => (k(), te(ie, null, [
|
|
120
|
+
G(Q, {
|
|
121
|
+
move: c.value,
|
|
122
|
+
ratio: n.value,
|
|
123
|
+
size: g.value,
|
|
124
|
+
always: o.always
|
|
125
|
+
}, null, 8, ["move", "ratio", "size", "always"]),
|
|
126
|
+
G(Q, {
|
|
127
|
+
move: m.value,
|
|
128
|
+
ratio: s.value,
|
|
129
|
+
size: p.value,
|
|
130
|
+
vertical: "",
|
|
131
|
+
always: o.always
|
|
132
|
+
}, null, 8, ["move", "ratio", "size", "always"])
|
|
133
|
+
], 64));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var Ne = /* @__PURE__ */ U(Le, [["__file", "bar.vue"]]);
|
|
137
|
+
const ke = K({
|
|
138
|
+
distance: {
|
|
139
|
+
type: Number,
|
|
140
|
+
default: 0
|
|
141
|
+
},
|
|
142
|
+
height: {
|
|
143
|
+
type: [String, Number],
|
|
144
|
+
default: ""
|
|
145
|
+
},
|
|
146
|
+
maxHeight: {
|
|
147
|
+
type: [String, Number],
|
|
148
|
+
default: ""
|
|
149
|
+
},
|
|
150
|
+
native: Boolean,
|
|
151
|
+
wrapStyle: {
|
|
152
|
+
type: Se([String, Object, Array]),
|
|
153
|
+
default: ""
|
|
154
|
+
},
|
|
155
|
+
wrapClass: {
|
|
156
|
+
type: [String, Array],
|
|
157
|
+
default: ""
|
|
158
|
+
},
|
|
159
|
+
viewClass: {
|
|
160
|
+
type: [String, Array],
|
|
161
|
+
default: ""
|
|
162
|
+
},
|
|
163
|
+
viewStyle: {
|
|
164
|
+
type: [String, Array, Object],
|
|
165
|
+
default: ""
|
|
166
|
+
},
|
|
167
|
+
noresize: Boolean,
|
|
168
|
+
tag: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: "div"
|
|
171
|
+
},
|
|
172
|
+
always: Boolean,
|
|
173
|
+
minSize: {
|
|
174
|
+
type: Number,
|
|
175
|
+
default: 20
|
|
176
|
+
},
|
|
177
|
+
tabindex: {
|
|
178
|
+
type: [String, Number],
|
|
179
|
+
default: void 0
|
|
180
|
+
},
|
|
181
|
+
id: String,
|
|
182
|
+
role: String,
|
|
183
|
+
...Ee(["ariaLabel", "ariaOrientation"])
|
|
184
|
+
}), Pe = {
|
|
185
|
+
"end-reached": (z) => ["left", "right", "top", "bottom"].includes(z),
|
|
186
|
+
scroll: ({
|
|
187
|
+
scrollTop: z,
|
|
188
|
+
scrollLeft: d
|
|
189
|
+
}) => [z, d].every(N)
|
|
190
|
+
}, Be = "ElScrollbar", Oe = x({
|
|
191
|
+
name: Be
|
|
192
|
+
}), Ae = /* @__PURE__ */ x({
|
|
193
|
+
...Oe,
|
|
194
|
+
props: ke,
|
|
195
|
+
emits: Pe,
|
|
196
|
+
setup(z, { expose: d, emit: r }) {
|
|
197
|
+
const l = z, c = le("scrollbar");
|
|
198
|
+
let m, g, p, s = 0, n = 0, v = "";
|
|
199
|
+
const y = {
|
|
200
|
+
bottom: !1,
|
|
201
|
+
top: !1,
|
|
202
|
+
right: !1,
|
|
203
|
+
left: !1
|
|
204
|
+
}, o = f(), e = f(), h = f(), b = f(), T = R(() => {
|
|
205
|
+
const t = {};
|
|
206
|
+
return l.height && (t.height = J(l.height)), l.maxHeight && (t.maxHeight = J(l.maxHeight)), [l.wrapStyle, t];
|
|
207
|
+
}), _ = R(() => [
|
|
208
|
+
l.wrapClass,
|
|
209
|
+
c.e("wrap"),
|
|
210
|
+
{ [c.em("wrap", "hidden-default")]: !l.native }
|
|
211
|
+
]), E = R(() => [c.e("view"), l.viewClass]), B = (t) => {
|
|
212
|
+
var a;
|
|
213
|
+
return (a = y[t]) != null ? a : !1;
|
|
214
|
+
}, L = {
|
|
215
|
+
top: "bottom",
|
|
216
|
+
bottom: "top",
|
|
217
|
+
left: "right",
|
|
218
|
+
right: "left"
|
|
219
|
+
}, W = (t) => {
|
|
220
|
+
const a = L[v];
|
|
221
|
+
if (!a)
|
|
222
|
+
return;
|
|
223
|
+
const H = t[v], M = t[a];
|
|
224
|
+
H && !y[v] && (y[v] = !0), !M && y[a] && (y[a] = !1);
|
|
225
|
+
}, O = () => {
|
|
226
|
+
var t;
|
|
227
|
+
if (e.value) {
|
|
228
|
+
(t = b.value) == null || t.handleScroll(e.value);
|
|
229
|
+
const a = s, H = n;
|
|
230
|
+
s = e.value.scrollTop, n = e.value.scrollLeft;
|
|
231
|
+
const M = {
|
|
232
|
+
bottom: s + e.value.clientHeight >= e.value.scrollHeight - l.distance,
|
|
233
|
+
top: s <= l.distance && a !== 0,
|
|
234
|
+
right: n + e.value.clientWidth >= e.value.scrollWidth - l.distance && H !== n,
|
|
235
|
+
left: n <= l.distance && H !== 0
|
|
236
|
+
};
|
|
237
|
+
if (r("scroll", {
|
|
238
|
+
scrollTop: s,
|
|
239
|
+
scrollLeft: n
|
|
240
|
+
}), a !== s && (v = s > a ? "bottom" : "top"), H !== n && (v = n > H ? "right" : "left"), l.distance > 0) {
|
|
241
|
+
if (B(v))
|
|
242
|
+
return;
|
|
243
|
+
W(M);
|
|
244
|
+
}
|
|
245
|
+
M[v] && r("end-reached", v);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
function A(t, a) {
|
|
249
|
+
we(t) ? e.value.scrollTo(t) : N(t) && N(a) && e.value.scrollTo(t, a);
|
|
250
|
+
}
|
|
251
|
+
const i = (t) => {
|
|
252
|
+
N(t) && (e.value.scrollTop = t);
|
|
253
|
+
}, S = (t) => {
|
|
254
|
+
N(t) && (e.value.scrollLeft = t);
|
|
255
|
+
}, u = () => {
|
|
256
|
+
var t;
|
|
257
|
+
(t = b.value) == null || t.update(), y[v] = !1;
|
|
258
|
+
};
|
|
259
|
+
return X(() => l.noresize, (t) => {
|
|
260
|
+
t ? (m == null || m(), g == null || g(), p == null || p()) : ({ stop: m } = F(h, u), { stop: g } = F(e, u), p = I("resize", u));
|
|
261
|
+
}, { immediate: !0 }), X(() => [l.maxHeight, l.height], () => {
|
|
262
|
+
l.native || Y(() => {
|
|
263
|
+
var t;
|
|
264
|
+
u(), e.value && ((t = b.value) == null || t.handleScroll(e.value));
|
|
265
|
+
});
|
|
266
|
+
}), ce(V, ue({
|
|
267
|
+
scrollbarElement: o,
|
|
268
|
+
wrapElement: e
|
|
269
|
+
})), ve(() => {
|
|
270
|
+
e.value && (e.value.scrollTop = s, e.value.scrollLeft = n);
|
|
271
|
+
}), fe(() => {
|
|
272
|
+
l.native || Y(() => {
|
|
273
|
+
u();
|
|
274
|
+
});
|
|
275
|
+
}), me(() => u()), d({
|
|
276
|
+
wrapRef: e,
|
|
277
|
+
update: u,
|
|
278
|
+
scrollTo: A,
|
|
279
|
+
setScrollTop: i,
|
|
280
|
+
setScrollLeft: S,
|
|
281
|
+
handleScroll: O
|
|
282
|
+
}), (t, a) => (k(), te("div", {
|
|
283
|
+
ref_key: "scrollbarRef",
|
|
284
|
+
ref: o,
|
|
285
|
+
class: P(w(c).b())
|
|
286
|
+
}, [
|
|
287
|
+
$("div", {
|
|
288
|
+
ref_key: "wrapRef",
|
|
289
|
+
ref: e,
|
|
290
|
+
class: P(w(_)),
|
|
291
|
+
style: j(w(T)),
|
|
292
|
+
tabindex: t.tabindex,
|
|
293
|
+
onScroll: O
|
|
294
|
+
}, [
|
|
295
|
+
(k(), D(de(t.tag), {
|
|
296
|
+
id: t.id,
|
|
297
|
+
ref_key: "resizeRef",
|
|
298
|
+
ref: h,
|
|
299
|
+
class: P(w(E)),
|
|
300
|
+
style: j(t.viewStyle),
|
|
301
|
+
role: t.role,
|
|
302
|
+
"aria-label": t.ariaLabel,
|
|
303
|
+
"aria-orientation": t.ariaOrientation
|
|
304
|
+
}, {
|
|
305
|
+
default: ee(() => [
|
|
306
|
+
pe(t.$slots, "default")
|
|
307
|
+
]),
|
|
308
|
+
_: 3
|
|
309
|
+
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
|
310
|
+
], 46, ["tabindex"]),
|
|
311
|
+
t.native ? he("v-if", !0) : (k(), D(Ne, {
|
|
312
|
+
key: 0,
|
|
313
|
+
ref_key: "barRef",
|
|
314
|
+
ref: b,
|
|
315
|
+
always: t.always,
|
|
316
|
+
"min-size": t.minSize
|
|
317
|
+
}, null, 8, ["always", "min-size"]))
|
|
318
|
+
], 2));
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
var Me = /* @__PURE__ */ U(Ae, [["__file", "scrollbar.vue"]]);
|
|
322
|
+
const Ie = ze(Me);
|
|
323
|
+
export {
|
|
324
|
+
Ie as E,
|
|
325
|
+
Pe as s
|
|
326
|
+
};
|
|
@@ -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
|
|
2
|
+
import { i as f, g as r, E as V } from "./el-popper-b4f97157.js";
|
|
3
|
+
import { d } from "./dropdown-a59bba73.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-a5af3db3.js";
|
|
5
5
|
const q = O({
|
|
6
6
|
trigger: f.trigger,
|
|
7
7
|
triggerKeys: f.triggerKeys,
|
|
@@ -72,12 +72,12 @@ const q = O({
|
|
|
72
72
|
const o = t, y = a(() => o[J]), i = I("popover"), l = T(), w = a(() => {
|
|
73
73
|
var e;
|
|
74
74
|
return (e = s(l)) == null ? void 0 : e.popperRef;
|
|
75
|
-
}),
|
|
75
|
+
}), E = a(() => [
|
|
76
76
|
{
|
|
77
77
|
width: L(o.width)
|
|
78
78
|
},
|
|
79
79
|
o.popperStyle
|
|
80
|
-
]),
|
|
80
|
+
]), P = a(() => [i.b(), o.popperClass, { [i.m("plain")]: !!o.content }]), C = a(() => o.transition === `${i.namespace.value}-fade-in-linear`), k = () => {
|
|
81
81
|
var e;
|
|
82
82
|
(e = l.value) == null || e.hide();
|
|
83
83
|
}, S = () => {
|
|
@@ -113,12 +113,12 @@ const q = O({
|
|
|
113
113
|
"aria-label": e.title,
|
|
114
114
|
effect: e.effect,
|
|
115
115
|
enterable: e.enterable,
|
|
116
|
-
"popper-class": s(
|
|
117
|
-
"popper-style": s(
|
|
116
|
+
"popper-class": s(P),
|
|
117
|
+
"popper-style": s(E),
|
|
118
118
|
teleported: e.teleported,
|
|
119
119
|
"append-to": e.appendTo,
|
|
120
120
|
persistent: e.persistent,
|
|
121
|
-
"gpu-acceleration": s(
|
|
121
|
+
"gpu-acceleration": s(C),
|
|
122
122
|
"onUpdate:visible": s(y),
|
|
123
123
|
onBeforeShow: S,
|
|
124
124
|
onBeforeHide: A,
|
|
@@ -142,7 +142,7 @@ const q = O({
|
|
|
142
142
|
}, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
var W = /* @__PURE__ */
|
|
145
|
+
var W = /* @__PURE__ */ z(Q, [["__file", "popover.vue"]]);
|
|
146
146
|
const m = (t, p) => {
|
|
147
147
|
const n = p.arg || p.value, o = n == null ? void 0 : n.popperRef;
|
|
148
148
|
o && (o.triggerRef = t);
|
|
@@ -155,7 +155,7 @@ var X = {
|
|
|
155
155
|
m(t, p);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
const Y = "popover", Z =
|
|
158
|
+
const Y = "popover", Z = F(X, Y), re = j(W, {
|
|
159
159
|
directive: Z
|
|
160
160
|
});
|
|
161
161
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance as x, inject as E, unref as N } from "vue";
|
|
2
|
-
import { J as z, K as D } from "./base-
|
|
2
|
+
import { J as z, K as D } from "./base-a5af3db3.js";
|
|
3
3
|
var M = typeof global == "object" && global && global.Object === Object && global;
|
|
4
4
|
const F = M;
|
|
5
5
|
var A = typeof self == "object" && self && self.Object === Object && self, G = F || A || Function("return this")();
|
|
@@ -302,12 +302,12 @@ export {
|
|
|
302
302
|
P as i,
|
|
303
303
|
ne as j,
|
|
304
304
|
se as k,
|
|
305
|
-
|
|
305
|
+
g as l,
|
|
306
306
|
b as m,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
307
|
+
w as n,
|
|
308
|
+
F as o,
|
|
309
|
+
s as p,
|
|
310
|
+
ct as q,
|
|
311
311
|
_ as r,
|
|
312
312
|
oe as t,
|
|
313
313
|
he as u
|
|
@@ -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 g, _ as f, w as x } from "./base-
|
|
2
|
+
import { b as w, e as d, u as m, i as h, n as g, _ as f, w as x } from "./base-a5af3db3.js";
|
|
3
3
|
const C = w({
|
|
4
4
|
size: {
|
|
5
5
|
type: d([Number, String])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const P=require("vue"),$=require("./base-ef747d02.cjs"),i=require("./index-9780a537.cjs"),E=require("./use-form-common-props-fd9b61a0.cjs");var be=i.getNative(i.root,"WeakMap");const I=be;function ae(e){return e!=null&&E.isLength(e.length)&&!i.isFunction(e)}var _e=Object.prototype;function ie(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||_e;return e===t}function Te(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}function Oe(){return!1}var se=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H=se&&typeof module=="object"&&module&&!module.nodeType&&module,we=H&&H.exports===se,z=we?i.root.Buffer:void 0,$e=z?z.isBuffer:void 0,Pe=$e||Oe;const C=Pe;var Se="[object Arguments]",Ee="[object Array]",me="[object Boolean]",he="[object Date]",Le="[object Error]",Ce="[object Function]",je="[object Map]",Me="[object Number]",xe="[object Object]",Ie="[object RegExp]",Re="[object Set]",Ue="[object String]",De="[object WeakMap]",Be="[object ArrayBuffer]",Fe="[object DataView]",Ge="[object Float32Array]",Ke="[object Float64Array]",Ne="[object Int8Array]",qe="[object Int16Array]",Ve="[object Int32Array]",He="[object Uint8Array]",ze="[object Uint8ClampedArray]",We="[object Uint16Array]",Ye="[object Uint32Array]",u={};u[Ge]=u[Ke]=u[Ne]=u[qe]=u[Ve]=u[He]=u[ze]=u[We]=u[Ye]=!0;u[Se]=u[Ee]=u[Be]=u[me]=u[Fe]=u[he]=u[Le]=u[Ce]=u[je]=u[Me]=u[xe]=u[Ie]=u[Re]=u[Ue]=u[De]=!1;function Ze(e){return i.isObjectLike(e)&&E.isLength(e.length)&&!!u[i.baseGetTag(e)]}function ue(e){return function(r){return e(r)}}var oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,S=oe&&typeof module=="object"&&module&&!module.nodeType&&module,Je=S&&S.exports===oe,M=Je&&i.freeGlobal.process,Qe=function(){try{var e=S&&S.require&&S.require("util").types;return e||M&&M.binding&&M.binding("util")}catch{}}();const R=Qe;var W=R&&R.isTypedArray,Xe=W?ue(W):Ze;const N=Xe;var ke=Object.prototype,er=ke.hasOwnProperty;function fe(e,r){var t=i.isArray(e),n=!t&&E.isArguments(e),o=!t&&!n&&C(e),a=!t&&!n&&!o&&N(e),s=t||n||o||a,l=s?Te(e.length,String):[],c=l.length;for(var f in e)(r||er.call(e,f))&&!(s&&(f=="length"||o&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||E.isIndex(f,c)))&&l.push(f);return l}function le(e,r){return function(t){return e(r(t))}}var rr=le(Object.keys,Object);const tr=rr;var nr=Object.prototype,ar=nr.hasOwnProperty;function ir(e){if(!ie(e))return tr(e);var r=[];for(var t in Object(e))ar.call(e,t)&&t!="constructor"&&r.push(t);return r}function ce(e){return ae(e)?fe(e):ir(e)}function sr(){this.__data__=new i.ListCache,this.size=0}function ur(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}function or(e){return this.__data__.get(e)}function fr(e){return this.__data__.has(e)}var lr=200;function cr(e,r){var t=this.__data__;if(t instanceof i.ListCache){var n=t.__data__;if(!i.Map||n.length<lr-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new i.MapCache(n)}return t.set(e,r),this.size=t.size,this}function b(e){var r=this.__data__=new i.ListCache(e);this.size=r.size}b.prototype.clear=sr;b.prototype.delete=ur;b.prototype.get=or;b.prototype.has=fr;b.prototype.set=cr;function gr(e,r){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var s=e[t];r(s,t,e)&&(a[o++]=s)}return a}function ge(){return[]}var pr=Object.prototype,yr=pr.propertyIsEnumerable,Y=Object.getOwnPropertySymbols,vr=Y?function(e){return e==null?[]:(e=Object(e),gr(Y(e),function(r){return yr.call(e,r)}))}:ge;const pe=vr;function ye(e,r,t){var n=r(e);return i.isArray(e)?n:E.arrayPush(n,t(e))}function U(e){return ye(e,ce,pe)}var dr=i.getNative(i.root,"DataView");const D=dr;var Ar=i.getNative(i.root,"Promise");const B=Ar;var br=i.getNative(i.root,"Set");const F=br;var Z="[object Map]",_r="[object Object]",J="[object Promise]",Q="[object Set]",X="[object WeakMap]",k="[object DataView]",Tr=i.toSource(D),Or=i.toSource(i.Map),wr=i.toSource(B),$r=i.toSource(F),Pr=i.toSource(I),w=i.baseGetTag;(D&&w(new D(new ArrayBuffer(1)))!=k||i.Map&&w(new i.Map)!=Z||B&&w(B.resolve())!=J||F&&w(new F)!=Q||I&&w(new I)!=X)&&(w=function(e){var r=i.baseGetTag(e),t=r==_r?e.constructor:void 0,n=t?i.toSource(t):"";if(n)switch(n){case Tr:return k;case Or:return Z;case wr:return J;case $r:return Q;case Pr:return X}return r});const G=w;var Sr=i.root.Uint8Array;const K=Sr;var Er="__lodash_hash_undefined__";function mr(e){return this.__data__.set(e,Er),this}function hr(e){return this.__data__.has(e)}function j(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new i.MapCache;++r<t;)this.add(e[r])}j.prototype.add=j.prototype.push=mr;j.prototype.has=hr;function Lr(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function Cr(e,r){return e.has(r)}var jr=1,Mr=2;function ve(e,r,t,n,o,a){var s=t&jr,l=e.length,c=r.length;if(l!=c&&!(s&&c>l))return!1;var f=a.get(e),d=a.get(r);if(f&&d)return f==r&&d==e;var p=-1,g=!0,A=t&Mr?new j:void 0;for(a.set(e,r),a.set(r,e);++p<l;){var y=e[p],v=r[p];if(n)var _=s?n(v,y,p,r,e,a):n(y,v,p,e,r,a);if(_!==void 0){if(_)continue;g=!1;break}if(A){if(!Lr(r,function(T,O){if(!Cr(A,O)&&(y===T||o(y,T,t,n,a)))return A.push(O)})){g=!1;break}}else if(!(y===v||o(y,v,t,n,a))){g=!1;break}}return a.delete(e),a.delete(r),g}function xr(e){var r=-1,t=Array(e.size);return e.forEach(function(n,o){t[++r]=[o,n]}),t}function Ir(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Rr=1,Ur=2,Dr="[object Boolean]",Br="[object Date]",Fr="[object Error]",Gr="[object Map]",Kr="[object Number]",Nr="[object RegExp]",qr="[object Set]",Vr="[object String]",Hr="[object Symbol]",zr="[object ArrayBuffer]",Wr="[object DataView]",ee=i.Symbol?i.Symbol.prototype:void 0,x=ee?ee.valueOf:void 0;function Yr(e,r,t,n,o,a,s){switch(t){case Wr:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case zr:return!(e.byteLength!=r.byteLength||!a(new K(e),new K(r)));case Dr:case Br:case Kr:return i.eq(+e,+r);case Fr:return e.name==r.name&&e.message==r.message;case Nr:case Vr:return e==r+"";case Gr:var l=xr;case qr:var c=n&Rr;if(l||(l=Ir),e.size!=r.size&&!c)return!1;var f=s.get(e);if(f)return f==r;n|=Ur,s.set(e,r);var d=ve(l(e),l(r),n,o,a,s);return s.delete(e),d;case Hr:if(x)return x.call(e)==x.call(r)}return!1}var Zr=1,Jr=Object.prototype,Qr=Jr.hasOwnProperty;function Xr(e,r,t,n,o,a){var s=t&Zr,l=U(e),c=l.length,f=U(r),d=f.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var g=l[p];if(!(s?g in r:Qr.call(r,g)))return!1}var A=a.get(e),y=a.get(r);if(A&&y)return A==r&&y==e;var v=!0;a.set(e,r),a.set(r,e);for(var _=s;++p<c;){g=l[p];var T=e[g],O=r[g];if(n)var V=s?n(O,T,g,r,e,a):n(T,O,g,e,r,a);if(!(V===void 0?T===O||o(T,O,t,n,a):V)){v=!1;break}_||(_=g=="constructor")}if(v&&!_){var m=e.constructor,h=r.constructor;m!=h&&"constructor"in e&&"constructor"in r&&!(typeof m=="function"&&m instanceof m&&typeof h=="function"&&h instanceof h)&&(v=!1)}return a.delete(e),a.delete(r),v}var kr=1,re="[object Arguments]",te="[object Array]",L="[object Object]",et=Object.prototype,ne=et.hasOwnProperty;function rt(e,r,t,n,o,a){var s=i.isArray(e),l=i.isArray(r),c=s?te:G(e),f=l?te:G(r);c=c==re?L:c,f=f==re?L:f;var d=c==L,p=f==L,g=c==f;if(g&&C(e)){if(!C(r))return!1;s=!0,d=!1}if(g&&!d)return a||(a=new b),s||N(e)?ve(e,r,t,n,o,a):Yr(e,r,c,t,n,o,a);if(!(t&kr)){var A=d&&ne.call(e,"__wrapped__"),y=p&&ne.call(r,"__wrapped__");if(A||y){var v=A?e.value():e,_=y?r.value():r;return a||(a=new b),o(v,_,t,n,a)}}return g?(a||(a=new b),Xr(e,r,t,n,o,a)):!1}function q(e,r,t,n,o){return e===r?!0:e==null||r==null||!i.isObjectLike(e)&&!i.isObjectLike(r)?e!==e&&r!==r:rt(e,r,t,n,q,o)}function de(e,r){return q(e,r)}const Ae=Symbol("emptyValuesContextKey"),tt=["",void 0,null],nt=void 0,at=$.buildProps({emptyValues:Array,valueOnClear:{type:$.definePropType([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=$.isFunction(e)?e():e,$.isArray(e)?e.every(r=>!r):!e)}}),it=(e,r)=>{const t=P.getCurrentInstance()?P.inject(Ae,P.ref({})):P.ref({}),n=P.computed(()=>e.emptyValues||t.value.emptyValues||tt),o=P.computed(()=>$.isFunction(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:$.isFunction(t.value.valueOnClear)?t.value.valueOnClear():t.value.valueOnClear!==void 0?t.value.valueOnClear:r!==void 0?r:nt),a=s=>{let l=!0;return $.isArray(s)?l=n.value.some(c=>de(s,c)):l=n.value.includes(s),l};return a(o.value),{emptyValues:n,valueOnClear:o,isEmptyValue:a}};exports.Stack=b;exports.Uint8Array=K;exports.arrayLikeKeys=fe;exports.baseGetAllKeys=ye;exports.baseIsEqual=q;exports.baseUnary=ue;exports.emptyValuesContextKey=Ae;exports.getAllKeys=U;exports.getSymbols=pe;exports.getTag=G;exports.isArrayLike=ae;exports.isBuffer=C;exports.isEqual=de;exports.isPrototype=ie;exports.isTypedArray=N;exports.keys=ce;exports.nodeUtil=R;exports.overArg=le;exports.stubArray=ge;exports.useEmptyValues=it;exports.useEmptyValuesProps=at;
|
|
@@ -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-960806da.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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance as F, shallowRef as A, ref as g, watch as E, unref as p, nextTick as _ } from "vue";
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import { x as C } from "./base-
|
|
2
|
+
import { c as v } from "./use-form-common-props-815d48a6.js";
|
|
3
|
+
import { v as b } from "./el-popper-b4f97157.js";
|
|
4
|
+
import { x as C } from "./base-a5af3db3.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 m = F(), { emit: o } = m, e = A(), 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) => {
|
|
@@ -22,7 +22,7 @@ function D(l, {
|
|
|
22
22
|
};
|
|
23
23
|
return E([e, () => p(n)], ([t, a]) => {
|
|
24
24
|
t && (a ? t.removeAttribute("tabindex") : t.setAttribute("tabindex", "-1"));
|
|
25
|
-
}),
|
|
25
|
+
}), v(e, "focus", d, !0), v(e, "blur", h, !0), v(e, "click", x, !0), {
|
|
26
26
|
isFocused: u,
|
|
27
27
|
wrapperRef: e,
|
|
28
28
|
handleFocus: d,
|