@unizhen/ui 0.1.137 → 0.1.139
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.
|
@@ -32,7 +32,6 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
32
32
|
default: () => never[];
|
|
33
33
|
};
|
|
34
34
|
item: {
|
|
35
|
-
required: true;
|
|
36
35
|
type: PropType<IUzFormItemSubTable>;
|
|
37
36
|
default: () => {};
|
|
38
37
|
};
|
|
@@ -118,7 +117,6 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
118
117
|
default: () => never[];
|
|
119
118
|
};
|
|
120
119
|
item: {
|
|
121
|
-
required: true;
|
|
122
120
|
type: PropType<IUzFormItemSubTable>;
|
|
123
121
|
default: () => {};
|
|
124
122
|
};
|
|
@@ -1353,6 +1353,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1353
1353
|
options?: string | undefined;
|
|
1354
1354
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
1355
1355
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1356
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1356
1357
|
deleteFn?: string | undefined;
|
|
1357
1358
|
};
|
|
1358
1359
|
label: string | (() => string);
|
|
@@ -1537,6 +1538,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1537
1538
|
clearable: boolean;
|
|
1538
1539
|
expandable: boolean;
|
|
1539
1540
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1541
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1540
1542
|
};
|
|
1541
1543
|
label: string | (() => string);
|
|
1542
1544
|
key: string;
|
|
@@ -2954,6 +2956,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
2954
2956
|
options?: string | undefined;
|
|
2955
2957
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
2956
2958
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
2959
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
2957
2960
|
deleteFn?: string | undefined;
|
|
2958
2961
|
};
|
|
2959
2962
|
label: string | (() => string);
|
|
@@ -3138,6 +3141,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
3138
3141
|
clearable: boolean;
|
|
3139
3142
|
expandable: boolean;
|
|
3140
3143
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
3144
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
3141
3145
|
};
|
|
3142
3146
|
label: string | (() => string);
|
|
3143
3147
|
key: string;
|
|
@@ -4479,6 +4483,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4479
4483
|
options?: string | undefined;
|
|
4480
4484
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
4481
4485
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4486
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4482
4487
|
deleteFn?: string | undefined;
|
|
4483
4488
|
};
|
|
4484
4489
|
label: string | (() => string);
|
|
@@ -4663,6 +4668,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4663
4668
|
clearable: boolean;
|
|
4664
4669
|
expandable: boolean;
|
|
4665
4670
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4671
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4666
4672
|
};
|
|
4667
4673
|
label: string | (() => string);
|
|
4668
4674
|
key: string;
|
|
@@ -6080,6 +6086,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6080
6086
|
options?: string | undefined;
|
|
6081
6087
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
6082
6088
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6089
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6083
6090
|
deleteFn?: string | undefined;
|
|
6084
6091
|
};
|
|
6085
6092
|
label: string | (() => string);
|
|
@@ -6264,6 +6271,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6264
6271
|
clearable: boolean;
|
|
6265
6272
|
expandable: boolean;
|
|
6266
6273
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6274
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6267
6275
|
};
|
|
6268
6276
|
label: string | (() => string);
|
|
6269
6277
|
key: string;
|
|
@@ -1355,6 +1355,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1355
1355
|
options?: string | undefined;
|
|
1356
1356
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
1357
1357
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1358
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1358
1359
|
deleteFn?: string | undefined;
|
|
1359
1360
|
};
|
|
1360
1361
|
label: string | (() => string);
|
|
@@ -1539,6 +1540,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
1539
1540
|
clearable: boolean;
|
|
1540
1541
|
expandable: boolean;
|
|
1541
1542
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
1543
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
1542
1544
|
};
|
|
1543
1545
|
label: string | (() => string);
|
|
1544
1546
|
key: string;
|
|
@@ -2956,6 +2958,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
2956
2958
|
options?: string | undefined;
|
|
2957
2959
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
2958
2960
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
2961
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
2959
2962
|
deleteFn?: string | undefined;
|
|
2960
2963
|
};
|
|
2961
2964
|
label: string | (() => string);
|
|
@@ -3140,6 +3143,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
3140
3143
|
clearable: boolean;
|
|
3141
3144
|
expandable: boolean;
|
|
3142
3145
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
3146
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
3143
3147
|
};
|
|
3144
3148
|
label: string | (() => string);
|
|
3145
3149
|
key: string;
|
|
@@ -4481,6 +4485,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4481
4485
|
options?: string | undefined;
|
|
4482
4486
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
4483
4487
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4488
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4484
4489
|
deleteFn?: string | undefined;
|
|
4485
4490
|
};
|
|
4486
4491
|
label: string | (() => string);
|
|
@@ -4665,6 +4670,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
4665
4670
|
clearable: boolean;
|
|
4666
4671
|
expandable: boolean;
|
|
4667
4672
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
4673
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
4668
4674
|
};
|
|
4669
4675
|
label: string | (() => string);
|
|
4670
4676
|
key: string;
|
|
@@ -6082,6 +6088,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6082
6088
|
options?: string | undefined;
|
|
6083
6089
|
summary?: string | ((pageData: any) => any) | undefined;
|
|
6084
6090
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6091
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6085
6092
|
deleteFn?: string | undefined;
|
|
6086
6093
|
};
|
|
6087
6094
|
label: string | (() => string);
|
|
@@ -6266,6 +6273,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
6266
6273
|
clearable: boolean;
|
|
6267
6274
|
expandable: boolean;
|
|
6268
6275
|
merge?: string | ((pageData: any) => any) | undefined;
|
|
6276
|
+
expandableFn?: string | ((rowData: any) => boolean) | undefined;
|
|
6269
6277
|
};
|
|
6270
6278
|
label: string | (() => string);
|
|
6271
6279
|
key: string;
|
|
@@ -313,6 +313,7 @@ export interface IUzFormItemBom extends IUzFormItemBase {
|
|
|
313
313
|
clearable: boolean;
|
|
314
314
|
expandable: boolean;
|
|
315
315
|
merge?: string | ((pageData: any) => any);
|
|
316
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
316
317
|
};
|
|
317
318
|
}
|
|
318
319
|
export interface IUzFormItemSubTable extends IUzFormItemBase {
|
|
@@ -340,6 +341,7 @@ export interface IUzFormItemSubTable extends IUzFormItemBase {
|
|
|
340
341
|
options?: string;
|
|
341
342
|
summary?: string | ((pageData: any) => any);
|
|
342
343
|
merge?: string | ((pageData: any) => any);
|
|
344
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
343
345
|
deleteFn?: string;
|
|
344
346
|
};
|
|
345
347
|
}
|
|
@@ -275,6 +275,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
275
275
|
clearable: boolean;
|
|
276
276
|
expandable: boolean;
|
|
277
277
|
merge?: string | ((pageData: any) => any);
|
|
278
|
+
expandableFn?: string | ((rowData: any) => boolean);
|
|
278
279
|
};
|
|
279
280
|
form: {
|
|
280
281
|
show: boolean;
|
|
@@ -286,6 +287,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
|
|
|
286
287
|
key: string;
|
|
287
288
|
link: string;
|
|
288
289
|
merge: string;
|
|
290
|
+
expandableFn: string;
|
|
289
291
|
};
|
|
290
292
|
tableWidth: number;
|
|
291
293
|
}>;
|
package/lib/ui.js
CHANGED
|
@@ -1209,7 +1209,7 @@ var xr = /*#__PURE__*/ Q(yr, [["render", br]]), Sr = d({
|
|
|
1209
1209
|
else t.form.updateValue(n, a, i, Z);
|
|
1210
1210
|
}
|
|
1211
1211
|
},
|
|
1212
|
-
showPlaceholder: (
|
|
1212
|
+
showPlaceholder: (t) => e.status === 2 ? " " : typeof t.params.placeholder == "function" ? t.params.placeholder() : t.params.placeholder ? t.params.placeholder : typeof t.label == "function" ? t.label() : t.label,
|
|
1213
1213
|
checkDisabled: () => {
|
|
1214
1214
|
if (e.disabled) return !0;
|
|
1215
1215
|
let n = e.item.form.disabledFn;
|
|
@@ -2899,7 +2899,7 @@ async function _i(e) {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
var vi = (e) => e.map((e) => {
|
|
2901
2901
|
let t = {};
|
|
2902
|
-
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable, e.params.merge && (t.m = e.params.merge)), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
2902
|
+
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable, e.params.merge && (t.m = e.params.merge), e.params.expandableFn && (t.e = e.params.expandableFn)), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.expandableFn && (t.e = e.params.expandableFn), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
2903
2903
|
i: e.input,
|
|
2904
2904
|
l: e.label ? encodeURIComponent(e.label) : "",
|
|
2905
2905
|
k: e.key.replace(/\s*/g, ""),
|
|
@@ -2974,7 +2974,7 @@ var vi = (e) => e.map((e) => {
|
|
|
2974
2974
|
};
|
|
2975
2975
|
}), yi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
2976
2976
|
let t = {};
|
|
2977
|
-
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x, e.p.m && (t.merge = e.p.m)), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
2977
|
+
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x, e.p.m && (t.merge = e.p.m), e.p.e && (t.expandableFn = e.p.e)), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.e && (t.expandableFn = e.p.e), e.p.f && (t.deleteFn = e.p.f)), {
|
|
2978
2978
|
input: e.i,
|
|
2979
2979
|
label: e.l ? decodeURIComponent(e.l) : "",
|
|
2980
2980
|
key: e.k,
|
|
@@ -3245,7 +3245,8 @@ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3245
3245
|
let s = 0, c = [], l = [], u = {
|
|
3246
3246
|
key: "",
|
|
3247
3247
|
link: "",
|
|
3248
|
-
merge: ""
|
|
3248
|
+
merge: "",
|
|
3249
|
+
expandableFn: ""
|
|
3249
3250
|
}, d = [], p = G(e), m = [], h = [];
|
|
3250
3251
|
for (let e of p) e.input === "group" ? (m.push(...e.params.children), h.push({
|
|
3251
3252
|
title: e.label,
|
|
@@ -3380,11 +3381,13 @@ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3380
3381
|
s.input === "bom" && s.params.expandable && (u = {
|
|
3381
3382
|
key: s.key,
|
|
3382
3383
|
link: "bom",
|
|
3383
|
-
merge: s.params.merge
|
|
3384
|
+
merge: s.params.merge,
|
|
3385
|
+
expandableFn: s.params.expandableFn
|
|
3384
3386
|
}), s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
|
|
3385
3387
|
key: s.key,
|
|
3386
3388
|
link: s.params.link,
|
|
3387
|
-
merge: s.params.merge
|
|
3389
|
+
merge: s.params.merge,
|
|
3390
|
+
expandableFn: s.params.expandableFn
|
|
3388
3391
|
}));
|
|
3389
3392
|
}
|
|
3390
3393
|
let g = [];
|
|
@@ -3434,7 +3437,6 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3434
3437
|
default: () => []
|
|
3435
3438
|
},
|
|
3436
3439
|
item: {
|
|
3437
|
-
required: !0,
|
|
3438
3440
|
type: Object,
|
|
3439
3441
|
default: () => ({})
|
|
3440
3442
|
},
|
|
@@ -4808,24 +4810,34 @@ var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
|
|
|
4808
4810
|
setup(e) {
|
|
4809
4811
|
let t = w(!0), n = w([]), r = w([]), i = w(0), a = w(0);
|
|
4810
4812
|
return y(async () => {
|
|
4811
|
-
if (e.data.
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4813
|
+
if (e.data.link === "bom") {
|
|
4814
|
+
if (e.data.merge) try {
|
|
4815
|
+
let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
|
|
4816
|
+
r.value = await n(e.value, { value: () => e.value }, Z);
|
|
4817
|
+
} catch (e) {
|
|
4818
|
+
q(e);
|
|
4819
|
+
}
|
|
4820
|
+
a.value = 1;
|
|
4821
|
+
} else {
|
|
4822
|
+
if (e.data.merge) try {
|
|
4823
|
+
let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
|
|
4824
|
+
r.value = await n(e.value[`sub_${e.data.key}`], { value: () => e.value }, Z);
|
|
4825
|
+
} catch (e) {
|
|
4826
|
+
q(e);
|
|
4827
|
+
}
|
|
4828
|
+
_i(e.data.link).then(async (e) => {
|
|
4829
|
+
let { tableColumns: r } = await Ti(yi(et.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4830
|
+
...e,
|
|
4831
|
+
sorter: !1,
|
|
4832
|
+
resizable: !1
|
|
4833
|
+
})).filter((e) => e.show);
|
|
4834
|
+
o.forEach((e) => {
|
|
4835
|
+
a += e.width;
|
|
4836
|
+
}), n.value = o, i.value = a, t.value = !1;
|
|
4837
|
+
}).catch(() => {
|
|
4838
|
+
t.value = !1;
|
|
4839
|
+
});
|
|
4816
4840
|
}
|
|
4817
|
-
e.data.link === "bom" ? a.value = 1 : _i(e.data.link).then(async (e) => {
|
|
4818
|
-
let { tableColumns: r } = await Ti(yi(et.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4819
|
-
...e,
|
|
4820
|
-
sorter: !1,
|
|
4821
|
-
resizable: !1
|
|
4822
|
-
})).filter((e) => e.show);
|
|
4823
|
-
o.forEach((e) => {
|
|
4824
|
-
a += e.width;
|
|
4825
|
-
}), n.value = o, i.value = a, t.value = !1;
|
|
4826
|
-
}).catch(() => {
|
|
4827
|
-
t.value = !1;
|
|
4828
|
-
});
|
|
4829
4841
|
}), {
|
|
4830
4842
|
loading: t,
|
|
4831
4843
|
columns: n,
|
|
@@ -5398,6 +5410,14 @@ var $a = d({
|
|
|
5398
5410
|
fixed: "left",
|
|
5399
5411
|
filter: "default",
|
|
5400
5412
|
filterOptionValue: null,
|
|
5413
|
+
expandable: a.expandableFn ? (e) => {
|
|
5414
|
+
try {
|
|
5415
|
+
let t = Function("rowData", a.expandableFn);
|
|
5416
|
+
return console.log(t(e)), t(e);
|
|
5417
|
+
} catch {
|
|
5418
|
+
return !1;
|
|
5419
|
+
}
|
|
5420
|
+
} : !0,
|
|
5401
5421
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => s("Common.expand") }), f(L, { onClick: ze }, { default: () => s("Common.contract") })]),
|
|
5402
5422
|
renderExpand: (e) => f(qa, {
|
|
5403
5423
|
data: a,
|
|
@@ -7857,7 +7877,7 @@ function ac(e, t, n) {
|
|
|
7857
7877
|
}
|
|
7858
7878
|
//#endregion
|
|
7859
7879
|
//#region package.json
|
|
7860
|
-
var oc = "0.1.
|
|
7880
|
+
var oc = "0.1.139", sc;
|
|
7861
7881
|
async function cc() {
|
|
7862
7882
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7863
7883
|
method: "HEAD",
|