st-comp 0.0.220 → 0.0.222
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/CustomFunction.js +30 -30
- package/es/FactorWarning.js +33 -33
- package/es/Kline.js +17 -17
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +432 -401
- package/es/KlineConfig.js +61 -61
- package/es/KlineNew.js +16 -16
- package/es/KlinePlus.js +19 -19
- package/es/Pagination.js +73 -73
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.js +38 -38
- package/es/TreeMap.cjs +1 -2
- package/es/TreeMap.js +1 -163
- package/es/User.js +44 -44
- package/es/VarSelectDialog.js +24 -24
- package/es/VarietyAutoComplete.js +10 -10
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +2388 -2224
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +15 -15
- package/es/VirtualTable.js +70 -70
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-71a2d663.js} +7 -7
- package/es/{base-a5af3db3.js → base-ff0e366f.js} +40 -40
- package/es/{castArray-7741a212.js → castArray-15070be9.js} +1 -1
- package/es/{config-provider-b16efd62.js → config-provider-ef3c8ca2.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-e9e47f9a.js} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-41512a70.js} +13 -13
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-6b56f161.js} +16 -16
- package/es/{el-button-c95adb85.js → el-button-72e66b1c.js} +39 -39
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-7df65088.js} +31 -31
- package/es/{el-dialog-41ab8417.js → el-dialog-7d6e8f91.js} +15 -15
- package/es/{el-divider-4e059794.js → el-divider-4fe55ebe.js} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-ceecb81c.js} +5 -5
- package/es/{el-form-item-c53c374d.js → el-form-item-706eb72e.js} +36 -36
- package/es/{el-input-2f75c4ba.js → el-input-8cafa639.js} +55 -55
- package/es/{el-input-number-5193fe6d.js → el-input-number-7907c63c.js} +36 -36
- package/es/{el-loading-f6022062.js → el-loading-3cfc4e19.js} +5 -5
- package/es/{el-menu-item-7e881203.js → el-menu-item-f7436984.js} +22 -22
- package/es/{el-message-box-a93d2f6a.js → el-message-box-8e4d6990.js} +11 -11
- package/es/{el-message-e544a8f5.js → el-message-f3d56a3e.js} +23 -23
- package/es/{el-overlay-09ad71cd.js → el-overlay-31707230.js} +56 -56
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-b113716a.js} +20 -20
- package/es/{el-popper-b4f97157.js → el-popper-f28554e1.js} +109 -109
- package/es/{el-segmented-b868d074.js → el-segmented-5f4d8e64.js} +8 -8
- package/es/{el-select-95627997.js → el-select-90ba1ff9.js} +64 -64
- package/es/{el-table-column-376cd907.js → el-table-column-bccab55d.js} +15 -15
- package/es/{el-tag-66cab138.js → el-tag-f03f602d.js} +15 -15
- package/es/{el-text-ac60d0f2.js → el-text-f106c80e.js} +2 -2
- package/es/{index-57672682.js → index-00e91ed2.js} +3 -3
- package/es/{index-a871c3eb.js → index-065f4c40.js} +29 -29
- package/es/{index-844bdd85.js → index-158df623.js} +34 -34
- package/es/{index-960806da.js → index-269b8a8c.js} +36 -36
- package/es/{index-d91dc23f.js → index-49767c81.js} +12 -12
- package/es/{index-e5566b94.js → index-60dd8509.js} +43 -43
- package/es/{index-88546436.js → index-89707217.js} +17 -17
- package/es/{index-d77a7336.js → index-93a8960e.js} +1 -1
- package/es/{index-1f7d4f70.js → index-b792012c.js} +2 -2
- package/es/raf-8e05a7f4.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-41b4f625.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-form-common-props-815d48a6.js → use-form-common-props-1f967d2e.js} +67 -67
- package/es/{use-global-config-b5e9d3d5.js → use-global-config-ded5e07b.js} +14 -14
- package/es/{validator-764a9db0.js → validator-5c8b5cdc.js} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-06571d5b.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-cae8ba43.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +174 -174
- package/lib/{index-5488b4d1.js → index-b2c7b8c5.js} +18110 -17915
- package/lib/{python-8dfbca86.js → python-430bbf9c.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/AverageTips/index.vue +33 -0
- package/packages/KlineBasic/components/KlineSub/index.vue +2 -2
- package/packages/KlineBasic/components/Tips/index.vue +21 -3
- package/packages/VarietySearch/components/AddTag/index.vue +191 -0
- package/packages/VarietySearch/index.vue +14 -13
- package/src/pages/KlineBasic/api.js +1 -1
- package/es/raf-80ef0c0a.js +0 -6
package/es/VarietyTextCopy.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";require("./base-ef747d02.cjs");const v=require("./el-input-7fd293af.cjs");require("./el-tooltip-0ea8fbf8.cjs");const q=require("./el-popper-b6c99b28.cjs"),e=require("vue"),i=require("./index-098c2447.cjs"),V=require("./
|
|
2
|
-
`).reduce((s,a)=>{const t=a.trim().replace(/\s+/gi," ").split(" ")[0];return t&&s.push(t),s},[]):[];return u({validate:n=>new Promise(async(s,a)=>{try{if(p.required&&(!o.value||o.value.trim()===""))return
|
|
1
|
+
"use strict";require("./base-ef747d02.cjs");const v=require("./el-input-7fd293af.cjs");require("./el-tooltip-0ea8fbf8.cjs");const q=require("./el-popper-b6c99b28.cjs"),e=require("vue"),i=require("./index-098c2447.cjs"),V=require("./_plugin-vue_export-helper-f246444f.cjs"),f=require("./el-message-5e6a6be9.cjs");require("./use-form-common-props-fd9b61a0.cjs");require("./index-9780a537.cjs");require("./typescript-b63f8e83.cjs");require("./index-11547a0c.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-bb833443.cjs");require("./index-c108567d.cjs");require("./config-provider-a584d81e.cjs");const c=r=>(e.pushScopeId("data-v-445e2903"),r=r(),e.popScopeId(),r),h={class:"variety-text-copy"},y={class:"stats-container"},N={class:"stat-item"},g=c(()=>e.createElementVNode("span",{class:"label"},"品种数量统计:",-1)),E={class:"value"},C=c(()=>e.createElementVNode("br",null,null,-1)),I=c(()=>e.createElementVNode("br",null,null,-1)),w={__name:"index",props:{required:{type:Boolean,default:!0}},setup(r,{expose:u}){const d=e.inject("stConfig"),p=r,o=e.ref(""),_=e.computed(()=>l(o.value).length),l=n=>n?n.split(`
|
|
2
|
+
`).reduce((s,a)=>{const t=a.trim().replace(/\s+/gi," ").split(" ")[0];return t&&s.push(t),s},[]):[];return u({validate:n=>new Promise(async(s,a)=>{try{if(p.required&&(!o.value||o.value.trim()===""))return f.ElMessage.error("品种内容不可为空"),n(!1);const{body:t}=await d.request.post("/invest/analysis/strategy/verifyCodes",{codes:l(o.value)});return n(!0,t)}catch(t){return a(t)}})}),(n,s)=>{const a=i.ElIcon,t=q.ElTooltip,x=v.ElInput;return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",y,[e.createElementVNode("div",N,[g,e.createElementVNode("span",E,e.toDisplayString(_.value),1),e.createVNode(t,{class:"box-item",effect:"dark",placement:"right"},{content:e.withCtx(()=>[e.createTextVNode(" 仅统计符合输入格式的数量, 输入格式示例(代码和名称需空格隔开, 名称可不写):"),C,e.createTextVNode("hc8888 热轧卷板期货指数 "),I,e.createTextVNode("sp8888 纸浆期货指数")]),default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.info_filled_default))]),_:1})]),_:1})])]),e.createVNode(x,{class:"textarea",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=m=>o.value=m),resize:"none",type:"textarea",placeholder:`文本格式要求示例:
|
|
3
3
|
hc8888 热轧卷板期货指数
|
|
4
4
|
sp8888 纸浆期货指数
|
|
5
|
-
bu8888 石油沥青期货指数`},null,8,["modelValue"])])}}},S=
|
|
5
|
+
bu8888 石油沥青期货指数`},null,8,["modelValue"])])}}},S=V._export_sfc(w,[["__scopeId","data-v-445e2903"]]),T={install(r){r.component("st-varietyTextCopy",S)}};module.exports=T;
|
package/es/VarietyTextCopy.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { E as y } from "./el-input-
|
|
1
|
+
import "./base-ff0e366f.js";
|
|
2
|
+
import { E as y } from "./el-input-8cafa639.js";
|
|
3
3
|
import "./el-tooltip-4ed993c7.js";
|
|
4
|
-
import { E as h } from "./el-popper-
|
|
4
|
+
import { E as h } from "./el-popper-f28554e1.js";
|
|
5
5
|
import { inject as g, ref as E, computed as C, openBlock as V, createElementBlock as I, createElementVNode as n, toDisplayString as S, createVNode as i, withCtx as l, createTextVNode as c, unref as b, pushScopeId as w, popScopeId as T } from "vue";
|
|
6
|
-
import { i as q, E as B } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./use-form-common-props-
|
|
10
|
-
import "./index-
|
|
6
|
+
import { i as q, E as B } from "./index-065f4c40.js";
|
|
7
|
+
import { _ as N } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
+
import { E as k } from "./el-message-f3d56a3e.js";
|
|
9
|
+
import "./use-form-common-props-1f967d2e.js";
|
|
10
|
+
import "./index-269b8a8c.js";
|
|
11
11
|
import "./typescript-7ae59c4c.js";
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./use-global-config-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./config-provider-
|
|
12
|
+
import "./index-49767c81.js";
|
|
13
|
+
import "./use-global-config-ded5e07b.js";
|
|
14
|
+
import "./index-93a8960e.js";
|
|
15
|
+
import "./index-60dd8509.js";
|
|
16
|
+
import "./config-provider-ef3c8ca2.js";
|
|
17
17
|
const p = (t) => (w("data-v-445e2903"), t = t(), T(), t), j = { class: "variety-text-copy" }, z = { class: "stats-container" }, D = { class: "stat-item" }, F = /* @__PURE__ */ p(() => /* @__PURE__ */ n("span", { class: "label" }, "品种数量统计:", -1)), M = { class: "value" }, P = /* @__PURE__ */ p(() => /* @__PURE__ */ n("br", null, null, -1)), U = /* @__PURE__ */ p(() => /* @__PURE__ */ n("br", null, null, -1)), A = {
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -28,7 +28,7 @@ const p = (t) => (w("data-v-445e2903"), t = t(), T(), t), j = { class: "variety-
|
|
|
28
28
|
return d({ validate: (s) => new Promise(async (r, a) => {
|
|
29
29
|
try {
|
|
30
30
|
if (m.required && (!o.value || o.value.trim() === ""))
|
|
31
|
-
return
|
|
31
|
+
return k.error("品种内容不可为空"), s(!1);
|
|
32
32
|
const { body: e } = await _.request.post("/invest/analysis/strategy/verifyCodes", { codes: u(o.value) });
|
|
33
33
|
return s(!0, e);
|
|
34
34
|
} catch (e) {
|
|
@@ -79,7 +79,7 @@ bu8888 石油沥青期货指数`
|
|
|
79
79
|
]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}, G = /* @__PURE__ */
|
|
82
|
+
}, G = /* @__PURE__ */ N(A, [["__scopeId", "data-v-445e2903"]]), ne = {
|
|
83
83
|
install(t) {
|
|
84
84
|
t.component("st-varietyTextCopy", G);
|
|
85
85
|
}
|
package/es/VirtualTable.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as Qt } from "./el-empty-
|
|
1
|
+
import { O as Oe, d as I, b as ae, u as Ie, h as xt, f as Q, i as We, j as Qe, c as Tt, a as Dl, e as Nt, s as Pl, o as $l, w as Jt } from "./base-ff0e366f.js";
|
|
2
|
+
import { E as Qt } from "./el-empty-ceecb81c.js";
|
|
3
3
|
import { B as Fl } from "./el-scrollbar-323542e7.js";
|
|
4
|
-
import { E as Wl } from "./el-divider-
|
|
5
|
-
import { E as Gl } from "./el-button-
|
|
6
|
-
import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as F, reactive as kl, unref as n, watch as Re, onBeforeUnmount as el, h as ue, withModifiers as Vl, shallowRef as $e, nextTick as Se, isVNode as Ne, toRef as Lt, inject as Et, onUpdated as Kl, createVNode as C, onMounted as rt, resolveDynamicComponent as zt, Fragment as
|
|
7
|
-
import { d as Zl } from "./debounce-
|
|
4
|
+
import { E as Wl } from "./el-divider-4fe55ebe.js";
|
|
5
|
+
import { E as Gl } from "./el-button-72e66b1c.js";
|
|
6
|
+
import { getCurrentInstance as nt, computed as E, defineComponent as xe, ref as F, reactive as kl, unref as n, watch as Re, onBeforeUnmount as el, h as ue, withModifiers as Vl, shallowRef as $e, nextTick as Se, isVNode as Ne, toRef as Lt, inject as Et, onUpdated as Kl, createVNode as C, onMounted as rt, resolveDynamicComponent as zt, Fragment as Bl, provide as tl, onActivated as jl, mergeProps as Y, renderSlot as Ye, mergeModels as Dt, useModel as ql, onUnmounted as Ul, openBlock as Xe, createBlock as it, withCtx as De, createElementBlock as Yl, createTextVNode as Pt, createCommentVNode as $t } from "vue";
|
|
7
|
+
import { d as Zl } from "./debounce-e9e47f9a.js";
|
|
8
8
|
import { m as ll } from "./typescript-7ae59c4c.js";
|
|
9
|
-
import { c as Xl } from "./castArray-
|
|
10
|
-
import {
|
|
11
|
-
import { c as ol, r as nl } from "./raf-
|
|
12
|
-
import {
|
|
13
|
-
import { g as to } from "./scroll-
|
|
14
|
-
import { E as rl,
|
|
15
|
-
import { g as ro } from "./index-
|
|
9
|
+
import { c as Xl } from "./castArray-15070be9.js";
|
|
10
|
+
import { b as Jl, h as Ql } from "./use-form-common-props-1f967d2e.js";
|
|
11
|
+
import { c as ol, r as nl } from "./raf-8e05a7f4.js";
|
|
12
|
+
import { o as eo } from "./index-269b8a8c.js";
|
|
13
|
+
import { g as to } from "./scroll-41b4f625.js";
|
|
14
|
+
import { E as rl, r as lo, B as oo, C as no } from "./index-065f4c40.js";
|
|
15
|
+
import { g as ro } from "./index-93a8960e.js";
|
|
16
16
|
import { _ as ao } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
17
|
import "./index-2e331d74.js";
|
|
18
|
-
import "./use-global-config-
|
|
19
|
-
import "./index-
|
|
18
|
+
import "./use-global-config-ded5e07b.js";
|
|
19
|
+
import "./index-60dd8509.js";
|
|
20
20
|
import "./index-657047bb.js";
|
|
21
21
|
var Ft = Number.isNaN || function(t) {
|
|
22
22
|
return typeof t == "number" && t !== t;
|
|
@@ -57,7 +57,7 @@ const uo = () => {
|
|
|
57
57
|
const l = (o, a, r) => ({});
|
|
58
58
|
return t.perfMode ? eo(l) : co(l);
|
|
59
59
|
});
|
|
60
|
-
}, Wt = 50, Gt = "itemRendered", kt = "scroll",
|
|
60
|
+
}, Wt = 50, Gt = "itemRendered", kt = "scroll", Be = "forward", dt = "backward", He = "auto", al = "smart", ut = "start", Fe = "center", ht = "end", ft = "horizontal", sl = "vertical", il = "rtl", mt = "negative", cl = "positive-ascending", dl = "positive-descending", ho = {
|
|
61
61
|
[ft]: "left",
|
|
62
62
|
[sl]: "top"
|
|
63
63
|
}, fo = 20, vt = Oe({
|
|
@@ -173,7 +173,7 @@ const uo = () => {
|
|
|
173
173
|
startGap: fl,
|
|
174
174
|
endGap: ml,
|
|
175
175
|
visible: Boolean
|
|
176
|
-
}), Je = (e, t) => e < t ?
|
|
176
|
+
}), Je = (e, t) => e < t ? Be : dt, Vt = (e) => e === il;
|
|
177
177
|
let Pe = null;
|
|
178
178
|
function Kt(e = !1) {
|
|
179
179
|
if (Pe === null || e) {
|
|
@@ -188,7 +188,7 @@ function go({ move: e, size: t, bar: l }, o) {
|
|
|
188
188
|
const a = {}, r = `translate${l.axis}(${e}px)`;
|
|
189
189
|
return a[l.size] = t, a.transform = r, o === "horizontal" ? a.height = "100%" : a.width = "100%", a;
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const Bt = xe({
|
|
192
192
|
name: "ElVirtualScrollBar",
|
|
193
193
|
props: vl,
|
|
194
194
|
emits: ["scroll", "start-move", "stop-move"],
|
|
@@ -276,7 +276,7 @@ const jt = xe({
|
|
|
276
276
|
}, []));
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
|
-
var
|
|
279
|
+
var je = /* @__PURE__ */ ((e) => (e.ASC = "asc", e.DESC = "desc", e))(je || {}), qe = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(qe || {}), gl = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(gl || {});
|
|
280
280
|
const St = {
|
|
281
281
|
asc: "desc",
|
|
282
282
|
desc: "asc"
|
|
@@ -331,7 +331,7 @@ function wo(e, t, l) {
|
|
|
331
331
|
if (!g)
|
|
332
332
|
return;
|
|
333
333
|
const { sortState: S, sortBy: H } = e;
|
|
334
|
-
let M =
|
|
334
|
+
let M = je.ASC;
|
|
335
335
|
xt(S) ? M = St[S[g]] : M = St[H.order], (i = e.onColumnSort) == null || i.call(e, { column: b(g), key: g, order: M });
|
|
336
336
|
}
|
|
337
337
|
return {
|
|
@@ -411,8 +411,8 @@ const bo = (e, {
|
|
|
411
411
|
function H({ hovered: x, rowKey: A }) {
|
|
412
412
|
if (s.value)
|
|
413
413
|
return;
|
|
414
|
-
a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((
|
|
415
|
-
x ?
|
|
414
|
+
a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach((B) => {
|
|
415
|
+
x ? B.classList.add(r.is("hovered")) : B.classList.remove(r.is("hovered"));
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
function M({
|
|
@@ -421,14 +421,14 @@ const bo = (e, {
|
|
|
421
421
|
rowIndex: W,
|
|
422
422
|
rowKey: N
|
|
423
423
|
}) {
|
|
424
|
-
var
|
|
424
|
+
var B, j;
|
|
425
425
|
const V = [...n(u)], U = V.indexOf(N);
|
|
426
|
-
x ? U === -1 && V.push(N) : U > -1 && V.splice(U, 1), u.value = V, m("update:expandedRowKeys", V), (
|
|
426
|
+
x ? U === -1 && V.push(N) : U > -1 && V.splice(U, 1), u.value = V, m("update:expandedRowKeys", V), (B = e.onRowExpand) == null || B.call(e, {
|
|
427
427
|
expanded: x,
|
|
428
428
|
rowData: A,
|
|
429
429
|
rowIndex: W,
|
|
430
430
|
rowKey: N
|
|
431
|
-
}), (
|
|
431
|
+
}), (j = e.onExpandedRowsChange) == null || j.call(e, V), a.vnode.el.querySelector(`.${r.is("hovered")}[rowkey="${String(N)}"]`) && Se(() => H({ hovered: !0, rowKey: N }));
|
|
432
432
|
}
|
|
433
433
|
const R = Zl(() => {
|
|
434
434
|
var x, A, W, N;
|
|
@@ -446,8 +446,8 @@ const bo = (e, {
|
|
|
446
446
|
}
|
|
447
447
|
function G({ rowKey: x, height: A, rowIndex: W }, N) {
|
|
448
448
|
N ? N === gl.RIGHT ? i.value[x] = A : h.value[x] = A : d.value[x] = A;
|
|
449
|
-
const
|
|
450
|
-
n(y)[x] !==
|
|
449
|
+
const B = Math.max(...[h, i, d].map((j) => j.value[x] || 0));
|
|
450
|
+
n(y)[x] !== B && (z(x, B, W), R());
|
|
451
451
|
}
|
|
452
452
|
return {
|
|
453
453
|
expandedRowKeys: u,
|
|
@@ -568,8 +568,8 @@ function Eo(e) {
|
|
|
568
568
|
resetAfterIndex: A,
|
|
569
569
|
onRowExpanded: W,
|
|
570
570
|
onRowHeightChange: N,
|
|
571
|
-
onRowHovered:
|
|
572
|
-
onRowsRendered:
|
|
571
|
+
onRowHovered: B,
|
|
572
|
+
onRowsRendered: j
|
|
573
573
|
} = So(e, {
|
|
574
574
|
mainTableRef: t,
|
|
575
575
|
leftTableRef: l,
|
|
@@ -647,9 +647,9 @@ function Eo(e) {
|
|
|
647
647
|
showEmpty: Ge,
|
|
648
648
|
getRowHeight: ke,
|
|
649
649
|
onColumnSorted: v,
|
|
650
|
-
onRowHovered:
|
|
650
|
+
onRowHovered: B,
|
|
651
651
|
onRowExpanded: W,
|
|
652
|
-
onRowsRendered:
|
|
652
|
+
onRowsRendered: j,
|
|
653
653
|
onRowHeightChange: N,
|
|
654
654
|
scrollTo: b,
|
|
655
655
|
scrollToLeft: y,
|
|
@@ -667,7 +667,7 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
|
|
|
667
667
|
}, Sl = {
|
|
668
668
|
...Ct,
|
|
669
669
|
required: !0
|
|
670
|
-
}, _o = String,
|
|
670
|
+
}, _o = String, jt = {
|
|
671
671
|
type: I(Array),
|
|
672
672
|
default: () => ll([])
|
|
673
673
|
}, Ce = {
|
|
@@ -820,8 +820,8 @@ const _t = Symbol("tableV2"), wl = "tableV2GridScrollLeft", bl = String, Ze = {
|
|
|
820
820
|
},
|
|
821
821
|
fixedData: Ct,
|
|
822
822
|
expandColumnKey: pe.expandColumnKey,
|
|
823
|
-
expandedRowKeys:
|
|
824
|
-
defaultExpandedRowKeys:
|
|
823
|
+
expandedRowKeys: jt,
|
|
824
|
+
defaultExpandedRowKeys: jt,
|
|
825
825
|
class: bl,
|
|
826
826
|
fixed: Boolean,
|
|
827
827
|
style: {
|
|
@@ -986,24 +986,24 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
986
986
|
scrollLeft: Q(h.initScrollLeft) ? h.initScrollLeft : 0,
|
|
987
987
|
scrollTop: Q(h.initScrollTop) ? h.initScrollTop : 0,
|
|
988
988
|
updateRequested: !1,
|
|
989
|
-
xAxisScrollDir:
|
|
990
|
-
yAxisScrollDir:
|
|
991
|
-
}), A = uo(), W = E(() => Number.parseInt(`${h.height}`, 10)), N = E(() => Number.parseInt(`${h.width}`, 10)),
|
|
989
|
+
xAxisScrollDir: Be,
|
|
990
|
+
yAxisScrollDir: Be
|
|
991
|
+
}), A = uo(), W = E(() => Number.parseInt(`${h.height}`, 10)), N = E(() => Number.parseInt(`${h.width}`, 10)), B = E(() => {
|
|
992
992
|
const { totalColumn: T, totalRow: _, columnCache: p } = h, { isScrolling: D, xAxisScrollDir: L, scrollLeft: O } = n(x);
|
|
993
993
|
if (T === 0 || _ === 0)
|
|
994
994
|
return [0, 0, 0, 0];
|
|
995
|
-
const P = o(h, O, n(M)), k = a(h, P, O, n(M)), K = !D || L === dt ? Math.max(1, p) : 1, X = !D || L ===
|
|
995
|
+
const P = o(h, O, n(M)), k = a(h, P, O, n(M)), K = !D || L === dt ? Math.max(1, p) : 1, X = !D || L === Be ? Math.max(1, p) : 1;
|
|
996
996
|
return [
|
|
997
997
|
Math.max(0, P - K),
|
|
998
998
|
Math.max(0, Math.min(T - 1, k + X)),
|
|
999
999
|
P,
|
|
1000
1000
|
k
|
|
1001
1001
|
];
|
|
1002
|
-
}),
|
|
1002
|
+
}), j = E(() => {
|
|
1003
1003
|
const { totalColumn: T, totalRow: _, rowCache: p } = h, { isScrolling: D, yAxisScrollDir: L, scrollTop: O } = n(x);
|
|
1004
1004
|
if (T === 0 || _ === 0)
|
|
1005
1005
|
return [0, 0, 0, 0];
|
|
1006
|
-
const P = u(h, O, n(M)), k = v(h, P, O, n(M)), K = !D || L === dt ? Math.max(1, p) : 1, X = !D || L ===
|
|
1006
|
+
const P = u(h, O, n(M)), k = v(h, P, O, n(M)), K = !D || L === dt ? Math.max(1, p) : 1, X = !D || L === Be ? Math.max(1, p) : 1;
|
|
1007
1007
|
return [
|
|
1008
1008
|
Math.max(0, P - K),
|
|
1009
1009
|
Math.max(0, Math.min(_ - 1, k + X)),
|
|
@@ -1041,7 +1041,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1041
1041
|
K,
|
|
1042
1042
|
X,
|
|
1043
1043
|
te
|
|
1044
|
-
] = n(
|
|
1044
|
+
] = n(B), [J, ee, Ee, at] = n(j);
|
|
1045
1045
|
d(Gt, {
|
|
1046
1046
|
columnCacheStart: k,
|
|
1047
1047
|
columnCacheEnd: K,
|
|
@@ -1214,7 +1214,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1214
1214
|
scrollbarEndGap: p,
|
|
1215
1215
|
totalColumn: D,
|
|
1216
1216
|
totalRow: L
|
|
1217
|
-
} = h, O = n(N), P = n(W), k = n(U), K = n(V), { scrollLeft: X, scrollTop: te } = n(x), J = ue(
|
|
1217
|
+
} = h, O = n(N), P = n(W), k = n(U), K = n(V), { scrollLeft: X, scrollTop: te } = n(x), J = ue(Bt, {
|
|
1218
1218
|
ref: $,
|
|
1219
1219
|
alwaysOn: T,
|
|
1220
1220
|
startGap: _,
|
|
@@ -1227,7 +1227,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1227
1227
|
scrollFrom: X / (k - O),
|
|
1228
1228
|
total: L,
|
|
1229
1229
|
visible: !0
|
|
1230
|
-
}), ee = ue(
|
|
1230
|
+
}), ee = ue(Bt, {
|
|
1231
1231
|
ref: z,
|
|
1232
1232
|
alwaysOn: T,
|
|
1233
1233
|
startGap: _,
|
|
@@ -1247,12 +1247,12 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1247
1247
|
};
|
|
1248
1248
|
}, q = () => {
|
|
1249
1249
|
var T;
|
|
1250
|
-
const [_, p] = n(
|
|
1250
|
+
const [_, p] = n(B), [D, L] = n(j), { data: O, totalColumn: P, totalRow: k, useIsScrolling: K, itemKey: X } = h, te = [];
|
|
1251
1251
|
if (k > 0 && P > 0)
|
|
1252
1252
|
for (let J = D; J <= L; J++)
|
|
1253
1253
|
for (let ee = _; ee <= p; ee++) {
|
|
1254
1254
|
const Ee = X({ columnIndex: ee, data: O, rowIndex: J });
|
|
1255
|
-
te.push(ue(
|
|
1255
|
+
te.push(ue(Bl, { key: Ee }, (T = g.default) == null ? void 0 : T.call(g, {
|
|
1256
1256
|
columnIndex: ee,
|
|
1257
1257
|
data: O,
|
|
1258
1258
|
isScrolling: K ? n(x).isScrolling : void 0,
|
|
@@ -1608,7 +1608,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1608
1608
|
scrollToRow: i,
|
|
1609
1609
|
scrollLeft: g
|
|
1610
1610
|
} = Po(e);
|
|
1611
|
-
tl(wl, g),
|
|
1611
|
+
tl(wl, g), jl(async () => {
|
|
1612
1612
|
var H;
|
|
1613
1613
|
await Se();
|
|
1614
1614
|
const M = (H = a.value) == null ? void 0 : H.states.scrollTop;
|
|
@@ -1634,14 +1634,14 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1634
1634
|
scrollbarStartGap: A,
|
|
1635
1635
|
style: W,
|
|
1636
1636
|
rowHeight: N,
|
|
1637
|
-
bodyWidth:
|
|
1638
|
-
estimatedRowHeight:
|
|
1637
|
+
bodyWidth: B,
|
|
1638
|
+
estimatedRowHeight: j,
|
|
1639
1639
|
headerWidth: V,
|
|
1640
1640
|
height: U,
|
|
1641
1641
|
width: le,
|
|
1642
1642
|
getRowHeight: fe,
|
|
1643
1643
|
onScroll: se
|
|
1644
|
-
} = e, re = Q(
|
|
1644
|
+
} = e, re = Q(j), me = re ? Lo : zo, ie = n(f);
|
|
1645
1645
|
return C("div", {
|
|
1646
1646
|
role: "table",
|
|
1647
1647
|
class: [o.e("table"), e.class],
|
|
@@ -1652,7 +1652,7 @@ const Io = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: l, atYStartEdge: o },
|
|
|
1652
1652
|
useIsScrolling: z,
|
|
1653
1653
|
itemKey: b,
|
|
1654
1654
|
columnCache: 0,
|
|
1655
|
-
columnWidth: re ? S :
|
|
1655
|
+
columnWidth: re ? S : B,
|
|
1656
1656
|
totalColumn: 1,
|
|
1657
1657
|
totalRow: R.length,
|
|
1658
1658
|
rowCache: H,
|
|
@@ -1732,10 +1732,10 @@ const Vo = (e, {
|
|
|
1732
1732
|
});
|
|
1733
1733
|
};
|
|
1734
1734
|
var Ko = Vo;
|
|
1735
|
-
function
|
|
1735
|
+
function Bo(e) {
|
|
1736
1736
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const jo = (e, {
|
|
1739
1739
|
slots: t
|
|
1740
1740
|
}) => {
|
|
1741
1741
|
if (!e.columns.length)
|
|
@@ -1746,11 +1746,11 @@ const Bo = (e, {
|
|
|
1746
1746
|
} = e;
|
|
1747
1747
|
return C(pt, Y({
|
|
1748
1748
|
ref: l
|
|
1749
|
-
}, o),
|
|
1749
|
+
}, o), Bo(t) ? t : {
|
|
1750
1750
|
default: () => [t]
|
|
1751
1751
|
});
|
|
1752
1752
|
};
|
|
1753
|
-
var qo =
|
|
1753
|
+
var qo = jo;
|
|
1754
1754
|
const Uo = (e) => {
|
|
1755
1755
|
const {
|
|
1756
1756
|
isScrolling: t
|
|
@@ -1969,20 +1969,20 @@ const Qo = (e, {
|
|
|
1969
1969
|
};
|
|
1970
1970
|
return C(Xo, Y(W, {
|
|
1971
1971
|
onRowExpand: S,
|
|
1972
|
-
onMouseenter: (
|
|
1972
|
+
onMouseenter: (j) => {
|
|
1973
1973
|
A == null || A({
|
|
1974
1974
|
hovered: !0,
|
|
1975
1975
|
rowKey: R,
|
|
1976
|
-
event:
|
|
1976
|
+
event: j,
|
|
1977
1977
|
rowData: f,
|
|
1978
1978
|
rowIndex: u
|
|
1979
1979
|
});
|
|
1980
1980
|
},
|
|
1981
|
-
onMouseleave: (
|
|
1981
|
+
onMouseleave: (j) => {
|
|
1982
1982
|
A == null || A({
|
|
1983
1983
|
hovered: !1,
|
|
1984
1984
|
rowKey: R,
|
|
1985
|
-
event:
|
|
1985
|
+
event: j,
|
|
1986
1986
|
rowData: f,
|
|
1987
1987
|
rowIndex: u
|
|
1988
1988
|
});
|
|
@@ -2083,15 +2083,15 @@ const pl = ({
|
|
|
2083
2083
|
rowIndex: c
|
|
2084
2084
|
}, z = yl(g), G = z ? z($) : Ye(d, "default", $, () => [C(tn, $, null)]), x = [u.e("row-cell"), t.class, t.align === qe.CENTER && u.is("align-center"), t.align === qe.RIGHT && u.is("align-right")], A = c >= 0 && b && t.key === b, W = c >= 0 && f.includes(s[h]);
|
|
2085
2085
|
let N;
|
|
2086
|
-
const
|
|
2086
|
+
const B = `margin-inline-start: ${o * y}px;`;
|
|
2087
2087
|
return A && (xt(a) ? N = C(on, Y(a, {
|
|
2088
2088
|
class: [u.e("expand-icon"), u.is("expanded", W)],
|
|
2089
2089
|
size: w,
|
|
2090
2090
|
expanded: W,
|
|
2091
|
-
style:
|
|
2091
|
+
style: B,
|
|
2092
2092
|
expandable: !0
|
|
2093
2093
|
}), null) : N = C("div", {
|
|
2094
|
-
style: [
|
|
2094
|
+
style: [B, `width: ${w}px; height: ${w}px;`].join(" ")
|
|
2095
2095
|
}, null)), C("div", Y({
|
|
2096
2096
|
class: x,
|
|
2097
2097
|
style: i
|
|
@@ -2195,7 +2195,7 @@ const hn = (e) => {
|
|
|
2195
2195
|
size: 14,
|
|
2196
2196
|
class: e.class
|
|
2197
2197
|
}, {
|
|
2198
|
-
default: () => [t ===
|
|
2198
|
+
default: () => [t === je.ASC ? C(oo, null, null) : C(no, null, null)]
|
|
2199
2199
|
});
|
|
2200
2200
|
};
|
|
2201
2201
|
var fn = hn;
|
|
@@ -2228,9 +2228,9 @@ const mn = (e, {
|
|
|
2228
2228
|
let d, i;
|
|
2229
2229
|
if (w) {
|
|
2230
2230
|
const H = w[l.key];
|
|
2231
|
-
d = !!St[H], i = d ? H :
|
|
2231
|
+
d = !!St[H], i = d ? H : je.ASC;
|
|
2232
2232
|
} else
|
|
2233
|
-
d = l.key === y.key, i = d ? y.order :
|
|
2233
|
+
d = l.key === y.key, i = d ? y.order : je.ASC;
|
|
2234
2234
|
const g = [o.e("header-cell"), Ae(m, e, ""), l.align === qe.CENTER && o.is("align-center"), l.align === qe.RIGHT && o.is("align-right"), f && o.is("sortable")], S = {
|
|
2235
2235
|
...Ae(h, e),
|
|
2236
2236
|
onClick: l.sortable ? r : void 0,
|
|
@@ -2316,8 +2316,8 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2316
2316
|
scrollTo: A,
|
|
2317
2317
|
scrollToLeft: W,
|
|
2318
2318
|
scrollToTop: N,
|
|
2319
|
-
scrollToRow:
|
|
2320
|
-
getRowHeight:
|
|
2319
|
+
scrollToRow: B,
|
|
2320
|
+
getRowHeight: j,
|
|
2321
2321
|
onColumnSorted: V,
|
|
2322
2322
|
onRowHeightChange: U,
|
|
2323
2323
|
onRowHovered: le,
|
|
@@ -2330,7 +2330,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2330
2330
|
scrollTo: A,
|
|
2331
2331
|
scrollToLeft: W,
|
|
2332
2332
|
scrollToTop: N,
|
|
2333
|
-
scrollToRow:
|
|
2333
|
+
scrollToRow: B
|
|
2334
2334
|
}), tl(_t, {
|
|
2335
2335
|
ns: o,
|
|
2336
2336
|
isResetting: H,
|
|
@@ -2378,7 +2378,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2378
2378
|
scrollbarEndGap: P,
|
|
2379
2379
|
useIsScrolling: O,
|
|
2380
2380
|
width: k,
|
|
2381
|
-
getRowHeight:
|
|
2381
|
+
getRowHeight: j,
|
|
2382
2382
|
onRowsRendered: se,
|
|
2383
2383
|
onScroll: re
|
|
2384
2384
|
}, te = n(u), J = n(f), ee = {
|
|
@@ -2400,7 +2400,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2400
2400
|
scrollbarEndGap: P,
|
|
2401
2401
|
useIsScrolling: O,
|
|
2402
2402
|
width: te,
|
|
2403
|
-
getRowHeight:
|
|
2403
|
+
getRowHeight: j,
|
|
2404
2404
|
onScroll: me
|
|
2405
2405
|
}, Ee = n(v), at = {
|
|
2406
2406
|
cache: ie,
|
|
@@ -2422,7 +2422,7 @@ const wn = "ElTableV2", bn = xe({
|
|
|
2422
2422
|
width: Ee,
|
|
2423
2423
|
style: `--${n(o.namespace)}-table-scrollbar-size: ${P}px`,
|
|
2424
2424
|
useIsScrolling: O,
|
|
2425
|
-
getRowHeight:
|
|
2425
|
+
getRowHeight: j,
|
|
2426
2426
|
onScroll: me
|
|
2427
2427
|
}, ze = n(a), Ol = {
|
|
2428
2428
|
ns: o,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as O, p as y } from "./use-form-common-props-1f967d2e.js";
|
|
2
|
+
import { i as p, a as m, b as x, o as w, U as i } from "./index-60dd8509.js";
|
|
3
|
+
import { c as v, r as P } from "./index-269b8a8c.js";
|
|
4
4
|
var u = Object.create, b = function() {
|
|
5
5
|
function e() {
|
|
6
6
|
}
|
|
@@ -70,11 +70,11 @@ function J(e) {
|
|
|
70
70
|
return typeof e.constructor == "function" && !p(e) ? A(T(e)) : {};
|
|
71
71
|
}
|
|
72
72
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
E as a,
|
|
74
|
+
H as b,
|
|
75
75
|
D as c,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
q as d,
|
|
77
|
+
G as e,
|
|
78
78
|
T as g,
|
|
79
79
|
J as i,
|
|
80
80
|
F as k
|
|
@@ -239,50 +239,50 @@ const Qt = (t, e) => {
|
|
|
239
239
|
n.directive(e, t);
|
|
240
240
|
}, t), Yt = (t) => (t.install = X, t);
|
|
241
241
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
242
|
+
Yt as A,
|
|
243
|
+
Zt as B,
|
|
244
|
+
At as C,
|
|
245
|
+
Nt as D,
|
|
246
|
+
Tt as E,
|
|
247
|
+
xt as F,
|
|
248
|
+
V as G,
|
|
249
|
+
O as H,
|
|
250
|
+
ht as I,
|
|
251
|
+
Ft as J,
|
|
252
|
+
Bt as K,
|
|
253
|
+
zt as L,
|
|
254
|
+
It as M,
|
|
255
255
|
X as N,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
Ot as O,
|
|
257
|
+
jt as P,
|
|
258
|
+
Rt as Q,
|
|
259
|
+
Z as R,
|
|
260
|
+
Dt as S,
|
|
261
261
|
Ut as _,
|
|
262
|
-
|
|
262
|
+
P as a,
|
|
263
263
|
Mt as b,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
264
|
+
w as c,
|
|
265
|
+
Lt as d,
|
|
266
|
+
A as e,
|
|
267
|
+
at as f,
|
|
268
|
+
Vt as g,
|
|
269
|
+
_ as h,
|
|
270
|
+
bt as i,
|
|
271
|
+
Ht as j,
|
|
272
|
+
Gt as k,
|
|
273
|
+
Jt as l,
|
|
274
|
+
Et as m,
|
|
275
|
+
Xt as n,
|
|
276
|
+
St as o,
|
|
277
|
+
Q as p,
|
|
278
|
+
g as q,
|
|
279
279
|
Wt as r,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
b as s,
|
|
281
|
+
Ct as t,
|
|
282
282
|
$t as u,
|
|
283
|
-
|
|
283
|
+
ot as v,
|
|
284
284
|
Qt as w,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
rt as x,
|
|
286
|
+
qt as y,
|
|
287
|
+
Kt as z
|
|
288
288
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as p, watch as s, renderSlot as l } from "vue";
|
|
2
|
-
import { p as
|
|
3
|
-
import {
|
|
4
|
-
import { b as d, e } from "./base-
|
|
5
|
-
import {
|
|
2
|
+
import { p as u } from "./use-global-config-ded5e07b.js";
|
|
3
|
+
import { u as m } from "./index-60dd8509.js";
|
|
4
|
+
import { b as d, d as e } from "./base-ff0e366f.js";
|
|
5
|
+
import { u as c } from "./use-form-common-props-1f967d2e.js";
|
|
6
6
|
const f = d({
|
|
7
7
|
a11y: {
|
|
8
8
|
type: Boolean,
|
|
@@ -39,14 +39,14 @@ const f = d({
|
|
|
39
39
|
type: String,
|
|
40
40
|
default: "el"
|
|
41
41
|
},
|
|
42
|
-
...
|
|
42
|
+
...m
|
|
43
43
|
}), b = {
|
|
44
44
|
placement: "top"
|
|
45
45
|
}, P = p({
|
|
46
46
|
name: "ElConfigProvider",
|
|
47
47
|
props: f,
|
|
48
48
|
setup(o, { slots: i }) {
|
|
49
|
-
const t =
|
|
49
|
+
const t = u(o);
|
|
50
50
|
return s(() => o.message, (a) => {
|
|
51
51
|
var r, n;
|
|
52
52
|
Object.assign(b, (n = (r = t == null ? void 0 : t.value) == null ? void 0 : r.message) != null ? n : {}, a ?? {});
|