@gx-design-vue/pro-table 0.2.0-beta.3 → 0.2.0-beta.5
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 +271 -139
- 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/index.d.ts +0 -1
- package/dist/hooks/useRowSelection.d.ts +2 -2
- package/dist/index.d.ts +0 -6
- package/dist/pro-table.mjs +28154 -18356
- package/dist/pro-table.umd.js +250 -19
- package/dist/props.d.ts +132 -71
- package/dist/style.d.ts +7 -0
- package/dist/types/TableTypings.d.ts +2 -3
- package/package.json +6 -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
|
@@ -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,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';
|