@dazhicheng/ui 1.5.75 → 1.5.77
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.js +124 -123
- package/dist/plugins.js +85 -63
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var NA = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var rC = (e, t, r) => t in e ? nC(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var
|
|
6
|
+
var be = (e, t, r) => rC(e, typeof t != "symbol" ? t + "" : t, r), UA = (e, t, r) => t.has(e) || NA("Cannot " + r);
|
|
7
7
|
var LA = (e, t, r) => (UA(e, t, "read from private field"), r ? r.call(e) : t.get(e)), jA = (e, t, r) => t.has(e) ? NA("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), VA = (e, t, r, o) => (UA(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r);
|
|
8
8
|
import "axios";
|
|
9
9
|
import { ElTooltip as Mr, ElButton as oC, useFormItem as iC, ElCheckbox as ao, emptyProps as aC, ElEmpty as lC, ElImage as Om, ElMessage as $n, ElIcon as Mm, ElSelect as Ri, ElSpace as Iu, dialogProps as HA, ElDialog as sC, uploadProps as cC, ElImageViewer as Fm, ElUpload as Tm, ElColorPicker as uC, ElCascader as dC, ElTreeSelect as fC, ElTimePicker as AC, ElSwitch as gC, ElSelectV2 as mC, ElRadioGroup as hC, ElRadio as pC, ElInputNumber as vC, ElInput as Pm, ElDatePicker as wC, ElCheckboxGroup as zm, ElCheckboxButton as bC, useZIndex as yC, ElScrollbar as Ni, ElSkeleton as CC, ElSkeletonItem as _A, imageEmits as EC, imageProps as IC, imageViewerEmits as DC, imageViewerProps as BC, ElMessageBox as SC, drawerProps as KA, ElDrawer as xC, selectKey as kC, ElTreeV2 as Vc, vLoading as QC, ElDivider as OC, ElPopover as Rm } from "element-plus";
|
|
@@ -362,7 +362,7 @@ const n4 = (e, t) => {
|
|
|
362
362
|
h,
|
|
363
363
|
De,
|
|
364
364
|
Ie
|
|
365
|
-
], j = () => ["none", Je, De, Ie], oe = () => ["none", Je, De, Ie],
|
|
365
|
+
], j = () => ["none", Je, De, Ie], oe = () => ["none", Je, De, Ie], we = () => [Je, De, Ie], Ee = () => [Er, "full", ...C()];
|
|
366
366
|
return {
|
|
367
367
|
cacheSize: 500,
|
|
368
368
|
theme: {
|
|
@@ -2501,21 +2501,21 @@ const n4 = (e, t) => {
|
|
|
2501
2501
|
* @see https://tailwindcss.com/docs/skew
|
|
2502
2502
|
*/
|
|
2503
2503
|
skew: [{
|
|
2504
|
-
skew:
|
|
2504
|
+
skew: we()
|
|
2505
2505
|
}],
|
|
2506
2506
|
/**
|
|
2507
2507
|
* Skew X
|
|
2508
2508
|
* @see https://tailwindcss.com/docs/skew
|
|
2509
2509
|
*/
|
|
2510
2510
|
"skew-x": [{
|
|
2511
|
-
"skew-x":
|
|
2511
|
+
"skew-x": we()
|
|
2512
2512
|
}],
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Skew Y
|
|
2515
2515
|
* @see https://tailwindcss.com/docs/skew
|
|
2516
2516
|
*/
|
|
2517
2517
|
"skew-y": [{
|
|
2518
|
-
"skew-y":
|
|
2518
|
+
"skew-y": we()
|
|
2519
2519
|
}],
|
|
2520
2520
|
/**
|
|
2521
2521
|
* Transform
|
|
@@ -3179,8 +3179,8 @@ function vc(e) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
class Qu {
|
|
3181
3181
|
constructor() {
|
|
3182
|
-
|
|
3183
|
-
|
|
3182
|
+
be(this, "condition", !1);
|
|
3183
|
+
be(this, "promiseResolvers", null);
|
|
3184
3184
|
}
|
|
3185
3185
|
isConditionTrue() {
|
|
3186
3186
|
return this.condition;
|
|
@@ -5394,18 +5394,18 @@ const CE = /* @__PURE__ */ me({
|
|
|
5394
5394
|
});
|
|
5395
5395
|
function I(K, te) {
|
|
5396
5396
|
K.stopPropagation(), K.preventDefault(), s.value = !0;
|
|
5397
|
-
const { clientX: ce } = K, M = K.target, L = M.parentNode, q = l.value, _ = M.getBoundingClientRect(), H = q == null ? void 0 : q.getBoundingClientRect(), j = M.clientWidth, oe = Math.floor(j / 2),
|
|
5397
|
+
const { clientX: ce } = K, M = K.target, L = M.parentNode, q = l.value, _ = M.getBoundingClientRect(), H = q == null ? void 0 : q.getBoundingClientRect(), j = M.clientWidth, oe = Math.floor(j / 2), we = vc(_.x).sub((H == null ? void 0 : H.x) || 0).add(oe).toNumber();
|
|
5398
5398
|
let Ee = 0, Ve = L.clientWidth;
|
|
5399
|
-
const at = vc(
|
|
5399
|
+
const at = vc(we).sub(Ve).add(te.minWidth || 50).toNumber(), Mt = c.value;
|
|
5400
5400
|
if (!Mt) return;
|
|
5401
|
-
Mt.style.left = `${
|
|
5401
|
+
Mt.style.left = `${we}px`, Mt.style.zIndex = "9999";
|
|
5402
5402
|
const fn = Mt.querySelector(".vxe-table--resizable-number-tip");
|
|
5403
5403
|
on(), document.onmousemove = Tn, document.onmouseup = function() {
|
|
5404
5404
|
document.onmousemove = null, document.onmouseup = null, s.value = !1, te.style.width = `${Ve}px`;
|
|
5405
5405
|
};
|
|
5406
5406
|
function Tn(Rn) {
|
|
5407
5407
|
Rn.stopPropagation(), Rn.preventDefault();
|
|
5408
|
-
const wr = Rn.clientX - ce, Gn =
|
|
5408
|
+
const wr = Rn.clientX - ce, Gn = we + wr;
|
|
5409
5409
|
Ee = Math.max(Gn, at), Mt && (Mt.style.left = `${Ee}px`, Ve = Math.max(vc(L.clientWidth).add(wr).toNumber(), te.minWidth), on());
|
|
5410
5410
|
}
|
|
5411
5411
|
function on() {
|
|
@@ -5591,7 +5591,7 @@ const CE = /* @__PURE__ */ me({
|
|
|
5591
5591
|
onMouseleave: w
|
|
5592
5592
|
}, [
|
|
5593
5593
|
(q = h.value) != null && q.length ? (T(!0), ie(tt, { key: 0 }, nt(h.value, (_, H) => {
|
|
5594
|
-
var j, oe,
|
|
5594
|
+
var j, oe, we;
|
|
5595
5595
|
return T(), ie("td", {
|
|
5596
5596
|
key: _.field,
|
|
5597
5597
|
class: "is--padding vxe-body--column col--ellipsis",
|
|
@@ -5608,7 +5608,7 @@ const CE = /* @__PURE__ */ me({
|
|
|
5608
5608
|
disabled: M.isDelete || M.disabled
|
|
5609
5609
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (T(), ve(f(ur), {
|
|
5610
5610
|
key: 2,
|
|
5611
|
-
"model-value": String(((
|
|
5611
|
+
"model-value": String(((we = M.item) == null ? void 0 : we[_.field]) ?? "")
|
|
5612
5612
|
}, null, 8, ["model-value"]))
|
|
5613
5613
|
])
|
|
5614
5614
|
], 4);
|
|
@@ -6036,8 +6036,8 @@ function ZE(e, t, r) {
|
|
|
6036
6036
|
...f(L)
|
|
6037
6037
|
};
|
|
6038
6038
|
Fo(oe, f(p), f(n)), t.setLoading(!0);
|
|
6039
|
-
const
|
|
6040
|
-
|
|
6039
|
+
const we = f(e).beforeFetch;
|
|
6040
|
+
we && xe(we) && (oe = await we(oe));
|
|
6041
6041
|
try {
|
|
6042
6042
|
const at = await ((Ve = (Ee = f(e)) == null ? void 0 : Ee.api) == null ? void 0 : Ve.call(Ee, oe).finally(() => {
|
|
6043
6043
|
t.setLoading(!1);
|
|
@@ -6048,10 +6048,10 @@ function ZE(e, t, r) {
|
|
|
6048
6048
|
}
|
|
6049
6049
|
}
|
|
6050
6050
|
function R(L) {
|
|
6051
|
-
var oe,
|
|
6051
|
+
var oe, we;
|
|
6052
6052
|
if (L.isDelete)
|
|
6053
6053
|
return !0;
|
|
6054
|
-
const q = f(e).disableFn && xe(f(e).disableFn), _ = f(m), H = eo(L[_]) ? L.value : L[_], j = q ? (
|
|
6054
|
+
const q = f(e).disableFn && xe(f(e).disableFn), _ = f(m), H = eo(L[_]) ? L.value : L[_], j = q ? (we = (oe = f(e)).disableFn) == null ? void 0 : we.call(oe, H, J(t.selectValue), L) : L.disabled;
|
|
6055
6055
|
if (f(t).multiple && f(t.multipleLimit)) {
|
|
6056
6056
|
const Ee = J(t.selectValue) || [];
|
|
6057
6057
|
return j || (f(t.multipleLimit) || 0) > 0 && Ee.length >= (f(t.multipleLimit) || 0) && !Ee.includes(H);
|
|
@@ -6060,25 +6060,25 @@ function ZE(e, t, r) {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
function G(L) {
|
|
6062
6062
|
function q(oe) {
|
|
6063
|
-
var
|
|
6063
|
+
var we;
|
|
6064
6064
|
if (oo(f(b)) && f(b).length > 0) {
|
|
6065
|
-
const Ee = (
|
|
6065
|
+
const Ee = (we = f(b)) == null ? void 0 : we.map((at) => oe[at]), Ve = f(e).joinFn;
|
|
6066
6066
|
return Ve && xe(Ve) ? Ve(Ee) : Ee.join("-");
|
|
6067
6067
|
}
|
|
6068
6068
|
return oe[f(v)];
|
|
6069
6069
|
}
|
|
6070
6070
|
function _(oe) {
|
|
6071
6071
|
var Ee;
|
|
6072
|
-
const
|
|
6072
|
+
const we = { ...oe, mergeLabel: q(oe) };
|
|
6073
6073
|
return eo(oe) ? oe : {
|
|
6074
|
-
item:
|
|
6074
|
+
item: we,
|
|
6075
6075
|
// 遍历列字段,将对应的值添加到结果中-TODO: 这里可以优化都是用table这里可以去掉
|
|
6076
|
-
...(Ee = t.columnsFields) == null ? void 0 : Ee.reduce((Ve, at) => (Ve[at] =
|
|
6077
|
-
value: eo(
|
|
6078
|
-
label: eo(
|
|
6079
|
-
disabled: R(
|
|
6080
|
-
message:
|
|
6081
|
-
...f(E) ? { isDelete: !!
|
|
6076
|
+
...(Ee = t.columnsFields) == null ? void 0 : Ee.reduce((Ve, at) => (Ve[at] = we[at], Ve), {}),
|
|
6077
|
+
value: eo(we[f(m)]) ? we.value : we[f(m)],
|
|
6078
|
+
label: eo(we[f(v)]) ? we.label : we[f(v)],
|
|
6079
|
+
disabled: R(we) || !1,
|
|
6080
|
+
message: we[f(y)] || "",
|
|
6081
|
+
...f(E) ? { isDelete: !!we[f(E)] || !1 } : {}
|
|
6082
6082
|
};
|
|
6083
6083
|
}
|
|
6084
6084
|
let H = L.map((oe) => _(oe));
|
|
@@ -6087,9 +6087,9 @@ function ZE(e, t, r) {
|
|
|
6087
6087
|
if (j === 1) {
|
|
6088
6088
|
const oe = f(e).customDefault;
|
|
6089
6089
|
oe && H.unshift(_(oe)), o.value = H, ce(-1), setTimeout(() => {
|
|
6090
|
-
var
|
|
6090
|
+
var we;
|
|
6091
6091
|
if (f(t.multiple)) {
|
|
6092
|
-
const Ee = t.getKeyboardEvent && ((
|
|
6092
|
+
const Ee = t.getKeyboardEvent && ((we = t.getKeyboardEvent) == null ? void 0 : we.call(t));
|
|
6093
6093
|
Ee && Ee.ArrowDown();
|
|
6094
6094
|
}
|
|
6095
6095
|
}, 30);
|
|
@@ -6806,7 +6806,7 @@ const nI = ["title"], rI = /* @__PURE__ */ me({
|
|
|
6806
6806
|
gridEvent: H,
|
|
6807
6807
|
selectEvent: j,
|
|
6808
6808
|
keyboardEvent: oe,
|
|
6809
|
-
defaultDataSelect:
|
|
6809
|
+
defaultDataSelect: we
|
|
6810
6810
|
} = tI(S(() => o), {
|
|
6811
6811
|
tableRef: l,
|
|
6812
6812
|
selectRef: a,
|
|
@@ -6940,7 +6940,7 @@ const nI = ["title"], rI = /* @__PURE__ */ me({
|
|
|
6940
6940
|
},
|
|
6941
6941
|
getSelectProps: Ee,
|
|
6942
6942
|
getGridProps: Ve,
|
|
6943
|
-
setModelValue:
|
|
6943
|
+
setModelValue: we,
|
|
6944
6944
|
setPagination: E,
|
|
6945
6945
|
getSelectOption: () => s.value
|
|
6946
6946
|
}), (Se, $e) => (T(), ie("div", Qe(f(_n)(f(i), ["data-component-config", "data-testid", "data-validation-rules"]), {
|
|
@@ -7364,21 +7364,21 @@ class zu {
|
|
|
7364
7364
|
/** 构造函数,初始化弹窗的API接口和状态 */
|
|
7365
7365
|
constructor(t = {}) {
|
|
7366
7366
|
/** 共享数据对象,用于在组件间传递数据 */
|
|
7367
|
-
|
|
7367
|
+
be(this, "sharedData", {
|
|
7368
7368
|
payload: {}
|
|
7369
7369
|
});
|
|
7370
7370
|
/** 状态存储对象,使用Store管理弹窗的各种状态 */
|
|
7371
|
-
|
|
7371
|
+
be(this, "store");
|
|
7372
7372
|
/** 弹窗的API接口,用于处理外部事件 */
|
|
7373
|
-
|
|
7373
|
+
be(this, "api");
|
|
7374
7374
|
/** 弹窗的当前状态,使用Partial<ModalRenderState>类型 */
|
|
7375
|
-
|
|
7375
|
+
be(this, "state");
|
|
7376
7376
|
/** 弹窗的实例方法,用于处理弹窗的各种操作 */
|
|
7377
|
-
|
|
7377
|
+
be(this, "methods");
|
|
7378
7378
|
/**
|
|
7379
7379
|
* 确认操作
|
|
7380
7380
|
*/
|
|
7381
|
-
|
|
7381
|
+
be(this, "onOk", ni(async () => {
|
|
7382
7382
|
var t, r;
|
|
7383
7383
|
try {
|
|
7384
7384
|
this.changeOkLoading(!0), this.api.onOk && await ((r = (t = this.api).onOk) == null ? void 0 : r.call(t));
|
|
@@ -7392,7 +7392,7 @@ class zu {
|
|
|
7392
7392
|
* 获取弹窗的可见状态
|
|
7393
7393
|
* @returns 弹窗的可见状态
|
|
7394
7394
|
*/
|
|
7395
|
-
|
|
7395
|
+
be(this, "getVisible", S(() => this.state.visible));
|
|
7396
7396
|
const {
|
|
7397
7397
|
connectedComponent: r,
|
|
7398
7398
|
onVisibleChange: o,
|
|
@@ -7623,8 +7623,8 @@ const _h = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7623
7623
|
showOkBtn: f($)
|
|
7624
7624
|
})), G = S(() => {
|
|
7625
7625
|
var Ee, Ve;
|
|
7626
|
-
const j = (Ee = f(C)) == null ? void 0 : Ee.disabled, oe = f(re),
|
|
7627
|
-
return j || oe ? [!0,
|
|
7626
|
+
const j = (Ee = f(C)) == null ? void 0 : Ee.disabled, oe = f(re), we = ((Ve = f(C)) == null ? void 0 : Ve.disabledTip) || [];
|
|
7627
|
+
return j || oe ? [!0, we] : [!1, []];
|
|
7628
7628
|
});
|
|
7629
7629
|
ue(
|
|
7630
7630
|
() => {
|
|
@@ -7671,9 +7671,9 @@ const _h = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7671
7671
|
const oe = o.testId;
|
|
7672
7672
|
if (oe)
|
|
7673
7673
|
return te(oe);
|
|
7674
|
-
const
|
|
7675
|
-
if (
|
|
7676
|
-
return te(
|
|
7674
|
+
const we = ce();
|
|
7675
|
+
if (we)
|
|
7676
|
+
return te(we);
|
|
7677
7677
|
const Ee = f(g);
|
|
7678
7678
|
return Ee && typeof Ee == "string" && Ee.trim() ? Gt("modal", Ql(Ee)) : c != null && c.uid ? `modal-${c.uid}` : "modal";
|
|
7679
7679
|
}), L = S(() => Gt(M.value, "footer")), q = S(() => Gt(M.value, "body"));
|
|
@@ -7703,9 +7703,9 @@ const _h = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
|
|
|
7703
7703
|
}), t({
|
|
7704
7704
|
modalApi: u
|
|
7705
7705
|
}), (j, oe) => {
|
|
7706
|
-
var
|
|
7706
|
+
var we;
|
|
7707
7707
|
return rn((T(), ie("div", {
|
|
7708
|
-
"aria-tt-id": `tt-id-${(
|
|
7708
|
+
"aria-tt-id": `tt-id-${(we = f(c)) == null ? void 0 : we.uid}`,
|
|
7709
7709
|
"data-testid": M.value
|
|
7710
7710
|
}, [
|
|
7711
7711
|
Y(f(sC), Qe(O.value, {
|
|
@@ -10081,7 +10081,7 @@ function fp(e) {
|
|
|
10081
10081
|
initialValues: y,
|
|
10082
10082
|
getAllPathStates: () => u.value,
|
|
10083
10083
|
destroyPath: M,
|
|
10084
|
-
isFieldTouched:
|
|
10084
|
+
isFieldTouched: we,
|
|
10085
10085
|
isFieldDirty: Ee,
|
|
10086
10086
|
isFieldValid: Ve
|
|
10087
10087
|
};
|
|
@@ -10116,7 +10116,7 @@ function fp(e) {
|
|
|
10116
10116
|
const ee = Q(z);
|
|
10117
10117
|
ee && (ee.touched = P);
|
|
10118
10118
|
}
|
|
10119
|
-
function
|
|
10119
|
+
function we(z) {
|
|
10120
10120
|
const P = Q(z);
|
|
10121
10121
|
return P ? P.touched : u.value.filter((ee) => ee.path.startsWith(z)).some((ee) => ee.touched);
|
|
10122
10122
|
}
|
|
@@ -10599,19 +10599,19 @@ function Rg(e, t = "YYYY-MM-DD") {
|
|
|
10599
10599
|
class mp {
|
|
10600
10600
|
constructor(t = {}) {
|
|
10601
10601
|
// private api: Pick<TtFormProps, 'handleReset' | 'handleSubmit'>;
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10602
|
+
be(this, "form", {});
|
|
10603
|
+
be(this, "isMounted", !1);
|
|
10604
|
+
be(this, "state", null);
|
|
10605
|
+
be(this, "stateHandler");
|
|
10606
|
+
be(this, "store");
|
|
10607
10607
|
/**
|
|
10608
10608
|
* 组件实例映射
|
|
10609
10609
|
*/
|
|
10610
|
-
|
|
10610
|
+
be(this, "componentRefMap", /* @__PURE__ */ new Map());
|
|
10611
10611
|
// 最后一次点击提交时的表单值
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10612
|
+
be(this, "latestSubmissionValues", null);
|
|
10613
|
+
be(this, "prevState", null);
|
|
10614
|
+
be(this, "handleMultiFields", (t) => {
|
|
10615
10615
|
var n;
|
|
10616
10616
|
const r = (n = this.state) == null ? void 0 : n.arrayToStringFields;
|
|
10617
10617
|
if (!r || !Array.isArray(r))
|
|
@@ -10643,7 +10643,7 @@ class mp {
|
|
|
10643
10643
|
}
|
|
10644
10644
|
});
|
|
10645
10645
|
});
|
|
10646
|
-
|
|
10646
|
+
be(this, "handleRangeTimeValue", (t) => {
|
|
10647
10647
|
var n;
|
|
10648
10648
|
const r = { ...t }, o = (n = this.state) == null ? void 0 : n.fieldMappingTime;
|
|
10649
10649
|
return this.handleMultiFields(r), !o || !Array.isArray(o) || o.forEach(([i, [a, l], c = "YYYY-MM-DD"]) => {
|
|
@@ -10663,7 +10663,7 @@ class mp {
|
|
|
10663
10663
|
Reflect.deleteProperty(r, i);
|
|
10664
10664
|
}), r;
|
|
10665
10665
|
});
|
|
10666
|
-
|
|
10666
|
+
be(this, "processFields", (t, r, o, n) => {
|
|
10667
10667
|
t.forEach((i) => {
|
|
10668
10668
|
const a = o[i];
|
|
10669
10669
|
a != null && (o[i] = n(a, r));
|
|
@@ -23237,49 +23237,49 @@ class uk extends mp {
|
|
|
23237
23237
|
constructor(r, o) {
|
|
23238
23238
|
super(r);
|
|
23239
23239
|
/** 是否启用虚拟化(IntersectionObserver 懒渲染) */
|
|
23240
|
-
|
|
23240
|
+
be(this, "virtual");
|
|
23241
23241
|
/** 构造时的导航锚点默认配置,作为 store 未设置时的 fallback */
|
|
23242
|
-
|
|
23242
|
+
be(this, "_defaultNavAnchorProps");
|
|
23243
23243
|
/** 校验失败时是否自动滚动到第一个有错误的分组,默认 true */
|
|
23244
|
-
|
|
23244
|
+
be(this, "_scrollToFirstError");
|
|
23245
23245
|
/** 滚动容器高度 */
|
|
23246
|
-
|
|
23246
|
+
be(this, "_containerHeight");
|
|
23247
23247
|
/** IntersectionObserver rootMargin */
|
|
23248
|
-
|
|
23248
|
+
be(this, "_rootMargin");
|
|
23249
23249
|
/** 预估每个表单项高度(px) */
|
|
23250
|
-
|
|
23250
|
+
be(this, "_estimateFieldHeight");
|
|
23251
23251
|
/** 滚动到分组时的顶部偏移量(px),补偿固定元素遮挡 */
|
|
23252
|
-
|
|
23252
|
+
be(this, "_scrollOffset");
|
|
23253
23253
|
/** 各分组折叠状态(key → 是否折叠) */
|
|
23254
|
-
|
|
23254
|
+
be(this, "collapseStates");
|
|
23255
23255
|
/** 当前被 ifShow 隐藏的分组 key 集合 */
|
|
23256
|
-
|
|
23256
|
+
be(this, "hiddenGroupKeys");
|
|
23257
23257
|
/** 导航各分组的错误数量,validate 后自动更新 */
|
|
23258
|
-
|
|
23258
|
+
be(this, "navErrorCounts");
|
|
23259
23259
|
/** 共享错误缓存,validate 写入 → LazyFormField 挂载时读取恢复 */
|
|
23260
|
-
|
|
23260
|
+
be(this, "errorCacheMap", /* @__PURE__ */ new Map());
|
|
23261
23261
|
/** 重置信号,递增时通知所有 LazyFormField 清空 cachedError */
|
|
23262
|
-
|
|
23262
|
+
be(this, "resetSignal", U(0));
|
|
23263
23263
|
/** 初始传入的分组 schema(用于 fallback) */
|
|
23264
|
-
|
|
23264
|
+
be(this, "_initialGroupSchema");
|
|
23265
23265
|
/** 初始展平后的 flatSchema(用于 fallback) */
|
|
23266
|
-
|
|
23266
|
+
be(this, "_initialFlatSchema");
|
|
23267
23267
|
/** 各分组 key → 其直属字段名(不含子分组的字段) */
|
|
23268
|
-
|
|
23268
|
+
be(this, "_groupFieldMap", {});
|
|
23269
23269
|
/** 字段名 → 所属分组 key 的反向映射,用于快速判断字段是否属于隐藏分组 */
|
|
23270
|
-
|
|
23270
|
+
be(this, "_fieldToGroupKey", {});
|
|
23271
23271
|
/** 子分组 key → 父分组 key 的映射,用于递归向上查找祖先分组是否被隐藏 */
|
|
23272
|
-
|
|
23272
|
+
be(this, "_groupParentMap", {});
|
|
23273
23273
|
/** 是否已执行过 validate,用于控制导航栏错误同步是否需要重新校验未挂载字段 */
|
|
23274
|
-
|
|
23274
|
+
be(this, "_hasValidated", !1);
|
|
23275
23275
|
/** VirtualGroupForm 组件实例引用,由 useGroupForm 的 h() 渲染时赋值 */
|
|
23276
|
-
|
|
23276
|
+
be(this, "groupFormRef", U(null));
|
|
23277
23277
|
/**
|
|
23278
23278
|
* @description 响应式读取 store 状态,由 useGroupForm 在运行时注入实现
|
|
23279
23279
|
* @param {Function} [selector] - 可选的状态选择器
|
|
23280
23280
|
* @returns {Readonly<Ref<T>>} 响应式状态引用
|
|
23281
23281
|
*/
|
|
23282
|
-
|
|
23282
|
+
be(this, "useStore");
|
|
23283
23283
|
const {
|
|
23284
23284
|
groupSchema: n,
|
|
23285
23285
|
virtual: i = !0,
|
|
@@ -24106,12 +24106,12 @@ const ay = Symbol("VirtualRenderScheduler"), ly = Symbol("GroupVisibilityCallbac
|
|
|
24106
24106
|
modelPropName: j = "",
|
|
24107
24107
|
wrapperClass: oe = ""
|
|
24108
24108
|
} = B.value;
|
|
24109
|
-
let
|
|
24109
|
+
let we = Q.formItemClass;
|
|
24110
24110
|
if (xe(Q.formItemClass))
|
|
24111
24111
|
try {
|
|
24112
|
-
|
|
24112
|
+
we = Q.formItemClass();
|
|
24113
24113
|
} catch {
|
|
24114
|
-
|
|
24114
|
+
we = "";
|
|
24115
24115
|
}
|
|
24116
24116
|
return {
|
|
24117
24117
|
colon: k,
|
|
@@ -24129,7 +24129,7 @@ const ay = Symbol("VirtualRenderScheduler"), ly = Symbol("GroupVisibilityCallbac
|
|
|
24129
24129
|
componentProps: Q.componentProps,
|
|
24130
24130
|
controlClass: Dt(R, Q.controlClass),
|
|
24131
24131
|
formFieldProps: { ...ce, ...Q.formFieldProps },
|
|
24132
|
-
formItemClass: Dt("flex-shrink-0", M,
|
|
24132
|
+
formItemClass: Dt("flex-shrink-0", M, we),
|
|
24133
24133
|
labelClass: Dt(_, Q.labelClass)
|
|
24134
24134
|
};
|
|
24135
24135
|
}
|
|
@@ -25025,21 +25025,21 @@ class IA {
|
|
|
25025
25025
|
/** 构造函数,初始化抽屉的API接口和状态 */
|
|
25026
25026
|
constructor(t = {}) {
|
|
25027
25027
|
/** el-drawer 实例的引用 */
|
|
25028
|
-
|
|
25028
|
+
be(this, "drawerRef", null);
|
|
25029
25029
|
/** 共享数据对象,用于在组件间传递数据 */
|
|
25030
|
-
|
|
25030
|
+
be(this, "sharedData", {
|
|
25031
25031
|
payload: {}
|
|
25032
25032
|
});
|
|
25033
25033
|
/** 状态存储对象,使用Store管理抽屉的各种状态 */
|
|
25034
|
-
|
|
25034
|
+
be(this, "store");
|
|
25035
25035
|
/** 抽屉的API接口,用于处理外部事件 */
|
|
25036
|
-
|
|
25036
|
+
be(this, "api");
|
|
25037
25037
|
/** 抽屉的当前状态,使用Partial<TtDrawerProps>类型 */
|
|
25038
|
-
|
|
25038
|
+
be(this, "state");
|
|
25039
25039
|
/**
|
|
25040
25040
|
* 确认操作
|
|
25041
25041
|
*/
|
|
25042
|
-
|
|
25042
|
+
be(this, "onOk", ni(async () => {
|
|
25043
25043
|
var t, r;
|
|
25044
25044
|
try {
|
|
25045
25045
|
this.setDrawerProps({ confirmLoading: !0 }), this.api.onOk && await ((r = (t = this.api).onOk) == null ? void 0 : r.call(t));
|
|
@@ -25053,7 +25053,7 @@ class IA {
|
|
|
25053
25053
|
* 获取抽屉的可见状态
|
|
25054
25054
|
* @returns 抽屉的可见状态
|
|
25055
25055
|
*/
|
|
25056
|
-
|
|
25056
|
+
be(this, "getVisible", S(() => this.state.visible));
|
|
25057
25057
|
const {
|
|
25058
25058
|
connectedComponent: r,
|
|
25059
25059
|
onOk: o,
|
|
@@ -28032,8 +28032,8 @@ function b6(e, {
|
|
|
28032
28032
|
const { resultData: _, resultTotal: H } = m(q, Z, O);
|
|
28033
28033
|
let j = _ || [];
|
|
28034
28034
|
j = await b(V, j, ce), C(j);
|
|
28035
|
-
const oe = H || j.length || 0,
|
|
28036
|
-
K >
|
|
28035
|
+
const oe = H || j.length || 0, we = Math.max(1, Math.ceil(oe / G.pageSize));
|
|
28036
|
+
K > we && (K = 1, B({
|
|
28037
28037
|
tablePage: {
|
|
28038
28038
|
currentPage: K,
|
|
28039
28039
|
pageSize: G.pageSize
|
|
@@ -29098,40 +29098,40 @@ class FA {
|
|
|
29098
29098
|
*/
|
|
29099
29099
|
constructor(t = {}) {
|
|
29100
29100
|
/** vxe-grid 表格实例 */
|
|
29101
|
-
|
|
29101
|
+
be(this, "grid", gt({}));
|
|
29102
29102
|
/** 表格操作方法集合(TtTableMethods) */
|
|
29103
|
-
|
|
29103
|
+
be(this, "methods", gt({}));
|
|
29104
29104
|
/** 当前表格的 props 状态 */
|
|
29105
|
-
|
|
29105
|
+
be(this, "state", null);
|
|
29106
29106
|
/** 响应式 store,存储表格的状态 */
|
|
29107
|
-
|
|
29107
|
+
be(this, "store");
|
|
29108
29108
|
/** 响应式代理状态(loading、selectedKeys) */
|
|
29109
|
-
|
|
29109
|
+
be(this, "proxyState", gt({
|
|
29110
29110
|
loading: !1,
|
|
29111
29111
|
selectedKeys: [],
|
|
29112
29112
|
isTableEvent: !1,
|
|
29113
29113
|
selectedRows: []
|
|
29114
29114
|
}));
|
|
29115
|
-
|
|
29116
|
-
|
|
29115
|
+
be(this, "isMounted", !1);
|
|
29116
|
+
be(this, "stateHandler");
|
|
29117
29117
|
/**
|
|
29118
29118
|
* @description: 获取表格选中数据
|
|
29119
29119
|
* @return {DT[]}
|
|
29120
29120
|
*/
|
|
29121
|
-
|
|
29121
|
+
be(this, "selectedKeys", S(() => this.proxyState.selectedKeys));
|
|
29122
29122
|
/**
|
|
29123
29123
|
* @description: 获取表格选中数据
|
|
29124
29124
|
* @return {DT[]}
|
|
29125
29125
|
*/
|
|
29126
|
-
|
|
29126
|
+
be(this, "selectedRows", S(() => this.proxyState.selectedRows));
|
|
29127
29127
|
/**
|
|
29128
29128
|
* 获取表格 loading 状态(响应式)
|
|
29129
29129
|
*/
|
|
29130
|
-
|
|
29130
|
+
be(this, "getLoading", S(() => this.proxyState.loading));
|
|
29131
29131
|
/**
|
|
29132
29132
|
* 是否使用表格的event
|
|
29133
29133
|
*/
|
|
29134
|
-
|
|
29134
|
+
be(this, "getIsTableEvent", S(() => this.proxyState.isTableEvent));
|
|
29135
29135
|
const r = { ...t }, o = MA();
|
|
29136
29136
|
this.store = new $i(Rt(r, o), {
|
|
29137
29137
|
onUpdate: () => {
|
|
@@ -29469,7 +29469,7 @@ const F6 = ["data-testid", "data-table-columns"], T6 = ["onClick"], P6 = {
|
|
|
29469
29469
|
tableHeaderHight: H,
|
|
29470
29470
|
tableBodyScrollHeight: j,
|
|
29471
29471
|
tableBodyHeight: oe,
|
|
29472
|
-
leftSlotScrollbarRef:
|
|
29472
|
+
leftSlotScrollbarRef: we,
|
|
29473
29473
|
rightSlotScrollbarRef: Ee,
|
|
29474
29474
|
tableBodyScrollTop: Ve
|
|
29475
29475
|
} = y6(y, d, A), {
|
|
@@ -29822,7 +29822,7 @@ const F6 = ["data-testid", "data-table-columns"], T6 = ["onClick"], P6 = {
|
|
|
29822
29822
|
left: W(() => [ae(ne.$slots, "left", {}, () => [f(_) ? (T(), ve(f(Ni), {
|
|
29823
29823
|
key: 0,
|
|
29824
29824
|
ref_key: "leftSlotScrollbarRef",
|
|
29825
|
-
ref:
|
|
29825
|
+
ref: we,
|
|
29826
29826
|
"wrap-class": "overflow-hidden",
|
|
29827
29827
|
class: "tt-table-left-right-scroll",
|
|
29828
29828
|
height: `${f(_)}px`,
|
|
@@ -31690,23 +31690,23 @@ class Xy {
|
|
|
31690
31690
|
*/
|
|
31691
31691
|
constructor(t = {}) {
|
|
31692
31692
|
/** form 表单实例(FormApi) */
|
|
31693
|
-
|
|
31693
|
+
be(this, "formApi", gt({}));
|
|
31694
31694
|
/** 表格 API 实例(TableApi) */
|
|
31695
|
-
|
|
31695
|
+
be(this, "tableApi", gt({}));
|
|
31696
31696
|
/** vxe-grid 表格实例 */
|
|
31697
|
-
|
|
31697
|
+
be(this, "grid", gt({}));
|
|
31698
31698
|
/** 当前表单+表格的 props 状态 */
|
|
31699
|
-
|
|
31699
|
+
be(this, "state", null);
|
|
31700
31700
|
/** 表单操作方法集合(TableFormActionType) */
|
|
31701
|
-
|
|
31701
|
+
be(this, "tableForm", gt({}));
|
|
31702
31702
|
/** 响应式 store,存储表单+表格的状态 */
|
|
31703
|
-
|
|
31704
|
-
|
|
31705
|
-
|
|
31703
|
+
be(this, "store");
|
|
31704
|
+
be(this, "isMounted", !1);
|
|
31705
|
+
be(this, "stateHandler");
|
|
31706
31706
|
/**
|
|
31707
31707
|
* 当前选中的行 key 数组(响应式)
|
|
31708
31708
|
*/
|
|
31709
|
-
|
|
31709
|
+
be(this, "selectedKeys", S(() => J(this.tableApi.selectedKeys) ?? []));
|
|
31710
31710
|
const r = { ...t }, o = MA();
|
|
31711
31711
|
this.store = new $i(
|
|
31712
31712
|
Rt(r, {
|
|
@@ -31806,6 +31806,7 @@ const PQ = ["data-testid"], zQ = ["data-testid"], RQ = /* @__PURE__ */ me({
|
|
|
31806
31806
|
"change-row-height",
|
|
31807
31807
|
"export",
|
|
31808
31808
|
"import",
|
|
31809
|
+
"set-columns",
|
|
31809
31810
|
...Kl
|
|
31810
31811
|
],
|
|
31811
31812
|
setup(e, { expose: t, emit: r }) {
|
|
@@ -31929,14 +31930,14 @@ const PQ = ["data-testid"], zQ = ["data-testid"], RQ = /* @__PURE__ */ me({
|
|
|
31929
31930
|
H.modalApi.setModalProps({
|
|
31930
31931
|
confirmLoading: !0
|
|
31931
31932
|
}), C.value.useHttpCache && await V(JSON.stringify(H.checkedModel));
|
|
31932
|
-
const j = ((Ve = (Ee = v.value) == null ? void 0 : Ee.table) == null ? void 0 : Ve.columns) || [], oe = new Map(j.map((at) => [at.field, at])),
|
|
31933
|
-
l.tableApi.setTableColumns(
|
|
31933
|
+
const j = ((Ve = (Ee = v.value) == null ? void 0 : Ee.table) == null ? void 0 : Ve.columns) || [], oe = new Map(j.map((at) => [at.field, at])), we = H.checkedModel.map((at) => oe.get(at)).filter(Boolean);
|
|
31934
|
+
l.tableApi.setTableColumns(we), H.modalApi.setModalProps({
|
|
31934
31935
|
confirmLoading: !1
|
|
31935
|
-
}), H.modalApi.closeModal();
|
|
31936
|
+
}), H.modalApi.closeModal(), n("set-columns", we);
|
|
31936
31937
|
}
|
|
31937
31938
|
function te() {
|
|
31938
|
-
var
|
|
31939
|
-
const { notSetColumnField: H, columns: j } = f(C), oe = (at = (Ve = (Ee = ((
|
|
31939
|
+
var we, Ee, Ve, at, Mt;
|
|
31940
|
+
const { notSetColumnField: H, columns: j } = f(C), oe = (at = (Ve = (Ee = ((we = l.tableApi.getTableInstance()) == null ? void 0 : we.getTableColumn()) || []) == null ? void 0 : Ee.visibleColumn) == null ? void 0 : Ve.map((fn) => fn.field)) == null ? void 0 : at.filter(Boolean);
|
|
31940
31941
|
(Mt = a.value) == null || Mt.openModal({
|
|
31941
31942
|
columns: J(j) || [],
|
|
31942
31943
|
displayFields: oe,
|
|
@@ -31986,7 +31987,7 @@ const PQ = ["data-testid"], zQ = ["data-testid"], RQ = /* @__PURE__ */ me({
|
|
|
31986
31987
|
const fn = ql(at);
|
|
31987
31988
|
oe.has(fn) && (H[fn] = Mt);
|
|
31988
31989
|
}
|
|
31989
|
-
const
|
|
31990
|
+
const we = ce(H), Ee = M(we, o);
|
|
31990
31991
|
l.setState(Ee);
|
|
31991
31992
|
},
|
|
31992
31993
|
{ deep: !0 }
|
|
@@ -32006,8 +32007,8 @@ const PQ = ["data-testid"], zQ = ["data-testid"], RQ = /* @__PURE__ */ me({
|
|
|
32006
32007
|
}, St({ _: 2 }, [
|
|
32007
32008
|
nt(f(b)(H.$slots), (oe) => ({
|
|
32008
32009
|
name: f(E)(oe),
|
|
32009
|
-
fn: W((
|
|
32010
|
-
ae(H.$slots, oe, We(et(
|
|
32010
|
+
fn: W((we) => [
|
|
32011
|
+
ae(H.$slots, oe, We(et(we)))
|
|
32011
32012
|
])
|
|
32012
32013
|
}))
|
|
32013
32014
|
]), 1032, ["test-id"]),
|
|
@@ -32030,8 +32031,8 @@ const PQ = ["data-testid"], zQ = ["data-testid"], RQ = /* @__PURE__ */ me({
|
|
|
32030
32031
|
}, Ui(k)), St({ _: 2 }, [
|
|
32031
32032
|
nt(f(I)(H.$slots), (oe) => ({
|
|
32032
32033
|
name: f(B)(oe),
|
|
32033
|
-
fn: W((
|
|
32034
|
-
ae(H.$slots, oe, We(et(
|
|
32034
|
+
fn: W((we) => [
|
|
32035
|
+
ae(H.$slots, oe, We(et(we)))
|
|
32035
32036
|
])
|
|
32036
32037
|
})),
|
|
32037
32038
|
f(C).showToolbar ? {
|
package/dist/plugins.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElSwitch as
|
|
2
|
-
import { omit as
|
|
3
|
-
import { h as
|
|
1
|
+
import { ElSwitch as A, ElMessage as R } from "element-plus";
|
|
2
|
+
import { omit as S, cloneDeep as F } from "lodash-es";
|
|
3
|
+
import { h as s, defineComponent as g, ref as U, shallowRef as _, onMounted as D } from "vue";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { b as m
|
|
5
|
+
import { b as m } from "./index.modern-xkd4Z3Qx.js";
|
|
6
6
|
import "xe-utils";
|
|
7
|
-
function
|
|
8
|
-
return
|
|
7
|
+
function L(o) {
|
|
8
|
+
return o.split("-").filter(Boolean).map((r, u) => u === 0 ? r : r.charAt(0).toUpperCase() + r.slice(1)).join("");
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const O = [
|
|
11
11
|
"modelValue",
|
|
12
12
|
"onUpdate:modelValue",
|
|
13
13
|
"loading",
|
|
@@ -16,54 +16,54 @@ const D = [
|
|
|
16
16
|
"afterFetch",
|
|
17
17
|
"beforeChange"
|
|
18
18
|
];
|
|
19
|
-
function
|
|
20
|
-
return Object.fromEntries(Object.entries(
|
|
19
|
+
function E(o) {
|
|
20
|
+
return Object.fromEntries(Object.entries(o).map(([r, u]) => [L(r), u]));
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const
|
|
22
|
+
const x = "1", y = "0";
|
|
23
|
+
function I(o) {
|
|
24
|
+
const r = E(o);
|
|
25
25
|
return {
|
|
26
|
-
active:
|
|
27
|
-
inactive:
|
|
26
|
+
active: r.activeValue ?? x,
|
|
27
|
+
inactive: r.inactiveValue ?? y
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function k() {
|
|
31
31
|
return {
|
|
32
|
-
install(
|
|
33
|
-
|
|
34
|
-
renderTableDefault(
|
|
35
|
-
const { row:
|
|
36
|
-
return
|
|
37
|
-
|
|
32
|
+
install(o) {
|
|
33
|
+
o.renderer.add("switchStatus", {
|
|
34
|
+
renderTableDefault(r, u) {
|
|
35
|
+
const { row: i, column: n } = u, e = r.props ?? {}, t = S(e, [...O]), h = E(t);
|
|
36
|
+
return s(
|
|
37
|
+
g({
|
|
38
38
|
name: "TtVxeSwitchCell",
|
|
39
39
|
setup: () => {
|
|
40
|
-
const
|
|
41
|
-
return () =>
|
|
42
|
-
activeValue:
|
|
43
|
-
inactiveValue:
|
|
44
|
-
...
|
|
45
|
-
modelValue:
|
|
46
|
-
loading:
|
|
40
|
+
const C = U(!1), { active: a, inactive: c } = I(e);
|
|
41
|
+
return () => s(A, {
|
|
42
|
+
activeValue: a,
|
|
43
|
+
inactiveValue: c,
|
|
44
|
+
...h,
|
|
45
|
+
modelValue: i[n.field],
|
|
46
|
+
loading: C.value,
|
|
47
47
|
"onUpdate:modelValue": (l) => {
|
|
48
|
-
|
|
48
|
+
i[n.field] = l;
|
|
49
49
|
},
|
|
50
50
|
beforeChange: async () => {
|
|
51
|
-
var
|
|
52
|
-
const l =
|
|
53
|
-
if ((m(e.beforeChange) ? await ((
|
|
54
|
-
const
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
...
|
|
60
|
-
...
|
|
51
|
+
var p, w, b;
|
|
52
|
+
const l = i[n.field];
|
|
53
|
+
if ((m(e.beforeChange) ? await ((p = e.beforeChange) == null ? void 0 : p.call(e, l)) : !0) === !1 || !m(e.api)) return !1;
|
|
54
|
+
const f = l === a ? c : a;
|
|
55
|
+
let d = { [n.field]: f, id: i.id };
|
|
56
|
+
if (C.value = !0, m(e.beforeFetch)) {
|
|
57
|
+
const T = await ((w = e.beforeFetch) == null ? void 0 : w.call(e, d, i, n));
|
|
58
|
+
d = {
|
|
59
|
+
...d,
|
|
60
|
+
...T
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
const v = await e.api(d).finally(() => {
|
|
64
|
+
C.value = !1;
|
|
65
65
|
});
|
|
66
|
-
return (
|
|
66
|
+
return (b = e.afterFetch) == null || b.call(e, v), R.success(l === a ? "禁用成功" : "启用成功"), !0;
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -74,37 +74,59 @@ function Y() {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function H() {
|
|
78
78
|
return {
|
|
79
|
-
install(
|
|
80
|
-
|
|
81
|
-
renderTableDefault(
|
|
82
|
-
const { row:
|
|
79
|
+
install(o) {
|
|
80
|
+
o.renderer.add("renderCellContent", {
|
|
81
|
+
renderTableDefault(r, u) {
|
|
82
|
+
const { row: i, column: n, $table: e } = u, t = r.props ?? {}, h = `${n.field}Option`;
|
|
83
|
+
if (e[h]) {
|
|
84
|
+
const a = e[h];
|
|
85
|
+
if (m(t.customRender))
|
|
86
|
+
return s(
|
|
87
|
+
t.customRender({
|
|
88
|
+
result: F(a),
|
|
89
|
+
row: i,
|
|
90
|
+
column: n,
|
|
91
|
+
$table: e
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
const c = a.find((l) => l[t.valueField] === n.field);
|
|
95
|
+
return s("div", null, (c == null ? void 0 : c[t.labelField]) ?? "");
|
|
96
|
+
}
|
|
97
|
+
const C = g({
|
|
83
98
|
name: "RenderCellContent",
|
|
84
99
|
setup() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
const l = (f || []).find((u) => u[e.valueField] === a.field);
|
|
96
|
-
o.value = (l == null ? void 0 : l[e.labelField]) ?? "";
|
|
100
|
+
var V;
|
|
101
|
+
const a = _([]);
|
|
102
|
+
async function c() {
|
|
103
|
+
var v, p;
|
|
104
|
+
if (e[h]) return;
|
|
105
|
+
let f = {};
|
|
106
|
+
m(t.beforeFetch) && (f = await ((v = t.beforeFetch) == null ? void 0 : v.call(t, i, n)));
|
|
107
|
+
const d = await ((p = t.api) == null ? void 0 : p.call(t, f));
|
|
108
|
+
a.value = d, m(t.afterFetch) && (a.value = await t.afterFetch(a.value, i, n)), e[`${n.field}Option`] = F(a.value);
|
|
97
109
|
}
|
|
98
|
-
|
|
110
|
+
if (D(c), t.customRender)
|
|
111
|
+
return () => s(
|
|
112
|
+
t.customRender({
|
|
113
|
+
result: F(a.value),
|
|
114
|
+
row: i,
|
|
115
|
+
column: n,
|
|
116
|
+
$table: e
|
|
117
|
+
})
|
|
118
|
+
);
|
|
119
|
+
const l = (V = a.value) == null ? void 0 : V.find((f) => f[t.valueField] === n.field);
|
|
120
|
+
return () => s("div", null, (l == null ? void 0 : l[t.labelField]) ?? "");
|
|
99
121
|
}
|
|
100
122
|
});
|
|
101
|
-
return
|
|
123
|
+
return s(C);
|
|
102
124
|
}
|
|
103
125
|
});
|
|
104
126
|
}
|
|
105
127
|
};
|
|
106
128
|
}
|
|
107
129
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
130
|
+
H as createVxePluginRenderCellContent,
|
|
131
|
+
k as createVxePluginSwitchStatus
|
|
110
132
|
};
|