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.
Files changed (82) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/avatar/avatar.vue.d.ts +2 -2
  3. package/es/components/avatar/index.d.ts +2 -2
  4. package/es/components/button/button.vue.d.ts +1 -1
  5. package/es/components/button/index.d.ts +1 -1
  6. package/es/components/button/use-button.d.ts +1 -1
  7. package/es/components/checkbox/checkbox-button.vue.d.ts +2 -2
  8. package/es/components/checkbox/checkbox-group.vue.d.ts +2 -2
  9. package/es/components/checkbox/checkbox.vue.d.ts +2 -2
  10. package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
  11. package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
  12. package/es/components/checkbox/index.d.ts +10 -10
  13. package/es/components/color-picker/color-picker.vue.d.ts +2 -2
  14. package/es/components/color-picker/index.d.ts +2 -2
  15. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  16. package/es/components/dropdown/index.d.ts +1 -1
  17. package/es/components/form/form-item.vue.d.ts +3 -3
  18. package/es/components/form/form.vue.d.ts +2 -2
  19. package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
  20. package/es/components/form/index.d.ts +8 -8
  21. package/es/components/input/index.d.ts +2 -2
  22. package/es/components/input/input.vue.d.ts +2 -2
  23. package/es/components/radio/index.d.ts +10 -10
  24. package/es/components/radio/radio-button.vue.d.ts +2 -2
  25. package/es/components/radio/radio-group.vue.d.ts +2 -2
  26. package/es/components/radio/radio.vue.d.ts +2 -2
  27. package/es/components/radio/use-radio.d.ts +1 -1
  28. package/es/components/select-v2/defaults.d.ts +1 -1
  29. package/es/components/select-v2/index.d.ts +8 -8
  30. package/es/components/select-v2/select.vue.d.ts +4 -4
  31. package/es/components/select-v2/useSelect.d.ts +2 -2
  32. package/es/components/switch/index.d.ts +2 -2
  33. package/es/components/switch/switch.vue.d.ts +2 -2
  34. package/es/components/table/table.vue.d.ts +9 -25
  35. package/es/components/table/table.vue2.js +141 -94
  36. package/es/components/tabs/tabs.vue2.js +22 -19
  37. package/es/components/tabs/types.d.ts +22 -21
  38. package/es/hooks/use-size/index.d.ts +1 -1
  39. package/es/package.json.js +1 -1
  40. package/lib/components/avatar/avatar.vue.d.ts +2 -2
  41. package/lib/components/avatar/index.d.ts +2 -2
  42. package/lib/components/button/button.vue.d.ts +1 -1
  43. package/lib/components/button/index.d.ts +1 -1
  44. package/lib/components/button/use-button.d.ts +1 -1
  45. package/lib/components/checkbox/checkbox-button.vue.d.ts +2 -2
  46. package/lib/components/checkbox/checkbox-group.vue.d.ts +2 -2
  47. package/lib/components/checkbox/checkbox.vue.d.ts +2 -2
  48. package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
  49. package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
  50. package/lib/components/checkbox/index.d.ts +10 -10
  51. package/lib/components/color-picker/color-picker.vue.d.ts +2 -2
  52. package/lib/components/color-picker/index.d.ts +2 -2
  53. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  54. package/lib/components/dropdown/index.d.ts +1 -1
  55. package/lib/components/form/form-item.vue.d.ts +3 -3
  56. package/lib/components/form/form.vue.d.ts +2 -2
  57. package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
  58. package/lib/components/form/index.d.ts +8 -8
  59. package/lib/components/input/index.d.ts +2 -2
  60. package/lib/components/input/input.vue.d.ts +2 -2
  61. package/lib/components/radio/index.d.ts +10 -10
  62. package/lib/components/radio/radio-button.vue.d.ts +2 -2
  63. package/lib/components/radio/radio-group.vue.d.ts +2 -2
  64. package/lib/components/radio/radio.vue.d.ts +2 -2
  65. package/lib/components/radio/use-radio.d.ts +1 -1
  66. package/lib/components/select-v2/defaults.d.ts +1 -1
  67. package/lib/components/select-v2/index.d.ts +8 -8
  68. package/lib/components/select-v2/select.vue.d.ts +4 -4
  69. package/lib/components/select-v2/useSelect.d.ts +2 -2
  70. package/lib/components/switch/index.d.ts +2 -2
  71. package/lib/components/switch/switch.vue.d.ts +2 -2
  72. package/lib/components/table/table.vue.d.ts +9 -25
  73. package/lib/components/table/table.vue2.cjs +1 -1
  74. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  75. package/lib/components/tabs/types.d.ts +22 -21
  76. package/lib/hooks/use-size/index.d.ts +1 -1
  77. package/lib/package.json.cjs +1 -1
  78. package/package.json +4 -6
  79. package/theme-style/index.css +1 -1
  80. package/theme-style/src/tabs.scss +15 -13
  81. package/theme-style/vft-tabs.css +1 -1
  82. 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<"" | "default" | "small" | "large">;
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<"default" | "small">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large">;
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<"default" | "small">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large">;
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<"default" | "small">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large">;
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<"default" | "small">;
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<"" | "default" | "small" | "large">;
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<"" | "default" | "small" | "large" | undefined>;
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<"" | "default" | "small" | "large" | undefined>;
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<"" | "default" | "small" | "large" | undefined>;
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<"" | "default" | "small" | "large" | undefined>;
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 { IColumnsOption, IDefaultSort, TableConfigProps } from './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 q, useAttrs as M, ref as i, computed as p, watch as b, reactive as Y, onMounted as J, resolveComponent as K, openBlock as C, createElementBlock as Q, normalizeClass as x, unref as n, createBlock as L, mergeProps as S, createCommentVNode as N, createVNode as P, createSlots as Z, withCtx as W, withDirectives as _, createElementVNode as D, vShow as ee } from "vue";
2
- import { VftEmpty as te } from "../empty/index.js";
3
- import { VftPagination as O } from "../pagination/index.js";
4
- import { useNamespace as le } from "../../hooks/use-namespace/index.js";
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 ae, useResizeObserver as ne } from "@vueuse/core";
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 { VXETable as oe } from "vxe-table";
14
- import { EmptyEnum as re } from "../empty/constants.js";
15
- const s = (
13
+ import E from "vxe-table";
14
+ import { EmptyEnum as se } from "../empty/constants.js";
15
+ const c = (
16
16
  /* hoist-static*/
17
- le("table")
18
- ), ie = q({
19
- name: s.b()
20
- }), Se = /* @__PURE__ */ q({
21
- ...ie,
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: I,
54
- emit: v
56
+ expose: q,
57
+ emit: h
55
58
  }) {
56
- const V = M(), r = i(1), $ = i(0), u = i(), A = ae(() => T(), 120), w = p(() => t.pagePlacement.startsWith("bottom"));
57
- b([() => t.loading, () => t.tableData, () => t.columns], () => {
58
- A();
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 T() {
63
- m.data = t.tableData, k(r.value);
65
+ function M() {
66
+ v.data = t.tableData, H(t.pageNum);
64
67
  }
65
- oe.formats.mixin({
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
- const G = p(() => t.columns.filter((e) => (e && e.type !== "seq" && !e.formatter && !e.slots && !e.cellRender && (e.cellRender = {
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))), U = () => ({
123
+ }), e))), F = () => ({
75
124
  maxHeight: "88px",
76
125
  height: "44px"
77
- }), X = (e) => {
78
- var a;
126
+ }), Y = (e) => {
127
+ var n;
79
128
  const {
80
129
  column: l
81
130
  } = e;
82
131
  return {
83
- maxHeight: ((a = l == null ? void 0 : l.cellRender) == null ? void 0 : a.name) === "Clamp" ? "max-content" : "44px"
132
+ maxHeight: ((n = l == null ? void 0 : l.cellRender) == null ? void 0 : n.name) === "Clamp" ? "max-content" : "44px"
84
133
  };
85
- }, m = Y({
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: $.value
147
+ startIndex: A.value
99
148
  },
100
149
  cellClassName: "cellClass",
101
150
  rowClassName: "rowClass",
102
- cellStyle: X,
103
- rowStyle: U,
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
- }), j = (e) => {
122
- v("sort-change", e);
170
+ }), J = (e) => {
171
+ h("sort-change", e);
123
172
  };
124
- b(() => r.value, (e) => {
125
- k(e);
173
+ w(() => t.pageNum, (e) => {
174
+ H(e);
126
175
  });
127
- const k = (e) => {
128
- m.seqConfig && (m.seqConfig.startIndex = (e - 1) * t.pageSize);
129
- }, d = i(), z = i(), h = i(!1);
130
- let o = i(), f = i();
131
- const g = p(() => {
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
- b(() => [u, t.sticky], () => {
136
- var e, l, a;
137
- (e = u.value) != null && e.$el && t.sticky && ((l = g.value) == null || l.removeEventListener("scroll", y), (a = g.value) == null || a.addEventListener("scroll", y), setTimeout(() => {
138
- E();
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 E() {
145
- if (!o.value || !f.value || (y(), !h.value))
193
+ function R() {
194
+ if (!r.value || !p.value || (b(), !C.value))
146
195
  return;
147
- const e = o.value.clientWidth, l = f.value.offsetWidth;
148
- d.value.style.width = e - 1 + "px", z.value.style.width = l + "px";
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 y() {
151
- var B, R, H;
152
- if (!((B = u.value) != null && B.$el) || !o.value || !g.value)
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 = ((R = g.value) == null ? void 0 : R.clientHeight) || window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, {
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: a
157
- } = o.value.getBoundingClientRect(), c = ((H = g.value) == null ? void 0 : H.getBoundingClientRect().top) || document.body.getBoundingClientRect().top;
158
- h.value = l < e && a > e && a - c > e, d.value.scrollLeft = o.value.scrollLeft;
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 F = () => {
209
+ const K = () => {
161
210
  var l;
162
- const e = (l = u.value) == null ? void 0 : l.$el;
163
- e && (o.value = e.querySelector(".vxe-table--body-wrapper"), f.value = e.querySelector(".vxe-table--body"), !(!o.value && !f.value) && (o.value.addEventListener("scroll", function(a) {
164
- d.value.scrollLeft = a.target.scrollLeft;
165
- }), d.value.addEventListener("scroll", function(a) {
166
- o.value.scrollLeft = a.target.scrollLeft;
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 J(() => {
170
- t.sticky && (F(), ne(u, () => E()));
171
- }), I({
172
- table: u
218
+ return ee(() => {
219
+ t.sticky && (K(), ce(s, () => R()));
220
+ }), q({
221
+ table: s
173
222
  }), (e, l) => {
174
- const a = K("vxe-grid");
175
- return C(), Q("div", {
176
- class: x(n(s).b())
177
- }, [n(w) ? N("", !0) : (C(), L(n(O), S({
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: [n(s).e("pager"), n(s).m("pager-" + t.pagePlacement)],
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] = (c) => v("page-change", r.value)),
185
- "current-page": r.value,
186
- "onUpdate:currentPage": l[1] || (l[1] = (c) => r.value = c)
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: u
190
- }, m, {
237
+ ref: s
238
+ }, v, {
191
239
  height: t.height,
192
240
  "max-height": t.maxHeight,
193
- columns: n(G),
241
+ columns: a(j),
194
242
  data: t.tableData,
195
243
  "auto-resize": "",
196
244
  loading: t.loading,
197
245
  resizable: "",
198
- onSortChange: j
199
- }), Z({
200
- empty: W(() => [P(n(te), {
201
- type: n(re).NO_DATA
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: W(() => [_(D("div", {
254
+ fn: P(() => [ne(T("div", {
207
255
  ref_key: "stickyScroll",
208
- ref: d,
209
- class: x(n(s).e("sticky-scroll-warpper"))
210
- }, [D("div", {
256
+ ref: m,
257
+ class: k(a(c).e("sticky-scroll-warpper"))
258
+ }, [T("div", {
211
259
  ref_key: "stickyScrollBar",
212
- ref: z,
213
- class: x(n(s).e("sticky-scroll-bar"))
214
- }, null, 2)], 2), [[ee, h.value]])]),
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"]), n(w) ? (C(), L(n(O), S({
264
+ } : void 0]), 1040, ["height", "max-height", "columns", "data", "loading"]), a(z) ? (S(), O(a(I), N({
217
265
  key: 1,
218
- class: [n(s).e("pager"), n(s).m("pager-" + t.pagePlacement)],
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: l[2] || (l[2] = (c) => v("page-change", r.value)),
224
- "current-page": r.value,
225
- "onUpdate:currentPage": l[3] || (l[3] = (c) => r.value = c)
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
- Se as default
278
+ Ne as default
232
279
  };