bkui-vue 0.0.2-beta.44 → 0.0.2-beta.45
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/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +328 -312
- package/dist/index.umd.js +4 -4
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/collapse/index.d.ts +1 -1
- package/lib/container/index.d.ts +1 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/exception/index.d.ts +1 -1
- package/lib/form/index.d.ts +2 -2
- package/lib/image/index.js +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/menu/index.d.ts +1 -1
- package/lib/modal/index.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/search-select/index.d.ts +1 -1
- package/lib/search-select/index.js +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/popover.d.ts +2 -2
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/table/components/table-column.d.ts +8 -8
- package/lib/table/index.d.ts +7 -7
- package/lib/table/props.d.ts +2 -2
- package/lib/table/table.d.ts +1 -3
- package/lib/table/use-column.d.ts +2 -2
- package/lib/table/utils.d.ts +7 -7
- package/lib/table-column/index.d.ts +12 -12
- package/lib/tag-input/tag-input.d.ts +14 -16
- package/lib/tree/tree.d.ts +0 -10
- package/lib/volar.components.d.ts +24 -24
- package/package.json +16 -15
package/dist/index.esm.js
CHANGED
@@ -3975,22 +3975,13 @@ class Wg {
|
|
3975
3975
|
// 用于判定是否已经初始化过当前实例
|
3976
3976
|
Pe(this, "isInit", !1);
|
3977
3977
|
Pe(this, "maskAttrTag", "auto");
|
3978
|
-
const {
|
3979
|
-
multiInstance: n = !1,
|
3980
|
-
maskAttrTag: i = "auto",
|
3981
|
-
parentNode: s = document.body,
|
3982
|
-
maskStyle: r = {}
|
3983
|
-
} = t || {};
|
3978
|
+
const { multiInstance: n = !1, maskAttrTag: i = "auto", parentNode: s = document.body, maskStyle: r = {} } = t || {};
|
3984
3979
|
this.parentNode = s || document, this.maskAttrTag = i, this.activeInstance = void 0, this.multiInstance = n, this.uniqueMaskAttrTag = this.getMaskAttrTag(i), Aa.appendMaker(() => {
|
3985
3980
|
this.initInstance(r);
|
3986
3981
|
});
|
3987
3982
|
}
|
3988
3983
|
setOption(t) {
|
3989
|
-
const {
|
3990
|
-
parentNode: n = document.body,
|
3991
|
-
maskStyle: i = {},
|
3992
|
-
maskAttrTag: s = this.maskAttrTag
|
3993
|
-
} = t || {};
|
3984
|
+
const { parentNode: n = document.body, maskStyle: i = {}, maskAttrTag: s = this.maskAttrTag } = t || {};
|
3994
3985
|
this.parentNode = n || document, this.setMaskStyle(Object.assign({}, this.maskStyle, i)), this.uniqueMaskAttrTag = this.getMaskAttrTag(s);
|
3995
3986
|
}
|
3996
3987
|
destroyEvent(t) {
|
@@ -4077,11 +4068,7 @@ class Wg {
|
|
4077
4068
|
if (this.multiInstance)
|
4078
4069
|
return { instance: this.createMask(), isExist: !1 };
|
4079
4070
|
let t = !0, n = this.parentNode.querySelector(`[data-bk-mask-uid='${this.uniqueMaskAttrTag}']`);
|
4080
|
-
return n || (t = !1, n = this.createMask(), n.addEventListener(
|
4081
|
-
"click",
|
4082
|
-
(i) => this.handleMaskClick(i),
|
4083
|
-
!0
|
4084
|
-
)), {
|
4071
|
+
return n || (t = !1, n = this.createMask(), n.addEventListener("click", (i) => this.handleMaskClick(i), !0)), {
|
4085
4072
|
instance: n,
|
4086
4073
|
isExist: t
|
4087
4074
|
};
|
@@ -4173,16 +4160,7 @@ class Hg {
|
|
4173
4160
|
return;
|
4174
4161
|
}
|
4175
4162
|
const u = typeof r == "number" ? r : Qi.getModalNextIndex(), d = Os(16);
|
4176
|
-
t.setAttribute(this.uuidAttrName, d), this.popInstanceList.length > 0 && n && this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content), this.popInstanceList.push({ uuid: d, zIndex: u, content: t, showMask: n, appendStyle: i }), this.bKMaskManagerInstance.show(
|
4177
|
-
t,
|
4178
|
-
u,
|
4179
|
-
n,
|
4180
|
-
i,
|
4181
|
-
d,
|
4182
|
-
s,
|
4183
|
-
o,
|
4184
|
-
this.uniqId
|
4185
|
-
);
|
4163
|
+
t.setAttribute(this.uuidAttrName, d), this.popInstanceList.length > 0 && n && this.bKMaskManagerInstance.backupContentElement(this.popInstanceList.slice(-1)[0].content), this.popInstanceList.push({ uuid: d, zIndex: u, content: t, showMask: n, appendStyle: i }), this.bKMaskManagerInstance.show(t, u, n, i, d, s, o, this.uniqId);
|
4186
4164
|
}
|
4187
4165
|
/**
|
4188
4166
|
* 销毁指定实例
|
@@ -4204,13 +4182,7 @@ class Hg {
|
|
4204
4182
|
}
|
4205
4183
|
if (this.popInstanceList.length) {
|
4206
4184
|
const n = this.popInstanceList.slice(-1)[0], { zIndex: i, content: s, showMask: r, appendStyle: o, uuid: u } = n;
|
4207
|
-
this.bKMaskManagerInstance.show(
|
4208
|
-
s,
|
4209
|
-
i,
|
4210
|
-
r,
|
4211
|
-
o,
|
4212
|
-
u
|
4213
|
-
);
|
4185
|
+
this.bKMaskManagerInstance.show(s, i, r, o, u);
|
4214
4186
|
} else
|
4215
4187
|
this.bKMaskManagerInstance.hide();
|
4216
4188
|
}
|
@@ -5370,8 +5342,8 @@ class Sw {
|
|
5370
5342
|
}, i;
|
5371
5343
|
}
|
5372
5344
|
/**
|
5373
|
-
|
5374
|
-
|
5345
|
+
* 判定是否需要将PopContent挂载到目标元素
|
5346
|
+
*/
|
5375
5347
|
handleFirstUpdate() {
|
5376
5348
|
this.fixOnBoundary && this.appendToTarget();
|
5377
5349
|
}
|
@@ -6120,10 +6092,7 @@ const qw = {
|
|
6120
6092
|
}
|
6121
6093
|
});
|
6122
6094
|
function It(e) {
|
6123
|
-
const t = At(
|
6124
|
-
Tu,
|
6125
|
-
tr
|
6126
|
-
);
|
6095
|
+
const t = At(Tu, tr);
|
6127
6096
|
return R(() => {
|
6128
6097
|
const { locale: n } = t;
|
6129
6098
|
return n && e ? n[e] : {};
|
@@ -7824,6 +7793,7 @@ const X7 = {
|
|
7824
7793
|
default: "button"
|
7825
7794
|
}
|
7826
7795
|
}, iI = /* @__PURE__ */ be({
|
7796
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
7827
7797
|
name: "Button",
|
7828
7798
|
props: nI,
|
7829
7799
|
emits: ["click", "mouseover"],
|
@@ -8087,10 +8057,7 @@ const n6 = (e) => !0, i6 = (e) => e, lI = (e) => !0, oI = {
|
|
8087
8057
|
/**
|
8088
8058
|
* 弹出内容绑定元素
|
8089
8059
|
*/
|
8090
|
-
boundary: p.oneOfType([
|
8091
|
-
p.string.def("parent"),
|
8092
|
-
p.instanceOf(HTMLElement)
|
8093
|
-
]),
|
8060
|
+
boundary: p.oneOfType([p.string.def("parent"), p.instanceOf(HTMLElement)]),
|
8094
8061
|
zIndex: p.number.def(void 0),
|
8095
8062
|
disableTeleport: p.bool.def(!1),
|
8096
8063
|
/**
|
@@ -8121,10 +8088,7 @@ const n6 = (e) => !0, i6 = (e) => e, lI = (e) => !0, oI = {
|
|
8121
8088
|
/**
|
8122
8089
|
* popover显示和隐藏的延时时间
|
8123
8090
|
*/
|
8124
|
-
popoverDelay: p.oneOfType([
|
8125
|
-
p.number,
|
8126
|
-
p.arrayOf(p.number)
|
8127
|
-
]).def(100),
|
8091
|
+
popoverDelay: p.oneOfType([p.number, p.arrayOf(p.number)]).def(100),
|
8128
8092
|
/**
|
8129
8093
|
* 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
|
8130
8094
|
*/
|
@@ -9457,7 +9421,7 @@ const $I = (e, t, n) => {
|
|
9457
9421
|
middlewareData: Re
|
9458
9422
|
}) => {
|
9459
9423
|
const nt = K.className;
|
9460
|
-
K.className = `${nt.replace(T, "")} ${T}`.replace(/\s+/
|
9424
|
+
K.className = `${nt.replace(T, "")} ${T}`.replace(/\s+/gm, " ").replace(/^\s+|\s+$/g, ""), Object.keys(L).forEach((Se) => {
|
9461
9425
|
K.setAttribute(Se, L[Se]);
|
9462
9426
|
});
|
9463
9427
|
const ce = je.split("-")[0];
|
@@ -9632,9 +9596,11 @@ const YI = (e, t = "#") => {
|
|
9632
9596
|
}, ae = () => {
|
9633
9597
|
var F;
|
9634
9598
|
const ee = `[data-fllsrn-id=${d}]`;
|
9635
|
-
(((F = c == null ? void 0 : c.value) == null ? void 0 : F.querySelectorAll(ee)) ?? []).forEach(
|
9636
|
-
te
|
9637
|
-
|
9599
|
+
(((F = c == null ? void 0 : c.value) == null ? void 0 : F.querySelectorAll(ee)) ?? []).forEach(
|
9600
|
+
(te) => {
|
9601
|
+
te == null || te.removeAttribute("data-fllsrn-id");
|
9602
|
+
}
|
9603
|
+
);
|
9638
9604
|
}, fe = B(), ve = () => {
|
9639
9605
|
z();
|
9640
9606
|
}, oe = (ee) => {
|
@@ -10290,18 +10256,20 @@ function mL(e, t) {
|
|
10290
10256
|
offset: [0, s]
|
10291
10257
|
}
|
10292
10258
|
},
|
10293
|
-
...o ? [
|
10294
|
-
|
10295
|
-
|
10296
|
-
|
10297
|
-
|
10298
|
-
|
10299
|
-
d
|
10300
|
-
|
10301
|
-
|
10302
|
-
|
10259
|
+
...o ? [
|
10260
|
+
{
|
10261
|
+
name: "sameWidth",
|
10262
|
+
enabled: !0,
|
10263
|
+
phase: "beforeWrite",
|
10264
|
+
requires: ["computeStyles"],
|
10265
|
+
fn: ({ state: d }) => {
|
10266
|
+
d.styles.popper.width = `${d.rects.reference.width}px`;
|
10267
|
+
},
|
10268
|
+
effect: ({ state: d }) => {
|
10269
|
+
d.elements.popper.style.overflowWrap = "break-word", d.elements.popper.style.width = `${d.elements.reference.offsetWidth}px`;
|
10270
|
+
}
|
10303
10271
|
}
|
10304
|
-
|
10272
|
+
] : []
|
10305
10273
|
]
|
10306
10274
|
});
|
10307
10275
|
return r && Cf(e), u;
|
@@ -10318,10 +10286,7 @@ function Cf(e) {
|
|
10318
10286
|
const u = mL(e, t);
|
10319
10287
|
o(), t.setAttribute("data-show", ""), u.setOptions((d) => ({
|
10320
10288
|
...d,
|
10321
|
-
modifiers: [
|
10322
|
-
...d.modifiers,
|
10323
|
-
{ name: "eventListeners", enabled: !0 }
|
10324
|
-
]
|
10289
|
+
modifiers: [...d.modifiers, { name: "eventListeners", enabled: !0 }]
|
10325
10290
|
})), u.forceUpdate(), Es.get(e).popperInstance = u;
|
10326
10291
|
}
|
10327
10292
|
function Pr(e) {
|
@@ -10799,26 +10764,34 @@ function NL() {
|
|
10799
10764
|
];
|
10800
10765
|
}
|
10801
10766
|
const TL = () => {
|
10802
|
-
const e = Kt(), {
|
10803
|
-
props: t,
|
10804
|
-
emit: n
|
10805
|
-
} = e, i = At(t4, b1), s = !C1(i), r = B(), o = B(t.checked), u = R(() => s && i.props.disabled ? !0 : t.disabled), d = () => {
|
10767
|
+
const e = Kt(), { props: t, emit: n } = e, i = At(t4, b1), s = !C1(i), r = B(), o = B(t.checked), u = R(() => s && i.props.disabled ? !0 : t.disabled), d = () => {
|
10806
10768
|
const m = o.value ? t.trueLabel : t.falseLabel;
|
10807
10769
|
n("update:modelValue", m), n("change", m), s && i.handleChange(), et(() => {
|
10808
10770
|
r.value.checked !== o.value && (r.value.checked = o.value);
|
10809
10771
|
});
|
10810
10772
|
};
|
10811
|
-
s ? Le(
|
10812
|
-
|
10813
|
-
|
10814
|
-
|
10815
|
-
|
10816
|
-
|
10817
|
-
|
10818
|
-
|
10819
|
-
|
10820
|
-
|
10821
|
-
|
10773
|
+
s ? Le(
|
10774
|
+
() => i.props.modelValue,
|
10775
|
+
(m) => {
|
10776
|
+
o.value = m.includes(t.label);
|
10777
|
+
},
|
10778
|
+
{
|
10779
|
+
deep: !0
|
10780
|
+
}
|
10781
|
+
) : Le(
|
10782
|
+
() => t.modelValue,
|
10783
|
+
(m) => {
|
10784
|
+
m !== "" && (o.value = m === t.trueLabel);
|
10785
|
+
},
|
10786
|
+
{
|
10787
|
+
immediate: !0
|
10788
|
+
}
|
10789
|
+
), Le(
|
10790
|
+
() => t.checked,
|
10791
|
+
() => {
|
10792
|
+
o.value = t.checked, t.immediateEmitChange !== !1 && d();
|
10793
|
+
}
|
10794
|
+
);
|
10822
10795
|
const c = (m = !0) => {
|
10823
10796
|
o.value = m;
|
10824
10797
|
}, h = (m) => {
|
@@ -11358,6 +11331,7 @@ function JL(e) {
|
|
11358
11331
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !mn(e);
|
11359
11332
|
}
|
11360
11333
|
const i4 = /* @__PURE__ */ be({
|
11334
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
11361
11335
|
name: "Dialog",
|
11362
11336
|
components: {
|
11363
11337
|
BkModal: or,
|
@@ -11796,6 +11770,7 @@ const iN = {
|
|
11796
11770
|
verticalAlign: "middle"
|
11797
11771
|
})
|
11798
11772
|
}, sN = /* @__PURE__ */ be({
|
11773
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
11799
11774
|
name: "Progress",
|
11800
11775
|
props: iN,
|
11801
11776
|
setup() {
|
@@ -11862,19 +11837,24 @@ function r4() {
|
|
11862
11837
|
];
|
11863
11838
|
}
|
11864
11839
|
const l4 = () => {
|
11865
|
-
const e = Kt(), {
|
11866
|
-
|
11867
|
-
|
11868
|
-
|
11869
|
-
|
11870
|
-
|
11871
|
-
|
11872
|
-
|
11873
|
-
|
11874
|
-
|
11875
|
-
|
11876
|
-
|
11877
|
-
|
11840
|
+
const e = Kt(), { props: t, emit: n } = e, i = At(a4, b1), s = !C1(i), r = B(!1), o = R(() => s && i.props.disabled ? !0 : t.disabled);
|
11841
|
+
s ? Le(
|
11842
|
+
() => i.props.modelValue,
|
11843
|
+
(c) => {
|
11844
|
+
r.value = c === t.label;
|
11845
|
+
},
|
11846
|
+
{
|
11847
|
+
immediate: !0
|
11848
|
+
}
|
11849
|
+
) : Le(
|
11850
|
+
() => t.modelValue,
|
11851
|
+
(c) => {
|
11852
|
+
c !== "" && (r.value = c === t.label);
|
11853
|
+
},
|
11854
|
+
{
|
11855
|
+
immediate: !0
|
11856
|
+
}
|
11857
|
+
);
|
11878
11858
|
const u = (c = !0) => {
|
11879
11859
|
r.value = c;
|
11880
11860
|
}, d = (c) => {
|
@@ -12583,9 +12563,19 @@ const iu = /* @__PURE__ */ be({
|
|
12583
12563
|
*/
|
12584
12564
|
width: p.oneOfType([p.string.def("100%"), p.number]).def("100%"),
|
12585
12565
|
/** 最外层元素ClassName */
|
12586
|
-
className: p.oneOfType([
|
12566
|
+
className: p.oneOfType([
|
12567
|
+
p.arrayOf(p.string),
|
12568
|
+
p.object,
|
12569
|
+
p.arrayOf(p.object),
|
12570
|
+
p.string
|
12571
|
+
]).def(""),
|
12587
12572
|
/** 内层层元素ClassName */
|
12588
|
-
contentClassName: p.oneOfType([
|
12573
|
+
contentClassName: p.oneOfType([
|
12574
|
+
p.arrayOf(p.string),
|
12575
|
+
p.object,
|
12576
|
+
p.arrayOf(p.object),
|
12577
|
+
p.string
|
12578
|
+
]).def(""),
|
12589
12579
|
/** 内层元素样式 */
|
12590
12580
|
contentStyle: p.object.def({}),
|
12591
12581
|
/** 用于自定义X轴滚动条样式 */
|
@@ -12695,7 +12685,9 @@ function c4(e, t, n, i, s) {
|
|
12695
12685
|
}
|
12696
12686
|
if (r !== u || b !== h || C !== m || v !== o) {
|
12697
12687
|
const w = i.scrollHeight - i.offsetHeight - i.scrollTop;
|
12698
|
-
typeof t == "function" && t(s, b, C, r, x, o, {
|
12688
|
+
typeof t == "function" && t(s, b, C, r, x, o, {
|
12689
|
+
bottom: w >= 0 ? w : 0
|
12690
|
+
});
|
12699
12691
|
}
|
12700
12692
|
}
|
12701
12693
|
function MN(e, t, n) {
|
@@ -13945,13 +13937,10 @@ const VN = [
|
|
13945
13937
|
/* CUSTOM */
|
13946
13938
|
], Ds = 80;
|
13947
13939
|
var y4 = /* @__PURE__ */ ((e) => (e.CURRENT = "current", e.ALL = "all", e))(y4 || {});
|
13948
|
-
Ae(
|
13949
|
-
"
|
13950
|
-
|
13951
|
-
|
13952
|
-
/* AUTO */
|
13953
|
-
}
|
13954
|
-
);
|
13940
|
+
Ae("showOverflowTooltipMode", {
|
13941
|
+
default: "auto"
|
13942
|
+
/* AUTO */
|
13943
|
+
});
|
13955
13944
|
const ZN = Ae("columnType", {
|
13956
13945
|
default: "none"
|
13957
13946
|
/* NONE */
|
@@ -13984,32 +13973,11 @@ const xl = Ae("IColumnType", {
|
|
13984
13973
|
label: ""
|
13985
13974
|
},
|
13986
13975
|
type: [Object]
|
13987
|
-
}), C4 = Ae(
|
13988
|
-
|
13989
|
-
|
13990
|
-
|
13991
|
-
|
13992
|
-
}
|
13993
|
-
), Wd = Ae(
|
13994
|
-
"LabelFunctionStringType",
|
13995
|
-
{}
|
13996
|
-
), XN = Ae(
|
13997
|
-
"RenderFunctionStringType",
|
13998
|
-
{}
|
13999
|
-
), T6 = Ae(
|
14000
|
-
"SpanFunctionStringType",
|
14001
|
-
{}
|
14002
|
-
), qN = Ae(
|
14003
|
-
"RowClassFunctionStringType",
|
14004
|
-
{}
|
14005
|
-
), w4 = Ae(
|
14006
|
-
"RowHeightFunctionNumberType",
|
14007
|
-
{}
|
14008
|
-
);
|
14009
|
-
Ae(
|
14010
|
-
"FunctionNumberType",
|
14011
|
-
{}
|
14012
|
-
);
|
13976
|
+
}), C4 = Ae("ITableSettingPropType", {
|
13977
|
+
default: !1,
|
13978
|
+
type: [Boolean, Object]
|
13979
|
+
}), Wd = Ae("LabelFunctionStringType", {}), XN = Ae("RenderFunctionStringType", {}), T6 = Ae("SpanFunctionStringType", {}), qN = Ae("RowClassFunctionStringType", {}), w4 = Ae("RowHeightFunctionNumberType", {});
|
13980
|
+
Ae("FunctionNumberType", {});
|
14013
13981
|
const Qo = (e) => Ae("StringNumberType", {}).def(e);
|
14014
13982
|
Ae("IColumnPropType", {
|
14015
13983
|
default: {
|
@@ -14031,10 +13999,7 @@ const eT = {
|
|
14031
13999
|
* 当前选中列
|
14032
14000
|
* 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
|
14033
14001
|
*/
|
14034
|
-
activeColumn: p.oneOfType([
|
14035
|
-
p.number.def(-1),
|
14036
|
-
p.arrayOf(p.number.def(-1))
|
14037
|
-
]),
|
14002
|
+
activeColumn: p.oneOfType([p.number.def(-1), p.arrayOf(p.number.def(-1))]),
|
14038
14003
|
/**
|
14039
14004
|
* 表格列选中方式
|
14040
14005
|
* 支持:单列(single),多列(multi),禁用(disabled)
|
@@ -14094,19 +14059,15 @@ const eT = {
|
|
14094
14059
|
* 表格边框显示设置,可以是一个组合
|
14095
14060
|
* 生效规则: 除非单独设置 none,否则会追加每个设置
|
14096
14061
|
*/
|
14097
|
-
border: p.oneOfType([
|
14098
|
-
|
14099
|
-
|
14100
|
-
]).def([au.ROW]),
|
14062
|
+
border: p.oneOfType([p.arrayOf(Ae("boderType", {})), p.string]).def([
|
14063
|
+
au.ROW
|
14064
|
+
]),
|
14101
14065
|
/**
|
14102
14066
|
* 分页配置
|
14103
14067
|
* 默认值为false,不启用分页
|
14104
14068
|
* 设置为 true,启用分页功能,默认值参考分页组件 Pagination
|
14105
14069
|
*/
|
14106
|
-
pagination: p.oneOfType([
|
14107
|
-
p.bool.def(!1),
|
14108
|
-
p.object.def({})
|
14109
|
-
]).def(!1),
|
14070
|
+
pagination: p.oneOfType([p.bool.def(!1), p.object.def({})]).def(!1),
|
14110
14071
|
/**
|
14111
14072
|
* 分页组件高度
|
14112
14073
|
* 在设置了分页配置之后才会生效
|
@@ -14130,35 +14091,19 @@ const eT = {
|
|
14130
14091
|
/**
|
14131
14092
|
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
14132
14093
|
*/
|
14133
|
-
rowClass: p.oneOfType([
|
14134
|
-
p.string,
|
14135
|
-
p.object,
|
14136
|
-
p.func
|
14137
|
-
]).def({}),
|
14094
|
+
rowClass: p.oneOfType([p.string, p.object, p.func]).def({}),
|
14138
14095
|
/**
|
14139
14096
|
* 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
14140
14097
|
*/
|
14141
|
-
rowStyle: p.oneOfType([
|
14142
|
-
p.string,
|
14143
|
-
p.object,
|
14144
|
-
p.func
|
14145
|
-
]).def({}),
|
14098
|
+
rowStyle: p.oneOfType([p.string, p.object, p.func]).def({}),
|
14146
14099
|
/**
|
14147
14100
|
* 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
|
14148
14101
|
*/
|
14149
|
-
cellStyle: p.oneOfType([
|
14150
|
-
p.string,
|
14151
|
-
p.object,
|
14152
|
-
p.func
|
14153
|
-
]).def({}),
|
14102
|
+
cellStyle: p.oneOfType([p.string, p.object, p.func]).def({}),
|
14154
14103
|
/**
|
14155
14104
|
* 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
|
14156
14105
|
*/
|
14157
|
-
cellClass: p.oneOfType([
|
14158
|
-
p.string,
|
14159
|
-
p.object,
|
14160
|
-
p.func
|
14161
|
-
]).def({}),
|
14106
|
+
cellClass: p.oneOfType([p.string, p.object, p.func]).def({}),
|
14162
14107
|
/**
|
14163
14108
|
* 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
|
14164
14109
|
* 详细配置可参考bk-loading组件
|
@@ -14216,10 +14161,7 @@ const eT = {
|
|
14216
14161
|
* 如果是函数,则返回 true|false
|
14217
14162
|
* ({ row, index, isCheckAll }) => boolean
|
14218
14163
|
*/
|
14219
|
-
isRowSelectEnable: p.oneOfType([
|
14220
|
-
p.func.def(() => !0),
|
14221
|
-
p.bool.def(!0)
|
14222
|
-
]).def(!0),
|
14164
|
+
isRowSelectEnable: p.oneOfType([p.func.def(() => !0), p.bool.def(!0)]).def(!0),
|
14223
14165
|
/**
|
14224
14166
|
* 当外层容器尺寸改变时,当前组件用什么方式进行重新计算
|
14225
14167
|
* 默认为 throttle,按照指定频率重新计算
|
@@ -15100,7 +15042,7 @@ const Ut = (e, t, n) => {
|
|
15100
15042
|
}
|
15101
15043
|
}, Hd = (e) => /^\d+$/.test(`${e}`) ? [parseInt(`${e}`, 10)] : [], HT = (e) => S4(e, "auto"), S4 = (e, t = "100%", n = null) => {
|
15102
15044
|
let i = "";
|
15103
|
-
return /^auto|null|undefined$/
|
15045
|
+
return /^auto|null|undefined$/gi.test(`${e}`) ? i = t : i = /^\d+\.?\d+$/.test(`${e}`) ? `${e}px` : e, n && (i = `calc(${i} - ${n})`), i;
|
15104
15046
|
}, FT = (e) => {
|
15105
15047
|
const t = ["row"];
|
15106
15048
|
return typeof e == "string" && t.push(e), Array.isArray(e) && t.push(...e.filter((n) => HN.includes(n))), [...new Set(t)].map((n) => `bordered-${n}`).join(" ");
|
@@ -15433,7 +15375,10 @@ const VT = /* @__PURE__ */ be({
|
|
15433
15375
|
match: W
|
15434
15376
|
} = r.value, Q = ou(z, Ut(s, "field", [s, z]), s);
|
15435
15377
|
return W === "full" && P.includes(Q), P.some(($) => b($, "img").test(Q));
|
15436
|
-
}, x = typeof r.value.filterFn == "function" ? (
|
15378
|
+
}, x = typeof r.value.filterFn == "function" ? (
|
15379
|
+
// eslint-disable-next-line max-len
|
15380
|
+
(P, z, W, Q) => r.value.filterFn(P, z, e.column, W, Q)
|
15381
|
+
) : (P, z) => P.length ? C(P, z) : !0, w = () => {
|
15437
15382
|
S(!0), t("filterSave", [...u.checked]), u.isOpen = !1;
|
15438
15383
|
}, S = (P = !1) => {
|
15439
15384
|
const {
|
@@ -16455,11 +16400,16 @@ const ac = (e, t) => ({
|
|
16455
16400
|
dragOffsetXStyle: I
|
16456
16401
|
};
|
16457
16402
|
}, ex = (e, t, n, i, s) => {
|
16458
|
-
const { getColumns: r } = ac(e, t), o = B(200), u = B(200), d = B(200), c = B(ns), h = B(!1), m = R(() => e.pagination && e.data.length), v = R(() => h.value), y = R(
|
16459
|
-
|
16460
|
-
|
16461
|
-
|
16462
|
-
|
16403
|
+
const { getColumns: r } = ac(e, t), o = B(200), u = B(200), d = B(200), c = B(ns), h = B(!1), m = R(() => e.pagination && e.data.length), v = R(() => h.value), y = R(
|
16404
|
+
() => He(
|
16405
|
+
{
|
16406
|
+
[qt("table")]: !0,
|
16407
|
+
"has-footer": m.value,
|
16408
|
+
"has-scroll-y": h.value || e.virtualEnabled
|
16409
|
+
},
|
16410
|
+
FT(e.border)
|
16411
|
+
)
|
16412
|
+
), b = He({
|
16463
16413
|
[qt("table-head")]: !0,
|
16464
16414
|
"has-settings": !!e.settings
|
16465
16415
|
}), C = R(() => r()), x = Nf(e), w = R(() => ({
|
@@ -16468,12 +16418,17 @@ const ac = (e, t) => ({
|
|
16468
16418
|
"--scroll-left": `${i.scrollTranslateX}px`
|
16469
16419
|
})), S = {
|
16470
16420
|
[qt("table-body")]: !0
|
16471
|
-
}, I = R(
|
16472
|
-
|
16473
|
-
|
16474
|
-
|
16475
|
-
|
16476
|
-
|
16421
|
+
}, I = R(
|
16422
|
+
() => He({
|
16423
|
+
[qt("table-footer")]: !0,
|
16424
|
+
"is-hidden": !e.pagination || !e.data.length
|
16425
|
+
})
|
16426
|
+
), L = () => e.height === "number" ? `${e.height}px` : typeof e.height == "string" ? e.height : "", T = () => {
|
16427
|
+
if (C.value.every((Q) => /^\d+\.?\d*(px)?$/gi.test(`${Q.width}`))) {
|
16428
|
+
const Q = C.value.reduce(
|
16429
|
+
(ae, fe) => ae + Number(`${fe.width}`.replace(/px/gi, "")),
|
16430
|
+
0
|
16431
|
+
), $ = h.value ? ur : 0;
|
16477
16432
|
return `${Q + $}px`;
|
16478
16433
|
}
|
16479
16434
|
return "100%";
|
@@ -16486,9 +16441,9 @@ const ac = (e, t) => ({
|
|
16486
16441
|
const ae = String(Q);
|
16487
16442
|
if (/^\d+\.?\d*$/.test(ae))
|
16488
16443
|
return Number(ae);
|
16489
|
-
if (/^\d+\.?\d*px$/
|
16444
|
+
if (/^\d+\.?\d*px$/gi.test(ae))
|
16490
16445
|
return Number(ae.replace("px", ""));
|
16491
|
-
if (/^\d+\.?\d*%$/
|
16446
|
+
if (/^\d+\.?\d*%$/gi.test(ae) && typeof $ == "number") {
|
16492
16447
|
const fe = Number(ae.replace("%", ""));
|
16493
16448
|
return $ * fe / 100;
|
16494
16449
|
}
|
@@ -16563,29 +16518,38 @@ const ac = (e, t) => ({
|
|
16563
16518
|
}, r = R(() => i()), o = (H) => {
|
16564
16519
|
var le, V;
|
16565
16520
|
const E = (H == null ? void 0 : H.checked) || ((le = e.settings) == null ? void 0 : le.checked) || [], K = (H == null ? void 0 : H.fields) || ((V = e.settings) == null ? void 0 : V.fields) || [];
|
16566
|
-
n.length = 0, n.push(
|
16567
|
-
...X
|
16568
|
-
|
16569
|
-
|
16570
|
-
|
16571
|
-
|
16572
|
-
|
16573
|
-
|
16574
|
-
|
16575
|
-
|
16521
|
+
n.length = 0, n.push(
|
16522
|
+
...r.value.map((X) => ({
|
16523
|
+
...X,
|
16524
|
+
calcWidth: null,
|
16525
|
+
resizeWidth: null,
|
16526
|
+
minWidth: s(X),
|
16527
|
+
listeners: /* @__PURE__ */ new Map(),
|
16528
|
+
isHidden: O4(K, X, E),
|
16529
|
+
[bi.COL_UID]: rs.v4(),
|
16530
|
+
[bi.COL_SOURCE_DATA]: X
|
16531
|
+
}))
|
16532
|
+
);
|
16576
16533
|
};
|
16577
16534
|
typeof e.settings == "object" && o(e.settings);
|
16578
16535
|
const { dragOffsetXStyle: u, dragOffsetX: d, resetResizeEvents: c, registerResizeEvent: h } = qT(n, !0), { activeColumns: m } = XT(e, t);
|
16579
|
-
Le(
|
16580
|
-
|
16581
|
-
(
|
16582
|
-
|
16536
|
+
Le(
|
16537
|
+
() => [e.settings],
|
16538
|
+
() => {
|
16539
|
+
var H;
|
16540
|
+
(((H = e.settings) == null ? void 0 : H.checked) || []).length && o();
|
16541
|
+
}
|
16542
|
+
);
|
16583
16543
|
const v = ht.debounce(() => {
|
16584
16544
|
o(), c(), h();
|
16585
16545
|
}, 120);
|
16586
|
-
Le(
|
16587
|
-
|
16588
|
-
|
16546
|
+
Le(
|
16547
|
+
() => r,
|
16548
|
+
() => {
|
16549
|
+
v();
|
16550
|
+
},
|
16551
|
+
{ immediate: !0, deep: !0 }
|
16552
|
+
);
|
16589
16553
|
const y = e.columns.reduce((H, E, K) => {
|
16590
16554
|
const le = Ut(E, ["field", "type"], [E, K]), V = P4(E.sort);
|
16591
16555
|
return V ? { ...H || {}, [le]: V == null ? void 0 : V.value } : H;
|
@@ -16647,7 +16611,11 @@ const ac = (e, t) => ({
|
|
16647
16611
|
var V;
|
16648
16612
|
const le = E === void 0 ? H[Ue.ROW_UID] : E;
|
16649
16613
|
return Wo(e, { row: H, index: K, isCheckAll: !1 }) && I() ? !0 : b.rowActions.has(le) ? (V = b.rowActions.get(le)) == null ? void 0 : V.isSelected : !1;
|
16650
|
-
}), W = qe([]), Q = R(
|
16614
|
+
}), W = qe([]), Q = R(
|
16615
|
+
() => n.some(
|
16616
|
+
(H) => typeof H.rowspan == "function" || /^\d$/.test(`${H.rowspan}`) || typeof H.colspan == "function" || /^\d$/.test(`${H.colspan}`)
|
16617
|
+
)
|
16618
|
+
), $ = R(() => n.some((H) => H.type === "selection")), ae = R(() => n.some((H) => H.type === "expand")), fe = R(() => n.some((H) => H.type === "index")), ve = (H = !1) => {
|
16651
16619
|
let E = null;
|
16652
16620
|
const K = {}, le = e.data.map((V) => ({ [Ue.ROW_UID]: rs.v4(), ...V }));
|
16653
16621
|
if (Q.value || $.value || ae.value || fe.value) {
|
@@ -16725,12 +16693,11 @@ const ac = (e, t) => ({
|
|
16725
16693
|
ht.set(le, e.selectionKey, !!E);
|
16726
16694
|
}
|
16727
16695
|
}
|
16728
|
-
}, {
|
16729
|
-
|
16730
|
-
|
16731
|
-
|
16732
|
-
|
16733
|
-
} = Tf(e, n, !1);
|
16696
|
+
}, { fixedColumns: ee, resolveColumnStyle: F, resolveColumnClass: te, fixedWrapperClass: ue } = Tf(
|
16697
|
+
e,
|
16698
|
+
n,
|
16699
|
+
!1
|
16700
|
+
);
|
16734
16701
|
return {
|
16735
16702
|
colgroups: n,
|
16736
16703
|
dragOffsetXStyle: u,
|
@@ -17101,26 +17068,25 @@ function sx(e) {
|
|
17101
17068
|
};
|
17102
17069
|
}
|
17103
17070
|
function ax(e) {
|
17104
|
-
const {
|
17105
|
-
|
17106
|
-
|
17107
|
-
|
17108
|
-
|
17109
|
-
|
17110
|
-
|
17111
|
-
|
17112
|
-
|
17113
|
-
|
17114
|
-
|
17115
|
-
|
17116
|
-
|
17117
|
-
|
17118
|
-
|
17119
|
-
|
17120
|
-
|
17121
|
-
|
17122
|
-
|
17123
|
-
}, { immediate: !0, deep: !0 }), {
|
17071
|
+
const { useGroup: t, saveKey: n, displayKey: i, list: s } = Mt(e), r = B([]), o = B({});
|
17072
|
+
return Le(
|
17073
|
+
[t, n, i, s],
|
17074
|
+
() => {
|
17075
|
+
r.value = [];
|
17076
|
+
let u = XC(s.value);
|
17077
|
+
t.value && (u = u.reduce((d, c) => {
|
17078
|
+
let h = [];
|
17079
|
+
return c.children && (h = c.children.map((m) => ({
|
17080
|
+
group: {
|
17081
|
+
groupId: c[n.value],
|
17082
|
+
groupName: c[i.value]
|
17083
|
+
},
|
17084
|
+
...m
|
17085
|
+
}))), d.concat(h);
|
17086
|
+
}, [])), r.value = u, o.value = u.reduce((d, c) => (d[c[n.value]] = c, d), {});
|
17087
|
+
},
|
17088
|
+
{ immediate: !0, deep: !0 }
|
17089
|
+
), {
|
17124
17090
|
flatList: r,
|
17125
17091
|
saveKeyMap: o
|
17126
17092
|
};
|
@@ -19187,7 +19153,7 @@ const Tx = {
|
|
19187
19153
|
maxWidth: y("maxWidth"),
|
19188
19154
|
minWidth: y("minWidth")
|
19189
19155
|
}, me = typeof e.message == "object" && !mn(e.message);
|
19190
|
-
return /%$/.test(`${e.width}`) || /auto/
|
19156
|
+
return /%$/.test(`${e.width}`) || /auto/gi.test(`${e.width}`) ? {
|
19191
19157
|
width: e.width,
|
19192
19158
|
...ue
|
19193
19159
|
} : /^\d+/.test(`${e.width}`) ? /^\d+\.?\d*$/.test(`${e.width}`) ? {
|
@@ -21872,50 +21838,86 @@ const tg = {
|
|
21872
21838
|
return (t > 0 ? "-" : "+") + ki(Math.floor(Math.abs(t) / 60) * 100 + Math.abs(t) % 60, 4);
|
21873
21839
|
}
|
21874
21840
|
}, Rt = {
|
21875
|
-
d: [
|
21876
|
-
|
21877
|
-
|
21878
|
-
|
21879
|
-
|
21880
|
-
|
21881
|
-
|
21882
|
-
|
21883
|
-
e
|
21884
|
-
|
21885
|
-
|
21886
|
-
|
21887
|
-
|
21888
|
-
|
21889
|
-
e
|
21890
|
-
|
21891
|
-
|
21892
|
-
|
21893
|
-
|
21894
|
-
|
21895
|
-
|
21896
|
-
|
21897
|
-
|
21898
|
-
|
21899
|
-
|
21900
|
-
|
21901
|
-
|
21902
|
-
|
21903
|
-
|
21904
|
-
|
21905
|
-
|
21841
|
+
d: [
|
21842
|
+
ea,
|
21843
|
+
(e, t) => {
|
21844
|
+
e.day = t;
|
21845
|
+
}
|
21846
|
+
],
|
21847
|
+
M: [
|
21848
|
+
ea,
|
21849
|
+
(e, t) => {
|
21850
|
+
e.month = t - 1;
|
21851
|
+
}
|
21852
|
+
],
|
21853
|
+
yy: [
|
21854
|
+
ea,
|
21855
|
+
(e, t) => {
|
21856
|
+
const i = +`${(/* @__PURE__ */ new Date()).getFullYear()}`.substr(0, 2);
|
21857
|
+
e.year = `${t > 68 ? i - 1 : i}${t}`;
|
21858
|
+
}
|
21859
|
+
],
|
21860
|
+
h: [
|
21861
|
+
ea,
|
21862
|
+
(e, t) => {
|
21863
|
+
e.hour = t;
|
21864
|
+
}
|
21865
|
+
],
|
21866
|
+
m: [
|
21867
|
+
ea,
|
21868
|
+
(e, t) => {
|
21869
|
+
e.minute = t;
|
21870
|
+
}
|
21871
|
+
],
|
21872
|
+
s: [
|
21873
|
+
ea,
|
21874
|
+
(e, t) => {
|
21875
|
+
e.second = t;
|
21876
|
+
}
|
21877
|
+
],
|
21878
|
+
yyyy: [
|
21879
|
+
Ck,
|
21880
|
+
(e, t) => {
|
21881
|
+
e.year = t;
|
21882
|
+
}
|
21883
|
+
],
|
21884
|
+
S: [
|
21885
|
+
/\d/,
|
21886
|
+
(e, t) => {
|
21887
|
+
e.millisecond = t * 100;
|
21888
|
+
}
|
21889
|
+
],
|
21890
|
+
SS: [
|
21891
|
+
/\d{2}/,
|
21892
|
+
(e, t) => {
|
21893
|
+
e.millisecond = t * 10;
|
21894
|
+
}
|
21895
|
+
],
|
21896
|
+
SSS: [
|
21897
|
+
bk,
|
21898
|
+
(e, t) => {
|
21899
|
+
e.millisecond = t;
|
21900
|
+
}
|
21901
|
+
],
|
21906
21902
|
D: [ea, q6],
|
21907
21903
|
ddd: [Do, q6],
|
21908
21904
|
MMM: [Do, eg("monthNamesShort")],
|
21909
21905
|
MMMM: [Do, eg("monthNames")],
|
21910
|
-
a: [
|
21911
|
-
|
21912
|
-
|
21913
|
-
|
21914
|
-
|
21915
|
-
|
21916
|
-
|
21917
|
-
|
21918
|
-
|
21906
|
+
a: [
|
21907
|
+
Do,
|
21908
|
+
(e, t, n) => {
|
21909
|
+
const i = t.toLowerCase();
|
21910
|
+
i === n.amPm[0] ? e.isPm = !1 : i === n.amPm[1] && (e.isPm = !0);
|
21911
|
+
}
|
21912
|
+
],
|
21913
|
+
ZZ: [
|
21914
|
+
/[\\+\\-]\d\d:?\d\d/,
|
21915
|
+
(e, t) => {
|
21916
|
+
const n = `${t}`.match(/([\\+\\-]|\d\d)/gi);
|
21917
|
+
let i;
|
21918
|
+
n && (i = +(n[1] * 60) + parseInt(n[2], 10), e.timezoneOffset = n[0] === "+" ? i : -i);
|
21919
|
+
}
|
21920
|
+
]
|
21919
21921
|
};
|
21920
21922
|
Rt.DD = Rt.D;
|
21921
21923
|
Rt.dddd = Rt.ddd;
|
@@ -21960,15 +21962,17 @@ Bt.parse = (e, t, n) => {
|
|
21960
21962
|
const o = /* @__PURE__ */ new Date();
|
21961
21963
|
r.isPm === !0 && r.hour !== null && +r.hour != 12 ? r.hour = +r.hour + 12 : r.isPm === !1 && +r.hour == 12 && (r.hour = 0);
|
21962
21964
|
let u;
|
21963
|
-
return r.timezoneOffset !== null && r.timezoneOffset !== void 0 ? (r.minute = +(r.minute || 0) - +r.timezoneOffset, u = new Date(
|
21964
|
-
|
21965
|
-
|
21966
|
-
|
21967
|
-
|
21968
|
-
|
21969
|
-
|
21970
|
-
|
21971
|
-
|
21965
|
+
return r.timezoneOffset !== null && r.timezoneOffset !== void 0 ? (r.minute = +(r.minute || 0) - +r.timezoneOffset, u = new Date(
|
21966
|
+
Date.UTC(
|
21967
|
+
r.year || o.getFullYear(),
|
21968
|
+
r.month || 0,
|
21969
|
+
r.day || 1,
|
21970
|
+
r.hour || 0,
|
21971
|
+
r.minute || 0,
|
21972
|
+
r.second || 0,
|
21973
|
+
r.millisecond || 0
|
21974
|
+
)
|
21975
|
+
)) : u = new Date(
|
21972
21976
|
r.year || o.getFullYear(),
|
21973
21977
|
r.month || 0,
|
21974
21978
|
r.day || 1,
|
@@ -22065,11 +22069,7 @@ const K0 = " - ", ts = (e, t) => {
|
|
22065
22069
|
}, ra = () => {
|
22066
22070
|
const e = /* @__PURE__ */ new Date();
|
22067
22071
|
return e.setHours(0), e.setMinutes(0), e.setSeconds(0), e;
|
22068
|
-
}, om = (e) => e.every((t) => !t || typeof t == "string" && t.trim() === ""), hu = (e) => e ? [
|
22069
|
-
e.getHours(),
|
22070
|
-
e.getMinutes(),
|
22071
|
-
e.getSeconds()
|
22072
|
-
] : [0, 0, 0], um = {
|
22072
|
+
}, om = (e) => e.every((t) => !t || typeof t == "string" && t.trim() === ""), hu = (e) => e ? [e.getHours(), e.getMinutes(), e.getSeconds()] : [0, 0, 0], um = {
|
22073
22073
|
date: "yyyy-MM-dd",
|
22074
22074
|
month: "yyyy-MM",
|
22075
22075
|
year: "yyyy",
|
@@ -22144,7 +22144,10 @@ const Ik = (e, t) => new Date(e, t + 1, 0).getDate(), ng = (e, t) => {
|
|
22144
22144
|
}, t = new RegExp(["yyyy", "Mmmm", "mmmm", "Mmm", "mmm", "mm", "m"].join("|"), "g");
|
22145
22145
|
return (n, i, s) => {
|
22146
22146
|
const r = /(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/, o = i.match(r).slice(1), u = o[1], d = [o[0], o[2]].map((c) => ({
|
22147
|
-
label: c.replace(
|
22147
|
+
label: c.replace(
|
22148
|
+
/\[[^\]]+\]/,
|
22149
|
+
(m) => m.slice(1, -1).replace(t, (v) => e[v](s, n))
|
22150
|
+
),
|
22148
22151
|
type: c.indexOf("yy") !== -1 ? "year" : "month"
|
22149
22152
|
}));
|
22150
22153
|
return {
|
@@ -22471,7 +22474,16 @@ const Tk = (e, ...t) => {
|
|
22471
22474
|
type: String,
|
22472
22475
|
default: "date",
|
22473
22476
|
validator(e) {
|
22474
|
-
return [
|
22477
|
+
return [
|
22478
|
+
"year",
|
22479
|
+
"month",
|
22480
|
+
"date",
|
22481
|
+
"daterange",
|
22482
|
+
"datetime",
|
22483
|
+
"datetimerange",
|
22484
|
+
"time",
|
22485
|
+
"timerange"
|
22486
|
+
].indexOf(e) < 0 ? (console.error(`type property is not valid: '${e}'`), !1) : !0;
|
22475
22487
|
}
|
22476
22488
|
},
|
22477
22489
|
// 外部设置的 popover class name
|
@@ -23546,7 +23558,13 @@ const Tk = (e, ...t) => {
|
|
23546
23558
|
if (u.currentView === "time")
|
23547
23559
|
u.dates = E;
|
23548
23560
|
else {
|
23549
|
-
const [le, V] = [u.rangeState.from, E].sort(c), X = K === "upToNow" ?
|
23561
|
+
const [le, V] = [u.rangeState.from, E].sort(c), X = K === "upToNow" ? (
|
23562
|
+
// upToNow 时,结束的时间为当前时间
|
23563
|
+
/* @__PURE__ */ new Date()
|
23564
|
+
) : (
|
23565
|
+
// 结束的时间 不是 00:00:00,改为 23:59:59
|
23566
|
+
new Date(new Date(new Date(V.setHours(23)).setMinutes(59)).setSeconds(59))
|
23567
|
+
);
|
23550
23568
|
u.dates = [le, X], u.rangeState = {
|
23551
23569
|
from: le,
|
23552
23570
|
to: X,
|
@@ -24895,11 +24913,8 @@ const Uk = {
|
|
24895
24913
|
* 当前节点标识图标
|
24896
24914
|
* 默认 true
|
24897
24915
|
*/
|
24898
|
-
prefixIcon: p.oneOfType([
|
24899
|
-
|
24900
|
-
}),
|
24901
|
-
p.bool.def(!1)
|
24902
|
-
]).def(!0),
|
24916
|
+
prefixIcon: p.oneOfType([p.func.def(() => {
|
24917
|
+
}), p.bool.def(!1)]).def(!0),
|
24903
24918
|
/**
|
24904
24919
|
* 异步加载节点数据配置
|
24905
24920
|
* @param callback 请求数据回调函数,函数返回 Promise
|
@@ -24941,29 +24956,22 @@ const Uk = {
|
|
24941
24956
|
/**
|
24942
24957
|
* 需要匹配的值
|
24943
24958
|
* */
|
24944
|
-
value: p.oneOfType([
|
24945
|
-
p.number,
|
24946
|
-
p.string,
|
24947
|
-
p.bool
|
24948
|
-
]).def(""),
|
24959
|
+
value: p.oneOfType([p.number, p.string, p.bool]).def(""),
|
24949
24960
|
/**
|
24950
|
-
|
24951
|
-
|
24952
|
-
|
24953
|
-
|
24954
|
-
|
24955
|
-
match: p.oneOfType([
|
24956
|
-
kn(),
|
24957
|
-
p.func
|
24958
|
-
]).def(
|
24961
|
+
* 匹配方式
|
24962
|
+
* 支持模糊匹配(fuzzy) || 完全匹配(full)
|
24963
|
+
* 默认 模糊匹配(fuzzy)
|
24964
|
+
* 支持自定义匹配函数 (searchValue, itemText, item) => true || false
|
24965
|
+
*/
|
24966
|
+
match: p.oneOfType([kn(), p.func]).def(
|
24959
24967
|
"fuzzy"
|
24960
24968
|
/* FUZZY */
|
24961
24969
|
),
|
24962
24970
|
/**
|
24963
|
-
|
24964
|
-
|
24965
|
-
|
24966
|
-
|
24971
|
+
* 搜索结果如何展示
|
24972
|
+
* 显示为 tree || list
|
24973
|
+
* 默认 tree
|
24974
|
+
*/
|
24967
24975
|
resultType: kn().def(
|
24968
24976
|
"tree"
|
24969
24977
|
/* TREE */
|
@@ -25140,7 +25148,9 @@ const Uk = {
|
|
25140
25148
|
var i;
|
25141
25149
|
return (i = X0(e, t)) == null ? void 0 : i[n];
|
25142
25150
|
}, qk = (e, t) => ({
|
25143
|
-
"--level-line": vm(t, "levelLine", e, mm, null, [
|
25151
|
+
"--level-line": vm(t, "levelLine", e, mm, null, [
|
25152
|
+
"tree"
|
25153
|
+
]),
|
25144
25154
|
"--lineHeight": `${t.lineHeight}px`,
|
25145
25155
|
"--indent": `${t.indent}px`,
|
25146
25156
|
"--offset-left": `${t.offsetLeft}px`
|
@@ -25883,6 +25893,7 @@ const Uk = {
|
|
25883
25893
|
submit: null,
|
25884
25894
|
validate: (e, t, n) => ht.isString(e) && ht.isBoolean(t) && ht.isString(n)
|
25885
25895
|
}, gD = /* @__PURE__ */ be({
|
25896
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
25886
25897
|
name: "Form",
|
25887
25898
|
props: fD,
|
25888
25899
|
emits: hD,
|
@@ -26118,6 +26129,7 @@ const Uk = {
|
|
26118
26129
|
// 栅格向右移动格数
|
26119
26130
|
push: p.number.def(0)
|
26120
26131
|
}, LD = /* @__PURE__ */ be({
|
26132
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
26121
26133
|
name: "Col",
|
26122
26134
|
props: ID,
|
26123
26135
|
emits: [],
|
@@ -28398,10 +28410,14 @@ const GD = (e) => {
|
|
28398
28410
|
const C = eh(y);
|
28399
28411
|
y.status < 200 || y.status >= 300 ? (c(C), e.onError(new Error("An error occurred during upload"))) : d("reponseText");
|
28400
28412
|
}
|
28401
|
-
}, y.upload.addEventListener(
|
28402
|
-
|
28403
|
-
|
28404
|
-
|
28413
|
+
}, y.upload.addEventListener(
|
28414
|
+
"progress",
|
28415
|
+
(C) => {
|
28416
|
+
const x = C;
|
28417
|
+
e.onProgress(x, o);
|
28418
|
+
},
|
28419
|
+
!1
|
28420
|
+
), e.withCredentials && "withCredentials" in y && (y.withCredentials = !0), y.open(e.method, e.sliceUrl, !0), e.header)
|
28405
28421
|
if (Array.isArray(e.header))
|
28406
28422
|
e.header.forEach((C) => {
|
28407
28423
|
const x = C.name, w = C.value;
|
@@ -31964,7 +31980,7 @@ const YO = /* @__PURE__ */ be({
|
|
31964
31980
|
return y;
|
31965
31981
|
const x = [];
|
31966
31982
|
let w = -1;
|
31967
|
-
return b = b.replace(/([.*/]{1})/
|
31983
|
+
return b = b.replace(/([.*/]{1})/gim, "\\$1"), y.replace(new RegExp(`${b}`, "igm"), (S, I) => (x.length === 0 && I !== 0 ? x.push(y.slice(0, I)) : w >= 0 && x.push(y.slice(w + S.length, I)), x.push(f("span", {
|
31968
31984
|
class: "is-keyword"
|
31969
31985
|
}, [S])), w = I, S)), w >= 0 && x.push(y.slice(w + C)), x.length ? x : y;
|
31970
31986
|
}
|