@dazhicheng/ui 1.5.33 → 1.5.35
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-area/TtArea.vue.d.ts +2 -0
- package/dist/components/tt-area/index.d.ts +1 -0
- package/dist/components/tt-button/components/AddButton.vue.d.ts +2 -0
- package/dist/components/tt-button/index.d.ts +1740 -0
- package/dist/components/tt-button/index.vue.d.ts +1004 -0
- package/dist/components/tt-checkbox/index.d.ts +36 -0
- package/dist/components/tt-checkbox/index.vue.d.ts +28 -0
- package/dist/components/tt-checkbox/type.d.ts +9 -0
- package/dist/components/tt-drawer/index.d.ts +3703 -0
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +2121 -0
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.d.ts +94 -0
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.d.ts +27 -0
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +10 -0
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +9 -0
- package/dist/components/tt-drawer/src/index.d.ts +10 -0
- package/dist/components/tt-drawer/src/props.d.ts +99 -0
- package/dist/components/tt-drawer/src/typing.d.ts +154 -0
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +87 -0
- package/dist/components/tt-empty/index.d.ts +18 -0
- package/dist/components/tt-form/index.d.ts +15 -0
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +33 -0
- package/dist/components/tt-form/src/components/FormActions.vue.d.ts +34 -0
- package/dist/components/tt-form/src/components/Slot.d.ts +7 -0
- package/dist/components/tt-form/src/config.d.ts +6 -0
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts +19 -0
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +2 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +8 -0
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts +25 -0
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/index.d.ts +10 -0
- package/dist/components/tt-form/src/form/injectionKeys.d.ts +2 -0
- package/dist/components/tt-form/src/form/useFormField.d.ts +11 -0
- package/dist/components/tt-form/src/form-render/FormField.vue.d.ts +28 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue.d.ts +27 -0
- package/dist/components/tt-form/src/form-render/context.d.ts +7 -0
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +361 -0
- package/dist/components/tt-form/src/form-render/expandable.d.ts +9 -0
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +41 -0
- package/dist/components/tt-form/src/form-render/helper.d.ts +11 -0
- package/dist/components/tt-form/src/form-render/index.d.ts +3 -0
- package/dist/components/tt-form/src/formApi.d.ts +71 -0
- package/dist/components/tt-form/src/group-form/FieldRenderer.d.ts +81 -0
- package/dist/components/tt-form/src/group-form/GroupForm.vue.d.ts +49 -0
- package/dist/components/tt-form/src/group-form/GroupSection.vue.d.ts +25 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.d.ts +13 -0
- package/dist/components/tt-form/src/group-form/index.d.ts +3 -0
- package/dist/components/tt-form/src/group-form/lazyContext.d.ts +37 -0
- package/dist/components/tt-form/src/group-form/types.d.ts +147 -0
- package/dist/components/tt-form/src/group-form/useGroupForm.d.ts +5 -0
- package/dist/components/tt-form/src/group-form/utils.d.ts +93 -0
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts +7 -0
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +14 -0
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts +14 -0
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +7 -0
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +8 -0
- package/dist/components/tt-form/src/index.vue.d.ts +27 -0
- package/dist/components/tt-form/src/shared/createContext.d.ts +8 -0
- package/dist/components/tt-form/src/shared/global-state.d.ts +17 -0
- package/dist/components/tt-form/src/shared/store.d.ts +1 -0
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts +54 -0
- package/dist/components/tt-form/src/types/common.d.ts +11 -0
- package/dist/components/tt-form/src/types/forms.d.ts +280 -0
- package/dist/components/tt-form/src/types/index.d.ts +3 -0
- package/dist/components/tt-form/src/types/paths.d.ts +142 -0
- package/dist/components/tt-form/src/types/shared.d.ts +19 -0
- package/dist/components/tt-form/src/types.d.ts +452 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -0
- package/dist/components/tt-form/src/useFormContext.d.ts +12 -0
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +1549 -0
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +784 -0
- package/dist/components/tt-icon/components/AddIcon.vue.d.ts +7 -0
- package/dist/components/tt-icon/components/SubIcon.vue.d.ts +7 -0
- package/dist/components/tt-icon/index.d.ts +124 -0
- package/dist/components/tt-icon/index.vue.d.ts +32 -0
- package/dist/components/tt-image/index.d.ts +127 -0
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +89 -0
- package/dist/components/tt-image/tt-image.d.ts +126 -0
- package/dist/components/tt-loading/index.d.ts +16 -0
- package/dist/components/tt-loading/src/directive.d.ts +9 -0
- package/dist/components/tt-loading/src/loading.vue.d.ts +12 -0
- package/dist/components/tt-loading/src/service.d.ts +25 -0
- package/dist/components/tt-loading/src/type.d.ts +20 -0
- package/dist/components/tt-modal/index.d.ts +1809 -0
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +1008 -0
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts +210 -0
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts +31 -0
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +224 -0
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +110 -0
- package/dist/components/tt-modal/src/index.d.ts +5 -0
- package/dist/components/tt-modal/src/props.d.ts +161 -0
- package/dist/components/tt-modal/src/typing.d.ts +188 -0
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +97 -0
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.d.ts +6 -0
- package/dist/components/tt-modal-form/index.d.ts +2 -0
- package/dist/components/tt-modal-form/index.vue.d.ts +43 -0
- package/dist/components/tt-modal-form/props.d.ts +38 -0
- package/dist/components/tt-modal-form/useModalForm.d.ts +6 -0
- package/dist/components/tt-nav-anchor/index.d.ts +19 -0
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.d.ts +19 -0
- package/dist/components/tt-nav-anchor/src/types.d.ts +29 -0
- package/dist/components/tt-select/index.d.ts +7 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +861 -0
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +111 -0
- package/dist/components/tt-select/src/components/Table.vue.d.ts +250 -0
- package/dist/components/tt-select/src/const.d.ts +16 -0
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +115 -0
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +32 -0
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +59 -0
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +16 -0
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +87 -0
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +178 -0
- package/dist/components/tt-select/src/props.d.ts +190 -0
- package/dist/components/tt-select/src/types/index.d.ts +142 -0
- package/dist/components/tt-select/src/utils/index.d.ts +9 -0
- package/dist/components/tt-table/index.d.ts +127 -0
- package/dist/components/tt-table/src/Table.vue.d.ts +1685 -0
- package/dist/components/tt-table/src/componentMap.d.ts +8 -0
- package/dist/components/tt-table/src/components/RowContext.d.ts +24 -0
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +79 -0
- package/dist/components/tt-table/src/components/TableButtons.d.ts +30 -0
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +26 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +1531 -0
- package/dist/components/tt-table/src/emits.d.ts +1 -0
- package/dist/components/tt-table/src/enum.d.ts +2 -0
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +27 -0
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +20 -0
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +29 -0
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +1082 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +102 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +30 -0
- package/dist/components/tt-table/src/hooks/useTable.d.ts +7 -0
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts +43 -0
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +101 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +10 -0
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +93 -0
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +11 -0
- package/dist/components/tt-table/src/props.d.ts +433 -0
- package/dist/components/tt-table/src/toolProps.d.ts +19 -0
- package/dist/components/tt-table/src/types/table.d.ts +489 -0
- package/dist/components/tt-table/src/types/tableAction.d.ts +26 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +64 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts +10 -0
- package/dist/components/tt-table/src/utils/context.d.ts +18 -0
- package/dist/components/tt-table/src/utils/filters.d.ts +109 -0
- package/dist/components/tt-table/src/utils/table-api.d.ts +250 -0
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +88 -0
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +28 -0
- package/dist/components/tt-text/index.d.ts +76 -0
- package/dist/components/tt-text/index.vue.d.ts +50 -0
- package/dist/components/tt-tree-select/index.d.ts +5 -0
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +6 -0
- package/dist/components/tt-tree-select/src/cache-options.d.ts +35 -0
- package/dist/components/tt-tree-select/src/select.d.ts +10 -0
- package/dist/components/tt-tree-select/src/tree.d.ts +23 -0
- package/dist/components/tt-tree-select/src/utils.d.ts +10 -0
- package/dist/components/tt-upload/index.d.ts +428 -0
- package/dist/components/tt-upload/src/TtUpload.d.ts +449 -0
- package/dist/components/tt-upload/src/typing.d.ts +251 -0
- package/dist/components/types.d.ts +230 -0
- package/dist/directives/auto-tip/index.d.ts +3 -0
- package/dist/directives/dialog-resize/index.d.ts +25 -0
- package/dist/directives/dialog-resize/use-css-variable.d.ts +1 -0
- package/dist/directives/dialog-resize/use-draggable.d.ts +4 -0
- package/dist/directives/dialog-resize/use-fullscreen.d.ts +1 -0
- package/dist/directives/dialog-resize/use-parse-translate.d.ts +4 -0
- package/dist/directives/dialog-resize/use-resizer.d.ts +2 -0
- package/dist/directives/disabled-tip/index.d.ts +17 -0
- package/dist/directives/index.d.ts +3 -0
- package/dist/hooks/useFormat.d.ts +73 -0
- package/dist/hooks/useLoading.d.ts +9 -0
- package/dist/hooks/useSetup.d.ts +8 -0
- package/dist/hooks/useTable.d.ts +5 -0
- package/dist/hooks/useTemplateSlot.d.ts +9 -0
- package/dist/{index-CMjNBMj5.js → index-NG5FNCLD.js} +2 -3
- package/dist/index.d.ts +47 -0
- package/dist/index.js +10239 -9224
- package/dist/{index.modern-BfZxYaPy.js → index.modern-DfItAsVf.js} +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/vxeTable/switchStatus.d.ts +7 -0
- package/dist/plugins.d.ts +2 -0
- package/dist/plugins.js +29 -30
- package/dist/style.css +1 -1
- package/package.json +3 -10
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { TtExtendedFormApi, TtFormProps } from '../../tt-form';
|
|
3
|
+
import { VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
4
|
+
import { TtTableExtendedTableApi, TtTableProps } from './types/table';
|
|
5
|
+
import { TtTableExtendedTableFormApi } from './types/tableForm';
|
|
6
|
+
import { TtTableToolsProps } from './types/tableTools';
|
|
7
|
+
/** 表格参数 */
|
|
8
|
+
export declare const tableProps: {
|
|
9
|
+
/** 是否显示toolbar */
|
|
10
|
+
showToolbar: any;
|
|
11
|
+
/** 具体某些列排序 field数组 */
|
|
12
|
+
columnsFieldSort: any;
|
|
13
|
+
/** 具体某些列不排序 field数组 */
|
|
14
|
+
columnsFieldNoSort: any;
|
|
15
|
+
/** 是否显示右边刷新按钮 */
|
|
16
|
+
showRefresh: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: () => boolean | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** 是否显示右边设置 */
|
|
21
|
+
showSetting: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: () => boolean | undefined;
|
|
24
|
+
};
|
|
25
|
+
/** 是否显示自定义列 */
|
|
26
|
+
showSetColumn: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: () => boolean | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** 是否显示自定义行距 */
|
|
31
|
+
showLineHeight: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: () => any;
|
|
34
|
+
};
|
|
35
|
+
/** 不可自定义列数组 field数组 */
|
|
36
|
+
notSetColumnField: any;
|
|
37
|
+
/** 需要对不显示的字段进行过滤 主要针对于自定义 field数组 */
|
|
38
|
+
filterNoVisibleField: any;
|
|
39
|
+
/** 是否显示表格上方 alert */
|
|
40
|
+
showTableAlert: any;
|
|
41
|
+
/** api请求方法 */
|
|
42
|
+
api: {
|
|
43
|
+
type: PropType<(...arg: any[]) => Promise<any>>;
|
|
44
|
+
default: null;
|
|
45
|
+
};
|
|
46
|
+
/** 表格额外参数 */
|
|
47
|
+
searchInfo: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
/** 是否初始化加载数据 */
|
|
52
|
+
immediate: any;
|
|
53
|
+
/**
|
|
54
|
+
* 请求的状态吗
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
57
|
+
resultCode: {
|
|
58
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
/** 请求后的回调 */
|
|
62
|
+
afterFetch: {
|
|
63
|
+
type: PropType<TtTableProps["afterFetch"]>;
|
|
64
|
+
default: null;
|
|
65
|
+
};
|
|
66
|
+
/** 请求前的回调 */
|
|
67
|
+
beforeFetch: {
|
|
68
|
+
type: PropType<TtTableProps["beforeFetch"]>;
|
|
69
|
+
default: null;
|
|
70
|
+
};
|
|
71
|
+
/** data */
|
|
72
|
+
data: {
|
|
73
|
+
type: PropType<TtTableProps["data"]>;
|
|
74
|
+
default: never[];
|
|
75
|
+
};
|
|
76
|
+
/** 是否滚动加载数据 */
|
|
77
|
+
isScrollFetch: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** 滚动加载数据是否显示loading */
|
|
82
|
+
showScrollFetchLoading: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
/** 是否显示复选框 */
|
|
87
|
+
showCheckbox: any;
|
|
88
|
+
/** 是否显示单选框 */
|
|
89
|
+
showRadio: any;
|
|
90
|
+
/** 是否显示序号 */
|
|
91
|
+
showIndex: any;
|
|
92
|
+
/** 是否需要列拖拽 */
|
|
93
|
+
isCellResize: any;
|
|
94
|
+
/**
|
|
95
|
+
* 是否拖动列
|
|
96
|
+
* @deprecated 请使用 column-config drag 配合column-drag-config配置 支持的版本看官方文档,后续不在维护列拖拽
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
isColumnsDrag: any;
|
|
100
|
+
/** 是否列排序 */
|
|
101
|
+
isCellSort: any;
|
|
102
|
+
/**
|
|
103
|
+
* 是否checkbox区域选择 选中数据
|
|
104
|
+
* @deprecated
|
|
105
|
+
*/
|
|
106
|
+
isAreaCheckData: any;
|
|
107
|
+
/** 是否显示操作列 */
|
|
108
|
+
showAction: any;
|
|
109
|
+
/** 操作列宽度 */
|
|
110
|
+
actionWidth: any;
|
|
111
|
+
/** 操作列列名 */
|
|
112
|
+
actionTitle: any;
|
|
113
|
+
/** 操作列Props */
|
|
114
|
+
actionProps: {
|
|
115
|
+
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
116
|
+
default: () => {};
|
|
117
|
+
};
|
|
118
|
+
/** 序号列Props */
|
|
119
|
+
indexColumnProps: {
|
|
120
|
+
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
123
|
+
/** 复选框列Props */
|
|
124
|
+
checkboxColumnProps: {
|
|
125
|
+
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
126
|
+
default: () => {};
|
|
127
|
+
};
|
|
128
|
+
/** 拖拽 */
|
|
129
|
+
rowDragColumnProps: {
|
|
130
|
+
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
131
|
+
default: () => {};
|
|
132
|
+
};
|
|
133
|
+
/** 单选框列Props */
|
|
134
|
+
radioColumnProps: {
|
|
135
|
+
type: PropType<VxeTableDefines.ColumnOptions>;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
/** 表格行id */
|
|
139
|
+
tableRowId: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: () => string | undefined;
|
|
142
|
+
};
|
|
143
|
+
/** 自定义Column函数 */
|
|
144
|
+
customizeColumn: {
|
|
145
|
+
type: PropType<TtTableProps["customizeColumn"]>;
|
|
146
|
+
};
|
|
147
|
+
/** 是否显示分页 */
|
|
148
|
+
showPager: any;
|
|
149
|
+
/** 数据总数 */
|
|
150
|
+
total: any;
|
|
151
|
+
/** 当前页数 field */
|
|
152
|
+
currentPageField: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: () => string | undefined;
|
|
155
|
+
};
|
|
156
|
+
/** 当前页的大小 field */
|
|
157
|
+
pageSizeField: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: () => string | undefined;
|
|
160
|
+
};
|
|
161
|
+
/** 总数 field */
|
|
162
|
+
totalField: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: () => string | undefined;
|
|
165
|
+
};
|
|
166
|
+
/** 数据的 field */
|
|
167
|
+
dataField: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: () => string | undefined;
|
|
170
|
+
};
|
|
171
|
+
modelValue: {
|
|
172
|
+
type: ArrayConstructor[];
|
|
173
|
+
default: () => never[];
|
|
174
|
+
};
|
|
175
|
+
/** 标题内容 */
|
|
176
|
+
title: any;
|
|
177
|
+
/** 是否显示标题 */
|
|
178
|
+
showTitle: any;
|
|
179
|
+
/** 是否自适应高度 */
|
|
180
|
+
autoHeight: any;
|
|
181
|
+
/**
|
|
182
|
+
* 额外减去的高度
|
|
183
|
+
* @deprecated
|
|
184
|
+
*/
|
|
185
|
+
offsetHeight: any;
|
|
186
|
+
/** 左侧插槽的宽度 */
|
|
187
|
+
leftSlotWidth: any;
|
|
188
|
+
/** 右侧插槽的宽度 */
|
|
189
|
+
rightSlotWidth: any;
|
|
190
|
+
/** loading text */
|
|
191
|
+
loadingText: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: () => string | undefined;
|
|
194
|
+
};
|
|
195
|
+
/** 暂无数据的样式 */
|
|
196
|
+
emptyImageStyle: any;
|
|
197
|
+
/** 暂无数据 */
|
|
198
|
+
emptyText: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: () => string | undefined;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* 空数据图片状态, 对于不传api的默认展示情况
|
|
204
|
+
* @default 'no-data'
|
|
205
|
+
*/
|
|
206
|
+
emptyImageStatus: {
|
|
207
|
+
type: PropType<"no-data" | "no-search">;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
/** 未查询时文字 */
|
|
211
|
+
noSearchText: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: () => string | undefined;
|
|
214
|
+
};
|
|
215
|
+
/** 是否手动触发查询事件 */
|
|
216
|
+
isHanderSubmit: any;
|
|
217
|
+
/** 储存的key值 */
|
|
218
|
+
columnsKey: any;
|
|
219
|
+
/** 是否开启服务端缓存 */
|
|
220
|
+
useHttpCache: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: () => boolean | undefined;
|
|
223
|
+
};
|
|
224
|
+
/** 开启服务端缓存时默认展示的列 用户列为null时默认展示的列 */
|
|
225
|
+
defaultDisplayFields: {
|
|
226
|
+
type: PropType<string[]>;
|
|
227
|
+
default: () => string[] | undefined;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* 是否需要行拖拽
|
|
231
|
+
* @deprecated 请使用 row-config drag 配合row-drag-config配置 支持的版本看官方文档,后续不在维护行拖拽
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
isRowDrag: any;
|
|
235
|
+
/**
|
|
236
|
+
* 是否需要行拖拽-树形表格
|
|
237
|
+
* @deprecated 请使用 row-config drag 配合row-drag-config配置 支持的版本看官方文档,后续不在维护行拖拽
|
|
238
|
+
* @default false
|
|
239
|
+
*/
|
|
240
|
+
treeNode: any;
|
|
241
|
+
/** 外部插槽 */
|
|
242
|
+
getSyncSlotComponent: {
|
|
243
|
+
type: PropType<(column: any, row: any, type: "default" | "edit") => VNode | VNode[] | string>;
|
|
244
|
+
};
|
|
245
|
+
/** 是否清空树形展开状态 */
|
|
246
|
+
clearTreeExpand: any;
|
|
247
|
+
/** 是否进行国际化 */
|
|
248
|
+
isI18n: any;
|
|
249
|
+
/**
|
|
250
|
+
* 外部数据是否拷贝一份
|
|
251
|
+
* 设置为 false 时,会有性能问题
|
|
252
|
+
* @default true
|
|
253
|
+
*/
|
|
254
|
+
isDataCloneDeep: any;
|
|
255
|
+
/** 表格的api */
|
|
256
|
+
tableApi: {
|
|
257
|
+
type: PropType<TtTableExtendedTableApi>;
|
|
258
|
+
};
|
|
259
|
+
/** 表格的api */
|
|
260
|
+
formApi: {
|
|
261
|
+
type: PropType<TtExtendedFormApi>;
|
|
262
|
+
};
|
|
263
|
+
/** 是否使用搜索form */
|
|
264
|
+
useSearchForm: any;
|
|
265
|
+
/** 是否禁用Teleport将节点输送至body */
|
|
266
|
+
disabledTeleport: any;
|
|
267
|
+
/** 表格 testId,用于生成测试标识 */
|
|
268
|
+
testId: {
|
|
269
|
+
type: StringConstructor;
|
|
270
|
+
default: undefined;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
/** table-pro配置参数 */
|
|
274
|
+
export declare const tableProProps: {
|
|
275
|
+
/** 按键配置项 */
|
|
276
|
+
keyboardConfig: {
|
|
277
|
+
type: PropType<VxeTablePropTypes.KeyboardConfig>;
|
|
278
|
+
default: () => VxeTablePropTypes.KeyboardConfig<any> | undefined;
|
|
279
|
+
};
|
|
280
|
+
/** 右键菜单配置项 */
|
|
281
|
+
menuConfig: {
|
|
282
|
+
type: PropType<VxeTablePropTypes.MenuConfig>;
|
|
283
|
+
default: () => {};
|
|
284
|
+
};
|
|
285
|
+
/** 鼠标配置项 */
|
|
286
|
+
mouseConfig: {
|
|
287
|
+
type: PropType<VxeTablePropTypes.MouseConfig>;
|
|
288
|
+
default: () => VxeTablePropTypes.MouseConfig | undefined;
|
|
289
|
+
};
|
|
290
|
+
/** 复选框配置项 */
|
|
291
|
+
checkboxConfig: {
|
|
292
|
+
type: PropType<VxeTablePropTypes.CheckboxConfig>;
|
|
293
|
+
default: () => VxeTablePropTypes.CheckboxConfig<VxeTablePropTypes.Row> | undefined;
|
|
294
|
+
};
|
|
295
|
+
/** 单选框配置项 */
|
|
296
|
+
radioConfig: {
|
|
297
|
+
type: PropType<VxeTablePropTypes.RadioConfig>;
|
|
298
|
+
default: () => VxeTablePropTypes.RadioConfig<VxeTablePropTypes.Row> | undefined;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/** tableForm 参数 */
|
|
302
|
+
export declare const tableFormProps: {
|
|
303
|
+
tableData: {
|
|
304
|
+
type: PropType<Recordable[]>;
|
|
305
|
+
default: () => never[];
|
|
306
|
+
};
|
|
307
|
+
/** table参数 */
|
|
308
|
+
table: {
|
|
309
|
+
type: PropType<Partial<TtTableProps>>;
|
|
310
|
+
default: {};
|
|
311
|
+
};
|
|
312
|
+
/** 是否使用搜索form */
|
|
313
|
+
useSearchForm: any;
|
|
314
|
+
/** BasicFormProps 的配置 */
|
|
315
|
+
form: {
|
|
316
|
+
type: PropType<Partial<TtFormProps>>;
|
|
317
|
+
default: () => {};
|
|
318
|
+
};
|
|
319
|
+
/** 查询条件请求之前处理 */
|
|
320
|
+
handleSearchInfoFn: {
|
|
321
|
+
type: PropType<Fn>;
|
|
322
|
+
default: null;
|
|
323
|
+
};
|
|
324
|
+
/** 刷新前的调用方法 */
|
|
325
|
+
tableRefreshBefore: {
|
|
326
|
+
type: PropType<Fn>;
|
|
327
|
+
default: null;
|
|
328
|
+
};
|
|
329
|
+
/** TtTableTools的props */
|
|
330
|
+
toolConfig: {
|
|
331
|
+
type: PropType<TtTableToolsProps>;
|
|
332
|
+
default: null;
|
|
333
|
+
};
|
|
334
|
+
/** 表格行id */
|
|
335
|
+
tableRowId: {
|
|
336
|
+
type: StringConstructor;
|
|
337
|
+
default: () => string | undefined;
|
|
338
|
+
};
|
|
339
|
+
/** 表格 testId,用于生成测试标识 */
|
|
340
|
+
testId: {
|
|
341
|
+
type: StringConstructor;
|
|
342
|
+
default: undefined;
|
|
343
|
+
};
|
|
344
|
+
/** 表格的api */
|
|
345
|
+
tableFormApi: {
|
|
346
|
+
type: PropType<TtTableExtendedTableFormApi>;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
/** 表格的参数和vxe-table的参数相同需要重新定义 */
|
|
350
|
+
export declare const tableOtherProps: {
|
|
351
|
+
/** 按键配置项 */
|
|
352
|
+
keyboardConfig: {
|
|
353
|
+
type: PropType<VxeTablePropTypes.KeyboardConfig>;
|
|
354
|
+
default: () => VxeTablePropTypes.KeyboardConfig<any> | undefined;
|
|
355
|
+
};
|
|
356
|
+
/** 右键菜单配置项 */
|
|
357
|
+
menuConfig: {
|
|
358
|
+
type: PropType<VxeTablePropTypes.MenuConfig>;
|
|
359
|
+
default: () => {};
|
|
360
|
+
};
|
|
361
|
+
/** 鼠标配置项 */
|
|
362
|
+
mouseConfig: {
|
|
363
|
+
type: PropType<VxeTablePropTypes.MouseConfig>;
|
|
364
|
+
default: () => VxeTablePropTypes.MouseConfig | undefined;
|
|
365
|
+
};
|
|
366
|
+
/** 复选框配置项 */
|
|
367
|
+
checkboxConfig: {
|
|
368
|
+
type: PropType<VxeTablePropTypes.CheckboxConfig>;
|
|
369
|
+
default: () => VxeTablePropTypes.CheckboxConfig<VxeTablePropTypes.Row> | undefined;
|
|
370
|
+
};
|
|
371
|
+
/** 单选框配置项 */
|
|
372
|
+
radioConfig: {
|
|
373
|
+
type: PropType<VxeTablePropTypes.RadioConfig>;
|
|
374
|
+
default: () => VxeTablePropTypes.RadioConfig<VxeTablePropTypes.Row> | undefined;
|
|
375
|
+
};
|
|
376
|
+
/** 列配置 */
|
|
377
|
+
columns: {
|
|
378
|
+
type: PropType<TtTableProps["columns"]>;
|
|
379
|
+
default: () => never[];
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* 表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)
|
|
383
|
+
*/
|
|
384
|
+
height: {
|
|
385
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
386
|
+
default: undefined;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* 设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度
|
|
390
|
+
* @default true
|
|
391
|
+
*/
|
|
392
|
+
showOverflow: {
|
|
393
|
+
type: PropType<TtTableProps["showOverflow"]>;
|
|
394
|
+
default: boolean;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* @description 内部使用插槽重写title内容。true 和 'tooltip' 都会有 tooltip 效果,false 和其他的值会显示省略号不会有 tooltip 效果
|
|
398
|
+
* @default true
|
|
399
|
+
*/
|
|
400
|
+
showHeaderOverflow: {
|
|
401
|
+
type: PropType<TtTableProps["showHeaderOverflow"]>;
|
|
402
|
+
default: boolean;
|
|
403
|
+
};
|
|
404
|
+
/** 分页配置 */
|
|
405
|
+
pagerConfig: {
|
|
406
|
+
type: PropType<TtTableProps["pagerConfig"]>;
|
|
407
|
+
default: () => import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
408
|
+
};
|
|
409
|
+
/** toolbar 配置 */
|
|
410
|
+
toolbarConfig: {
|
|
411
|
+
type: PropType<TtTableProps["toolbarConfig"]>;
|
|
412
|
+
default: () => null;
|
|
413
|
+
};
|
|
414
|
+
/** 缩放配置项 */
|
|
415
|
+
zoomConfig: {
|
|
416
|
+
type: PropType<TtTableProps["zoomConfig"]>;
|
|
417
|
+
default: () => null;
|
|
418
|
+
};
|
|
419
|
+
/** 表格大小 */
|
|
420
|
+
size: {
|
|
421
|
+
type: PropType<TtTableProps["size"]>;
|
|
422
|
+
default: () => import('vxe-pc-ui').VxeComponentSizeType | undefined;
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* tooltip错误提示方向,用于控制错误信息提示的显示位置
|
|
426
|
+
* 可选值: 'top', 'bottom', 'left', 'right'
|
|
427
|
+
* @default 'right'
|
|
428
|
+
*/
|
|
429
|
+
toolTipErrorPlacement: {
|
|
430
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
431
|
+
default: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const toolProps: {
|
|
2
|
+
/** 是否显示设置 */
|
|
3
|
+
showSetting: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** 是否显示刷新按钮 */
|
|
8
|
+
showRefresh: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** 是否显示列设置按钮 */
|
|
13
|
+
showSetColumn: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** 储存的key */
|
|
18
|
+
columnsKey: any;
|
|
19
|
+
};
|