st-comp 0.0.279 → 0.0.280
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.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +342 -547
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +253 -253
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +46 -46
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +605 -443
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-aa082a9c.cjs} +1 -1
- package/es/{VarietySelect-41daac7b.js → VarietySelect-c402bade.js} +5 -5
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1929 -2261
- package/es/_baseClone-10bdb989.cjs +1 -0
- package/es/_baseClone-98af8b33.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-33a127c4.cjs +1 -0
- package/es/config-provider-563023c9.js +86 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-ce7496c7.cjs +1 -0
- package/es/dropdown-feea8702.js +178 -0
- package/es/el-autocomplete-d9253bba.cjs +1 -0
- package/es/el-autocomplete-eac54f9f.js +434 -0
- package/es/el-button-8259594b.cjs +1 -0
- package/es/el-button-8a9721f8.js +343 -0
- package/es/el-checkbox-6303fc92.cjs +1 -0
- package/es/el-checkbox-c328b097.js +566 -0
- package/es/el-dialog-67536fac.js +252 -0
- package/es/el-dialog-8788bcc1.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-8efcf2c3.js +1265 -0
- package/es/el-form-item-95e68669.cjs +12 -0
- package/es/el-input-c8a9bb71.cjs +1 -0
- package/es/el-input-e66500b7.js +761 -0
- package/es/el-input-number-68ee0d65.js +390 -0
- package/es/el-input-number-d7a81922.cjs +1 -0
- package/es/el-loading-62132db2.cjs +1 -0
- package/es/el-loading-db4c6d13.js +190 -0
- package/es/el-menu-item-4b8e7794.cjs +1 -0
- package/es/el-menu-item-c2523d82.js +824 -0
- package/es/el-message-box-7c13546c.js +481 -0
- package/es/el-message-box-fed174f0.cjs +1 -0
- package/es/el-overlay-17299785.cjs +1 -0
- package/es/el-overlay-36f223e9.js +444 -0
- package/es/el-popconfirm-520b2928.cjs +1 -0
- package/es/el-popconfirm-a857c54a.js +190 -0
- package/es/el-popper-852446fd.js +2235 -0
- package/es/el-popper-f824c63b.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-45dcc036.cjs +1 -0
- package/es/el-segmented-bf08279f.js +168 -0
- package/es/el-select-a34348e1.js +1535 -0
- package/es/el-select-d2958ae8.cjs +1 -0
- package/es/el-table-column-ad70ee0e.cjs +14 -0
- package/es/el-table-column-e2be313e.js +3651 -0
- package/es/el-tag-527f06f0.cjs +1 -0
- package/es/el-tag-9bcfae32.js +77 -0
- package/es/el-text-f9379288.js +84 -0
- package/es/el-text-fc345ffd.cjs +1 -0
- package/es/index-2419d69a.js +468 -0
- package/es/index-3806160e.js +710 -0
- package/es/index-3a0a7c36.cjs +1 -0
- package/es/index-3e7d5ffb.cjs +1 -0
- package/es/index-3ed0c678.cjs +1 -0
- package/es/index-47d30a52.js +372 -0
- package/es/index-5dec535a.cjs +1 -0
- package/es/index-5e76a22d.cjs +1 -0
- package/es/{index-eb96e074.js → index-60900c6c.js} +223 -254
- package/es/{index-a33b2fb8.js → index-69d2353a.js} +5090 -5090
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-7711aa69.cjs +1 -0
- package/es/index-7c4d8f5d.js +47 -0
- package/es/index-86678b72.js +131 -0
- package/es/index-99bb359f.cjs +1 -0
- package/es/index-99d4335d.cjs +1 -0
- package/es/index-a0522466.js +413 -0
- package/es/index-a181f161.js +429 -0
- package/es/index-b9a26e7f.js +141 -0
- package/es/{index-a9246d17.cjs → index-bb0bc131.cjs} +109 -109
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/{index-44a382a5.js → index-dfb34e00.js} +12 -12
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-8a1664e6.js → python-6eafa04b.js} +32 -31
- package/es/{python-a3db9620.cjs → python-922eca89.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-0a831287.cjs +2 -0
- package/es/use-form-item-187cd7db.js +422 -0
- package/es/use-global-config-17dafd40.js +71 -0
- package/es/use-global-config-c90c91f7.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-800ed2ba.js} +1 -1
- package/es/validator-ee5bc3eb.cjs +1 -0
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-26cc7233.js} +36 -33
- package/es/zh-cn-a22a6792.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +271 -252
- package/lib/{index-62fa175a.js → index-74ed48c6.js} +54107 -52151
- package/lib/{python-4a48fa39.js → python-7aaa84e4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
package/es/index-ac8dc53d.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./index-00f6ca75.cjs"),c=require("./base-ef747d02.cjs"),p=require("./use-form-common-props-ac666630.cjs"),f=c.buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:p.componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),y={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},h=e.defineComponent({name:"ElTag"}),v=e.defineComponent({...h,props:f,emits:y,setup(l,{emit:i}){const k=l,C=p.useFormSize(),n=c.useNamespace("tag"),u=e.computed(()=>{const{type:o,hit:s,effect:t,closable:a,round:b}=k;return[n.b(),n.is("closable",a),n.m(o||"primary"),n.m(C.value),n.m(t),n.is("hit",s),n.is("round",b)]}),d=o=>{i("close",o)},m=o=>{i("click",o)},g=o=>{var s,t,a;(a=(t=(s=o==null?void 0:o.component)==null?void 0:s.subTree)==null?void 0:t.component)!=null&&a.bum&&(o.component.subTree.component.bum=null)};return(o,s)=>o.disableTransitions?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(e.Transition,{key:1,name:`${e.unref(n).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:g},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var z=c._export_sfc(v,[["__file","tag.vue"]]);const _=c.withInstall(z);exports.ElTag=_;exports.tagProps=f;
|
package/es/index-bb833443.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),c=require("./index-9780a537.cjs");function s(e,t,o){var r=e==null?void 0:c.baseGet(e,t);return r===void 0?o:r}var d={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const u=e=>(t,o)=>m(t,o,a.unref(e)),m=(e,t,o)=>s(o,e,e).replace(/\{(\w+)\}/g,(r,n)=>{var l;return`${(l=t==null?void 0:t[n])!=null?l:`{${n}}`}`}),p=e=>{const t=a.computed(()=>a.unref(e).name),o=a.isRef(e)?e:a.ref(e);return{lang:t,locale:o,t:u(e)}},i=Symbol("localeContextKey"),h=e=>{const t=e||a.inject(i,a.ref());return p(a.computed(()=>t.value||d))};exports.get=s;exports.localeContextKey=i;exports.useLocale=h;
|
package/es/index-c5f2d372.js
DELETED
|
@@ -1,326 +0,0 @@
|
|
|
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-ed72e914.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-fbd0dcea.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
|
-
};
|
package/es/index-c6584658.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
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 { i as f, g as r, E as V } from "./el-popper-fbd0dcea.js";
|
|
3
|
-
import { d } from "./dropdown-72fbc15d.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
|
-
const q = O({
|
|
6
|
-
trigger: f.trigger,
|
|
7
|
-
triggerKeys: f.triggerKeys,
|
|
8
|
-
placement: d.placement,
|
|
9
|
-
disabled: f.disabled,
|
|
10
|
-
visible: r.visible,
|
|
11
|
-
transition: r.transition,
|
|
12
|
-
popperOptions: d.popperOptions,
|
|
13
|
-
tabindex: d.tabindex,
|
|
14
|
-
content: r.content,
|
|
15
|
-
popperStyle: r.popperStyle,
|
|
16
|
-
popperClass: r.popperClass,
|
|
17
|
-
enterable: {
|
|
18
|
-
...r.enterable,
|
|
19
|
-
default: !0
|
|
20
|
-
},
|
|
21
|
-
effect: {
|
|
22
|
-
...r.effect,
|
|
23
|
-
default: "light"
|
|
24
|
-
},
|
|
25
|
-
teleported: r.teleported,
|
|
26
|
-
appendTo: r.appendTo,
|
|
27
|
-
title: String,
|
|
28
|
-
width: {
|
|
29
|
-
type: [String, Number],
|
|
30
|
-
default: 150
|
|
31
|
-
},
|
|
32
|
-
offset: {
|
|
33
|
-
type: Number,
|
|
34
|
-
default: void 0
|
|
35
|
-
},
|
|
36
|
-
showAfter: {
|
|
37
|
-
type: Number,
|
|
38
|
-
default: 0
|
|
39
|
-
},
|
|
40
|
-
hideAfter: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default: 200
|
|
43
|
-
},
|
|
44
|
-
autoClose: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 0
|
|
47
|
-
},
|
|
48
|
-
showArrow: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !0
|
|
51
|
-
},
|
|
52
|
-
persistent: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: !0
|
|
55
|
-
},
|
|
56
|
-
"onUpdate:visible": {
|
|
57
|
-
type: Function
|
|
58
|
-
}
|
|
59
|
-
}), G = {
|
|
60
|
-
"update:visible": (t) => H(t),
|
|
61
|
-
"before-enter": () => !0,
|
|
62
|
-
"before-leave": () => !0,
|
|
63
|
-
"after-enter": () => !0,
|
|
64
|
-
"after-leave": () => !0
|
|
65
|
-
}, J = "onUpdate:visible", M = h({
|
|
66
|
-
name: "ElPopover"
|
|
67
|
-
}), Q = /* @__PURE__ */ h({
|
|
68
|
-
...M,
|
|
69
|
-
props: q,
|
|
70
|
-
emits: G,
|
|
71
|
-
setup(t, { expose: p, emit: n }) {
|
|
72
|
-
const o = t, y = a(() => o[J]), i = I("popover"), l = T(), w = a(() => {
|
|
73
|
-
var e;
|
|
74
|
-
return (e = s(l)) == null ? void 0 : e.popperRef;
|
|
75
|
-
}), E = a(() => [
|
|
76
|
-
{
|
|
77
|
-
width: L(o.width)
|
|
78
|
-
},
|
|
79
|
-
o.popperStyle
|
|
80
|
-
]), P = a(() => [i.b(), o.popperClass, { [i.m("plain")]: !!o.content }]), C = a(() => o.transition === `${i.namespace.value}-fade-in-linear`), k = () => {
|
|
81
|
-
var e;
|
|
82
|
-
(e = l.value) == null || e.hide();
|
|
83
|
-
}, S = () => {
|
|
84
|
-
n("before-enter");
|
|
85
|
-
}, A = () => {
|
|
86
|
-
n("before-leave");
|
|
87
|
-
}, B = () => {
|
|
88
|
-
n("after-enter");
|
|
89
|
-
}, N = () => {
|
|
90
|
-
n("update:visible", !1), n("after-leave");
|
|
91
|
-
};
|
|
92
|
-
return p({
|
|
93
|
-
popperRef: w,
|
|
94
|
-
hide: k
|
|
95
|
-
}), (e, _) => (u(), R(s(V), U({
|
|
96
|
-
ref_key: "tooltipRef",
|
|
97
|
-
ref: l
|
|
98
|
-
}, e.$attrs, {
|
|
99
|
-
trigger: e.trigger,
|
|
100
|
-
"trigger-keys": e.triggerKeys,
|
|
101
|
-
placement: e.placement,
|
|
102
|
-
disabled: e.disabled,
|
|
103
|
-
visible: e.visible,
|
|
104
|
-
transition: e.transition,
|
|
105
|
-
"popper-options": e.popperOptions,
|
|
106
|
-
tabindex: e.tabindex,
|
|
107
|
-
content: e.content,
|
|
108
|
-
offset: e.offset,
|
|
109
|
-
"show-after": e.showAfter,
|
|
110
|
-
"hide-after": e.hideAfter,
|
|
111
|
-
"auto-close": e.autoClose,
|
|
112
|
-
"show-arrow": e.showArrow,
|
|
113
|
-
"aria-label": e.title,
|
|
114
|
-
effect: e.effect,
|
|
115
|
-
enterable: e.enterable,
|
|
116
|
-
"popper-class": s(P),
|
|
117
|
-
"popper-style": s(E),
|
|
118
|
-
teleported: e.teleported,
|
|
119
|
-
"append-to": e.appendTo,
|
|
120
|
-
persistent: e.persistent,
|
|
121
|
-
"gpu-acceleration": s(C),
|
|
122
|
-
"onUpdate:visible": s(y),
|
|
123
|
-
onBeforeShow: S,
|
|
124
|
-
onBeforeHide: A,
|
|
125
|
-
onShow: B,
|
|
126
|
-
onHide: N
|
|
127
|
-
}), {
|
|
128
|
-
content: v(() => [
|
|
129
|
-
e.title ? (u(), $("div", {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: D(s(i).e("title")),
|
|
132
|
-
role: "title"
|
|
133
|
-
}, c(e.title), 3)) : b("v-if", !0),
|
|
134
|
-
g(e.$slots, "default", {}, () => [
|
|
135
|
-
K(c(e.content), 1)
|
|
136
|
-
])
|
|
137
|
-
]),
|
|
138
|
-
default: v(() => [
|
|
139
|
-
e.$slots.reference ? g(e.$slots, "reference", { key: 0 }) : b("v-if", !0)
|
|
140
|
-
]),
|
|
141
|
-
_: 3
|
|
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
|
-
}
|
|
144
|
-
});
|
|
145
|
-
var W = /* @__PURE__ */ z(Q, [["__file", "popover.vue"]]);
|
|
146
|
-
const m = (t, p) => {
|
|
147
|
-
const n = p.arg || p.value, o = n == null ? void 0 : n.popperRef;
|
|
148
|
-
o && (o.triggerRef = t);
|
|
149
|
-
};
|
|
150
|
-
var X = {
|
|
151
|
-
mounted(t, p) {
|
|
152
|
-
m(t, p);
|
|
153
|
-
},
|
|
154
|
-
updated(t, p) {
|
|
155
|
-
m(t, p);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
const Y = "popover", Z = F(X, Y), re = j(W, {
|
|
159
|
-
directive: Z
|
|
160
|
-
});
|
|
161
|
-
export {
|
|
162
|
-
re as E
|
|
163
|
-
};
|