lew-ui 2.7.13 → 2.7.15
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/{utils → _components}/RenderComponent.vue.d.ts +6 -6
- package/dist/components/data/collapse/src/LewCollapse.vue.d.ts +9 -4
- package/dist/components/data/collapse/src/LewCollapseItem.vue.d.ts +14 -22
- package/dist/components/data/collapse/src/LewCollapseTransition.vue.d.ts +55 -0
- package/dist/components/data/collapse/src/props.d.ts +7 -17
- package/dist/components/data/desc/src/LewDesc.vue.d.ts +27 -61
- package/dist/components/data/desc/src/LewDescItem.vue.d.ts +39 -79
- package/dist/components/data/desc/src/props.d.ts +41 -60
- package/dist/components/data/table/src/LewTable.vue.d.ts +1 -1
- package/dist/components/data/tree/src/props.d.ts +2 -2
- package/dist/components/feedback/alert/src/LewAlert.vue.d.ts +1 -1
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +2 -2
- package/dist/components/feedback/empty/src/LewEmpty.vue.d.ts +7 -7
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +2 -2
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +91 -145
- package/dist/components/feedback/popover/src/LewPopover.vue.d.ts +2 -2
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +21 -21
- package/dist/components/form/checkbox/src/LewCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +1 -1
- package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +11 -11
- package/dist/components/form/date-range-picker/src/LewDateRangePicker.vue.d.ts +11 -11
- package/dist/components/form/form/src/LewForm.vue.d.ts +3 -3
- package/dist/components/form/form/src/LewFormItem.vue.d.ts +5 -5
- package/dist/components/form/input/src/LewInput.vue.d.ts +2 -2
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +1 -1
- package/dist/components/form/input-table/src/FormModal.vue.d.ts +6 -6
- package/dist/components/form/input-table/src/LewInputTable.vue.d.ts +13 -13
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +5 -5
- package/dist/components/form/input-tree/src/LewInputTree.vue.d.ts +1 -1
- package/dist/components/form/radio/src/LewRadioGroup.vue.d.ts +1 -1
- package/dist/components/form/select/src/LewSelect.vue.d.ts +21 -21
- package/dist/components/form/select-multiple/src/LewSelectMultiple.vue.d.ts +41 -41
- package/dist/components/form/slider/src/LewSlider.vue.d.ts +1 -1
- package/dist/components/form/slider-range/src/LewSliderRange.vue.d.ts +1 -1
- package/dist/components/form/switch/src/LewSwitch.vue.d.ts +2 -2
- package/dist/components/form/switch/src/props.d.ts +1 -1
- package/dist/components/form/tabs/src/LewTabs.vue.d.ts +1 -1
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +6 -6
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +22 -22
- package/dist/components/form/upload/src/LewUpload.vue.d.ts +44 -38
- package/dist/components/general/avatar/src/LewAvatar.vue.d.ts +38 -58
- package/dist/components/general/avatar/src/props.d.ts +10 -23
- package/dist/components/general/badge/src/LewBadge.vue.d.ts +27 -38
- package/dist/components/general/badge/src/props.d.ts +12 -17
- package/dist/components/general/button/src/LewButton.vue.d.ts +18 -47
- package/dist/components/general/button/src/props.d.ts +6 -22
- package/dist/components/general/dropdown/src/LewDropdown.vue.d.ts +48 -49
- package/dist/components/general/dropdown/src/props.d.ts +7 -16
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +36 -39
- package/dist/components/general/flex/src/props.d.ts +7 -11
- package/dist/components/general/image/src/LewImage.vue.d.ts +2 -2
- package/dist/components/general/mark/src/LewMark.vue.d.ts +18 -27
- package/dist/components/general/mark/src/props.d.ts +9 -15
- package/dist/components/general/tag/src/LewTag.vue.d.ts +22 -33
- package/dist/components/general/tag/src/props.d.ts +10 -10
- package/dist/components/general/text-trim/src/LewTextTrim.vue.d.ts +35 -42
- package/dist/components/general/text-trim/src/props.d.ts +12 -18
- package/dist/components/general/text-trim/src/text-trim.d.ts +16 -5
- package/dist/components/general/title/src/LewTitle.vue.d.ts +19 -29
- package/dist/components/general/title/src/props.d.ts +9 -13
- package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +27 -30
- package/dist/components/navigation/action-box/src/props.d.ts +12 -15
- package/dist/components/navigation/back-top/src/LewBackTop.vue.d.ts +7 -14
- package/dist/components/navigation/back-top/src/props.d.ts +0 -5
- package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +15 -18
- package/dist/components/navigation/breadcrumb/src/props.d.ts +4 -7
- package/dist/components/navigation/menu-tree/src/LewMenuTree.vue.d.ts +26 -22
- package/dist/components/navigation/menu-tree/src/LewMenuTreeItem.vue.d.ts +23 -62
- package/dist/components/navigation/menu-tree/src/props.d.ts +16 -29
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +10 -10
- package/dist/constants/index.d.ts +3 -1
- package/dist/directives/context-menu/src/index.d.ts +3 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1401 -1932
- package/dist/index.umd.cjs +6 -6
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +69 -123
- package/dist/methods/dialog/src/index.d.ts +2 -2
- package/dist/types/index.d.ts +8 -1
- package/dist/utils/dragmove.d.ts +16 -0
- package/dist/utils/index.d.ts +1 -16
- package/dist/utils/render.d.ts +5 -4
- package/package.json +1 -1
- package/dist/hooks/src/useDOMCreate.d.ts +0 -1
- package/dist/hooks/src/useEventListener.d.ts +0 -1
- /package/dist/{utils/LewCommonIcon.vue.d.ts → _components/CommonIcon.vue.d.ts} +0 -0
|
@@ -181,21 +181,24 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
181
181
|
$data: {};
|
|
182
182
|
$props: Partial<{
|
|
183
183
|
direction: import('../../../..').FlexDirection;
|
|
184
|
-
width: string | number;
|
|
185
184
|
x: import('../../../..').FlexXAlignment;
|
|
186
185
|
y: import('../../../..').FlexYAlignment;
|
|
187
|
-
|
|
186
|
+
gap: import('../../../..').FlexGap;
|
|
188
187
|
wrap: boolean;
|
|
189
|
-
gap: string | number;
|
|
190
188
|
}> & Omit<{
|
|
191
189
|
readonly direction: import('../../../..').FlexDirection;
|
|
192
|
-
readonly width: string | number;
|
|
193
190
|
readonly x: import('../../../..').FlexXAlignment;
|
|
194
191
|
readonly y: import('../../../..').FlexYAlignment;
|
|
195
|
-
readonly
|
|
192
|
+
readonly gap: import('../../../..').FlexGap;
|
|
196
193
|
readonly wrap: boolean;
|
|
197
|
-
readonly
|
|
198
|
-
|
|
194
|
+
readonly width?: import('../../../..').FlexWidth | undefined;
|
|
195
|
+
readonly mode?: import('../../../..').FlexMode | undefined;
|
|
196
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
197
|
+
readonly onResize?: ((size: {
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
|
+
}) => any) | undefined;
|
|
201
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "direction" | "x" | "y" | "gap" | "wrap">;
|
|
199
202
|
$attrs: {
|
|
200
203
|
[x: string]: unknown;
|
|
201
204
|
};
|
|
@@ -208,55 +211,61 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
208
211
|
$root: ComponentPublicInstance | null;
|
|
209
212
|
$parent: ComponentPublicInstance | null;
|
|
210
213
|
$host: Element | null;
|
|
211
|
-
$emit: (event:
|
|
214
|
+
$emit: ((event: "click", event: MouseEvent) => void) & ((event: "resize", size: {
|
|
215
|
+
width: number;
|
|
216
|
+
height: number;
|
|
217
|
+
}) => void);
|
|
212
218
|
$el: HTMLDivElement;
|
|
213
219
|
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
214
220
|
direction: {
|
|
215
221
|
type: PropType<import('../../../..').FlexDirection>;
|
|
216
222
|
default: string;
|
|
217
|
-
typeDesc: string;
|
|
218
223
|
validator(value: import('../../../..').FlexDirection): boolean;
|
|
219
224
|
};
|
|
220
225
|
x: {
|
|
221
226
|
type: PropType<import('../../../..').FlexXAlignment>;
|
|
222
227
|
default: string;
|
|
223
|
-
typeDesc: string;
|
|
224
228
|
validator(value: import('../../../..').FlexXAlignment): boolean;
|
|
225
229
|
};
|
|
226
230
|
y: {
|
|
227
231
|
type: PropType<import('../../../..').FlexYAlignment>;
|
|
228
232
|
default: string;
|
|
229
|
-
typeDesc: string;
|
|
230
233
|
validator(value: import('../../../..').FlexYAlignment): boolean;
|
|
231
234
|
};
|
|
232
235
|
mode: {
|
|
233
236
|
type: PropType<import('../../../..').FlexMode>;
|
|
234
|
-
default: string;
|
|
235
|
-
typeDesc: string;
|
|
236
237
|
validator(value: import('../../../..').FlexMode): boolean;
|
|
237
238
|
};
|
|
238
239
|
wrap: {
|
|
239
240
|
type: BooleanConstructor;
|
|
240
|
-
default: boolean;
|
|
241
241
|
};
|
|
242
242
|
gap: {
|
|
243
|
-
type: (
|
|
243
|
+
type: PropType<import('../../../..').FlexGap>;
|
|
244
244
|
default: number;
|
|
245
|
-
validator(value:
|
|
245
|
+
validator(value: import('../../../..').FlexGap): boolean;
|
|
246
246
|
};
|
|
247
247
|
width: {
|
|
248
|
-
type: (
|
|
249
|
-
|
|
250
|
-
validator(value: string | number): boolean;
|
|
248
|
+
type: PropType<import('../../../..').FlexWidth>;
|
|
249
|
+
validator(value: import('../../../..').FlexWidth): boolean;
|
|
251
250
|
};
|
|
252
|
-
}>> & Readonly<{
|
|
251
|
+
}>> & Readonly<{
|
|
252
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
253
|
+
onResize?: ((size: {
|
|
254
|
+
width: number;
|
|
255
|
+
height: number;
|
|
256
|
+
}) => any) | undefined;
|
|
257
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
258
|
+
click: (event: MouseEvent) => any;
|
|
259
|
+
resize: (size: {
|
|
260
|
+
width: number;
|
|
261
|
+
height: number;
|
|
262
|
+
}) => any;
|
|
263
|
+
}, string, {
|
|
253
264
|
direction: import('../../../..').FlexDirection;
|
|
254
|
-
width: string | number;
|
|
255
265
|
x: import('../../../..').FlexXAlignment;
|
|
256
266
|
y: import('../../../..').FlexYAlignment;
|
|
257
|
-
|
|
267
|
+
gap: import('../../../..').FlexGap;
|
|
258
268
|
wrap: boolean;
|
|
259
|
-
gap: string | number;
|
|
260
269
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
261
270
|
beforeCreate?: (() => void) | (() => void)[];
|
|
262
271
|
created?: (() => void) | (() => void)[];
|
|
@@ -279,52 +288,49 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
279
288
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
280
289
|
} & Readonly<{
|
|
281
290
|
direction: import('../../../..').FlexDirection;
|
|
282
|
-
width: string | number;
|
|
283
291
|
x: import('../../../..').FlexXAlignment;
|
|
284
292
|
y: import('../../../..').FlexYAlignment;
|
|
285
|
-
|
|
293
|
+
gap: import('../../../..').FlexGap;
|
|
286
294
|
wrap: boolean;
|
|
287
|
-
gap: string | number;
|
|
288
295
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
289
296
|
direction: {
|
|
290
297
|
type: PropType<import('../../../..').FlexDirection>;
|
|
291
298
|
default: string;
|
|
292
|
-
typeDesc: string;
|
|
293
299
|
validator(value: import('../../../..').FlexDirection): boolean;
|
|
294
300
|
};
|
|
295
301
|
x: {
|
|
296
302
|
type: PropType<import('../../../..').FlexXAlignment>;
|
|
297
303
|
default: string;
|
|
298
|
-
typeDesc: string;
|
|
299
304
|
validator(value: import('../../../..').FlexXAlignment): boolean;
|
|
300
305
|
};
|
|
301
306
|
y: {
|
|
302
307
|
type: PropType<import('../../../..').FlexYAlignment>;
|
|
303
308
|
default: string;
|
|
304
|
-
typeDesc: string;
|
|
305
309
|
validator(value: import('../../../..').FlexYAlignment): boolean;
|
|
306
310
|
};
|
|
307
311
|
mode: {
|
|
308
312
|
type: PropType<import('../../../..').FlexMode>;
|
|
309
|
-
default: string;
|
|
310
|
-
typeDesc: string;
|
|
311
313
|
validator(value: import('../../../..').FlexMode): boolean;
|
|
312
314
|
};
|
|
313
315
|
wrap: {
|
|
314
316
|
type: BooleanConstructor;
|
|
315
|
-
default: boolean;
|
|
316
317
|
};
|
|
317
318
|
gap: {
|
|
318
|
-
type: (
|
|
319
|
+
type: PropType<import('../../../..').FlexGap>;
|
|
319
320
|
default: number;
|
|
320
|
-
validator(value:
|
|
321
|
+
validator(value: import('../../../..').FlexGap): boolean;
|
|
321
322
|
};
|
|
322
323
|
width: {
|
|
323
|
-
type: (
|
|
324
|
-
|
|
325
|
-
validator(value: string | number): boolean;
|
|
324
|
+
type: PropType<import('../../../..').FlexWidth>;
|
|
325
|
+
validator(value: import('../../../..').FlexWidth): boolean;
|
|
326
326
|
};
|
|
327
|
-
}>> & Readonly<{
|
|
327
|
+
}>> & Readonly<{
|
|
328
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
329
|
+
onResize?: ((size: {
|
|
330
|
+
width: number;
|
|
331
|
+
height: number;
|
|
332
|
+
}) => any) | undefined;
|
|
333
|
+
}>, "direction" | "x" | "y" | "gap" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
328
334
|
$slots: {
|
|
329
335
|
default?(_: {}): any;
|
|
330
336
|
};
|
|
@@ -1,118 +1,98 @@
|
|
|
1
|
+
import { AvatarPlacement, AvatarShape, AvatarStatus } from './props';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
3
|
size: {
|
|
3
|
-
type: PropType<
|
|
4
|
+
type: PropType<import('./props').AvatarSize>;
|
|
4
5
|
default: number;
|
|
5
|
-
|
|
6
|
-
validator(value: string | number): boolean;
|
|
6
|
+
validator(value: import('./props').AvatarSize): boolean;
|
|
7
7
|
};
|
|
8
8
|
loading: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
|
-
description: string;
|
|
12
11
|
};
|
|
13
12
|
shape: {
|
|
14
|
-
type: PropType<
|
|
13
|
+
type: PropType<AvatarShape>;
|
|
15
14
|
default: string;
|
|
16
|
-
|
|
17
|
-
validator(value: "circle" | "square" | "sharp"): boolean;
|
|
15
|
+
validator(value: AvatarShape): boolean;
|
|
18
16
|
};
|
|
19
17
|
src: {
|
|
20
18
|
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
description: string;
|
|
23
19
|
};
|
|
24
20
|
alt: {
|
|
25
21
|
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
description: string;
|
|
28
22
|
validator(value: string): boolean;
|
|
29
23
|
};
|
|
30
24
|
status: {
|
|
31
|
-
type: PropType<
|
|
32
|
-
|
|
33
|
-
description: string;
|
|
34
|
-
validator(value: "offline" | "online" | "processing" | "away" | "busy"): boolean;
|
|
25
|
+
type: PropType<AvatarStatus>;
|
|
26
|
+
validator(value: AvatarStatus): boolean;
|
|
35
27
|
};
|
|
36
28
|
objectFit: {
|
|
37
|
-
type: PropType<import(
|
|
29
|
+
type: PropType<import("csstype").Property.ObjectFit>;
|
|
38
30
|
default: string;
|
|
39
|
-
|
|
40
|
-
validator: (value: import('../..').ObjectFit) => boolean;
|
|
31
|
+
validator(value: import("csstype").Property.ObjectFit): boolean;
|
|
41
32
|
};
|
|
42
33
|
objectPosition: {
|
|
43
|
-
type:
|
|
34
|
+
type: PropType<import("csstype").Property.ObjectPosition>;
|
|
44
35
|
default: string;
|
|
45
|
-
|
|
46
|
-
validator: (value: string) => boolean;
|
|
36
|
+
validator(value: import("csstype").Property.ObjectPosition): boolean;
|
|
47
37
|
};
|
|
48
38
|
statusPlacement: {
|
|
49
|
-
type: PropType<
|
|
39
|
+
type: PropType<AvatarPlacement>;
|
|
50
40
|
default: string;
|
|
51
|
-
|
|
52
|
-
validator(value: "top-left" | "top-right" | "bottom-left" | "bottom-right"): boolean;
|
|
41
|
+
validator(value: AvatarPlacement): boolean;
|
|
53
42
|
};
|
|
54
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
error: () => any;
|
|
45
|
+
load: () => any;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
55
47
|
size: {
|
|
56
|
-
type: PropType<
|
|
48
|
+
type: PropType<import('./props').AvatarSize>;
|
|
57
49
|
default: number;
|
|
58
|
-
|
|
59
|
-
validator(value: string | number): boolean;
|
|
50
|
+
validator(value: import('./props').AvatarSize): boolean;
|
|
60
51
|
};
|
|
61
52
|
loading: {
|
|
62
53
|
type: BooleanConstructor;
|
|
63
54
|
default: boolean;
|
|
64
|
-
description: string;
|
|
65
55
|
};
|
|
66
56
|
shape: {
|
|
67
|
-
type: PropType<
|
|
57
|
+
type: PropType<AvatarShape>;
|
|
68
58
|
default: string;
|
|
69
|
-
|
|
70
|
-
validator(value: "circle" | "square" | "sharp"): boolean;
|
|
59
|
+
validator(value: AvatarShape): boolean;
|
|
71
60
|
};
|
|
72
61
|
src: {
|
|
73
62
|
type: StringConstructor;
|
|
74
|
-
default: string;
|
|
75
|
-
description: string;
|
|
76
63
|
};
|
|
77
64
|
alt: {
|
|
78
65
|
type: StringConstructor;
|
|
79
|
-
default: string;
|
|
80
|
-
description: string;
|
|
81
66
|
validator(value: string): boolean;
|
|
82
67
|
};
|
|
83
68
|
status: {
|
|
84
|
-
type: PropType<
|
|
85
|
-
|
|
86
|
-
description: string;
|
|
87
|
-
validator(value: "offline" | "online" | "processing" | "away" | "busy"): boolean;
|
|
69
|
+
type: PropType<AvatarStatus>;
|
|
70
|
+
validator(value: AvatarStatus): boolean;
|
|
88
71
|
};
|
|
89
72
|
objectFit: {
|
|
90
|
-
type: PropType<import(
|
|
73
|
+
type: PropType<import("csstype").Property.ObjectFit>;
|
|
91
74
|
default: string;
|
|
92
|
-
|
|
93
|
-
validator: (value: import('../..').ObjectFit) => boolean;
|
|
75
|
+
validator(value: import("csstype").Property.ObjectFit): boolean;
|
|
94
76
|
};
|
|
95
77
|
objectPosition: {
|
|
96
|
-
type:
|
|
78
|
+
type: PropType<import("csstype").Property.ObjectPosition>;
|
|
97
79
|
default: string;
|
|
98
|
-
|
|
99
|
-
validator: (value: string) => boolean;
|
|
80
|
+
validator(value: import("csstype").Property.ObjectPosition): boolean;
|
|
100
81
|
};
|
|
101
82
|
statusPlacement: {
|
|
102
|
-
type: PropType<
|
|
83
|
+
type: PropType<AvatarPlacement>;
|
|
103
84
|
default: string;
|
|
104
|
-
|
|
105
|
-
validator(value: "top-left" | "top-right" | "bottom-left" | "bottom-right"): boolean;
|
|
85
|
+
validator(value: AvatarPlacement): boolean;
|
|
106
86
|
};
|
|
107
|
-
}>> & Readonly<{
|
|
108
|
-
|
|
87
|
+
}>> & Readonly<{
|
|
88
|
+
onError?: (() => any) | undefined;
|
|
89
|
+
onLoad?: (() => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
size: import('./props').AvatarSize;
|
|
109
92
|
loading: boolean;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
objectPosition: string;
|
|
115
|
-
shape: "circle" | "square" | "sharp";
|
|
116
|
-
statusPlacement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
93
|
+
objectFit: import("csstype").Property.ObjectFit;
|
|
94
|
+
objectPosition: import("csstype").Property.ObjectPosition<0 | (string & {})>;
|
|
95
|
+
shape: AvatarShape;
|
|
96
|
+
statusPlacement: AvatarPlacement;
|
|
117
97
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
118
98
|
export default _default;
|
|
@@ -1,62 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
type AvatarPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
|
-
type AvatarStatus = 'online' | 'processing' | 'away' | 'offline' | 'busy';
|
|
5
|
-
type AvatarShape = 'circle' | 'square' | 'sharp';
|
|
6
|
-
type AvatarSize = number | string;
|
|
3
|
+
export type AvatarPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
|
+
export type AvatarStatus = 'online' | 'processing' | 'away' | 'offline' | 'busy';
|
|
5
|
+
export type AvatarShape = 'circle' | 'square' | 'sharp';
|
|
6
|
+
export type AvatarSize = number | string;
|
|
7
7
|
export declare const avatarProps: {
|
|
8
8
|
size: {
|
|
9
9
|
type: PropType<AvatarSize>;
|
|
10
10
|
default: number;
|
|
11
|
-
description: string;
|
|
12
11
|
validator(value: AvatarSize): boolean;
|
|
13
12
|
};
|
|
14
13
|
loading: {
|
|
15
14
|
type: BooleanConstructor;
|
|
16
15
|
default: boolean;
|
|
17
|
-
description: string;
|
|
18
16
|
};
|
|
19
17
|
shape: {
|
|
20
18
|
type: PropType<AvatarShape>;
|
|
21
19
|
default: string;
|
|
22
|
-
description: string;
|
|
23
20
|
validator(value: AvatarShape): boolean;
|
|
24
21
|
};
|
|
25
22
|
src: {
|
|
26
23
|
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
description: string;
|
|
29
24
|
};
|
|
30
25
|
alt: {
|
|
31
26
|
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
description: string;
|
|
34
27
|
validator(value: string): boolean;
|
|
35
28
|
};
|
|
36
29
|
status: {
|
|
37
|
-
type: PropType<AvatarStatus
|
|
38
|
-
default: undefined;
|
|
39
|
-
description: string;
|
|
30
|
+
type: PropType<AvatarStatus>;
|
|
40
31
|
validator(value: AvatarStatus): boolean;
|
|
41
32
|
};
|
|
42
33
|
objectFit: {
|
|
43
|
-
type: PropType<ObjectFit>;
|
|
34
|
+
type: PropType<Property.ObjectFit>;
|
|
44
35
|
default: string;
|
|
45
|
-
|
|
46
|
-
validator: (value: ObjectFit) => boolean;
|
|
36
|
+
validator(value: Property.ObjectFit): boolean;
|
|
47
37
|
};
|
|
48
38
|
objectPosition: {
|
|
49
|
-
type:
|
|
39
|
+
type: PropType<Property.ObjectPosition>;
|
|
50
40
|
default: string;
|
|
51
|
-
|
|
52
|
-
validator: (value: string) => boolean;
|
|
41
|
+
validator(value: Property.ObjectPosition): boolean;
|
|
53
42
|
};
|
|
54
43
|
statusPlacement: {
|
|
55
44
|
type: PropType<AvatarPlacement>;
|
|
56
45
|
default: string;
|
|
57
|
-
description: string;
|
|
58
46
|
validator(value: AvatarPlacement): boolean;
|
|
59
47
|
};
|
|
60
48
|
};
|
|
61
49
|
export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
|
|
62
|
-
export {};
|
|
@@ -11,76 +11,65 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
11
11
|
text: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
|
-
description: string;
|
|
15
14
|
};
|
|
16
15
|
offset: {
|
|
17
|
-
type:
|
|
18
|
-
default: () =>
|
|
19
|
-
|
|
16
|
+
type: PropType<import('./props').BadgeOffset>;
|
|
17
|
+
default: () => import('./props').BadgeOffset;
|
|
18
|
+
validator(value: import('./props').BadgeOffset): boolean;
|
|
20
19
|
};
|
|
21
20
|
processing: {
|
|
22
21
|
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
description: string;
|
|
25
22
|
};
|
|
26
23
|
max: {
|
|
27
|
-
type:
|
|
24
|
+
type: PropType<number | string>;
|
|
28
25
|
default: number;
|
|
29
|
-
|
|
30
|
-
validator: (value: string | number) => boolean;
|
|
26
|
+
validator(value: string | number): boolean;
|
|
31
27
|
};
|
|
32
28
|
color: {
|
|
33
|
-
type:
|
|
29
|
+
type: PropType<import('./props').BadgeColor>;
|
|
34
30
|
default: string;
|
|
35
|
-
|
|
36
|
-
validator: (value: string) => boolean;
|
|
31
|
+
validator(value: import('./props').BadgeColor): boolean;
|
|
37
32
|
};
|
|
38
33
|
value: {
|
|
39
|
-
type: (
|
|
40
|
-
|
|
41
|
-
description: string;
|
|
42
|
-
validator: (value: string | number) => boolean;
|
|
34
|
+
type: PropType<import('./props').BadgeValue>;
|
|
35
|
+
validator(value: import('./props').BadgeValue): boolean;
|
|
43
36
|
};
|
|
44
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
click: (event: MouseEvent) => any;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
45
40
|
text: {
|
|
46
41
|
type: StringConstructor;
|
|
47
42
|
default: string;
|
|
48
|
-
description: string;
|
|
49
43
|
};
|
|
50
44
|
offset: {
|
|
51
|
-
type:
|
|
52
|
-
default: () =>
|
|
53
|
-
|
|
45
|
+
type: PropType<import('./props').BadgeOffset>;
|
|
46
|
+
default: () => import('./props').BadgeOffset;
|
|
47
|
+
validator(value: import('./props').BadgeOffset): boolean;
|
|
54
48
|
};
|
|
55
49
|
processing: {
|
|
56
50
|
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
description: string;
|
|
59
51
|
};
|
|
60
52
|
max: {
|
|
61
|
-
type:
|
|
53
|
+
type: PropType<number | string>;
|
|
62
54
|
default: number;
|
|
63
|
-
|
|
64
|
-
validator: (value: string | number) => boolean;
|
|
55
|
+
validator(value: string | number): boolean;
|
|
65
56
|
};
|
|
66
57
|
color: {
|
|
67
|
-
type:
|
|
58
|
+
type: PropType<import('./props').BadgeColor>;
|
|
68
59
|
default: string;
|
|
69
|
-
|
|
70
|
-
validator: (value: string) => boolean;
|
|
60
|
+
validator(value: import('./props').BadgeColor): boolean;
|
|
71
61
|
};
|
|
72
62
|
value: {
|
|
73
|
-
type: (
|
|
74
|
-
|
|
75
|
-
description: string;
|
|
76
|
-
validator: (value: string | number) => boolean;
|
|
63
|
+
type: PropType<import('./props').BadgeValue>;
|
|
64
|
+
validator(value: import('./props').BadgeValue): boolean;
|
|
77
65
|
};
|
|
78
|
-
}>> & Readonly<{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
}>> & Readonly<{
|
|
67
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
color: import('./props').BadgeColor;
|
|
82
70
|
max: string | number;
|
|
83
|
-
|
|
71
|
+
text: string;
|
|
72
|
+
offset: import('./props').BadgeOffset;
|
|
84
73
|
processing: boolean;
|
|
85
74
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
86
75
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export type BadgeColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'black' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info' | 'primary';
|
|
3
|
+
export type BadgeValue = string | number;
|
|
4
|
+
export type BadgeOffset = [number, number];
|
|
3
5
|
export declare const badgeProps: {
|
|
4
6
|
text: {
|
|
5
7
|
type: StringConstructor;
|
|
6
8
|
default: string;
|
|
7
|
-
description: string;
|
|
8
9
|
};
|
|
9
10
|
offset: {
|
|
10
|
-
type:
|
|
11
|
-
default: () =>
|
|
12
|
-
|
|
11
|
+
type: PropType<BadgeOffset>;
|
|
12
|
+
default: () => BadgeOffset;
|
|
13
|
+
validator(value: BadgeOffset): boolean;
|
|
13
14
|
};
|
|
14
15
|
processing: {
|
|
15
16
|
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
description: string;
|
|
18
17
|
};
|
|
19
18
|
max: {
|
|
20
|
-
type:
|
|
19
|
+
type: PropType<number | string>;
|
|
21
20
|
default: number;
|
|
22
|
-
|
|
23
|
-
validator: (value: string | number) => boolean;
|
|
21
|
+
validator(value: string | number): boolean;
|
|
24
22
|
};
|
|
25
23
|
color: {
|
|
26
|
-
type:
|
|
24
|
+
type: PropType<BadgeColor>;
|
|
27
25
|
default: string;
|
|
28
|
-
|
|
29
|
-
validator: (value: string) => boolean;
|
|
26
|
+
validator(value: BadgeColor): boolean;
|
|
30
27
|
};
|
|
31
28
|
value: {
|
|
32
|
-
type:
|
|
33
|
-
|
|
34
|
-
description: string;
|
|
35
|
-
validator: (value: string | number) => boolean;
|
|
29
|
+
type: PropType<BadgeValue>;
|
|
30
|
+
validator(value: BadgeValue): boolean;
|
|
36
31
|
};
|
|
37
32
|
};
|
|
38
33
|
export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
|