@gx-design-vue/pro-table 0.2.0-beta.14 → 0.2.0-beta.140
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 +293 -823
- package/dist/_utils/ant-design-vue/index.d.ts +4 -2
- package/dist/_utils/ant-design-vue/input/typings.d.ts +1 -0
- package/dist/_utils/ant-design-vue/table/props.d.ts +37 -2
- package/dist/_utils/ant-design-vue/table/typings.d.ts +6 -5
- package/dist/_utils/ant-design-vue/tooltip/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +1 -1
- package/dist/components/Form/components/RequestSelect.d.ts +39 -0
- package/dist/components/Form/{useForm.d.ts → hooks/useForm.d.ts} +2 -2
- package/dist/components/Form/index.d.ts +19 -28
- package/dist/components/Form/style.d.ts +1 -1
- package/dist/components/Form/utils/config.d.ts +5 -0
- package/dist/components/Form/utils/dateFormat.d.ts +20 -0
- package/dist/components/ListToolBar/index.d.ts +32 -39
- package/dist/components/ListToolBar/style.d.ts +1 -1
- package/dist/components/ScrollBar/Bar/index.d.ts +44 -0
- package/dist/components/ScrollBar/Bar/props.d.ts +21 -0
- package/dist/components/ScrollBar/Thumb/index.d.ts +35 -0
- package/dist/components/ScrollBar/Thumb/props.d.ts +16 -0
- package/dist/components/ScrollBar/context.d.ts +10 -0
- package/dist/components/ScrollBar/util.d.ts +29 -0
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -1
- package/dist/components/ToolBar/index.d.ts +24 -25
- package/dist/context/TableContext.d.ts +18 -17
- package/dist/hooks/tryOnActivated.d.ts +2 -0
- package/dist/hooks/useColumns.d.ts +18 -0
- package/dist/hooks/useDebounceFn.d.ts +2 -2
- package/dist/hooks/useFetchData.d.ts +24 -17
- package/dist/hooks/useLoading.d.ts +5 -8
- package/dist/hooks/usePagination.d.ts +7 -6
- package/dist/hooks/useRowSelection.d.ts +11 -8
- package/dist/hooks/useScrollArea.d.ts +15 -0
- package/dist/hooks/useTable.d.ts +57 -11
- package/dist/hooks/useTableForm.d.ts +72 -10
- package/dist/hooks/useTableScroll.d.ts +14 -20
- package/dist/hooks/useTableSize.d.ts +4 -7
- package/dist/index.d.ts +8 -7
- package/dist/pro-table.js +2735 -0
- package/dist/pro-table.umd.cjs +12 -0
- package/dist/props.d.ts +129 -390
- package/dist/{components/ColumnSetting/style.d.ts → style/fit-page.d.ts} +2 -2
- package/dist/style/index.d.ts +6 -0
- package/dist/{style.d.ts → style/list.d.ts} +2 -2
- package/dist/style/scroll.d.ts +3 -0
- package/dist/types/ColumnTypings.d.ts +54 -16
- package/dist/types/SlotsTypings.d.ts +47 -9
- package/dist/types/TableTypings.d.ts +171 -80
- package/dist/utils/utils.d.ts +5 -1
- package/package.json +33 -52
- package/volar.d.ts +3 -3
- package/dist/components/ColumnSetting/hooks/useRefFunction/index.d.ts +0 -1
- package/dist/components/ColumnSetting/index.d.ts +0 -35
- package/dist/components/ToolBar/DensityIcon.d.ts +0 -3
- package/dist/hooks/useColumnSetting.d.ts +0 -31
- package/dist/hooks/useColums.d.ts +0 -24
- package/dist/pro-table.mjs +0 -34948
- package/dist/pro-table.umd.js +0 -327
- package/dist/typing.d.ts +0 -1
- package/dist/utils/config.d.ts +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { SettingExtraRender } from '../../types/SlotsTypings';
|
|
3
|
-
export type ColumnSettingProps = {
|
|
4
|
-
draggable?: boolean;
|
|
5
|
-
checkable?: boolean;
|
|
6
|
-
extra?: SettingExtraRender;
|
|
7
|
-
checkedReset?: boolean;
|
|
8
|
-
};
|
|
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
|
-
}>;
|
|
35
|
-
export default ColumnSetting;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
3
|
-
import type { ProTableProps } from '../types/TableTypings';
|
|
4
|
-
export type SettingsOperationType = 'fixed' | 'drop' | 'show' | undefined;
|
|
5
|
-
export type ColumnsState = {
|
|
6
|
-
show?: boolean;
|
|
7
|
-
fixed?: 'right' | 'left' | boolean | undefined;
|
|
8
|
-
order?: number;
|
|
9
|
-
disable?: boolean | {
|
|
10
|
-
checkbox: boolean;
|
|
11
|
-
icon: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export type SettingsAction = {
|
|
15
|
-
autoScroll?: Ref<ProTableProps['autoScroll']>;
|
|
16
|
-
sortKeyColumns: Ref<string[]>;
|
|
17
|
-
columnsMap: Record<string, ColumnsState>;
|
|
18
|
-
operationType: Ref<SettingsOperationType>;
|
|
19
|
-
setSortKeyColumns: (value: string[]) => void;
|
|
20
|
-
cacheColumnsMap: Record<string, ColumnsState>;
|
|
21
|
-
setColumnsMap: (value: Record<string, ColumnsState>, key?: SettingsOperationType) => void;
|
|
22
|
-
};
|
|
23
|
-
export type ColumnsStateType = {
|
|
24
|
-
value?: Record<string, ColumnsState>;
|
|
25
|
-
onChange?: (map: Record<string, ColumnsState>) => void;
|
|
26
|
-
};
|
|
27
|
-
export declare function useColumnSetting({ columns, columnsState, changeColumns }: {
|
|
28
|
-
columns: Ref<ProColumnsType>;
|
|
29
|
-
columnsState: Ref<ColumnsStateType | undefined>;
|
|
30
|
-
changeColumns?: (map: Record<string, ColumnsState>, fixed: boolean) => void;
|
|
31
|
-
}): SettingsAction;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Ref, ComputedRef } from 'vue';
|
|
2
|
-
import type { ColumnsState } from './useColumnSetting';
|
|
3
|
-
import type { ProTableProps } from '../types/TableTypings';
|
|
4
|
-
import type { ProColumnType, ProColumnsType } from '../types/ColumnTypings';
|
|
5
|
-
export type ConfigColumns = {
|
|
6
|
-
draggabled: ComputedRef<ProTableProps['draggabled']>;
|
|
7
|
-
neverScroll: ComputedRef<ProTableProps['neverScroll']>;
|
|
8
|
-
autoScroll: ComputedRef<ProTableProps['autoScroll']>;
|
|
9
|
-
};
|
|
10
|
-
type UseColumnsType = {
|
|
11
|
-
scroll: ComputedRef<ProTableProps['scroll']>;
|
|
12
|
-
breakpoint: ComputedRef<boolean>;
|
|
13
|
-
columns: ComputedRef<ProColumnsType>;
|
|
14
|
-
} & ConfigColumns;
|
|
15
|
-
export declare function useConfigColumns(props: ProTableProps): ConfigColumns;
|
|
16
|
-
export declare function useColumns({ scroll, columns, breakpoint, draggabled, autoScroll, neverScroll }: UseColumnsType): {
|
|
17
|
-
breakpoint: ComputedRef<boolean>;
|
|
18
|
-
getProColumns: ComputedRef<ProColumnType<import("../typing").DefaultRecordType>[]>;
|
|
19
|
-
cacheProColumns: Ref<ProColumnsType<import("../typing").DefaultRecordType>>;
|
|
20
|
-
setColumns: (columnList: ProColumnsType<import("../typing").DefaultRecordType>) => void;
|
|
21
|
-
changeColumns: (columnState: Record<string, ColumnsState>) => void;
|
|
22
|
-
resizeColumnWidth: (w: number, col: ProColumnType) => void;
|
|
23
|
-
};
|
|
24
|
-
export {};
|