@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,178 @@
|
|
|
1
|
+
import { ElSelect } from 'element-plus';
|
|
2
|
+
import { ComputedRef, MaybeRef, Ref } from 'vue';
|
|
3
|
+
import { VxeGridDefines, VxeGridPropTypes } from 'vxe-table';
|
|
4
|
+
import { TtSelectProps } from '../props';
|
|
5
|
+
import { TtSelectModelUnionType, TtSelectModelValueType, TtSelectSelectOptions, TtSelectDataOptions } from '../types';
|
|
6
|
+
import { default as SelectTable } from './components/SelectTable.vue';
|
|
7
|
+
/**
|
|
8
|
+
* 定义选项类型,包含表格、选择器、数据、分页等相关的引用和方法
|
|
9
|
+
*/
|
|
10
|
+
type OptType = {
|
|
11
|
+
/**
|
|
12
|
+
* 表格组件实例引用
|
|
13
|
+
*/
|
|
14
|
+
tableRef: InstanceType<typeof SelectTable>;
|
|
15
|
+
/**
|
|
16
|
+
* 选择器组件实例引用
|
|
17
|
+
*/
|
|
18
|
+
selectRef: Ref<InstanceType<typeof ElSelect> | null>;
|
|
19
|
+
/**
|
|
20
|
+
* 选择器选中的值
|
|
21
|
+
*/
|
|
22
|
+
selectValue: Ref<TtSelectModelValueType>;
|
|
23
|
+
/**
|
|
24
|
+
* 设置选择器选中的值
|
|
25
|
+
* @param val 选中的值
|
|
26
|
+
* @param opt 选中的选项
|
|
27
|
+
*/
|
|
28
|
+
setSelectValue: (val: TtSelectModelValueType, opt?: TtSelectSelectOptions, isEmitChange?: boolean) => void;
|
|
29
|
+
/**
|
|
30
|
+
* 选项列表
|
|
31
|
+
*/
|
|
32
|
+
options: Ref<TtSelectDataOptions[]>;
|
|
33
|
+
/**
|
|
34
|
+
* 选中的选项
|
|
35
|
+
*/
|
|
36
|
+
selectOption: Ref<TtSelectSelectOptions>;
|
|
37
|
+
/**
|
|
38
|
+
* 是否多选
|
|
39
|
+
*/
|
|
40
|
+
multiple: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 重新加载数据的方法
|
|
43
|
+
* @param bool 是否重置数据
|
|
44
|
+
*/
|
|
45
|
+
reload: (bool?: boolean) => void;
|
|
46
|
+
/**
|
|
47
|
+
* 数据是否已加载
|
|
48
|
+
*/
|
|
49
|
+
isLoaded: Ref<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* 获取分页配置
|
|
52
|
+
* @returns 分页配置对象
|
|
53
|
+
*/
|
|
54
|
+
getPagination: () => VxeGridPropTypes.PagerConfig | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 设置分页配置
|
|
57
|
+
* @param config 部分分页配置对象
|
|
58
|
+
*/
|
|
59
|
+
setPagination: (config: Partial<VxeGridPropTypes.PagerConfig>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* 是否显示分页器
|
|
62
|
+
*/
|
|
63
|
+
showPager: Ref<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* 是否正在加载数据
|
|
66
|
+
*/
|
|
67
|
+
loading: Ref<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* 当前活动行的索引
|
|
70
|
+
*/
|
|
71
|
+
activeIndex: Ref<number>;
|
|
72
|
+
/**
|
|
73
|
+
* 设置当前活动行的索引
|
|
74
|
+
* @param index 索引值
|
|
75
|
+
*/
|
|
76
|
+
setActiveIndex: (index: number) => void;
|
|
77
|
+
/**
|
|
78
|
+
* 是否有下一页数据
|
|
79
|
+
*/
|
|
80
|
+
hasNextPage: Ref<boolean>;
|
|
81
|
+
/** 只有一条数据是否选中 */
|
|
82
|
+
getDefaultSingle: ComputedRef<boolean | undefined>;
|
|
83
|
+
/** 是否初始化加载数据 */
|
|
84
|
+
getImmediate: ComputedRef<boolean>;
|
|
85
|
+
/** 是否展开 */
|
|
86
|
+
showPopup: Ref<boolean>;
|
|
87
|
+
/** 设置是否展开 */
|
|
88
|
+
setShowPopup: (val: boolean) => void;
|
|
89
|
+
/** 是否需要重新加载数据 */
|
|
90
|
+
needLoad: ComputedRef<boolean>;
|
|
91
|
+
/** 选中的值,如果数据源获取后没有绑定值, 清空掉绑定值 */
|
|
92
|
+
dataNoBindValueClear: boolean | undefined;
|
|
93
|
+
/** 搜索值是否被清空 */
|
|
94
|
+
checkedClearSearchValue: boolean | undefined;
|
|
95
|
+
/** 设置搜索的值 */
|
|
96
|
+
setSearchValue: (val: string) => void;
|
|
97
|
+
/** 搜索的值 */
|
|
98
|
+
searchValue: Ref<string>;
|
|
99
|
+
/** 是否需要每次展开都获取数据 */
|
|
100
|
+
isExpandLoadData: MaybeRef<boolean | undefined>;
|
|
101
|
+
/** 当下拉选择器未被激活并且persistent设置为false,选择器会被删除 */
|
|
102
|
+
persistent: boolean;
|
|
103
|
+
/** 获取选项是否禁用 */
|
|
104
|
+
updateOptionsDisabled: () => void;
|
|
105
|
+
/** 是否选中第一条数据 */
|
|
106
|
+
getIsSelectFirstOption: ComputedRef<boolean | undefined>;
|
|
107
|
+
};
|
|
108
|
+
type EmitType = {
|
|
109
|
+
(e: "visible-change", visible: boolean): void;
|
|
110
|
+
(e: "scroll", event: VxeGridDefines.ScrollEventParams): void;
|
|
111
|
+
(e: "scroll-boundary", event: VxeGridDefines.ScrollBoundaryEventParams): void;
|
|
112
|
+
(e: "focus"): void;
|
|
113
|
+
(e: "blur"): void;
|
|
114
|
+
(e: "clear"): void;
|
|
115
|
+
(e: "remove-tag", tagValue: TtSelectModelUnionType): void;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* 用于处理选择表格事件的钩子函数
|
|
119
|
+
* @param props 组件属性
|
|
120
|
+
* @param opt 选项配置
|
|
121
|
+
* @returns 包含表格事件、选择器事件和键盘事件的对象
|
|
122
|
+
*/
|
|
123
|
+
export declare function useSelectTableEvent(props: ComputedRef<TtSelectProps>, opt: OptType, emit: EmitType): {
|
|
124
|
+
gridEvent: {
|
|
125
|
+
/**
|
|
126
|
+
* 单选框改变事件处理函数
|
|
127
|
+
*/
|
|
128
|
+
radioChange: ({ oldValue, row }: VxeGridDefines.RadioChangeEventParams) => Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* 复选框改变事件处理函数
|
|
131
|
+
*/
|
|
132
|
+
checkboxChange: ({ checked, row }: VxeGridDefines.CheckboxChangeEventParams) => Promise<void>;
|
|
133
|
+
/**
|
|
134
|
+
* 表格滚动事件处理函数
|
|
135
|
+
*/
|
|
136
|
+
scroll: (event: VxeGridDefines.ScrollEventParams) => void;
|
|
137
|
+
scrollBoundary: (event: VxeGridDefines.ScrollBoundaryEventParams) => void;
|
|
138
|
+
/**
|
|
139
|
+
* 全选复选框改变事件处理函数
|
|
140
|
+
*/
|
|
141
|
+
checkboxAll: ({ checked }: VxeGridDefines.CheckboxAllEventParams) => void;
|
|
142
|
+
/**
|
|
143
|
+
* 键盘按下事件处理函数
|
|
144
|
+
* @param event 键盘事件对象
|
|
145
|
+
*/
|
|
146
|
+
keydown: (event: KeyboardEvent) => void;
|
|
147
|
+
};
|
|
148
|
+
selectEvent: {
|
|
149
|
+
/**
|
|
150
|
+
* 清空选择器事件处理函数
|
|
151
|
+
*/
|
|
152
|
+
clear: () => void;
|
|
153
|
+
/**
|
|
154
|
+
* 选择器可见性改变事件处理函数
|
|
155
|
+
* @param bool 是否可见
|
|
156
|
+
*/
|
|
157
|
+
visibleChange: (bool: boolean) => void;
|
|
158
|
+
/**
|
|
159
|
+
* 择器值改变事件处理函数(el 删除/清除会触发)
|
|
160
|
+
* beforeChangeCheck(val, row):val 为当前操作的值,row 为当前操作的响应式对象
|
|
161
|
+
* @param val 选中的选项(el-select 的 v-model:单选为对象,多选为对象数组)
|
|
162
|
+
*/
|
|
163
|
+
change: (val: TtSelectSelectOptions) => Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* 选择器键盘按下捕获事件处理函数
|
|
166
|
+
* @param event 键盘事件对象
|
|
167
|
+
*/
|
|
168
|
+
keydownCapture: (event: KeyboardEvent) => void;
|
|
169
|
+
removeTag: (tagValue: TtSelectModelUnionType) => void;
|
|
170
|
+
};
|
|
171
|
+
keyboardEvent: {
|
|
172
|
+
ArrowUp: () => void;
|
|
173
|
+
ArrowDown: () => void;
|
|
174
|
+
Enter: () => void;
|
|
175
|
+
};
|
|
176
|
+
defaultDataSelect: (val: any, isNeedScrollToTop?: boolean, isSrcollBoundary?: boolean, isEmitChange?: boolean) => void;
|
|
177
|
+
};
|
|
178
|
+
export {};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { TipConfig } from '../../../directives/disabled-tip';
|
|
2
|
+
import { SelectProps } from 'element-plus';
|
|
3
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { VxeGridProps } from 'vxe-table';
|
|
5
|
+
import { TtSelectModelUnionType, TtSelectModelValueType, TtSelectConfigProps, TtSelectDataOptions } from './types';
|
|
6
|
+
export declare const configDefault: TtSelectConfigProps;
|
|
7
|
+
export type TtSelectGridProps = VxeGridProps & {
|
|
8
|
+
/** 是否展示checkbox */
|
|
9
|
+
showCheckbox?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const selectProps: {
|
|
12
|
+
/**
|
|
13
|
+
* 绑定值
|
|
14
|
+
*/
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: PropType<TtSelectModelValueType>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* el-select 的Props
|
|
21
|
+
*/
|
|
22
|
+
selectProps: {
|
|
23
|
+
type: PropType<Partial<Omit<SelectProps, "modelValue">>>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* vxe-grid 的Props
|
|
28
|
+
*/
|
|
29
|
+
gridProps: {
|
|
30
|
+
type: PropType<TtSelectGridProps>;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 渲染的类型
|
|
35
|
+
* @property select 下拉
|
|
36
|
+
* @property grid 表格
|
|
37
|
+
* @property tree 树
|
|
38
|
+
* @default select
|
|
39
|
+
*/
|
|
40
|
+
renderType: {
|
|
41
|
+
type: PropType<"select" | "grid" | "tree" | "table">;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/** 数据相关的配置 */
|
|
45
|
+
configProps: {
|
|
46
|
+
type: PropType<TtSelectConfigProps>;
|
|
47
|
+
default: () => TtSelectConfigProps;
|
|
48
|
+
};
|
|
49
|
+
extra: {
|
|
50
|
+
type: PropType<Record<string, any>>;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 改变前置函数
|
|
55
|
+
* @param val 改变后的值
|
|
56
|
+
* @param oVal 改变前的值
|
|
57
|
+
* @param option 配置项
|
|
58
|
+
* @returns 是否改变
|
|
59
|
+
*/
|
|
60
|
+
beforeChange: {
|
|
61
|
+
type: PropType<(val: TtSelectModelUnionType, oVal: TtSelectModelUnionType, option?: TtSelectDataOptions) => Promise<boolean>>;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
/** 是否加载 */
|
|
65
|
+
loading: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/** 是否禁用 */
|
|
70
|
+
disabled: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
/** 文本占位符 */
|
|
75
|
+
placeholder: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** 禁用提示 */
|
|
80
|
+
disabledTip: {
|
|
81
|
+
type: PropType<TipConfig | TipConfig[]>;
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
|
+
maxCollapseTags: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 外部值改变是否立即触发emit
|
|
90
|
+
* @deprecated 兼容旧代码,新开发不要使用
|
|
91
|
+
*/
|
|
92
|
+
immediateEmitChange: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
/** 是否显示边框 */
|
|
97
|
+
border: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export type TtSelectProps = ExtractPropTypes<typeof selectProps>;
|
|
103
|
+
export declare const selectTableProps: {
|
|
104
|
+
/** configProps */
|
|
105
|
+
configProps: {
|
|
106
|
+
type: PropType<TtSelectProps["configProps"]>;
|
|
107
|
+
default: () => {};
|
|
108
|
+
};
|
|
109
|
+
/** 表格的参数 */
|
|
110
|
+
grid: {
|
|
111
|
+
type: PropType<TtSelectProps["gridProps"]>;
|
|
112
|
+
default: () => {};
|
|
113
|
+
};
|
|
114
|
+
/** 数据源 */
|
|
115
|
+
list: {
|
|
116
|
+
type: PropType<Record<string, any>[]>;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
/** 是否加载中 */
|
|
120
|
+
loading: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
/** 是否分页 */
|
|
125
|
+
showPager: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
/** 分页参数 */
|
|
130
|
+
pagination: {
|
|
131
|
+
type: PropType<VxeGridProps["pagerConfig"]>;
|
|
132
|
+
default: () => {};
|
|
133
|
+
};
|
|
134
|
+
/** 是否多选 */
|
|
135
|
+
multiple: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
/** 禁用的方法 */
|
|
140
|
+
disableFn: {
|
|
141
|
+
type: PropType<TtSelectConfigProps["disableFn"]>;
|
|
142
|
+
default: null;
|
|
143
|
+
};
|
|
144
|
+
/** 选中的值 */
|
|
145
|
+
selectValue: {
|
|
146
|
+
type: PropType<TtSelectModelValueType>;
|
|
147
|
+
default: () => never[];
|
|
148
|
+
};
|
|
149
|
+
/** 下拉框的宽度 */
|
|
150
|
+
selectWidth: {
|
|
151
|
+
type: NumberConstructor;
|
|
152
|
+
default: number;
|
|
153
|
+
};
|
|
154
|
+
/** 删除Field */
|
|
155
|
+
deleteField: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
/** 设置分页配置 */
|
|
160
|
+
setPagination: {
|
|
161
|
+
type: PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
162
|
+
default: null;
|
|
163
|
+
};
|
|
164
|
+
/** 获取分页参数 */
|
|
165
|
+
getPagination: {
|
|
166
|
+
type: PropType<() => VxeGridProps["pagerConfig"]>;
|
|
167
|
+
default: null;
|
|
168
|
+
};
|
|
169
|
+
/** reload */
|
|
170
|
+
reload: {
|
|
171
|
+
type: PropType<(bool?: boolean) => Promise<void>>;
|
|
172
|
+
default: null;
|
|
173
|
+
};
|
|
174
|
+
/** 是否加载下一页 */
|
|
175
|
+
hasNextPage: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
/** 是否展示复选框 */
|
|
180
|
+
showCheckbox: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
/** multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制 */
|
|
185
|
+
multipleLimit: {
|
|
186
|
+
type: NumberConstructor;
|
|
187
|
+
default: number;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export type TtSelectTableProps = ExtractPropTypes<typeof selectTableProps>;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { MaybeRef, Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 定义 TtSelect 组件的数据选项类型
|
|
4
|
+
* 该类型包含了每个选项的基本信息,如标签、值、原始数据项等
|
|
5
|
+
*/
|
|
6
|
+
export type TtSelectDataOptions = {
|
|
7
|
+
label?: string;
|
|
8
|
+
value?: any;
|
|
9
|
+
item?: Record<string, any>;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
actionType?: "add" | "remove";
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 定义 TtSelect 组件的选中选项类型
|
|
16
|
+
* 该类型可以是单个选项、选项数组或未定义
|
|
17
|
+
*/
|
|
18
|
+
export type TtSelectSelectOptions = TtSelectDataOptions[] | TtSelectDataOptions | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 定义 TtSelect 组件的模型值类型
|
|
21
|
+
* 该类型可以是字符串、数字、字符串或数字的数组,也可以是 null 或未定义
|
|
22
|
+
*/
|
|
23
|
+
export type TtSelectModelValueType = string | number | boolean | (string | number | boolean)[] | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* 定义 TtSelect 组件的模型值联合类型
|
|
26
|
+
* 该类型可以是选中选项类型或模型值类型
|
|
27
|
+
*/
|
|
28
|
+
export type TtSelectModelUnionType = TtSelectSelectOptions | TtSelectModelValueType;
|
|
29
|
+
/**
|
|
30
|
+
* 定义 TtSelect 组件的键盘事件类型
|
|
31
|
+
* 该类型包含了向上箭头、向下箭头和回车键三种键盘事件
|
|
32
|
+
*/
|
|
33
|
+
export type TtSelectKeyboardType = "ArrowUp" | "ArrowDown" | "Enter";
|
|
34
|
+
export type TtSelectConfigProps = {
|
|
35
|
+
/** api */
|
|
36
|
+
api?: (...arg: any[]) => Promise<any>;
|
|
37
|
+
/** 是否分页 */
|
|
38
|
+
isPage?: boolean;
|
|
39
|
+
/** 数据 */
|
|
40
|
+
data?: TtSelectDataOptions[];
|
|
41
|
+
/** 是否初始化加载数据 */
|
|
42
|
+
immediate?: boolean;
|
|
43
|
+
/** 请求后的回调 */
|
|
44
|
+
afterFetch?: (res: any) => any;
|
|
45
|
+
/** 请求前的回调 */
|
|
46
|
+
beforeFetch?: (params: Record<string, any>) => Promise<Record<string, any>>;
|
|
47
|
+
/** 当前页数 field */
|
|
48
|
+
currentPageField?: string;
|
|
49
|
+
/** 当前页数 field Grpc */
|
|
50
|
+
currentPageFieldGrpc?: string;
|
|
51
|
+
/** 当前页的大小 field */
|
|
52
|
+
pageSizeField?: string;
|
|
53
|
+
/** 当前页的大小 field Grpc */
|
|
54
|
+
pageSizeFieldGrpc?: string;
|
|
55
|
+
/** 总数 field */
|
|
56
|
+
totalField?: string;
|
|
57
|
+
/** 总数 field Grpc */
|
|
58
|
+
totalFieldGrpc?: string;
|
|
59
|
+
/** 数据的 field, 不分页 */
|
|
60
|
+
dataField?: string;
|
|
61
|
+
/** 数据的 field, Grpc */
|
|
62
|
+
dataFieldGrpc?: string;
|
|
63
|
+
/** 数据的 field, 分页 */
|
|
64
|
+
resultField?: string;
|
|
65
|
+
/** 数据的 field, 分页 Grpc */
|
|
66
|
+
resultFieldGrpc?: string;
|
|
67
|
+
/** 搜索的 Field */
|
|
68
|
+
searchField?: string;
|
|
69
|
+
/** value field */
|
|
70
|
+
valueField?: string;
|
|
71
|
+
/** label field */
|
|
72
|
+
labelField?: string;
|
|
73
|
+
/** 是否有下一页数据字段,针对于无总数分页情况 */
|
|
74
|
+
hasNextPageField?: string;
|
|
75
|
+
/** delete field */
|
|
76
|
+
deleteField?: string;
|
|
77
|
+
/** message field */
|
|
78
|
+
messageField?: string;
|
|
79
|
+
/**
|
|
80
|
+
* 额外参数
|
|
81
|
+
* @deprecated 请使用 extra 代替
|
|
82
|
+
*/
|
|
83
|
+
extra?: Record<string, any> | Ref<Record<string, any>>;
|
|
84
|
+
/** 监听额外参数的字段 */
|
|
85
|
+
watchExtraField?: string[];
|
|
86
|
+
/** 默认选中的数据 */
|
|
87
|
+
defaultChecked?: TtSelectDataOptions[] | TtSelectDataOptions;
|
|
88
|
+
/** 禁用选项的方法 */
|
|
89
|
+
disableFn?: (value: any, modelValue?: TtSelectModelValueType, option?: TtSelectDataOptions) => boolean;
|
|
90
|
+
/**
|
|
91
|
+
* 连接字符函数
|
|
92
|
+
* @example (labels: string[]) => labels.join(',')
|
|
93
|
+
* @default join('-')
|
|
94
|
+
*/
|
|
95
|
+
joinFn?: (labels: string[]) => string;
|
|
96
|
+
/** 改变下拉数据源时是否清空选中的值 */
|
|
97
|
+
changeDataClearable?: boolean;
|
|
98
|
+
/** 只有一条数据是否默认选中 */
|
|
99
|
+
defaultSingle?: boolean;
|
|
100
|
+
/** 是否grpc */
|
|
101
|
+
isGrpc?: boolean;
|
|
102
|
+
/** 是否copy */
|
|
103
|
+
isCopy?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* 自定义选项
|
|
106
|
+
* @example () => ({ label: '*', value: '*' })
|
|
107
|
+
*/
|
|
108
|
+
customDefault?: TtSelectDataOptions;
|
|
109
|
+
/** 默认的数据,传递给接口的数据 */
|
|
110
|
+
defaultData?: Record<string, any> | Ref<Record<string, any>>;
|
|
111
|
+
/** 是否过滤空值 */
|
|
112
|
+
isFilterEmpty?: boolean;
|
|
113
|
+
/** 是否每次展开下拉弹框都滚动到顶部 */
|
|
114
|
+
isOpenPopupScrollToTop?: boolean;
|
|
115
|
+
/** 是否多选折叠 */
|
|
116
|
+
collapse?: boolean;
|
|
117
|
+
/** 是否禁用 */
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
/** 是否自动计算select宽度 */
|
|
120
|
+
autoSelectWidth?: boolean;
|
|
121
|
+
/** 是否使用自定义筛选 */
|
|
122
|
+
isFilterMethod?: boolean;
|
|
123
|
+
/** 缓存的key */
|
|
124
|
+
cacheKey?: string;
|
|
125
|
+
/** 选中的值,如果数据源获取后没有绑定值, 清空掉绑定值 */
|
|
126
|
+
dataNoBindValueClear?: boolean;
|
|
127
|
+
/** 是否选中后清空输入的搜索值 多选情况下 */
|
|
128
|
+
checkedClearSearchValue?: boolean;
|
|
129
|
+
/** 多字段绑定 */
|
|
130
|
+
bindFields?: string[];
|
|
131
|
+
/** 多字段合并 */
|
|
132
|
+
mergeFields?: string[];
|
|
133
|
+
/** 绑定的对象 */
|
|
134
|
+
model?: Record<string, any> | MaybeRef<Record<string, any>>;
|
|
135
|
+
/**
|
|
136
|
+
* 是否需要每次展开加载数据
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
isExpandLoadData?: MaybeRef<boolean>;
|
|
140
|
+
/** 是否选中第一条数据 */
|
|
141
|
+
isSelectFirstOption?: boolean;
|
|
142
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/** 操作列按钮组件(用于插槽) */
|
|
2
|
+
export declare const TtTableAction: import('../../../../utils/src').SFCWithInstall<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
actions: {
|
|
5
|
+
type: import('vue').PropType<import('.').TtActionItem[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
rowIndex: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
slotContext: {
|
|
13
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
divider: any;
|
|
17
|
+
stopButtonPropagation: any;
|
|
18
|
+
showBtnNums: any;
|
|
19
|
+
popoverWidth: any;
|
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
21
|
+
rowIndex: number;
|
|
22
|
+
actions: import('.').TtActionItem[];
|
|
23
|
+
slotContext: Record<string, any>;
|
|
24
|
+
divider: any;
|
|
25
|
+
stopButtonPropagation: any;
|
|
26
|
+
showBtnNums: any;
|
|
27
|
+
popoverWidth: any;
|
|
28
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
29
|
+
P: {};
|
|
30
|
+
B: {};
|
|
31
|
+
D: {};
|
|
32
|
+
C: {};
|
|
33
|
+
M: {};
|
|
34
|
+
Defaults: {};
|
|
35
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
actions: {
|
|
37
|
+
type: import('vue').PropType<import('.').TtActionItem[]>;
|
|
38
|
+
default: () => never[];
|
|
39
|
+
};
|
|
40
|
+
rowIndex: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
slotContext: {
|
|
45
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
divider: any;
|
|
49
|
+
stopButtonPropagation: any;
|
|
50
|
+
showBtnNums: any;
|
|
51
|
+
popoverWidth: any;
|
|
52
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
53
|
+
rowIndex: number;
|
|
54
|
+
actions: import('.').TtActionItem[];
|
|
55
|
+
slotContext: Record<string, any>;
|
|
56
|
+
divider: any;
|
|
57
|
+
stopButtonPropagation: any;
|
|
58
|
+
showBtnNums: any;
|
|
59
|
+
popoverWidth: any;
|
|
60
|
+
}>;
|
|
61
|
+
__isFragment?: never;
|
|
62
|
+
__isTeleport?: never;
|
|
63
|
+
__isSuspense?: never;
|
|
64
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
actions: {
|
|
66
|
+
type: import('vue').PropType<import('.').TtActionItem[]>;
|
|
67
|
+
default: () => never[];
|
|
68
|
+
};
|
|
69
|
+
rowIndex: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
slotContext: {
|
|
74
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
divider: any;
|
|
78
|
+
stopButtonPropagation: any;
|
|
79
|
+
showBtnNums: any;
|
|
80
|
+
popoverWidth: any;
|
|
81
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
82
|
+
rowIndex: number;
|
|
83
|
+
actions: import('.').TtActionItem[];
|
|
84
|
+
slotContext: Record<string, any>;
|
|
85
|
+
divider: any;
|
|
86
|
+
stopButtonPropagation: any;
|
|
87
|
+
showBtnNums: any;
|
|
88
|
+
popoverWidth: any;
|
|
89
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
90
|
+
$slots: Readonly<{
|
|
91
|
+
[slotName: string]: (props: any) => import('vue').VNode;
|
|
92
|
+
default: () => import('vue').VNode;
|
|
93
|
+
}> & {
|
|
94
|
+
[slotName: string]: (props: any) => import('vue').VNode;
|
|
95
|
+
default: () => import('vue').VNode;
|
|
96
|
+
};
|
|
97
|
+
})> & Record<string, any>;
|
|
98
|
+
/** 工具栏按钮组件(用于插槽) */
|
|
99
|
+
export declare const TtTableButton: import('../../../../utils/src').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
100
|
+
actions: {
|
|
101
|
+
type: import('vue').PropType<import('.').TtActionItem[]>;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
divider: any;
|
|
105
|
+
stopButtonPropagation: any;
|
|
106
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
107
|
+
actions: {
|
|
108
|
+
type: import('vue').PropType<import('.').TtActionItem[]>;
|
|
109
|
+
default: () => never[];
|
|
110
|
+
};
|
|
111
|
+
divider: any;
|
|
112
|
+
stopButtonPropagation: any;
|
|
113
|
+
}>> & Readonly<{}>, {
|
|
114
|
+
actions: import('.').TtActionItem[];
|
|
115
|
+
divider: any;
|
|
116
|
+
stopButtonPropagation: any;
|
|
117
|
+
}, {}, {}, {
|
|
118
|
+
disabledTip: import('vue').Directive;
|
|
119
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
120
|
+
/** hooks */
|
|
121
|
+
export { useTableContext, useTableFormContext } from './src/hooks/useTableContext';
|
|
122
|
+
export { useTableFormRender, useTableRender } from './src/hooks/useTableRender';
|
|
123
|
+
/** types */
|
|
124
|
+
export * from './src/types/table';
|
|
125
|
+
export * from './src/types/tableAction';
|
|
126
|
+
export * from './src/types/tableForm';
|
|
127
|
+
export * from './src/types/tableTools';
|