vft 0.0.67 → 0.0.70
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/avatar/avatar.vue.d.ts +2 -2
- package/es/components/avatar/index.d.ts +2 -2
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/checkbox/checkbox-button.vue.d.ts +2 -2
- package/es/components/checkbox/checkbox-group.vue.d.ts +2 -2
- package/es/components/checkbox/checkbox.vue.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +10 -10
- package/es/components/color-picker/color-picker.vue.d.ts +2 -2
- package/es/components/color-picker/index.d.ts +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +1 -1
- package/es/components/form/form-item.vue.d.ts +3 -3
- package/es/components/form/form.vue.d.ts +2 -2
- package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/form/index.d.ts +8 -8
- package/es/components/input/index.d.ts +2 -2
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/radio-button.vue.d.ts +2 -2
- package/es/components/radio/radio-group.vue.d.ts +2 -2
- package/es/components/radio/radio.vue.d.ts +2 -2
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/select-v2/defaults.d.ts +1 -1
- package/es/components/select-v2/index.d.ts +8 -8
- package/es/components/select-v2/select.vue.d.ts +4 -4
- package/es/components/select-v2/useSelect.d.ts +2 -2
- package/es/components/switch/index.d.ts +2 -2
- package/es/components/switch/switch.vue.d.ts +2 -2
- package/es/components/table/table.vue.d.ts +9 -25
- package/es/components/table/table.vue2.js +141 -94
- package/es/components/tabs/tabs.vue2.js +22 -19
- package/es/components/tabs/types.d.ts +22 -21
- package/es/hooks/use-size/index.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/avatar/avatar.vue.d.ts +2 -2
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/checkbox/checkbox-button.vue.d.ts +2 -2
- package/lib/components/checkbox/checkbox-group.vue.d.ts +2 -2
- package/lib/components/checkbox/checkbox.vue.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +10 -10
- package/lib/components/color-picker/color-picker.vue.d.ts +2 -2
- package/lib/components/color-picker/index.d.ts +2 -2
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +1 -1
- package/lib/components/form/form-item.vue.d.ts +3 -3
- package/lib/components/form/form.vue.d.ts +2 -2
- package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/form/index.d.ts +8 -8
- package/lib/components/input/index.d.ts +2 -2
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/radio-group.vue.d.ts +2 -2
- package/lib/components/radio/radio.vue.d.ts +2 -2
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/select-v2/defaults.d.ts +1 -1
- package/lib/components/select-v2/index.d.ts +8 -8
- package/lib/components/select-v2/select.vue.d.ts +4 -4
- package/lib/components/select-v2/useSelect.d.ts +2 -2
- package/lib/components/switch/index.d.ts +2 -2
- package/lib/components/switch/switch.vue.d.ts +2 -2
- package/lib/components/table/table.vue.d.ts +9 -25
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tabs/types.d.ts +22 -21
- package/lib/hooks/use-size/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +4 -6
- package/theme-style/index.css +1 -1
- package/theme-style/src/tabs.scss +15 -13
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -79,7 +79,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
79
79
|
};
|
|
80
80
|
remote: BooleanConstructor;
|
|
81
81
|
size: {
|
|
82
|
-
type: import("vue").PropType<"" | "
|
|
82
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
83
83
|
};
|
|
84
84
|
valueKey: {
|
|
85
85
|
type: StringConstructor;
|
|
@@ -100,7 +100,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
modelValue: import("vue").ComputedRef<any>;
|
|
103
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
103
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
104
104
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
105
105
|
expanded: import("vue").Ref<boolean>;
|
|
106
106
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -115,7 +115,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
115
115
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
116
116
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
117
117
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
118
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
118
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
119
119
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
120
120
|
states: {
|
|
121
121
|
inputValue: string;
|
|
@@ -955,7 +955,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
955
955
|
};
|
|
956
956
|
remote: BooleanConstructor;
|
|
957
957
|
size: {
|
|
958
|
-
type: import("vue").PropType<"" | "
|
|
958
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
959
959
|
};
|
|
960
960
|
valueKey: {
|
|
961
961
|
type: StringConstructor;
|
|
@@ -1091,7 +1091,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1091
1091
|
};
|
|
1092
1092
|
remote: BooleanConstructor;
|
|
1093
1093
|
size: {
|
|
1094
|
-
type: import("vue").PropType<"" | "
|
|
1094
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
1095
1095
|
};
|
|
1096
1096
|
valueKey: {
|
|
1097
1097
|
type: StringConstructor;
|
|
@@ -1112,7 +1112,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}, {
|
|
1114
1114
|
modelValue: import("vue").ComputedRef<any>;
|
|
1115
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
1115
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
1116
1116
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
1117
1117
|
expanded: import("vue").Ref<boolean>;
|
|
1118
1118
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -1127,7 +1127,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1127
1127
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
1128
1128
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
1129
1129
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
1130
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
1130
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
1131
1131
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
1132
1132
|
states: {
|
|
1133
1133
|
inputValue: string;
|
|
@@ -1967,7 +1967,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1967
1967
|
};
|
|
1968
1968
|
remote: BooleanConstructor;
|
|
1969
1969
|
size: {
|
|
1970
|
-
type: import("vue").PropType<"" | "
|
|
1970
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
1971
1971
|
};
|
|
1972
1972
|
valueKey: {
|
|
1973
1973
|
type: StringConstructor;
|
|
@@ -78,7 +78,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
78
78
|
};
|
|
79
79
|
remote: BooleanConstructor;
|
|
80
80
|
size: {
|
|
81
|
-
type: import("vue").PropType<"" | "
|
|
81
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
82
82
|
};
|
|
83
83
|
valueKey: {
|
|
84
84
|
type: StringConstructor;
|
|
@@ -99,7 +99,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
99
99
|
};
|
|
100
100
|
}, {
|
|
101
101
|
modelValue: import("vue").ComputedRef<any>;
|
|
102
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
102
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
103
103
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
104
104
|
expanded: import("vue").Ref<boolean>;
|
|
105
105
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -114,7 +114,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
114
114
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
115
115
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
116
116
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
117
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
117
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
118
118
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
119
119
|
states: {
|
|
120
120
|
inputValue: string;
|
|
@@ -954,7 +954,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
954
954
|
};
|
|
955
955
|
remote: BooleanConstructor;
|
|
956
956
|
size: {
|
|
957
|
-
type: import("vue").PropType<"" | "
|
|
957
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
958
958
|
};
|
|
959
959
|
valueKey: {
|
|
960
960
|
type: StringConstructor;
|
|
@@ -3,7 +3,7 @@ import type { SelectProps } from './defaults';
|
|
|
3
3
|
import type { CSSProperties, ExtractPropTypes } from 'vue';
|
|
4
4
|
import type { Option } from './select.types';
|
|
5
5
|
declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any) => {
|
|
6
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
6
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
7
7
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
8
8
|
expanded: import("vue").Ref<boolean>;
|
|
9
9
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -18,7 +18,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
18
18
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
19
19
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
20
20
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
21
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
21
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
22
22
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
23
23
|
states: {
|
|
24
24
|
inputValue: string;
|
|
@@ -84,7 +84,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
84
84
|
required: false;
|
|
85
85
|
};
|
|
86
86
|
size: {
|
|
87
|
-
type: import("vue").PropType<"" | "
|
|
87
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
88
88
|
required: false;
|
|
89
89
|
};
|
|
90
90
|
tabindex: {
|
|
@@ -180,7 +180,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
180
180
|
required: false;
|
|
181
181
|
};
|
|
182
182
|
size: {
|
|
183
|
-
type: import("vue").PropType<"" | "
|
|
183
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
184
184
|
required: false;
|
|
185
185
|
};
|
|
186
186
|
tabindex: {
|
|
@@ -110,7 +110,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
110
110
|
required: false;
|
|
111
111
|
};
|
|
112
112
|
size: {
|
|
113
|
-
type: __PropType<"" | "
|
|
113
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
114
114
|
required: false;
|
|
115
115
|
};
|
|
116
116
|
tabindex: {
|
|
@@ -212,7 +212,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
212
212
|
required: false;
|
|
213
213
|
};
|
|
214
214
|
size: {
|
|
215
|
-
type: __PropType<"" | "
|
|
215
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
216
216
|
required: false;
|
|
217
217
|
};
|
|
218
218
|
tabindex: {
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { type PaginationProps } from 'vft/es/components/pagination';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDefaultSort, TableConfigProps } from './type';
|
|
4
4
|
interface stickyOption {
|
|
5
5
|
offsetTop: number;
|
|
6
6
|
getContainer?: HTMLElement;
|
|
7
7
|
}
|
|
8
|
-
export interface TableProps {
|
|
9
|
-
/** 最大高度,设置后自动开启虚拟滚动 */
|
|
10
|
-
maxHeight?: number;
|
|
11
|
-
/** 列配置项 */
|
|
12
|
-
columns: IColumnsOption[];
|
|
13
|
-
/** 表格数据 */
|
|
14
|
-
tableData: any[];
|
|
15
|
-
/** 是否在加载中 */
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
/** 表格高度 */
|
|
18
|
-
height?: Numberish;
|
|
19
|
-
/** 分页页数 */
|
|
20
|
-
pageSize?: number;
|
|
21
|
-
/** 总数 */
|
|
22
|
-
total?: number;
|
|
23
|
-
/** 默认排序 */
|
|
24
|
-
defaultSort?: IDefaultSort;
|
|
25
|
-
/** 表格配置 */
|
|
26
|
-
tableConfig?: TableConfigProps;
|
|
27
|
-
/** 滚动条是否固定在底部 */
|
|
28
|
-
sticky?: boolean | stickyOption;
|
|
29
|
-
pagePlacement?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
30
|
-
pageOptions: Partial<PaginationProps>;
|
|
31
|
-
}
|
|
32
8
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
33
9
|
maxHeight: {
|
|
34
10
|
type: __PropType<number | undefined>;
|
|
@@ -54,6 +30,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
54
30
|
type: __PropType<number | undefined>;
|
|
55
31
|
required: false;
|
|
56
32
|
};
|
|
33
|
+
pageNum: {
|
|
34
|
+
type: __PropType<number | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
57
37
|
total: {
|
|
58
38
|
type: __PropType<number | undefined>;
|
|
59
39
|
required: false;
|
|
@@ -105,6 +85,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
105
85
|
type: __PropType<number | undefined>;
|
|
106
86
|
required: false;
|
|
107
87
|
};
|
|
88
|
+
pageNum: {
|
|
89
|
+
type: __PropType<number | undefined>;
|
|
90
|
+
required: false;
|
|
91
|
+
};
|
|
108
92
|
total: {
|
|
109
93
|
type: __PropType<number | undefined>;
|
|
110
94
|
required: false;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VftEmpty as
|
|
3
|
-
import { VftPagination as
|
|
4
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as W, useAttrs as U, ref as d, computed as x, watch as w, createVNode as y, resolveComponent as L, nextTick as Z, reactive as _, onMounted as ee, openBlock as S, createElementBlock as te, normalizeClass as k, unref as a, createBlock as O, mergeProps as N, createCommentVNode as D, createSlots as le, withCtx as P, withDirectives as ne, createElementVNode as T, vShow as ae } from "vue";
|
|
2
|
+
import { VftEmpty as oe } from "../empty/index.js";
|
|
3
|
+
import { VftPagination as I } from "../pagination/index.js";
|
|
4
|
+
import { useNamespace as re } from "../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.js";
|
|
8
|
-
import { useDebounceFn as
|
|
8
|
+
import { useDebounceFn as ie, useResizeObserver as ce } from "@vueuse/core";
|
|
9
9
|
import "@vft/utils";
|
|
10
10
|
import "../../utils/ns-cover.js";
|
|
11
11
|
import "@vue/reactivity";
|
|
12
12
|
import "@vue/shared";
|
|
13
|
-
import
|
|
14
|
-
import { EmptyEnum as
|
|
15
|
-
const
|
|
13
|
+
import E from "vxe-table";
|
|
14
|
+
import { EmptyEnum as se } from "../empty/constants.js";
|
|
15
|
+
const c = (
|
|
16
16
|
/* hoist-static*/
|
|
17
|
-
|
|
18
|
-
),
|
|
19
|
-
name:
|
|
20
|
-
}),
|
|
21
|
-
...
|
|
17
|
+
re("table")
|
|
18
|
+
), ue = W({
|
|
19
|
+
name: c.b()
|
|
20
|
+
}), Ne = /* @__PURE__ */ W({
|
|
21
|
+
...ue,
|
|
22
22
|
props: {
|
|
23
23
|
maxHeight: null,
|
|
24
24
|
columns: null,
|
|
@@ -33,6 +33,9 @@ const s = (
|
|
|
33
33
|
pageSize: {
|
|
34
34
|
default: 50
|
|
35
35
|
},
|
|
36
|
+
pageNum: {
|
|
37
|
+
default: 1
|
|
38
|
+
},
|
|
36
39
|
total: null,
|
|
37
40
|
defaultSort: {
|
|
38
41
|
default: {}
|
|
@@ -50,39 +53,85 @@ const s = (
|
|
|
50
53
|
},
|
|
51
54
|
emits: ["page-change", "sort-change", "update:pageNum"],
|
|
52
55
|
setup(t, {
|
|
53
|
-
expose:
|
|
54
|
-
emit:
|
|
56
|
+
expose: q,
|
|
57
|
+
emit: h
|
|
55
58
|
}) {
|
|
56
|
-
const V =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
const V = U(), A = d(0), s = d(), $ = ie(() => M(), 120), z = x(() => t.pagePlacement.startsWith("bottom"));
|
|
60
|
+
w([() => t.loading, () => t.tableData, () => t.columns], () => {
|
|
61
|
+
$();
|
|
59
62
|
}, {
|
|
60
63
|
immediate: !0
|
|
61
64
|
});
|
|
62
|
-
function
|
|
63
|
-
|
|
65
|
+
function M() {
|
|
66
|
+
v.data = t.tableData, H(t.pageNum);
|
|
64
67
|
}
|
|
65
|
-
|
|
68
|
+
E.renderer.add("Encrypt", {
|
|
69
|
+
// 加密模板
|
|
70
|
+
renderDefault(e, l) {
|
|
71
|
+
const {
|
|
72
|
+
row: n,
|
|
73
|
+
column: o
|
|
74
|
+
} = l;
|
|
75
|
+
return y("span", {
|
|
76
|
+
class: "line-clamp",
|
|
77
|
+
innerHTML: n[o.field] || "-"
|
|
78
|
+
}, null);
|
|
79
|
+
}
|
|
80
|
+
}), E.renderer.add("Clamp", {
|
|
81
|
+
// 展开收起
|
|
82
|
+
renderDefault(e, l) {
|
|
83
|
+
const {
|
|
84
|
+
row: n,
|
|
85
|
+
column: o
|
|
86
|
+
} = l;
|
|
87
|
+
return o.showOverflow = null, y(L("vftClampToggle"), {
|
|
88
|
+
autoResize: !0,
|
|
89
|
+
maxLines: 2,
|
|
90
|
+
text: n[o.field],
|
|
91
|
+
title: n[o.field],
|
|
92
|
+
toggleText: ["展开", "收起"],
|
|
93
|
+
onClampChange: (i) => X(l)
|
|
94
|
+
}, null);
|
|
95
|
+
}
|
|
96
|
+
}), E.formats.mixin({
|
|
66
97
|
showEmpty({
|
|
67
98
|
cellValue: e
|
|
68
99
|
}) {
|
|
69
100
|
return e || "-";
|
|
70
101
|
}
|
|
71
102
|
});
|
|
72
|
-
|
|
103
|
+
function G(e) {
|
|
104
|
+
h("page-change", e), h("update:pageNum", e);
|
|
105
|
+
}
|
|
106
|
+
const X = (e, l) => {
|
|
107
|
+
const {
|
|
108
|
+
rowid: n
|
|
109
|
+
} = e;
|
|
110
|
+
Z(() => {
|
|
111
|
+
const o = document.getElementsByClassName("vxe-body--row"), i = [];
|
|
112
|
+
for (var u = 0; u < o.length; u++)
|
|
113
|
+
o[u].getAttribute("rowid") === n && i.push(o[u]);
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
if (i.length > 1) {
|
|
116
|
+
const g = i[0].clientHeight, Q = i[1].clientHeight;
|
|
117
|
+
g !== Q && (i[1].style.height = g + "px");
|
|
118
|
+
}
|
|
119
|
+
}, 1);
|
|
120
|
+
});
|
|
121
|
+
}, j = x(() => t.columns.filter((e) => (e && e.type !== "seq" && !e.formatter && !e.slots && !e.cellRender && (e.cellRender = {
|
|
73
122
|
name: "Encrypt"
|
|
74
|
-
}), e))),
|
|
123
|
+
}), e))), F = () => ({
|
|
75
124
|
maxHeight: "88px",
|
|
76
125
|
height: "44px"
|
|
77
|
-
}),
|
|
78
|
-
var
|
|
126
|
+
}), Y = (e) => {
|
|
127
|
+
var n;
|
|
79
128
|
const {
|
|
80
129
|
column: l
|
|
81
130
|
} = e;
|
|
82
131
|
return {
|
|
83
|
-
maxHeight: ((
|
|
132
|
+
maxHeight: ((n = l == null ? void 0 : l.cellRender) == null ? void 0 : n.name) === "Clamp" ? "max-content" : "44px"
|
|
84
133
|
};
|
|
85
|
-
},
|
|
134
|
+
}, v = _({
|
|
86
135
|
autoResize: !0,
|
|
87
136
|
sortConfig: {
|
|
88
137
|
trigger: "cell",
|
|
@@ -95,12 +144,12 @@ const s = (
|
|
|
95
144
|
orders: ["desc", "asc", null]
|
|
96
145
|
},
|
|
97
146
|
seqConfig: {
|
|
98
|
-
startIndex:
|
|
147
|
+
startIndex: A.value
|
|
99
148
|
},
|
|
100
149
|
cellClassName: "cellClass",
|
|
101
150
|
rowClassName: "rowClass",
|
|
102
|
-
cellStyle:
|
|
103
|
-
rowStyle:
|
|
151
|
+
cellStyle: Y,
|
|
152
|
+
rowStyle: F,
|
|
104
153
|
headerRowClassName: "headerRowClass",
|
|
105
154
|
headerAlign: "center",
|
|
106
155
|
columnConfig: {
|
|
@@ -118,115 +167,113 @@ const s = (
|
|
|
118
167
|
},
|
|
119
168
|
...t.tableConfig,
|
|
120
169
|
...V
|
|
121
|
-
}),
|
|
122
|
-
|
|
170
|
+
}), J = (e) => {
|
|
171
|
+
h("sort-change", e);
|
|
123
172
|
};
|
|
124
|
-
|
|
125
|
-
|
|
173
|
+
w(() => t.pageNum, (e) => {
|
|
174
|
+
H(e);
|
|
126
175
|
});
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
let
|
|
131
|
-
const
|
|
176
|
+
const H = (e) => {
|
|
177
|
+
v.seqConfig && (v.seqConfig.startIndex = (e - 1) * t.pageSize);
|
|
178
|
+
}, m = d(), B = d(), C = d(!1);
|
|
179
|
+
let r = d(), p = d();
|
|
180
|
+
const f = x(() => {
|
|
132
181
|
var e;
|
|
133
182
|
return ((e = t.sticky) == null ? void 0 : e.getContainer) || document.documentElement || document.body;
|
|
134
183
|
});
|
|
135
|
-
|
|
136
|
-
var e, l,
|
|
137
|
-
(e =
|
|
138
|
-
|
|
184
|
+
w(() => [s, t.sticky], () => {
|
|
185
|
+
var e, l, n;
|
|
186
|
+
(e = s.value) != null && e.$el && t.sticky && ((l = f.value) == null || l.removeEventListener("scroll", b), (n = f.value) == null || n.addEventListener("scroll", b), setTimeout(() => {
|
|
187
|
+
R();
|
|
139
188
|
}, 50));
|
|
140
189
|
}, {
|
|
141
190
|
immediate: !0,
|
|
142
191
|
deep: !0
|
|
143
192
|
});
|
|
144
|
-
function
|
|
145
|
-
if (!
|
|
193
|
+
function R() {
|
|
194
|
+
if (!r.value || !p.value || (b(), !C.value))
|
|
146
195
|
return;
|
|
147
|
-
const e =
|
|
148
|
-
|
|
196
|
+
const e = r.value.clientWidth, l = p.value.offsetWidth;
|
|
197
|
+
m.value.style.width = e - 1 + "px", B.value.style.width = l + "px";
|
|
149
198
|
}
|
|
150
|
-
function
|
|
151
|
-
var
|
|
152
|
-
if (!((
|
|
199
|
+
function b() {
|
|
200
|
+
var i, u, g;
|
|
201
|
+
if (!((i = s.value) != null && i.$el) || !r.value || !f.value)
|
|
153
202
|
return;
|
|
154
|
-
const e = ((
|
|
203
|
+
const e = ((u = f.value) == null ? void 0 : u.clientHeight) || window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, {
|
|
155
204
|
top: l,
|
|
156
|
-
bottom:
|
|
157
|
-
} =
|
|
158
|
-
|
|
205
|
+
bottom: n
|
|
206
|
+
} = r.value.getBoundingClientRect(), o = ((g = f.value) == null ? void 0 : g.getBoundingClientRect().top) || document.body.getBoundingClientRect().top;
|
|
207
|
+
C.value = l < e && n > e && n - o > e, m.value.scrollLeft = r.value.scrollLeft;
|
|
159
208
|
}
|
|
160
|
-
const
|
|
209
|
+
const K = () => {
|
|
161
210
|
var l;
|
|
162
|
-
const e = (l =
|
|
163
|
-
e && (
|
|
164
|
-
|
|
165
|
-
}),
|
|
166
|
-
|
|
211
|
+
const e = (l = s.value) == null ? void 0 : l.$el;
|
|
212
|
+
e && (r.value = e.querySelector(".vxe-table--body-wrapper"), p.value = e.querySelector(".vxe-table--body"), !(!r.value && !p.value) && (r.value.addEventListener("scroll", function(n) {
|
|
213
|
+
m.value.scrollLeft = n.target.scrollLeft;
|
|
214
|
+
}), m.value.addEventListener("scroll", function(n) {
|
|
215
|
+
r.value.scrollLeft = n.target.scrollLeft;
|
|
167
216
|
})));
|
|
168
217
|
};
|
|
169
|
-
return
|
|
170
|
-
t.sticky && (
|
|
171
|
-
}),
|
|
172
|
-
table:
|
|
218
|
+
return ee(() => {
|
|
219
|
+
t.sticky && (K(), ce(s, () => R()));
|
|
220
|
+
}), q({
|
|
221
|
+
table: s
|
|
173
222
|
}), (e, l) => {
|
|
174
|
-
const
|
|
175
|
-
return
|
|
176
|
-
class:
|
|
177
|
-
}, [
|
|
223
|
+
const n = L("vxe-grid");
|
|
224
|
+
return S(), te("div", {
|
|
225
|
+
class: k(a(c).b())
|
|
226
|
+
}, [a(z) ? D("", !0) : (S(), O(a(I), N({
|
|
178
227
|
key: 0,
|
|
179
|
-
class: [
|
|
228
|
+
class: [a(c).e("pager"), a(c).m("pager-" + t.pagePlacement)],
|
|
180
229
|
layout: "prev, pager, next"
|
|
181
230
|
}, t.pageOptions, {
|
|
182
231
|
total: t.total,
|
|
183
232
|
"page-size": t.pageSize,
|
|
184
|
-
onCurrentChange: l[0] || (l[0] = (
|
|
185
|
-
"current-page":
|
|
186
|
-
|
|
187
|
-
}), null, 16, ["class", "total", "page-size", "current-page"])), P(a, S({
|
|
233
|
+
onCurrentChange: l[0] || (l[0] = (o) => h("page-change", t.pageNum)),
|
|
234
|
+
"current-page": t.pageNum
|
|
235
|
+
}), null, 16, ["class", "total", "page-size", "current-page"])), y(n, N({
|
|
188
236
|
ref_key: "xGrid",
|
|
189
|
-
ref:
|
|
190
|
-
},
|
|
237
|
+
ref: s
|
|
238
|
+
}, v, {
|
|
191
239
|
height: t.height,
|
|
192
240
|
"max-height": t.maxHeight,
|
|
193
|
-
columns:
|
|
241
|
+
columns: a(j),
|
|
194
242
|
data: t.tableData,
|
|
195
243
|
"auto-resize": "",
|
|
196
244
|
loading: t.loading,
|
|
197
245
|
resizable: "",
|
|
198
|
-
onSortChange:
|
|
199
|
-
}),
|
|
200
|
-
empty:
|
|
201
|
-
type:
|
|
246
|
+
onSortChange: J
|
|
247
|
+
}), le({
|
|
248
|
+
empty: P(() => [y(a(oe), {
|
|
249
|
+
type: a(se).NO_DATA
|
|
202
250
|
}, null, 8, ["type"])]),
|
|
203
251
|
_: 2
|
|
204
252
|
}, [t.sticky ? {
|
|
205
253
|
name: "bottom",
|
|
206
|
-
fn:
|
|
254
|
+
fn: P(() => [ne(T("div", {
|
|
207
255
|
ref_key: "stickyScroll",
|
|
208
|
-
ref:
|
|
209
|
-
class:
|
|
210
|
-
}, [
|
|
256
|
+
ref: m,
|
|
257
|
+
class: k(a(c).e("sticky-scroll-warpper"))
|
|
258
|
+
}, [T("div", {
|
|
211
259
|
ref_key: "stickyScrollBar",
|
|
212
|
-
ref:
|
|
213
|
-
class:
|
|
214
|
-
}, null, 2)], 2), [[
|
|
260
|
+
ref: B,
|
|
261
|
+
class: k(a(c).e("sticky-scroll-bar"))
|
|
262
|
+
}, null, 2)], 2), [[ae, C.value]])]),
|
|
215
263
|
key: "0"
|
|
216
|
-
} : void 0]), 1040, ["height", "max-height", "columns", "data", "loading"]),
|
|
264
|
+
} : void 0]), 1040, ["height", "max-height", "columns", "data", "loading"]), a(z) ? (S(), O(a(I), N({
|
|
217
265
|
key: 1,
|
|
218
|
-
class: [
|
|
266
|
+
class: [a(c).e("pager"), a(c).m("pager-" + t.pagePlacement)],
|
|
219
267
|
layout: "prev, pager, next"
|
|
220
268
|
}, t.pageOptions, {
|
|
221
269
|
total: t.total,
|
|
222
270
|
"page-size": t.pageSize,
|
|
223
|
-
onCurrentChange:
|
|
224
|
-
"current-page":
|
|
225
|
-
|
|
226
|
-
}), null, 16, ["class", "total", "page-size", "current-page"])) : N("", !0)], 2);
|
|
271
|
+
onCurrentChange: G,
|
|
272
|
+
"current-page": t.pageNum
|
|
273
|
+
}), null, 16, ["class", "total", "page-size", "current-page"])) : D("", !0)], 2);
|
|
227
274
|
};
|
|
228
275
|
}
|
|
229
276
|
});
|
|
230
277
|
export {
|
|
231
|
-
|
|
278
|
+
Ne as default
|
|
232
279
|
};
|