@ug666/ui-vue 0.1.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/accordion.vue.d.ts +108 -0
- package/dist/components/accordion.vue.d.ts.map +1 -0
- package/dist/components/alert.vue.d.ts +41 -0
- package/dist/components/alert.vue.d.ts.map +1 -0
- package/dist/components/avatar-group.vue.d.ts +26 -0
- package/dist/components/avatar-group.vue.d.ts.map +1 -0
- package/dist/components/avatar.vue.d.ts +84 -0
- package/dist/components/avatar.vue.d.ts.map +1 -0
- package/dist/components/badge.vue.d.ts +28 -0
- package/dist/components/badge.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb.vue.d.ts +75 -0
- package/dist/components/breadcrumb.vue.d.ts.map +1 -0
- package/dist/components/button.vue.d.ts +48 -0
- package/dist/components/button.vue.d.ts.map +1 -0
- package/dist/components/card.vue.d.ts +63 -0
- package/dist/components/card.vue.d.ts.map +1 -0
- package/dist/components/checkbox.vue.d.ts +42 -0
- package/dist/components/checkbox.vue.d.ts.map +1 -0
- package/dist/components/context/accordion-context.d.ts +22 -0
- package/dist/components/context/accordion-context.d.ts.map +1 -0
- package/dist/components/context/avatar-context.d.ts +8 -0
- package/dist/components/context/avatar-context.d.ts.map +1 -0
- package/dist/components/context/context-menu-context.d.ts +17 -0
- package/dist/components/context/context-menu-context.d.ts.map +1 -0
- package/dist/components/context/drawer-context.d.ts +13 -0
- package/dist/components/context/drawer-context.d.ts.map +1 -0
- package/dist/components/context/dropdown-context.d.ts +13 -0
- package/dist/components/context/dropdown-context.d.ts.map +1 -0
- package/dist/components/context/form-context.d.ts +11 -0
- package/dist/components/context/form-context.d.ts.map +1 -0
- package/dist/components/context/navigation-menu-context.d.ts +14 -0
- package/dist/components/context/navigation-menu-context.d.ts.map +1 -0
- package/dist/components/context/popover-context.d.ts +17 -0
- package/dist/components/context/popover-context.d.ts.map +1 -0
- package/dist/components/context/radio-context.d.ts +13 -0
- package/dist/components/context/radio-context.d.ts.map +1 -0
- package/dist/components/context/tabs-context.d.ts +9 -0
- package/dist/components/context/tabs-context.d.ts.map +1 -0
- package/dist/components/context/tooltip-context.d.ts +13 -0
- package/dist/components/context/tooltip-context.d.ts.map +1 -0
- package/dist/components/context-menu.vue.d.ts +116 -0
- package/dist/components/context-menu.vue.d.ts.map +1 -0
- package/dist/components/descriptions.vue.d.ts +77 -0
- package/dist/components/descriptions.vue.d.ts.map +1 -0
- package/dist/components/dialog.vue.d.ts +37 -0
- package/dist/components/dialog.vue.d.ts.map +1 -0
- package/dist/components/drawer.vue.d.ts +140 -0
- package/dist/components/drawer.vue.d.ts.map +1 -0
- package/dist/components/dropdown.vue.d.ts +137 -0
- package/dist/components/dropdown.vue.d.ts.map +1 -0
- package/dist/components/empty-state.vue.d.ts +37 -0
- package/dist/components/empty-state.vue.d.ts.map +1 -0
- package/dist/components/form.vue.d.ts +167 -0
- package/dist/components/form.vue.d.ts.map +1 -0
- package/dist/components/input.vue.d.ts +56 -0
- package/dist/components/input.vue.d.ts.map +1 -0
- package/dist/components/label.vue.d.ts +30 -0
- package/dist/components/label.vue.d.ts.map +1 -0
- package/dist/components/modal.vue.d.ts +53 -0
- package/dist/components/modal.vue.d.ts.map +1 -0
- package/dist/components/navigation-menu.vue.d.ts +112 -0
- package/dist/components/navigation-menu.vue.d.ts.map +1 -0
- package/dist/components/number-input.vue.d.ts +38 -0
- package/dist/components/number-input.vue.d.ts.map +1 -0
- package/dist/components/otp-input.vue.d.ts +25 -0
- package/dist/components/otp-input.vue.d.ts.map +1 -0
- package/dist/components/pagination.vue.d.ts +21 -0
- package/dist/components/pagination.vue.d.ts.map +1 -0
- package/dist/components/popover.vue.d.ts +100 -0
- package/dist/components/popover.vue.d.ts.map +1 -0
- package/dist/components/progress.vue.d.ts +20 -0
- package/dist/components/progress.vue.d.ts.map +1 -0
- package/dist/components/radio-group.vue.d.ts +41 -0
- package/dist/components/radio-group.vue.d.ts.map +1 -0
- package/dist/components/radio.vue.d.ts +28 -0
- package/dist/components/radio.vue.d.ts.map +1 -0
- package/dist/components/select.vue.d.ts +57 -0
- package/dist/components/select.vue.d.ts.map +1 -0
- package/dist/components/separator.vue.d.ts +14 -0
- package/dist/components/separator.vue.d.ts.map +1 -0
- package/dist/components/sheet.vue.d.ts +54 -0
- package/dist/components/sheet.vue.d.ts.map +1 -0
- package/dist/components/sidebar.vue.d.ts +40 -0
- package/dist/components/sidebar.vue.d.ts.map +1 -0
- package/dist/components/skeleton.vue.d.ts +13 -0
- package/dist/components/skeleton.vue.d.ts.map +1 -0
- package/dist/components/slider.vue.d.ts +34 -0
- package/dist/components/slider.vue.d.ts.map +1 -0
- package/dist/components/spinner.vue.d.ts +16 -0
- package/dist/components/spinner.vue.d.ts.map +1 -0
- package/dist/components/statistic.vue.d.ts +47 -0
- package/dist/components/statistic.vue.d.ts.map +1 -0
- package/dist/components/steps.vue.d.ts +31 -0
- package/dist/components/steps.vue.d.ts.map +1 -0
- package/dist/components/switch.vue.d.ts +32 -0
- package/dist/components/switch.vue.d.ts.map +1 -0
- package/dist/components/table.vue.d.ts +63 -0
- package/dist/components/table.vue.d.ts.map +1 -0
- package/dist/components/tabs.vue.d.ts +114 -0
- package/dist/components/tabs.vue.d.ts.map +1 -0
- package/dist/components/tag.vue.d.ts +45 -0
- package/dist/components/tag.vue.d.ts.map +1 -0
- package/dist/components/textarea.vue.d.ts +54 -0
- package/dist/components/textarea.vue.d.ts.map +1 -0
- package/dist/components/toast-state.d.ts +29 -0
- package/dist/components/toast-state.d.ts.map +1 -0
- package/dist/components/toast.vue.d.ts +12 -0
- package/dist/components/toast.vue.d.ts.map +1 -0
- package/dist/components/tooltip.vue.d.ts +63 -0
- package/dist/components/tooltip.vue.d.ts.map +1 -0
- package/dist/composables/index.cjs +1 -0
- package/dist/composables/index.d.ts +21 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/index.js +2 -0
- package/dist/composables/use-click-outside.d.ts +17 -0
- package/dist/composables/use-click-outside.d.ts.map +1 -0
- package/dist/composables/use-copy-to-clipboard.d.ts +21 -0
- package/dist/composables/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/composables/use-debounce.d.ts +17 -0
- package/dist/composables/use-debounce.d.ts.map +1 -0
- package/dist/composables/use-event-listener.d.ts +25 -0
- package/dist/composables/use-event-listener.d.ts.map +1 -0
- package/dist/composables/use-form.d.ts +31 -0
- package/dist/composables/use-form.d.ts.map +1 -0
- package/dist/composables/use-hotkeys.d.ts +27 -0
- package/dist/composables/use-hotkeys.d.ts.map +1 -0
- package/dist/composables/use-interval.d.ts +20 -0
- package/dist/composables/use-interval.d.ts.map +1 -0
- package/dist/composables/use-local-storage.d.ts +17 -0
- package/dist/composables/use-local-storage.d.ts.map +1 -0
- package/dist/composables/use-media-query.d.ts +14 -0
- package/dist/composables/use-media-query.d.ts.map +1 -0
- package/dist/composables/use-mounted.d.ts +19 -0
- package/dist/composables/use-mounted.d.ts.map +1 -0
- package/dist/composables/use-pagination.d.ts +36 -0
- package/dist/composables/use-pagination.d.ts.map +1 -0
- package/dist/composables/use-timeout.d.ts +20 -0
- package/dist/composables/use-timeout.d.ts.map +1 -0
- package/dist/composables/use-toast.d.ts +16 -0
- package/dist/composables/use-toast.d.ts.map +1 -0
- package/dist/composables/use-toggle.d.ts +25 -0
- package/dist/composables/use-toggle.d.ts.map +1 -0
- package/dist/composables-BwdwEG7n.js +296 -0
- package/dist/composables-BwdwEG7n.js.map +1 -0
- package/dist/composables-Cxcf-3ov.cjs +2 -0
- package/dist/composables-Cxcf-3ov.cjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2941 -0
- package/dist/index.js.map +1 -0
- package/dist/tokens.css +9 -0
- package/package.json +51 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { PopoverAlign, PopoverSide } from './context/popover-context';
|
|
2
|
+
export declare const UPopoverTrigger: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/** 额外 CSS 类名 */
|
|
4
|
+
class: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
click: (_event: MouseEvent) => true;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
/** 额外 CSS 类名 */
|
|
14
|
+
class: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
}>> & Readonly<{
|
|
19
|
+
onClick?: ((_event: MouseEvent) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
class: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export declare const UPopoverContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
24
|
+
/** 浮层方向,默认 bottom */
|
|
25
|
+
side: {
|
|
26
|
+
type: () => PopoverSide;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/** 对齐方式,默认 center */
|
|
30
|
+
align: {
|
|
31
|
+
type: () => PopoverAlign;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
/** 与触发器的间距,默认 4 */
|
|
35
|
+
sideOffset: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
/** 额外 CSS 类名 */
|
|
40
|
+
class: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
/** 浮层方向,默认 bottom */
|
|
48
|
+
side: {
|
|
49
|
+
type: () => PopoverSide;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** 对齐方式,默认 center */
|
|
53
|
+
align: {
|
|
54
|
+
type: () => PopoverAlign;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/** 与触发器的间距,默认 4 */
|
|
58
|
+
sideOffset: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
/** 额外 CSS 类名 */
|
|
63
|
+
class: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, {
|
|
68
|
+
class: string;
|
|
69
|
+
side: PopoverSide;
|
|
70
|
+
align: PopoverAlign;
|
|
71
|
+
sideOffset: number;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
74
|
+
open?: boolean;
|
|
75
|
+
} & {
|
|
76
|
+
/** 根容器额外 CSS 类名 */
|
|
77
|
+
class?: string;
|
|
78
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
openChange: (open: boolean) => any;
|
|
80
|
+
"update:open": (value: boolean) => any;
|
|
81
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
82
|
+
open?: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
/** 根容器额外 CSS 类名 */
|
|
85
|
+
class?: string;
|
|
86
|
+
}> & Readonly<{
|
|
87
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
88
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
class: string;
|
|
91
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
92
|
+
default?(_: {}): any;
|
|
93
|
+
}>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=popover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.vue.d.ts","sourceRoot":"","sources":["../../src/components/popover.vue"],"names":[],"mappings":"AA0QA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAmD1E,eAAO,MAAM,eAAe;IAGxB,gBAAgB;;;;;;;;oBAOA,UAAU;;IAP1B,gBAAgB;;;;;;;;;4EAiClB,CAAA;AAEF,eAAO,MAAM,eAAe;IAGxB,qBAAqB;;cAEH,MAAM,WAAW;;;IAGnC,qBAAqB;;cAEH,MAAM,YAAY;;;IAGpC,mBAAmB;;;;;IAKnB,gBAAgB;;;;;;;;IAfhB,qBAAqB;;cAEH,MAAM,WAAW;;;IAGnC,qBAAqB;;cAEH,MAAM,YAAY;;;IAGpC,mBAAmB;;;;;IAKnB,gBAAgB;;;;;;;;;;4EAoElB,CACD;;WAiDQ,OAAO;;IA1Cd,mBAAmB;YACX,MAAM;;;;;WAyCP,OAAO;;IA1Cd,mBAAmB;YACX,MAAM;;;;;WAAN,MAAM;;qBAyDa,GAAG;;AAhEhC,wBAoGK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** 当前进度值 */
|
|
3
|
+
value: number;
|
|
4
|
+
/** 最大值 */
|
|
5
|
+
max?: number;
|
|
6
|
+
/** 是否显示百分比文本 */
|
|
7
|
+
showLabel?: boolean;
|
|
8
|
+
/** 进度条颜色类名 */
|
|
9
|
+
color?: string;
|
|
10
|
+
/** 外层容器额外 CSS 类名 */
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
class: string;
|
|
15
|
+
color: string;
|
|
16
|
+
max: number;
|
|
17
|
+
showLabel: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=progress.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.vue.d.ts","sourceRoot":"","sources":["../../src/components/progress.vue"],"names":[],"mappings":"AAKA;AAqEA,UAAU,KAAK;IACb,YAAY;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gBAAgB;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;WADS,MAAM;WAFN,MAAM;SAJR,MAAM;eAEA,OAAO;;AAuFrB,wBAQG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** 当前选中值,配合 v-model 使用 */
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** 初始选中值(非受控) */
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** 是否整组禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 表单 name,共享给子 URadio */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** 排列方向,默认 vertical */
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
/** 额外 class */
|
|
13
|
+
class?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
change: (value: string) => any;
|
|
26
|
+
"update:modelValue": (value: string) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
+
onChange?: ((value: string) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
orientation: "horizontal" | "vertical";
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=radio-group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.vue.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.vue"],"names":[],"mappings":"AAKA;AAqGA,UAAU,KAAK;IACb,0BAA0B;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uBAAuB;IACvB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAkDD,iBAAS,cAAc;WAwBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;cAlGR,OAAO;iBAIJ,YAAY,GAAG,UAAU;wFAuGvC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type RadioSize = 'sm' | 'default' | 'lg';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 单选框的值(必需) */
|
|
4
|
+
value: string;
|
|
5
|
+
/** 是否选中(独立使用时受控) */
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
/** 是否禁用 */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** 尺寸变体 */
|
|
10
|
+
size?: RadioSize;
|
|
11
|
+
/** 右侧标签文案 */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** 表单 name(被 URadioGroup 包裹时由 Group 覆盖) */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** 额外 class */
|
|
16
|
+
class?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
change: (value: string) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
onChange?: ((value: string) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
size: RadioSize;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
checked: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=radio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.vue.d.ts","sourceRoot":"","sources":["../../src/components/radio.vue"],"names":[],"mappings":"AAKA;AA8KA,KAAK,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAExC,UAAU,KAAK;IACb,gBAAgB;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW;IACX,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;;;;;UAPQ,SAAS;cAFL,OAAO;aAFR,OAAO;;AA0LnB,wBAQG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
interface SelectOption {
|
|
2
|
+
/** 选项显示文本 */
|
|
3
|
+
label: string;
|
|
4
|
+
/** 选项值 */
|
|
5
|
+
value: string | number;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
/** 标签文本 */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** 错误提示文本 */
|
|
11
|
+
error?: string;
|
|
12
|
+
/** 帮助说明文本 */
|
|
13
|
+
helperText?: string;
|
|
14
|
+
/** 选项列表 */
|
|
15
|
+
options: SelectOption[];
|
|
16
|
+
/** 占位文本 */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** 选择器 id,不传则自动生成 */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** 是否禁用 */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** 额外 CSS 类名 */
|
|
23
|
+
class?: string;
|
|
24
|
+
}
|
|
25
|
+
type __VLS_Props = Props;
|
|
26
|
+
declare function focus(): void;
|
|
27
|
+
declare function blur(): void;
|
|
28
|
+
type __VLS_PublicProps = {
|
|
29
|
+
modelValue?: string | number | undefined;
|
|
30
|
+
} & __VLS_Props;
|
|
31
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
32
|
+
focus: typeof focus;
|
|
33
|
+
blur: typeof blur;
|
|
34
|
+
el: import('vue').Ref<HTMLSelectElement | null, HTMLSelectElement | null>;
|
|
35
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
blur: (event: FocusEvent) => any;
|
|
37
|
+
focus: (event: FocusEvent) => any;
|
|
38
|
+
change: (event: Event) => any;
|
|
39
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
40
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
41
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
42
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
43
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
44
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
class: string;
|
|
48
|
+
label: string;
|
|
49
|
+
id: string;
|
|
50
|
+
error: string;
|
|
51
|
+
helperText: string;
|
|
52
|
+
placeholder: string;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
54
|
+
selectRef: HTMLSelectElement;
|
|
55
|
+
}, any>;
|
|
56
|
+
export default _default;
|
|
57
|
+
//# sourceMappingURL=select.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.vue.d.ts","sourceRoot":"","sources":["../../src/components/select.vue"],"names":[],"mappings":"AAKA;AA0JA,UAAU,YAAY;IACpB,aAAa;IACb,KAAK,EAAE,MAAM,CAAA;IACb,UAAU;IACV,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,UAAU,KAAK;IACb,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW;IACX,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,WAAW;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,KAAK,WAAW,GAAG,KAAK,CAAC;AAwDzB,iBAAS,KAAK,SAEb;AAED,iBAAS,IAAI,SAEZ;AAyBD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACxC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;cA9FH,OAAO;WAEV,MAAM;WAdN,MAAM;QAUT,MAAM;WARH,MAAM;gBAED,MAAM;iBAIL,MAAM;;;;AAmMtB,wBAUG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** 分割线方向 */
|
|
2
|
+
type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** 方向,默认 horizontal */
|
|
5
|
+
orientation?: SeparatorOrientation;
|
|
6
|
+
/** 额外 CSS 类名 */
|
|
7
|
+
class?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
class: string;
|
|
11
|
+
orientation: SeparatorOrientation;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=separator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.vue.d.ts","sourceRoot":"","sources":["../../src/components/separator.vue"],"names":[],"mappings":"AA0DA,YAAY;AACZ,KAAK,oBAAoB,GAAG,YAAY,GAAG,UAAU,CAAA;AAQrD,UAAU,KAAK;IACb,uBAAuB;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;WADS,MAAM;iBAFA,oBAAoB;;AAyDpC,wBAQG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
type SheetSide = 'left' | 'right';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 抽屉方向 */
|
|
4
|
+
side?: SheetSide;
|
|
5
|
+
/** 抽屉标题 */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** 是否点击遮罩关闭 */
|
|
8
|
+
closeOnOverlay?: boolean;
|
|
9
|
+
/** 是否按下 ESC 关闭 */
|
|
10
|
+
closeOnEsc?: boolean;
|
|
11
|
+
/** 是否显示关闭按钮 */
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
/** 抽屉面板额外 CSS 类名 */
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = Props;
|
|
17
|
+
type __VLS_PublicProps = {
|
|
18
|
+
'open'?: boolean;
|
|
19
|
+
} & __VLS_Props;
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
header?(_: {}): any;
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
footer?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: any;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
close: () => any;
|
|
33
|
+
openChange: (open: boolean) => any;
|
|
34
|
+
"update:open": (value: boolean) => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
onClose?: (() => any) | undefined;
|
|
37
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
38
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
class: string;
|
|
41
|
+
title: string;
|
|
42
|
+
closeOnOverlay: boolean;
|
|
43
|
+
closeOnEsc: boolean;
|
|
44
|
+
showCloseButton: boolean;
|
|
45
|
+
side: SheetSide;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=sheet.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.vue.d.ts","sourceRoot":"","sources":["../../src/components/sheet.vue"],"names":[],"mappings":"AAKA;AAuJA,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAEjC,UAAU,KAAK;IACb,WAAW;IACX,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe;IACf,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe;IACf,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,KAAK,WAAW,GAAG,KAAK,CAAC;AAwFzB,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAZtB,GAAG;yBACD,GAAG;wBACJ,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;WAvNX,MAAM;WARN,MAAM;oBAEG,OAAO;gBAEX,OAAO;qBAEF,OAAO;UARlB,SAAS;6EA0OhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
interface SidebarItem {
|
|
3
|
+
/** 菜单显示文本 */
|
|
4
|
+
label: string;
|
|
5
|
+
/** 菜单跳转链接 */
|
|
6
|
+
href: string;
|
|
7
|
+
/** 菜单图标组件 */
|
|
8
|
+
icon: Component;
|
|
9
|
+
/** 当前项是否激活 */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
/** 导航菜单项列表 */
|
|
14
|
+
items: SidebarItem[];
|
|
15
|
+
/** 是否折叠,仅显示图标 */
|
|
16
|
+
collapsed?: boolean;
|
|
17
|
+
/** 容器额外 CSS 类名 */
|
|
18
|
+
class?: string;
|
|
19
|
+
}
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
footer?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
30
|
+
class: string;
|
|
31
|
+
collapsed: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=sidebar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.vue"],"names":[],"mappings":"AAKA;AA+EA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAO9C,UAAU,WAAW;IACnB,aAAa;IACb,KAAK,EAAE,MAAM,CAAA;IACb,aAAa;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa;IACb,IAAI,EAAE,SAAS,CAAA;IACf,cAAc;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,KAAK;IACb,cAAc;IACd,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAsBD,iBAAS,cAAc;WAkET,OAAO,IAA6B;;wBAVtB,GAAG;;;;EAe9B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA1GX,MAAM;eAFF,OAAO;qFAoHnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 骨架屏样式变体 */
|
|
4
|
+
variant?: SkeletonVariant;
|
|
5
|
+
/** 额外 CSS 类名 */
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
variant: SkeletonVariant;
|
|
10
|
+
class: string;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=skeleton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.vue"],"names":[],"mappings":"AAKA;AAsDA,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;AAEjD,UAAU,KAAK;IACb,cAAc;IACd,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;aAHW,eAAe;WAEjB,MAAM;;AAkEhB,wBAQG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** 当前值,配合 v-model 使用 */
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
/** 初始值(非受控,不使用 v-model 时生效) */
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
/** 最小值,默认 0 */
|
|
7
|
+
min?: number;
|
|
8
|
+
/** 最大值,默认 100 */
|
|
9
|
+
max?: number;
|
|
10
|
+
/** 步进值,默认 1 */
|
|
11
|
+
step?: number;
|
|
12
|
+
/** 是否禁用 */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** 是否在滑块上方显示当前值,默认 false */
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
/** 额外 class */
|
|
17
|
+
class?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (value: number) => any;
|
|
21
|
+
"update:modelValue": (value: number) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
23
|
+
onChange?: ((value: number) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
max: number;
|
|
28
|
+
min: number;
|
|
29
|
+
defaultValue: number;
|
|
30
|
+
step: number;
|
|
31
|
+
showValue: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
|
+
export default _default;
|
|
34
|
+
//# sourceMappingURL=slider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.vue.d.ts","sourceRoot":"","sources":["../../src/components/slider.vue"],"names":[],"mappings":"AAKA;AA2IA,UAAU,KAAK;IACb,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,iBAAiB;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;;;;;;;cALY,OAAO;SAJZ,MAAM;SAFN,MAAM;kBAFG,MAAM;UAMd,MAAM;eAID,OAAO;;AAoIrB,wBASG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 加载图标尺寸 */
|
|
4
|
+
size?: SpinnerSize;
|
|
5
|
+
/** 无障碍标签 */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** 额外 CSS 类名 */
|
|
8
|
+
class?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
+
size: SpinnerSize;
|
|
12
|
+
class: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=spinner.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.vue.d.ts","sourceRoot":"","sources":["../../src/components/spinner.vue"],"names":[],"mappings":"AAKA;AAqDA,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAErC,UAAU,KAAK;IACb,aAAa;IACb,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;UALQ,WAAW;WAIV,MAAM;WAFN,MAAM;;AA4EhB,wBAQG"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
type StatisticSize = 'sm' | 'default' | 'lg';
|
|
2
|
+
type StatisticTrend = 'up' | 'down' | 'flat';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** 标题文案 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 统计数值 */
|
|
7
|
+
value: number | string;
|
|
8
|
+
/** 小数位数,仅 value 为 number 时生效 */
|
|
9
|
+
precision?: number;
|
|
10
|
+
/** 数值后缀文字(也可通过 suffix slot 传入) */
|
|
11
|
+
suffix?: string;
|
|
12
|
+
/** 趋势方向 */
|
|
13
|
+
trend?: StatisticTrend;
|
|
14
|
+
/** 趋势说明文案,如 "+12%" */
|
|
15
|
+
change?: string;
|
|
16
|
+
/** 尺寸 */
|
|
17
|
+
size?: StatisticSize;
|
|
18
|
+
/** 额外 CSS 类名 */
|
|
19
|
+
class?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
prefix?(_: {}): any;
|
|
25
|
+
suffix?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: HTMLDivElement;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
|
+
size: StatisticSize;
|
|
33
|
+
class: string;
|
|
34
|
+
title: string;
|
|
35
|
+
change: string;
|
|
36
|
+
precision: number;
|
|
37
|
+
suffix: string;
|
|
38
|
+
trend: StatisticTrend;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=statistic.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistic.vue.d.ts","sourceRoot":"","sources":["../../src/components/statistic.vue"],"names":[],"mappings":"AAKA;AAgJA,KAAK,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAC5C,KAAK,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAA;AAE5C,UAAU,KAAK;IACb,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW;IACX,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS;IACT,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAgFD,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;wBAXtB,GAAG;wBACH,GAAG;;;;EAe9B;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAtLZ,aAAa;WAEZ,MAAM;WAdN,MAAM;YAUL,MAAM;eANH,MAAM;YAET,MAAM;WAEP,cAAc;wFAkMtB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 步骤条组件,展示流程进度
|
|
3
|
+
* @example
|
|
4
|
+
* <USteps :current="1" :items="[{ title: '填写信息' }, { title: '确认订单' }, { title: '完成支付' }]" />
|
|
5
|
+
*/
|
|
6
|
+
type StepsDirection = 'horizontal' | 'vertical';
|
|
7
|
+
type StepsStatus = 'process' | 'finish' | 'error';
|
|
8
|
+
interface StepItem {
|
|
9
|
+
/** 步骤标题 */
|
|
10
|
+
title: string;
|
|
11
|
+
/** 步骤描述(可选) */
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
/** 当前激活步骤下标(0-based) */
|
|
16
|
+
current: number;
|
|
17
|
+
/** 步骤列表 */
|
|
18
|
+
items: StepItem[];
|
|
19
|
+
/** 排列方向 */
|
|
20
|
+
direction?: StepsDirection;
|
|
21
|
+
/** 当前步骤状态 */
|
|
22
|
+
status?: StepsStatus;
|
|
23
|
+
/** 额外 CSS 类名 */
|
|
24
|
+
class?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
27
|
+
direction: StepsDirection;
|
|
28
|
+
status: StepsStatus;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=steps.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.vue.d.ts","sourceRoot":"","sources":["../../src/components/steps.vue"],"names":[],"mappings":"AA4JA;;;;GAIG;AAEH,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,CAAA;AAC/C,KAAK,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEjD,UAAU,QAAQ;IAChB,WAAW;IACX,KAAK,EAAE,MAAM,CAAA;IACb,eAAe;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,UAAU,KAAK;IACb,wBAAwB;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW;IACX,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,WAAW;IACX,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa;IACb,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;eALa,cAAc;YAEjB,WAAW;;AAuKtB,wBAQG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type LabelPlacement = 'left' | 'right';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 是否禁用 */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** 标签文本 */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** 标签位置 */
|
|
8
|
+
labelPlacement?: LabelPlacement;
|
|
9
|
+
/** 开关 id,不传则自动生成 */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** 额外 CSS 类名 */
|
|
12
|
+
class?: string;
|
|
13
|
+
}
|
|
14
|
+
type __VLS_Props = Props;
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
'checked'?: boolean;
|
|
17
|
+
} & __VLS_Props;
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
change: (checked: boolean) => any;
|
|
20
|
+
"update:checked": (value: boolean) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
23
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
class: string;
|
|
27
|
+
label: string;
|
|
28
|
+
id: string;
|
|
29
|
+
labelPlacement: LabelPlacement;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=switch.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.vue.d.ts","sourceRoot":"","sources":["../../src/components/switch.vue"],"names":[],"mappings":"AAKA;AAmIA,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtC,UAAU,KAAK;IACb,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW;IACX,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,oBAAoB;IACpB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,KAAK,WAAW,GAAG,KAAK,CAAC;AAyDzB,KAAK,iBAAiB,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;cAtEH,OAAO;WAQV,MAAM;WANN,MAAM;QAIT,MAAM;oBAFM,cAAc;;AAiKjC,wBAQG"}
|