@gx-design-vue/pro-table 0.0.5 → 0.0.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.
@@ -1,5 +1,3 @@
1
- import PropTypes from 'ant-design-vue/es/_util/vue-types';
2
- export { PropTypes };
3
1
  export * from './pagination/typings';
4
2
  export * from './table/typings';
5
3
  export * from './table/props';
@@ -1,192 +1,2 @@
1
- import type { PropType } from 'vue';
2
- import type { ColumnsType, ColumnType, ContextSlots, FilterValue, GetPopupContainer, SorterResult, SortOrder, TableCurrentDataSource, TableLocale, TablePaginationConfig, TableRowSelection } from './typings';
3
- import type { SpinProps, TooltipProps } from '../../index';
4
- import type { SizeType } from '../../../typing';
5
- export declare const tableProps: {
6
- prefixCls: {
7
- type: PropType<string>;
8
- default: undefined;
9
- };
10
- columns: {
11
- type: PropType<ColumnsType<any>>;
12
- default: undefined;
13
- };
14
- rowKey: {
15
- type: PropType<string | import("ant-design-vue/lib/vc-table/interface").GetRowKey<any> | undefined>;
16
- default: undefined;
17
- };
18
- tableLayout: {
19
- type: PropType<import("ant-design-vue/lib/vc-table/interface").TableLayout | undefined>;
20
- default: undefined;
21
- };
22
- rowClassName: {
23
- type: PropType<string | import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
24
- default: undefined;
25
- };
26
- title: {
27
- type: PropType<import("ant-design-vue/lib/vc-table/interface").PanelRender<any> | undefined>;
28
- default: undefined;
29
- };
30
- footer: {
31
- type: PropType<import("ant-design-vue/lib/vc-table/interface").PanelRender<any> | undefined>;
32
- default: undefined;
33
- };
34
- id: {
35
- type: PropType<string | undefined>;
36
- default: undefined;
37
- };
38
- showHeader: {
39
- type: PropType<boolean | undefined>;
40
- default: undefined;
41
- };
42
- components: {
43
- type: PropType<import("ant-design-vue/lib/vc-table/interface").TableComponents<any> | undefined>;
44
- default: undefined;
45
- };
46
- customRow: {
47
- type: PropType<import("ant-design-vue/lib/vc-table/interface").GetComponentProps<any> | undefined>;
48
- default: undefined;
49
- };
50
- customHeaderRow: {
51
- type: PropType<import("ant-design-vue/lib/vc-table/interface").GetComponentProps<import("ant-design-vue/lib/vc-table/interface").ColumnType<any>[]> | undefined>;
52
- default: undefined;
53
- };
54
- direction: {
55
- type: PropType<"ltr" | "rtl" | undefined>;
56
- default: undefined;
57
- };
58
- expandFixed: {
59
- type: PropType<boolean | "left" | "right" | undefined>;
60
- default: undefined;
61
- };
62
- expandColumnWidth: {
63
- type: PropType<number | undefined>;
64
- default: undefined;
65
- };
66
- expandedRowKeys: {
67
- type: PropType<import("ant-design-vue/lib/vc-table/interface").Key[] | undefined>;
68
- default: import("ant-design-vue/lib/vc-table/interface").Key[] | undefined;
69
- };
70
- defaultExpandedRowKeys: {
71
- type: PropType<import("ant-design-vue/lib/vc-table/interface").Key[] | undefined>;
72
- default: import("ant-design-vue/lib/vc-table/interface").Key[] | undefined;
73
- };
74
- expandedRowRender: {
75
- type: PropType<import("ant-design-vue/lib/vc-table/interface").ExpandedRowRender<any> | undefined>;
76
- default: undefined;
77
- };
78
- expandRowByClick: {
79
- type: PropType<boolean | undefined>;
80
- default: undefined;
81
- };
82
- expandIcon: {
83
- type: PropType<import("ant-design-vue/lib/vc-table/interface").RenderExpandIcon<any> | undefined>;
84
- default: undefined;
85
- };
86
- onExpand: {
87
- type: PropType<((expanded: boolean, record: any) => void) | undefined>;
88
- default: undefined;
89
- };
90
- onExpandedRowsChange: {
91
- type: PropType<((expandedKeys: import("ant-design-vue/lib/vc-table/interface").Key[]) => void) | undefined>;
92
- default: undefined;
93
- };
94
- 'onUpdate:expandedRowKeys': {
95
- type: PropType<((expandedKeys: import("ant-design-vue/lib/vc-table/interface").Key[]) => void) | undefined>;
96
- default: undefined;
97
- };
98
- defaultExpandAllRows: {
99
- type: PropType<boolean | undefined>;
100
- default: undefined;
101
- };
102
- indentSize: {
103
- type: PropType<number | undefined>;
104
- default: undefined;
105
- };
106
- /** @deprecated Please use `EXPAND_COLUMN` in `columns` directly */
107
- expandIconColumnIndex: {
108
- type: PropType<number | undefined>;
109
- default: undefined;
110
- };
111
- showExpandColumn: {
112
- type: BooleanConstructor;
113
- default: undefined;
114
- };
115
- expandedRowClassName: {
116
- type: PropType<import("ant-design-vue/lib/vc-table/interface").RowClassName<any> | undefined>;
117
- default: undefined;
118
- };
119
- childrenColumnName: {
120
- type: PropType<string | undefined>;
121
- default: undefined;
122
- };
123
- rowExpandable: {
124
- type: PropType<((record: any) => boolean) | undefined>;
125
- default: undefined;
126
- };
127
- sticky: {
128
- type: PropType<boolean | import("ant-design-vue/lib/vc-table/interface").TableSticky | undefined>;
129
- default: undefined;
130
- };
131
- dropdownPrefixCls: StringConstructor;
132
- dataSource: {
133
- type: PropType<any[] | undefined>;
134
- default: undefined;
135
- };
136
- pagination: {
137
- type: PropType<false | TablePaginationConfig>;
138
- default: undefined;
139
- };
140
- loading: {
141
- type: PropType<boolean | SpinProps>;
142
- default: undefined;
143
- };
144
- size: {
145
- type: PropType<SizeType>;
146
- default: undefined;
147
- };
148
- bordered: BooleanConstructor;
149
- locale: {
150
- type: PropType<TableLocale>;
151
- default: undefined;
152
- };
153
- onChange: {
154
- type: PropType<(pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult | SorterResult[], extra: TableCurrentDataSource) => void>;
155
- default: undefined;
156
- };
157
- onResizeColumn: {
158
- type: PropType<(w: number, col: ColumnType) => void>;
159
- default: undefined;
160
- };
161
- rowSelection: {
162
- type: PropType<TableRowSelection<any>>;
163
- default: undefined;
164
- };
165
- getPopupContainer: {
166
- type: PropType<GetPopupContainer>;
167
- default: undefined;
168
- };
169
- scroll: {
170
- type: PropType<{
171
- x?: string | number | true | undefined;
172
- y?: string | number | undefined;
173
- } & {
174
- scrollToFirstRowOnChange?: boolean | undefined;
175
- }>;
176
- default: undefined;
177
- };
178
- sortDirections: {
179
- type: PropType<SortOrder[]>;
180
- default: undefined;
181
- };
182
- showSorterTooltip: {
183
- type: PropType<boolean | TooltipProps>;
184
- default: boolean;
185
- };
186
- contextSlots: {
187
- type: PropType<ContextSlots>;
188
- };
189
- transformCellText: {
190
- type: PropType<import("ant-design-vue/lib/vc-table/interface").TransformCellText<any> | undefined>;
191
- };
192
- };
1
+ import { tableProps } from 'ant-design-vue/es/table';
2
+ export { tableProps };
@@ -1,11 +1,9 @@
1
- import type { TableProps } from 'ant-design-vue';
1
+ import type { TableProps, ColumnType } from 'ant-design-vue/es/table';
2
2
  import type { FilterValue, SorterResult } from 'ant-design-vue/es/table/interface';
3
- import type { RecordType } from '../../../typing';
4
- export type { ContextSlots } from 'ant-design-vue/es/table/context';
5
- export type { Key, SortOrder, ColumnFilterItem, ColumnTitle, CompareFn, FilterDropdownProps, GetRowKey, ColumnsType, ExpandType, TablePaginationConfig, TableAction, TableLocale, TableCurrentDataSource, ColumnType, TableRowSelection, GetPopupContainer } from 'ant-design-vue/es/table/interface';
6
- export type { AlignType, CellEllipsisType, DataIndex, FixedType, GetComponentProps, RenderedCell } from 'ant-design-vue/es/vc-table/interface';
7
- export type { TableProps as RcTableProps } from 'ant-design-vue/es/vc-table/Table';
3
+ import type { RecordType } from '@gx-design-vue/pro-utils';
4
+ export type { TablePaginationConfig, TableRowSelection } from 'ant-design-vue/es/table/interface';
5
+ export type { Key } from 'ant-design-vue/es/vc-table/interface';
8
6
  export declare type TableFilters = Record<string, FilterValue | null>;
9
7
  export declare type TableSorterRecord = SorterResult<RecordType>;
10
8
  export declare type TableSorter = TableSorterRecord | TableSorterRecord[];
11
- export type { TableProps, FilterValue };
9
+ export type { TableProps, ColumnType, FilterValue, SorterResult };
@@ -1,14 +1,4 @@
1
- import type { Slots } from 'vue';
2
1
  export { initDefaultProps } from 'ant-design-vue/es/_util/props-util';
3
2
  export { noteOnce, warning } from 'ant-design-vue/es/vc-util/warning';
4
- export interface prefixCls {
5
- suffixCls?: string;
6
- customizePrefixCls?: string;
7
- isPor?: boolean;
8
- className?: string;
9
- }
10
- export declare const getPrefixCls: ({ suffixCls, customizePrefixCls, isPor, className }: prefixCls) => string;
11
- export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
12
- export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
13
3
  export * from './typings';
14
4
  export * from './ant-design-vue';
@@ -1,31 +1,3 @@
1
- import type { CSSProperties, Plugin } from 'vue';
2
- declare type triggerTypes = 'hover' | 'focus' | 'click' | 'contextmenu';
3
- declare type placementTypes = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
4
- export declare type abstractTooltipProps = {
5
- trigger?: triggerTypes | triggerTypes[];
6
- visible?: boolean;
7
- defaultVisible?: boolean;
8
- placement?: placementTypes;
9
- color?: string;
10
- transitionName?: string;
11
- overlayStyle?: CSSProperties;
12
- overlayClassName?: string;
13
- openClassName?: string;
14
- prefixCls?: string;
15
- mouseEnterDelay?: number;
16
- mouseLeaveDelay?: number;
17
- getPopupContainer?: () => void;
18
- arrowPointAtCenter?: boolean;
19
- autoAdjustOverflow?: boolean | object;
20
- destroyTooltipOnHide?: boolean;
21
- align?: object;
22
- builtinPlacements?: object;
23
- children?: any[];
24
- onVisibleChange?: () => void;
25
- };
26
- export declare type TooltipProps = {
27
- title?: any;
28
- } & abstractTooltipProps;
29
1
  export declare type SpinProps = {
30
2
  prefixCls?: string;
31
3
  spinning?: boolean;
@@ -35,6 +7,3 @@ export declare type SpinProps = {
35
7
  delay?: number;
36
8
  indicator?: any;
37
9
  };
38
- export declare type SFCWithInstall<T> = T & Plugin;
39
- export declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
40
- export {};
@@ -1,12 +1,13 @@
1
- import type { PropType, RecordType } from '../../typing';
1
+ import type { PropType } from 'vue';
2
+ import type { RecordType } from '@gx-design-vue/pro-utils';
2
3
  import type { ProSearchMap } from '../../types/ColumnTypings';
3
4
  import './style.less';
4
5
  declare const ProTableForm: import("vue").DefineComponent<{
5
6
  search: {
6
- type: import("vue").PropType<import("../../types/TableTypings").SearchConfig>;
7
+ type: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
7
8
  default: () => import("../../types/TableTypings").SearchConfig;
8
9
  };
9
- modal: import("vue").PropType<boolean>;
10
+ modal: PropType<boolean | undefined>;
10
11
  searchMap: {
11
12
  type: PropType<ProSearchMap<"text">[]>;
12
13
  default: () => never[];
@@ -16,10 +17,10 @@ declare const ProTableForm: import("vue").DefineComponent<{
16
17
  defaultParams: PropType<RecordType>;
17
18
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "search"[], "search", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
19
  search: {
19
- type: import("vue").PropType<import("../../types/TableTypings").SearchConfig>;
20
+ type: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
20
21
  default: () => import("../../types/TableTypings").SearchConfig;
21
22
  };
22
- modal: import("vue").PropType<boolean>;
23
+ modal: PropType<boolean | undefined>;
23
24
  searchMap: {
24
25
  type: PropType<ProSearchMap<"text">[]>;
25
26
  default: () => never[];
@@ -30,7 +31,7 @@ declare const ProTableForm: import("vue").DefineComponent<{
30
31
  }>> & {
31
32
  onSearch?: ((...args: any[]) => any) | undefined;
32
33
  }, {
33
- search: import("../../types/TableTypings").SearchConfig;
34
+ search: import("../../types/TableTypings").SearchConfig | undefined;
34
35
  searchMap: ProSearchMap<"text">[];
35
36
  }>;
36
37
  export default ProTableForm;
@@ -1,4 +1,4 @@
1
- import type { RecordType } from '../../typing';
1
+ import type { RecordType } from '@gx-design-vue/pro-utils';
2
2
  import type { ProSearchMap } from '../../types/ColumnTypings';
3
3
  export declare function useForm(defaultParams: RecordType, searchMap: ProSearchMap[]): {
4
4
  formState: any;
@@ -1,4 +1,5 @@
1
- import type { VueNode, PropType } from '../../typing';
1
+ import type { PropType } from 'vue';
2
+ import type { VueNode } from '@gx-design-vue/pro-utils';
2
3
  import './style.less';
3
4
  export declare type ListToolBarSetting = {
4
5
  icon: VueNode;
@@ -8,54 +9,54 @@ export declare type ListToolBarSetting = {
8
9
  };
9
10
  declare const ListToolBar: import("vue").DefineComponent<{
10
11
  actions: {
11
- type: import("vue").PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
12
+ type: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
12
13
  default: () => undefined;
13
14
  };
14
15
  settings: PropType<VueNode[]>;
15
16
  titleTip: {
16
- type: import("vue").PropType<import("../../types/SlotsTypings").TitleTipRender>;
17
+ type: PropType<import("../../types/SlotsTypings").TitleTipRender>;
17
18
  default: () => undefined;
18
19
  };
19
20
  prefixCls: StringConstructor;
20
21
  headerTitle: {
21
- type: import("vue").PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
22
+ type: PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
22
23
  default: () => undefined;
23
24
  };
24
25
  titleTipText: {
25
- type: import("vue").PropType<string>;
26
+ type: PropType<string | undefined>;
26
27
  default: string;
27
28
  };
28
29
  optionsExtra: {
29
- type: import("vue").PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
30
+ type: PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
30
31
  default: () => undefined;
31
32
  };
32
33
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
34
  actions: {
34
- type: import("vue").PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
35
+ type: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
35
36
  default: () => undefined;
36
37
  };
37
38
  settings: PropType<VueNode[]>;
38
39
  titleTip: {
39
- type: import("vue").PropType<import("../../types/SlotsTypings").TitleTipRender>;
40
+ type: PropType<import("../../types/SlotsTypings").TitleTipRender>;
40
41
  default: () => undefined;
41
42
  };
42
43
  prefixCls: StringConstructor;
43
44
  headerTitle: {
44
- type: import("vue").PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
45
+ type: PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
45
46
  default: () => undefined;
46
47
  };
47
48
  titleTipText: {
48
- type: import("vue").PropType<string>;
49
+ type: PropType<string | undefined>;
49
50
  default: string;
50
51
  };
51
52
  optionsExtra: {
52
- type: import("vue").PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
53
+ type: PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
53
54
  default: () => undefined;
54
55
  };
55
56
  }>>, {
56
- headerTitle: import("../../types/SlotsTypings").HeaderTitleRender;
57
+ titleTipText: string | undefined;
57
58
  titleTip: import("../../types/SlotsTypings").TitleTipRender;
58
- titleTipText: string;
59
+ headerTitle: import("../../types/SlotsTypings").HeaderTitleRender;
59
60
  optionsExtra: import("../../types/SlotsTypings").OptionsExtraRender;
60
61
  actions: import("../../types/SlotsTypings").ToolBarBtnRender;
61
62
  }>;
@@ -1,12 +1,11 @@
1
1
  import type { FunctionalComponent as FC } from 'vue';
2
- import type { ProTableProps } from '../../ProTable';
3
- import type { OptionConfig } from '../../types/TableTypings';
2
+ import type { ProTableProps, OptionConfig } from '../../types/TableTypings';
4
3
  import './style.less';
5
4
  export declare type ToolBarProps = {
6
5
  headerTitle?: ProTableProps['headerTitle'];
7
6
  titleTip?: ProTableProps['titleTip'];
8
7
  toolBarBtn?: ProTableProps['toolBarBtn'];
9
- titleTipText?: string;
8
+ titleTipText?: ProTableProps['titleTipText'];
10
9
  optionsExtra?: ProTableProps['optionsExtra'];
11
10
  settingExtra?: ProTableProps['settingExtra'];
12
11
  options?: OptionConfig | boolean;
@@ -1,13 +1,13 @@
1
1
  import type { Ref, ComputedRef } from 'vue';
2
2
  import type { InjectionKey, Slots } from 'vue';
3
3
  import type { SizeType } from '../typing';
4
- import type { ProColumns } from '../types/ColumnTypings';
4
+ import type { ProColumnsType } from '../types/ColumnTypings';
5
5
  import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
6
6
  import type { PaginationProps } from '../_utils';
7
7
  export declare type ContextType = any;
8
8
  export interface TableContextProps {
9
- columns?: ComputedRef<ProColumns>;
10
- cacheColumns?: ComputedRef<ProColumns>;
9
+ columns?: ComputedRef<ProColumnsType>;
10
+ cacheColumns?: ComputedRef<ProColumnsType>;
11
11
  tableSize?: Ref<SizeType>;
12
12
  action?: {
13
13
  /** @name 刷新 */
@@ -1,5 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
- import type { ProColumns } from '../types/ColumnTypings';
2
+ import type { ProColumnsType } from '../types/ColumnTypings';
3
+ import type { ProTableProps } from '../types/TableTypings';
3
4
  export declare type SettingsOperationType = 'fixed' | 'drop' | 'show' | undefined;
4
5
  export declare type ColumnsState = {
5
6
  show?: boolean;
@@ -11,7 +12,7 @@ export declare type ColumnsState = {
11
12
  };
12
13
  };
13
14
  export declare type SettingsAction = {
14
- autoScroll?: Ref<boolean>;
15
+ autoScroll?: Ref<ProTableProps['autoScroll']>;
15
16
  sortKeyColumns: Ref<string[]>;
16
17
  columnsMap: Record<string, ColumnsState>;
17
18
  operationType: Ref<SettingsOperationType>;
@@ -24,7 +25,7 @@ export declare type ColumnsStateType = {
24
25
  onChange?: (map: Record<string, ColumnsState>) => void;
25
26
  };
26
27
  export declare function useColumnSetting({ columns, columnsState, changeColumns }: {
27
- columns: Ref<ProColumns>;
28
+ columns: Ref<ProColumnsType>;
28
29
  columnsState: Ref<ColumnsStateType | undefined>;
29
30
  changeColumns?: (map: Record<string, ColumnsState>, fixed: boolean) => void;
30
31
  }): SettingsAction;
@@ -1,7 +1,7 @@
1
1
  import type { Ref, ComputedRef } from 'vue';
2
2
  import type { ColumnsState } from './useColumnSetting';
3
- import type { ProTableProps } from '../ProTable';
4
- import type { ProColumn, ProColumns } from '../types/ColumnTypings';
3
+ import type { ProTableProps } from '../types/TableTypings';
4
+ import type { ProColumnType, ProColumnsType } from '../types/ColumnTypings';
5
5
  export declare type ConfigColumns = {
6
6
  draggabled: ComputedRef<ProTableProps['draggabled']>;
7
7
  neverScroll: ComputedRef<ProTableProps['neverScroll']>;
@@ -10,15 +10,15 @@ export declare type ConfigColumns = {
10
10
  declare type UseColumnsType = {
11
11
  scroll: ComputedRef<ProTableProps['scroll']>;
12
12
  breakpoint: ComputedRef<boolean>;
13
- columns: ComputedRef<ProColumns>;
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
17
  breakpoint: ComputedRef<boolean>;
18
- getProColumns: ComputedRef<ProColumn[]>;
19
- cacheProColumns: Ref<ProColumns>;
20
- setColumns: (columnList: ProColumns) => void;
18
+ getProColumns: ComputedRef<ProColumnType<import("../typing").DefaultRecordType>[]>;
19
+ cacheProColumns: Ref<ProColumnsType<import("../typing").DefaultRecordType>>;
20
+ setColumns: (columnList: ProColumnsType<import("../typing").DefaultRecordType>) => void;
21
21
  changeColumns: (columnState: Record<string, ColumnsState>) => void;
22
- resizeColumnWidth: (w: number, col: any) => void;
22
+ resizeColumnWidth: (w: number, col: ProColumnType) => void;
23
23
  };
24
24
  export {};
@@ -1,18 +1,17 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { SpinProps, TableSorter } from '../_utils';
3
- import type { ProTableProps } from '../ProTable';
4
- import type { RecordType } from '../typing';
5
- import type { ProTablePagination, ProTabelFeachParams, ProTablePaginationConfig } from '../types/TableTypings';
6
- import type { ProColumns } from '../types/ColumnTypings';
3
+ import type { RecordType } from '@gx-design-vue/pro-utils';
4
+ import type { ProTableProps, ProTablePagination, ProTabelFeachParams, ProTablePaginationConfig } from '../types/TableTypings';
5
+ import type { ProColumnsType } from '../types/ColumnTypings';
7
6
  interface ActionType {
8
7
  getLoading: ComputedRef<boolean | SpinProps | undefined>;
9
8
  getPaginationInfo: ComputedRef<ProTablePagination>;
10
9
  setPagination: (info: Partial<ProTablePagination>) => void;
11
10
  setLoading: (loading: boolean | SpinProps) => void;
12
- setColumns: (columnList: ProColumns) => void;
11
+ setColumns: (columnList: ProColumnsType) => void;
13
12
  removeRowKeys: (keyList: (string | number)[]) => void;
14
13
  syncSelectedRows: (dataList: any[]) => void;
15
- columns: ComputedRef<ProColumns>;
14
+ columns: ComputedRef<ProColumnsType>;
16
15
  formParamsRef: RecordType;
17
16
  onBeforeSearchSubmit: ProTableProps['onBeforeSearchSubmit'];
18
17
  }
@@ -7,7 +7,7 @@ export declare function useLoading({ emit, loading }: {
7
7
  getLoading: import("vue").ComputedRef<boolean | {
8
8
  prefixCls?: string | undefined;
9
9
  spinning?: boolean | undefined;
10
- size?: "small" | "large" | "default" | undefined;
10
+ size?: "small" | "default" | "large" | undefined;
11
11
  wrapperClassName?: string | undefined;
12
12
  tip?: string | undefined;
13
13
  delay?: number | undefined;
@@ -1,6 +1,5 @@
1
1
  import type { Ref, Slots, ComputedRef } from 'vue';
2
- import type { ProTableProps } from '../ProTable';
3
- import type { ProTablePagination } from '../types/TableTypings';
2
+ import type { ProTableProps, ProTablePagination } from '../types/TableTypings';
4
3
  export declare function usePagination({ slots, props, pagination }: {
5
4
  slots: Slots;
6
5
  props: ComputedRef<ProTableProps>;
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
- import type { RecordType } from '../typing';
3
- import type { ProTableProps } from '../ProTable';
2
+ import type { RecordType } from '@gx-design-vue/pro-utils';
3
+ import type { ProTableProps } from '../types/TableTypings';
4
4
  export declare function useRowSelection(rowKey: Ref<ProTableProps['rowKey']>, rowSelection: Ref<ProTableProps['rowSelection']>): {
5
5
  selectedKey: Ref<(string | number)[]>;
6
6
  selectRowKey: (record: RecordType, selected: any[]) => void;
@@ -1,12 +1,11 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
- import type { RecordType } from '../typing';
3
- import type { ProTableProps } from '../ProTable';
4
- import type { SearchConfig } from '../types/TableTypings';
2
+ import type { RecordType } from '@gx-design-vue/pro-utils';
3
+ import type { ProTableProps } from '../types/TableTypings';
5
4
  import type { ProSearchMap } from '../types/ColumnTypings';
6
5
  export declare function handleFormDefaultValue(data: ProSearchMap[]): any;
7
6
  export declare function useTableForm({ search, searchMap, params, columns }: {
8
- search: Ref<SearchConfig>;
9
- searchMap: Ref<ProSearchMap[]>;
7
+ search: Ref<ProTableProps['search']>;
8
+ searchMap: Ref<ProTableProps['searchMap']>;
10
9
  params: Ref<ProTableProps['params']>;
11
10
  columns: ComputedRef<ProTableProps['columns']>;
12
11
  }): {
@@ -1,7 +1,7 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { Breakpoint } from '../typing';
3
- import type { ProTableProps } from '../ProTable';
4
- import type { ProColumns } from '../types/ColumnTypings';
3
+ import type { ProTableProps } from '../types/TableTypings';
4
+ import type { ProColumnsType } from '../types/ColumnTypings';
5
5
  declare type ConfigScroll = {
6
6
  scroll: ComputedRef<ProTableProps['scroll']>;
7
7
  autoScroll: ComputedRef<ProTableProps['autoScroll']>;
@@ -11,7 +11,7 @@ declare type ConfigScroll = {
11
11
  scrollBreakpoint: ComputedRef<ProTableProps['scrollBreakpoint']>;
12
12
  };
13
13
  declare type useTableScrollType = {
14
- columns: ComputedRef<ProColumns>;
14
+ columns: ComputedRef<ProColumnsType>;
15
15
  innerWidth: Ref<number>;
16
16
  screensRef: Ref<Partial<Record<Breakpoint, boolean>>>;
17
17
  } & ConfigScroll;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import './proTable.less';
6
6
  import './style.less';
7
7
  export { proTableProps } from './props';
8
8
  export { default } from './ProTable';
9
- export type { ProTableProps } from './ProTable';
9
+ export type { ProTableProps } from './types/TableTypings';
10
10
  export type { RequsetFunction, ProTableRef, ProCoreActionType, ProTabelFeachParams, ProCoreFormType } from './types/TableTypings';
11
- export type { ProColumn, ProColumns, ProSearchMap } from './types/ColumnTypings';
11
+ export type { ProColumnType, ProColumnsType, ProSearchMap } from './types/ColumnTypings';
12
12
  export { default as GProTable } from './ProTable';