@gx-design-vue/pro-table 0.2.0-beta.0 → 0.2.0-beta.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 +284 -142
- package/dist/_utils/ant-design-vue/index.d.ts +1 -0
- package/dist/_utils/ant-design-vue/spin/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +27 -3
- package/dist/components/ColumnSetting/style.d.ts +6 -0
- package/dist/components/Form/index.d.ts +1 -2
- package/dist/components/Form/style.d.ts +6 -0
- package/dist/components/ListToolBar/index.d.ts +1 -2
- package/dist/components/ListToolBar/style.d.ts +6 -0
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -2
- package/dist/components/ToolBar/index.d.ts +0 -1
- package/dist/hooks/useFetchData.d.ts +3 -3
- package/dist/hooks/useLoading.d.ts +2 -10
- package/dist/hooks/useRowSelection.d.ts +2 -2
- package/dist/index.d.ts +0 -6
- package/dist/pro-table.mjs +30068 -17925
- package/dist/pro-table.umd.js +286 -19
- package/dist/props.d.ts +133 -72
- package/dist/style.d.ts +7 -0
- package/dist/types/TableTypings.d.ts +2 -3
- package/package.json +7 -9
- package/dist/_utils/typings.d.ts +0 -9
- package/dist/components/ColumnSetting/style.less +0 -93
- package/dist/components/Form/style.less +0 -35
- package/dist/components/ListToolBar/style.less +0 -63
- package/dist/components/ToolBar/style.less +0 -16
- package/dist/design/ant-design-theme.less +0 -3
- package/dist/design/ant-design-vue.less +0 -19
- package/dist/design/config.less +0 -2
- package/dist/proTable.less +0 -5
- package/dist/style/index.less +0 -186
- package/dist/style/table.less +0 -34
- package/dist/style.css +0 -1
- package/dist/style.less +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SpinProps } from 'ant-design-vue';
|
package/dist/_utils/index.d.ts
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
2
|
import type { SettingExtraRender } from '../../types/SlotsTypings';
|
|
3
|
-
import './style.less';
|
|
4
3
|
export type ColumnSettingProps = {
|
|
5
4
|
draggable?: boolean;
|
|
6
5
|
checkable?: boolean;
|
|
7
6
|
extra?: SettingExtraRender;
|
|
8
7
|
checkedReset?: boolean;
|
|
9
8
|
};
|
|
10
|
-
declare const ColumnSetting:
|
|
9
|
+
declare const ColumnSetting: import("vue").DefineComponent<{
|
|
10
|
+
draggable: {
|
|
11
|
+
type: PropType<boolean | undefined>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
checkable: {
|
|
15
|
+
type: PropType<boolean | undefined>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
checkedReset: PropType<boolean | undefined>;
|
|
19
|
+
extra: PropType<SettingExtraRender>;
|
|
20
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
draggable: {
|
|
22
|
+
type: PropType<boolean | undefined>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
checkable: {
|
|
26
|
+
type: PropType<boolean | undefined>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
checkedReset: PropType<boolean | undefined>;
|
|
30
|
+
extra: PropType<SettingExtraRender>;
|
|
31
|
+
}>>, {
|
|
32
|
+
checkable: boolean | undefined;
|
|
33
|
+
draggable: boolean | undefined;
|
|
34
|
+
}>;
|
|
11
35
|
export default ColumnSetting;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
2
|
+
export interface ProToken extends ProAliasToken {
|
|
3
|
+
componentCls: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: (_prefixCls?: string | import("vue").Ref<string> | undefined) => import("ant-design-vue/es/theme/internal").UseComponentStyleResult;
|
|
6
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import type { ProSearchMap } from '../../types/ColumnTypings';
|
|
4
|
-
import './style.less';
|
|
5
4
|
declare const ProTableForm: import("vue").DefineComponent<{
|
|
6
5
|
search: {
|
|
7
6
|
type: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
|
|
@@ -15,7 +14,7 @@ declare const ProTableForm: import("vue").DefineComponent<{
|
|
|
15
14
|
loading: PropType<boolean>;
|
|
16
15
|
prefixCls: PropType<string>;
|
|
17
16
|
defaultParams: PropType<RecordType>;
|
|
18
|
-
}, () =>
|
|
17
|
+
}, () => 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<{
|
|
19
18
|
search: {
|
|
20
19
|
type: PropType<import("../../types/TableTypings").SearchConfig | undefined>;
|
|
21
20
|
default: () => import("../../types/TableTypings").SearchConfig;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
2
|
+
export interface ProToken extends ProAliasToken {
|
|
3
|
+
componentCls: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: (_prefixCls?: string | import("vue").Ref<string> | undefined) => import("ant-design-vue/es/theme/internal").UseComponentStyleResult;
|
|
6
|
+
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { VueNode } from '@gx-design-vue/pro-utils';
|
|
3
|
-
import './style.less';
|
|
4
3
|
export type ListToolBarSetting = {
|
|
5
4
|
icon: VueNode;
|
|
6
5
|
tooltip?: string;
|
|
@@ -30,7 +29,7 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
30
29
|
type: PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
|
|
31
30
|
default: () => undefined;
|
|
32
31
|
};
|
|
33
|
-
}, () =>
|
|
32
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
33
|
actions: {
|
|
35
34
|
type: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
36
35
|
default: () => undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
2
|
+
export interface ProToken extends ProAliasToken {
|
|
3
|
+
componentCls: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: (_prefixCls?: string | import("vue").Ref<string> | undefined) => import("ant-design-vue/es/theme/internal").UseComponentStyleResult;
|
|
6
|
+
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const FullScreenIcon: FC;
|
|
1
|
+
declare const FullScreenIcon: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
2
|
export default FullScreenIcon;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableSorter } from '../_utils';
|
|
3
3
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
4
4
|
import type { ProTableProps, ProTablePagination, ProTabelFeachParams, ProTablePaginationConfig } from '../types/TableTypings';
|
|
5
5
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
6
6
|
interface ActionType {
|
|
7
|
-
getLoading: ComputedRef<boolean |
|
|
7
|
+
getLoading: ComputedRef<boolean | undefined>;
|
|
8
8
|
getPaginationInfo: ComputedRef<ProTablePagination>;
|
|
9
9
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
10
|
-
setLoading: (loading: boolean
|
|
10
|
+
setLoading: (loading: boolean) => void;
|
|
11
11
|
setColumns: (columnList: ProColumnsType) => void;
|
|
12
12
|
removeRowKeys: (keyList: (string | number)[]) => void;
|
|
13
13
|
syncSelectedRows: (dataList: any[]) => void;
|
|
@@ -4,14 +4,6 @@ export declare function useLoading({ emit, loading }: {
|
|
|
4
4
|
loading: Ref<boolean | SpinProps | undefined>;
|
|
5
5
|
emit: any;
|
|
6
6
|
}): {
|
|
7
|
-
getLoading: import("vue").ComputedRef<boolean
|
|
8
|
-
|
|
9
|
-
spinning?: boolean | undefined;
|
|
10
|
-
size?: "small" | "default" | "large" | undefined;
|
|
11
|
-
wrapperClassName?: string | undefined;
|
|
12
|
-
tip?: string | undefined;
|
|
13
|
-
delay?: number | undefined;
|
|
14
|
-
indicator?: any;
|
|
15
|
-
}>;
|
|
16
|
-
setLoading: (loading: boolean | SpinProps) => void;
|
|
7
|
+
getLoading: import("vue").ComputedRef<boolean>;
|
|
8
|
+
setLoading: (loading: boolean) => void;
|
|
17
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
3
|
-
import type { ProTableProps } from '../types/TableTypings';
|
|
4
|
-
export declare function useRowSelection(rowKey: Ref<ProTableProps['rowKey']>, rowSelection: Ref<
|
|
3
|
+
import type { ProTableProps, ProTableRowSelection } from '../types/TableTypings';
|
|
4
|
+
export declare function useRowSelection(rowKey: Ref<ProTableProps['rowKey']>, rowSelection: Ref<ProTableRowSelection | undefined>): {
|
|
5
5
|
selectedKey: Ref<(string | number)[]>;
|
|
6
6
|
selectRowKey: (record: RecordType, selected: any[]) => void;
|
|
7
7
|
selectAllRowKey: (selected: any[], selectedRows: any[], changeRows: any[]) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import './design/config.less';
|
|
2
|
-
import './design/ant-design-theme.less';
|
|
3
|
-
import './design/ant-design-vue.less';
|
|
4
|
-
import './style/table.less';
|
|
5
|
-
import './proTable.less';
|
|
6
|
-
import './style.less';
|
|
7
1
|
import { useTable } from './hooks/useTable';
|
|
8
2
|
export { proTableProps } from './props';
|
|
9
3
|
export { default } from './ProTable';
|