@gx-design-vue/pro-table 0.2.0-beta.30 → 0.2.0-beta.31
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 +6 -0
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/hooks/useLoading.d.ts +2 -2
- package/dist/hooks/useTable.d.ts +2 -1
- package/dist/pro-table.mjs +2291 -2285
- package/dist/pro-table.umd.js +32 -32
- package/dist/props.d.ts +3 -0
- package/dist/types/TableTypings.d.ts +6 -4
- package/package.json +2 -2
package/dist/props.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const proTableProps: {
|
|
|
5
5
|
type: PropType<ProTableRowSelection<any>>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
|
+
loadingStatus: {
|
|
9
|
+
type: PropType<any>;
|
|
10
|
+
};
|
|
8
11
|
columns: {
|
|
9
12
|
type: PropType<import(".").ProColumnsType<import("./typing").DefaultRecordType> | undefined>;
|
|
10
13
|
default: never[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue';
|
|
1
|
+
import type { ComputedRef, CSSProperties } from 'vue';
|
|
2
2
|
import type { RecordType, WithFalse, CustomRender, VueNode, SizeType, Breakpoint } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import type { ProSearchMap, ProColumnType, ProColumnsType } from './ColumnTypings';
|
|
4
4
|
import type { DefaultRecordType } from '../typing';
|
|
5
5
|
import type { HeaderTitleRender, ToolBarBtnRender, CustomizeRender, TitleTipRender, OptionsExtraRender, SettingExtraRender, PageItemRender } from './SlotsTypings';
|
|
6
|
-
import type { TableRowSelection, TablePaginationConfig,
|
|
6
|
+
import type { TableRowSelection, TablePaginationConfig, TableFilters, TableSorter, TableProps } from '../_utils';
|
|
7
7
|
import type { ColumnSettingProps } from '../components/ColumnSetting';
|
|
8
8
|
import type { ColumnsState, ColumnsStateType } from '../hooks/useColumnSetting';
|
|
9
9
|
export type ProTabelFeachParams = {
|
|
@@ -58,8 +58,9 @@ export interface OptionConfig {
|
|
|
58
58
|
}
|
|
59
59
|
/** action表格实例 */
|
|
60
60
|
export interface ProCoreActionType {
|
|
61
|
+
/** @name loadingStatus */
|
|
62
|
+
getLoadingStatus?: () => boolean;
|
|
61
63
|
pageParams?: RecordType | boolean;
|
|
62
|
-
getLoadingStatus?: boolean | SpinProps | undefined;
|
|
63
64
|
/** @name 刷新 */
|
|
64
65
|
reload?: (info?: ProTabelFeachParams) => void;
|
|
65
66
|
/** @name 刷新并清空表单,重置为第一页 */
|
|
@@ -79,13 +80,14 @@ export interface ProCoreActionType {
|
|
|
79
80
|
/** form查询表单实例 */
|
|
80
81
|
export interface ProCoreFormType {
|
|
81
82
|
/** @name 获取表格-表单请求参数 */
|
|
82
|
-
|
|
83
|
+
getTableFormState?: () => RecordType;
|
|
83
84
|
/** @name 获取表格-内部表单参数 */
|
|
84
85
|
getFormState?: () => RecordType;
|
|
85
86
|
/** @name 重置内部表单组件参数 */
|
|
86
87
|
restForm?: (callBack?: () => void) => void;
|
|
87
88
|
}
|
|
88
89
|
export interface ProTableRef {
|
|
90
|
+
loading: ComputedRef<boolean>;
|
|
89
91
|
formRef: () => ProCoreFormType;
|
|
90
92
|
actionRef: () => ProCoreActionType;
|
|
91
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-table",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.31",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@vueuse/core": "^9.10.0",
|
|
28
|
-
"@gx-design-vue/pro-utils": "^0.2.0-beta.
|
|
28
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.19",
|
|
29
29
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.14",
|
|
30
30
|
"@gx-design-vue/pro-provider": "^0.1.0-beta.43",
|
|
31
31
|
"@gx-design-vue/pro-app": "^0.1.0-beta.7",
|