@dazhicheng/ui 1.6.24 → 1.6.25
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.d.ts +24 -35
- package/dist/components/tt-area/TtArea.d.ts +3 -0
- package/dist/components/tt-area/index.d.ts +1 -1
- package/dist/components/tt-button/components/AddButton.d.ts +3 -0
- package/dist/components/tt-button/index.d.ts +260 -589
- package/dist/components/tt-checkbox/index.d.ts +26 -35
- package/dist/components/tt-drawer/index.d.ts +306 -299
- package/dist/components/tt-drawer/src/{RenderDrawer.vue.d.ts → RenderDrawer.d.ts} +149 -146
- package/dist/components/tt-drawer/src/components/{DrawerFooter.vue.d.ts → DrawerFooter.d.ts} +18 -16
- package/dist/components/tt-drawer/src/components/{DrawerHeader.vue.d.ts → DrawerHeader.d.ts} +4 -3
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +2 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +2 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +4 -2
- package/dist/components/tt-empty/index.d.ts +10 -8
- package/dist/components/tt-form/src/components/{ExpandableArrow.vue.d.ts → ExpandableArrow.d.ts} +5 -4
- package/dist/components/tt-form/src/components/{FormActions.vue.d.ts → FormActions.d.ts} +6 -5
- package/dist/components/tt-form/src/components/{FormElInput.vue.d.ts → FormElInput.d.ts} +105 -101
- package/dist/components/tt-form/src/components/Slot.d.ts +4 -4
- package/dist/components/tt-form/src/form/{FormControl.vue.d.ts → FormControl.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormDescription.vue.d.ts → FormDescription.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormItem.vue.d.ts → FormItem.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormLabel.vue.d.ts → FormLabel.d.ts} +2 -1
- package/dist/components/tt-form/src/form/FormMessage.d.ts +3 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.d.ts +9 -0
- package/dist/components/tt-form/src/form/{FormWarnMessage.vue.d.ts → FormWarnMessage.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{RenderContent.vue.d.ts → RenderContent.d.ts} +4 -4
- package/dist/components/tt-form/src/form/index.d.ts +8 -8
- package/dist/components/tt-form/src/form/useFormField.d.ts +6 -5
- package/dist/components/tt-form/src/form-render/{FormField.vue.d.ts → FormField.d.ts} +2 -1
- package/dist/components/tt-form/src/form-render/FormFieldContact.d.ts +6 -6
- package/dist/components/tt-form/src/form-render/{FormLabel.vue.d.ts → FormLabel.d.ts} +3 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +14 -11
- package/dist/components/tt-form/src/form-render/context.d.ts +5 -4
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +7 -6
- package/dist/components/tt-form/src/form-render/expandable.d.ts +4 -3
- package/dist/components/tt-form/src/form-render/{form.vue.d.ts → form.d.ts} +9 -8
- package/dist/components/tt-form/src/form-render/index.d.ts +3 -3
- package/dist/components/tt-form/src/formApi.d.ts +3 -3
- package/dist/components/tt-form/src/group-form/{GroupForm.vue.d.ts → GroupForm.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{GroupSection.vue.d.ts → GroupSection.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{LazyFormField.vue.d.ts → LazyFormField.d.ts} +5 -3
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +7 -5
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +3 -2
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +2 -2
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +2 -2
- package/dist/components/tt-form/src/index.d.ts +217 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -1
- package/dist/components/tt-form/src/useFormContext.d.ts +2 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +61 -337
- package/dist/components/tt-icon/components/AddIcon.d.ts +8 -0
- package/dist/components/tt-icon/components/SubIcon.d.ts +8 -0
- package/dist/components/tt-icon/index.d.ts +24 -115
- package/dist/components/tt-image/index.d.ts +45 -41
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +30 -26
- package/dist/components/tt-image/tt-image.d.ts +36 -34
- package/dist/components/tt-loading/index.d.ts +5 -2
- package/dist/components/tt-loading/src/loading.d.ts +13 -0
- package/dist/components/tt-log/index.d.ts +7 -6
- package/dist/components/tt-modal/index.d.ts +371 -364
- package/dist/components/tt-modal/src/{RenderModal.vue.d.ts → RenderModal.d.ts} +118 -115
- package/dist/components/tt-modal/src/components/{ModalFooter.vue.d.ts → ModalFooter.d.ts} +26 -23
- package/dist/components/tt-modal/src/components/{ModalHeader.vue.d.ts → ModalHeader.d.ts} +4 -3
- package/dist/components/tt-modal/src/components/{ModalWrapper.vue.d.ts → ModalWrapper.d.ts} +27 -24
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +32 -29
- package/dist/components/tt-modal/src/typing.d.ts +2 -2
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +2 -1
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.d.ts +3 -2
- package/dist/components/tt-modal-form/index.d.ts +46 -2
- package/dist/components/tt-modal-form/useModalForm.d.ts +4 -3
- package/dist/components/tt-nav-anchor/index.d.ts +15 -12
- package/dist/components/tt-nav-anchor/src/{TtNavAnchor.vue.d.ts → TtNavAnchor.d.ts} +4 -4
- package/dist/components/tt-panel-select/index.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/{PanelLeft.vue.d.ts → PanelLeft.d.ts} +4 -3
- package/dist/components/tt-panel-select/src/components/{PanelMiddle.vue.d.ts → PanelMiddle.d.ts} +83 -80
- package/dist/components/tt-panel-select/src/components/{PanelRight.vue.d.ts → PanelRight.d.ts} +34 -32
- package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +7 -6
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +5 -5
- package/dist/components/tt-panel-select/src/{index.vue.d.ts → index.d.ts} +84 -80
- package/dist/components/tt-radio-group/index.d.ts +31 -50
- package/dist/components/tt-select/index.d.ts +1 -1
- package/dist/components/tt-select/src/{Select.vue.d.ts → Select.d.ts} +146 -141
- package/dist/components/tt-select/src/components/{SelectTable.vue.d.ts → SelectTable.d.ts} +40 -36
- package/dist/components/tt-select/src/components/{Table.vue.d.ts → Table.d.ts} +41 -38
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +4 -3
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +287 -279
- package/dist/components/tt-table/src/{Table.vue.d.ts → Table.d.ts} +209 -204
- package/dist/components/tt-table/src/{TableForm.vue.d.ts → TableForm.d.ts} +83 -80
- package/dist/components/tt-table/src/components/RowContext.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableAction.vue.d.ts → TableAction.d.ts} +4 -4
- package/dist/components/tt-table/src/components/TableButtons.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableColumnModal.vue.d.ts → TableColumnModal.d.ts} +5 -4
- package/dist/components/tt-table/src/components/{TableToolbarTools.vue.d.ts → TableToolbarTools.d.ts} +7 -6
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +45 -44
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +33 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +112 -110
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +2 -2
- package/dist/components/tt-table/src/props.d.ts +19 -17
- package/dist/components/tt-table/src/utils/table-api.d.ts +4 -4
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +2 -1
- package/dist/components/tt-text/index.d.ts +34 -59
- package/dist/components/tt-upload/index.d.ts +317 -311
- package/dist/components/tt-upload/src/TtUpload.d.ts +519 -0
- package/dist/components/tt-upload/src/typing.d.ts +49 -47
- package/dist/hooks/useLoading.d.ts +2 -2
- package/dist/hooks/useScreenshotOss.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
- package/dist/components/tt-api-component/index.vue.d.ts +0 -34
- package/dist/components/tt-area/TtArea.vue.d.ts +0 -2
- package/dist/components/tt-button/components/AddButton.vue.d.ts +0 -2
- package/dist/components/tt-button/index.vue.d.ts +0 -466
- package/dist/components/tt-checkbox/index.vue.d.ts +0 -28
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +0 -2
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +0 -8
- package/dist/components/tt-form/src/index.vue.d.ts +0 -216
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +0 -298
- package/dist/components/tt-icon/components/AddIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/components/SubIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/index.vue.d.ts +0 -32
- package/dist/components/tt-loading/src/loading.vue.d.ts +0 -12
- package/dist/components/tt-log/index.vue.d.ts +0 -5
- package/dist/components/tt-modal-form/index.vue.d.ts +0 -45
- package/dist/components/tt-radio-group/index.vue.d.ts +0 -33
- package/dist/components/tt-text/index.vue.d.ts +0 -50
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +0 -517
|
@@ -2,6 +2,7 @@ import { ComputedRef, Ref } from 'vue';
|
|
|
2
2
|
import { VxeGridDefines, VxeGridInstance, VxeGridPropTypes, VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
3
3
|
import { Recordable } from '../../../../../../utils/src';
|
|
4
4
|
import { TtTableProps } from '../types/table';
|
|
5
|
+
import { VxeComponentSlotType } from 'vxe-pc-ui';
|
|
5
6
|
/** 表格列配置类型 */
|
|
6
7
|
type ColumnOptions = VxeTableDefines.ColumnOptions;
|
|
7
8
|
type ColumnsEmit = {
|
|
@@ -23,28 +24,28 @@ export declare function useColumns(propsRef: ComputedRef<TtTableProps>, grid: Re
|
|
|
23
24
|
children?: {
|
|
24
25
|
children?: /*elided*/ any[] | undefined;
|
|
25
26
|
slots?: {
|
|
26
|
-
title?: string | ((params: import("vxe-table").VxeColumnSlotTypes.TitleSlotParams<any>) =>
|
|
27
|
-
sort?: string | ((params: import("vxe-table").VxeColumnSlotTypes.SortSlotParams<any>) =>
|
|
28
|
-
radio?: string | ((params: import("vxe-table").VxeColumnSlotTypes.RadioSlotParams<any>) =>
|
|
29
|
-
checkbox?: string | ((params: import("vxe-table").VxeColumnSlotTypes.CheckboxSlotParams<any>) =>
|
|
30
|
-
default?: string | ((params: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<any>) =>
|
|
31
|
-
header?: string | ((params: import("vxe-table").VxeColumnSlotTypes.HeaderSlotParams<any>) =>
|
|
32
|
-
footer?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FooterSlotParams<any>) =>
|
|
33
|
-
content?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ContentSlotParams<any>) =>
|
|
34
|
-
filter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FilterSlotParams<any>) =>
|
|
35
|
-
floatingFilter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) =>
|
|
36
|
-
'floating-filter'?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) =>
|
|
37
|
-
edit?: string | ((params: import("vxe-table").VxeColumnSlotTypes.EditSlotParams<any>) =>
|
|
38
|
-
valid?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ValidSlotParams<any>) =>
|
|
39
|
-
rowDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) =>
|
|
40
|
-
'row-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) =>
|
|
41
|
-
columnDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) =>
|
|
42
|
-
'column-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) =>
|
|
43
|
-
groupContent?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) =>
|
|
44
|
-
'group-content'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) =>
|
|
45
|
-
groupValues?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) =>
|
|
46
|
-
'group-values'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) =>
|
|
47
|
-
icon?: string | ((params: import("vxe-table").VxeColumnSlotTypes.IconSlotParams<any>) =>
|
|
27
|
+
title?: string | ((params: import("vxe-table").VxeColumnSlotTypes.TitleSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
28
|
+
sort?: string | ((params: import("vxe-table").VxeColumnSlotTypes.SortSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
29
|
+
radio?: string | ((params: import("vxe-table").VxeColumnSlotTypes.RadioSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
30
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnSlotTypes.CheckboxSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
31
|
+
default?: string | ((params: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
32
|
+
header?: string | ((params: import("vxe-table").VxeColumnSlotTypes.HeaderSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
33
|
+
footer?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FooterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
34
|
+
content?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
35
|
+
filter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
36
|
+
floatingFilter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
37
|
+
'floating-filter'?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
38
|
+
edit?: string | ((params: import("vxe-table").VxeColumnSlotTypes.EditSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
39
|
+
valid?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ValidSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
40
|
+
rowDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
41
|
+
'row-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
42
|
+
columnDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
43
|
+
'column-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
44
|
+
groupContent?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
45
|
+
'group-content'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
46
|
+
groupValues?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
47
|
+
'group-values'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
48
|
+
icon?: string | ((params: import("vxe-table").VxeColumnSlotTypes.IconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
48
49
|
} | undefined;
|
|
49
50
|
colId?: import("vxe-table").VxeColumnPropTypes.ColId | undefined;
|
|
50
51
|
type?: import("vxe-table").VxeColumnPropTypes.Type | undefined;
|
|
@@ -265,28 +266,28 @@ export declare function useColumns(propsRef: ComputedRef<TtTableProps>, grid: Re
|
|
|
265
266
|
params?: import("vxe-table").VxeColumnPropTypes.Params;
|
|
266
267
|
}[] | undefined;
|
|
267
268
|
slots?: {
|
|
268
|
-
title?: string | ((params: import("vxe-table").VxeColumnSlotTypes.TitleSlotParams<any>) =>
|
|
269
|
-
sort?: string | ((params: import("vxe-table").VxeColumnSlotTypes.SortSlotParams<any>) =>
|
|
270
|
-
radio?: string | ((params: import("vxe-table").VxeColumnSlotTypes.RadioSlotParams<any>) =>
|
|
271
|
-
checkbox?: string | ((params: import("vxe-table").VxeColumnSlotTypes.CheckboxSlotParams<any>) =>
|
|
272
|
-
default?: string | ((params: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<any>) =>
|
|
273
|
-
header?: string | ((params: import("vxe-table").VxeColumnSlotTypes.HeaderSlotParams<any>) =>
|
|
274
|
-
footer?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FooterSlotParams<any>) =>
|
|
275
|
-
content?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ContentSlotParams<any>) =>
|
|
276
|
-
filter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FilterSlotParams<any>) =>
|
|
277
|
-
floatingFilter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) =>
|
|
278
|
-
'floating-filter'?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) =>
|
|
279
|
-
edit?: string | ((params: import("vxe-table").VxeColumnSlotTypes.EditSlotParams<any>) =>
|
|
280
|
-
valid?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ValidSlotParams<any>) =>
|
|
281
|
-
rowDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) =>
|
|
282
|
-
'row-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) =>
|
|
283
|
-
columnDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) =>
|
|
284
|
-
'column-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) =>
|
|
285
|
-
groupContent?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) =>
|
|
286
|
-
'group-content'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) =>
|
|
287
|
-
groupValues?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) =>
|
|
288
|
-
'group-values'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) =>
|
|
289
|
-
icon?: string | ((params: import("vxe-table").VxeColumnSlotTypes.IconSlotParams<any>) =>
|
|
269
|
+
title?: string | ((params: import("vxe-table").VxeColumnSlotTypes.TitleSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
270
|
+
sort?: string | ((params: import("vxe-table").VxeColumnSlotTypes.SortSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
271
|
+
radio?: string | ((params: import("vxe-table").VxeColumnSlotTypes.RadioSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
272
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnSlotTypes.CheckboxSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
273
|
+
default?: string | ((params: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
274
|
+
header?: string | ((params: import("vxe-table").VxeColumnSlotTypes.HeaderSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
275
|
+
footer?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FooterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
276
|
+
content?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
277
|
+
filter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
278
|
+
floatingFilter?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
279
|
+
'floating-filter'?: string | ((params: import("vxe-table").VxeColumnSlotTypes.FloatingFilterSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
280
|
+
edit?: string | ((params: import("vxe-table").VxeColumnSlotTypes.EditSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
281
|
+
valid?: string | ((params: import("vxe-table").VxeColumnSlotTypes.ValidSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
282
|
+
rowDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
283
|
+
'row-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.RowDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
284
|
+
columnDragIcon?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
285
|
+
'column-drag-icon'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnDragIconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
286
|
+
groupContent?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
287
|
+
'group-content'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupContentSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
288
|
+
groupValues?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
289
|
+
'group-values'?: string | ((params: import("vxe-table").VxeTableSlotTypes.ColumnGroupValuesSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
290
|
+
icon?: string | ((params: import("vxe-table").VxeColumnSlotTypes.IconSlotParams<any>) => VxeComponentSlotType[] | VxeComponentSlotType) | null | undefined;
|
|
290
291
|
} | undefined;
|
|
291
292
|
colId?: import("vxe-table").VxeColumnPropTypes.ColId | undefined;
|
|
292
293
|
type?: import("vxe-table").VxeColumnPropTypes.Type | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { VxeGridPropTypes } from 'vxe-table';
|
|
3
|
-
import { VxePagerDefines, VxePagerEvents } from 'vxe-pc-ui';
|
|
3
|
+
import { VxePagerDefines, VxePagerEvents, VxeComponentSlotType } from 'vxe-pc-ui';
|
|
4
4
|
import { TtTableProps } from '../types/table';
|
|
5
5
|
/** 分页配置类型 */
|
|
6
6
|
type PagerConfig = VxeGridPropTypes.PagerConfig;
|
|
@@ -10,24 +10,24 @@ type PagerConfig = VxeGridPropTypes.PagerConfig;
|
|
|
10
10
|
* @param emit 组件 emit
|
|
11
11
|
*/
|
|
12
12
|
export declare function usePagination(propsRef: ComputedRef<TtTableProps>, emit: (event: "page-change", data: any) => void): {
|
|
13
|
-
pagination:
|
|
13
|
+
pagination: Ref<{
|
|
14
14
|
enabled?: boolean | undefined;
|
|
15
15
|
slots?: {
|
|
16
|
-
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) =>
|
|
17
|
-
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) =>
|
|
18
|
-
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) =>
|
|
19
|
-
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) =>
|
|
20
|
-
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) =>
|
|
21
|
-
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) =>
|
|
22
|
-
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) =>
|
|
23
|
-
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) =>
|
|
24
|
-
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) =>
|
|
25
|
-
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) =>
|
|
26
|
-
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) =>
|
|
27
|
-
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) =>
|
|
28
|
-
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) =>
|
|
29
|
-
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) =>
|
|
30
|
-
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) =>
|
|
16
|
+
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
17
|
+
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
18
|
+
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
19
|
+
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
20
|
+
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
21
|
+
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
22
|
+
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
23
|
+
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
24
|
+
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
25
|
+
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
26
|
+
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
27
|
+
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
28
|
+
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
29
|
+
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
30
|
+
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
31
31
|
} | undefined;
|
|
32
32
|
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
33
33
|
layouts?: ("Home" | "PrevJump" | "PrevPage" | "Number" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
@@ -58,21 +58,21 @@ export declare function usePagination(propsRef: ComputedRef<TtTableProps>, emit:
|
|
|
58
58
|
}, VxeGridPropTypes.PagerConfig | {
|
|
59
59
|
enabled?: boolean | undefined;
|
|
60
60
|
slots?: {
|
|
61
|
-
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) =>
|
|
62
|
-
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) =>
|
|
63
|
-
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) =>
|
|
64
|
-
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) =>
|
|
65
|
-
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) =>
|
|
66
|
-
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) =>
|
|
67
|
-
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) =>
|
|
68
|
-
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) =>
|
|
69
|
-
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) =>
|
|
70
|
-
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) =>
|
|
71
|
-
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) =>
|
|
72
|
-
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) =>
|
|
73
|
-
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) =>
|
|
74
|
-
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) =>
|
|
75
|
-
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) =>
|
|
61
|
+
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
62
|
+
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
63
|
+
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
64
|
+
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
65
|
+
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
66
|
+
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
67
|
+
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
68
|
+
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
69
|
+
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
70
|
+
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
71
|
+
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
72
|
+
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
73
|
+
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
74
|
+
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
75
|
+
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
78
78
|
layouts?: ("Home" | "PrevJump" | "PrevPage" | "Number" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
2
2
|
import { VxeGridInstance, VxeGridPropTypes } from 'vxe-table';
|
|
3
3
|
import { Recordable } from '../../../../../../utils/src';
|
|
4
4
|
import { FetchParams, TtTableProps } from '../types/table';
|
|
@@ -36,6 +36,6 @@ export declare function useQuery(propsRef: ComputedRef<TtTableProps>, ctx: Query
|
|
|
36
36
|
query: (opt: FetchParams) => Promise<void>;
|
|
37
37
|
reload: (opt?: FetchParams) => Promise<void>;
|
|
38
38
|
reloadFilter: (type?: "sort" | "filter" | "page") => Promise<void>;
|
|
39
|
-
isLoaded:
|
|
39
|
+
isLoaded: ShallowRef<boolean, boolean>;
|
|
40
40
|
};
|
|
41
41
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
2
2
|
import { VxeGridDefines, VxeGridEvents, VxeGridInstance, VxeTableExtendCellAreaDefines } from 'vxe-table';
|
|
3
3
|
import { Recordable } from '../../../../../../utils/src';
|
|
4
4
|
import { TtSelectRowKeysType, TtSelectRowsType, TtTableProps, TtTableSelectionPayload } from '../types/table';
|
|
@@ -27,7 +27,7 @@ type RowSelectionIdentity = {
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function useRowSelection(propsRef: ComputedRef<TtTableProps>, grid: Ref<undefined | VxeGridInstance<Recordable>>, emit: SelectionEmit, identity: RowSelectionIdentity): {
|
|
29
29
|
selectedKeys: Ref<any, any>;
|
|
30
|
-
selectedRows:
|
|
30
|
+
selectedRows: ShallowRef<any, any>;
|
|
31
31
|
selectedKeyList: ComputedRef<(string | number)[]>;
|
|
32
32
|
getSelectRowKeys: () => any;
|
|
33
33
|
getSelectRows: () => TtSelectRowsType;
|