@vtj/ui 0.8.136 → 0.8.137
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/index.mjs +2258 -2258
- package/dist/index.umd.js +12 -12
- package/package.json +5 -5
- package/types/adapter.d.ts +0 -1
- package/types/components/action/Action.d.ts +12 -12
- package/types/components/action/Trigger.d.ts +7 -7
- package/types/components/action/hooks.d.ts +0 -1
- package/types/components/action/index.d.ts +0 -1
- package/types/components/action/types.d.ts +0 -1
- package/types/components/action-bar/ActionBar.d.ts +12 -11
- package/types/components/action-bar/index.d.ts +0 -1
- package/types/components/action-bar/types.d.ts +0 -1
- package/types/components/attachment/Attachment.d.ts +536 -23
- package/types/components/attachment/index.d.ts +0 -1
- package/types/components/attachment/props.d.ts +0 -1
- package/types/components/attachment/types.d.ts +0 -1
- package/types/components/attachment/util.d.ts +0 -1
- package/types/components/captcha/Captcha.d.ts +13 -36
- package/types/components/captcha/index.d.ts +0 -1
- package/types/components/captcha/types.d.ts +0 -1
- package/types/components/container/Container.d.ts +15 -8
- package/types/components/container/index.d.ts +0 -1
- package/types/components/container/types.d.ts +0 -1
- package/types/components/data-item/DataItem.d.ts +25 -18
- package/types/components/data-item/index.d.ts +0 -1
- package/types/components/data-item/types.d.ts +0 -1
- package/types/components/dialog/Dialog.d.ts +387 -33
- package/types/components/dialog/create.d.ts +0 -1
- package/types/components/dialog/hooks.d.ts +0 -1
- package/types/components/dialog/index.d.ts +0 -1
- package/types/components/dialog/types.d.ts +0 -1
- package/types/components/dialog-form/DialogForm.d.ts +946 -19
- package/types/components/dialog-form/index.d.ts +0 -1
- package/types/components/dialog-form/types.d.ts +0 -1
- package/types/components/dialog-grid/DialogGrid.d.ts +2117 -92
- package/types/components/dialog-grid/index.d.ts +0 -1
- package/types/components/dialog-grid/types.d.ts +0 -1
- package/types/components/field/Field.d.ts +235 -32
- package/types/components/field/editors/CheckboxEditor.d.ts +3 -27
- package/types/components/field/editors/RadioEditor.d.ts +3 -27
- package/types/components/field/editors/SelectEditor.d.ts +14 -31
- package/types/components/field/editors/index.d.ts +0 -1
- package/types/components/field/hooks/useEditor.d.ts +0 -1
- package/types/components/field/index.d.ts +0 -1
- package/types/components/field/types.d.ts +1 -2
- package/types/components/form/Form.d.ts +244 -18
- package/types/components/form/index.d.ts +0 -1
- package/types/components/form/types.d.ts +0 -1
- package/types/components/grid/Grid.d.ts +157 -140
- package/types/components/grid/hooks/useColumnSortable.d.ts +1 -2
- package/types/components/grid/hooks/useCustom.d.ts +0 -1
- package/types/components/grid/hooks/useEditRender.d.ts +3 -4
- package/types/components/grid/hooks/useFilterRender.d.ts +0 -1
- package/types/components/grid/hooks/useLoader.d.ts +103 -104
- package/types/components/grid/hooks/useProps.d.ts +0 -1
- package/types/components/grid/hooks/useRowSortable.d.ts +1 -2
- package/types/components/grid/hooks/useState.d.ts +103 -104
- package/types/components/grid/hooks/useVxe.d.ts +0 -1
- package/types/components/grid/index.d.ts +0 -1
- package/types/components/grid/props.d.ts +0 -1
- package/types/components/grid/renderers/actions.d.ts +0 -1
- package/types/components/grid/renderers/components/DateEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/DateFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/GridEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectFilter.d.ts +2 -12
- package/types/components/grid/renderers/date.d.ts +0 -1
- package/types/components/grid/renderers/grid.d.ts +0 -1
- package/types/components/grid/renderers/image.d.ts +0 -1
- package/types/components/grid/renderers/index.d.ts +0 -1
- package/types/components/grid/renderers/input.d.ts +0 -1
- package/types/components/grid/renderers/interceptors.d.ts +0 -1
- package/types/components/grid/renderers/link.d.ts +0 -1
- package/types/components/grid/renderers/number.d.ts +0 -1
- package/types/components/grid/renderers/picker.d.ts +0 -1
- package/types/components/grid/renderers/select.d.ts +0 -1
- package/types/components/grid/renderers/shared.d.ts +0 -1
- package/types/components/grid/renderers/tag.d.ts +0 -1
- package/types/components/grid/renderers/text.d.ts +0 -1
- package/types/components/grid/types.d.ts +0 -1
- package/types/components/grid/utils.d.ts +0 -1
- package/types/components/grid-editor/GridEditor.d.ts +9 -33
- package/types/components/grid-editor/index.d.ts +0 -1
- package/types/components/grid-editor/types.d.ts +0 -1
- package/types/components/header/Header.d.ts +15 -10
- package/types/components/header/index.d.ts +0 -1
- package/types/components/header/types.d.ts +0 -1
- package/types/components/icon/Icon.d.ts +12 -7
- package/types/components/icon/index.d.ts +0 -1
- package/types/components/icon/types.d.ts +0 -1
- package/types/components/import-button/ImportButton.d.ts +15 -10
- package/types/components/import-button/index.d.ts +0 -1
- package/types/components/import-button/props.d.ts +0 -1
- package/types/components/import-button/types.d.ts +0 -1
- package/types/components/input-unit/InputUnit.d.ts +11 -11
- package/types/components/input-unit/index.d.ts +0 -1
- package/types/components/input-unit/types.d.ts +0 -1
- package/types/components/list/List.d.ts +33 -21
- package/types/components/list/index.d.ts +0 -1
- package/types/components/list/types.d.ts +0 -1
- package/types/components/mask/Mask.d.ts +57 -14
- package/types/components/mask/components/Avatar.d.ts +9 -13
- package/types/components/mask/components/Brand.d.ts +11 -27
- package/types/components/mask/components/Content.d.ts +9 -14
- package/types/components/mask/components/Menu.d.ts +6 -28
- package/types/components/mask/components/Sidebar.d.ts +10 -14
- package/types/components/mask/components/SwitchBar.d.ts +5 -28
- package/types/components/mask/components/Tabs.d.ts +10 -20
- package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
- package/types/components/mask/components/Toolbar.d.ts +12 -29
- package/types/components/mask/defineTab.d.ts +0 -1
- package/types/components/mask/hooks/useContent.d.ts +1 -2
- package/types/components/mask/hooks/useHome.d.ts +0 -1
- package/types/components/mask/hooks/useMenus.d.ts +1 -2
- package/types/components/mask/hooks/useSidebar.d.ts +3 -3
- package/types/components/mask/hooks/useTabs.d.ts +3 -4
- package/types/components/mask/index.d.ts +0 -1
- package/types/components/mask/types.d.ts +0 -1
- package/types/components/menu/Menu.d.ts +6 -30
- package/types/components/menu/MenuItem.d.ts +2 -12
- package/types/components/menu/components.d.ts +0 -1
- package/types/components/menu/index.d.ts +0 -1
- package/types/components/menu/types.d.ts +0 -1
- package/types/components/panel/Panel.d.ts +337 -14
- package/types/components/panel/index.d.ts +0 -1
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/picker/Dialog.d.ts +4 -14
- package/types/components/picker/Picker.d.ts +20 -18
- package/types/components/picker/hooks.d.ts +6 -4
- package/types/components/picker/index.d.ts +0 -1
- package/types/components/picker/props.d.ts +1 -2
- package/types/components/picker/types.d.ts +0 -1
- package/types/components/qr-code/QrCode.d.ts +15 -34
- package/types/components/qr-code/index.d.ts +0 -1
- package/types/components/qr-code/types.d.ts +0 -1
- package/types/components/query-form/QueryForm.d.ts +442 -32
- package/types/components/query-form/hooks.d.ts +1 -2
- package/types/components/query-form/index.d.ts +0 -1
- package/types/components/query-form/props.d.ts +0 -1
- package/types/components/query-form/types.d.ts +0 -1
- package/types/components/shared.d.ts +0 -1
- package/types/components/startup/Startup.d.ts +5 -5
- package/types/components/startup/index.d.ts +0 -1
- package/types/components/startup/types.d.ts +0 -1
- package/types/components/tabs/Tabs.d.ts +48 -42
- package/types/components/tabs/index.d.ts +0 -1
- package/types/components/tabs/types.d.ts +0 -1
- package/types/components/test/Test.d.ts +51 -46
- package/types/components/test/index.d.ts +0 -1
- package/types/components/test/types.d.ts +0 -1
- package/types/components/verify/Verify.d.ts +14 -38
- package/types/components/verify/index.d.ts +0 -1
- package/types/directives/vDraggable.d.ts +0 -1
- package/types/directives/vResizable.d.ts +0 -1
- package/types/hooks/useDisabled.d.ts +0 -1
- package/types/hooks/useIcon.d.ts +0 -1
- package/types/hooks/useLoader.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/install.d.ts +1 -1
- package/types/list.d.ts +0 -1
- package/types/utils/install.d.ts +0 -1
- package/types/version.d.ts +2 -2
@@ -1,14 +1,337 @@
|
|
1
|
-
import {
|
1
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, Ref, PublicProps } from 'vue';
|
2
|
+
import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, ContainerProps } from '../container';
|
3
|
+
import { OnCleanup } from '@vue/reactivity';
|
2
4
|
import { BaseSize } from '../shared';
|
3
|
-
import { HeaderProps
|
5
|
+
import { HeaderProps } from '../header';
|
4
6
|
declare function __VLS_template(): {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
slots: {
|
8
|
+
header?(_: {}): any;
|
9
|
+
title?(_: {}): any;
|
10
|
+
actions?(_: {}): any;
|
11
|
+
default?(_: {}): any;
|
12
|
+
footer?(_: {}): any;
|
13
|
+
};
|
14
|
+
refs: {
|
15
|
+
bodyRef: ({
|
16
|
+
$: ComponentInternalInstance;
|
17
|
+
$data: {};
|
18
|
+
$props: Partial<{
|
19
|
+
padding: boolean;
|
20
|
+
tag: string;
|
21
|
+
wrap: ContainerWrap;
|
22
|
+
fit: boolean;
|
23
|
+
flex: boolean;
|
24
|
+
inline: boolean;
|
25
|
+
direction: ContainerDirection;
|
26
|
+
justify: ContainerJustifyContent;
|
27
|
+
align: ContainerAlignItems;
|
28
|
+
alignContent: ContainerAlignContent;
|
29
|
+
grow: boolean;
|
30
|
+
shrink: boolean;
|
31
|
+
alignSelf: ContainerAlignItems | "auto";
|
32
|
+
gap: boolean;
|
33
|
+
autoPointer: boolean;
|
34
|
+
}> & Omit<{
|
35
|
+
readonly padding: boolean;
|
36
|
+
readonly tag: string;
|
37
|
+
readonly wrap: ContainerWrap;
|
38
|
+
readonly fit: boolean;
|
39
|
+
readonly flex: boolean;
|
40
|
+
readonly inline: boolean;
|
41
|
+
readonly direction: ContainerDirection;
|
42
|
+
readonly justify: ContainerJustifyContent;
|
43
|
+
readonly align: ContainerAlignItems;
|
44
|
+
readonly alignContent: ContainerAlignContent;
|
45
|
+
readonly grow: boolean;
|
46
|
+
readonly shrink: boolean;
|
47
|
+
readonly alignSelf: ContainerAlignItems | "auto";
|
48
|
+
readonly gap: boolean;
|
49
|
+
readonly autoPointer: boolean;
|
50
|
+
readonly width?: string | number | undefined;
|
51
|
+
readonly height?: string | number | undefined;
|
52
|
+
readonly overflow?: "hidden" | "visible" | "auto" | undefined;
|
53
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
54
|
+
tag: {
|
55
|
+
type: StringConstructor;
|
56
|
+
default: string;
|
57
|
+
};
|
58
|
+
fit: {
|
59
|
+
type: BooleanConstructor;
|
60
|
+
default: boolean;
|
61
|
+
};
|
62
|
+
width: {
|
63
|
+
type: (StringConstructor | NumberConstructor)[];
|
64
|
+
};
|
65
|
+
height: {
|
66
|
+
type: (StringConstructor | NumberConstructor)[];
|
67
|
+
};
|
68
|
+
flex: {
|
69
|
+
type: BooleanConstructor;
|
70
|
+
default: boolean;
|
71
|
+
};
|
72
|
+
inline: {
|
73
|
+
type: BooleanConstructor;
|
74
|
+
};
|
75
|
+
direction: {
|
76
|
+
type: PropType<ContainerDirection>;
|
77
|
+
default: string;
|
78
|
+
};
|
79
|
+
wrap: {
|
80
|
+
type: PropType<ContainerWrap>;
|
81
|
+
default: string;
|
82
|
+
};
|
83
|
+
justify: {
|
84
|
+
type: PropType<ContainerJustifyContent>;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
align: {
|
88
|
+
type: PropType<ContainerAlignItems>;
|
89
|
+
default: string;
|
90
|
+
};
|
91
|
+
alignContent: {
|
92
|
+
type: PropType<ContainerAlignContent>;
|
93
|
+
default: string;
|
94
|
+
};
|
95
|
+
grow: {
|
96
|
+
type: BooleanConstructor;
|
97
|
+
default: boolean;
|
98
|
+
};
|
99
|
+
shrink: {
|
100
|
+
type: BooleanConstructor;
|
101
|
+
default: boolean;
|
102
|
+
};
|
103
|
+
alignSelf: {
|
104
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
105
|
+
default: string;
|
106
|
+
};
|
107
|
+
overflow: {
|
108
|
+
type: PropType<"auto" | "hidden" | "visible">;
|
109
|
+
};
|
110
|
+
padding: {
|
111
|
+
type: BooleanConstructor;
|
112
|
+
default: boolean;
|
113
|
+
};
|
114
|
+
gap: {
|
115
|
+
type: BooleanConstructor;
|
116
|
+
};
|
117
|
+
autoPointer: {
|
118
|
+
type: BooleanConstructor;
|
119
|
+
};
|
120
|
+
}>> & Readonly<{}>, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
121
|
+
$attrs: {
|
122
|
+
[x: string]: unknown;
|
123
|
+
};
|
124
|
+
$refs: {
|
125
|
+
[x: string]: unknown;
|
126
|
+
};
|
127
|
+
$slots: Readonly<{
|
128
|
+
[name: string]: Slot<any> | undefined;
|
129
|
+
}>;
|
130
|
+
$root: ComponentPublicInstance | null;
|
131
|
+
$parent: ComponentPublicInstance | null;
|
132
|
+
$host: Element | null;
|
133
|
+
$emit: (event: string, ...args: any[]) => void;
|
134
|
+
$el: any;
|
135
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
136
|
+
tag: {
|
137
|
+
type: StringConstructor;
|
138
|
+
default: string;
|
139
|
+
};
|
140
|
+
fit: {
|
141
|
+
type: BooleanConstructor;
|
142
|
+
default: boolean;
|
143
|
+
};
|
144
|
+
width: {
|
145
|
+
type: (StringConstructor | NumberConstructor)[];
|
146
|
+
};
|
147
|
+
height: {
|
148
|
+
type: (StringConstructor | NumberConstructor)[];
|
149
|
+
};
|
150
|
+
flex: {
|
151
|
+
type: BooleanConstructor;
|
152
|
+
default: boolean;
|
153
|
+
};
|
154
|
+
inline: {
|
155
|
+
type: BooleanConstructor;
|
156
|
+
};
|
157
|
+
direction: {
|
158
|
+
type: PropType<ContainerDirection>;
|
159
|
+
default: string;
|
160
|
+
};
|
161
|
+
wrap: {
|
162
|
+
type: PropType<ContainerWrap>;
|
163
|
+
default: string;
|
164
|
+
};
|
165
|
+
justify: {
|
166
|
+
type: PropType<ContainerJustifyContent>;
|
167
|
+
default: string;
|
168
|
+
};
|
169
|
+
align: {
|
170
|
+
type: PropType<ContainerAlignItems>;
|
171
|
+
default: string;
|
172
|
+
};
|
173
|
+
alignContent: {
|
174
|
+
type: PropType<ContainerAlignContent>;
|
175
|
+
default: string;
|
176
|
+
};
|
177
|
+
grow: {
|
178
|
+
type: BooleanConstructor;
|
179
|
+
default: boolean;
|
180
|
+
};
|
181
|
+
shrink: {
|
182
|
+
type: BooleanConstructor;
|
183
|
+
default: boolean;
|
184
|
+
};
|
185
|
+
alignSelf: {
|
186
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
187
|
+
default: string;
|
188
|
+
};
|
189
|
+
overflow: {
|
190
|
+
type: PropType<"auto" | "hidden" | "visible">;
|
191
|
+
};
|
192
|
+
padding: {
|
193
|
+
type: BooleanConstructor;
|
194
|
+
default: boolean;
|
195
|
+
};
|
196
|
+
gap: {
|
197
|
+
type: BooleanConstructor;
|
198
|
+
};
|
199
|
+
autoPointer: {
|
200
|
+
type: BooleanConstructor;
|
201
|
+
};
|
202
|
+
}>> & Readonly<{}>, {
|
203
|
+
$vtjEl: ComputedRef<any>;
|
204
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
205
|
+
padding: boolean;
|
206
|
+
tag: string;
|
207
|
+
wrap: ContainerWrap;
|
208
|
+
fit: boolean;
|
209
|
+
flex: boolean;
|
210
|
+
inline: boolean;
|
211
|
+
direction: ContainerDirection;
|
212
|
+
justify: ContainerJustifyContent;
|
213
|
+
align: ContainerAlignItems;
|
214
|
+
alignContent: ContainerAlignContent;
|
215
|
+
grow: boolean;
|
216
|
+
shrink: boolean;
|
217
|
+
alignSelf: ContainerAlignItems | "auto";
|
218
|
+
gap: boolean;
|
219
|
+
autoPointer: boolean;
|
220
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
221
|
+
beforeCreate?: (() => void) | (() => void)[];
|
222
|
+
created?: (() => void) | (() => void)[];
|
223
|
+
beforeMount?: (() => void) | (() => void)[];
|
224
|
+
mounted?: (() => void) | (() => void)[];
|
225
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
226
|
+
updated?: (() => void) | (() => void)[];
|
227
|
+
activated?: (() => void) | (() => void)[];
|
228
|
+
deactivated?: (() => void) | (() => void)[];
|
229
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
230
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
231
|
+
destroyed?: (() => void) | (() => void)[];
|
232
|
+
unmounted?: (() => void) | (() => void)[];
|
233
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
234
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
235
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
236
|
+
};
|
237
|
+
$forceUpdate: () => void;
|
238
|
+
$nextTick: nextTick;
|
239
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
240
|
+
} & Readonly<{
|
241
|
+
padding: boolean;
|
242
|
+
tag: string;
|
243
|
+
wrap: ContainerWrap;
|
244
|
+
fit: boolean;
|
245
|
+
flex: boolean;
|
246
|
+
inline: boolean;
|
247
|
+
direction: ContainerDirection;
|
248
|
+
justify: ContainerJustifyContent;
|
249
|
+
align: ContainerAlignItems;
|
250
|
+
alignContent: ContainerAlignContent;
|
251
|
+
grow: boolean;
|
252
|
+
shrink: boolean;
|
253
|
+
alignSelf: ContainerAlignItems | "auto";
|
254
|
+
gap: boolean;
|
255
|
+
autoPointer: boolean;
|
256
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
257
|
+
tag: {
|
258
|
+
type: StringConstructor;
|
259
|
+
default: string;
|
260
|
+
};
|
261
|
+
fit: {
|
262
|
+
type: BooleanConstructor;
|
263
|
+
default: boolean;
|
264
|
+
};
|
265
|
+
width: {
|
266
|
+
type: (StringConstructor | NumberConstructor)[];
|
267
|
+
};
|
268
|
+
height: {
|
269
|
+
type: (StringConstructor | NumberConstructor)[];
|
270
|
+
};
|
271
|
+
flex: {
|
272
|
+
type: BooleanConstructor;
|
273
|
+
default: boolean;
|
274
|
+
};
|
275
|
+
inline: {
|
276
|
+
type: BooleanConstructor;
|
277
|
+
};
|
278
|
+
direction: {
|
279
|
+
type: PropType<ContainerDirection>;
|
280
|
+
default: string;
|
281
|
+
};
|
282
|
+
wrap: {
|
283
|
+
type: PropType<ContainerWrap>;
|
284
|
+
default: string;
|
285
|
+
};
|
286
|
+
justify: {
|
287
|
+
type: PropType<ContainerJustifyContent>;
|
288
|
+
default: string;
|
289
|
+
};
|
290
|
+
align: {
|
291
|
+
type: PropType<ContainerAlignItems>;
|
292
|
+
default: string;
|
293
|
+
};
|
294
|
+
alignContent: {
|
295
|
+
type: PropType<ContainerAlignContent>;
|
296
|
+
default: string;
|
297
|
+
};
|
298
|
+
grow: {
|
299
|
+
type: BooleanConstructor;
|
300
|
+
default: boolean;
|
301
|
+
};
|
302
|
+
shrink: {
|
303
|
+
type: BooleanConstructor;
|
304
|
+
default: boolean;
|
305
|
+
};
|
306
|
+
alignSelf: {
|
307
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
308
|
+
default: string;
|
309
|
+
};
|
310
|
+
overflow: {
|
311
|
+
type: PropType<"auto" | "hidden" | "visible">;
|
312
|
+
};
|
313
|
+
padding: {
|
314
|
+
type: BooleanConstructor;
|
315
|
+
default: boolean;
|
316
|
+
};
|
317
|
+
gap: {
|
318
|
+
type: BooleanConstructor;
|
319
|
+
};
|
320
|
+
autoPointer: {
|
321
|
+
type: BooleanConstructor;
|
322
|
+
};
|
323
|
+
}>> & Readonly<{}>, "$vtjEl" | ("padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer")> & ShallowUnwrapRef<{
|
324
|
+
$vtjEl: ComputedRef<any>;
|
325
|
+
}> & {} & ComponentCustomProperties & {} & {
|
326
|
+
$slots: {
|
327
|
+
default?(_: {}): any;
|
328
|
+
};
|
329
|
+
}) | null;
|
330
|
+
};
|
331
|
+
attrs: Partial<{}>;
|
10
332
|
};
|
11
|
-
|
333
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
334
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
12
335
|
fit: {
|
13
336
|
type: BooleanConstructor;
|
14
337
|
default: boolean;
|
@@ -45,9 +368,9 @@ declare const __VLS_component: DefineComponent<{
|
|
45
368
|
footer: {
|
46
369
|
type: PropType<ContainerProps>;
|
47
370
|
};
|
48
|
-
}
|
49
|
-
bodyRef: Ref<any>;
|
50
|
-
},
|
371
|
+
}>, {
|
372
|
+
bodyRef: Ref<any, any>;
|
373
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
51
374
|
fit: {
|
52
375
|
type: BooleanConstructor;
|
53
376
|
default: boolean;
|
@@ -84,13 +407,13 @@ declare const __VLS_component: DefineComponent<{
|
|
84
407
|
footer: {
|
85
408
|
type: PropType<ContainerProps>;
|
86
409
|
};
|
87
|
-
}
|
410
|
+
}>> & Readonly<{}>, {
|
88
411
|
radius: boolean;
|
89
412
|
fit: boolean;
|
90
413
|
border: boolean;
|
91
414
|
card: boolean;
|
92
|
-
}, {}>;
|
93
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
415
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
416
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
94
417
|
export default _default;
|
95
418
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
96
419
|
new (): {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PickerColumns, PickerFields, PickerLoader } from './types';
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps,
|
3
|
-
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
3
|
export interface Props {
|
5
4
|
gridProps?: any;
|
6
5
|
formProps?: any;
|
@@ -11,17 +10,8 @@ export interface Props {
|
|
11
10
|
multiple?: boolean;
|
12
11
|
onPick: (rows: any[]) => void;
|
13
12
|
}
|
14
|
-
declare const _default: DefineComponent<
|
13
|
+
declare const _default: DefineComponent<Props, {
|
15
14
|
pick: () => void;
|
16
|
-
gridRef: Ref<any>;
|
17
|
-
},
|
15
|
+
gridRef: Ref<any, any>;
|
16
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
18
17
|
export default _default;
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
20
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
22
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
23
|
-
} : {
|
24
|
-
type: PropType<T[K]>;
|
25
|
-
required: true;
|
26
|
-
};
|
27
|
-
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { PickerLoader, PickerColumns, PickerFields, PickerDialogProps, PickerGridProps } from './types';
|
2
|
-
import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps,
|
3
|
-
|
4
|
-
declare const _default: DefineComponent<{
|
1
|
+
import { PickerLoader, PickerColumns, PickerFields, PickerDialogProps, PickerGridProps, PickerOption } from './types';
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
5
4
|
columns: {
|
6
5
|
type: PropType<PickerColumns>;
|
7
6
|
};
|
@@ -15,7 +14,7 @@ declare const _default: DefineComponent<{
|
|
15
14
|
type: PropType<PickerLoader>;
|
16
15
|
};
|
17
16
|
modelValue: {
|
18
|
-
type: (
|
17
|
+
type: (ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
19
18
|
};
|
20
19
|
multiple: {
|
21
20
|
type: BooleanConstructor;
|
@@ -64,23 +63,26 @@ declare const _default: DefineComponent<{
|
|
64
63
|
beforeInit: {
|
65
64
|
type: FunctionConstructor;
|
66
65
|
};
|
67
|
-
}
|
66
|
+
}>, {
|
68
67
|
focus: () => void;
|
69
68
|
blur: () => void;
|
70
69
|
disabled: ComputedRef<boolean>;
|
71
70
|
options: Ref<{
|
72
71
|
label: string;
|
73
72
|
value: any;
|
73
|
+
}[], PickerOption[] | {
|
74
|
+
label: string;
|
75
|
+
value: any;
|
74
76
|
}[]>;
|
75
77
|
setOptions: (rows: any, append?: boolean) => void;
|
76
|
-
current: Ref<any>;
|
77
|
-
visible: Ref<boolean>;
|
78
|
-
dialogRef: Ref<any>;
|
79
|
-
formModel: Ref<Record<string, any>>;
|
80
|
-
},
|
81
|
-
change: (value: any, data: any) =>
|
82
|
-
"update:modelValue": (value: any) =>
|
83
|
-
picked: (value: any, data: any) =>
|
78
|
+
current: Ref<any, any>;
|
79
|
+
visible: Ref<boolean, boolean>;
|
80
|
+
dialogRef: Ref<any, any>;
|
81
|
+
formModel: Ref<Record<string, any>, Record<string, any>>;
|
82
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
83
|
+
change: (value: any, data: any) => any;
|
84
|
+
"update:modelValue": (value: any) => any;
|
85
|
+
picked: (value: any, data: any) => any;
|
84
86
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
85
87
|
columns: {
|
86
88
|
type: PropType<PickerColumns>;
|
@@ -95,7 +97,7 @@ declare const _default: DefineComponent<{
|
|
95
97
|
type: PropType<PickerLoader>;
|
96
98
|
};
|
97
99
|
modelValue: {
|
98
|
-
type: (
|
100
|
+
type: (ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
99
101
|
};
|
100
102
|
multiple: {
|
101
103
|
type: BooleanConstructor;
|
@@ -144,11 +146,11 @@ declare const _default: DefineComponent<{
|
|
144
146
|
beforeInit: {
|
145
147
|
type: FunctionConstructor;
|
146
148
|
};
|
147
|
-
}>> & {
|
149
|
+
}>> & Readonly<{
|
148
150
|
onChange?: ((value: any, data: any) => any) | undefined;
|
149
151
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
150
152
|
onPicked?: ((value: any, data: any) => any) | undefined;
|
151
|
-
}
|
153
|
+
}>, {
|
152
154
|
raw: boolean;
|
153
155
|
disabled: boolean;
|
154
156
|
multiple: boolean;
|
@@ -156,5 +158,5 @@ declare const _default: DefineComponent<{
|
|
156
158
|
append: boolean;
|
157
159
|
labelKey: string;
|
158
160
|
preload: boolean;
|
159
|
-
}, {}>;
|
161
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
160
162
|
export default _default;
|
@@ -1,17 +1,19 @@
|
|
1
1
|
import { Emits } from '../shared';
|
2
|
-
import { PickerProps, PickerEmits } from './types';
|
2
|
+
import { PickerProps, PickerEmits, PickerOption } from './types';
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
4
4
|
import { VxeTableDataRow } from 'vxe-table';
|
5
|
-
|
6
5
|
export declare function useOptions(props: PickerProps, emit: Emits<PickerEmits>): {
|
7
|
-
current: Ref<any>;
|
6
|
+
current: Ref<any, any>;
|
8
7
|
options: Ref<{
|
9
8
|
label: string;
|
10
9
|
value: any;
|
10
|
+
}[], PickerOption[] | {
|
11
|
+
label: string;
|
12
|
+
value: any;
|
11
13
|
}[]>;
|
12
14
|
setOptions: (rows: any, append?: boolean) => void;
|
13
15
|
};
|
14
16
|
export declare function useGridColumns(props: PickerProps): ComputedRef<import("vxe-table").VxeTableDefines.ColumnOptions<VxeTableDataRow>[]>;
|
15
17
|
export declare function useModel(props: PickerProps): {
|
16
|
-
formModel: Ref<Record<string, any>>;
|
18
|
+
formModel: Ref<Record<string, any>, Record<string, any>>;
|
17
19
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { PickerColumns, PickerFields, PickerDialogProps, PickerGridProps, PickerLoader } from './types';
|
3
|
-
|
4
3
|
export declare const pickerProps: {
|
5
4
|
/**
|
6
5
|
* 表格列配置
|
@@ -30,7 +29,7 @@ export declare const pickerProps: {
|
|
30
29
|
* 值
|
31
30
|
*/
|
32
31
|
modelValue: {
|
33
|
-
type: (
|
32
|
+
type: (ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
34
33
|
};
|
35
34
|
/**
|
36
35
|
* 多选模式
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { ComponentPropsType, UnReadOnly } from '../shared';
|
2
2
|
import { GridColumns, QueryFormItems, DialogProps, GridProps, GridLoader, GridState } from '../';
|
3
3
|
import { pickerProps } from './props';
|
4
|
-
|
5
4
|
export type PickerColumns = GridColumns;
|
6
5
|
export type PickerFields = QueryFormItems;
|
7
6
|
export type PickerLoader = GridLoader;
|
@@ -1,46 +1,27 @@
|
|
1
1
|
import { QrCodeProps } from './types';
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
3
|
-
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
3
|
declare function __VLS_template(): {
|
5
|
-
|
4
|
+
slots: {
|
5
|
+
tip?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
attrs: Partial<{}>;
|
6
9
|
};
|
7
|
-
|
8
|
-
|
9
|
-
tip: string;
|
10
|
-
}>, {
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: DefineComponent<QrCodeProps, {
|
11
12
|
refresh: () => void;
|
12
|
-
},
|
13
|
-
expired: () =>
|
14
|
-
draw: (value: string) =>
|
15
|
-
}, string, PublicProps, Readonly<
|
16
|
-
size: number;
|
17
|
-
tip: string;
|
18
|
-
}>>> & {
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
14
|
+
expired: () => any;
|
15
|
+
draw: (value: string) => any;
|
16
|
+
}, string, PublicProps, Readonly<QrCodeProps> & Readonly<{
|
19
17
|
onExpired?: (() => any) | undefined;
|
20
18
|
onDraw?: ((value: string) => any) | undefined;
|
21
|
-
}
|
19
|
+
}>, {
|
22
20
|
size: number;
|
23
21
|
tip: string;
|
24
|
-
}, {}>;
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
26
24
|
export default _default;
|
27
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
28
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
29
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
30
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
31
|
-
} : {
|
32
|
-
type: PropType<T[K]>;
|
33
|
-
required: true;
|
34
|
-
};
|
35
|
-
};
|
36
|
-
type __VLS_WithDefaults<P, D> = {
|
37
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
38
|
-
default: D[K];
|
39
|
-
}> : P[K];
|
40
|
-
};
|
41
|
-
type __VLS_Prettify<T> = {
|
42
|
-
[K in keyof T]: T[K];
|
43
|
-
} & {};
|
44
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
45
26
|
new (): {
|
46
27
|
$slots: S;
|