@juzhenfe/page-model 3.16.4 → 3.16.6
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/components/column-filter-tools/index.vue.d.ts +8 -4
- package/dist/components/column-sort-tools/index.vue.d.ts +8 -4
- package/dist/components/line-clamp-tools/index.vue.d.ts +8 -4
- package/dist/components/simple-popover/index.vue.d.ts +8 -4
- package/dist/components/table/components/context-menu/index.vue.d.ts +14 -4
- package/dist/components/table/components/table-column/index.vue.d.ts +9 -4
- package/dist/index.es.js +85 -61
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/types/common.d.ts +52 -7
- package/dist/types/form-item-types/jz-img-upload.d.ts +1 -0
- package/dist/utils/index.d.ts +13 -0
- package/package.json +1 -1
|
@@ -50,15 +50,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
50
50
|
required: false;
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
|
+
zIndex: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
53
57
|
}, {
|
|
54
58
|
BEMSpace: string;
|
|
55
59
|
props: any;
|
|
56
60
|
emit: (event: "closed", ...args: any[]) => void;
|
|
57
|
-
nextZIndex: () => number;
|
|
58
61
|
visible: import("vue").Ref<boolean>;
|
|
59
|
-
isRender: import("vue").Ref<boolean>;
|
|
60
|
-
hideTimer: any;
|
|
61
|
-
triggerType: "element" | "rect";
|
|
62
62
|
currentTriggerElement: HTMLElement;
|
|
63
63
|
popoverRectInfo: import("vue").Ref<any>;
|
|
64
64
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -93,6 +93,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
93
93
|
required: false;
|
|
94
94
|
default: string;
|
|
95
95
|
};
|
|
96
|
+
zIndex: {
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
required: false;
|
|
99
|
+
};
|
|
96
100
|
}>> & {
|
|
97
101
|
onClosed?: (...args: any[]) => any;
|
|
98
102
|
}, {
|
|
@@ -49,15 +49,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
49
49
|
required: false;
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
|
+
zIndex: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
52
56
|
}, {
|
|
53
57
|
BEMSpace: string;
|
|
54
58
|
props: any;
|
|
55
59
|
emit: (event: "closed", ...args: any[]) => void;
|
|
56
|
-
nextZIndex: () => number;
|
|
57
60
|
visible: import("vue").Ref<boolean>;
|
|
58
|
-
isRender: import("vue").Ref<boolean>;
|
|
59
|
-
hideTimer: any;
|
|
60
|
-
triggerType: "element" | "rect";
|
|
61
61
|
currentTriggerElement: HTMLElement;
|
|
62
62
|
popoverRectInfo: import("vue").Ref<any>;
|
|
63
63
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -92,6 +92,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
92
92
|
required: false;
|
|
93
93
|
default: string;
|
|
94
94
|
};
|
|
95
|
+
zIndex: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
required: false;
|
|
98
|
+
};
|
|
95
99
|
}>> & {
|
|
96
100
|
onClosed?: (...args: any[]) => any;
|
|
97
101
|
}, {
|
|
@@ -29,15 +29,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
29
|
required: false;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
+
zIndex: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
32
36
|
}, {
|
|
33
37
|
BEMSpace: string;
|
|
34
38
|
props: any;
|
|
35
39
|
emit: (event: "closed", ...args: any[]) => void;
|
|
36
|
-
nextZIndex: () => number;
|
|
37
40
|
visible: import("vue").Ref<boolean>;
|
|
38
|
-
isRender: import("vue").Ref<boolean>;
|
|
39
|
-
hideTimer: any;
|
|
40
|
-
triggerType: "element" | "rect";
|
|
41
41
|
currentTriggerElement: HTMLElement;
|
|
42
42
|
popoverRectInfo: import("vue").Ref<any>;
|
|
43
43
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -72,6 +72,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
72
72
|
required: false;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
|
+
zIndex: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
75
79
|
}>> & {
|
|
76
80
|
onClosed?: (...args: any[]) => any;
|
|
77
81
|
}, {
|
|
@@ -9,15 +9,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
9
9
|
required: false;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
+
zIndex: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
12
16
|
}, {
|
|
13
17
|
BEMSpace: string;
|
|
14
18
|
props: any;
|
|
15
19
|
emit: (event: "closed", ...args: any[]) => void;
|
|
16
|
-
nextZIndex: () => number;
|
|
17
20
|
visible: import("vue").Ref<boolean>;
|
|
18
|
-
isRender: import("vue").Ref<boolean>;
|
|
19
|
-
hideTimer: any;
|
|
20
|
-
triggerType: "element" | "rect";
|
|
21
21
|
currentTriggerElement: HTMLElement;
|
|
22
22
|
popoverRectInfo: import("vue").Ref<any>;
|
|
23
23
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -52,6 +52,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
52
52
|
required: false;
|
|
53
53
|
default: string;
|
|
54
54
|
};
|
|
55
|
+
zIndex: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
55
59
|
}>> & {
|
|
56
60
|
onClosed?: (...args: any[]) => any;
|
|
57
61
|
}, {
|
|
@@ -20,18 +20,21 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
20
20
|
};
|
|
21
21
|
placement: {
|
|
22
22
|
type: StringConstructor;
|
|
23
|
+
/**
|
|
24
|
+
* 按钮数量
|
|
25
|
+
*/
|
|
23
26
|
required: false;
|
|
24
27
|
default: string;
|
|
25
28
|
};
|
|
29
|
+
zIndex: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
26
33
|
}, {
|
|
27
34
|
BEMSpace: string;
|
|
28
35
|
props: any;
|
|
29
36
|
emit: (event: "closed", ...args: any[]) => void;
|
|
30
|
-
nextZIndex: () => number;
|
|
31
37
|
visible: import("vue").Ref<boolean>;
|
|
32
|
-
isRender: import("vue").Ref<boolean>;
|
|
33
|
-
hideTimer: any;
|
|
34
|
-
triggerType: "element" | "rect";
|
|
35
38
|
currentTriggerElement: HTMLElement;
|
|
36
39
|
popoverRectInfo: import("vue").Ref<any>;
|
|
37
40
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -63,9 +66,16 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
63
66
|
};
|
|
64
67
|
placement: {
|
|
65
68
|
type: StringConstructor;
|
|
69
|
+
/**
|
|
70
|
+
* 按钮数量
|
|
71
|
+
*/
|
|
66
72
|
required: false;
|
|
67
73
|
default: string;
|
|
68
74
|
};
|
|
75
|
+
zIndex: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
69
79
|
}>> & {
|
|
70
80
|
onClosed?: (...args: any[]) => any;
|
|
71
81
|
}, {
|
|
@@ -18,6 +18,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
18
18
|
onCancelEditContent: (row: AnyObject, cellKey: string, restoreKey: string) => void;
|
|
19
19
|
simplePopoverRef: import("vue").Ref<any>;
|
|
20
20
|
filterZoneRef: import("vue").Ref<any>;
|
|
21
|
+
currentShowFilterColumn: import("vue").Ref<PageModel.TableBaseItem<any, any>>;
|
|
21
22
|
showSimplePopover: (element: HTMLElement, column: PageModel.TableBaseItem<any>) => void;
|
|
22
23
|
hideSimplePopover: () => void;
|
|
23
24
|
handleColumnScreen: () => void;
|
|
@@ -163,15 +164,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
163
164
|
required: false;
|
|
164
165
|
default: string;
|
|
165
166
|
};
|
|
167
|
+
zIndex: {
|
|
168
|
+
type: NumberConstructor;
|
|
169
|
+
required: false;
|
|
170
|
+
};
|
|
166
171
|
}, {
|
|
167
172
|
BEMSpace: string;
|
|
168
173
|
props: any;
|
|
169
174
|
emit: (event: "closed", ...args: any[]) => void;
|
|
170
|
-
nextZIndex: () => number;
|
|
171
175
|
visible: import("vue").Ref<boolean>;
|
|
172
|
-
isRender: import("vue").Ref<boolean>;
|
|
173
|
-
hideTimer: any;
|
|
174
|
-
triggerType: "element" | "rect";
|
|
175
176
|
currentTriggerElement: HTMLElement;
|
|
176
177
|
popoverRectInfo: import("vue").Ref<any>;
|
|
177
178
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -206,6 +207,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
206
207
|
required: false;
|
|
207
208
|
default: string;
|
|
208
209
|
};
|
|
210
|
+
zIndex: {
|
|
211
|
+
type: NumberConstructor;
|
|
212
|
+
required: false;
|
|
213
|
+
};
|
|
209
214
|
}>> & {
|
|
210
215
|
onClosed?: (...args: any[]) => any;
|
|
211
216
|
}, {
|
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, createTextVNode, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, Teleport, normalizeStyle, withDirectives, vShow, pushScopeId, popScopeId, resolveDirective,
|
|
7
|
+
import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, createTextVNode, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, Teleport, Transition, normalizeStyle, withDirectives, vShow, pushScopeId, popScopeId, resolveDirective, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide } from "vue";
|
|
8
8
|
import { ElMessage, ElLoading, useZIndex, ElMessageBox } from "element-plus";
|
|
9
9
|
function defineConfig(config) {
|
|
10
10
|
return reactive(config);
|
|
@@ -3692,6 +3692,7 @@ const getPageModelDefaultConfig = () => {
|
|
|
3692
3692
|
showTools: true,
|
|
3693
3693
|
rowClickSelect: false,
|
|
3694
3694
|
columnParamsQueryImmediate: true,
|
|
3695
|
+
exportPageSize: 200,
|
|
3695
3696
|
pagination: {
|
|
3696
3697
|
background: true,
|
|
3697
3698
|
pagerCount: 5
|
|
@@ -5527,37 +5528,15 @@ const _sfc_main$z = defineComponent({
|
|
|
5527
5528
|
...__default__$i,
|
|
5528
5529
|
props: {
|
|
5529
5530
|
width: { default: 200 },
|
|
5530
|
-
placement: { default: "right" }
|
|
5531
|
+
placement: { default: "right" },
|
|
5532
|
+
zIndex: {}
|
|
5531
5533
|
},
|
|
5532
5534
|
emits: ["closed"],
|
|
5533
5535
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
5534
5536
|
const { BEMSpace } = createBEMSpace("simple-popover");
|
|
5535
5537
|
const props = __props;
|
|
5536
5538
|
const emit = __emit;
|
|
5537
|
-
const { nextZIndex } = useZIndex();
|
|
5538
5539
|
const visible = ref(false);
|
|
5539
|
-
const isRender = ref(false);
|
|
5540
|
-
let hideTimer = null;
|
|
5541
|
-
watch(
|
|
5542
|
-
() => visible.value,
|
|
5543
|
-
(val) => {
|
|
5544
|
-
if (val) {
|
|
5545
|
-
isRender.value = true;
|
|
5546
|
-
if (hideTimer) {
|
|
5547
|
-
clearTimeout(hideTimer);
|
|
5548
|
-
hideTimer = null;
|
|
5549
|
-
}
|
|
5550
|
-
} else {
|
|
5551
|
-
hideTimer = setTimeout(() => {
|
|
5552
|
-
isRender.value = false;
|
|
5553
|
-
}, 300);
|
|
5554
|
-
}
|
|
5555
|
-
},
|
|
5556
|
-
{
|
|
5557
|
-
deep: true,
|
|
5558
|
-
immediate: true
|
|
5559
|
-
}
|
|
5560
|
-
);
|
|
5561
5540
|
let currentTriggerElement = null;
|
|
5562
5541
|
const popoverRectInfo = ref({});
|
|
5563
5542
|
const getPopoverTriggerElementRectInfo = (element) => {
|
|
@@ -5646,18 +5625,13 @@ const _sfc_main$z = defineComponent({
|
|
|
5646
5625
|
emit("closed");
|
|
5647
5626
|
};
|
|
5648
5627
|
const show = (element) => {
|
|
5628
|
+
const { nextZIndex } = useZIndex();
|
|
5649
5629
|
if (element instanceof DOMRect) {
|
|
5650
5630
|
currentTriggerElement = null;
|
|
5651
5631
|
popoverRectInfo.value = element;
|
|
5652
5632
|
if (visible.value) {
|
|
5653
5633
|
hide();
|
|
5654
5634
|
}
|
|
5655
|
-
visible.value = true;
|
|
5656
|
-
setTimeout(() => {
|
|
5657
|
-
popoverRef.value.style.zIndex = nextZIndex();
|
|
5658
|
-
getPopoverElementRect();
|
|
5659
|
-
bindEvent();
|
|
5660
|
-
}, 0);
|
|
5661
5635
|
} else {
|
|
5662
5636
|
if (visible.value) {
|
|
5663
5637
|
if (currentTriggerElement === element) {
|
|
@@ -5668,13 +5642,14 @@ const _sfc_main$z = defineComponent({
|
|
|
5668
5642
|
}
|
|
5669
5643
|
currentTriggerElement = element;
|
|
5670
5644
|
getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5671
|
-
visible.value = true;
|
|
5672
|
-
setTimeout(() => {
|
|
5673
|
-
popoverRef.value.style.zIndex = nextZIndex();
|
|
5674
|
-
getPopoverElementRect();
|
|
5675
|
-
bindEvent();
|
|
5676
|
-
}, 0);
|
|
5677
5645
|
}
|
|
5646
|
+
visible.value = true;
|
|
5647
|
+
setTimeout(() => {
|
|
5648
|
+
var _a;
|
|
5649
|
+
popoverRef.value.style.zIndex = (_a = props.zIndex) != null ? _a : nextZIndex();
|
|
5650
|
+
getPopoverElementRect();
|
|
5651
|
+
bindEvent();
|
|
5652
|
+
}, 0);
|
|
5678
5653
|
};
|
|
5679
5654
|
__expose({
|
|
5680
5655
|
show,
|
|
@@ -5682,22 +5657,27 @@ const _sfc_main$z = defineComponent({
|
|
|
5682
5657
|
});
|
|
5683
5658
|
return (_ctx, _cache) => {
|
|
5684
5659
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5660
|
+
createVNode(Transition, { name: "el-fade-in" }, {
|
|
5661
|
+
default: withCtx(() => [
|
|
5662
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5663
|
+
key: 0,
|
|
5664
|
+
ref_key: "popoverRef",
|
|
5665
|
+
ref: popoverRef,
|
|
5666
|
+
class: normalizeClass([unref(BEMSpace)]),
|
|
5667
|
+
style: normalizeStyle({
|
|
5668
|
+
...popoverStyle.value
|
|
5669
|
+
})
|
|
5670
|
+
}, [
|
|
5671
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5672
|
+
], 6)) : createCommentVNode("", true)
|
|
5673
|
+
]),
|
|
5674
|
+
_: 3
|
|
5675
|
+
})
|
|
5696
5676
|
]);
|
|
5697
5677
|
};
|
|
5698
5678
|
}
|
|
5699
5679
|
});
|
|
5700
|
-
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
5680
|
+
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-3e2ba5be"]]);
|
|
5701
5681
|
var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
|
|
5702
5682
|
FilterItemTypeEnum2["\u6587\u5B57"] = "string";
|
|
5703
5683
|
FilterItemTypeEnum2["\u6570\u5B57"] = "number";
|
|
@@ -6443,9 +6423,11 @@ const _sfc_main$x = defineComponent({
|
|
|
6443
6423
|
};
|
|
6444
6424
|
const simplePopoverRef = ref();
|
|
6445
6425
|
const filterZoneRef = ref();
|
|
6426
|
+
const currentShowFilterColumn = ref();
|
|
6446
6427
|
const showSimplePopover = (element, column) => {
|
|
6447
6428
|
var _a;
|
|
6448
6429
|
(_a = simplePopoverRef.value) == null ? void 0 : _a.show(element);
|
|
6430
|
+
currentShowFilterColumn.value = column;
|
|
6449
6431
|
nextTick(() => {
|
|
6450
6432
|
filterZoneRef.value.show(column);
|
|
6451
6433
|
});
|
|
@@ -6501,7 +6483,10 @@ const _sfc_main$x = defineComponent({
|
|
|
6501
6483
|
key: 2,
|
|
6502
6484
|
class: normalizeClass([
|
|
6503
6485
|
"el-table__header-filter",
|
|
6504
|
-
{
|
|
6486
|
+
{
|
|
6487
|
+
focus: currentShowFilterColumn.value && currentShowFilterColumn.value._columnKey === column._columnKey,
|
|
6488
|
+
active: tableManager.value.columnParamsKey[column.prop]
|
|
6489
|
+
}
|
|
6505
6490
|
]),
|
|
6506
6491
|
title: "\u8BBE\u7F6E\u7B5B\u9009",
|
|
6507
6492
|
style: normalizeStyle({
|
|
@@ -6610,7 +6595,8 @@ const _sfc_main$x = defineComponent({
|
|
|
6610
6595
|
createVNode(SimplePopover, {
|
|
6611
6596
|
ref_key: "simplePopoverRef",
|
|
6612
6597
|
ref: simplePopoverRef,
|
|
6613
|
-
width: 320
|
|
6598
|
+
width: 320,
|
|
6599
|
+
onClosed: _cache[0] || (_cache[0] = ($event) => currentShowFilterColumn.value = null)
|
|
6614
6600
|
}, {
|
|
6615
6601
|
default: withCtx(() => [
|
|
6616
6602
|
createVNode(FilterZone$1, {
|
|
@@ -8320,7 +8306,7 @@ const _sfc_main$t = defineComponent({
|
|
|
8320
8306
|
});
|
|
8321
8307
|
var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5b551558"]]);
|
|
8322
8308
|
var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
|
|
8323
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
8309
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-51c518c5"), n = n(), popScopeId(), n);
|
|
8324
8310
|
const _hoisted_1$d = { class: "export-columns" };
|
|
8325
8311
|
const _hoisted_2$5 = {
|
|
8326
8312
|
key: 0,
|
|
@@ -8455,7 +8441,7 @@ const _sfc_main$s = defineComponent({
|
|
|
8455
8441
|
}
|
|
8456
8442
|
const hasPagination = ((_c = tableManager2.table.pagination) == null ? void 0 : _c.show) !== false;
|
|
8457
8443
|
const reqPageSize = formData.pageSize;
|
|
8458
|
-
const exportPageSize = !hasPagination ? reqPageSize : config.table.exportPageSize
|
|
8444
|
+
const exportPageSize = !hasPagination ? reqPageSize : config.table.exportPageSize;
|
|
8459
8445
|
const perTimePageSize = Math.min(reqPageSize, exportPageSize);
|
|
8460
8446
|
const requestTimes = Math.ceil(reqPageSize / perTimePageSize);
|
|
8461
8447
|
const lastRequestPageSize = reqPageSize - (requestTimes - 1) * perTimePageSize;
|
|
@@ -8517,6 +8503,7 @@ const _sfc_main$s = defineComponent({
|
|
|
8517
8503
|
exportEls
|
|
8518
8504
|
});
|
|
8519
8505
|
} catch (error) {
|
|
8506
|
+
console.log(error);
|
|
8520
8507
|
ElMessage.warning("\u6570\u636E\u83B7\u53D6\u5931\u8D25!");
|
|
8521
8508
|
} finally {
|
|
8522
8509
|
showProgress.value = false;
|
|
@@ -8548,6 +8535,20 @@ const _sfc_main$s = defineComponent({
|
|
|
8548
8535
|
}
|
|
8549
8536
|
}
|
|
8550
8537
|
};
|
|
8538
|
+
const onBeforeClose = async (done) => {
|
|
8539
|
+
if (apiLoadingProgress.value != null) {
|
|
8540
|
+
await ElMessageBox.confirm("\u6587\u4EF6\u6B63\u5728\u5BFC\u51FA\u4E2D\uFF0C\u662F\u5426\u53D6\u6D88\u5BFC\u51FA\uFF1F", "\u63D0\u793A", {
|
|
8541
|
+
type: "warning"
|
|
8542
|
+
});
|
|
8543
|
+
done();
|
|
8544
|
+
} else {
|
|
8545
|
+
done();
|
|
8546
|
+
}
|
|
8547
|
+
};
|
|
8548
|
+
const handleCancel = () => {
|
|
8549
|
+
const hide = () => visible.value = false;
|
|
8550
|
+
onBeforeClose(hide);
|
|
8551
|
+
};
|
|
8551
8552
|
const show = (data) => {
|
|
8552
8553
|
visible.value = true;
|
|
8553
8554
|
renderdEls.value = data.els;
|
|
@@ -8570,6 +8571,7 @@ const _sfc_main$s = defineComponent({
|
|
|
8570
8571
|
stopExportLoadingTextTimer();
|
|
8571
8572
|
tableManager = null;
|
|
8572
8573
|
cancelFn && cancelFn();
|
|
8574
|
+
cancelFn = null;
|
|
8573
8575
|
emit("closed");
|
|
8574
8576
|
};
|
|
8575
8577
|
__expose({
|
|
@@ -8589,14 +8591,13 @@ const _sfc_main$s = defineComponent({
|
|
|
8589
8591
|
const _directive_loading = resolveDirective("loading");
|
|
8590
8592
|
return openBlock(), createBlock(_sfc_main$D, {
|
|
8591
8593
|
modelValue: visible.value,
|
|
8592
|
-
"onUpdate:modelValue": _cache[
|
|
8594
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
|
|
8593
8595
|
title: "\u5BFC\u51FA\u8868\u683C\u6570\u636E",
|
|
8594
8596
|
width: "700px",
|
|
8595
8597
|
"dialog-props": {
|
|
8596
8598
|
appendToBody: true,
|
|
8597
8599
|
destroyOnClose: true,
|
|
8598
|
-
|
|
8599
|
-
closeOnPressEscape: false
|
|
8600
|
+
beforeClose: onBeforeClose
|
|
8600
8601
|
},
|
|
8601
8602
|
"dialog-events": {
|
|
8602
8603
|
closed: onClosed
|
|
@@ -8607,7 +8608,7 @@ const _sfc_main$s = defineComponent({
|
|
|
8607
8608
|
createVNode(_component_el_button, {
|
|
8608
8609
|
disabled: libLoading.value,
|
|
8609
8610
|
type: "info",
|
|
8610
|
-
onClick:
|
|
8611
|
+
onClick: handleCancel
|
|
8611
8612
|
}, {
|
|
8612
8613
|
default: withCtx(() => [
|
|
8613
8614
|
createTextVNode("\u53D6\u6D88")
|
|
@@ -8763,11 +8764,11 @@ const _sfc_main$s = defineComponent({
|
|
|
8763
8764
|
])) : createCommentVNode("", true)
|
|
8764
8765
|
]),
|
|
8765
8766
|
_: 1
|
|
8766
|
-
}, 8, ["modelValue", "dialog-events"]);
|
|
8767
|
+
}, 8, ["modelValue", "dialog-props", "dialog-events"]);
|
|
8767
8768
|
};
|
|
8768
8769
|
}
|
|
8769
8770
|
});
|
|
8770
|
-
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
8771
|
+
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-51c518c5"]]);
|
|
8771
8772
|
const SAVE_NAME$2 = "table-columns";
|
|
8772
8773
|
const columnsSaver$1 = new ConfigSaver(SAVE_NAME$2);
|
|
8773
8774
|
const saveTableColumns = columnsSaver$1.setContents.bind(columnsSaver$1);
|
|
@@ -10786,6 +10787,8 @@ const _sfc_main$g = defineComponent({
|
|
|
10786
10787
|
showFormClumnTool
|
|
10787
10788
|
});
|
|
10788
10789
|
return (_ctx, _cache) => {
|
|
10790
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
10791
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
10789
10792
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
10790
10793
|
const _component_el_form = resolveComponent("el-form");
|
|
10791
10794
|
return openBlock(), createBlock(_component_el_form, mergeProps({
|
|
@@ -10808,6 +10811,27 @@ const _sfc_main$g = defineComponent({
|
|
|
10808
10811
|
label: item.userLabel || item.label,
|
|
10809
10812
|
prop: item.prop
|
|
10810
10813
|
}), {
|
|
10814
|
+
label: withCtx(({ label }) => [
|
|
10815
|
+
createElementVNode("span", null, toDisplayString(label), 1),
|
|
10816
|
+
item.helpTextAsTooltip ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
10817
|
+
key: 0,
|
|
10818
|
+
effect: "dark",
|
|
10819
|
+
content: renderDeText(item.helpText, formManager.formData),
|
|
10820
|
+
placement: "top"
|
|
10821
|
+
}, {
|
|
10822
|
+
default: withCtx(() => [
|
|
10823
|
+
createVNode(_component_el_icon, {
|
|
10824
|
+
class: normalizeClass(unref(createBEMName)("help-text-icon"))
|
|
10825
|
+
}, {
|
|
10826
|
+
default: withCtx(() => [
|
|
10827
|
+
createVNode(unref(questionFilled))
|
|
10828
|
+
]),
|
|
10829
|
+
_: 1
|
|
10830
|
+
}, 8, ["class"])
|
|
10831
|
+
]),
|
|
10832
|
+
_: 2
|
|
10833
|
+
}, 1032, ["content"])) : createCommentVNode("", true)
|
|
10834
|
+
]),
|
|
10811
10835
|
default: withCtx(() => [
|
|
10812
10836
|
createElementVNode("div", {
|
|
10813
10837
|
class: normalizeClass(unref(createBEMName)("content"))
|
|
@@ -10835,7 +10859,7 @@ const _sfc_main$g = defineComponent({
|
|
|
10835
10859
|
class: normalizeClass(unref(createBEMName)("suffix"))
|
|
10836
10860
|
}, toDisplayString(renderDeText(item.suffix, formManager.formData)), 3)) : createCommentVNode("", true)
|
|
10837
10861
|
], 2),
|
|
10838
|
-
item.helpText ? (openBlock(), createElementBlock("div", {
|
|
10862
|
+
item.helpText && !item.helpTextAsTooltip ? (openBlock(), createElementBlock("div", {
|
|
10839
10863
|
key: 0,
|
|
10840
10864
|
class: normalizeClass(unref(createBEMName)("help-text"))
|
|
10841
10865
|
}, [
|
|
@@ -14626,7 +14650,7 @@ const defineEditableTable = function(config) {
|
|
|
14626
14650
|
};
|
|
14627
14651
|
var iconfont = "";
|
|
14628
14652
|
const name = "@juzhenfe/page-model";
|
|
14629
|
-
const version = "3.16.
|
|
14653
|
+
const version = "3.16.6";
|
|
14630
14654
|
const types = "dist/main.d.ts";
|
|
14631
14655
|
const main = "dist/index.umd.js";
|
|
14632
14656
|
const keywords = [
|