@dazhicheng/ui 1.6.23 → 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/useDataPermissionOptions.js +76 -72
- 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
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { VxeGridEventProps, VxeGridProps } from 'vxe-table';
|
|
1
|
+
import { VxeGridEventProps, VxeGridProps, VxeGridInstance, VxeTableConstructor, VxeGridConstructor, VxeGridMethods, VxeGridSlots } from 'vxe-table';
|
|
2
|
+
import { VxeGanttConstructor } from 'vxe-pc-ui';
|
|
3
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { TtSelectProps, TtSelectGridProps } from '../props';
|
|
5
|
+
import { TtSelectConfigProps, TtSelectModelValueType, TtSelectDataOptions } from '../types';
|
|
2
6
|
/** 获取实例 */
|
|
3
|
-
declare function getGridInstance():
|
|
7
|
+
declare function getGridInstance(): VxeGridInstance | undefined;
|
|
4
8
|
declare function __VLS_template(): {
|
|
5
9
|
attrs: Partial<{}>;
|
|
6
10
|
slots: Partial<Record<string, (_: {
|
|
7
11
|
[key: string]: any;
|
|
8
|
-
$table:
|
|
9
|
-
$grid:
|
|
10
|
-
$gantt:
|
|
12
|
+
$table: VxeTableConstructor<any>;
|
|
13
|
+
$grid: VxeGridConstructor<any> | null | undefined;
|
|
14
|
+
$gantt: VxeGanttConstructor<any> | null | undefined;
|
|
11
15
|
rowid: string;
|
|
12
16
|
row: any;
|
|
13
17
|
rowIndex: number;
|
|
@@ -39,25 +43,25 @@ declare function __VLS_template(): {
|
|
|
39
43
|
items: any[];
|
|
40
44
|
}) => any>>;
|
|
41
45
|
refs: {
|
|
42
|
-
gridRef: (
|
|
46
|
+
gridRef: ( VxeGridMethods<any> & {
|
|
43
47
|
$props: VxeGridProps<any> & VxeGridEventProps<any>;
|
|
44
|
-
$slots:
|
|
48
|
+
$slots: VxeGridSlots<any>;
|
|
45
49
|
}) | null;
|
|
46
50
|
};
|
|
47
51
|
rootEl: HTMLDivElement;
|
|
48
52
|
};
|
|
49
53
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
|
-
declare const __VLS_component:
|
|
54
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
51
55
|
configProps: {
|
|
52
|
-
type:
|
|
56
|
+
type: PropType< TtSelectProps["configProps"]>;
|
|
53
57
|
default: () => {};
|
|
54
58
|
};
|
|
55
59
|
grid: {
|
|
56
|
-
type:
|
|
60
|
+
type: PropType< TtSelectProps["gridProps"]>;
|
|
57
61
|
default: () => {};
|
|
58
62
|
};
|
|
59
63
|
list: {
|
|
60
|
-
type:
|
|
64
|
+
type: PropType<Record<string, any>[]>;
|
|
61
65
|
default: () => Record<string, any>[];
|
|
62
66
|
};
|
|
63
67
|
loading: {
|
|
@@ -69,7 +73,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
69
73
|
default: boolean;
|
|
70
74
|
};
|
|
71
75
|
pagination: {
|
|
72
|
-
type:
|
|
76
|
+
type: PropType<VxeGridProps["pagerConfig"]>;
|
|
73
77
|
default: () => {};
|
|
74
78
|
};
|
|
75
79
|
multiple: {
|
|
@@ -77,12 +81,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
77
81
|
default: boolean;
|
|
78
82
|
};
|
|
79
83
|
disableFn: {
|
|
80
|
-
type:
|
|
84
|
+
type: PropType< TtSelectConfigProps["disableFn"]>;
|
|
81
85
|
default: null;
|
|
82
86
|
};
|
|
83
87
|
selectValue: {
|
|
84
|
-
type:
|
|
85
|
-
default: () =>
|
|
88
|
+
type: PropType<TtSelectModelValueType>;
|
|
89
|
+
default: () => TtSelectModelValueType;
|
|
86
90
|
};
|
|
87
91
|
selectWidth: {
|
|
88
92
|
type: NumberConstructor;
|
|
@@ -93,15 +97,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
93
97
|
default: string;
|
|
94
98
|
};
|
|
95
99
|
setPagination: {
|
|
96
|
-
type:
|
|
100
|
+
type: PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
97
101
|
default: null;
|
|
98
102
|
};
|
|
99
103
|
getPagination: {
|
|
100
|
-
type:
|
|
104
|
+
type: PropType<() => VxeGridProps["pagerConfig"]>;
|
|
101
105
|
default: null;
|
|
102
106
|
};
|
|
103
107
|
reload: {
|
|
104
|
-
type:
|
|
108
|
+
type: PropType<(bool?: boolean) => Promise<void>>;
|
|
105
109
|
default: null;
|
|
106
110
|
};
|
|
107
111
|
hasNextPage: {
|
|
@@ -118,17 +122,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
118
122
|
};
|
|
119
123
|
}>, {
|
|
120
124
|
getGridInstance: typeof getGridInstance;
|
|
121
|
-
}, {}, {}, {},
|
|
125
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
122
126
|
configProps: {
|
|
123
|
-
type:
|
|
127
|
+
type: PropType< TtSelectProps["configProps"]>;
|
|
124
128
|
default: () => {};
|
|
125
129
|
};
|
|
126
130
|
grid: {
|
|
127
|
-
type:
|
|
131
|
+
type: PropType< TtSelectProps["gridProps"]>;
|
|
128
132
|
default: () => {};
|
|
129
133
|
};
|
|
130
134
|
list: {
|
|
131
|
-
type:
|
|
135
|
+
type: PropType<Record<string, any>[]>;
|
|
132
136
|
default: () => Record<string, any>[];
|
|
133
137
|
};
|
|
134
138
|
loading: {
|
|
@@ -140,7 +144,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
140
144
|
default: boolean;
|
|
141
145
|
};
|
|
142
146
|
pagination: {
|
|
143
|
-
type:
|
|
147
|
+
type: PropType<VxeGridProps["pagerConfig"]>;
|
|
144
148
|
default: () => {};
|
|
145
149
|
};
|
|
146
150
|
multiple: {
|
|
@@ -148,12 +152,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
148
152
|
default: boolean;
|
|
149
153
|
};
|
|
150
154
|
disableFn: {
|
|
151
|
-
type:
|
|
155
|
+
type: PropType< TtSelectConfigProps["disableFn"]>;
|
|
152
156
|
default: null;
|
|
153
157
|
};
|
|
154
158
|
selectValue: {
|
|
155
|
-
type:
|
|
156
|
-
default: () =>
|
|
159
|
+
type: PropType<TtSelectModelValueType>;
|
|
160
|
+
default: () => TtSelectModelValueType;
|
|
157
161
|
};
|
|
158
162
|
selectWidth: {
|
|
159
163
|
type: NumberConstructor;
|
|
@@ -164,15 +168,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
164
168
|
default: string;
|
|
165
169
|
};
|
|
166
170
|
setPagination: {
|
|
167
|
-
type:
|
|
171
|
+
type: PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
168
172
|
default: null;
|
|
169
173
|
};
|
|
170
174
|
getPagination: {
|
|
171
|
-
type:
|
|
175
|
+
type: PropType<() => VxeGridProps["pagerConfig"]>;
|
|
172
176
|
default: null;
|
|
173
177
|
};
|
|
174
178
|
reload: {
|
|
175
|
-
type:
|
|
179
|
+
type: PropType<(bool?: boolean) => Promise<void>>;
|
|
176
180
|
default: null;
|
|
177
181
|
};
|
|
178
182
|
hasNextPage: {
|
|
@@ -188,27 +192,27 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
188
192
|
default: number;
|
|
189
193
|
};
|
|
190
194
|
}>> & Readonly<{}>, {
|
|
191
|
-
grid:
|
|
195
|
+
grid: TtSelectGridProps;
|
|
192
196
|
list: Record<string, any>[];
|
|
193
197
|
reload: (bool?: boolean) => Promise<void>;
|
|
194
198
|
loading: boolean;
|
|
195
199
|
multiple: boolean;
|
|
196
200
|
multipleLimit: number;
|
|
197
|
-
configProps:
|
|
198
|
-
disableFn: ((value: any, modelValue?:
|
|
201
|
+
configProps: TtSelectConfigProps;
|
|
202
|
+
disableFn: ((value: any, modelValue?: TtSelectModelValueType, option?: TtSelectDataOptions) => boolean) | undefined;
|
|
199
203
|
showPager: boolean;
|
|
200
204
|
pagination: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
201
|
-
selectValue:
|
|
205
|
+
selectValue: TtSelectModelValueType;
|
|
202
206
|
selectWidth: number;
|
|
203
207
|
deleteField: string;
|
|
204
208
|
setPagination: (pagination: VxeGridProps["pagerConfig"]) => void;
|
|
205
209
|
getPagination: () => VxeGridProps["pagerConfig"];
|
|
206
210
|
hasNextPage: boolean;
|
|
207
211
|
showCheckbox: boolean;
|
|
208
|
-
}, {}, {}, {}, string,
|
|
209
|
-
gridRef: (
|
|
212
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
213
|
+
gridRef: ( VxeGridMethods<any> & {
|
|
210
214
|
$props: VxeGridProps<any> & VxeGridEventProps<any>;
|
|
211
|
-
$slots:
|
|
215
|
+
$slots: VxeGridSlots<any>;
|
|
212
216
|
}) | null;
|
|
213
217
|
}, HTMLDivElement>;
|
|
214
218
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
|
-
import { VxeListProps } from 'vxe-pc-ui';
|
|
1
|
+
import { VNode, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VxeListProps, VxeListMethods, VxeListEventProps, VxeListSlots } from 'vxe-pc-ui';
|
|
3
|
+
import { TtSelectProps, TtSelectGridProps } from '../props';
|
|
4
|
+
import { VxeGridProps } from 'vxe-table';
|
|
5
|
+
import { TtSelectConfigProps, TtSelectModelValueType, TtSelectDataOptions } from '../types';
|
|
3
6
|
/** 设置当前选中行-多选 */
|
|
4
7
|
declare function setCheckboxRow(rows: any | any[], checked: boolean): void;
|
|
5
8
|
/** 清除当前选中行-多选 */
|
|
@@ -32,9 +35,9 @@ declare function __VLS_template(): {
|
|
|
32
35
|
empty: () => VNode;
|
|
33
36
|
};
|
|
34
37
|
refs: {
|
|
35
|
-
vxelist: (
|
|
36
|
-
$props: VxeListProps<any> &
|
|
37
|
-
$slots:
|
|
38
|
+
vxelist: ( VxeListMethods<any> & {
|
|
39
|
+
$props: VxeListProps<any> & VxeListEventProps<any>;
|
|
40
|
+
$slots: VxeListSlots;
|
|
38
41
|
}) | null;
|
|
39
42
|
table: HTMLTableElement;
|
|
40
43
|
resizableBar: HTMLDivElement;
|
|
@@ -42,17 +45,17 @@ declare function __VLS_template(): {
|
|
|
42
45
|
rootEl: any;
|
|
43
46
|
};
|
|
44
47
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
45
|
-
declare const __VLS_component:
|
|
48
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
46
49
|
configProps: {
|
|
47
|
-
type:
|
|
50
|
+
type: PropType< TtSelectProps["configProps"]>;
|
|
48
51
|
default: () => {};
|
|
49
52
|
};
|
|
50
53
|
grid: {
|
|
51
|
-
type:
|
|
54
|
+
type: PropType< TtSelectProps["gridProps"]>;
|
|
52
55
|
default: () => {};
|
|
53
56
|
};
|
|
54
57
|
list: {
|
|
55
|
-
type:
|
|
58
|
+
type: PropType<Record<string, any>[]>;
|
|
56
59
|
default: () => Record<string, any>[];
|
|
57
60
|
};
|
|
58
61
|
loading: {
|
|
@@ -64,7 +67,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
64
67
|
default: boolean;
|
|
65
68
|
};
|
|
66
69
|
pagination: {
|
|
67
|
-
type:
|
|
70
|
+
type: PropType< VxeGridProps["pagerConfig"]>;
|
|
68
71
|
default: () => {};
|
|
69
72
|
};
|
|
70
73
|
multiple: {
|
|
@@ -72,12 +75,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
72
75
|
default: boolean;
|
|
73
76
|
};
|
|
74
77
|
disableFn: {
|
|
75
|
-
type:
|
|
78
|
+
type: PropType< TtSelectConfigProps["disableFn"]>;
|
|
76
79
|
default: null;
|
|
77
80
|
};
|
|
78
81
|
selectValue: {
|
|
79
|
-
type:
|
|
80
|
-
default: () =>
|
|
82
|
+
type: PropType<TtSelectModelValueType>;
|
|
83
|
+
default: () => TtSelectModelValueType;
|
|
81
84
|
};
|
|
82
85
|
selectWidth: {
|
|
83
86
|
type: NumberConstructor;
|
|
@@ -88,15 +91,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
88
91
|
default: string;
|
|
89
92
|
};
|
|
90
93
|
setPagination: {
|
|
91
|
-
type:
|
|
94
|
+
type: PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
92
95
|
default: null;
|
|
93
96
|
};
|
|
94
97
|
getPagination: {
|
|
95
|
-
type:
|
|
98
|
+
type: PropType<() => VxeGridProps["pagerConfig"]>;
|
|
96
99
|
default: null;
|
|
97
100
|
};
|
|
98
101
|
reload: {
|
|
99
|
-
type:
|
|
102
|
+
type: PropType<(bool?: boolean) => Promise<void>>;
|
|
100
103
|
default: null;
|
|
101
104
|
};
|
|
102
105
|
hasNextPage: {
|
|
@@ -136,22 +139,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
136
139
|
setCurrentRow: typeof setCurrentRow;
|
|
137
140
|
getData: typeof getData;
|
|
138
141
|
};
|
|
139
|
-
}, {}, {}, {},
|
|
142
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
140
143
|
scroll: (...args: any[]) => void;
|
|
141
144
|
"radio-change": (...args: any[]) => void;
|
|
142
145
|
"checkbox-change": (...args: any[]) => void;
|
|
143
146
|
"checkbox-all": (...args: any[]) => void;
|
|
144
|
-
}, string,
|
|
147
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
145
148
|
configProps: {
|
|
146
|
-
type:
|
|
149
|
+
type: PropType< TtSelectProps["configProps"]>;
|
|
147
150
|
default: () => {};
|
|
148
151
|
};
|
|
149
152
|
grid: {
|
|
150
|
-
type:
|
|
153
|
+
type: PropType< TtSelectProps["gridProps"]>;
|
|
151
154
|
default: () => {};
|
|
152
155
|
};
|
|
153
156
|
list: {
|
|
154
|
-
type:
|
|
157
|
+
type: PropType<Record<string, any>[]>;
|
|
155
158
|
default: () => Record<string, any>[];
|
|
156
159
|
};
|
|
157
160
|
loading: {
|
|
@@ -163,7 +166,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
163
166
|
default: boolean;
|
|
164
167
|
};
|
|
165
168
|
pagination: {
|
|
166
|
-
type:
|
|
169
|
+
type: PropType< VxeGridProps["pagerConfig"]>;
|
|
167
170
|
default: () => {};
|
|
168
171
|
};
|
|
169
172
|
multiple: {
|
|
@@ -171,12 +174,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
171
174
|
default: boolean;
|
|
172
175
|
};
|
|
173
176
|
disableFn: {
|
|
174
|
-
type:
|
|
177
|
+
type: PropType< TtSelectConfigProps["disableFn"]>;
|
|
175
178
|
default: null;
|
|
176
179
|
};
|
|
177
180
|
selectValue: {
|
|
178
|
-
type:
|
|
179
|
-
default: () =>
|
|
181
|
+
type: PropType<TtSelectModelValueType>;
|
|
182
|
+
default: () => TtSelectModelValueType;
|
|
180
183
|
};
|
|
181
184
|
selectWidth: {
|
|
182
185
|
type: NumberConstructor;
|
|
@@ -187,15 +190,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
187
190
|
default: string;
|
|
188
191
|
};
|
|
189
192
|
setPagination: {
|
|
190
|
-
type:
|
|
193
|
+
type: PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
191
194
|
default: null;
|
|
192
195
|
};
|
|
193
196
|
getPagination: {
|
|
194
|
-
type:
|
|
197
|
+
type: PropType<() => VxeGridProps["pagerConfig"]>;
|
|
195
198
|
default: null;
|
|
196
199
|
};
|
|
197
200
|
reload: {
|
|
198
|
-
type:
|
|
201
|
+
type: PropType<(bool?: boolean) => Promise<void>>;
|
|
199
202
|
default: null;
|
|
200
203
|
};
|
|
201
204
|
hasNextPage: {
|
|
@@ -216,27 +219,27 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
216
219
|
"onCheckbox-change"?: ((...args: any[]) => any) | undefined;
|
|
217
220
|
"onCheckbox-all"?: ((...args: any[]) => any) | undefined;
|
|
218
221
|
}>, {
|
|
219
|
-
grid:
|
|
222
|
+
grid: TtSelectGridProps;
|
|
220
223
|
list: Record<string, any>[];
|
|
221
224
|
reload: (bool?: boolean) => Promise<void>;
|
|
222
225
|
loading: boolean;
|
|
223
226
|
multiple: boolean;
|
|
224
227
|
multipleLimit: number;
|
|
225
|
-
configProps:
|
|
226
|
-
disableFn: ((value: any, modelValue?:
|
|
228
|
+
configProps: TtSelectConfigProps;
|
|
229
|
+
disableFn: ((value: any, modelValue?: TtSelectModelValueType, option?: TtSelectDataOptions) => boolean) | undefined;
|
|
227
230
|
showPager: boolean;
|
|
228
231
|
pagination: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
229
|
-
selectValue:
|
|
232
|
+
selectValue: TtSelectModelValueType;
|
|
230
233
|
selectWidth: number;
|
|
231
234
|
deleteField: string;
|
|
232
|
-
setPagination: (pagination:
|
|
233
|
-
getPagination: () =>
|
|
235
|
+
setPagination: (pagination: VxeGridProps["pagerConfig"]) => void;
|
|
236
|
+
getPagination: () => VxeGridProps["pagerConfig"];
|
|
234
237
|
hasNextPage: boolean;
|
|
235
238
|
showCheckbox: boolean;
|
|
236
|
-
}, {}, {}, {}, string,
|
|
237
|
-
vxelist: (
|
|
238
|
-
$props: VxeListProps<any> &
|
|
239
|
-
$slots:
|
|
239
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
240
|
+
vxelist: ( VxeListMethods<any> & {
|
|
241
|
+
$props: VxeListProps<any> & VxeListEventProps<any>;
|
|
242
|
+
$slots: VxeListSlots;
|
|
240
243
|
}) | null;
|
|
241
244
|
table: HTMLTableElement;
|
|
242
245
|
resizableBar: HTMLDivElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { VxeGridInstance, VxeGridProps, VxeGridPropTypes } from 'vxe-table';
|
|
3
3
|
import { TtSelectTableProps } from '../props';
|
|
4
4
|
/**
|
|
@@ -27,6 +27,6 @@ export declare function useGrid(props: ComputedRef<VxeGridProps>, opt: ComputedR
|
|
|
27
27
|
fontWeight?: undefined;
|
|
28
28
|
textDecorationLine?: undefined;
|
|
29
29
|
};
|
|
30
|
-
gridRef:
|
|
30
|
+
gridRef: Ref<VxeGridInstance | undefined, VxeGridInstance | undefined>;
|
|
31
31
|
getOtherGridConfig: () => Partial<VxeGridProps>;
|
|
32
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VxeGridPropTypes } from 'vxe-table';
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
3
|
type PaginationProps = VxeGridPropTypes.PagerConfig;
|
|
3
4
|
/**
|
|
4
5
|
* 用于处理分页配置的钩子函数
|
|
@@ -6,11 +7,11 @@ type PaginationProps = VxeGridPropTypes.PagerConfig;
|
|
|
6
7
|
*/
|
|
7
8
|
export declare function usePagination(): {
|
|
8
9
|
setShowPager: (val: boolean) => void;
|
|
9
|
-
showPager:
|
|
10
|
-
getPaginationInfo:
|
|
10
|
+
showPager: Ref<boolean, boolean>;
|
|
11
|
+
getPaginationInfo: ComputedRef<VxeGridPropTypes.PagerConfig | undefined>;
|
|
11
12
|
getPagination: () => VxeGridPropTypes.PagerConfig | undefined;
|
|
12
13
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
13
|
-
hasNextPage:
|
|
14
|
+
hasNextPage: Ref<boolean, boolean>;
|
|
14
15
|
setHasNextPage: (val: boolean) => void;
|
|
15
16
|
};
|
|
16
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElSelect } from 'element-plus';
|
|
1
|
+
import { ElSelect, SelectProps } from 'element-plus';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import { TtSelectProps } from '../props';
|
|
4
4
|
import { TtSelectKeyboardType, TtSelectSelectOptions, TtSelectDataOptions } from '../types';
|
|
@@ -76,7 +76,7 @@ type OptType = {
|
|
|
76
76
|
* @returns 包含选择器属性、计算最大折叠标签数和计算选择器宽度的对象
|
|
77
77
|
*/
|
|
78
78
|
export declare function useSelect(props: ComputedRef<TtSelectProps["selectProps"]>, opt: OptType): {
|
|
79
|
-
getOtherSelectProps: ComputedRef<Partial<Omit<
|
|
79
|
+
getOtherSelectProps: ComputedRef<Partial<Omit< SelectProps, "modelValue">>>;
|
|
80
80
|
calcMaxCollapseTags: () => void;
|
|
81
81
|
calcSelectWidth: ComputedRef<string>;
|
|
82
82
|
getSelectWidth: () => any;
|
|
@@ -3,7 +3,7 @@ import { ComputedRef, MaybeRef, Ref } from 'vue';
|
|
|
3
3
|
import { VxeGridDefines, VxeGridPropTypes } from 'vxe-table';
|
|
4
4
|
import { TtSelectProps } from '../props';
|
|
5
5
|
import { TtSelectModelUnionType, TtSelectModelValueType, TtSelectSelectOptions, TtSelectDataOptions } from '../types';
|
|
6
|
-
import { default as SelectTable } from '../components/SelectTable
|
|
6
|
+
import { default as SelectTable } from '../components/SelectTable';
|
|
7
7
|
/**
|
|
8
8
|
* 定义选项类型,包含表格、选择器、数据、分页等相关的引用和方法
|
|
9
9
|
*/
|