@dazhicheng/ui 1.5.120 → 1.5.121
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { FieldEntry } from '../types/forms';
|
|
2
3
|
import { FormSchema } from '../types';
|
|
3
4
|
declare const FormArrayRegister: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
fieldName: {
|
|
@@ -6,7 +7,7 @@ declare const FormArrayRegister: import('vue').DefineComponent<import('vue').Ext
|
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
arraySchema: {
|
|
9
|
-
type: PropType<FormSchema[]>;
|
|
10
|
+
type: PropType<FormSchema[] | ((entry: FieldEntry<Recordable>, currentIndex: number) => FormSchema[])>;
|
|
10
11
|
default: () => FormSchema[];
|
|
11
12
|
};
|
|
12
13
|
formItemClass: {
|
|
@@ -29,7 +30,7 @@ declare const FormArrayRegister: import('vue').DefineComponent<import('vue').Ext
|
|
|
29
30
|
required: true;
|
|
30
31
|
};
|
|
31
32
|
arraySchema: {
|
|
32
|
-
type: PropType<FormSchema[]>;
|
|
33
|
+
type: PropType<FormSchema[] | ((entry: FieldEntry<Recordable>, currentIndex: number) => FormSchema[])>;
|
|
33
34
|
default: () => FormSchema[];
|
|
34
35
|
};
|
|
35
36
|
formItemClass: {
|
|
@@ -46,7 +47,7 @@ declare const FormArrayRegister: import('vue').DefineComponent<import('vue').Ext
|
|
|
46
47
|
};
|
|
47
48
|
}>> & Readonly<{}>, {
|
|
48
49
|
rules: import('../types').FormSchemaRuleType | undefined;
|
|
49
|
-
arraySchema: FormSchema<keyof import('../types').BaseFormComponentMap>[];
|
|
50
|
+
arraySchema: FormSchema<keyof import('../types').BaseFormComponentMap>[] | ((entry: FieldEntry<Recordable>, currentIndex: number) => FormSchema[]);
|
|
50
51
|
formItemClass: NonNullable<string | (() => string) | undefined>;
|
|
51
52
|
virtual: boolean;
|
|
52
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -54,11 +54,17 @@ export interface UseFormSchemasLinkFieldConfig {
|
|
|
54
54
|
dependencies?: TtFormSchema["dependencies"];
|
|
55
55
|
/** 字段值变化后的追加回调。默认联动逻辑会先执行,再执行该回调。 */
|
|
56
56
|
onChange?: (values: unknown, context: FieldOnChangeContext) => void;
|
|
57
|
+
/** 是否展示全部选项 */
|
|
57
58
|
showAll?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* @description 自定义过滤数据源
|
|
61
|
+
* @param values 表单对象
|
|
62
|
+
* @param options 下拉数据源(完整的)
|
|
63
|
+
*/
|
|
64
|
+
customOptions?: (values: Recordable, options: SelectOption[]) => SelectOption[];
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
|
-
* useFormSchemasLink
|
|
61
|
-
*
|
|
67
|
+
* useFormSchemasLink 的批量配置
|
|
62
68
|
* 可以通过 fromOptions(options) 一次性传入,也可以使用 builder 链式方法逐项配置。
|
|
63
69
|
*/
|
|
64
70
|
export interface UseFormSchemasLinkOptions {
|
package/dist/index.js
CHANGED
|
@@ -345,7 +345,7 @@ const t4 = (e, n) => {
|
|
|
345
345
|
position: [De, ke]
|
|
346
346
|
}], ne = () => ["no-repeat", {
|
|
347
347
|
repeat: ["", "x", "y", "space", "round"]
|
|
348
|
-
}],
|
|
348
|
+
}], _ = () => ["auto", "cover", "contain", R4, M4, {
|
|
349
349
|
size: [De, ke]
|
|
350
350
|
}], ie = () => [Nu, Sr, no], fe = () => [
|
|
351
351
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -355,7 +355,7 @@ const t4 = (e, n) => {
|
|
|
355
355
|
s,
|
|
356
356
|
De,
|
|
357
357
|
ke
|
|
358
|
-
],
|
|
358
|
+
], H = () => ["", Ze, Sr, no], L = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [Ze, Nu, Sf, Df], W = () => [
|
|
359
359
|
// Deprecated since Tailwind CSS v4.0.0
|
|
360
360
|
"",
|
|
361
361
|
"none",
|
|
@@ -1431,7 +1431,7 @@ const t4 = (e, n) => {
|
|
|
1431
1431
|
* @see https://tailwindcss.com/docs/background-size
|
|
1432
1432
|
*/
|
|
1433
1433
|
"bg-size": [{
|
|
1434
|
-
bg:
|
|
1434
|
+
bg: _()
|
|
1435
1435
|
}],
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Background Image
|
|
@@ -1608,84 +1608,84 @@ const t4 = (e, n) => {
|
|
|
1608
1608
|
* @see https://tailwindcss.com/docs/border-width
|
|
1609
1609
|
*/
|
|
1610
1610
|
"border-w": [{
|
|
1611
|
-
border:
|
|
1611
|
+
border: H()
|
|
1612
1612
|
}],
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Border Width Inline
|
|
1615
1615
|
* @see https://tailwindcss.com/docs/border-width
|
|
1616
1616
|
*/
|
|
1617
1617
|
"border-w-x": [{
|
|
1618
|
-
"border-x":
|
|
1618
|
+
"border-x": H()
|
|
1619
1619
|
}],
|
|
1620
1620
|
/**
|
|
1621
1621
|
* Border Width Block
|
|
1622
1622
|
* @see https://tailwindcss.com/docs/border-width
|
|
1623
1623
|
*/
|
|
1624
1624
|
"border-w-y": [{
|
|
1625
|
-
"border-y":
|
|
1625
|
+
"border-y": H()
|
|
1626
1626
|
}],
|
|
1627
1627
|
/**
|
|
1628
1628
|
* Border Width Inline Start
|
|
1629
1629
|
* @see https://tailwindcss.com/docs/border-width
|
|
1630
1630
|
*/
|
|
1631
1631
|
"border-w-s": [{
|
|
1632
|
-
"border-s":
|
|
1632
|
+
"border-s": H()
|
|
1633
1633
|
}],
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Border Width Inline End
|
|
1636
1636
|
* @see https://tailwindcss.com/docs/border-width
|
|
1637
1637
|
*/
|
|
1638
1638
|
"border-w-e": [{
|
|
1639
|
-
"border-e":
|
|
1639
|
+
"border-e": H()
|
|
1640
1640
|
}],
|
|
1641
1641
|
/**
|
|
1642
1642
|
* Border Width Block Start
|
|
1643
1643
|
* @see https://tailwindcss.com/docs/border-width
|
|
1644
1644
|
*/
|
|
1645
1645
|
"border-w-bs": [{
|
|
1646
|
-
"border-bs":
|
|
1646
|
+
"border-bs": H()
|
|
1647
1647
|
}],
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Border Width Block End
|
|
1650
1650
|
* @see https://tailwindcss.com/docs/border-width
|
|
1651
1651
|
*/
|
|
1652
1652
|
"border-w-be": [{
|
|
1653
|
-
"border-be":
|
|
1653
|
+
"border-be": H()
|
|
1654
1654
|
}],
|
|
1655
1655
|
/**
|
|
1656
1656
|
* Border Width Top
|
|
1657
1657
|
* @see https://tailwindcss.com/docs/border-width
|
|
1658
1658
|
*/
|
|
1659
1659
|
"border-w-t": [{
|
|
1660
|
-
"border-t":
|
|
1660
|
+
"border-t": H()
|
|
1661
1661
|
}],
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Border Width Right
|
|
1664
1664
|
* @see https://tailwindcss.com/docs/border-width
|
|
1665
1665
|
*/
|
|
1666
1666
|
"border-w-r": [{
|
|
1667
|
-
"border-r":
|
|
1667
|
+
"border-r": H()
|
|
1668
1668
|
}],
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Border Width Bottom
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/border-width
|
|
1672
1672
|
*/
|
|
1673
1673
|
"border-w-b": [{
|
|
1674
|
-
"border-b":
|
|
1674
|
+
"border-b": H()
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Border Width Left
|
|
1678
1678
|
* @see https://tailwindcss.com/docs/border-width
|
|
1679
1679
|
*/
|
|
1680
1680
|
"border-w-l": [{
|
|
1681
|
-
"border-l":
|
|
1681
|
+
"border-l": H()
|
|
1682
1682
|
}],
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Divide Width X
|
|
1685
1685
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1686
1686
|
*/
|
|
1687
1687
|
"divide-x": [{
|
|
1688
|
-
"divide-x":
|
|
1688
|
+
"divide-x": H()
|
|
1689
1689
|
}],
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Divide Width X Reverse
|
|
@@ -1697,7 +1697,7 @@ const t4 = (e, n) => {
|
|
|
1697
1697
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1698
1698
|
*/
|
|
1699
1699
|
"divide-y": [{
|
|
1700
|
-
"divide-y":
|
|
1700
|
+
"divide-y": H()
|
|
1701
1701
|
}],
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Divide Width Y Reverse
|
|
@@ -1873,7 +1873,7 @@ const t4 = (e, n) => {
|
|
|
1873
1873
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1874
1874
|
*/
|
|
1875
1875
|
"ring-w": [{
|
|
1876
|
-
ring:
|
|
1876
|
+
ring: H()
|
|
1877
1877
|
}],
|
|
1878
1878
|
/**
|
|
1879
1879
|
* Ring Width Inset
|
|
@@ -1912,7 +1912,7 @@ const t4 = (e, n) => {
|
|
|
1912
1912
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1913
1913
|
*/
|
|
1914
1914
|
"inset-ring-w": [{
|
|
1915
|
-
"inset-ring":
|
|
1915
|
+
"inset-ring": H()
|
|
1916
1916
|
}],
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Inset Ring Color
|
|
@@ -2136,7 +2136,7 @@ const t4 = (e, n) => {
|
|
|
2136
2136
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2137
2137
|
*/
|
|
2138
2138
|
"mask-size": [{
|
|
2139
|
-
mask:
|
|
2139
|
+
mask: _()
|
|
2140
2140
|
}],
|
|
2141
2141
|
/**
|
|
2142
2142
|
* Mask Type
|
|
@@ -5373,11 +5373,11 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5373
5373
|
const o = e, t = i, { prefixCls: r } = vn("select-table"), a = Bt("vxelist"), l = Bt("table"), u = Bt("resizableBar"), s = V(!1), c = It(), g = V(""), h = V(!1);
|
|
5374
5374
|
let f = null;
|
|
5375
5375
|
const A = V([]), p = V(!1), m = k(() => {
|
|
5376
|
-
var
|
|
5376
|
+
var _, ie;
|
|
5377
5377
|
return {
|
|
5378
5378
|
maxHeight: Bp,
|
|
5379
5379
|
minHeight: jp,
|
|
5380
|
-
showHeader: ((
|
|
5380
|
+
showHeader: ((_ = o.grid) == null ? void 0 : _.showHeader) !== void 0 ? o.grid.showHeader : ((ie = d(b)) == null ? void 0 : ie.length) > 1 && !!o.list.length,
|
|
5381
5381
|
virtualYConfig: {
|
|
5382
5382
|
enabled: !0,
|
|
5383
5383
|
gt: 30,
|
|
@@ -5389,13 +5389,13 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5389
5389
|
loading: o.loading,
|
|
5390
5390
|
data: o.list
|
|
5391
5391
|
};
|
|
5392
|
-
}), y = k(() => o.list.filter((
|
|
5393
|
-
var ie, fe,
|
|
5394
|
-
return (fe = (ie = o.grid) == null ? void 0 : ie.columns) != null && fe.length ? (
|
|
5392
|
+
}), y = k(() => o.list.filter((_) => _.checked)), b = k(() => {
|
|
5393
|
+
var ie, fe, H, L;
|
|
5394
|
+
return (fe = (ie = o.grid) == null ? void 0 : ie.columns) != null && fe.length ? (H = o.grid) == null ? void 0 : H.columns : [{ title: "label", field: ((L = o.configProps) == null ? void 0 : L.labelField) ?? "label" }];
|
|
5395
5395
|
});
|
|
5396
|
-
function E(
|
|
5397
|
-
|
|
5398
|
-
const { clientX: fe } =
|
|
5396
|
+
function E(_, ie) {
|
|
5397
|
+
_.stopPropagation(), _.preventDefault(), s.value = !0;
|
|
5398
|
+
const { clientX: fe } = _, H = _.target, L = H.parentNode, oe = l.value, $ = H.getBoundingClientRect(), W = oe == null ? void 0 : oe.getBoundingClientRect(), Y = H.clientWidth, ue = Math.floor(Y / 2), ze = Uu($.x).sub((W == null ? void 0 : W.x) || 0).add(ue).toNumber();
|
|
5399
5399
|
let xe = 0, Ve = L.clientWidth;
|
|
5400
5400
|
const un = Uu(ze).sub(Ve).add(ie.minWidth || 50).toNumber(), Mn = u.value;
|
|
5401
5401
|
if (!Mn) return;
|
|
@@ -5413,79 +5413,79 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5413
5413
|
Wn.textContent = `宽:${Ve}像素`;
|
|
5414
5414
|
}
|
|
5415
5415
|
}
|
|
5416
|
-
function S(
|
|
5417
|
-
t("checkbox-all", { checked:
|
|
5416
|
+
function S(_) {
|
|
5417
|
+
t("checkbox-all", { checked: _ });
|
|
5418
5418
|
}
|
|
5419
|
-
function w(
|
|
5419
|
+
function w(_) {
|
|
5420
5420
|
var ie;
|
|
5421
|
-
|
|
5421
|
+
_.disabled || _.isDelete || (F(), _.isCurrent = !0, _.checked = !_.checked, o.multiple ? t("checkbox-change", { checked: _.checked, row: _ }) : t("radio-change", { oldValue: (ie = y.value) == null ? void 0 : ie[0], row: _ }));
|
|
5422
5422
|
}
|
|
5423
|
-
function C(
|
|
5423
|
+
function C(_, ie) {
|
|
5424
5424
|
if (!ie.disabled && !ie.isDelete) return;
|
|
5425
|
-
const fe =
|
|
5425
|
+
const fe = _.currentTarget;
|
|
5426
5426
|
if (!fe) return;
|
|
5427
|
-
const
|
|
5428
|
-
|
|
5427
|
+
const H = ie.message;
|
|
5428
|
+
H && (f && (clearTimeout(f), f = null), c.value = fe, g.value = H, h.value = !0);
|
|
5429
5429
|
}
|
|
5430
5430
|
function v() {
|
|
5431
5431
|
h.value = !1, f && clearTimeout(f), f = setTimeout(() => {
|
|
5432
5432
|
h.value || (c.value = void 0, g.value = ""), f = null;
|
|
5433
5433
|
}, 300);
|
|
5434
5434
|
}
|
|
5435
|
-
function x(
|
|
5436
|
-
Array.isArray(
|
|
5435
|
+
function x(_, ie) {
|
|
5436
|
+
Array.isArray(_) ? _.forEach((fe) => {
|
|
5437
5437
|
fe.checked = ie;
|
|
5438
|
-
}) :
|
|
5438
|
+
}) : _.checked = ie;
|
|
5439
5439
|
}
|
|
5440
5440
|
function z() {
|
|
5441
|
-
o.list.forEach((
|
|
5442
|
-
|
|
5441
|
+
o.list.forEach((_) => {
|
|
5442
|
+
_.checked = !1;
|
|
5443
5443
|
}), p.value = !1;
|
|
5444
5444
|
}
|
|
5445
|
-
function D(
|
|
5446
|
-
|
|
5445
|
+
function D(_) {
|
|
5446
|
+
_ && (_.checked = !0);
|
|
5447
5447
|
}
|
|
5448
5448
|
function O() {
|
|
5449
|
-
const
|
|
5450
|
-
|
|
5449
|
+
const _ = o.list.find((ie) => ie.checked);
|
|
5450
|
+
_ && (_.checked = !1);
|
|
5451
5451
|
}
|
|
5452
|
-
function I(
|
|
5452
|
+
function I(_, ie) {
|
|
5453
5453
|
var fe;
|
|
5454
|
-
(fe = a.value) == null || fe.scrollTo(
|
|
5454
|
+
(fe = a.value) == null || fe.scrollTo(_, ie);
|
|
5455
5455
|
}
|
|
5456
5456
|
function Q() {
|
|
5457
|
-
return o.list.find((
|
|
5457
|
+
return o.list.find((_) => _.isCurrent);
|
|
5458
5458
|
}
|
|
5459
|
-
function M(
|
|
5460
|
-
return o.list.findIndex((ie) => ie.value === (
|
|
5459
|
+
function M(_) {
|
|
5460
|
+
return o.list.findIndex((ie) => ie.value === (_ == null ? void 0 : _.value));
|
|
5461
5461
|
}
|
|
5462
|
-
function G(
|
|
5462
|
+
function G(_) {
|
|
5463
5463
|
var W, Y;
|
|
5464
|
-
const ie = M(
|
|
5464
|
+
const ie = M(_), fe = (W = a.value) == null ? void 0 : W.$el.querySelector(".vxe-list--virtual-wrapper"), H = fe.clientHeight, L = (Y = fe.querySelector(".vxe-body--row")) == null ? void 0 : Y.clientHeight, oe = Math.floor(H / L - 2), $ = (ie - oe) * L;
|
|
5465
5465
|
I(null, $);
|
|
5466
5466
|
}
|
|
5467
|
-
function T(
|
|
5468
|
-
F(),
|
|
5467
|
+
function T(_) {
|
|
5468
|
+
F(), _.isCurrent = !0;
|
|
5469
5469
|
}
|
|
5470
5470
|
function F() {
|
|
5471
|
-
const
|
|
5472
|
-
|
|
5471
|
+
const _ = o.list.find((ie) => ie.isCurrent);
|
|
5472
|
+
_ && (_.isCurrent = !1);
|
|
5473
5473
|
}
|
|
5474
|
-
function B(
|
|
5475
|
-
return
|
|
5474
|
+
function B(_) {
|
|
5475
|
+
return _ !== void 0 ? o.list[_] : o.list;
|
|
5476
5476
|
}
|
|
5477
5477
|
function q() {
|
|
5478
|
-
var fe,
|
|
5479
|
-
const
|
|
5480
|
-
return ((
|
|
5478
|
+
var fe, H;
|
|
5479
|
+
const _ = o.selectWidth / ((fe = d(b)) == null ? void 0 : fe.length);
|
|
5480
|
+
return ((H = d(b)) == null ? void 0 : H.length) * 130 < o.selectWidth ? _ : 130;
|
|
5481
5481
|
}
|
|
5482
|
-
function j(
|
|
5483
|
-
const { scrollTop: ie, $event: fe } =
|
|
5484
|
-
ie > 100 && ie + m.value.maxHeight >=
|
|
5482
|
+
function j(_) {
|
|
5483
|
+
const { scrollTop: ie, $event: fe } = _, H = fe.target.scrollHeight;
|
|
5484
|
+
ie > 100 && ie + m.value.maxHeight >= H && !o.loading && K(), t("scroll", _);
|
|
5485
5485
|
}
|
|
5486
5486
|
const K = dc(() => {
|
|
5487
|
-
const { total:
|
|
5488
|
-
(
|
|
5487
|
+
const { total: _, currentPage: ie = 0 } = o.getPagination();
|
|
5488
|
+
(_ && o.list.length < _ || o.hasNextPage) && (o.setPagination({ currentPage: ie + 1 }), we(() => {
|
|
5489
5489
|
o.reload();
|
|
5490
5490
|
}));
|
|
5491
5491
|
}, 200), ne = {
|
|
@@ -5504,18 +5504,18 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5504
5504
|
return ge(
|
|
5505
5505
|
() => o.grid.columns,
|
|
5506
5506
|
() => {
|
|
5507
|
-
const
|
|
5507
|
+
const _ = d(b), ie = zn(_) || [];
|
|
5508
5508
|
o.multiple && o.showCheckbox && ie.unshift({
|
|
5509
5509
|
width: 40,
|
|
5510
5510
|
type: "checkbox",
|
|
5511
5511
|
field: "checkbox"
|
|
5512
5512
|
});
|
|
5513
5513
|
const fe = q();
|
|
5514
|
-
A.value = ie.map((
|
|
5515
|
-
const L =
|
|
5514
|
+
A.value = ie.map((H) => {
|
|
5515
|
+
const L = _.length <= 1 ? o.selectWidth : H.minWidth || H.width || fe, oe = _.length <= 1 ? o.selectWidth : H.width || fe, $ = H.type ? H.width : oe, W = {};
|
|
5516
5516
|
return $ && (W.width = `${$}px`), {
|
|
5517
|
-
...
|
|
5518
|
-
title: (
|
|
5517
|
+
...H,
|
|
5518
|
+
title: (H.title, H.title),
|
|
5519
5519
|
minWidth: L,
|
|
5520
5520
|
width: $,
|
|
5521
5521
|
style: W
|
|
@@ -5525,13 +5525,13 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5525
5525
|
{ immediate: !0 }
|
|
5526
5526
|
), ge(
|
|
5527
5527
|
() => y.value,
|
|
5528
|
-
(
|
|
5529
|
-
p.value =
|
|
5528
|
+
(_) => {
|
|
5529
|
+
p.value = _.length === o.list.length;
|
|
5530
5530
|
}
|
|
5531
5531
|
), n({
|
|
5532
5532
|
getGridInstance: () => ne,
|
|
5533
5533
|
...ne
|
|
5534
|
-
}), (
|
|
5534
|
+
}), (_, ie) => (P(), ve(d(Zx), Qe({
|
|
5535
5535
|
ref: "vxelist",
|
|
5536
5536
|
style: { height: "auto", "max-height": "360px" },
|
|
5537
5537
|
class: {
|
|
@@ -5545,50 +5545,50 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5545
5545
|
me("table", Qz, [
|
|
5546
5546
|
m.value.showHeader ? (P(), re("thead", Oz, [
|
|
5547
5547
|
me("tr", Mz, [
|
|
5548
|
-
(P(!0), re(en, null, Ke(A.value, (
|
|
5548
|
+
(P(!0), re(en, null, Ke(A.value, (H) => {
|
|
5549
5549
|
var L, oe, $;
|
|
5550
5550
|
return P(), re("th", {
|
|
5551
|
-
key:
|
|
5551
|
+
key: H.field,
|
|
5552
5552
|
class: "vxe-header--column fixed--width is--padding",
|
|
5553
|
-
style: dn(
|
|
5553
|
+
style: dn(H.style)
|
|
5554
5554
|
}, [
|
|
5555
5555
|
me("div", Fz, [
|
|
5556
|
-
|
|
5556
|
+
H.type === "checkbox" ? (P(), ve(d(ri), {
|
|
5557
5557
|
key: 0,
|
|
5558
5558
|
modelValue: p.value,
|
|
5559
5559
|
"onUpdate:modelValue": ie[0] || (ie[0] = (W) => p.value = W),
|
|
5560
5560
|
indeterminate: ((L = y.value) == null ? void 0 : L.length) > 0 && ((oe = y.value) == null ? void 0 : oe.length) < (($ = o.list) == null ? void 0 : $.length),
|
|
5561
5561
|
onChange: S
|
|
5562
5562
|
}, null, 8, ["modelValue", "indeterminate"])) : (P(), re(en, { key: 1 }, [
|
|
5563
|
-
gn(nn(
|
|
5563
|
+
gn(nn(H.title), 1)
|
|
5564
5564
|
], 64))
|
|
5565
5565
|
]),
|
|
5566
5566
|
me("div", {
|
|
5567
5567
|
class: "vxe-cell--col-resizable",
|
|
5568
|
-
onMousedown: (W) => E(W,
|
|
5568
|
+
onMousedown: (W) => E(W, H)
|
|
5569
5569
|
}, null, 40, Tz)
|
|
5570
5570
|
], 4);
|
|
5571
5571
|
}), 128))
|
|
5572
5572
|
])
|
|
5573
5573
|
])) : Oe("", !0),
|
|
5574
5574
|
me("tbody", null, [
|
|
5575
|
-
!
|
|
5576
|
-
se(
|
|
5575
|
+
!_.loading && !fe.length ? (P(), re("div", Pz, [
|
|
5576
|
+
se(_.$slots, "empty", {}, () => [
|
|
5577
5577
|
J(d(od))
|
|
5578
5578
|
])
|
|
5579
5579
|
])) : Oe("", !0),
|
|
5580
|
-
(P(!0), re(en, null, Ke(fe, (
|
|
5580
|
+
(P(!0), re(en, null, Ke(fe, (H, L) => {
|
|
5581
5581
|
var oe;
|
|
5582
5582
|
return P(), re("tr", {
|
|
5583
|
-
key:
|
|
5583
|
+
key: H.value,
|
|
5584
5584
|
class: de(["vxe-body--row", {
|
|
5585
|
-
"is--selected":
|
|
5586
|
-
"is--disabled":
|
|
5587
|
-
"is--current":
|
|
5588
|
-
"is--delete":
|
|
5585
|
+
"is--selected": H.checked,
|
|
5586
|
+
"is--disabled": H.disabled,
|
|
5587
|
+
"is--current": H.isCurrent,
|
|
5588
|
+
"is--delete": H.isDelete
|
|
5589
5589
|
}]),
|
|
5590
|
-
onClick: li(($) => w(
|
|
5591
|
-
onMouseenter: ($) => C($,
|
|
5590
|
+
onClick: li(($) => w(H), ["prevent"]),
|
|
5591
|
+
onMouseenter: ($) => C($, H),
|
|
5592
5592
|
onMouseleave: v
|
|
5593
5593
|
}, [
|
|
5594
5594
|
(oe = A.value) != null && oe.length ? (P(!0), re(en, { key: 0 }, Ke(A.value, ($, W) => {
|
|
@@ -5599,24 +5599,24 @@ const Cz = /* @__PURE__ */ pe({
|
|
|
5599
5599
|
style: dn($.style)
|
|
5600
5600
|
}, [
|
|
5601
5601
|
me("div", Rz, [
|
|
5602
|
-
(Y = $.slots) != null && Y.default ? se(
|
|
5602
|
+
(Y = $.slots) != null && Y.default ? se(_.$slots, (ue = $.slots) == null ? void 0 : ue.default, {
|
|
5603
5603
|
key: 0,
|
|
5604
|
-
item: { column: $, row:
|
|
5604
|
+
item: { column: $, row: H.item, rowIndex: L, columnIndex: W }
|
|
5605
5605
|
}) : $.type === "checkbox" ? (P(), ve(d(ri), {
|
|
5606
5606
|
key: 1,
|
|
5607
|
-
modelValue:
|
|
5608
|
-
"onUpdate:modelValue": (xe) =>
|
|
5609
|
-
disabled:
|
|
5607
|
+
modelValue: H.checked,
|
|
5608
|
+
"onUpdate:modelValue": (xe) => H.checked = xe,
|
|
5609
|
+
disabled: H.isDelete || H.disabled
|
|
5610
5610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (P(), ve(d(Dt), {
|
|
5611
5611
|
key: 2,
|
|
5612
|
-
"model-value": String(((ze =
|
|
5612
|
+
"model-value": String(((ze = H.item) == null ? void 0 : ze[$.field]) ?? "")
|
|
5613
5613
|
}, null, 8, ["model-value"]))
|
|
5614
5614
|
])
|
|
5615
5615
|
], 4);
|
|
5616
5616
|
}), 128)) : (P(), re("td", Uz, [
|
|
5617
5617
|
me("div", Lz, [
|
|
5618
5618
|
J(d(Dt), {
|
|
5619
|
-
"model-value": String(
|
|
5619
|
+
"model-value": String(H.label ?? "")
|
|
5620
5620
|
}, null, 8, ["model-value"])
|
|
5621
5621
|
])
|
|
5622
5622
|
]))
|
|
@@ -6113,7 +6113,7 @@ function Zz(e, n, i) {
|
|
|
6113
6113
|
a.value = zn(d(o));
|
|
6114
6114
|
}
|
|
6115
6115
|
const ne = fr(q, 300);
|
|
6116
|
-
async function
|
|
6116
|
+
async function _() {
|
|
6117
6117
|
d(e).api && (t.value = "", n.setPagination({
|
|
6118
6118
|
currentPage: 1
|
|
6119
6119
|
}), await q());
|
|
@@ -6124,7 +6124,7 @@ function Zz(e, n, i) {
|
|
|
6124
6124
|
function fe(L) {
|
|
6125
6125
|
l.value = L;
|
|
6126
6126
|
}
|
|
6127
|
-
function
|
|
6127
|
+
function H() {
|
|
6128
6128
|
n.renderType === "table" && o.value.forEach((L) => {
|
|
6129
6129
|
L.item && (L.disabled = j(L.item));
|
|
6130
6130
|
});
|
|
@@ -6159,14 +6159,14 @@ function Zz(e, n, i) {
|
|
|
6159
6159
|
() => ee(d(n).extra),
|
|
6160
6160
|
async (L, oe) => {
|
|
6161
6161
|
const $ = ml(L, oe, d(e).watchExtraField || []);
|
|
6162
|
-
s.value = !!$, $ && d(x) && await
|
|
6162
|
+
s.value = !!$, $ && d(x) && await _();
|
|
6163
6163
|
},
|
|
6164
6164
|
{ deep: !0 }
|
|
6165
6165
|
), ge(
|
|
6166
6166
|
() => ee(d(e).defaultData),
|
|
6167
6167
|
async (L, oe) => {
|
|
6168
6168
|
const $ = ml(L, oe);
|
|
6169
|
-
u.value = !!$, $ && d(x) && await
|
|
6169
|
+
u.value = !!$, $ && d(x) && await _();
|
|
6170
6170
|
},
|
|
6171
6171
|
{ deep: !0 }
|
|
6172
6172
|
), ge(
|
|
@@ -6181,7 +6181,7 @@ function Zz(e, n, i) {
|
|
|
6181
6181
|
getIsSelectFirstOption: O,
|
|
6182
6182
|
getImmediate: x,
|
|
6183
6183
|
reload: async (L = !1) => {
|
|
6184
|
-
d(e).api && (L ? await
|
|
6184
|
+
d(e).api && (L ? await _() : await q());
|
|
6185
6185
|
},
|
|
6186
6186
|
searchValue: t,
|
|
6187
6187
|
isLoaded: r,
|
|
@@ -6190,7 +6190,7 @@ function Zz(e, n, i) {
|
|
|
6190
6190
|
activeIndex: l,
|
|
6191
6191
|
setActiveIndex: fe,
|
|
6192
6192
|
needLoad: I,
|
|
6193
|
-
updateOptionsDisabled:
|
|
6193
|
+
updateOptionsDisabled: H
|
|
6194
6194
|
};
|
|
6195
6195
|
}
|
|
6196
6196
|
function Xz() {
|
|
@@ -6793,10 +6793,10 @@ const iE = ["title"], oE = /* @__PURE__ */ pe({
|
|
|
6793
6793
|
const Be = o.disabledTip;
|
|
6794
6794
|
return ft(Be) && Be.length > 0 ? Be.some((X) => !!(X != null && X.condition)) : Kn(Be) ? !!Be.condition : !1;
|
|
6795
6795
|
}), {
|
|
6796
|
-
getOtherSelectProps:
|
|
6796
|
+
getOtherSelectProps: _,
|
|
6797
6797
|
calcMaxCollapseTags: ie,
|
|
6798
6798
|
calcSelectWidth: fe,
|
|
6799
|
-
selectWidth:
|
|
6799
|
+
selectWidth: H,
|
|
6800
6800
|
showPopup: L,
|
|
6801
6801
|
setShowPopup: oe,
|
|
6802
6802
|
getSelectWidth: $
|
|
@@ -6859,7 +6859,7 @@ const iE = ["title"], oE = /* @__PURE__ */ pe({
|
|
|
6859
6859
|
clearable: !0,
|
|
6860
6860
|
persistent: !1,
|
|
6861
6861
|
...gt(o.selectProps, ["allowCreate"]),
|
|
6862
|
-
...d(
|
|
6862
|
+
...d(_),
|
|
6863
6863
|
loading: d(p)
|
|
6864
6864
|
})), Ve = k(() => {
|
|
6865
6865
|
var X;
|
|
@@ -6872,7 +6872,7 @@ const iE = ["title"], oE = /* @__PURE__ */ pe({
|
|
|
6872
6872
|
multiple: o.selectProps.multiple,
|
|
6873
6873
|
disableFn: o.configProps.disableFn,
|
|
6874
6874
|
selectValue: d(u),
|
|
6875
|
-
selectWidth: d(
|
|
6875
|
+
selectWidth: d(H),
|
|
6876
6876
|
deleteField: o.configProps.deleteField,
|
|
6877
6877
|
hasNextPage: d(v),
|
|
6878
6878
|
showCheckbox: (X = o.gridProps) == null ? void 0 : X.showCheckbox,
|
|
@@ -6923,7 +6923,7 @@ const iE = ["title"], oE = /* @__PURE__ */ pe({
|
|
|
6923
6923
|
}, {
|
|
6924
6924
|
deep: !0
|
|
6925
6925
|
}), RA(a, () => {
|
|
6926
|
-
ie(),
|
|
6926
|
+
ie(), H.value = $();
|
|
6927
6927
|
});
|
|
6928
6928
|
function bn(Be) {
|
|
6929
6929
|
try {
|
|
@@ -7206,8 +7206,8 @@ const Ft = "all", rE = /* @__PURE__ */ pe({
|
|
|
7206
7206
|
}));
|
|
7207
7207
|
const G = (o.separator || ",").replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), T = new RegExp(`${G}|\\r?\\n|\\t`, "g"), F = Q.split(T).map((ne) => ne.trim()).filter(Boolean), B = () => {
|
|
7208
7208
|
requestAnimationFrame(() => {
|
|
7209
|
-
var
|
|
7210
|
-
const ne = (
|
|
7209
|
+
var _;
|
|
7210
|
+
const ne = (_ = a.value) == null ? void 0 : _.input;
|
|
7211
7211
|
ne == null || ne.focus(), ne == null || ne.select();
|
|
7212
7212
|
});
|
|
7213
7213
|
};
|
|
@@ -31477,18 +31477,18 @@ function eI(e) {
|
|
|
31477
31477
|
return Array.isArray(K) && K.length > 0;
|
|
31478
31478
|
}) ? D : I ? A(D) : D;
|
|
31479
31479
|
function q(j, K = 0, ne) {
|
|
31480
|
-
return j.map((
|
|
31481
|
-
const ie = cn(
|
|
31480
|
+
return j.map((_) => {
|
|
31481
|
+
const ie = cn(_, Q), fe = cn(_, O) || [], H = [M, Q, G, O].filter(
|
|
31482
31482
|
(oe) => !!oe
|
|
31483
31483
|
), L = {
|
|
31484
|
-
...gc(
|
|
31485
|
-
label: String(cn(
|
|
31484
|
+
...gc(_, H),
|
|
31485
|
+
label: String(cn(_, M) ?? ""),
|
|
31486
31486
|
value: ie,
|
|
31487
|
-
disabled: !!cn(
|
|
31488
|
-
pid: (ne == null ? void 0 : ne.value) ?? cn(
|
|
31487
|
+
disabled: !!cn(_, G),
|
|
31488
|
+
pid: (ne == null ? void 0 : ne.value) ?? cn(_, T),
|
|
31489
31489
|
level: K,
|
|
31490
31490
|
path: [],
|
|
31491
|
-
raw:
|
|
31491
|
+
raw: _
|
|
31492
31492
|
};
|
|
31493
31493
|
return L.path = ne ? [...ne.path, L] : [L], L.children = fe.length ? q(fe, K + 1, L) : void 0, L;
|
|
31494
31494
|
});
|
|
@@ -31829,10 +31829,10 @@ const Oo = 4, tI = /* @__PURE__ */ pe({
|
|
|
31829
31829
|
isGroupIndeterminate: j,
|
|
31830
31830
|
handleGroupCheck: K,
|
|
31831
31831
|
handleAllOptionCheck: ne,
|
|
31832
|
-
handleOptionCheck:
|
|
31832
|
+
handleOptionCheck: _,
|
|
31833
31833
|
handleOptionsCheck: ie,
|
|
31834
31834
|
handleCheckAll: fe,
|
|
31835
|
-
removeSelected:
|
|
31835
|
+
removeSelected: H
|
|
31836
31836
|
} = nI({
|
|
31837
31837
|
multiple: k(() => o.multiple),
|
|
31838
31838
|
modelValue: A,
|
|
@@ -31912,7 +31912,7 @@ const Oo = 4, tI = /* @__PURE__ */ pe({
|
|
|
31912
31912
|
}
|
|
31913
31913
|
function ni(X, ce) {
|
|
31914
31914
|
bn(() => {
|
|
31915
|
-
|
|
31915
|
+
_(X, ce);
|
|
31916
31916
|
});
|
|
31917
31917
|
}
|
|
31918
31918
|
function Si(X, ce) {
|
|
@@ -31922,7 +31922,7 @@ const Oo = 4, tI = /* @__PURE__ */ pe({
|
|
|
31922
31922
|
}
|
|
31923
31923
|
function ti(X) {
|
|
31924
31924
|
bn(() => {
|
|
31925
|
-
|
|
31925
|
+
H(X);
|
|
31926
31926
|
});
|
|
31927
31927
|
}
|
|
31928
31928
|
function Be() {
|
|
@@ -32684,7 +32684,7 @@ const yI = ["aria-tt-id", "data-testid"], bI = ["data-testid"], ld = /* @__PURE_
|
|
|
32684
32684
|
function ne(Y) {
|
|
32685
32685
|
s.value = Y;
|
|
32686
32686
|
}
|
|
32687
|
-
function
|
|
32687
|
+
function _() {
|
|
32688
32688
|
document.querySelectorAll(".el-select__popper").forEach((ue) => {
|
|
32689
32689
|
ue.style.display !== "none" && (ue.style.display = "none");
|
|
32690
32690
|
});
|
|
@@ -32696,7 +32696,7 @@ const yI = ["aria-tt-id", "data-testid"], bI = ["data-testid"], ld = /* @__PURE_
|
|
|
32696
32696
|
const Y = l["data-testid"] || l.dataTestid || l.testId || l["test-id"];
|
|
32697
32697
|
return Y && typeof Y == "string" ? Y : void 0;
|
|
32698
32698
|
}
|
|
32699
|
-
const
|
|
32699
|
+
const H = k(() => {
|
|
32700
32700
|
var Ve;
|
|
32701
32701
|
const Y = (Ve = g.value) == null ? void 0 : Ve.testId;
|
|
32702
32702
|
if (Y)
|
|
@@ -32709,8 +32709,8 @@ const yI = ["aria-tt-id", "data-testid"], bI = ["data-testid"], ld = /* @__PURE_
|
|
|
32709
32709
|
return ie(ze);
|
|
32710
32710
|
const xe = d(f);
|
|
32711
32711
|
return xe && typeof xe == "string" && xe.trim() ? it("modal", Gl(xe)) : u != null && u.uid ? `modal-${u.uid}` : "modal";
|
|
32712
|
-
}), L = k(() => it(
|
|
32713
|
-
Un("modalIdContext",
|
|
32712
|
+
}), L = k(() => it(H.value, "footer")), oe = k(() => it(H.value, "body"));
|
|
32713
|
+
Un("modalIdContext", H);
|
|
32714
32714
|
const $ = hn({
|
|
32715
32715
|
setModalProps: c.setState,
|
|
32716
32716
|
emitVisible: void 0,
|
|
@@ -32739,7 +32739,7 @@ const yI = ["aria-tt-id", "data-testid"], bI = ["data-testid"], ld = /* @__PURE_
|
|
|
32739
32739
|
var ze;
|
|
32740
32740
|
return rt((P(), re("div", {
|
|
32741
32741
|
"aria-tt-id": `tt-id-${(ze = d(u)) == null ? void 0 : ze.uid}`,
|
|
32742
|
-
"data-testid":
|
|
32742
|
+
"data-testid": H.value
|
|
32743
32743
|
}, [
|
|
32744
32744
|
J(d(cx), Qe(q.value, {
|
|
32745
32745
|
class: ["tt-ui-modal", d(a)],
|
|
@@ -32781,7 +32781,7 @@ const yI = ["aria-tt-id", "data-testid"], bI = ["data-testid"], ld = /* @__PURE_
|
|
|
32781
32781
|
fn: Z(() => [
|
|
32782
32782
|
J(pI, {
|
|
32783
32783
|
title: d(f),
|
|
32784
|
-
onMousedown:
|
|
32784
|
+
onMousedown: _
|
|
32785
32785
|
}, Cn({
|
|
32786
32786
|
titleToolbar: Z(() => [
|
|
32787
32787
|
se(Y.$slots, "titleToolbar")
|
|
@@ -33133,12 +33133,12 @@ const BI = /* @__PURE__ */ pe({
|
|
|
33133
33133
|
async function y(B, q) {
|
|
33134
33134
|
const K = `${e.ossDir || q.dir || "notice"}/${Date.now()}_${B.name}`, ne = new FormData();
|
|
33135
33135
|
ne.append("key", K), ne.append("policy", q.policy), ne.append("x-oss-signature-version", q.version), ne.append("x-oss-signature", q.signature), ne.append("x-oss-credential", q.x_oss_credential), ne.append("x-oss-date", q.x_oss_date), ne.append("x-oss-security-token", q.security_token), q.callback && ne.append("callback", q.callback), ne.append("success_action_status", "200"), ne.append("file", B);
|
|
33136
|
-
const
|
|
33136
|
+
const _ = await fetch(q.host, {
|
|
33137
33137
|
method: "POST",
|
|
33138
33138
|
body: ne
|
|
33139
33139
|
});
|
|
33140
|
-
if (!
|
|
33141
|
-
throw new Error(`OSS 上传失败: ${
|
|
33140
|
+
if (!_.ok && _.status !== 203)
|
|
33141
|
+
throw new Error(`OSS 上传失败: ${_.status}`);
|
|
33142
33142
|
return K;
|
|
33143
33143
|
}
|
|
33144
33144
|
async function b(B) {
|
|
@@ -33157,7 +33157,7 @@ const BI = /* @__PURE__ */ pe({
|
|
|
33157
33157
|
var j;
|
|
33158
33158
|
const q = p.value;
|
|
33159
33159
|
try {
|
|
33160
|
-
const K = await q(B.file), ne = await y(B.file, K),
|
|
33160
|
+
const K = await q(B.file), ne = await y(B.file, K), _ = {
|
|
33161
33161
|
fileName: B.file.name,
|
|
33162
33162
|
ossUploadBaseDir: K.dir,
|
|
33163
33163
|
ossKey: ne,
|
|
@@ -33166,7 +33166,7 @@ const BI = /* @__PURE__ */ pe({
|
|
|
33166
33166
|
file: B.file,
|
|
33167
33167
|
uid: B.file.uid
|
|
33168
33168
|
};
|
|
33169
|
-
h([...r.value,
|
|
33169
|
+
h([...r.value, _]), n("afterUpload", _), B.onSuccess(K);
|
|
33170
33170
|
} catch (K) {
|
|
33171
33171
|
oi.warning((K == null ? void 0 : K.message) ?? "上传失败"), B.onError(K);
|
|
33172
33172
|
}
|
|
@@ -34555,13 +34555,13 @@ function sv(e, n, i) {
|
|
|
34555
34555
|
handleChange: F,
|
|
34556
34556
|
shouldValidate: () => s && !D.pendingReset
|
|
34557
34557
|
});
|
|
34558
|
-
const I = (
|
|
34558
|
+
const I = (H, L = !1) => {
|
|
34559
34559
|
v.touched = !0, L && M();
|
|
34560
34560
|
};
|
|
34561
|
-
async function Q(
|
|
34561
|
+
async function Q(H) {
|
|
34562
34562
|
var L, oe;
|
|
34563
34563
|
if (m != null && m.validateSchema) {
|
|
34564
|
-
const { results: $ } = await m.validateSchema(
|
|
34564
|
+
const { results: $ } = await m.validateSchema(H);
|
|
34565
34565
|
return (L = $[ee(y)]) !== null && L !== void 0 ? L : { valid: !0, errors: [] };
|
|
34566
34566
|
}
|
|
34567
34567
|
return b.value ? tv(w.value, b.value, {
|
|
@@ -34571,12 +34571,12 @@ function sv(e, n, i) {
|
|
|
34571
34571
|
bails: r
|
|
34572
34572
|
}) : { valid: !0, errors: [] };
|
|
34573
34573
|
}
|
|
34574
|
-
const M = Ec(async () => (v.pending = !0, v.validated = !0, Q("validated-only")), (
|
|
34575
|
-
function T(
|
|
34576
|
-
return (
|
|
34574
|
+
const M = Ec(async () => (v.pending = !0, v.validated = !0, Q("validated-only")), (H) => (D.pendingUnmount[ie.id] || (x({ errors: H.errors }), v.pending = !1, v.valid = H.valid), H)), G = Ec(async () => Q("silent"), (H) => (v.valid = H.valid, H));
|
|
34575
|
+
function T(H) {
|
|
34576
|
+
return (H == null ? void 0 : H.mode) === "silent" ? G() : M();
|
|
34577
34577
|
}
|
|
34578
|
-
function F(
|
|
34579
|
-
const oe = es(
|
|
34578
|
+
function F(H, L = !0) {
|
|
34579
|
+
const oe = es(H);
|
|
34580
34580
|
K(oe, L);
|
|
34581
34581
|
}
|
|
34582
34582
|
Jn(() => {
|
|
@@ -34584,38 +34584,38 @@ function sv(e, n, i) {
|
|
|
34584
34584
|
return M();
|
|
34585
34585
|
(!m || !m.validateSchema) && G();
|
|
34586
34586
|
});
|
|
34587
|
-
function B(
|
|
34588
|
-
v.touched =
|
|
34587
|
+
function B(H) {
|
|
34588
|
+
v.touched = H;
|
|
34589
34589
|
}
|
|
34590
|
-
function q(
|
|
34590
|
+
function q(H) {
|
|
34591
34591
|
var L;
|
|
34592
|
-
const oe =
|
|
34592
|
+
const oe = H && "value" in H ? H.value : C.value;
|
|
34593
34593
|
x({
|
|
34594
34594
|
value: tn(oe),
|
|
34595
34595
|
initialValue: tn(oe),
|
|
34596
|
-
touched: (L =
|
|
34597
|
-
errors: (
|
|
34596
|
+
touched: (L = H == null ? void 0 : H.touched) !== null && L !== void 0 ? L : !1,
|
|
34597
|
+
errors: (H == null ? void 0 : H.errors) || []
|
|
34598
34598
|
}), v.pending = !1, v.validated = !1, G();
|
|
34599
34599
|
}
|
|
34600
34600
|
const j = jt();
|
|
34601
|
-
function K(
|
|
34602
|
-
w.value = j && f ? KI(
|
|
34601
|
+
function K(H, L = !0) {
|
|
34602
|
+
w.value = j && f ? KI(H, j.props.modelModifiers) : H, (L ? M : G)();
|
|
34603
34603
|
}
|
|
34604
|
-
function ne(
|
|
34605
|
-
x({ errors: Array.isArray(
|
|
34604
|
+
function ne(H) {
|
|
34605
|
+
x({ errors: Array.isArray(H) ? H : [H] });
|
|
34606
34606
|
}
|
|
34607
|
-
const
|
|
34607
|
+
const _ = k({
|
|
34608
34608
|
get() {
|
|
34609
34609
|
return w.value;
|
|
34610
34610
|
},
|
|
34611
|
-
set(
|
|
34612
|
-
K(
|
|
34611
|
+
set(H) {
|
|
34612
|
+
K(H, s);
|
|
34613
34613
|
}
|
|
34614
34614
|
}), ie = {
|
|
34615
34615
|
id: S,
|
|
34616
34616
|
name: y,
|
|
34617
34617
|
label: u,
|
|
34618
|
-
value:
|
|
34618
|
+
value: _,
|
|
34619
34619
|
meta: v,
|
|
34620
34620
|
errors: z,
|
|
34621
34621
|
errorMessage: O,
|
|
@@ -34634,8 +34634,8 @@ function sv(e, n, i) {
|
|
|
34634
34634
|
setErrors: ne,
|
|
34635
34635
|
setValue: K
|
|
34636
34636
|
};
|
|
34637
|
-
if (Un(zs, ie), bo(n) && typeof d(n) != "function" && ge(n, (
|
|
34638
|
-
$n(
|
|
34637
|
+
if (Un(zs, ie), bo(n) && typeof d(n) != "function" && ge(n, (H, L) => {
|
|
34638
|
+
$n(H, L) || (v.validated ? M() : G());
|
|
34639
34639
|
}, {
|
|
34640
34640
|
deep: !0
|
|
34641
34641
|
}), process.env.NODE_ENV !== "production" && (ie._vm = jt(), ge(() => Object.assign(Object.assign({ errors: z.value }, v), { value: w.value }), Zo, {
|
|
@@ -34643,22 +34643,22 @@ function sv(e, n, i) {
|
|
|
34643
34643
|
}), m || Ak(ie)), !m)
|
|
34644
34644
|
return ie;
|
|
34645
34645
|
const fe = k(() => {
|
|
34646
|
-
const
|
|
34647
|
-
return !
|
|
34648
|
-
const $ = ek(
|
|
34646
|
+
const H = b.value;
|
|
34647
|
+
return !H || Gn(H) || Xl(H) || $t(H) || Array.isArray(H) ? {} : Object.keys(H).reduce((L, oe) => {
|
|
34648
|
+
const $ = ek(H[oe]).map((W) => W.__locatorRef).reduce((W, Y) => {
|
|
34649
34649
|
const ue = Sn(m.values, Y) || m.values[Y];
|
|
34650
34650
|
return ue !== void 0 && (W[Y] = ue), W;
|
|
34651
34651
|
}, {});
|
|
34652
34652
|
return Object.assign(L, $), L;
|
|
34653
34653
|
}, {});
|
|
34654
34654
|
});
|
|
34655
|
-
return ge(fe, (
|
|
34656
|
-
if (!Object.keys(
|
|
34655
|
+
return ge(fe, (H, L) => {
|
|
34656
|
+
if (!Object.keys(H).length)
|
|
34657
34657
|
return;
|
|
34658
|
-
!$n(
|
|
34658
|
+
!$n(H, L) && (v.validated ? M() : G());
|
|
34659
34659
|
}), ua(() => {
|
|
34660
|
-
var
|
|
34661
|
-
const L = (
|
|
34660
|
+
var H;
|
|
34661
|
+
const L = (H = ee(ie.keepValueOnUnmount)) !== null && H !== void 0 ? H : ee(m.keepValuesOnUnmount), oe = ee(y);
|
|
34662
34662
|
if (L || !m || D.pendingUnmount[ie.id]) {
|
|
34663
34663
|
m == null || m.removePathState(oe, S);
|
|
34664
34664
|
return;
|
|
@@ -35087,7 +35087,7 @@ function cv(e) {
|
|
|
35087
35087
|
(!ye.multiple || ye.fieldsCount <= 0) && (c.value.splice(te, 1), lt(R), f(), delete h.value[R]);
|
|
35088
35088
|
}
|
|
35089
35089
|
}
|
|
35090
|
-
function
|
|
35090
|
+
function H(R) {
|
|
35091
35091
|
zt(h.value).forEach((N) => {
|
|
35092
35092
|
N.startsWith(R) && delete h.value[N];
|
|
35093
35093
|
}), c.value = c.value.filter((N) => !N.path.startsWith(R)), we(() => {
|
|
@@ -35133,7 +35133,7 @@ function cv(e) {
|
|
|
35133
35133
|
removePathState: fe,
|
|
35134
35134
|
initialValues: C,
|
|
35135
35135
|
getAllPathStates: () => c.value,
|
|
35136
|
-
destroyPath:
|
|
35136
|
+
destroyPath: H,
|
|
35137
35137
|
isFieldTouched: ze,
|
|
35138
35138
|
isFieldDirty: xe,
|
|
35139
35139
|
isFieldValid: Ve
|
|
@@ -47907,7 +47907,7 @@ const tj = { class: "flex-auto overflow-hidden" }, ij = {
|
|
|
47907
47907
|
width: `${e.labelWidth}px`
|
|
47908
47908
|
};
|
|
47909
47909
|
}), w = k(() => p.value || e.rules), C = k(() => !e.hide && y.value && E.value), v = k(() => {
|
|
47910
|
-
var ne,
|
|
47910
|
+
var ne, _, ie, fe, H, L;
|
|
47911
47911
|
if (!C.value)
|
|
47912
47912
|
return !1;
|
|
47913
47913
|
if (!w.value)
|
|
@@ -47916,9 +47916,9 @@ const tj = { class: "flex-auto overflow-hidden" }, ij = {
|
|
|
47916
47916
|
return !0;
|
|
47917
47917
|
if (pt(w.value))
|
|
47918
47918
|
return ["required", "selectRequired"].includes(w.value);
|
|
47919
|
-
let j = (
|
|
47919
|
+
let j = (_ = (ne = w == null ? void 0 : w.value) == null ? void 0 : ne.isOptional) == null ? void 0 : _.call(ne);
|
|
47920
47920
|
if (((fe = (ie = w == null ? void 0 : w.value) == null ? void 0 : ie.def) == null ? void 0 : fe.type) === "ZodDefault") {
|
|
47921
|
-
const oe = (
|
|
47921
|
+
const oe = (H = w == null ? void 0 : w.value) == null ? void 0 : H._def.innerType;
|
|
47922
47922
|
oe && (j = (L = oe.isOptional) == null ? void 0 : L.call(oe));
|
|
47923
47923
|
}
|
|
47924
47924
|
return !j;
|
|
@@ -47932,8 +47932,8 @@ const tj = { class: "flex-auto overflow-hidden" }, ij = {
|
|
|
47932
47932
|
if (pt(j))
|
|
47933
47933
|
return j;
|
|
47934
47934
|
if (!!v.value) {
|
|
47935
|
-
const
|
|
47936
|
-
|
|
47935
|
+
const _ = (ne = j == null ? void 0 : j.unwrap) == null ? void 0 : ne.call(j);
|
|
47936
|
+
_ && (j = _);
|
|
47937
47937
|
}
|
|
47938
47938
|
return _B(j);
|
|
47939
47939
|
}), z = k(() => {
|
|
@@ -47976,16 +47976,16 @@ const tj = { class: "flex-auto overflow-hidden" }, ij = {
|
|
|
47976
47976
|
};
|
|
47977
47977
|
});
|
|
47978
47978
|
function G(j) {
|
|
47979
|
-
var fe,
|
|
47980
|
-
const K = j.componentField.modelValue, ne = j.componentField["onUpdate:modelValue"],
|
|
47979
|
+
var fe, H;
|
|
47980
|
+
const K = j.componentField.modelValue, ne = j.componentField["onUpdate:modelValue"], _ = e.modelPropName || (pt(e.component) ? (fe = i.value) == null ? void 0 : fe[e.component] : null);
|
|
47981
47981
|
let ie = K;
|
|
47982
|
-
return K && Kn(K) &&
|
|
47983
|
-
[`onUpdate:${
|
|
47984
|
-
[
|
|
47982
|
+
return K && Kn(K) && _ && (ie = Wm(K) ? (H = K == null ? void 0 : K.target) == null ? void 0 : H[_] : (K == null ? void 0 : K[_]) ?? K), _ ? {
|
|
47983
|
+
[`onUpdate:${_}`]: ne,
|
|
47984
|
+
[_]: ie === void 0 ? e.emptyStateValue : ie,
|
|
47985
47985
|
onChange: e.disabledOnChangeListener ? void 0 : (L) => {
|
|
47986
47986
|
var W, Y;
|
|
47987
47987
|
const oe = Wm(L), $ = (W = j == null ? void 0 : j.componentField) == null ? void 0 : W.onChange;
|
|
47988
|
-
return oe ? $ == null ? void 0 : $(((Y = L == null ? void 0 : L.target) == null ? void 0 : Y[
|
|
47988
|
+
return oe ? $ == null ? void 0 : $(((Y = L == null ? void 0 : L.target) == null ? void 0 : Y[_]) ?? L) : $ == null ? void 0 : $(L);
|
|
47989
47989
|
},
|
|
47990
47990
|
...e.disabledOnInputListener ? { onInput: void 0 } : {}
|
|
47991
47991
|
} : {
|
|
@@ -48090,11 +48090,11 @@ const tj = { class: "flex-auto overflow-hidden" }, ij = {
|
|
|
48090
48090
|
form: h,
|
|
48091
48091
|
fieldName: j.fieldName
|
|
48092
48092
|
}, { disabled: O.value }), Cn({ _: 2 }, [
|
|
48093
|
-
Ke(Q.value, (
|
|
48094
|
-
name:
|
|
48093
|
+
Ke(Q.value, (_) => ({
|
|
48094
|
+
name: _,
|
|
48095
48095
|
fn: Z((ie) => [
|
|
48096
48096
|
J(d(Ni), Qe({
|
|
48097
|
-
content: I.value[
|
|
48097
|
+
content: I.value[_]
|
|
48098
48098
|
}, { ...ie, formContext: ne }), null, 16, ["content"])
|
|
48099
48099
|
])
|
|
48100
48100
|
}))
|
|
@@ -48471,35 +48471,29 @@ const sj = /* @__PURE__ */ pe({
|
|
|
48471
48471
|
setup(e, { slots: n }) {
|
|
48472
48472
|
return () => {
|
|
48473
48473
|
const i = e.fieldConfig;
|
|
48474
|
-
|
|
48475
|
-
|
|
48476
|
-
|
|
48477
|
-
|
|
48478
|
-
|
|
48479
|
-
|
|
48480
|
-
|
|
48481
|
-
|
|
48482
|
-
|
|
48483
|
-
|
|
48484
|
-
|
|
48485
|
-
|
|
48486
|
-
|
|
48487
|
-
|
|
48488
|
-
|
|
48489
|
-
|
|
48490
|
-
|
|
48491
|
-
|
|
48492
|
-
|
|
48493
|
-
|
|
48494
|
-
|
|
48495
|
-
|
|
48496
|
-
|
|
48497
|
-
estimateFieldHeight: e.estimateFieldHeight
|
|
48498
|
-
},
|
|
48499
|
-
n
|
|
48500
|
-
);
|
|
48501
|
-
}
|
|
48502
|
-
return Pe(W0, i, n);
|
|
48474
|
+
return i.useArraySchema ? Pe(
|
|
48475
|
+
sj,
|
|
48476
|
+
{
|
|
48477
|
+
...i,
|
|
48478
|
+
rules: e.rules,
|
|
48479
|
+
virtual: e.virtual,
|
|
48480
|
+
arraySchema: i.arraySchema,
|
|
48481
|
+
fieldName: i.fieldName,
|
|
48482
|
+
formItemClass: i.formItemClass || ""
|
|
48483
|
+
},
|
|
48484
|
+
n
|
|
48485
|
+
) : e.virtual ? Pe(
|
|
48486
|
+
aj,
|
|
48487
|
+
{
|
|
48488
|
+
fieldProps: i,
|
|
48489
|
+
rules: e.rules,
|
|
48490
|
+
fieldClass: i.formItemClass,
|
|
48491
|
+
scrollElement: e.scrollElement,
|
|
48492
|
+
rootMargin: e.rootMargin,
|
|
48493
|
+
estimateFieldHeight: e.estimateFieldHeight
|
|
48494
|
+
},
|
|
48495
|
+
n
|
|
48496
|
+
) : Pe(W0, { ...i, class: i.formItemClass, rules: e.rules }, n);
|
|
48503
48497
|
};
|
|
48504
48498
|
}
|
|
48505
48499
|
}), uj = /* @__PURE__ */ pe({
|
|
@@ -48634,7 +48628,6 @@ const sj = /* @__PURE__ */ pe({
|
|
|
48634
48628
|
}, null, 8, ["class"]))
|
|
48635
48629
|
], 64)) : (P(), ve(d(Kr), {
|
|
48636
48630
|
key: 1,
|
|
48637
|
-
class: de(w.formItemClass),
|
|
48638
48631
|
"field-config": w,
|
|
48639
48632
|
rules: w.rules
|
|
48640
48633
|
}, Cn({
|
|
@@ -48649,7 +48642,7 @@ const sj = /* @__PURE__ */ pe({
|
|
|
48649
48642
|
se(E.$slots, v, Qe({ ref_for: !0 }, x))
|
|
48650
48643
|
])
|
|
48651
48644
|
}))
|
|
48652
|
-
]), 1032, ["
|
|
48645
|
+
]), 1032, ["field-config", "rules"]))
|
|
48653
48646
|
], 64))), 128)),
|
|
48654
48647
|
se(E.$slots, "default", { shapes: f.value })
|
|
48655
48648
|
], 2)
|
|
@@ -49612,10 +49605,10 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49612
49605
|
componentProps: j = {},
|
|
49613
49606
|
controlClass: K = "",
|
|
49614
49607
|
disabled: ne,
|
|
49615
|
-
disabledOnChangeListener:
|
|
49608
|
+
disabledOnChangeListener: _ = !0,
|
|
49616
49609
|
disabledOnInputListener: ie = !0,
|
|
49617
49610
|
emptyStateValue: fe = void 0,
|
|
49618
|
-
formFieldProps:
|
|
49611
|
+
formFieldProps: H = {},
|
|
49619
49612
|
formItemClass: L = "",
|
|
49620
49613
|
hideLabel: oe = !1,
|
|
49621
49614
|
hideRequiredMark: $ = !1,
|
|
@@ -49634,7 +49627,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49634
49627
|
return {
|
|
49635
49628
|
colon: q,
|
|
49636
49629
|
disabled: ne,
|
|
49637
|
-
disabledOnChangeListener:
|
|
49630
|
+
disabledOnChangeListener: _,
|
|
49638
49631
|
disabledOnInputListener: ie,
|
|
49639
49632
|
emptyStateValue: fe,
|
|
49640
49633
|
hideLabel: oe,
|
|
@@ -49646,7 +49639,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49646
49639
|
commonComponentProps: j,
|
|
49647
49640
|
componentProps: B.componentProps,
|
|
49648
49641
|
controlClass: Qn(K, B.controlClass),
|
|
49649
|
-
formFieldProps: { ...
|
|
49642
|
+
formFieldProps: { ...H, ...B.formFieldProps },
|
|
49650
49643
|
formItemClass: Qn("flex-shrink-0", L, xe),
|
|
49651
49644
|
labelClass: Qn(W, B.labelClass)
|
|
49652
49645
|
};
|
|
@@ -49679,7 +49672,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49679
49672
|
estimateFieldHeight: a.estimateFieldHeight
|
|
49680
49673
|
})), T = k(() => a.schema.fieldName), F = k(() => Object.keys(O).filter((B) => B !== "default"));
|
|
49681
49674
|
return (B, q) => {
|
|
49682
|
-
var j, K, ne,
|
|
49675
|
+
var j, K, ne, _, ie, fe, H;
|
|
49683
49676
|
return m.value ? (P(), re("div", {
|
|
49684
49677
|
key: 0,
|
|
49685
49678
|
class: de(x.value),
|
|
@@ -49721,7 +49714,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49721
49714
|
se(B.$slots, `${(ne = g.value) == null ? void 0 : ne.key}-header-left`, Xe(rn(D.value))),
|
|
49722
49715
|
me("span", {
|
|
49723
49716
|
class: de(`${d(i)}__title`)
|
|
49724
|
-
}, nn((
|
|
49717
|
+
}, nn((_ = g.value) == null ? void 0 : _.title), 3),
|
|
49725
49718
|
se(B.$slots, `${(ie = g.value) == null ? void 0 : ie.key}-title-right`, Xe(rn(D.value)))
|
|
49726
49719
|
], 2),
|
|
49727
49720
|
me("div", {
|
|
@@ -49738,7 +49731,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49738
49731
|
"is-custom-svg": ""
|
|
49739
49732
|
}, null, 8, ["icon"])
|
|
49740
49733
|
], 2)) : Oe("", !0),
|
|
49741
|
-
se(B.$slots, `${(
|
|
49734
|
+
se(B.$slots, `${(H = g.value) == null ? void 0 : H.key}-header-right`, Xe(rn(D.value)))
|
|
49742
49735
|
], 2)
|
|
49743
49736
|
], 10, bj),
|
|
49744
49737
|
rt(me("div", {
|
|
@@ -49923,14 +49916,14 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49923
49916
|
r.resume();
|
|
49924
49917
|
return;
|
|
49925
49918
|
}
|
|
49926
|
-
const q = l.value.scrollOffset ?? 0, j = z(B) || F, K = j && j.scrollHeight > j.clientHeight ? j : null, ne = K ?? document.documentElement,
|
|
49927
|
-
O(K,
|
|
49919
|
+
const q = l.value.scrollOffset ?? 0, j = z(B) || F, K = j && j.scrollHeight > j.clientHeight ? j : null, ne = K ?? document.documentElement, _ = D(B, K, q);
|
|
49920
|
+
O(K, _, "smooth");
|
|
49928
49921
|
let ie = !1;
|
|
49929
49922
|
const fe = () => {
|
|
49930
|
-
ie || (ie = !0, ne.removeEventListener("scrollend", fe), clearTimeout(
|
|
49923
|
+
ie || (ie = !0, ne.removeEventListener("scrollend", fe), clearTimeout(H), r.resume(), u.value.virtual && Q(B, K, q));
|
|
49931
49924
|
};
|
|
49932
49925
|
ne.addEventListener("scrollend", fe, { once: !0 });
|
|
49933
|
-
const
|
|
49926
|
+
const H = setTimeout(fe, 800);
|
|
49934
49927
|
});
|
|
49935
49928
|
}
|
|
49936
49929
|
function Q(T, F, B) {
|
|
@@ -49939,7 +49932,7 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49939
49932
|
function ne() {
|
|
49940
49933
|
ie.disconnect(), clearTimeout(j), cancelAnimationFrame(K);
|
|
49941
49934
|
}
|
|
49942
|
-
function
|
|
49935
|
+
function _() {
|
|
49943
49936
|
clearTimeout(j), j = setTimeout(ne, Cj);
|
|
49944
49937
|
}
|
|
49945
49938
|
const ie = new ResizeObserver(() => {
|
|
@@ -49948,11 +49941,11 @@ const sC = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
|
|
|
49948
49941
|
return;
|
|
49949
49942
|
}
|
|
49950
49943
|
cancelAnimationFrame(K), K = requestAnimationFrame(() => {
|
|
49951
|
-
const fe = D(T, F, B),
|
|
49952
|
-
Math.abs(fe -
|
|
49953
|
-
}),
|
|
49944
|
+
const fe = D(T, F, B), H = F ? F.scrollTop : window.scrollY;
|
|
49945
|
+
Math.abs(fe - H) > wj && O(F, fe, "instant");
|
|
49946
|
+
}), _();
|
|
49954
49947
|
});
|
|
49955
|
-
ie.observe(q),
|
|
49948
|
+
ie.observe(q), _();
|
|
49956
49949
|
}
|
|
49957
49950
|
function M(T) {
|
|
49958
49951
|
x.value = T, a[T] && t.toggleCollapse(T), I(T);
|
|
@@ -53404,9 +53397,9 @@ function v6(e, {
|
|
|
53404
53397
|
const { collectColumn: M } = ((q = v.$grid) == null ? void 0 : q.getTableColumn()) || { collectColumn: [] }, G = M.filter((j) => !x.includes(j.field) && !x.includes(j.type)), T = b();
|
|
53405
53398
|
function F(j, K) {
|
|
53406
53399
|
const ne = [];
|
|
53407
|
-
return j.forEach((
|
|
53408
|
-
const ie = K.find((fe) => fe.field ===
|
|
53409
|
-
ie && (
|
|
53400
|
+
return j.forEach((_) => {
|
|
53401
|
+
const ie = K.find((fe) => fe.field === _.field);
|
|
53402
|
+
ie && (_.children && ie.children && (ie.children = F(_.children, ie.children)), ne.push(ie));
|
|
53410
53403
|
}), ne;
|
|
53411
53404
|
}
|
|
53412
53405
|
const B = F(G, T);
|
|
@@ -53514,7 +53507,7 @@ function y6(e, {
|
|
|
53514
53507
|
return D && Ie(D) && (O = await D(O, d(g)) || O), M && cn(I, G, 1) !== 1 && (O = [...d(c), ...O]), O;
|
|
53515
53508
|
}
|
|
53516
53509
|
async function E(D) {
|
|
53517
|
-
var
|
|
53510
|
+
var H, L;
|
|
53518
53511
|
const {
|
|
53519
53512
|
api: O,
|
|
53520
53513
|
filterApi: I,
|
|
@@ -53529,11 +53522,11 @@ function y6(e, {
|
|
|
53529
53522
|
} = d(e);
|
|
53530
53523
|
if (!O || !Ie(O)) return;
|
|
53531
53524
|
const { tablePage: K } = D;
|
|
53532
|
-
let ne = {},
|
|
53525
|
+
let ne = {}, _ = K.currentPage || 1;
|
|
53533
53526
|
const ie = d(e).formApi;
|
|
53534
53527
|
ie && j && (ne = await ie.getValues());
|
|
53535
53528
|
const fe = {};
|
|
53536
|
-
Ui(fe, F,
|
|
53529
|
+
Ui(fe, F, _ || 1), Ui(fe, B, K.pageSize);
|
|
53537
53530
|
try {
|
|
53538
53531
|
i(!0);
|
|
53539
53532
|
let oe = null;
|
|
@@ -53543,7 +53536,7 @@ function y6(e, {
|
|
|
53543
53536
|
...d(p) ? fe : {}
|
|
53544
53537
|
});
|
|
53545
53538
|
else {
|
|
53546
|
-
I && ((
|
|
53539
|
+
I && ((H = d(n)) == null || H.clearSort(), (L = d(n)) == null || L.clearFilter());
|
|
53547
53540
|
let xe = {
|
|
53548
53541
|
...ne,
|
|
53549
53542
|
...Q,
|
|
@@ -53557,14 +53550,14 @@ function y6(e, {
|
|
|
53557
53550
|
let Y = $ || [];
|
|
53558
53551
|
Y = await b(T, Y, fe), x(Y);
|
|
53559
53552
|
const ue = W || Y.length || 0, ze = Math.max(1, Math.ceil(ue / K.pageSize));
|
|
53560
|
-
|
|
53553
|
+
_ > ze && (_ = 1, S({
|
|
53561
53554
|
tablePage: {
|
|
53562
|
-
currentPage:
|
|
53555
|
+
currentPage: _,
|
|
53563
53556
|
pageSize: K.pageSize
|
|
53564
53557
|
}
|
|
53565
53558
|
})), a({
|
|
53566
53559
|
total: ue,
|
|
53567
|
-
currentPage:
|
|
53560
|
+
currentPage: _
|
|
53568
53561
|
}), h.value = zn(d(r)), s("fetch-success", {
|
|
53569
53562
|
items: Y,
|
|
53570
53563
|
total: W,
|
|
@@ -54995,11 +54988,11 @@ const M6 = ["data-testid", "data-table-columns"], F6 = ["onClick"], T6 = {
|
|
|
54995
54988
|
getSelectRows: j,
|
|
54996
54989
|
clearSelectedRowKeys: K,
|
|
54997
54990
|
setSelectedRowKeys: ne,
|
|
54998
|
-
onCellAreaSelectionEndSetCheckbox:
|
|
54991
|
+
onCellAreaSelectionEndSetCheckbox: _,
|
|
54999
54992
|
onCheckboxRangeChange: ie,
|
|
55000
54993
|
onRadioChange: fe
|
|
55001
54994
|
} = C6(C, t, g), {
|
|
55002
|
-
handleLeftRightSlotInit:
|
|
54995
|
+
handleLeftRightSlotInit: H,
|
|
55003
54996
|
handleLeftRightSlotScroll: L,
|
|
55004
54997
|
leftRightSlotRows: oe,
|
|
55005
54998
|
tableBodyWrapHeight: $,
|
|
@@ -55103,7 +55096,7 @@ const M6 = ["data-testid", "data-table-columns"], F6 = ["onClick"], T6 = {
|
|
|
55103
55096
|
}), X = k(() => Zt(d(Be).showHeaderOverflow) ? d(Be).showHeaderOverflow : pt(d(Be).showHeaderOverflow) ? d(Be).showHeaderOverflow === "tooltip" : !1), {
|
|
55104
55097
|
onCellAreaSelectionEnd: ce
|
|
55105
55098
|
} = d6(Be, t, g, {
|
|
55106
|
-
onCellAreaSelectionEndSetCheckbox:
|
|
55099
|
+
onCellAreaSelectionEndSetCheckbox: _,
|
|
55107
55100
|
onCheckboxRangeChange: ie
|
|
55108
55101
|
}), $e = E6(g, S, t, m, C, {
|
|
55109
55102
|
clearSelectedRowKeys: K
|
|
@@ -55219,7 +55212,7 @@ const M6 = ["data-testid", "data-table-columns"], F6 = ["onClick"], T6 = {
|
|
|
55219
55212
|
}
|
|
55220
55213
|
function Bn(le) {
|
|
55221
55214
|
t("toggle-row-expand", le), setTimeout(() => {
|
|
55222
|
-
|
|
55215
|
+
H(!1);
|
|
55223
55216
|
}, 30);
|
|
55224
55217
|
}
|
|
55225
55218
|
const qn = (le) => {
|
|
@@ -57462,7 +57455,7 @@ const TQ = ["data-testid"], PQ = ["data-testid"], NQ = /* @__PURE__ */ pe({
|
|
|
57462
57455
|
const { tableRefreshBefore: W } = y.value;
|
|
57463
57456
|
W && Ie(W) && await W(), K.reload();
|
|
57464
57457
|
}
|
|
57465
|
-
async function
|
|
57458
|
+
async function _(W) {
|
|
57466
57459
|
var xe, Ve;
|
|
57467
57460
|
W.modalApi.setModalProps({
|
|
57468
57461
|
confirmLoading: !0
|
|
@@ -57512,7 +57505,7 @@ const TQ = ["data-testid"], PQ = ["data-testid"], NQ = /* @__PURE__ */ pe({
|
|
|
57512
57505
|
function fe(W) {
|
|
57513
57506
|
return Object.fromEntries(Object.entries(W).filter(([Y]) => !Y.startsWith("on")));
|
|
57514
57507
|
}
|
|
57515
|
-
function
|
|
57508
|
+
function H(W, Y) {
|
|
57516
57509
|
return Object.fromEntries(Object.keys(W).map((ue) => [ue, Y[ue]]));
|
|
57517
57510
|
}
|
|
57518
57511
|
return ge(
|
|
@@ -57524,7 +57517,7 @@ const TQ = ["data-testid"], PQ = ["data-testid"], NQ = /* @__PURE__ */ pe({
|
|
|
57524
57517
|
const Wn = vs(un);
|
|
57525
57518
|
ue.has(Wn) && (W[Wn] = Mn);
|
|
57526
57519
|
}
|
|
57527
|
-
const ze = fe(W), xe =
|
|
57520
|
+
const ze = fe(W), xe = H(ze, o);
|
|
57528
57521
|
l.setState(xe);
|
|
57529
57522
|
},
|
|
57530
57523
|
{ deep: !0 }
|
|
@@ -57598,7 +57591,7 @@ const TQ = ["data-testid"], PQ = ["data-testid"], NQ = /* @__PURE__ */ pe({
|
|
|
57598
57591
|
ref_key: "tableColumnModalRef",
|
|
57599
57592
|
ref: a,
|
|
57600
57593
|
"open-method": ie,
|
|
57601
|
-
onOnSubmit:
|
|
57594
|
+
onOnSubmit: _
|
|
57602
57595
|
}, null, 512)
|
|
57603
57596
|
], 10, TQ));
|
|
57604
57597
|
}
|
|
@@ -58045,18 +58038,18 @@ function rO(e = {}, n = nx) {
|
|
|
58045
58038
|
};
|
|
58046
58039
|
}
|
|
58047
58040
|
function w(I, Q, M, G, T) {
|
|
58048
|
-
const F = l(I), B = iO(F.componentProps, Q, M, G), q = s(I), { onChange: j, ...K } = B;
|
|
58041
|
+
const F = l(I), B = iO(F.componentProps, Q, M, G), q = s(I), { onChange: j, ...K } = B, ne = Ie(F.customOptions) ? F.customOptions(Q, G) : G;
|
|
58049
58042
|
return {
|
|
58050
58043
|
multiple: q,
|
|
58051
58044
|
component: IA,
|
|
58052
58045
|
...K,
|
|
58053
|
-
options:
|
|
58054
|
-
onChange(
|
|
58046
|
+
options: ne,
|
|
58047
|
+
onChange(_) {
|
|
58055
58048
|
oO(
|
|
58056
|
-
|
|
58049
|
+
_,
|
|
58057
58050
|
T,
|
|
58058
58051
|
F.onChange,
|
|
58059
|
-
() => S(I, Q, M,
|
|
58052
|
+
() => S(I, Q, M, ne, q)
|
|
58060
58053
|
);
|
|
58061
58054
|
}
|
|
58062
58055
|
};
|
|
@@ -58073,7 +58066,7 @@ function rO(e = {}, n = nx) {
|
|
|
58073
58066
|
const T = g(I), F = t(I), B = s(I), q = ((j = M[F]) == null ? void 0 : j.at(-1)) !== xt;
|
|
58074
58067
|
return w(I, M, G, T, (K) => {
|
|
58075
58068
|
const ne = M[F];
|
|
58076
|
-
B && (q && (K == null ? void 0 : K.at(-1)) === xt ? M[F] = [xt] : M[F] = ne == null ? void 0 : ne.filter((
|
|
58069
|
+
B && (q && (K == null ? void 0 : K.at(-1)) === xt ? M[F] = [xt] : M[F] = ne == null ? void 0 : ne.filter((_) => _ !== xt));
|
|
58077
58070
|
});
|
|
58078
58071
|
}
|
|
58079
58072
|
};
|
|
@@ -58089,8 +58082,8 @@ function rO(e = {}, n = nx) {
|
|
|
58089
58082
|
var K;
|
|
58090
58083
|
const M = "platformId", G = t(M), T = t("shopId"), F = s(M), B = s("shopId"), q = g(M), j = ((K = I[G]) == null ? void 0 : K.at(-1)) !== xt;
|
|
58091
58084
|
return w(M, I, Q, q, (ne) => {
|
|
58092
|
-
const
|
|
58093
|
-
F && (j && (ne == null ? void 0 : ne.at(-1)) === xt ? I[G] = [xt] : I[G] =
|
|
58085
|
+
const _ = I[G];
|
|
58086
|
+
F && (j && (ne == null ? void 0 : ne.at(-1)) === xt ? I[G] = [xt] : I[G] = _ == null ? void 0 : _.filter((ie) => ie !== xt)), I[T] = B ? [] : void 0;
|
|
58094
58087
|
});
|
|
58095
58088
|
}
|
|
58096
58089
|
},
|
|
@@ -58104,7 +58097,7 @@ function rO(e = {}, n = nx) {
|
|
|
58104
58097
|
const M = "shopId", G = t(M), T = I[t("platformId")], F = E(T), B = s(M), q = ((j = I[G]) == null ? void 0 : j.at(-1)) !== xt;
|
|
58105
58098
|
return w(M, I, Q, F, (K) => {
|
|
58106
58099
|
const ne = I[G];
|
|
58107
|
-
B && (q && (K == null ? void 0 : K.at(-1)) === xt ? I[G] = [xt] : I[G] = ne == null ? void 0 : ne.filter((
|
|
58100
|
+
B && (q && (K == null ? void 0 : K.at(-1)) === xt ? I[G] = [xt] : I[G] = ne == null ? void 0 : ne.filter((_) => _ !== xt));
|
|
58108
58101
|
});
|
|
58109
58102
|
},
|
|
58110
58103
|
dependencies: u("shopId", {
|