@dao-style/core 1.3.1-beta.7 → 1.4.0
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/autocomplete/autocomplete.d.ts +1283 -0
- package/dist/components/autocomplete/autocomplete.vue.d.ts +451 -0
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/autocomplete/props.d.ts +79 -0
- package/dist/components/drawer/drawer.d.ts +4 -4
- package/dist/components/drawer/drawer.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +2 -1
- package/dist/components/nav/nav-item.d.ts +23 -1
- package/dist/components/nav/nav-item.vue.d.ts +10 -0
- package/dist/components/nav/nav-sub.d.ts +26 -1
- package/dist/components/nav/nav-sub.vue.d.ts +11 -0
- package/dist/components/nav/props.d.ts +8 -0
- package/dist/components/nav/types.d.ts +5 -0
- package/dist/components/select/select.d.ts +4 -4
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/table/table.d.ts +7 -7
- package/dist/components/table/table.vue.d.ts +2 -2
- package/dist/components/toolbar/toolbar.d.ts +4 -4
- package/dist/components/toolbar/toolbar.vue.d.ts +1 -1
- package/dist/dao-style.js +6 -6
- package/dist/dao-style.mjs +7117 -6639
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
import { AutocompleteObjectOption } from './props';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: import("vue").PropType<import("../input").ModalValueType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
type: import("vue").PropType<import("./props").AutocompleteOption>;
|
|
10
|
+
default: () => string[];
|
|
11
|
+
};
|
|
12
|
+
loading: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
debounce: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
popperClass: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
valueKey: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
triggerOnFocus: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
placeholder: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
status: {
|
|
40
|
+
type: import("vue").PropType<import("../input").InputStatus>;
|
|
41
|
+
default: string;
|
|
42
|
+
validator: (value: import("../input").InputStatus) => boolean;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
type: import("vue").PropType<import("../input").InputSize>;
|
|
46
|
+
default: string;
|
|
47
|
+
validator: (value: import("../input").InputSize) => boolean;
|
|
48
|
+
};
|
|
49
|
+
block: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
append: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
prepend: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
rootAttrs: {
|
|
62
|
+
type: ObjectConstructor;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
ns: string;
|
|
66
|
+
t: import("vue-i18n").ComposerTranslation<{
|
|
67
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
68
|
+
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
69
|
+
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
70
|
+
}>, never, string, string>;
|
|
71
|
+
dropdownRef: import("vue").Ref<any>;
|
|
72
|
+
dropdownVisible: import("vue").Ref<boolean>;
|
|
73
|
+
suggestionVisible: import("vue").ComputedRef<boolean>;
|
|
74
|
+
suggestionOptionList: import("vue").Ref<{
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
value?: string | number | undefined;
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
}[]>;
|
|
79
|
+
valueModel: import("vue").Ref<import("../input").ModalValueType> | import("vue").WritableComputedRef<import("../input").ModalValueType>;
|
|
80
|
+
computedInputProps: import("vue").ComputedRef<{
|
|
81
|
+
[x: string]: string | number | boolean | string[] | Record<string, any> | AutocompleteObjectOption[] | import("./props").AutocompleteSearchFn | ((event: FocusEvent) => any) | ((event: FocusEvent) => any) | ((val: import("../input").ModalValueType) => any) | ((val: import("../input").ModalValueType) => any) | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
computedLoading: import("vue").ComputedRef<boolean>;
|
|
84
|
+
functionLoading: import("vue").Ref<boolean>;
|
|
85
|
+
handleInput: (str: string) => void;
|
|
86
|
+
handleFocus: (e: FocusEvent) => void;
|
|
87
|
+
handleBlur: (e: FocusEvent) => void;
|
|
88
|
+
handleSearch: (value?: AutocompleteObjectOption['value']) => void;
|
|
89
|
+
handleOptionItemClick: (item: AutocompleteObjectOption) => void;
|
|
90
|
+
inputRef: import("vue").Ref<({
|
|
91
|
+
$: import("vue").ComponentInternalInstance;
|
|
92
|
+
$data: {};
|
|
93
|
+
$props: Partial<{
|
|
94
|
+
type: import("../input").InputType;
|
|
95
|
+
modelValue: import("../input").ModalValueType;
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
size: import("../input").InputSize;
|
|
98
|
+
block: boolean;
|
|
99
|
+
status: import("../input").InputStatus;
|
|
100
|
+
borderless: boolean;
|
|
101
|
+
append: string;
|
|
102
|
+
prepend: string;
|
|
103
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
104
|
+
modelValue: {
|
|
105
|
+
type: import("vue").PropType<import("../input").ModalValueType>;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
type: {
|
|
109
|
+
type: import("vue").PropType<import("../input").InputType>;
|
|
110
|
+
default: string;
|
|
111
|
+
validator: (value: import("../input").InputType) => boolean;
|
|
112
|
+
};
|
|
113
|
+
disabled: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
size: {
|
|
118
|
+
type: import("vue").PropType<import("../input").InputSize>;
|
|
119
|
+
default: string;
|
|
120
|
+
validator: (value: import("../input").InputSize) => boolean;
|
|
121
|
+
};
|
|
122
|
+
block: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
status: {
|
|
127
|
+
type: import("vue").PropType<import("../input").InputStatus>;
|
|
128
|
+
default: string;
|
|
129
|
+
validator: (value: import("../input").InputStatus) => boolean;
|
|
130
|
+
};
|
|
131
|
+
borderless: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
append: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
prepend: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
rootAttrs: {
|
|
144
|
+
type: ObjectConstructor;
|
|
145
|
+
};
|
|
146
|
+
}>> & {
|
|
147
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
"onAfter-reset"?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "modelValue" | "disabled" | "size" | "block" | "status" | "borderless" | "append" | "prepend">;
|
|
154
|
+
$attrs: {
|
|
155
|
+
[x: string]: unknown;
|
|
156
|
+
};
|
|
157
|
+
$refs: {
|
|
158
|
+
[x: string]: unknown;
|
|
159
|
+
};
|
|
160
|
+
$slots: Readonly<{
|
|
161
|
+
[name: string]: import("vue").Slot | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
164
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
165
|
+
$emit: (event: "input" | "focus" | "update:modelValue" | "blur" | "change" | "after-reset", ...args: any[]) => void;
|
|
166
|
+
$el: any;
|
|
167
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
168
|
+
modelValue: {
|
|
169
|
+
type: import("vue").PropType<import("../input").ModalValueType>;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
type: {
|
|
173
|
+
type: import("vue").PropType<import("../input").InputType>;
|
|
174
|
+
default: string;
|
|
175
|
+
validator: (value: import("../input").InputType) => boolean;
|
|
176
|
+
};
|
|
177
|
+
disabled: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
size: {
|
|
182
|
+
type: import("vue").PropType<import("../input").InputSize>;
|
|
183
|
+
default: string;
|
|
184
|
+
validator: (value: import("../input").InputSize) => boolean;
|
|
185
|
+
};
|
|
186
|
+
block: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
status: {
|
|
191
|
+
type: import("vue").PropType<import("../input").InputStatus>;
|
|
192
|
+
default: string;
|
|
193
|
+
validator: (value: import("../input").InputStatus) => boolean;
|
|
194
|
+
};
|
|
195
|
+
borderless: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
append: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
prepend: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
rootAttrs: {
|
|
208
|
+
type: ObjectConstructor;
|
|
209
|
+
};
|
|
210
|
+
}>> & {
|
|
211
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
212
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
213
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
214
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
215
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
216
|
+
"onAfter-reset"?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
currentValue: import("vue").Ref<import("../input").ModalValueType>;
|
|
219
|
+
isFocus: import("vue").Ref<boolean>;
|
|
220
|
+
input: import("vue").Ref<HTMLInputElement | null>;
|
|
221
|
+
clearable: import("vue").ComputedRef<boolean | "" | 0 | undefined>;
|
|
222
|
+
wrapClasses: import("vue").ComputedRef<(string | {
|
|
223
|
+
[x: string]: boolean | "" | 0 | undefined;
|
|
224
|
+
})[]>;
|
|
225
|
+
inputClasses: import("vue").ComputedRef<(string | {
|
|
226
|
+
[x: string]: boolean | import("vue").Slot | undefined;
|
|
227
|
+
})[]>;
|
|
228
|
+
inputAttrs: import("vue").ComputedRef<{
|
|
229
|
+
onInput(event: Event): void;
|
|
230
|
+
onChange(event: Event): void;
|
|
231
|
+
onBlur(event: FocusEvent): void;
|
|
232
|
+
onFocus(event: FocusEvent): void;
|
|
233
|
+
}>;
|
|
234
|
+
slots: Readonly<{
|
|
235
|
+
[name: string]: import("vue").Slot | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
resetCurrentVal: () => void;
|
|
238
|
+
statusClasses: import("vue").ComputedRef<string>;
|
|
239
|
+
changeNumberValue: (changeType: "increase" | "decrease") => void;
|
|
240
|
+
isIncreaseDisabled: import("vue").Ref<boolean>;
|
|
241
|
+
isDecreaseDisabled: import("vue").Ref<boolean>;
|
|
242
|
+
isChangingNumber: import("vue").Ref<boolean>;
|
|
243
|
+
inputType: import("vue").ComputedRef<import("../input").InputType>;
|
|
244
|
+
passwordIcon: import("vue").ComputedRef<"icon-eye" | "icon-eye-slash">;
|
|
245
|
+
toggleShowPassword: () => void;
|
|
246
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "update:modelValue" | "blur" | "change" | "after-reset")[], string, {
|
|
247
|
+
type: import("../input").InputType;
|
|
248
|
+
modelValue: import("../input").ModalValueType;
|
|
249
|
+
disabled: boolean;
|
|
250
|
+
size: import("../input").InputSize;
|
|
251
|
+
block: boolean;
|
|
252
|
+
status: import("../input").InputStatus;
|
|
253
|
+
borderless: boolean;
|
|
254
|
+
append: string;
|
|
255
|
+
prepend: string;
|
|
256
|
+
}, {}, string> & {
|
|
257
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
258
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
259
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
260
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
261
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
262
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
263
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
264
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
265
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
266
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
267
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
268
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
269
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
270
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
271
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
272
|
+
};
|
|
273
|
+
$forceUpdate: () => void;
|
|
274
|
+
$nextTick: typeof nextTick;
|
|
275
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
276
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
277
|
+
modelValue: {
|
|
278
|
+
type: import("vue").PropType<import("../input").ModalValueType>;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
281
|
+
type: {
|
|
282
|
+
type: import("vue").PropType<import("../input").InputType>;
|
|
283
|
+
default: string;
|
|
284
|
+
validator: (value: import("../input").InputType) => boolean;
|
|
285
|
+
};
|
|
286
|
+
disabled: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
default: boolean;
|
|
289
|
+
};
|
|
290
|
+
size: {
|
|
291
|
+
type: import("vue").PropType<import("../input").InputSize>;
|
|
292
|
+
default: string;
|
|
293
|
+
validator: (value: import("../input").InputSize) => boolean;
|
|
294
|
+
};
|
|
295
|
+
block: {
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
default: boolean;
|
|
298
|
+
};
|
|
299
|
+
status: {
|
|
300
|
+
type: import("vue").PropType<import("../input").InputStatus>;
|
|
301
|
+
default: string;
|
|
302
|
+
validator: (value: import("../input").InputStatus) => boolean;
|
|
303
|
+
};
|
|
304
|
+
borderless: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
append: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: string;
|
|
311
|
+
};
|
|
312
|
+
prepend: {
|
|
313
|
+
type: StringConstructor;
|
|
314
|
+
default: string;
|
|
315
|
+
};
|
|
316
|
+
rootAttrs: {
|
|
317
|
+
type: ObjectConstructor;
|
|
318
|
+
};
|
|
319
|
+
}>> & {
|
|
320
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
321
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
322
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
323
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
324
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
325
|
+
"onAfter-reset"?: ((...args: any[]) => any) | undefined;
|
|
326
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
327
|
+
currentValue: import("vue").Ref<import("../input").ModalValueType>;
|
|
328
|
+
isFocus: import("vue").Ref<boolean>;
|
|
329
|
+
input: import("vue").Ref<HTMLInputElement | null>;
|
|
330
|
+
clearable: import("vue").ComputedRef<boolean | "" | 0 | undefined>;
|
|
331
|
+
wrapClasses: import("vue").ComputedRef<(string | {
|
|
332
|
+
[x: string]: boolean | "" | 0 | undefined;
|
|
333
|
+
})[]>;
|
|
334
|
+
inputClasses: import("vue").ComputedRef<(string | {
|
|
335
|
+
[x: string]: boolean | import("vue").Slot | undefined;
|
|
336
|
+
})[]>;
|
|
337
|
+
inputAttrs: import("vue").ComputedRef<{
|
|
338
|
+
onInput(event: Event): void;
|
|
339
|
+
onChange(event: Event): void;
|
|
340
|
+
onBlur(event: FocusEvent): void;
|
|
341
|
+
onFocus(event: FocusEvent): void;
|
|
342
|
+
}>;
|
|
343
|
+
slots: Readonly<{
|
|
344
|
+
[name: string]: import("vue").Slot | undefined;
|
|
345
|
+
}>;
|
|
346
|
+
resetCurrentVal: () => void;
|
|
347
|
+
statusClasses: import("vue").ComputedRef<string>;
|
|
348
|
+
changeNumberValue: (changeType: "increase" | "decrease") => void;
|
|
349
|
+
isIncreaseDisabled: import("vue").Ref<boolean>;
|
|
350
|
+
isDecreaseDisabled: import("vue").Ref<boolean>;
|
|
351
|
+
isChangingNumber: import("vue").Ref<boolean>;
|
|
352
|
+
inputType: import("vue").ComputedRef<import("../input").InputType>;
|
|
353
|
+
passwordIcon: import("vue").ComputedRef<"icon-eye" | "icon-eye-slash">;
|
|
354
|
+
toggleShowPassword: () => void;
|
|
355
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
356
|
+
$props: Partial<import("../input").InputProps>;
|
|
357
|
+
$slots: {
|
|
358
|
+
prefix: import("../..").SlotFn;
|
|
359
|
+
suffix: import("../..").SlotFn;
|
|
360
|
+
prepend: import("../..").SlotFn;
|
|
361
|
+
append: import("../..").SlotFn;
|
|
362
|
+
};
|
|
363
|
+
}) | undefined>;
|
|
364
|
+
inputWidth: import("vue").ComputedRef<any>;
|
|
365
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
366
|
+
'update:modelValue': (val: import("../input").ModalValueType) => void;
|
|
367
|
+
blur: (event: FocusEvent) => void;
|
|
368
|
+
focus: (event: FocusEvent) => void;
|
|
369
|
+
change: (val: import("../input").ModalValueType) => void;
|
|
370
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
371
|
+
modelValue: {
|
|
372
|
+
type: import("vue").PropType<import("../input").ModalValueType>;
|
|
373
|
+
default: string;
|
|
374
|
+
};
|
|
375
|
+
options: {
|
|
376
|
+
type: import("vue").PropType<import("./props").AutocompleteOption>;
|
|
377
|
+
default: () => string[];
|
|
378
|
+
};
|
|
379
|
+
loading: {
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
default: undefined;
|
|
382
|
+
};
|
|
383
|
+
debounce: {
|
|
384
|
+
type: NumberConstructor;
|
|
385
|
+
default: number;
|
|
386
|
+
};
|
|
387
|
+
popperClass: {
|
|
388
|
+
type: StringConstructor;
|
|
389
|
+
};
|
|
390
|
+
valueKey: {
|
|
391
|
+
type: StringConstructor;
|
|
392
|
+
default: string;
|
|
393
|
+
};
|
|
394
|
+
triggerOnFocus: {
|
|
395
|
+
type: BooleanConstructor;
|
|
396
|
+
default: boolean;
|
|
397
|
+
};
|
|
398
|
+
placeholder: {
|
|
399
|
+
type: StringConstructor;
|
|
400
|
+
default: string;
|
|
401
|
+
};
|
|
402
|
+
disabled: {
|
|
403
|
+
type: BooleanConstructor;
|
|
404
|
+
default: boolean;
|
|
405
|
+
};
|
|
406
|
+
status: {
|
|
407
|
+
type: import("vue").PropType<import("../input").InputStatus>;
|
|
408
|
+
default: string;
|
|
409
|
+
validator: (value: import("../input").InputStatus) => boolean;
|
|
410
|
+
};
|
|
411
|
+
size: {
|
|
412
|
+
type: import("vue").PropType<import("../input").InputSize>;
|
|
413
|
+
default: string;
|
|
414
|
+
validator: (value: import("../input").InputSize) => boolean;
|
|
415
|
+
};
|
|
416
|
+
block: {
|
|
417
|
+
type: BooleanConstructor;
|
|
418
|
+
default: boolean;
|
|
419
|
+
};
|
|
420
|
+
append: {
|
|
421
|
+
type: StringConstructor;
|
|
422
|
+
default: string;
|
|
423
|
+
};
|
|
424
|
+
prepend: {
|
|
425
|
+
type: StringConstructor;
|
|
426
|
+
default: string;
|
|
427
|
+
};
|
|
428
|
+
rootAttrs: {
|
|
429
|
+
type: ObjectConstructor;
|
|
430
|
+
};
|
|
431
|
+
}>> & {
|
|
432
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
433
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
434
|
+
onChange?: ((val: import("../input").ModalValueType) => any) | undefined;
|
|
435
|
+
"onUpdate:modelValue"?: ((val: import("../input").ModalValueType) => any) | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
modelValue: import("../input").ModalValueType;
|
|
438
|
+
disabled: boolean;
|
|
439
|
+
size: import("../input").InputSize;
|
|
440
|
+
block: boolean;
|
|
441
|
+
options: import("./props").AutocompleteOption;
|
|
442
|
+
loading: boolean;
|
|
443
|
+
status: import("../input").InputStatus;
|
|
444
|
+
append: string;
|
|
445
|
+
prepend: string;
|
|
446
|
+
placeholder: string;
|
|
447
|
+
debounce: number;
|
|
448
|
+
valueKey: string;
|
|
449
|
+
triggerOnFocus: boolean;
|
|
450
|
+
}>;
|
|
451
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type Autocomplete from './autocomplete.vue';
|
|
3
|
+
export type AutocompleteObjectOption = Record<string, unknown> & {
|
|
4
|
+
value?: string | number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AutocompleteOptionProps = AutocompleteObjectOption[] | string[];
|
|
8
|
+
export type AutocompleteSearchFn = (queryString: string) => Promise<AutocompleteOptionProps> | AutocompleteOptionProps;
|
|
9
|
+
export type AutocompleteOption = AutocompleteOptionProps | AutocompleteSearchFn;
|
|
10
|
+
export declare const autocompleteProps: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<import("../input/props").ModalValueType>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
options: {
|
|
16
|
+
type: PropType<AutocompleteOption>;
|
|
17
|
+
default: () => string[];
|
|
18
|
+
};
|
|
19
|
+
loading: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
debounce: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
popperClass: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
valueKey: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
triggerOnFocus: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
placeholder: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
status: {
|
|
47
|
+
type: PropType<import("../input/props").InputStatus>;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: import("../input/props").InputStatus) => boolean;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<import("../input/props").InputSize>;
|
|
53
|
+
default: string;
|
|
54
|
+
validator: (value: import("../input/props").InputSize) => boolean;
|
|
55
|
+
};
|
|
56
|
+
block: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
append: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
prepend: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
rootAttrs: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const autocompleteEmits: {
|
|
73
|
+
'update:modelValue': (val: import("../input/props").ModalValueType) => void;
|
|
74
|
+
blur: (event: FocusEvent) => void;
|
|
75
|
+
focus: (event: FocusEvent) => void;
|
|
76
|
+
change: (val: import("../input/props").ModalValueType) => void;
|
|
77
|
+
};
|
|
78
|
+
export type AutocompleteProps = ExtractPropTypes<typeof autocompleteProps>;
|
|
79
|
+
export type AutocompleteInstance = InstanceType<typeof Autocomplete>;
|
|
@@ -53,8 +53,8 @@ declare const DaoDrawer: {
|
|
|
53
53
|
};
|
|
54
54
|
}>> & {
|
|
55
55
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
56
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
57
56
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "title" | "size" | "hideHeader" | "hideFooter" | "hideMask" | "hideCloseIcon" | "cancelText" | "confirmText">;
|
|
59
59
|
$attrs: {
|
|
60
60
|
[x: string]: unknown;
|
|
@@ -108,8 +108,8 @@ declare const DaoDrawer: {
|
|
|
108
108
|
};
|
|
109
109
|
}>> & {
|
|
110
110
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
111
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
112
111
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
114
|
visible: import("vue").Ref<boolean>;
|
|
115
115
|
drawerRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -195,8 +195,8 @@ declare const DaoDrawer: {
|
|
|
195
195
|
};
|
|
196
196
|
}>> & {
|
|
197
197
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
198
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
199
198
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
200
200
|
} & import("vue").ShallowUnwrapRef<{
|
|
201
201
|
visible: import("vue").Ref<boolean>;
|
|
202
202
|
drawerRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -256,8 +256,8 @@ declare const DaoDrawer: {
|
|
|
256
256
|
};
|
|
257
257
|
}>> & {
|
|
258
258
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
259
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
260
259
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
260
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
261
261
|
}, {
|
|
262
262
|
visible: import("vue").Ref<boolean>;
|
|
263
263
|
drawerRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -90,8 +90,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
};
|
|
91
91
|
}>> & {
|
|
92
92
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
94
93
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
}, {
|
|
96
96
|
modelValue: boolean;
|
|
97
97
|
title: string;
|
|
@@ -362,8 +362,9 @@ declare const DaoInput: {
|
|
|
362
362
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
363
363
|
$props: Partial<InputProps>;
|
|
364
364
|
$slots: {
|
|
365
|
-
prepend: SlotFn;
|
|
366
365
|
prefix: SlotFn;
|
|
366
|
+
suffix: SlotFn;
|
|
367
|
+
prepend: SlotFn;
|
|
367
368
|
append: SlotFn;
|
|
368
369
|
};
|
|
369
370
|
});
|