@dazhicheng/ui 1.5.266 → 1.6.1
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/components/tt-api-component/index.js +4 -3
- package/dist/components/tt-api-component/index.vue2.js +4 -3
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-area/TtArea.vue3.js +8 -7
- package/dist/components/tt-button/index.js +5 -4
- package/dist/components/tt-button/index.vue2.js +4 -3
- package/dist/components/tt-checkbox/index.js +4 -3
- package/dist/components/tt-checkbox/index.vue.js +4 -3
- package/dist/components/tt-drawer/index.js +4 -3
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +4 -3
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +8 -7
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.js +4 -2
- package/dist/components/tt-empty/index.js +9 -8
- package/dist/components/tt-form/index.js +10 -9
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +3 -2
- package/dist/components/tt-form/src/components/FormActions.vue2.js +4 -2
- package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
- package/dist/components/tt-form/src/form/FormItem.vue.js +6 -5
- package/dist/components/tt-form/src/form/FormLabel.vue.js +8 -7
- package/dist/components/tt-form/src/form/RenderContent.vue.js +4 -3
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +30 -28
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +4 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
- package/dist/components/tt-form/src/form-render/array-register/utils.js +6 -4
- package/dist/components/tt-form/src/form-render/dependencies.js +19 -18
- package/dist/components/tt-form/src/form-render/form.vue2.js +4 -2
- package/dist/components/tt-form/src/form-render/helper.js +15 -14
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
- package/dist/components/tt-form/src/formApi.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +4 -3
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +2 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +4 -2
- package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -3
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +28 -27
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-form/src/useFormContext.js +11 -10
- package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +4 -3
- package/dist/components/tt-icon/index.js +6 -5
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-image/index.js +6 -5
- package/dist/components/tt-image/src/components/ImageViewer.js +7 -6
- package/dist/components/tt-loading/index.js +4 -3
- package/dist/components/tt-loading/src/directive.js +24 -23
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-log/index.js +4 -3
- package/dist/components/tt-log/index.vue.js +3 -2
- package/dist/components/tt-modal/index.js +3 -2
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +15 -14
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-modal/src/utils/modal-api.js +4 -2
- package/dist/components/tt-modal-form/index.vue.js +4 -3
- package/dist/components/tt-nav-anchor/index.js +4 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +15 -14
- package/dist/components/tt-panel-select/index.js +4 -3
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +95 -87
- package/dist/components/tt-panel-select/src/index.vue.js +4 -2
- package/dist/components/tt-radio-group/index.js +4 -3
- package/dist/components/tt-radio-group/index.vue.js +7 -6
- package/dist/components/tt-select/index.js +4 -3
- package/dist/components/tt-select/src/Select.vue.d.ts +12 -12
- package/dist/components/tt-select/src/Select.vue.js +4 -3
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +116 -7
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.d.ts +8 -8
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-select/src/hooks/useDataSource.js +4 -3
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +7 -1
- package/dist/components/tt-select/src/hooks/useSelect.js +3 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +28 -27
- package/dist/components/tt-select/src/props.d.ts +2 -2
- package/dist/components/tt-table/index.d.ts +526 -361
- package/dist/components/tt-table/index.js +7 -5
- package/dist/components/tt-table/src/Table.vue.d.ts +308 -218
- package/dist/components/tt-table/src/Table.vue.js +406 -618
- package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
- package/dist/components/tt-table/src/TableForm.vue.js +219 -229
- package/dist/components/tt-table/src/components/TableAction.vue.js +110 -131
- package/dist/components/tt-table/src/components/TableButtons.js +30 -29
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -84
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
- package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +34 -35
- package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
- package/dist/components/tt-table/src/emits.d.ts +10 -1
- package/dist/components/tt-table/src/emits.js +2 -1
- package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +64 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
- package/dist/components/tt-table/src/hooks/useColumns.js +101 -245
- package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
- package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +98 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
- package/dist/components/tt-table/src/hooks/usePagination.js +30 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
- package/dist/components/tt-table/src/hooks/useQuery.js +148 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +97 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +24 -12
- package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -70
- package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
- package/dist/components/tt-table/src/hooks/useSideSlot.js +78 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.js +56 -0
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
- package/dist/components/tt-table/src/hooks/useTableData.js +308 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.js +47 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
- package/dist/components/tt-table/src/hooks/useTableForm.js +56 -48
- package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
- package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +57 -55
- package/dist/components/tt-table/src/props.d.ts +326 -153
- package/dist/components/tt-table/src/props.js +125 -271
- package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
- package/dist/components/tt-table/src/table-defaults.js +71 -0
- package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
- package/dist/components/tt-table/src/table-mutation-events.js +71 -0
- package/dist/components/tt-table/src/types/table.d.ts +223 -88
- package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
- package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
- package/dist/components/tt-table/src/utils/action-tab-index.js +51 -0
- package/dist/components/tt-table/src/utils/context.js +26 -12
- package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
- package/dist/components/tt-table/src/utils/table-api.js +200 -165
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
- package/dist/components/tt-table/src/utils/table-form-api.js +35 -23
- package/dist/components/tt-text/index.js +4 -3
- package/dist/components/tt-upload/index.js +6 -5
- package/dist/components/tt-upload/src/TtUpload.vue.js +4 -3
- package/dist/components/types.d.ts +0 -20
- package/dist/directives/disabled-tip/index.js +9 -8
- package/dist/hooks/useFormSchemasLink.js +4 -3
- package/dist/hooks/useFormat.d.ts +35 -71
- package/dist/hooks/useFormat.js +28 -39
- package/dist/hooks/usePanelSelectSchemas.js +4 -3
- package/dist/hooks/useScreenshotOss.js +16 -15
- package/dist/hooks/useSetup.js +0 -3
- package/dist/packages/hooks/src/useDebounce.js +6 -5
- package/dist/packages/hooks/src/useElementScreenshot.js +4 -3
- package/dist/packages/hooks/src/usePriorityValue.js +5 -4
- package/dist/packages/utils/src/format.js +48 -0
- package/dist/packages/utils/src/is.js +20 -18
- package/dist/packages/utils/src/tool.js +76 -149
- package/dist/plugins/default/renderCellContent.js +4 -3
- package/dist/plugins/vxeTable/switchStatus.js +14 -13
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
- package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
- package/dist/components/tt-table/src/enum.d.ts +0 -2
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
- package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
- package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
- package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
- package/dist/packages/utils/src/check.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { TtExtendedFormApi, TtFormProps } from '../../tt-form';
|
|
3
3
|
import { VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
4
4
|
import { TtTableExtendedTableApi, TtTableProps } from './types/table';
|
|
@@ -7,11 +7,20 @@ import { TtTableToolsProps } from './types/tableTools';
|
|
|
7
7
|
/** 表格参数 */
|
|
8
8
|
export declare const tableProps: {
|
|
9
9
|
/** 是否显示toolbar */
|
|
10
|
-
showToolbar:
|
|
10
|
+
showToolbar: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: () => boolean | undefined;
|
|
13
|
+
};
|
|
11
14
|
/** 具体某些列排序 field数组 */
|
|
12
|
-
columnsFieldSort:
|
|
15
|
+
columnsFieldSort: {
|
|
16
|
+
type: PropType<string[]>;
|
|
17
|
+
default: () => string[] | undefined;
|
|
18
|
+
};
|
|
13
19
|
/** 具体某些列不排序 field数组 */
|
|
14
|
-
columnsFieldNoSort:
|
|
20
|
+
columnsFieldNoSort: {
|
|
21
|
+
type: PropType<string[]>;
|
|
22
|
+
default: () => string[] | undefined;
|
|
23
|
+
};
|
|
15
24
|
/** 是否显示右边刷新按钮 */
|
|
16
25
|
showRefresh: {
|
|
17
26
|
type: BooleanConstructor;
|
|
@@ -27,17 +36,16 @@ export declare const tableProps: {
|
|
|
27
36
|
type: BooleanConstructor;
|
|
28
37
|
default: () => boolean | undefined;
|
|
29
38
|
};
|
|
30
|
-
/**
|
|
31
|
-
|
|
39
|
+
/** 不可自定义列数组 field数组 */
|
|
40
|
+
notSetColumnField: {
|
|
41
|
+
type: PropType<string[]>;
|
|
42
|
+
default: () => string[] | undefined;
|
|
43
|
+
};
|
|
44
|
+
/** 是否显示表格上方 alert */
|
|
45
|
+
showTableAlert: {
|
|
32
46
|
type: BooleanConstructor;
|
|
33
47
|
default: () => boolean | undefined;
|
|
34
48
|
};
|
|
35
|
-
/** 不可自定义列数组 field数组 */
|
|
36
|
-
notSetColumnField: any;
|
|
37
|
-
/** 需要对不显示的字段进行过滤 主要针对于自定义 field数组 */
|
|
38
|
-
filterNoVisibleField: any;
|
|
39
|
-
/** 是否显示表格上方 alert */
|
|
40
|
-
showTableAlert: any;
|
|
41
49
|
/** api请求方法 */
|
|
42
50
|
api: {
|
|
43
51
|
type: PropType<(...arg: any[]) => Promise<any>>;
|
|
@@ -46,17 +54,12 @@ export declare const tableProps: {
|
|
|
46
54
|
/** 表格额外参数 */
|
|
47
55
|
searchInfo: {
|
|
48
56
|
type: ObjectConstructor;
|
|
49
|
-
default: () =>
|
|
57
|
+
default: () => Recordable<any> | undefined;
|
|
50
58
|
};
|
|
51
59
|
/** 是否初始化加载数据 */
|
|
52
|
-
immediate:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
resultCode: {
|
|
58
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
59
|
-
default: number;
|
|
60
|
+
immediate: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: () => boolean | undefined;
|
|
60
63
|
};
|
|
61
64
|
/** 请求后的回调 */
|
|
62
65
|
afterFetch: {
|
|
@@ -68,74 +71,96 @@ export declare const tableProps: {
|
|
|
68
71
|
type: PropType<TtTableProps["beforeFetch"]>;
|
|
69
72
|
default: null;
|
|
70
73
|
};
|
|
71
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* data
|
|
76
|
+
*
|
|
77
|
+
* `default` 显式标注返回类型:不标注时 `[]` 会被推断为 `never[]`,
|
|
78
|
+
* Vue 的 `ExtractPropTypes` 让 default 的返回类型参与推导,把 `PropType` 声明的类型收窄成
|
|
79
|
+
* `never[]`,业务传具体行类型的数组会直接报 TS2322。
|
|
80
|
+
*/
|
|
72
81
|
data: {
|
|
73
82
|
type: PropType<TtTableProps["data"]>;
|
|
74
|
-
default:
|
|
83
|
+
default: () => TtTableProps["data"];
|
|
75
84
|
};
|
|
76
85
|
/** 是否滚动加载数据 */
|
|
77
86
|
isScrollFetch: {
|
|
78
87
|
type: BooleanConstructor;
|
|
79
|
-
default: boolean;
|
|
88
|
+
default: () => boolean | undefined;
|
|
80
89
|
};
|
|
81
|
-
/**
|
|
82
|
-
|
|
90
|
+
/** 是否显示复选框 */
|
|
91
|
+
showCheckbox: {
|
|
83
92
|
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
93
|
+
default: () => boolean | undefined;
|
|
94
|
+
};
|
|
95
|
+
/** 是否跨页保持复选框选中状态 */
|
|
96
|
+
reserveSelection: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: () => boolean | undefined;
|
|
85
99
|
};
|
|
86
|
-
/** 是否显示复选框 */
|
|
87
|
-
showCheckbox: any;
|
|
88
100
|
/** 是否显示单选框 */
|
|
89
|
-
showRadio:
|
|
101
|
+
showRadio: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: () => boolean | undefined;
|
|
104
|
+
};
|
|
90
105
|
/** 是否显示展开列 */
|
|
91
|
-
showExpand:
|
|
106
|
+
showExpand: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: () => boolean | undefined;
|
|
109
|
+
};
|
|
92
110
|
/** 是否显示序号 */
|
|
93
|
-
showIndex:
|
|
111
|
+
showIndex: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: () => boolean | undefined;
|
|
114
|
+
};
|
|
94
115
|
/** 是否需要列拖拽 */
|
|
95
|
-
isCellResize:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
* @default true
|
|
100
|
-
*/
|
|
101
|
-
isColumnsDrag: any;
|
|
116
|
+
isCellResize: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: () => boolean | undefined;
|
|
119
|
+
};
|
|
102
120
|
/** 是否列排序 */
|
|
103
|
-
isCellSort:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
*/
|
|
108
|
-
isAreaCheckData: any;
|
|
121
|
+
isCellSort: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: () => boolean | undefined;
|
|
124
|
+
};
|
|
109
125
|
/** 是否显示操作列 */
|
|
110
|
-
showAction:
|
|
126
|
+
showAction: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: () => boolean | undefined;
|
|
129
|
+
};
|
|
111
130
|
/** 操作列宽度 */
|
|
112
|
-
actionWidth:
|
|
131
|
+
actionWidth: {
|
|
132
|
+
type: NumberConstructor;
|
|
133
|
+
default: () => number | undefined;
|
|
134
|
+
};
|
|
113
135
|
/** 操作列列名 */
|
|
114
|
-
actionTitle:
|
|
136
|
+
actionTitle: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: () => string | undefined;
|
|
139
|
+
};
|
|
115
140
|
/** 操作列Props */
|
|
116
141
|
actionProps: {
|
|
117
142
|
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
118
|
-
default: () =>
|
|
143
|
+
default: () => import('..').TtColumnOptions<any> | undefined;
|
|
119
144
|
};
|
|
120
145
|
/** 序号列Props */
|
|
121
146
|
indexColumnProps: {
|
|
122
147
|
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
123
|
-
default: () =>
|
|
148
|
+
default: () => import('..').TtColumnOptions<any> | undefined;
|
|
124
149
|
};
|
|
125
150
|
/** 复选框列Props */
|
|
126
151
|
checkboxColumnProps: {
|
|
127
152
|
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
128
|
-
default: () =>
|
|
153
|
+
default: () => import('..').TtColumnOptions<any> | undefined;
|
|
129
154
|
};
|
|
130
155
|
/** 展开行props */
|
|
131
156
|
expandColumnProps: {
|
|
132
157
|
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
133
|
-
default: () =>
|
|
158
|
+
default: () => import('..').TtColumnOptions<any> | undefined;
|
|
134
159
|
};
|
|
135
160
|
/** 单选框列Props */
|
|
136
161
|
radioColumnProps: {
|
|
137
162
|
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
138
|
-
default: () =>
|
|
163
|
+
default: () => import('..').TtColumnOptions<any> | undefined;
|
|
139
164
|
};
|
|
140
165
|
/** 表格行id */
|
|
141
166
|
tableRowId: {
|
|
@@ -147,9 +172,10 @@ export declare const tableProps: {
|
|
|
147
172
|
type: PropType<TtTableProps["customizeColumn"]>;
|
|
148
173
|
};
|
|
149
174
|
/** 是否显示分页 */
|
|
150
|
-
showPager:
|
|
151
|
-
|
|
152
|
-
|
|
175
|
+
showPager: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: () => boolean | undefined;
|
|
178
|
+
};
|
|
153
179
|
/** 当前页数 field */
|
|
154
180
|
currentPageField: {
|
|
155
181
|
type: StringConstructor;
|
|
@@ -170,32 +196,28 @@ export declare const tableProps: {
|
|
|
170
196
|
type: StringConstructor;
|
|
171
197
|
default: () => string | undefined;
|
|
172
198
|
};
|
|
173
|
-
modelValue: {
|
|
174
|
-
type: PropType<Recordable[]>;
|
|
175
|
-
default: () => never[];
|
|
176
|
-
};
|
|
177
|
-
/** 标题内容 */
|
|
178
|
-
title: any;
|
|
179
|
-
/** 是否显示标题 */
|
|
180
|
-
showTitle: any;
|
|
181
|
-
/** 是否自适应高度 */
|
|
182
|
-
autoHeight: any;
|
|
183
199
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
200
|
+
* 是否自适应高度
|
|
201
|
+
*
|
|
202
|
+
* 组件方式默认 `true`,与 `table-api.ts` 的 `getDefaultState()` 里 hook 方式默认 `false` 有意不同,
|
|
203
|
+
* 不要统一:改任一边都会改变现有页面的表格高度。因此它不进 `createSharedTableDefaults()`。
|
|
186
204
|
*/
|
|
187
|
-
|
|
205
|
+
autoHeight: any;
|
|
188
206
|
/** 左侧插槽的宽度 */
|
|
189
|
-
leftSlotWidth:
|
|
207
|
+
leftSlotWidth: {
|
|
208
|
+
type: NumberConstructor;
|
|
209
|
+
default: () => number | undefined;
|
|
210
|
+
};
|
|
190
211
|
/** 右侧插槽的宽度 */
|
|
191
|
-
rightSlotWidth:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
type: StringConstructor;
|
|
195
|
-
default: () => string | undefined;
|
|
212
|
+
rightSlotWidth: {
|
|
213
|
+
type: NumberConstructor;
|
|
214
|
+
default: () => number | undefined;
|
|
196
215
|
};
|
|
197
216
|
/** 暂无数据的样式 */
|
|
198
|
-
emptyImageStyle:
|
|
217
|
+
emptyImageStyle: {
|
|
218
|
+
type: ObjectConstructor;
|
|
219
|
+
default: () => import('vue').CSSProperties | undefined;
|
|
220
|
+
};
|
|
199
221
|
/** 暂无数据 */
|
|
200
222
|
emptyText: {
|
|
201
223
|
type: StringConstructor;
|
|
@@ -207,16 +229,19 @@ export declare const tableProps: {
|
|
|
207
229
|
*/
|
|
208
230
|
emptyImageStatus: {
|
|
209
231
|
type: PropType<"no-data" | "no-search">;
|
|
210
|
-
default:
|
|
232
|
+
default: () => "no-data" | "no-search" | undefined;
|
|
211
233
|
};
|
|
212
234
|
/** 未查询时文字 */
|
|
213
235
|
noSearchText: {
|
|
214
236
|
type: StringConstructor;
|
|
215
237
|
default: () => string | undefined;
|
|
216
238
|
};
|
|
217
|
-
/**
|
|
218
|
-
|
|
219
|
-
|
|
239
|
+
/**
|
|
240
|
+
* 储存的key值,支持函数动态获取
|
|
241
|
+
*
|
|
242
|
+
* 组件方式固定取 `""`,与 `table-api.ts` 的 hook 方式取 `GlobalConfig.table?.columnsKey` 有意不同,
|
|
243
|
+
* 不要统一:统一会改变组件方式下的列配置缓存 key,已存的服务端列配置会读不到。
|
|
244
|
+
*/
|
|
220
245
|
columnsKey: {
|
|
221
246
|
type: PropType<string | (() => string)>;
|
|
222
247
|
default: string;
|
|
@@ -231,26 +256,21 @@ export declare const tableProps: {
|
|
|
231
256
|
type: PropType<string[]>;
|
|
232
257
|
default: () => string[] | undefined;
|
|
233
258
|
};
|
|
234
|
-
/**
|
|
235
|
-
* 是否需要行拖拽-树形表格
|
|
236
|
-
* @deprecated 请使用 row-config drag 配合row-drag-config配置 支持的版本看官方文档,后续不在维护行拖拽
|
|
237
|
-
* @default false
|
|
238
|
-
*/
|
|
239
|
-
treeNode: any;
|
|
240
|
-
/** 外部插槽 */
|
|
241
|
-
getSyncSlotComponent: {
|
|
242
|
-
type: PropType<(column: any, row: any, type: "default" | "edit") => VNode | VNode[] | string>;
|
|
243
|
-
};
|
|
244
259
|
/** 是否清空树形展开状态 */
|
|
245
|
-
clearTreeExpand:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
clearTreeExpand: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: () => boolean | undefined;
|
|
263
|
+
};
|
|
264
|
+
/** 表头标题是否显示 tooltip */
|
|
265
|
+
showHeaderTooltip: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: () => boolean | undefined;
|
|
268
|
+
};
|
|
269
|
+
/** 单元格内容是否显示 tooltip */
|
|
270
|
+
showCellTooltip: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: () => boolean | undefined;
|
|
273
|
+
};
|
|
254
274
|
/** 表格的api */
|
|
255
275
|
tableApi: {
|
|
256
276
|
type: PropType<TtTableExtendedTableApi>;
|
|
@@ -261,52 +281,211 @@ export declare const tableProps: {
|
|
|
261
281
|
};
|
|
262
282
|
/** 是否使用搜索form */
|
|
263
283
|
useSearchForm: any;
|
|
264
|
-
/** 是否禁用Teleport将节点输送至body */
|
|
265
|
-
disabledTeleport: any;
|
|
266
284
|
/** 表格 testId,用于生成测试标识 */
|
|
267
285
|
testId: {
|
|
268
286
|
type: StringConstructor;
|
|
269
287
|
default: undefined;
|
|
270
288
|
};
|
|
271
289
|
};
|
|
272
|
-
/** table-pro配置参数 */
|
|
273
|
-
export declare const tableProProps: {
|
|
274
|
-
/** 按键配置项 */
|
|
275
|
-
keyboardConfig: {
|
|
276
|
-
type: PropType<VxeTablePropTypes.KeyboardConfig>;
|
|
277
|
-
default: () => VxeTablePropTypes.KeyboardConfig<any> | undefined;
|
|
278
|
-
};
|
|
279
|
-
/** 右键菜单配置项 */
|
|
280
|
-
menuConfig: {
|
|
281
|
-
type: PropType<VxeTablePropTypes.MenuConfig>;
|
|
282
|
-
default: () => {};
|
|
283
|
-
};
|
|
284
|
-
/** 鼠标配置项 */
|
|
285
|
-
mouseConfig: {
|
|
286
|
-
type: PropType<VxeTablePropTypes.MouseConfig>;
|
|
287
|
-
default: () => VxeTablePropTypes.MouseConfig | undefined;
|
|
288
|
-
};
|
|
289
|
-
/** 复选框配置项 */
|
|
290
|
-
checkboxConfig: {
|
|
291
|
-
type: PropType<VxeTablePropTypes.CheckboxConfig>;
|
|
292
|
-
default: () => VxeTablePropTypes.CheckboxConfig<VxeTablePropTypes.Row> | undefined;
|
|
293
|
-
};
|
|
294
|
-
/** 单选框配置项 */
|
|
295
|
-
radioConfig: {
|
|
296
|
-
type: PropType<VxeTablePropTypes.RadioConfig>;
|
|
297
|
-
default: () => VxeTablePropTypes.RadioConfig<VxeTablePropTypes.Row> | undefined;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
290
|
/** tableForm 参数 */
|
|
301
291
|
export declare const tableFormProps: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
292
|
+
/**
|
|
293
|
+
* table参数
|
|
294
|
+
*
|
|
295
|
+
* `default` 必须是工厂函数:Vue 的 object prop 直接给对象时所有 `TtTableForm` 实例共享同一个引用。
|
|
296
|
+
*
|
|
297
|
+
* 取值为共用默认值加上组件方式口径的三个字段。`autoHeight` / `columnsKey` / `useSearchForm` 都不在
|
|
298
|
+
* 共用默认值里(前两个两处取值不同,后一个只在组件方式出现),而 `TtTableForm` 属于组件方式调用点,
|
|
299
|
+
* 因此这里显式补上组件方式的字面量 —— 它们与改动前 `Object.entries(tableProps).reduce(...)` 的产物逐字段相等。
|
|
300
|
+
*/
|
|
307
301
|
table: {
|
|
308
302
|
type: PropType<Partial<TtTableProps>>;
|
|
309
|
-
default:
|
|
303
|
+
default: () => {
|
|
304
|
+
autoHeight: boolean;
|
|
305
|
+
columnsKey: string;
|
|
306
|
+
useSearchForm: boolean;
|
|
307
|
+
loading?: boolean;
|
|
308
|
+
emptyText?: string;
|
|
309
|
+
noSearchText?: string;
|
|
310
|
+
emptyImageStyle?: import('vue').CSSProperties;
|
|
311
|
+
emptyImageStatus?: "no-data" | "no-search";
|
|
312
|
+
showHeaderTooltip?: boolean;
|
|
313
|
+
showCellTooltip?: boolean;
|
|
314
|
+
formApi?: Partial<TtExtendedFormApi>;
|
|
315
|
+
showSetting?: boolean;
|
|
316
|
+
showSetColumn?: boolean;
|
|
317
|
+
leftSlotWidth?: number;
|
|
318
|
+
rightSlotWidth?: number;
|
|
319
|
+
showRefresh?: boolean;
|
|
320
|
+
useHttpCache?: boolean;
|
|
321
|
+
defaultDisplayFields?: string[];
|
|
322
|
+
getColumnsApi?: (params: {
|
|
323
|
+
permissionOnlyCode: string;
|
|
324
|
+
userId: string | number;
|
|
325
|
+
}) => Promise<{
|
|
326
|
+
data: any;
|
|
327
|
+
}>;
|
|
328
|
+
setColumnsApi?: (params: {
|
|
329
|
+
permissionOnlyCode: string;
|
|
330
|
+
json: string;
|
|
331
|
+
userId: string | number;
|
|
332
|
+
}) => Promise<any>;
|
|
333
|
+
updateColumnsApi?: (params: {
|
|
334
|
+
permissionOnlyCode: string;
|
|
335
|
+
json: string;
|
|
336
|
+
userId: string | number;
|
|
337
|
+
id: string | number;
|
|
338
|
+
}) => Promise<any>;
|
|
339
|
+
customizeColumn?: ((column: import('..').TtColumnOptions<any>) => import('..').TtColumnOptions<any>) | undefined;
|
|
340
|
+
clearTreeExpand?: boolean;
|
|
341
|
+
data?: import('vue').MaybeRef<any[]> | undefined;
|
|
342
|
+
columns?: import('vue').MaybeRef<import('..').TtColumnOptions<any>[]> | undefined;
|
|
343
|
+
testId?: string;
|
|
344
|
+
toolTipErrorPlacement?: "top" | "bottom" | "left" | "right";
|
|
345
|
+
id?: VxeTablePropTypes.ID<any> | undefined;
|
|
346
|
+
zIndex?: VxeTablePropTypes.ZIndex | undefined;
|
|
347
|
+
size?: VxeTablePropTypes.Size | undefined;
|
|
348
|
+
height?: VxeTablePropTypes.Height | undefined;
|
|
349
|
+
params?: VxeTablePropTypes.Params;
|
|
350
|
+
round?: VxeTablePropTypes.Round | undefined;
|
|
351
|
+
border?: VxeTablePropTypes.Border | undefined;
|
|
352
|
+
fit?: VxeTablePropTypes.Fit | undefined;
|
|
353
|
+
layouts?: import("vxe-table").VxeGridPropTypes.Layouts | undefined;
|
|
354
|
+
align?: VxeTablePropTypes.Align | undefined;
|
|
355
|
+
pagerConfig?: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
356
|
+
maxHeight?: VxeTablePropTypes.MaxHeight | undefined;
|
|
357
|
+
autoResize?: VxeTablePropTypes.AutoResize | undefined;
|
|
358
|
+
syncResize?: VxeTablePropTypes.SyncResize | undefined;
|
|
359
|
+
radioConfig?: VxeTablePropTypes.RadioConfig<any> | undefined;
|
|
360
|
+
checkboxConfig?: VxeTablePropTypes.CheckboxConfig<any> | undefined;
|
|
361
|
+
rowConfig?: VxeTablePropTypes.RowConfig<any> | undefined;
|
|
362
|
+
dragConfig?: VxeTablePropTypes.DragConfig<any> | undefined;
|
|
363
|
+
menuConfig?: VxeTablePropTypes.MenuConfig<any> | undefined;
|
|
364
|
+
virtualYConfig?: VxeTablePropTypes.VirtualYConfig | undefined;
|
|
365
|
+
scrollY?: VxeTablePropTypes.ScrollY | undefined;
|
|
366
|
+
minHeight?: VxeTablePropTypes.MinHeight | undefined;
|
|
367
|
+
showHeader?: VxeTablePropTypes.ShowHeader | undefined;
|
|
368
|
+
proxyConfig?: import("vxe-table").VxeGridPropTypes.ProxyConfig<any> | undefined;
|
|
369
|
+
toolbarConfig?: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
370
|
+
formConfig?: import("vxe-table").VxeGridPropTypes.FormConfig | undefined;
|
|
371
|
+
zoomConfig?: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
372
|
+
stripe?: VxeTablePropTypes.Stripe | undefined;
|
|
373
|
+
padding?: VxeTablePropTypes.Padding | undefined;
|
|
374
|
+
headerAlign?: VxeTablePropTypes.HeaderAlign | undefined;
|
|
375
|
+
footerAlign?: VxeTablePropTypes.FooterAlign | undefined;
|
|
376
|
+
showFooter?: VxeTablePropTypes.ShowFooter | undefined;
|
|
377
|
+
footerData?: VxeTablePropTypes.FooterData | undefined;
|
|
378
|
+
footerMethod?: VxeTablePropTypes.FooterMethod<any> | undefined;
|
|
379
|
+
rowClassName?: VxeTablePropTypes.RowClassName<any> | undefined;
|
|
380
|
+
cellClassName?: VxeTablePropTypes.CellClassName<any> | undefined;
|
|
381
|
+
headerRowClassName?: VxeTablePropTypes.HeaderRowClassName<any> | undefined;
|
|
382
|
+
headerCellClassName?: VxeTablePropTypes.HeaderCellClassName<any> | undefined;
|
|
383
|
+
footerRowClassName?: VxeTablePropTypes.FooterRowClassName<any> | undefined;
|
|
384
|
+
footerCellClassName?: VxeTablePropTypes.FooterCellClassName<any> | undefined;
|
|
385
|
+
cellStyle?: VxeTablePropTypes.CellStyle<any> | undefined;
|
|
386
|
+
rowStyle?: VxeTablePropTypes.RowStyle<any> | undefined;
|
|
387
|
+
headerCellStyle?: VxeTablePropTypes.HeaderCellStyle<any> | undefined;
|
|
388
|
+
headerRowStyle?: VxeTablePropTypes.HeaderRowStyle<any> | undefined;
|
|
389
|
+
footerRowStyle?: VxeTablePropTypes.FooterRowStyle<any> | undefined;
|
|
390
|
+
footerCellStyle?: VxeTablePropTypes.FooterCellStyle<any> | undefined;
|
|
391
|
+
showCustomHeader?: VxeTablePropTypes.ShowCustomHeader | undefined;
|
|
392
|
+
mergeHeaderCells?: VxeTablePropTypes.MergeHeaderCells | undefined;
|
|
393
|
+
mergeCells?: VxeTablePropTypes.MergeCells<any> | undefined;
|
|
394
|
+
mergeFooterCells?: VxeTablePropTypes.MergeFooterCells<any> | undefined;
|
|
395
|
+
mergeFooterItems?: VxeTablePropTypes.MergeFooterItems<any> | undefined;
|
|
396
|
+
spanMethod?: VxeTablePropTypes.SpanMethod<any> | undefined;
|
|
397
|
+
footerSpanMethod?: VxeTablePropTypes.FooterSpanMethod<any> | undefined;
|
|
398
|
+
showOverflow?: VxeTablePropTypes.ShowOverflow | undefined;
|
|
399
|
+
showHeaderOverflow?: VxeTablePropTypes.ShowHeaderOverflow | undefined;
|
|
400
|
+
showFooterOverflow?: VxeTablePropTypes.ShowFooterOverflow | undefined;
|
|
401
|
+
keepSource?: VxeTablePropTypes.KeepSource | undefined;
|
|
402
|
+
columnConfig?: VxeTablePropTypes.ColumnConfig<any> | undefined;
|
|
403
|
+
cellConfig?: VxeTablePropTypes.CellConfig<any> | undefined;
|
|
404
|
+
headerCellConfig?: VxeTablePropTypes.HeaderCellConfig<any> | undefined;
|
|
405
|
+
footerCellConfig?: VxeTablePropTypes.FooterCellConfig<any> | undefined;
|
|
406
|
+
aggregateConfig?: VxeTablePropTypes.AggregateConfig<any> | undefined;
|
|
407
|
+
aggregateAccuracyConfig?: VxeTablePropTypes.AggregateAccuracyConfig<any> | undefined;
|
|
408
|
+
rowGroupConfig?: VxeTablePropTypes.RowGroupConfig<any> | undefined;
|
|
409
|
+
currentRowConfig?: VxeTablePropTypes.CurrentRowConfig<any> | undefined;
|
|
410
|
+
currentColumnConfig?: VxeTablePropTypes.CurrentColumnConfig<any> | undefined;
|
|
411
|
+
rowDragConfig?: VxeTablePropTypes.RowDragConfig<any> | undefined;
|
|
412
|
+
columnDragConfig?: VxeTablePropTypes.ColumnDragConfig<any> | undefined;
|
|
413
|
+
customConfig?: VxeTablePropTypes.CustomConfig<any> | undefined;
|
|
414
|
+
resizeConfig?: VxeTablePropTypes.ResizeConfig | undefined;
|
|
415
|
+
resizableConfig?: VxeTablePropTypes.ResizableConfig<any> | undefined;
|
|
416
|
+
seqConfig?: VxeTablePropTypes.SeqConfig<any> | undefined;
|
|
417
|
+
sortConfig?: VxeTablePropTypes.SortConfig<any> | undefined;
|
|
418
|
+
filterConfig?: VxeTablePropTypes.FilterConfig<any> | undefined;
|
|
419
|
+
floatingFilterConfig?: VxeTablePropTypes.FloatingFilterConfig<any> | undefined;
|
|
420
|
+
headerTooltipConfig?: VxeTablePropTypes.HeaderTooltipConfig<any> | undefined;
|
|
421
|
+
tooltipConfig?: VxeTablePropTypes.TooltipConfig<any> | undefined;
|
|
422
|
+
footerTooltipConfig?: VxeTablePropTypes.FooterTooltipConfig<any> | undefined;
|
|
423
|
+
exportConfig?: VxeTablePropTypes.ExportConfig<any> | undefined;
|
|
424
|
+
importConfig?: VxeTablePropTypes.ImportConfig<any> | undefined;
|
|
425
|
+
printConfig?: VxeTablePropTypes.PrintConfig<any> | undefined;
|
|
426
|
+
expandConfig?: VxeTablePropTypes.ExpandConfig<any> | undefined;
|
|
427
|
+
treeConfig?: VxeTablePropTypes.TreeConfig<any> | undefined;
|
|
428
|
+
mouseConfig?: VxeTablePropTypes.MouseConfig | undefined;
|
|
429
|
+
areaConfig?: VxeTablePropTypes.AreaConfig<any> | undefined;
|
|
430
|
+
fnrConfig?: VxeTablePropTypes.FnrConfig<any> | undefined;
|
|
431
|
+
keyboardConfig?: VxeTablePropTypes.KeyboardConfig<any> | undefined;
|
|
432
|
+
clipConfig?: VxeTablePropTypes.ClipConfig<any> | undefined;
|
|
433
|
+
editConfig?: VxeTablePropTypes.EditConfig<any> | undefined;
|
|
434
|
+
editDirtyConfig?: VxeTablePropTypes.EditDirtyConfig | undefined;
|
|
435
|
+
validConfig?: VxeTablePropTypes.ValidConfig<any> | undefined;
|
|
436
|
+
editRules?: VxeTablePropTypes.EditRules<any> | undefined;
|
|
437
|
+
undoRedoHistoryConfig?: VxeTablePropTypes.UndoRedoHistoryConfig | undefined;
|
|
438
|
+
emptyRender?: VxeTablePropTypes.EmptyRender | undefined;
|
|
439
|
+
loadingConfig?: VxeTablePropTypes.LoadingConfig | undefined;
|
|
440
|
+
scrollX?: VxeTablePropTypes.ScrollX | undefined;
|
|
441
|
+
virtualXConfig?: VxeTablePropTypes.VirtualXConfig | undefined;
|
|
442
|
+
scrollbarConfig?: VxeTablePropTypes.ScrollbarConfig | undefined;
|
|
443
|
+
resizable?: VxeTablePropTypes.Resizable | undefined;
|
|
444
|
+
highlightCurrentRow?: VxeTablePropTypes.HighlightCurrentRow | undefined;
|
|
445
|
+
highlightHoverRow?: VxeTablePropTypes.HighlightHoverRow | undefined;
|
|
446
|
+
highlightCurrentColumn?: VxeTablePropTypes.HighlightCurrentColumn | undefined;
|
|
447
|
+
highlightHoverColumn?: VxeTablePropTypes.HighlightHoverColumn | undefined;
|
|
448
|
+
highlightCell?: VxeTablePropTypes.HighlightCell | undefined;
|
|
449
|
+
columnKey?: VxeTablePropTypes.ColumnKey | undefined;
|
|
450
|
+
rowKey?: VxeTablePropTypes.RowKey | undefined;
|
|
451
|
+
rowId?: VxeTablePropTypes.RowId | undefined;
|
|
452
|
+
animat?: VxeTablePropTypes.Animat | undefined;
|
|
453
|
+
delayHover?: VxeTablePropTypes.DelayHover | undefined;
|
|
454
|
+
showPager?: boolean;
|
|
455
|
+
currentPageField?: string;
|
|
456
|
+
pageSizeField?: string;
|
|
457
|
+
totalField?: string;
|
|
458
|
+
dataField?: string;
|
|
459
|
+
showCheckbox?: boolean;
|
|
460
|
+
reserveSelection?: boolean;
|
|
461
|
+
showExpand?: boolean;
|
|
462
|
+
showRadio?: boolean;
|
|
463
|
+
showIndex?: boolean;
|
|
464
|
+
showAction?: boolean;
|
|
465
|
+
showExport?: boolean;
|
|
466
|
+
actionWidth?: number;
|
|
467
|
+
actionTitle?: string;
|
|
468
|
+
isCellResize?: boolean;
|
|
469
|
+
isCellSort?: boolean;
|
|
470
|
+
actionProps?: import('..').TtColumnOptions<any> | undefined;
|
|
471
|
+
indexColumnProps?: import('..').TtColumnOptions<any> | undefined;
|
|
472
|
+
checkboxColumnProps?: import('..').TtColumnOptions<any> | undefined;
|
|
473
|
+
expandColumnProps?: import('..').TtColumnOptions<any> | undefined;
|
|
474
|
+
radioColumnProps?: import('..').TtColumnOptions<any> | undefined;
|
|
475
|
+
tableRowId?: string;
|
|
476
|
+
api?: (...arg: any[]) => Promise<Recordable | Recordable[]>;
|
|
477
|
+
filterApi?: (...arg: any[]) => Promise<Recordable | Recordable[]>;
|
|
478
|
+
searchInfo?: Recordable;
|
|
479
|
+
immediate?: boolean;
|
|
480
|
+
afterFetch?: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
|
|
481
|
+
beforeFetch?: (params: Recordable) => Promise<Recordable>;
|
|
482
|
+
isScrollFetch?: boolean;
|
|
483
|
+
showToolbar?: boolean;
|
|
484
|
+
columnsFieldSort?: string[];
|
|
485
|
+
columnsFieldNoSort?: string[];
|
|
486
|
+
notSetColumnField?: string[];
|
|
487
|
+
showTableAlert?: boolean;
|
|
488
|
+
};
|
|
310
489
|
};
|
|
311
490
|
/** 是否使用搜索form */
|
|
312
491
|
useSearchForm: any;
|
|
@@ -352,11 +531,6 @@ export declare const tableOtherProps: {
|
|
|
352
531
|
type: PropType<VxeTablePropTypes.KeyboardConfig>;
|
|
353
532
|
default: () => VxeTablePropTypes.KeyboardConfig<any> | undefined;
|
|
354
533
|
};
|
|
355
|
-
/** 右键菜单配置项 */
|
|
356
|
-
menuConfig: {
|
|
357
|
-
type: PropType<VxeTablePropTypes.MenuConfig>;
|
|
358
|
-
default: () => {};
|
|
359
|
-
};
|
|
360
534
|
/** 鼠标配置项 */
|
|
361
535
|
mouseConfig: {
|
|
362
536
|
type: PropType<VxeTablePropTypes.MouseConfig>;
|
|
@@ -365,24 +539,24 @@ export declare const tableOtherProps: {
|
|
|
365
539
|
/** 复选框配置项 */
|
|
366
540
|
checkboxConfig: {
|
|
367
541
|
type: PropType<VxeTablePropTypes.CheckboxConfig>;
|
|
368
|
-
default: () => VxeTablePropTypes.CheckboxConfig<
|
|
542
|
+
default: () => VxeTablePropTypes.CheckboxConfig<any> | undefined;
|
|
369
543
|
};
|
|
370
544
|
/** 单选框配置项 */
|
|
371
545
|
radioConfig: {
|
|
372
546
|
type: PropType<VxeTablePropTypes.RadioConfig>;
|
|
373
|
-
default: () => VxeTablePropTypes.RadioConfig<
|
|
547
|
+
default: () => VxeTablePropTypes.RadioConfig<any> | undefined;
|
|
374
548
|
};
|
|
375
549
|
/** 列配置 */
|
|
376
550
|
columns: {
|
|
377
551
|
type: PropType<TtTableProps["columns"]>;
|
|
378
|
-
default: () =>
|
|
552
|
+
default: () => TtTableProps["columns"];
|
|
379
553
|
};
|
|
380
554
|
/**
|
|
381
555
|
* 表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)
|
|
382
556
|
*/
|
|
383
557
|
height: {
|
|
384
558
|
type: (NumberConstructor | StringConstructor)[];
|
|
385
|
-
default: undefined;
|
|
559
|
+
default: () => VxeTablePropTypes.Height | undefined;
|
|
386
560
|
};
|
|
387
561
|
/**
|
|
388
562
|
* 设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度
|
|
@@ -390,7 +564,7 @@ export declare const tableOtherProps: {
|
|
|
390
564
|
*/
|
|
391
565
|
showOverflow: {
|
|
392
566
|
type: PropType<TtTableProps["showOverflow"]>;
|
|
393
|
-
default:
|
|
567
|
+
default: () => VxeTablePropTypes.ShowOverflow | undefined;
|
|
394
568
|
};
|
|
395
569
|
/**
|
|
396
570
|
* @description 内部使用插槽重写title内容。true 和 'tooltip' 都会有 tooltip 效果,false 和其他的值会显示省略号不会有 tooltip 效果
|
|
@@ -398,22 +572,21 @@ export declare const tableOtherProps: {
|
|
|
398
572
|
*/
|
|
399
573
|
showHeaderOverflow: {
|
|
400
574
|
type: PropType<TtTableProps["showHeaderOverflow"]>;
|
|
401
|
-
default:
|
|
575
|
+
default: () => VxeTablePropTypes.ShowOverflow | undefined;
|
|
402
576
|
};
|
|
403
577
|
/** 分页配置 */
|
|
404
578
|
pagerConfig: {
|
|
405
579
|
type: PropType<TtTableProps["pagerConfig"]>;
|
|
406
580
|
default: () => import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
407
581
|
};
|
|
408
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* toolbar 配置
|
|
584
|
+
*
|
|
585
|
+
* 不写 `default`,取值由共用默认值里的 `toolbarConfig: undefined` 提供:
|
|
586
|
+
* `useGridProps` 用解构默认值 `toolbarConfig = {}` 兜底,而 ES 解构默认值只对 `undefined` 生效。
|
|
587
|
+
*/
|
|
409
588
|
toolbarConfig: {
|
|
410
589
|
type: PropType<TtTableProps["toolbarConfig"]>;
|
|
411
|
-
default: () => null;
|
|
412
|
-
};
|
|
413
|
-
/** 缩放配置项 */
|
|
414
|
-
zoomConfig: {
|
|
415
|
-
type: PropType<TtTableProps["zoomConfig"]>;
|
|
416
|
-
default: () => null;
|
|
417
590
|
};
|
|
418
591
|
/** 表格大小 */
|
|
419
592
|
size: {
|