@gx-design-vue/pro-table 0.2.0-beta.29 → 0.2.0-beta.30

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,6 +1,6 @@
1
1
  import type { CSSProperties } from 'vue';
2
2
  import type { Key } from './_utils';
3
- import type { OptionConfig } from './types/TableTypings';
3
+ import type { OptionConfig, SearchConfig } from './types/TableTypings';
4
4
  import type { ProColumnsType } from './types/ColumnTypings';
5
5
  import type { HeaderTitleRender, TitleTipRender, ToolBarBtnRender, CustomizeRender, SettingExtraRender, OptionsExtraRender } from './types/SlotsTypings';
6
6
  declare const GProTable: import("vue").DefineComponent<{
@@ -37,8 +37,8 @@ declare const GProTable: import("vue").DefineComponent<{
37
37
  default: number;
38
38
  };
39
39
  search: {
40
- type: import("vue").PropType<import("./types/TableTypings").SearchConfig | undefined>;
41
- default: () => import("./types/TableTypings").SearchConfig;
40
+ type: import("vue").PropType<boolean | SearchConfig | undefined>;
41
+ default: () => SearchConfig;
42
42
  };
43
43
  searchMap: {
44
44
  type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text">[] | undefined>;
@@ -238,12 +238,6 @@ declare const GProTable: import("vue").DefineComponent<{
238
238
  loading: {
239
239
  type: import("vue").PropType<boolean | Partial<import("vue").ExtractPropTypes<{
240
240
  prefixCls: StringConstructor;
241
- /**
242
- * @Author gx12358
243
- * @DateTime 2022/1/21
244
- * @lastTime 2022/1/21
245
- * @description Tabel-datasource hooks 方法
246
- */
247
241
  spinning: {
248
242
  type: BooleanConstructor;
249
243
  default: any;
@@ -449,8 +443,8 @@ declare const GProTable: import("vue").DefineComponent<{
449
443
  default: number;
450
444
  };
451
445
  search: {
452
- type: import("vue").PropType<import("./types/TableTypings").SearchConfig | undefined>;
453
- default: () => import("./types/TableTypings").SearchConfig;
446
+ type: import("vue").PropType<boolean | SearchConfig | undefined>;
447
+ default: () => SearchConfig;
454
448
  };
455
449
  searchMap: {
456
450
  type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap<"text">[] | undefined>;
@@ -650,12 +644,6 @@ declare const GProTable: import("vue").DefineComponent<{
650
644
  loading: {
651
645
  type: import("vue").PropType<boolean | Partial<import("vue").ExtractPropTypes<{
652
646
  prefixCls: StringConstructor;
653
- /**
654
- * @Author gx12358
655
- * @DateTime 2022/1/21
656
- * @lastTime 2022/1/21
657
- * @description Tabel-datasource hooks 方法
658
- */
659
647
  spinning: {
660
648
  type: BooleanConstructor;
661
649
  default: any;
@@ -878,12 +866,6 @@ declare const GProTable: import("vue").DefineComponent<{
878
866
  pagination: ((false | import("ant-design-vue").TablePaginationConfig) & import("./types/TableTypings").ProTablePagination) | undefined;
879
867
  loading: boolean | Partial<import("vue").ExtractPropTypes<{
880
868
  prefixCls: StringConstructor;
881
- /**
882
- * @Author gx12358
883
- * @DateTime 2022/1/21
884
- * @lastTime 2022/1/21
885
- * @description Tabel-datasource hooks 方法
886
- */
887
869
  spinning: {
888
870
  type: BooleanConstructor;
889
871
  default: any;
@@ -965,7 +947,7 @@ declare const GProTable: import("vue").DefineComponent<{
965
947
  waitRequest: boolean | undefined;
966
948
  debounceTime: number | undefined;
967
949
  request: import("./types/TableTypings").RequsetFunction<import("./typing").DefaultRecordType> | undefined;
968
- search: import("./types/TableTypings").SearchConfig | undefined;
950
+ search: boolean | SearchConfig | undefined;
969
951
  searchMap: import("./types/ColumnTypings").ProSearchMap<"text">[] | undefined;
970
952
  titleTip: TitleTipRender;
971
953
  headerTitle: HeaderTitleRender;
@@ -3,6 +3,7 @@ import type { FilterValue, SorterResult } from 'ant-design-vue/es/table/interfac
3
3
  import type { RecordType } from '@gx-design-vue/pro-utils';
4
4
  export type { TablePaginationConfig, TableRowSelection } from 'ant-design-vue/es/table/interface';
5
5
  export type { Key } from 'ant-design-vue/es/vc-table/interface';
6
+ export type { ChangeEvent } from 'ant-design-vue/es/_util/EventInterface';
6
7
  export type TableFilters = Record<string, FilterValue | null>;
7
8
  export type TableSorterRecord = SorterResult<RecordType>;
8
9
  export type TableSorter = TableSorterRecord | TableSorterRecord[];
@@ -1,10 +1,11 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { RecordType } from '@gx-design-vue/pro-utils';
3
+ import type { SearchConfig } from '../../types/TableTypings';
3
4
  import type { ProSearchMap } from '../../types/ColumnTypings';
4
5
  declare const ProTableForm: import("vue").DefineComponent<{
5
6
  search: {
6
- type: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
7
- default: () => import("../../types/TableTypings").SearchConfig;
7
+ type: PropType<SearchConfig>;
8
+ default: () => SearchConfig;
8
9
  };
9
10
  modal: PropType<boolean | undefined>;
10
11
  searchMap: {
@@ -16,8 +17,8 @@ declare const ProTableForm: import("vue").DefineComponent<{
16
17
  defaultParams: PropType<RecordType>;
17
18
  }, () => import("ant-design-vue/es/_util/type").VueNode, 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: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
20
- default: () => import("../../types/TableTypings").SearchConfig;
20
+ type: PropType<SearchConfig>;
21
+ default: () => SearchConfig;
21
22
  };
22
23
  modal: PropType<boolean | undefined>;
23
24
  searchMap: {
@@ -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 | undefined;
34
+ search: SearchConfig;
34
35
  searchMap: ProSearchMap<"text">[];
35
36
  }>;
36
37
  export default ProTableForm;
@@ -4,7 +4,6 @@ import type { SizeType } from '@gx-design-vue/pro-utils';
4
4
  import type { ProColumnsType } from '../types/ColumnTypings';
5
5
  import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
6
6
  import type { PaginationProps } from '../_utils';
7
- export type ContextType = any;
8
7
  export interface TableContextProps {
9
8
  columns?: ComputedRef<ProColumnsType>;
10
9
  cacheColumns?: ComputedRef<ProColumnsType>;
@@ -21,6 +20,6 @@ export interface TableContextProps {
21
20
  changeColumns: (map: Record<string, ColumnsState>, fixed: boolean) => void;
22
21
  [key: string]: any;
23
22
  }
24
- export declare const useContext: <T>(contextInjectKey?: string | InjectionKey<ContextType>, defaultValue?: ContextType) => T;
25
- export declare const provideTableContext: (value: TableContextProps | ComputedRef<TableContextProps>) => void;
26
- export declare const useTableContext: () => Required<TableContextProps>;
23
+ export declare const useContext: <T>(contextInjectKey?: string | InjectionKey<T>, defaultValue?: T | undefined) => T;
24
+ export declare const provideTableContext: (value: TableContextProps) => void;
25
+ export declare const useTableContext: (defaultValue?: Required<TableContextProps>) => Required<TableContextProps>;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { useTable } from './hooks/useTable';
2
2
  export { proTableProps } from './props';
3
3
  export { default } from './ProTable';
4
4
  export type { ProTableProps } from './types/TableTypings';
5
- export type { RequsetFunction, ProTableRef, ProCoreActionType, ProTabelFeachParams, ProCoreFormType, OptionConfig } from './types/TableTypings';
5
+ export type { RequsetFunction, ProTableRef, ProCoreActionType, ProTabelFeachParams, ProCoreFormType, OptionConfig, SearchConfig } from './types/TableTypings';
6
6
  export type { ProColumnType, ProColumnsType, ProSearchMap } from './types/ColumnTypings';
7
7
  export { useTable };
8
8
  export { default as GProTable } from './ProTable';