vft 0.0.499 → 0.0.501
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.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/es/components/autocomplete/index.d.ts +18 -18
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/es/components/image-viewer/image-viewer.vue2.js +89 -85
- package/es/components/image-viewer/index.d.ts +18 -0
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/select/index.d.ts +15 -15
- package/es/components/select/select.vue.d.ts +15 -15
- package/es/components/select/useSelect.d.ts +12 -12
- package/es/components/super-form/style/css.d.ts +1 -0
- package/es/components/super-form/style/index.d.ts +1 -0
- package/es/components/super-form/super-form-item.vue2.js +360 -325
- package/es/components/super-form/types.d.ts +3 -1
- package/es/components/table/field.js +32 -33
- package/es/components/table/table.vue2.js +51 -49
- package/es/components/table/use/use-data-source.js +166 -143
- package/es/components/table/use/use-loading.js +11 -11
- package/es/components/table/use/use-table.js +7 -6
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tree/index.d.ts +5 -5
- package/es/components/tree/tree.vue.d.ts +2 -2
- package/es/components/tree-select/select.js +24 -24
- package/es/components/tree-select/tree-select-option.js +18 -7
- package/es/components/tree-select/tree-select.vue2.js +28 -26
- package/es/components/tree-select/tree.js +27 -26
- package/es/components/upload/index.d.ts +15 -15
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +1 -0
- package/es/utils/form-register.js +5 -4
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/lib/components/autocomplete/index.d.ts +18 -18
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +18 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/select/index.d.ts +15 -15
- package/lib/components/select/select.vue.d.ts +15 -15
- package/lib/components/select/useSelect.d.ts +12 -12
- package/lib/components/super-form/style/css.d.ts +1 -0
- package/lib/components/super-form/style/index.d.ts +1 -0
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-loading.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tree/index.d.ts +5 -5
- package/lib/components/tree/tree.vue.d.ts +2 -2
- package/lib/components/tree-select/select.cjs +1 -1
- package/lib/components/tree-select/tree-select-option.cjs +1 -1
- package/lib/components/tree-select/tree-select.vue2.cjs +1 -1
- package/lib/components/tree-select/tree.cjs +1 -1
- package/lib/components/upload/index.d.ts +15 -15
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -1
- package/lib/utils/form-register.d.ts +1 -0
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/icon-text.scss +1 -1
- package/theme-style/src/tree-select.scss +8 -0
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-tree-select.css +1 -1
- package/web-types.json +1 -1
|
@@ -19,6 +19,8 @@ import type { SelectV2Props } from 'vft/es/components/select';
|
|
|
19
19
|
import type { SliderProps } from 'vft/es/components/slider/slider.vue';
|
|
20
20
|
import type { TimePickerDefaultProps } from 'vft/es/components/time-picker';
|
|
21
21
|
import type { ToolTipProps } from 'vft/es/components/tooltip';
|
|
22
|
+
import type { TreeProps } from 'vft/es/components/tree/tree.vue';
|
|
23
|
+
import type { TreeSelectProps } from 'vft/es/components/tree-select/tree-select.vue';
|
|
22
24
|
import type { UploadProps } from 'vft/es/components/upload';
|
|
23
25
|
import type { ComponentSize } from 'vft/es/constants';
|
|
24
26
|
import type { Arrayable } from 'vft/es/utils';
|
|
@@ -55,7 +57,7 @@ type FormItemRule = Omit<RuleItem, 'validator'> & Rule & {
|
|
|
55
57
|
} & {
|
|
56
58
|
isNumber?: boolean;
|
|
57
59
|
};
|
|
58
|
-
export type SchemaCompOptions = InputProps | SelectV2Props | RadioGroupProps | CheckboxGroupProps | DatePickerProps | TimePickerDefaultProps | CascaderProps | AutocompleteProps | ColorPickerProps | UploadProps | SliderProps | InputNumberProps | InputTagProps | DividerProps | SearchProps | SwitchProps | {
|
|
60
|
+
export type SchemaCompOptions = InputProps | SelectV2Props | RadioGroupProps | CheckboxGroupProps | DatePickerProps | TimePickerDefaultProps | CascaderProps | AutocompleteProps | ColorPickerProps | UploadProps | SliderProps | InputNumberProps | InputTagProps | DividerProps | SearchProps | SwitchProps | TreeProps | TreeSelectProps | {
|
|
59
61
|
onClear?: Function;
|
|
60
62
|
} | {
|
|
61
63
|
/** 组件异步请求数据 */
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createVNode as r, Fragment as _, isVNode as g } from "vue";
|
|
2
|
-
import { useLoadingDelay as
|
|
2
|
+
import { useLoadingDelay as L } from "@vft/use";
|
|
3
3
|
import { formatToDateTime as d } from "@vft/utils/date";
|
|
4
|
-
import { isNullOrUndefined as
|
|
4
|
+
import { isNullOrUndefined as M } from "@vft/utils";
|
|
5
5
|
import { VftButton as u } from "../button/index.js";
|
|
6
|
-
import { VftPopconfirm as
|
|
6
|
+
import { VftPopconfirm as h } from "../popconfirm/index.js";
|
|
7
7
|
import { VftTag as c } from "../tag/index.js";
|
|
8
8
|
function m(t) {
|
|
9
9
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !g(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const V = {
|
|
12
12
|
type: "seq",
|
|
13
13
|
title: "序号",
|
|
14
14
|
fixed: "left",
|
|
15
15
|
width: 53
|
|
16
|
-
},
|
|
16
|
+
}, W = {
|
|
17
17
|
type: "checkbox",
|
|
18
18
|
title: "",
|
|
19
19
|
minWidth: 60,
|
|
@@ -29,46 +29,46 @@ const N = {
|
|
|
29
29
|
}, O = ({
|
|
30
30
|
format: t = "YYYY-MM-DD",
|
|
31
31
|
field: e = "date",
|
|
32
|
-
title:
|
|
32
|
+
title: o = "时间"
|
|
33
33
|
} = {}) => ({
|
|
34
34
|
minWidth: 100,
|
|
35
35
|
field: e,
|
|
36
|
-
title:
|
|
36
|
+
title: o,
|
|
37
37
|
formatter: ({
|
|
38
|
-
row:
|
|
39
|
-
}) =>
|
|
38
|
+
row: i
|
|
39
|
+
}) => i[e] ? d(i[e], t) : "-"
|
|
40
40
|
}), D = ({
|
|
41
41
|
format: t = "YYYY-MM-DD HH:mm:ss",
|
|
42
42
|
field: e = "date",
|
|
43
|
-
title:
|
|
43
|
+
title: o = "时间"
|
|
44
44
|
} = {}) => ({
|
|
45
45
|
minWidth: 190,
|
|
46
46
|
field: e,
|
|
47
|
-
title:
|
|
47
|
+
title: o,
|
|
48
48
|
formatter: ({
|
|
49
|
-
row:
|
|
50
|
-
}) =>
|
|
49
|
+
row: i
|
|
50
|
+
}) => i[e] ? d(i[e], t) : "-"
|
|
51
51
|
}), P = ({
|
|
52
52
|
format: t = "YYYY-MM-DD HH:mm:ss",
|
|
53
53
|
field: e = "createTime",
|
|
54
|
-
title:
|
|
54
|
+
title: o = "创建时间"
|
|
55
55
|
} = {}) => D({
|
|
56
56
|
format: t,
|
|
57
57
|
field: e,
|
|
58
|
-
title:
|
|
58
|
+
title: o
|
|
59
59
|
}), b = ({
|
|
60
60
|
format: t = "YYYY-MM-DD HH:mm:ss",
|
|
61
61
|
field: e = "updateTime",
|
|
62
|
-
title:
|
|
62
|
+
title: o = "更新时间"
|
|
63
63
|
} = {}) => D({
|
|
64
64
|
format: t,
|
|
65
65
|
field: e,
|
|
66
|
-
title:
|
|
66
|
+
title: o
|
|
67
67
|
}), j = ({
|
|
68
68
|
field: t = "status",
|
|
69
69
|
title: e = "状态",
|
|
70
|
-
normalText:
|
|
71
|
-
disabledText:
|
|
70
|
+
normalText: o = "正常",
|
|
71
|
+
disabledText: i = "禁用",
|
|
72
72
|
strToNumber: l = !0
|
|
73
73
|
} = {}) => ({
|
|
74
74
|
field: t,
|
|
@@ -79,26 +79,25 @@ const N = {
|
|
|
79
79
|
row: a
|
|
80
80
|
}) => {
|
|
81
81
|
let n = a?.[t];
|
|
82
|
-
return
|
|
83
|
-
default: () => [
|
|
82
|
+
return M(n) ? "-" : (l && Number(n) === 0 && (n = !1), n ? r(c, null, m(o) ? o : {
|
|
83
|
+
default: () => [o]
|
|
84
84
|
}) : r(c, {
|
|
85
85
|
type: "danger"
|
|
86
|
-
}, m(
|
|
87
|
-
default: () => [
|
|
86
|
+
}, m(i) ? i : {
|
|
87
|
+
default: () => [i]
|
|
88
88
|
}));
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}), U = ({
|
|
92
92
|
confirmText: t = "确认删除?",
|
|
93
93
|
leftCallback: e,
|
|
94
|
-
rightCallback:
|
|
95
|
-
leftText:
|
|
94
|
+
rightCallback: o,
|
|
95
|
+
leftText: i = "编辑",
|
|
96
96
|
rightText: l = "删除",
|
|
97
97
|
showLeft: a = !0,
|
|
98
98
|
showRight: n = !0
|
|
99
99
|
} = {}) => ({
|
|
100
100
|
title: "操作栏",
|
|
101
|
-
minWidth: 180,
|
|
102
101
|
field: "custom-action",
|
|
103
102
|
fixed: "right",
|
|
104
103
|
slots: {
|
|
@@ -109,8 +108,8 @@ const N = {
|
|
|
109
108
|
loading: p,
|
|
110
109
|
start: E,
|
|
111
110
|
cancel: I
|
|
112
|
-
} =
|
|
113
|
-
E(),
|
|
111
|
+
} = L(), Y = () => {
|
|
112
|
+
E(), o?.(f)?.finally(() => {
|
|
114
113
|
I();
|
|
115
114
|
});
|
|
116
115
|
};
|
|
@@ -120,9 +119,9 @@ const N = {
|
|
|
120
119
|
onClick: (s) => {
|
|
121
120
|
s.stopPropagation(), e?.(f);
|
|
122
121
|
}
|
|
123
|
-
}, m(
|
|
124
|
-
default: () => [
|
|
125
|
-
}) : null, n ? r(
|
|
122
|
+
}, m(i) ? i : {
|
|
123
|
+
default: () => [i]
|
|
124
|
+
}) : null, n ? r(h, {
|
|
126
125
|
width: "150",
|
|
127
126
|
onConfirm: Y,
|
|
128
127
|
title: t
|
|
@@ -143,13 +142,13 @@ const N = {
|
|
|
143
142
|
});
|
|
144
143
|
export {
|
|
145
144
|
U as ACTION_FIELD,
|
|
146
|
-
|
|
145
|
+
W as CHECKED_FIELD,
|
|
147
146
|
P as CREATE_TIME_FIELD,
|
|
148
147
|
O as DATE_FIELD,
|
|
149
148
|
D as DATE_TIME_FIELD,
|
|
150
149
|
S as ID_FIELD,
|
|
151
150
|
k as NAME_FIELD,
|
|
152
|
-
|
|
151
|
+
V as SEQ_FIELD,
|
|
153
152
|
j as STATUS_FIELD,
|
|
154
153
|
b as UPDATE_TIME_FIELD
|
|
155
154
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K, createVNode as i, useAttrs as ue, ref as d, getCurrentInstance as me, computed as
|
|
1
|
+
import { defineComponent as K, createVNode as i, useAttrs as ue, ref as d, getCurrentInstance as me, computed as _, unref as o, watch as pe, nextTick as G, toRaw as he, createElementBlock as Ce, openBlock as k, normalizeClass as be, withCtx as n, createBlock as M, createCommentVNode as S, mergeProps as q, withDirectives as ye, createElementVNode as we, vShow as ve, renderSlot as s, normalizeProps as p, guardReactiveProps as h, createSlots as xe, createTextVNode as ke } from "vue";
|
|
2
2
|
import { VftClientOnly as Se } from "../client-only/index.js";
|
|
3
3
|
import { VftEmpty as Be } from "../empty/index.js";
|
|
4
4
|
import { vLoading as Re } from "../loading/directive.js";
|
|
5
|
-
import { deepMerge as L, isClient as ze, omit as Pe, isFunction as
|
|
5
|
+
import { deepMerge as L, isClient as ze, omit as Pe, isFunction as B } from "@vft/utils";
|
|
6
6
|
import { FormCompEnum as C } from "../../utils/form-register.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
8
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -403,7 +403,7 @@ const Me = K({
|
|
|
403
403
|
expose: X,
|
|
404
404
|
emit: j
|
|
405
405
|
}) {
|
|
406
|
-
const c = j, g = He("table"), Y = ue(), f = d(),
|
|
406
|
+
const c = j, g = He("table"), Y = ue(), f = d(), R = d(), W = d([]), b = d(), y = d(), U = me(), a = _(() => L(U.props, o(b))), {
|
|
407
407
|
getLoading: J,
|
|
408
408
|
setLoading: Q
|
|
409
409
|
} = $e(a), {
|
|
@@ -415,8 +415,8 @@ const Me = K({
|
|
|
415
415
|
setColumns: oe
|
|
416
416
|
} = Ne(a);
|
|
417
417
|
pe(() => Z(), (e) => {
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
G(() => {
|
|
419
|
+
z({
|
|
420
420
|
seqConfig: {
|
|
421
421
|
startIndex: (e - 1) * (u.value?.pageSize || o(a).pageSize || I)
|
|
422
422
|
}
|
|
@@ -425,24 +425,24 @@ const Me = K({
|
|
|
425
425
|
}, {
|
|
426
426
|
immediate: !0
|
|
427
427
|
});
|
|
428
|
-
function
|
|
428
|
+
function z(e) {
|
|
429
429
|
b.value = {
|
|
430
430
|
...o(b),
|
|
431
431
|
...e
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
const {
|
|
435
|
-
getDataSourceRef:
|
|
435
|
+
getDataSourceRef: P,
|
|
436
436
|
handleTableChange: ae,
|
|
437
437
|
reload: v,
|
|
438
438
|
deleteTableDataRecord: te,
|
|
439
439
|
insertTableDataRecord: le,
|
|
440
440
|
updateTableData: re,
|
|
441
441
|
updateTableDataRecord: ne,
|
|
442
|
-
setTableData:
|
|
442
|
+
setTableData: D,
|
|
443
443
|
getDataSource: ce,
|
|
444
|
-
getRawDataSource:
|
|
445
|
-
tableSearch:
|
|
444
|
+
getRawDataSource: H,
|
|
445
|
+
tableSearch: O,
|
|
446
446
|
expandTreeLevel: ie
|
|
447
447
|
} = Ve(a, {
|
|
448
448
|
tableData: W,
|
|
@@ -451,16 +451,16 @@ const Me = K({
|
|
|
451
451
|
setPagination: w,
|
|
452
452
|
getGridRef: () => f.value
|
|
453
453
|
}, c);
|
|
454
|
-
function
|
|
454
|
+
function T(e) {
|
|
455
455
|
e?.pageSize && w({
|
|
456
456
|
currentPage: 1
|
|
457
457
|
}), ae(e), c("change", e);
|
|
458
458
|
const {
|
|
459
459
|
onChange: t
|
|
460
460
|
} = o(a);
|
|
461
|
-
t &&
|
|
461
|
+
t && B(t) && t(e);
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const F = {};
|
|
464
464
|
[
|
|
465
465
|
"update:data",
|
|
466
466
|
"keydown-start",
|
|
@@ -583,16 +583,16 @@ const Me = K({
|
|
|
583
583
|
"zoom"
|
|
584
584
|
].forEach((e) => {
|
|
585
585
|
const t = Ee.camelCase(`on-${e}`);
|
|
586
|
-
|
|
586
|
+
F[t] = (...l) => c(e, ...l);
|
|
587
587
|
});
|
|
588
|
-
const r =
|
|
589
|
-
const e = o(
|
|
588
|
+
const r = _(() => {
|
|
589
|
+
const e = o(P), t = {
|
|
590
590
|
...Y,
|
|
591
591
|
...o(a),
|
|
592
592
|
columns: he(o(ee)),
|
|
593
593
|
loading: o(J),
|
|
594
594
|
data: e,
|
|
595
|
-
...
|
|
595
|
+
...F
|
|
596
596
|
};
|
|
597
597
|
if (ze) {
|
|
598
598
|
(o(a)?.addMaxHeight || o(a)?.maxHeight) && (t.maxHeight = o(a)?.maxHeight ? o(a)?.maxHeight : `${window.innerHeight - o(a)?.extraSysHeight - (a.value?.showPager ? a.value?.pageHeight || 40 : 0)}px`);
|
|
@@ -609,24 +609,24 @@ const Me = K({
|
|
|
609
609
|
query: async () => await v()
|
|
610
610
|
}
|
|
611
611
|
}), t;
|
|
612
|
-
}),
|
|
612
|
+
}), A = {
|
|
613
613
|
setPagination: w,
|
|
614
614
|
emit: c,
|
|
615
|
-
setProps:
|
|
615
|
+
setProps: z,
|
|
616
616
|
reload: v,
|
|
617
617
|
deleteTableDataRecord: te,
|
|
618
618
|
insertTableDataRecord: le,
|
|
619
619
|
updateTableDataRecord: ne,
|
|
620
620
|
updateTableData: re,
|
|
621
|
-
setTableData:
|
|
621
|
+
setTableData: D,
|
|
622
622
|
getDataSource: ce,
|
|
623
|
-
getDataSourceRef:
|
|
623
|
+
getDataSourceRef: P,
|
|
624
624
|
setColumns: oe,
|
|
625
|
-
getRawDataSource:
|
|
626
|
-
tableSearch:
|
|
625
|
+
getRawDataSource: H,
|
|
626
|
+
tableSearch: O,
|
|
627
627
|
expandTreeLevel: ie
|
|
628
628
|
};
|
|
629
|
-
c("register",
|
|
629
|
+
c("register", A);
|
|
630
630
|
const se = {
|
|
631
631
|
field: "_filterTableData",
|
|
632
632
|
label: "",
|
|
@@ -636,12 +636,12 @@ const Me = K({
|
|
|
636
636
|
},
|
|
637
637
|
componentProps: () => ({
|
|
638
638
|
onChange: (e) => {
|
|
639
|
-
|
|
639
|
+
V({
|
|
640
640
|
_filterTableData: e
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
})
|
|
644
|
-
},
|
|
644
|
+
}, E = L({
|
|
645
645
|
schemas: [r.value?.formOptions?.addSearchAllSchema ? se : {}],
|
|
646
646
|
rowProps: {
|
|
647
647
|
justify: "start"
|
|
@@ -656,27 +656,27 @@ const Me = K({
|
|
|
656
656
|
btnText: "搜索"
|
|
657
657
|
},
|
|
658
658
|
actionInline: !0
|
|
659
|
-
}, Pe(r.value?.formOptions, ["showActionForm", "addSearchAllSchema"]), "replace"),
|
|
660
|
-
e &&
|
|
659
|
+
}, Pe(r.value?.formOptions, ["showActionForm", "addSearchAllSchema"]), "replace"), N = (e) => (...t) => {
|
|
660
|
+
e && B(e) && e(...t), G(() => {
|
|
661
661
|
v();
|
|
662
662
|
});
|
|
663
663
|
}, [de] = De({
|
|
664
|
-
...
|
|
665
|
-
schemas: (o(
|
|
664
|
+
...E,
|
|
665
|
+
schemas: (o(E)?.schemas || []).map((e) => {
|
|
666
666
|
if (!o(r)?.formOptions?.autoReloadOnClear)
|
|
667
667
|
return e;
|
|
668
668
|
if (!e.type || e.type === C.Input || e.type === C.Search || e.type === C.Textarea) {
|
|
669
669
|
const {
|
|
670
670
|
componentProps: m
|
|
671
671
|
} = e;
|
|
672
|
-
if (
|
|
672
|
+
if (B(m))
|
|
673
673
|
return {
|
|
674
674
|
...e,
|
|
675
675
|
componentProps: async (x) => {
|
|
676
|
-
const
|
|
676
|
+
const $ = await m(x), fe = $?.onClear;
|
|
677
677
|
return {
|
|
678
|
-
|
|
679
|
-
onClear:
|
|
678
|
+
...$,
|
|
679
|
+
onClear: N(fe)
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
};
|
|
@@ -686,25 +686,25 @@ const Me = K({
|
|
|
686
686
|
...e,
|
|
687
687
|
componentProps: {
|
|
688
688
|
...m,
|
|
689
|
-
onClear:
|
|
689
|
+
onClear: N(x)
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
return e;
|
|
695
695
|
})
|
|
696
|
-
}),
|
|
697
|
-
Reflect.has(e, "_filterTableData") &&
|
|
696
|
+
}), V = (e) => {
|
|
697
|
+
Reflect.has(e, "_filterTableData") && O(e._filterTableData), c("form-submit", e);
|
|
698
698
|
}, ge = () => {
|
|
699
|
-
|
|
699
|
+
D(H()), c("form-reset");
|
|
700
700
|
};
|
|
701
701
|
return setTimeout(() => {
|
|
702
702
|
console.log(f.value, "xGridxGrid");
|
|
703
703
|
}, 1500), X({
|
|
704
704
|
table: f,
|
|
705
705
|
formRef: y,
|
|
706
|
-
pageRef:
|
|
707
|
-
...
|
|
706
|
+
pageRef: R,
|
|
707
|
+
...A
|
|
708
708
|
}), (e, t) => (k(), Ce("div", {
|
|
709
709
|
class: be([o(g).b(), {
|
|
710
710
|
[o(g).is("form-exceed-one-rows")]: y.value?.willExceedOneRow
|
|
@@ -715,12 +715,12 @@ const Me = K({
|
|
|
715
715
|
ref_key: "xGrid",
|
|
716
716
|
ref: f
|
|
717
717
|
}, r.value), {
|
|
718
|
-
toolbarButtons: n(() => [s(e.$slots, "toolbar-left"), r.value?.formOptions?.showActionForm ? (k(),
|
|
718
|
+
toolbarButtons: n(() => [s(e.$slots, "toolbar-left"), r.value?.formOptions?.showActionForm ? (k(), M(o(Fe), {
|
|
719
719
|
key: 0,
|
|
720
720
|
ref_key: "formRef",
|
|
721
721
|
ref: y,
|
|
722
722
|
onRegister: o(de),
|
|
723
|
-
onSubmit:
|
|
723
|
+
onSubmit: V,
|
|
724
724
|
onReset: ge
|
|
725
725
|
}, xe({
|
|
726
726
|
_: 2
|
|
@@ -736,23 +736,25 @@ const Me = K({
|
|
|
736
736
|
name: "submitAfter",
|
|
737
737
|
fn: n((l) => [s(e.$slots, "submitAfter", p(h(l)))]),
|
|
738
738
|
key: "2"
|
|
739
|
-
} : void 0]), 1032, ["onRegister"])) :
|
|
740
|
-
empty: n(() => [s(e.$slots, "empty", {
|
|
739
|
+
} : void 0]), 1032, ["onRegister"])) : S("", !0), s(e.$slots, "toolbar-right")]),
|
|
740
|
+
empty: n(() => [r.value.loading ? S("", !0) : s(e.$slots, "empty", {
|
|
741
|
+
key: 0
|
|
742
|
+
}, () => [i(o(Be), p(h(r.value.emptyCfg)), null, 16)])]),
|
|
741
743
|
loading: n(() => [ye(we("div", null, null, 512), [[ve, r.value.loading], [o(Re), r.value.loadingCfg]])]),
|
|
742
744
|
_: 3
|
|
743
|
-
}, 16), r.value.showPager ? (k(),
|
|
745
|
+
}, 16), r.value.showPager ? (k(), M(o(Oe), q({
|
|
744
746
|
key: 0,
|
|
745
747
|
ref_key: "pageRef",
|
|
746
|
-
ref:
|
|
748
|
+
ref: R
|
|
747
749
|
}, o(u), {
|
|
748
750
|
class: [o(g).e("pager"), o(g).m(`pager-${o(u)?.pagePlacement}`)],
|
|
749
|
-
onCurrentChange: t[0] || (t[0] = (l) =>
|
|
751
|
+
onCurrentChange: t[0] || (t[0] = (l) => T({
|
|
750
752
|
currentPage: l
|
|
751
753
|
})),
|
|
752
|
-
onSizeChange: t[1] || (t[1] = (l) =>
|
|
754
|
+
onSizeChange: t[1] || (t[1] = (l) => T({
|
|
753
755
|
pageSize: l
|
|
754
756
|
}))
|
|
755
|
-
}), null, 16, ["class"])) :
|
|
757
|
+
}), null, 16, ["class"])) : S("", !0)]),
|
|
756
758
|
_: 3
|
|
757
759
|
})], 2));
|
|
758
760
|
}
|