@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,108 @@
|
|
|
1
|
+
import { AccordionType } from './context/accordion-context';
|
|
2
|
+
export declare const UAccordionItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/** 唯一标识 */
|
|
4
|
+
value: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
/** 额外 CSS 类名 */
|
|
9
|
+
class: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
/** 唯一标识 */
|
|
17
|
+
value: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
/** 额外 CSS 类名 */
|
|
22
|
+
class: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
class: string;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export declare const UAccordionTrigger: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
30
|
+
/** 额外 CSS 类名 */
|
|
31
|
+
class: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
click: (_event: MouseEvent) => true;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
/** 额外 CSS 类名 */
|
|
41
|
+
class: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
onClick?: ((_event: MouseEvent) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
class: string;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
export declare const UAccordionContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
51
|
+
/** 额外 CSS 类名 */
|
|
52
|
+
class: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
/** 额外 CSS 类名 */
|
|
60
|
+
class: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
class: string;
|
|
66
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
68
|
+
/** 展开模式:单选或多选 */
|
|
69
|
+
type?: AccordionType;
|
|
70
|
+
/** 受控:单选时为 string,多选时为 string[] */
|
|
71
|
+
modelValue?: string | string[];
|
|
72
|
+
/** 非受控默认值:单选时为 string,多选时为 string[] */
|
|
73
|
+
defaultValue?: string | string[];
|
|
74
|
+
/** 是否允许 single 模式下折叠已展开项 */
|
|
75
|
+
collapsible?: boolean;
|
|
76
|
+
/** 根容器额外 CSS 类名 */
|
|
77
|
+
class?: string;
|
|
78
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
80
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
81
|
+
/** 展开模式:单选或多选 */
|
|
82
|
+
type?: AccordionType;
|
|
83
|
+
/** 受控:单选时为 string,多选时为 string[] */
|
|
84
|
+
modelValue?: string | string[];
|
|
85
|
+
/** 非受控默认值:单选时为 string,多选时为 string[] */
|
|
86
|
+
defaultValue?: string | string[];
|
|
87
|
+
/** 是否允许 single 模式下折叠已展开项 */
|
|
88
|
+
collapsible?: boolean;
|
|
89
|
+
/** 根容器额外 CSS 类名 */
|
|
90
|
+
class?: string;
|
|
91
|
+
}> & Readonly<{
|
|
92
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
93
|
+
}>, {
|
|
94
|
+
class: string;
|
|
95
|
+
type: AccordionType;
|
|
96
|
+
modelValue: string | string[];
|
|
97
|
+
defaultValue: string | string[];
|
|
98
|
+
collapsible: boolean;
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
100
|
+
default?(_: {}): any;
|
|
101
|
+
}>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=accordion.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.vue.d.ts","sourceRoot":"","sources":["../../src/components/accordion.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAmChE,eAAO,MAAM,cAAc;IAGvB,WAAW;;;;;IAKX,gBAAgB;;;;;;;;IALhB,WAAW;;;;;IAKX,gBAAgB;;;;;;;4EAyBlB,CAAA;AAEF,eAAO,MAAM,iBAAiB;IAG1B,gBAAgB;;;;;;;;oBAOA,UAAU;;IAP1B,gBAAgB;;;;;;;;;4EA2ClB,CAAA;AAEF,eAAO,MAAM,iBAAiB;IAG1B,gBAAgB;;;;;;;;IAAhB,gBAAgB;;;;;;;4EAiBlB,CACD;;IAOC,iBAAiB;WACV,aAAa;IACpB,mCAAmC;iBACtB,MAAM,GAAG,MAAM,EAAE;IAC9B,uCAAuC;mBACxB,MAAM,GAAG,MAAM,EAAE;IAChC,4BAA4B;kBACd,OAAO;IACrB,mBAAmB;YACX,MAAM;;;;IATd,iBAAiB;WACV,aAAa;IACpB,mCAAmC;iBACtB,MAAM,GAAG,MAAM,EAAE;IAC9B,uCAAuC;mBACxB,MAAM,GAAG,MAAM,EAAE;IAChC,4BAA4B;kBACd,OAAO;IACrB,mBAAmB;YACX,MAAM;;;;WAAN,MAAM;UARP,aAAa;gBAEP,MAAM,GAAG,MAAM,EAAE;kBAEf,MAAM,GAAG,MAAM,EAAE;iBAElB,OAAO;;qBAgFM,GAAG;;AA7FhC,wBAmIK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const UAlertTitle: import('vue').DefineComponent<{
|
|
2
|
+
class?: string | undefined;
|
|
3
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
class?: string | undefined;
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
class: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export declare const UAlertDescription: import('vue').DefineComponent<{
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
class?: string | undefined;
|
|
16
|
+
}> & Readonly<{}>, {
|
|
17
|
+
class: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
20
|
+
/** 提示样式变体 */
|
|
21
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info";
|
|
22
|
+
/** 额外 CSS 类名 */
|
|
23
|
+
class?: string;
|
|
24
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
25
|
+
/** 提示样式变体 */
|
|
26
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info";
|
|
27
|
+
/** 额外 CSS 类名 */
|
|
28
|
+
class?: string;
|
|
29
|
+
}> & Readonly<{}>, {
|
|
30
|
+
variant: "default" | "destructive" | "success" | "warning" | "info";
|
|
31
|
+
class: string;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=alert.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.vue.d.ts","sourceRoot":"","sources":["../../src/components/alert.vue"],"names":[],"mappings":"AAKA;AA6HA,eAAO,MAAM,WAAW;YApBd,MAAM;;;;YAAN,MAAM;;;4EAoBuF,CAAA;AACvG,eAAO,MAAM,iBAAiB;YArBpB,MAAM;;;;YAAN,MAAM;;;4EAqBgG,CAC/G;;IASC,aAAa;;IAEb,gBAAgB;YACR,MAAM;;IAHd,aAAa;;IAEb,gBAAgB;YACR,MAAM;;;WAAN,MAAM;;qBAqEa,GAAG;;AAhFhC,wBAsHK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type AvatarGroupSize = 'sm' | 'default' | 'lg';
|
|
2
|
+
interface AvatarItem {
|
|
3
|
+
/** 头像图片 URL */
|
|
4
|
+
src?: string;
|
|
5
|
+
/** 图片 alt 文本 */
|
|
6
|
+
alt?: string;
|
|
7
|
+
/** 无图片时显示的回退文字 */
|
|
8
|
+
fallback?: string;
|
|
9
|
+
}
|
|
10
|
+
interface Props {
|
|
11
|
+
/** 头像数据列表 */
|
|
12
|
+
items: AvatarItem[];
|
|
13
|
+
/** 最多显示的头像数量,超出用 +N 展示,默认 5 */
|
|
14
|
+
max?: number;
|
|
15
|
+
/** 头像尺寸 */
|
|
16
|
+
size?: AvatarGroupSize;
|
|
17
|
+
/** 额外 CSS 类名 */
|
|
18
|
+
class?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
+
size: AvatarGroupSize;
|
|
22
|
+
class: string;
|
|
23
|
+
max: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=avatar-group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-group.vue.d.ts","sourceRoot":"","sources":["../../src/components/avatar-group.vue"],"names":[],"mappings":"AAKA;AAwIA,KAAK,eAAe,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAE9C,UAAU,UAAU;IAClB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gBAAgB;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kBAAkB;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,KAAK;IACb,aAAa;IACb,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW;IACX,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;UAHQ,eAAe;WAEd,MAAM;SAJR,MAAM;;AA4Jd,wBAQG"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const UAvatarImage: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
/** 图片地址 */
|
|
3
|
+
src: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
/** 图片描述 */
|
|
8
|
+
alt: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/** 额外 CSS 类名 */
|
|
13
|
+
class: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
error: (_event: Event) => true;
|
|
21
|
+
load: (_event: Event) => true;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
/** 图片地址 */
|
|
24
|
+
src: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
/** 图片描述 */
|
|
29
|
+
alt: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/** 额外 CSS 类名 */
|
|
34
|
+
class: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{
|
|
39
|
+
onError?: ((_event: Event) => any) | undefined;
|
|
40
|
+
onLoad?: ((_event: Event) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
class: string;
|
|
43
|
+
alt: string;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export declare const UAvatarFallback: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
46
|
+
/** 额外 CSS 类名 */
|
|
47
|
+
class: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
54
|
+
/** 额外 CSS 类名 */
|
|
55
|
+
class: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{}>, {
|
|
60
|
+
class: string;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
63
|
+
/** 头像尺寸 */
|
|
64
|
+
size?: "sm" | "lg" | "md" | "xl";
|
|
65
|
+
/** 额外 CSS 类名 */
|
|
66
|
+
class?: string;
|
|
67
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
68
|
+
/** 头像尺寸 */
|
|
69
|
+
size?: "sm" | "lg" | "md" | "xl";
|
|
70
|
+
/** 额外 CSS 类名 */
|
|
71
|
+
class?: string;
|
|
72
|
+
}> & Readonly<{}>, {
|
|
73
|
+
size: "sm" | "lg" | "md" | "xl";
|
|
74
|
+
class: string;
|
|
75
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>, {
|
|
76
|
+
default?(_: {}): any;
|
|
77
|
+
}>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=avatar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.vue.d.ts","sourceRoot":"","sources":["../../src/components/avatar.vue"],"names":[],"mappings":"AAKA;AA8LA,eAAO,MAAM,YAAY;IAIrB,WAAW;;;;;IAKX,WAAW;;;;;IAKX,gBAAgB;;;;;;;;oBAOA,KAAK;mBACN,KAAK;;IAlBpB,WAAW;;;;;IAKX,WAAW;;;;;IAKX,gBAAgB;;;;;;;;;;;4EAqDlB,CAAA;AAEF,eAAO,MAAM,eAAe;IAGxB,gBAAgB;;;;;;;;IAAhB,gBAAgB;;;;;;;4EAsBlB,CACD;;IASG,WAAW;;IAEX,gBAAgB;YACR,MAAM;;IAHd,WAAW;;IAEX,gBAAgB;YACR,MAAM;;;WAAN,MAAM;;qBAqDW,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,28 @@
|
|
|
1
|
+
type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline' | 'success' | 'warning';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 徽标样式变体 */
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
/** 额外 CSS 类名 */
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLSpanElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
variant: BadgeVariant;
|
|
19
|
+
class: string;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=badge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.vue.d.ts","sourceRoot":"","sources":["../../src/components/badge.vue"],"names":[],"mappings":"AAKA;AA2DA,KAAK,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE/F,UAAU,KAAK;IACb,aAAa;IACb,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA+BD,iBAAS,cAAc;WAuBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAzET,YAAY;WAEd,MAAM;yFA+Ed,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,75 @@
|
|
|
1
|
+
export declare const UBreadcrumbItem: import('vue').DefineComponent<{
|
|
2
|
+
class?: string | undefined;
|
|
3
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
class?: string | undefined;
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
class: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export declare const UBreadcrumbLink: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
/** 是否为当前页 */
|
|
12
|
+
current: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** 链接地址 */
|
|
17
|
+
href: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
/** 额外 CSS 类名 */
|
|
22
|
+
class: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
/** 是否为当前页 */
|
|
30
|
+
current: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/** 链接地址 */
|
|
35
|
+
href: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
/** 额外 CSS 类名 */
|
|
40
|
+
class: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
class: string;
|
|
46
|
+
href: string;
|
|
47
|
+
current: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export declare const UBreadcrumbSeparator: import('vue').DefineComponent<{
|
|
50
|
+
class?: string | undefined;
|
|
51
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
54
|
+
class?: string | undefined;
|
|
55
|
+
}> & Readonly<{}>, {
|
|
56
|
+
class: string;
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
59
|
+
/** 导航容器额外 CSS 类名 */
|
|
60
|
+
class?: string;
|
|
61
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
62
|
+
/** 导航容器额外 CSS 类名 */
|
|
63
|
+
class?: string;
|
|
64
|
+
}> & Readonly<{}>, {
|
|
65
|
+
class: string;
|
|
66
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>, {
|
|
67
|
+
default?(_: {}): any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=breadcrumb.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.vue.d.ts","sourceRoot":"","sources":["../../src/components/breadcrumb.vue"],"names":[],"mappings":"AAKA;AA4HA,eAAO,MAAM,eAAe;YAHlB,MAAM;;;;YAAN,MAAM;;;4EAgBd,CAAA;AAEF,eAAO,MAAM,eAAe;IAIxB,aAAa;;;;;IAKb,WAAW;;;;;IAKX,gBAAgB;;;;;;;;IAVhB,aAAa;;;;;IAKb,WAAW;;;;;IAKX,gBAAgB;;;;;;;;;4EAsBlB,CAAA;AAEF,eAAO,MAAM,oBAAoB;YAxDvB,MAAM;;;;YAAN,MAAM;;;4EAqEd,CACD;;IAOC,oBAAoB;YACZ,MAAM;;IADd,oBAAoB;YACZ,MAAM;;WAAN,MAAM;;qBA+Ba,GAAG;;AAtChC,wBA0EK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 按钮变体类型
|
|
3
|
+
* @example
|
|
4
|
+
* <UButton variant="default" size="lg" @click="handleClick">确认</UButton>
|
|
5
|
+
* <UButton variant="destructive" loading>删除中...</UButton>
|
|
6
|
+
* <UButton variant="outline" size="sm">取消</UButton>
|
|
7
|
+
*/
|
|
8
|
+
type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
9
|
+
type ButtonSize = 'default' | 'sm' | 'lg' | 'icon';
|
|
10
|
+
interface Props {
|
|
11
|
+
/** 按钮样式变体 */
|
|
12
|
+
variant?: ButtonVariant;
|
|
13
|
+
/** 按钮尺寸 */
|
|
14
|
+
size?: ButtonSize;
|
|
15
|
+
/** 是否处于加载状态,加载时显示旋转图标并禁用点击 */
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
/** 是否禁用 */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** 额外 CSS 类名 */
|
|
20
|
+
class?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: HTMLButtonElement;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
click: (event: MouseEvent) => any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
34
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
variant: ButtonVariant;
|
|
37
|
+
size: ButtonSize;
|
|
38
|
+
loading: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=button.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../src/components/button.vue"],"names":[],"mappings":"AAKA;AAiGA;;;;;;GAMG;AAEH,KAAK,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAC3F,KAAK,UAAU,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;AAElD,UAAU,KAAK;IACb,aAAa;IACb,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,WAAW;IACX,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA0DD,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;aA9HT,aAAa;UAEhB,UAAU;aAEP,OAAO;cAEN,OAAO;2FAiIlB,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,63 @@
|
|
|
1
|
+
export declare const UCardHeader: import('vue').DefineComponent<{
|
|
2
|
+
class?: string | undefined;
|
|
3
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
class?: string | undefined;
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
class: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export declare const UCardTitle: import('vue').DefineComponent<{
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
class?: string | undefined;
|
|
16
|
+
}> & Readonly<{}>, {
|
|
17
|
+
class: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export declare const UCardDescription: import('vue').DefineComponent<{
|
|
20
|
+
class?: string | undefined;
|
|
21
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
24
|
+
class?: string | undefined;
|
|
25
|
+
}> & Readonly<{}>, {
|
|
26
|
+
class: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export declare const UCardContent: import('vue').DefineComponent<{
|
|
29
|
+
class?: string | undefined;
|
|
30
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
33
|
+
class?: string | undefined;
|
|
34
|
+
}> & Readonly<{}>, {
|
|
35
|
+
class: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export declare const UCardFooter: import('vue').DefineComponent<{
|
|
38
|
+
class?: string | undefined;
|
|
39
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
42
|
+
class?: string | undefined;
|
|
43
|
+
}> & Readonly<{}>, {
|
|
44
|
+
class: string;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
47
|
+
/** 额外 CSS 类名 */
|
|
48
|
+
class?: string;
|
|
49
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
50
|
+
/** 额外 CSS 类名 */
|
|
51
|
+
class?: string;
|
|
52
|
+
}> & Readonly<{}>, {
|
|
53
|
+
class: string;
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
55
|
+
default?(_: {}): any;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=card.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.vue.d.ts","sourceRoot":"","sources":["../../src/components/card.vue"],"names":[],"mappings":"AAKA;AA4FA,eAAO,MAAM,WAAW;YApBd,MAAM;;;;YAAN,MAAM;;;4EAoBmF,CAAA;AACnG,eAAO,MAAM,UAAU;YArBb,MAAM;;;;YAAN,MAAM;;;4EAqBkH,CAAA;AAClI,eAAO,MAAM,gBAAgB;YAtBnB,MAAM;;;;YAAN,MAAM;;;4EAsB6F,CAAA;AAC7G,eAAO,MAAM,YAAY;YAvBf,MAAM;;;;YAAN,MAAM;;;4EAuBoE,CAAA;AACpF,eAAO,MAAM,WAAW;YAxBd,MAAM;;;;YAAN,MAAM;;;4EAwBoF,CACnG;;IAOC,gBAAgB;YACR,MAAM;;IADd,gBAAgB;YACR,MAAM;;WAAN,MAAM;;qBA0Ba,GAAG;;AAjChC,wBAqEK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通用复选框组件
|
|
3
|
+
* @example
|
|
4
|
+
* <UCheckbox v-model="isOpen" label="启用通知" />
|
|
5
|
+
* <UCheckbox :indeterminate="true" />
|
|
6
|
+
* <UCheckbox size="lg" disabled />
|
|
7
|
+
*/
|
|
8
|
+
type CheckboxSize = 'sm' | 'default' | 'lg';
|
|
9
|
+
interface Props {
|
|
10
|
+
/** 是否选中,配合 v-model 使用 */
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
/** 半选状态(优先级高于 modelValue 的视觉表现) */
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
/** 尺寸变体 */
|
|
15
|
+
size?: CheckboxSize;
|
|
16
|
+
/** 是否禁用 */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** 右侧标签,有值时整块可点击 */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** 原生 id,关联 label */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** 额外 class */
|
|
23
|
+
class?: string;
|
|
24
|
+
/** 标签额外 class */
|
|
25
|
+
labelClass?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
change: (value: boolean) => any;
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
31
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
size: CheckboxSize;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
modelValue: boolean;
|
|
37
|
+
indeterminate: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
inputRef: HTMLInputElement;
|
|
40
|
+
}, any>;
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=checkbox.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.vue.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.vue"],"names":[],"mappings":"AAKA;AA+IA;;;;;;GAMG;AAEH,KAAK,YAAY,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAE3C,UAAU,KAAK;IACb,yBAAyB;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mCAAmC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qBAAqB;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iBAAiB;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;;;;;;;;UAXQ,YAAY;cAER,OAAO;gBANL,OAAO;mBAEJ,OAAO;;;;AA2NzB,wBASG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
/** 手风琴展开类型 */
|
|
3
|
+
export type AccordionType = 'single' | 'multiple';
|
|
4
|
+
export interface AccordionContextValue {
|
|
5
|
+
/** 展开模式:单选或多选 */
|
|
6
|
+
type: AccordionType;
|
|
7
|
+
/** single 时为 string,multiple 时为 string[] */
|
|
8
|
+
value: Ref<string | string[]>;
|
|
9
|
+
/** 触发某个 item 的展开/收起 */
|
|
10
|
+
onValueChange: (itemValue: string) => void;
|
|
11
|
+
/** 是否允许 single 模式下折叠已展开项 */
|
|
12
|
+
collapsible: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ACCORDION_CONTEXT_KEY: InjectionKey<AccordionContextValue>;
|
|
15
|
+
export interface AccordionItemContextValue {
|
|
16
|
+
/** 当前 item 的 value */
|
|
17
|
+
itemValue: string;
|
|
18
|
+
/** 当前 item 是否展开 */
|
|
19
|
+
isOpen: Ref<boolean>;
|
|
20
|
+
}
|
|
21
|
+
export declare const ACCORDION_ITEM_CONTEXT_KEY: InjectionKey<AccordionItemContextValue>;
|
|
22
|
+
//# sourceMappingURL=accordion-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/accordion-context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,cAAc;AACd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAA;AAEjD,MAAM,WAAW,qBAAqB;IACpC,iBAAiB;IACjB,IAAI,EAAE,aAAa,CAAA;IACnB,4CAA4C;IAC5C,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAC7B,uBAAuB;IACvB,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,4BAA4B;IAC5B,WAAW,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAqC,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAE1G,MAAM,WAAW,yBAAyB;IACxC,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB;IACnB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACrB;AAED,eAAO,MAAM,0BAA0B,EAA0C,YAAY,CAAC,yBAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type AvatarImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
3
|
+
export interface AvatarContextValue {
|
|
4
|
+
imageLoadingStatus: Ref<AvatarImageLoadingStatus>;
|
|
5
|
+
setImageLoadingStatus: (status: AvatarImageLoadingStatus) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const AVATAR_CONTEXT_KEY: InjectionKey<AvatarContextValue>;
|
|
8
|
+
//# sourceMappingURL=avatar-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/avatar-context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE9E,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,EAAE,GAAG,CAAC,wBAAwB,CAAC,CAAA;IACjD,qBAAqB,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAA;CAClE;AAED,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,kBAAkB,CAA2B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export interface ContextMenuPosition {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ContextMenuContextValue {
|
|
7
|
+
/** 当前菜单是否打开 */
|
|
8
|
+
open: Ref<boolean>;
|
|
9
|
+
/** 菜单展开位置 */
|
|
10
|
+
position: Ref<ContextMenuPosition>;
|
|
11
|
+
/** 设置菜单状态 */
|
|
12
|
+
setOpen: (value: boolean) => void;
|
|
13
|
+
/** 在指定坐标处展开菜单 */
|
|
14
|
+
openAt: (pos: ContextMenuPosition) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const CONTEXT_MENU_CONTEXT_KEY: InjectionKey<ContextMenuContextValue>;
|
|
17
|
+
//# sourceMappingURL=context-menu-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/context-menu-context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,MAAM,WAAW,mBAAmB;IAClC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe;IACf,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,aAAa;IACb,QAAQ,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;IAClC,aAAa;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACjC,iBAAiB;IACjB,MAAM,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAA;CAC3C;AAED,eAAO,MAAM,wBAAwB,EAAwC,YAAY,CAAC,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
/** 抽屉滑出方向 */
|
|
3
|
+
export type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
+
export interface DrawerContextValue {
|
|
5
|
+
/** 当前抽屉是否打开 */
|
|
6
|
+
open: Ref<boolean>;
|
|
7
|
+
/** 抽屉滑出方向 */
|
|
8
|
+
side: Ref<DrawerSide>;
|
|
9
|
+
/** 设置打开状态 */
|
|
10
|
+
setOpen: (value: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DRAWER_CONTEXT_KEY: InjectionKey<DrawerContextValue>;
|
|
13
|
+
//# sourceMappingURL=drawer-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/drawer-context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,aAAa;AACb,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE5D,MAAM,WAAW,kBAAkB;IACjC,eAAe;IACf,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,aAAa;IACb,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,CAAA;IACrB,aAAa;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CAClC;AAED,eAAO,MAAM,kBAAkB,EAAkC,YAAY,CAAC,kBAAkB,CAAC,CAAA"}
|