@gx-design-vue/pro-table 0.0.1 → 0.0.2-rc.2

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 (36) hide show
  1. package/dist/ProTable.d.ts +69 -90
  2. package/dist/_utils/ant-design-vue/pagination/typings.d.ts +1 -1
  3. package/dist/_utils/ant-design-vue/table/props.d.ts +1 -1
  4. package/dist/_utils/index.d.ts +0 -1
  5. package/dist/components/ColumnSetting/index.d.ts +1 -0
  6. package/dist/components/Form/index.d.ts +1 -0
  7. package/dist/components/Form/useForm.d.ts +1 -0
  8. package/dist/components/ListToolBar/index.d.ts +13 -12
  9. package/dist/components/ToolBar/index.d.ts +1 -0
  10. package/dist/context/TableContext.d.ts +2 -1
  11. package/dist/hooks/useDebounceFn.d.ts +1 -5
  12. package/dist/hooks/useFetchData.d.ts +5 -4
  13. package/dist/hooks/useLoading.d.ts +1 -1
  14. package/dist/hooks/useRowSelection.d.ts +1 -0
  15. package/dist/hooks/useTableForm.d.ts +1 -0
  16. package/dist/hooks/useTableScroll.d.ts +1 -0
  17. package/dist/hooks/useTableSize.d.ts +1 -1
  18. package/dist/index.d.ts +2 -1
  19. package/dist/pro-table.mjs +1193 -1324
  20. package/dist/pro-table.umd.js +1 -1
  21. package/dist/props.d.ts +38 -20
  22. package/dist/types/column.d.ts +2 -1
  23. package/dist/types/table.d.ts +9 -8
  24. package/dist/typing.d.ts +9 -0
  25. package/dist/utils/config.d.ts +1 -0
  26. package/package.json +7 -8
  27. package/dist/_utils/ant-design-vue/table/typings.d.ts +0 -11
  28. package/dist/_utils/gx-design-vue/extract-public-props.d.ts +0 -7
  29. package/dist/_utils/gx-design-vue/index.d.ts +0 -2
  30. package/dist/_utils/gx-design-vue/typings.d.ts +0 -1
  31. package/dist/hooks/core/index.d.ts +0 -3
  32. package/dist/hooks/core/useMemo.d.ts +0 -10
  33. package/dist/hooks/core/useTimeout.d.ts +0 -11
  34. package/dist/typings/components.d.ts +0 -6
  35. package/dist/utils/index.d.ts +0 -86
  36. package/dist/utils/validate.d.ts +0 -25
@@ -1,10 +0,0 @@
1
- import type { ComputedRef, WritableComputedRef } from 'vue';
2
- declare type MemoGetter<T> = () => T;
3
- declare type MemoSetter<T> = (v: T) => void;
4
- interface WritableMemoOptions<T> {
5
- get: MemoGetter<T>;
6
- set: MemoSetter<T>;
7
- }
8
- declare function useMemo<T>(getter: MemoGetter<T>): ComputedRef<T>;
9
- declare function useMemo<T>(options: WritableMemoOptions<T>): WritableComputedRef<T>;
10
- export default useMemo;
@@ -1,11 +0,0 @@
1
- export declare function tryOnUnmounted(fn: Fn): void;
2
- export declare function useTimeoutFn(handle: Fn<any>, wait: number, native?: boolean): {
3
- readyRef: import("vue").Ref<boolean>;
4
- stop: () => void;
5
- start: () => void;
6
- };
7
- export declare function useTimeoutRef(wait: number): {
8
- readyRef: import("vue").Ref<boolean>;
9
- stop: () => void;
10
- start: () => void;
11
- };
@@ -1,6 +0,0 @@
1
- declare module 'vue' {
2
- interface GlobalComponents {
3
- ProTable: typeof import('gx-design-vue')['ProTable'];
4
- }
5
- }
6
- export {};
@@ -1,86 +0,0 @@
1
- import type { ProTablePagination } from '../types/table';
2
- import type { AlignType } from '../_utils';
3
- import type { ProSearchMap } from '../types/column';
4
- import type { ProColumns } from '../types/column';
5
- export declare const proTableSlots: string[];
6
- /**
7
- * 根据 key 和 dataIndex 生成唯一 id
8
- *
9
- * @param key 用户设置的 key
10
- * @param dataIndex 在对象中的数据
11
- * @param index 序列号,理论上唯一
12
- */
13
- export declare const genColumnKey: (key?: string | number | undefined, index?: number) => string;
14
- export declare function handleShowIndex(columns: ProColumns, { align, showIndex }: {
15
- align: AlignType;
16
- showIndex: boolean;
17
- }): ProColumns;
18
- export declare function handleFormDefaultValue(data: ProSearchMap[]): any;
19
- /**
20
- * @Author gx12358
21
- * @DateTime 2021/11/3
22
- * @lastTime 2021/11/3
23
- * @description 如果是个方法执行一下它
24
- */
25
- export declare function runFunction<T extends any[]>(valueEnum: any, ...rest: T): any;
26
- /**
27
- * @Author gx12358
28
- * @DateTime 2022/10/11
29
- * @lastTime 2022/10/11
30
- * @description 简单深拷贝下
31
- */
32
- export declare function deepCopy(data: object | any[]): any;
33
- /**
34
- * @Author gx12358
35
- * @DateTime 2021/1/28
36
- * @lastTime 2021/1/28
37
- * @description 判断删除是否到当前页最后一条
38
- */
39
- export declare function handleCurrentPage(pageConfig: {
40
- current: number;
41
- pageSize: number | undefined;
42
- total: number | undefined;
43
- } | undefined, number: number): number;
44
- /**
45
- * @Author gaoxiang
46
- * @DateTime 2020/7/24
47
- * @lastTime 2020/7/24
48
- * @description 数组(树形)添加序号
49
- */
50
- export declare function getSortIndex(data?: any[], pageConfig?: ProTablePagination, childrenKey?: string): any;
51
- /**
52
- * @Author gaoxiang
53
- * @DateTime 2019/11/29
54
- * @lastTime 2019/11/29
55
- * @description 排序(从小到大)
56
- */
57
- export declare function compareToMax(obj1: RecordType, obj2: RecordType, key: string): number;
58
- /**
59
- * @Author gaoxiang
60
- * @DateTime 2019/12/11
61
- * @lastTime 2019/12/11
62
- * @description 数组去重
63
- */
64
- export declare function arrayRepeat(data: any[]): any;
65
- /**
66
- * @Author gaoxiang
67
- * @DateTime 2020/8/26
68
- * @lastTime 2020/8/26
69
- * @description 处理表格字段为空
70
- */
71
- export declare function hanndleField(str: any, customize: any): {
72
- value: any;
73
- success: boolean;
74
- };
75
- /**
76
- * @Author gaoxiang
77
- * @DateTime 2019/11/29
78
- * @lastTime 2019/11/29
79
- * @description 随机uuid
80
- */
81
- export declare function getRandomNumber(): {
82
- uuid(len?: number, rad?: number): any;
83
- uuidFast(): string;
84
- uuidString(): string;
85
- uuidCompact(): string;
86
- };
@@ -1,25 +0,0 @@
1
- export declare function is(val: unknown, type: string): boolean;
2
- export declare function isBoolean(val: unknown): val is boolean;
3
- export declare function isNumber(val: unknown): boolean;
4
- /**
5
- * @author gx12358 2539306317@qq.com
6
- * @description 判断是否是数组
7
- * @param arg
8
- * @returns {arg is any[]|boolean}
9
- */
10
- export declare function isArray(arg: unknown): boolean;
11
- /**
12
- * @Author gaoxiang
13
- * @DateTime 2019/11/29
14
- * @lastTime 2019/11/29
15
- * @description 是否是对象
16
- */
17
- export declare function isObject(val: any): val is Record<any, any>;
18
- /**
19
- * @author gx12358 2539306317@qq.com
20
- * @description 判断是否是字符串
21
- * @param value
22
- * @returns {boolean}
23
- */
24
- export declare function isString(value: unknown): boolean;
25
- export declare function isFunction(func: any): boolean;