@gx-design-vue/pro-table 0.2.0-beta.39 → 0.2.0-beta.40

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.
@@ -101,12 +101,7 @@ declare const GProTable: import("vue").DefineComponent<{
101
101
  size: {
102
102
  type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
103
103
  default: string;
104
- }; /**
105
- * @Author gx12358
106
- * @DateTime 2022/1/21
107
- * @lastTime 2022/1/21
108
- * @description Tabel-scroll hooks 方法
109
- */
104
+ };
110
105
  align: {
111
106
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
112
107
  default: string;
@@ -127,7 +122,12 @@ declare const GProTable: import("vue").DefineComponent<{
127
122
  type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
128
123
  default: boolean;
129
124
  };
130
- onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
125
+ onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>; /**
126
+ * @Author gx12358
127
+ * @DateTime 2022/1/21
128
+ * @lastTime 2022/1/21
129
+ * @description Tabel-datasource hooks 方法
130
+ */
131
131
  onReload: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
132
132
  onSubmit: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
133
133
  onSizeChange: import("vue").PropType<((size: string) => any) | undefined>;
@@ -300,12 +300,7 @@ declare const GProTable: import("vue").DefineComponent<{
300
300
  } & {
301
301
  scrollToFirstRowOnChange?: boolean | undefined;
302
302
  }>;
303
- default: undefined; /**
304
- * @Author gx12358
305
- * @DateTime 2022/1/21
306
- * @lastTime 2022/1/21
307
- * @description Tabel-colums hooks 方法
308
- */
303
+ default: undefined;
309
304
  };
310
305
  sortDirections: {
311
306
  type: import("vue").PropType<import("ant-design-vue/es/table/interface").SortOrder[]>;
@@ -470,12 +465,7 @@ declare const GProTable: import("vue").DefineComponent<{
470
465
  size: {
471
466
  type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
472
467
  default: string;
473
- }; /**
474
- * @Author gx12358
475
- * @DateTime 2022/1/21
476
- * @lastTime 2022/1/21
477
- * @description Tabel-scroll hooks 方法
478
- */
468
+ };
479
469
  align: {
480
470
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
481
471
  default: string;
@@ -496,7 +486,12 @@ declare const GProTable: import("vue").DefineComponent<{
496
486
  type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
497
487
  default: boolean;
498
488
  };
499
- onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
489
+ onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>; /**
490
+ * @Author gx12358
491
+ * @DateTime 2022/1/21
492
+ * @lastTime 2022/1/21
493
+ * @description Tabel-datasource hooks 方法
494
+ */
500
495
  onReload: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
501
496
  onSubmit: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
502
497
  onSizeChange: import("vue").PropType<((size: string) => any) | undefined>;
@@ -669,12 +664,7 @@ declare const GProTable: import("vue").DefineComponent<{
669
664
  } & {
670
665
  scrollToFirstRowOnChange?: boolean | undefined;
671
666
  }>;
672
- default: undefined; /**
673
- * @Author gx12358
674
- * @DateTime 2022/1/21
675
- * @lastTime 2022/1/21
676
- * @description Tabel-colums hooks 方法
677
- */
667
+ default: undefined;
678
668
  };
679
669
  sortDirections: {
680
670
  type: import("vue").PropType<import("ant-design-vue/es/table/interface").SortOrder[]>;
@@ -6,6 +6,7 @@ import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
6
6
  import type { PaginationProps } from '../_utils';
7
7
  export interface TableContextProps {
8
8
  columns?: ComputedRef<ProColumnsType>;
9
+ isMobile?: ComputedRef<boolean>;
9
10
  cacheColumns?: ComputedRef<ProColumnsType>;
10
11
  tableSize?: Ref<SizeType>;
11
12
  action?: {
@@ -9,12 +9,12 @@ export type ConfigColumns = {
9
9
  };
10
10
  type UseColumnsType = {
11
11
  scroll: ComputedRef<ProTableProps['scroll']>;
12
- breakpoint: ComputedRef<boolean>;
12
+ breakpoint: ComputedRef<boolean | undefined>;
13
13
  columns: ComputedRef<ProColumnsType>;
14
14
  } & ConfigColumns;
15
15
  export declare function useConfigColumns(props: ProTableProps): ConfigColumns;
16
16
  export declare function useColumns({ scroll, columns, breakpoint, draggabled, autoScroll, neverScroll }: UseColumnsType): {
17
- breakpoint: ComputedRef<boolean>;
17
+ breakpoint: ComputedRef<boolean | undefined>;
18
18
  getProColumns: ComputedRef<ProColumnType<import("../typing").DefaultRecordType>[]>;
19
19
  cacheProColumns: Ref<ProColumnsType<import("../typing").DefaultRecordType>>;
20
20
  setColumns: (columnList: ProColumnsType<import("../typing").DefaultRecordType>) => void;
@@ -13,16 +13,16 @@ type ConfigScroll = {
13
13
  type useTableScrollType = {
14
14
  columns: ComputedRef<ProColumnsType>;
15
15
  innerWidth: Ref<number>;
16
- screensRef: Ref<Partial<Record<Breakpoint, boolean>>>;
16
+ screens: Ref<Partial<Record<Breakpoint, boolean>>>;
17
17
  } & ConfigScroll;
18
18
  export declare function useConfigScroll(props: ProTableProps): ConfigScroll;
19
- export declare function useTableScroll({ scroll, columns, autoScroll, modalScroll, neverScroll, rowSelection, screensRef, innerWidth, scrollBreakpoint, }: useTableScrollType): {
19
+ export declare function useTableScroll({ scroll, columns, autoScroll, modalScroll, neverScroll, rowSelection, screens, innerWidth, scrollBreakpoint }: useTableScrollType): {
20
20
  getScrollRef: ComputedRef<({
21
21
  x?: string | number | true | undefined;
22
22
  y?: string | number | undefined;
23
23
  } & {
24
24
  scrollToFirstRowOnChange?: boolean | undefined;
25
25
  }) | undefined>;
26
- breakpoint: ComputedRef<boolean>;
26
+ breakpoint: ComputedRef<boolean | undefined>;
27
27
  };
28
28
  export {};