@gx-design-vue/pro-table 0.2.0-beta.91 → 0.2.0-beta.93

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.
@@ -25,7 +25,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  default: null;
26
26
  };
27
27
  virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
28
- params: import("vue").PropType<ProTableProps["params"]>;
28
+ params: {
29
+ type: import("vue").PropType<ProTableProps["params"]>;
30
+ default: () => {};
31
+ };
29
32
  waitRequest: {
30
33
  type: import("vue").PropType<ProTableProps["waitRequest"]>;
31
34
  default: boolean;
@@ -98,6 +101,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
98
101
  type: import("vue").PropType<ProTableProps["showIndex"]>;
99
102
  default: boolean;
100
103
  };
104
+ cardBordered: {
105
+ type: import("vue").PropType<ProTableProps["showIndex"]>;
106
+ default: boolean;
107
+ };
101
108
  pageItemRender: {
102
109
  type: import("vue").PropType<ProTableProps["pageItemRender"]>;
103
110
  default: () => undefined;
@@ -172,7 +179,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
172
179
  default: null;
173
180
  };
174
181
  virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
175
- params: import("vue").PropType<ProTableProps["params"]>;
182
+ params: {
183
+ type: import("vue").PropType<ProTableProps["params"]>;
184
+ default: () => {};
185
+ };
176
186
  waitRequest: {
177
187
  type: import("vue").PropType<ProTableProps["waitRequest"]>;
178
188
  default: boolean;
@@ -245,6 +255,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
245
255
  type: import("vue").PropType<ProTableProps["showIndex"]>;
246
256
  default: boolean;
247
257
  };
258
+ cardBordered: {
259
+ type: import("vue").PropType<ProTableProps["showIndex"]>;
260
+ default: boolean;
261
+ };
248
262
  pageItemRender: {
249
263
  type: import("vue").PropType<ProTableProps["pageItemRender"]>;
250
264
  default: () => undefined;
@@ -337,8 +351,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
337
351
  rowSelection: import("./types/TableTypings").ProTableRowSelection;
338
352
  'onUpdate:expandedRowKeys': (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
339
353
  customRender: import("./types/SlotsTypings").CustomDataRender | undefined;
340
- align: "left" | "right" | "center" | undefined;
341
- search: boolean | SearchConfig | undefined;
354
+ align: "center" | "left" | "right" | undefined;
355
+ search: false | SearchConfig | undefined;
342
356
  headerTitle: DefaultRender;
343
357
  toolBarBtn: DefaultRender;
344
358
  titleTip: DefaultRender;
@@ -359,10 +373,12 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
359
373
  columnEmptyText: import("./types/TableTypings").ProFieldEmptyText | undefined;
360
374
  showLoading: boolean | undefined;
361
375
  showIndex: boolean | undefined;
376
+ cardBordered: boolean | undefined;
362
377
  options: boolean | OptionConfig | undefined;
363
378
  waitRequest: boolean | undefined;
364
379
  debounceTime: number | undefined;
365
380
  request: import("./types/TableTypings").RequsetFunction<import("./typing").DefaultRecordType, import("./typing").DefaultRecordType> | undefined;
381
+ params: import("./typing").DefaultRecordType | undefined;
366
382
  searchMap: import("./types/ColumnTypings").ProSearchMap<undefined, string>[] | undefined;
367
383
  }, SlotsType<{
368
384
  search(): void;
@@ -1,37 +1,54 @@
1
1
  import type { PropType } from 'vue';
2
2
  import { RecordType } from '@gx-design-vue/pro-utils';
3
- import type { SearchConfig } from '../../types/TableTypings';
4
3
  import type { ProSearchMap } from '../../types/ColumnTypings';
5
4
  declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- search: {
7
- type: PropType<SearchConfig>;
8
- default: () => SearchConfig;
9
- };
10
5
  modal: PropType<boolean | undefined>;
11
6
  searchMap: {
12
7
  type: PropType<ProSearchMap[]>;
13
8
  default: () => never[];
14
9
  };
15
- loading: PropType<boolean>;
10
+ loading: {
11
+ type: PropType<boolean | import("ant-design-vue").SpinProps>;
12
+ default: undefined;
13
+ };
14
+ cardBordered: {
15
+ type: PropType<import("../../types/TableTypings").ProTableProps["showIndex"]>;
16
+ default: boolean;
17
+ };
16
18
  prefixCls: PropType<string>;
17
19
  defaultParams: PropType<RecordType>;
18
- }>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "search"[], "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
- search: {
20
- type: PropType<SearchConfig>;
21
- default: () => SearchConfig;
22
- };
20
+ onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
21
+ }>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
22
  modal: PropType<boolean | undefined>;
24
23
  searchMap: {
25
24
  type: PropType<ProSearchMap[]>;
26
25
  default: () => never[];
27
26
  };
28
- loading: PropType<boolean>;
27
+ loading: {
28
+ type: PropType<boolean | import("ant-design-vue").SpinProps>;
29
+ default: undefined;
30
+ };
31
+ cardBordered: {
32
+ type: PropType<import("../../types/TableTypings").ProTableProps["showIndex"]>;
33
+ default: boolean;
34
+ };
29
35
  prefixCls: PropType<string>;
30
36
  defaultParams: PropType<RecordType>;
31
- }>> & Readonly<{
32
- onSearch?: ((...args: any[]) => any) | undefined;
33
- }>, {
34
- search: SearchConfig;
37
+ onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
38
+ }>> & Readonly<{}>, {
39
+ loading: boolean | Partial<import("vue").ExtractPropTypes<{
40
+ prefixCls: StringConstructor;
41
+ spinning: {
42
+ type: BooleanConstructor;
43
+ default: any;
44
+ };
45
+ size: PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
46
+ wrapperClassName: StringConstructor;
47
+ tip: import("vue-types").VueTypeValidableDef<any>;
48
+ delay: NumberConstructor;
49
+ indicator: import("vue-types").VueTypeValidableDef<any>;
50
+ }>>;
51
+ cardBordered: boolean | undefined;
35
52
  searchMap: ProSearchMap[];
36
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
54
  export default ProTableForm;
@@ -1,5 +1,6 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { SizeType } from '@gx-design-vue/pro-utils';
3
+ import type { SearchConfig } from '../types/TableTypings';
3
4
  import type { ProColumnsType } from '../types/ColumnTypings';
4
5
  import type { Slots } from '../types/SlotsTypings';
5
6
  import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
@@ -7,6 +8,9 @@ import type { PaginationProps } from '../_utils';
7
8
  export interface ProTableContextProps {
8
9
  columns: ComputedRef<ProColumnsType>;
9
10
  isMobile: ComputedRef<boolean>;
11
+ searchConfig: ComputedRef<SearchConfig>;
12
+ searchActions: ComputedRef<SearchConfig['actions']>;
13
+ manualSearch: ComputedRef<boolean>;
10
14
  cacheColumns: ComputedRef<ProColumnsType>;
11
15
  tableSize: Ref<SizeType>;
12
16
  action: {
@@ -19,7 +23,6 @@ export interface ProTableContextProps {
19
23
  settingsAction: SettingsAction;
20
24
  slots: Slots;
21
25
  changeColumns: (map: Record<string, ColumnsState>, fixed: boolean) => void;
22
- [key: string]: any;
23
26
  }
24
27
  declare const provideTableContext: (value: ProTableContextProps) => void, useTableContext: (injectDefaultValue?: ProTableContextProps | undefined) => ProTableContextProps;
25
28
  export { provideTableContext, useTableContext, };
@@ -1,11 +1,11 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils/ant-design-vue/table/typings';
3
- import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps } from '../types/TableTypings';
3
+ import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
4
4
  import type { DefaultRecordType } from '../typing';
5
5
  import type { ProColumnsType } from '../types/ColumnTypings';
6
6
  interface ActionType {
7
7
  loading: ComputedRef<boolean | undefined>;
8
- search: Ref<ProTableProps['search']>;
8
+ search: ComputedRef<SearchConfig | false>;
9
9
  paginationInfo: Ref<ProTablePagination>;
10
10
  setPagination: (info: Partial<ProTablePagination>) => void;
11
11
  setLoading: (loading: boolean) => void;