@gx-design-vue/pro-table 0.0.2-rc.1 → 0.0.2-rc.10
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.
- package/dist/ProTable.d.ts +84 -113
- package/dist/_utils/ant-design-vue/pagination/typings.d.ts +1 -1
- package/dist/_utils/ant-design-vue/table/props.d.ts +2 -1
- package/dist/_utils/ant-design-vue/table/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +1 -0
- package/dist/components/ColumnSetting/style.less +1 -3
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/style.less +1 -8
- package/dist/components/Form/useForm.d.ts +1 -0
- package/dist/components/ListToolBar/index.d.ts +13 -12
- package/dist/components/ListToolBar/style.less +1 -0
- package/dist/components/ToolBar/index.d.ts +1 -0
- package/dist/components/ToolBar/style.less +1 -28
- package/dist/context/TableContext.d.ts +2 -1
- package/dist/design/ant-design-theme.less +4 -0
- package/dist/design/ant-design-vue.less +19 -0
- package/dist/design/config.less +0 -5
- package/dist/hooks/useDebounceFn.d.ts +1 -5
- package/dist/hooks/useFetchData.d.ts +5 -4
- package/dist/hooks/useLoading.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +1 -0
- package/dist/hooks/useTableForm.d.ts +1 -0
- package/dist/hooks/useTableScroll.d.ts +1 -0
- package/dist/hooks/useTableSize.d.ts +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/pro-table.less +5 -0
- package/dist/pro-table.mjs +752 -748
- package/dist/pro-table.umd.js +1 -1
- package/dist/props.d.ts +27 -21
- package/dist/style/index.less +9 -0
- package/dist/style/table.less +0 -8
- package/dist/style.css +1 -1
- package/dist/style.less +3 -5
- package/dist/types/column.d.ts +1 -0
- package/dist/types/table.d.ts +18 -12
- package/dist/typing.d.ts +9 -0
- package/package.json +11 -13
- package/dist/_utils/gx-design-vue/extract-public-props.d.ts +0 -7
- package/dist/_utils/gx-design-vue/index.d.ts +0 -2
- package/dist/_utils/gx-design-vue/typings.d.ts +0 -1
- package/dist/hooks/core/index.d.ts +0 -3
- package/dist/hooks/core/useMemo.d.ts +0 -10
- package/dist/hooks/core/useTimeout.d.ts +0 -11
- package/dist/typings/components.d.ts +0 -6
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import 'ant-design-vue/es/empty/style/index.less';
|
|
2
|
+
@import 'ant-design-vue/es/tree/style/index.less';
|
|
3
|
+
@import 'ant-design-vue/es/checkbox/style/index.less';
|
|
4
|
+
@import 'ant-design-vue/es/grid/style/index.less';
|
|
5
|
+
@import 'ant-design-vue/es/pagination/style/index.less';
|
|
6
|
+
@import 'ant-design-vue/es/spin/style/index.less';
|
|
7
|
+
@import 'ant-design-vue/es/space/style/index.less';
|
|
8
|
+
@import 'ant-design-vue/es/table/style/index.less';
|
|
9
|
+
@import 'ant-design-vue/es/tree-select/style/index.less';
|
|
10
|
+
@import 'ant-design-vue/es/button/style/index.less';
|
|
11
|
+
@import 'ant-design-vue/es/form/style/index.less';
|
|
12
|
+
@import 'ant-design-vue/es/select/style/index.less';
|
|
13
|
+
@import 'ant-design-vue/es/time-picker/style/index.less';
|
|
14
|
+
@import 'ant-design-vue/es/date-picker/style/index.less';
|
|
15
|
+
@import 'ant-design-vue/es/input/style/index.less';
|
|
16
|
+
@import 'ant-design-vue/es/menu/style/index.less';
|
|
17
|
+
@import 'ant-design-vue/es/popover/style/index.less';
|
|
18
|
+
@import 'ant-design-vue/es/dropdown/style/index.less';
|
|
19
|
+
@import 'ant-design-vue/es/tooltip/style/index.less';
|
package/dist/design/config.less
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { ProTabelFeachParams } from '../types/table';
|
|
2
1
|
export declare type ReturnValue<T extends any[]> = {
|
|
3
2
|
run: (...args: T) => void;
|
|
4
3
|
cancel: () => void;
|
|
5
4
|
};
|
|
6
|
-
declare function useDebounceFn<T extends any[]>(fn: (...args: T) => Promise<any>, wait?: number):
|
|
7
|
-
cancel: () => void;
|
|
8
|
-
run: (...args: ProTabelFeachParams[]) => Promise<void>;
|
|
9
|
-
};
|
|
5
|
+
declare function useDebounceFn<T extends any[]>(fn: (...args: T) => Promise<any>, wait?: number): ReturnValue<T>;
|
|
10
6
|
export default useDebounceFn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { SpinProps } from '../_utils';
|
|
3
3
|
import type { ProTableProps } from '../ProTable';
|
|
4
|
+
import type { RecordType } from '../typing';
|
|
4
5
|
import type { ProTablePagination, ProTablePaginationConfig } from '../types/table';
|
|
5
6
|
import type { ProColumns } from '../types/column';
|
|
6
7
|
interface ActionType {
|
|
@@ -12,7 +13,7 @@ interface ActionType {
|
|
|
12
13
|
removeRowKeys: (keyList: (string | number)[]) => void;
|
|
13
14
|
columns: ComputedRef<ProColumns>;
|
|
14
15
|
formParamsRef: RecordType;
|
|
15
|
-
|
|
16
|
+
onBeforeSearchSubmit: ProTableProps['onBeforeSearchSubmit'];
|
|
16
17
|
}
|
|
17
18
|
export declare type ConfigFetchData = {
|
|
18
19
|
polling: ComputedRef<ProTableProps['polling']>;
|
|
@@ -23,13 +24,13 @@ export declare type ConfigFetchData = {
|
|
|
23
24
|
dataSource: ComputedRef<ProTableProps['dataSource']>;
|
|
24
25
|
};
|
|
25
26
|
export declare function useConfigFetchData(props: ProTableProps): ConfigFetchData;
|
|
26
|
-
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime, }: ConfigFetchData, { columns, getLoading, setLoading, setColumns, removeRowKeys, formParamsRef, setPagination, getPaginationInfo,
|
|
27
|
+
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime, }: ConfigFetchData, { columns, getLoading, setLoading, setColumns, removeRowKeys, formParamsRef, setPagination, getPaginationInfo, onBeforeSearchSubmit }: ActionType, emit: any): {
|
|
27
28
|
getDataSourceRef: ComputedRef<RecordType[]>;
|
|
28
29
|
isTreeDataRef: ComputedRef<boolean>;
|
|
29
30
|
reSetDataList: (list: RecordType[]) => void;
|
|
30
|
-
changeDataValue: ({ key,
|
|
31
|
+
changeDataValue: ({ key, params }: {
|
|
31
32
|
key?: string | undefined;
|
|
32
|
-
|
|
33
|
+
params: RecordType;
|
|
33
34
|
}) => void;
|
|
34
35
|
handleTableChange: (pagination: ProTablePaginationConfig, filters: any, sorter: any) => void;
|
|
35
36
|
reload: (info?: any) => Promise<void>;
|
|
@@ -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" | "
|
|
10
|
+
size?: "small" | "large" | "default" | undefined;
|
|
11
11
|
wrapperClassName?: string | undefined;
|
|
12
12
|
tip?: string | undefined;
|
|
13
13
|
delay?: number | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
+
import type { RecordType } from '../typing';
|
|
2
3
|
import type { ProTableProps } from '../ProTable';
|
|
3
4
|
export declare function useRowSelection(rowKey: Ref<ProTableProps['rowKey']>, rowSelection: Ref<ProTableProps['rowSelection']>): {
|
|
4
5
|
selectedKey: Ref<(string | number)[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import './design/config.less';
|
|
2
|
+
import './design/ant-design-theme.less';
|
|
3
|
+
import './design/ant-design-vue.less';
|
|
2
4
|
import './style/table.less';
|
|
5
|
+
import './pro-table.less';
|
|
3
6
|
import './style.less';
|
|
4
|
-
export { default as ProTable } from './ProTable';
|
|
5
7
|
export { proTableProps } from './props';
|
|
8
|
+
export { default } from './ProTable';
|
|
6
9
|
export type { ProTableProps } from './ProTable';
|
|
10
|
+
export { default as ProTable } from './ProTable';
|