kb-ui-vue 0.2.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/Alert/Alert.vue.d.ts +26 -0
- package/dist/components/Alert/index.d.ts +4 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +20 -0
- package/dist/components/Avatar/index.d.ts +4 -0
- package/dist/components/Badge/Badge.vue.d.ts +28 -0
- package/dist/components/Badge/index.d.ts +4 -0
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +15 -0
- package/dist/components/Breadcrumb/index.d.ts +4 -0
- package/dist/components/Button/Button.vue.d.ts +32 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +12 -0
- package/dist/components/Calendar/index.d.ts +4 -0
- package/dist/components/Card/Card.vue.d.ts +23 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Carousel/Carousel.vue.d.ts +18 -0
- package/dist/components/Carousel/index.d.ts +4 -0
- package/dist/components/Cascader/Cascader.vue.d.ts +21 -0
- package/dist/components/Cascader/index.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +27 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Collapse/Collapse.vue.d.ts +35 -0
- package/dist/components/Collapse/index.d.ts +4 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +12 -0
- package/dist/components/ColorPicker/index.d.ts +4 -0
- package/dist/components/CountUp/CountUp.vue.d.ts +20 -0
- package/dist/components/CountUp/index.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +14 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/Descriptions/Descriptions.vue.d.ts +19 -0
- package/dist/components/Descriptions/index.d.ts +4 -0
- package/dist/components/Dialog/Dialog.vue.d.ts +35 -0
- package/dist/components/Dialog/index.d.ts +4 -0
- package/dist/components/Divider/Divider.vue.d.ts +20 -0
- package/dist/components/Divider/index.d.ts +4 -0
- package/dist/components/Drawer/Drawer.vue.d.ts +31 -0
- package/dist/components/Drawer/index.d.ts +4 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +31 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Empty/Empty.vue.d.ts +21 -0
- package/dist/components/Empty/index.d.ts +4 -0
- package/dist/components/Form/Form.vue.d.ts +38 -0
- package/dist/components/Form/FormItem.vue.d.ts +21 -0
- package/dist/components/Form/index.d.ts +5 -0
- package/dist/components/Grid/Col.vue.d.ts +20 -0
- package/dist/components/Grid/Row.vue.d.ts +22 -0
- package/dist/components/Grid/constants.d.ts +1 -0
- package/dist/components/Grid/index.d.ts +5 -0
- package/dist/components/Icon/Icon.vue.d.ts +10 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Input/Input.vue.d.ts +29 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/InputNumber/InputNumber.vue.d.ts +20 -0
- package/dist/components/InputNumber/index.d.ts +4 -0
- package/dist/components/InputPassword/InputPassword.vue.d.ts +16 -0
- package/dist/components/InputPassword/index.d.ts +4 -0
- package/dist/components/List/List.vue.d.ts +26 -0
- package/dist/components/List/index.d.ts +4 -0
- package/dist/components/Loading/Loading.vue.d.ts +12 -0
- package/dist/components/Loading/index.d.ts +4 -0
- package/dist/components/Message/Message.vue.d.ts +10 -0
- package/dist/components/Message/index.d.ts +16 -0
- package/dist/components/Notification/Notification.vue.d.ts +11 -0
- package/dist/components/Notification/index.d.ts +16 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +18 -0
- package/dist/components/Pagination/index.d.ts +4 -0
- package/dist/components/Popconfirm/Popconfirm.vue.d.ts +28 -0
- package/dist/components/Popconfirm/index.d.ts +4 -0
- package/dist/components/Popover/Popover.vue.d.ts +28 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Progress/Progress.vue.d.ts +21 -0
- package/dist/components/Progress/index.d.ts +4 -0
- package/dist/components/Radio/Radio.vue.d.ts +27 -0
- package/dist/components/Radio/index.d.ts +4 -0
- package/dist/components/Rate/Rate.vue.d.ts +17 -0
- package/dist/components/Rate/index.d.ts +4 -0
- package/dist/components/Result/Result.vue.d.ts +21 -0
- package/dist/components/Result/index.d.ts +4 -0
- package/dist/components/Search/Search.vue.d.ts +18 -0
- package/dist/components/Search/index.d.ts +4 -0
- package/dist/components/Segmented/Segmented.vue.d.ts +19 -0
- package/dist/components/Segmented/index.d.ts +4 -0
- package/dist/components/Select/Select.vue.d.ts +26 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +22 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Slider/Slider.vue.d.ts +20 -0
- package/dist/components/Slider/index.d.ts +4 -0
- package/dist/components/Space/Space.vue.d.ts +24 -0
- package/dist/components/Space/index.d.ts +4 -0
- package/dist/components/Statistic/Statistic.vue.d.ts +29 -0
- package/dist/components/Statistic/index.d.ts +4 -0
- package/dist/components/Steps/Steps.vue.d.ts +15 -0
- package/dist/components/Steps/index.d.ts +4 -0
- package/dist/components/Switch/Switch.vue.d.ts +16 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Table/Table.vue.d.ts +34 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +30 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tag/Tag.vue.d.ts +28 -0
- package/dist/components/Tag/index.d.ts +4 -0
- package/dist/components/Textarea/Textarea.vue.d.ts +20 -0
- package/dist/components/Textarea/index.d.ts +4 -0
- package/dist/components/Timeline/Timeline.vue.d.ts +13 -0
- package/dist/components/Timeline/index.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Transfer/Transfer.vue.d.ts +18 -0
- package/dist/components/Transfer/index.d.ts +4 -0
- package/dist/components/Tree/Tree.vue.d.ts +17 -0
- package/dist/components/Tree/index.d.ts +4 -0
- package/dist/components/Upload/Upload.vue.d.ts +55 -0
- package/dist/components/Upload/index.d.ts +4 -0
- package/dist/components/Watermark/Watermark.vue.d.ts +28 -0
- package/dist/components/Watermark/index.d.ts +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +117 -0
- package/dist/index.js +2410 -0
- package/dist/styles/Alert.css +68 -0
- package/dist/styles/Avatar.css +31 -0
- package/dist/styles/Badge.css +49 -0
- package/dist/styles/Breadcrumb.css +28 -0
- package/dist/styles/Button.css +108 -0
- package/dist/styles/Calendar.css +79 -0
- package/dist/styles/Card.css +40 -0
- package/dist/styles/Carousel.css +87 -0
- package/dist/styles/Cascader.css +75 -0
- package/dist/styles/Checkbox.css +62 -0
- package/dist/styles/Collapse.css +49 -0
- package/dist/styles/ColorPicker.css +36 -0
- package/dist/styles/CountUp.css +4 -0
- package/dist/styles/DatePicker.css +33 -0
- package/dist/styles/Descriptions.css +44 -0
- package/dist/styles/Dialog.css +42 -0
- package/dist/styles/Divider.css +37 -0
- package/dist/styles/Drawer.css +81 -0
- package/dist/styles/Dropdown.css +40 -0
- package/dist/styles/Empty.css +24 -0
- package/dist/styles/Form.css +33 -0
- package/dist/styles/Grid.css +194 -0
- package/dist/styles/Icon.css +5 -0
- package/dist/styles/Input.css +79 -0
- package/dist/styles/InputNumber.css +40 -0
- package/dist/styles/InputPassword.css +42 -0
- package/dist/styles/List.css +29 -0
- package/dist/styles/Loading.css +27 -0
- package/dist/styles/Message.css +32 -0
- package/dist/styles/Notification.css +50 -0
- package/dist/styles/Pagination.css +57 -0
- package/dist/styles/Popconfirm.css +53 -0
- package/dist/styles/Popover.css +54 -0
- package/dist/styles/Progress.css +38 -0
- package/dist/styles/Radio.css +60 -0
- package/dist/styles/Rate.css +21 -0
- package/dist/styles/Result.css +41 -0
- package/dist/styles/Search.css +46 -0
- package/dist/styles/Segmented.css +32 -0
- package/dist/styles/Select.css +108 -0
- package/dist/styles/Skeleton.css +40 -0
- package/dist/styles/Slider.css +46 -0
- package/dist/styles/Space.css +27 -0
- package/dist/styles/Statistic.css +31 -0
- package/dist/styles/Steps.css +83 -0
- package/dist/styles/Switch.css +39 -0
- package/dist/styles/Table.css +43 -0
- package/dist/styles/Tabs.css +41 -0
- package/dist/styles/Tag.css +71 -0
- package/dist/styles/Textarea.css +43 -0
- package/dist/styles/Timeline.css +70 -0
- package/dist/styles/Tooltip.css +42 -0
- package/dist/styles/Transfer.css +64 -0
- package/dist/styles/Tree.css +50 -0
- package/dist/styles/Upload.css +66 -0
- package/dist/styles/Watermark.css +17 -0
- package/dist/styles/all.css +103 -0
- package/dist/styles/dark.css +10 -0
- package/dist/styles/index.css +2953 -0
- package/dist/styles/themes/amber.css +14 -0
- package/dist/styles/themes/aurora.css +15 -0
- package/dist/styles/themes/autumn.css +18 -0
- package/dist/styles/themes/business.css +20 -0
- package/dist/styles/themes/candy.css +21 -0
- package/dist/styles/themes/cartoon.css +31 -0
- package/dist/styles/themes/coffee.css +18 -0
- package/dist/styles/themes/cyber.css +37 -0
- package/dist/styles/themes/cyberpunk.css +32 -0
- package/dist/styles/themes/danqing.css +27 -0
- package/dist/styles/themes/flat.css +18 -0
- package/dist/styles/themes/forest.css +20 -0
- package/dist/styles/themes/gameboy.css +33 -0
- package/dist/styles/themes/glass.css +39 -0
- package/dist/styles/themes/gold.css +26 -0
- package/dist/styles/themes/gothic.css +20 -0
- package/dist/styles/themes/gradient.css +18 -0
- package/dist/styles/themes/ink.css +16 -0
- package/dist/styles/themes/lava.css +15 -0
- package/dist/styles/themes/macaron.css +27 -0
- package/dist/styles/themes/matcha.css +18 -0
- package/dist/styles/themes/memphis.css +25 -0
- package/dist/styles/themes/midnight.css +27 -0
- package/dist/styles/themes/minimal.css +36 -0
- package/dist/styles/themes/mint.css +20 -0
- package/dist/styles/themes/mono.css +36 -0
- package/dist/styles/themes/morandi.css +18 -0
- package/dist/styles/themes/neon.css +16 -0
- package/dist/styles/themes/neonlight.css +20 -0
- package/dist/styles/themes/ocean.css +20 -0
- package/dist/styles/themes/pastel.css +21 -0
- package/dist/styles/themes/pop.css +33 -0
- package/dist/styles/themes/retro.css +35 -0
- package/dist/styles/themes/rose.css +14 -0
- package/dist/styles/themes/rounded.css +18 -0
- package/dist/styles/themes/sakura.css +20 -0
- package/dist/styles/themes/sky.css +20 -0
- package/dist/styles/themes/spring.css +18 -0
- package/dist/styles/themes/starry.css +15 -0
- package/dist/styles/themes/sunset.css +18 -0
- package/dist/styles/themes/teal.css +14 -0
- package/dist/styles/themes/terminal.css +44 -0
- package/dist/styles/themes/vaporwave.css +27 -0
- package/dist/styles/themes/violet.css +14 -0
- package/dist/styles/themes/wabi.css +27 -0
- package/dist/styles/themes/winter.css +20 -0
- package/dist/styles/tokens.css +55 -0
- package/package.json +45 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface AlertProps {
|
|
2
|
+
type?: 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
title?: string;
|
|
4
|
+
/** 是否可关闭 */
|
|
5
|
+
closable?: boolean;
|
|
6
|
+
/** 是否显示类型图标 */
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_6: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_6) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<AlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlertProps> & Readonly<{}>, {
|
|
14
|
+
type: "info" | "success" | "warning" | "danger";
|
|
15
|
+
title: string;
|
|
16
|
+
closable: boolean;
|
|
17
|
+
showIcon: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface AvatarProps {
|
|
2
|
+
/** 图片地址 */
|
|
3
|
+
src?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
/** 无图时显示的文字(如名字首字符) */
|
|
6
|
+
fallback?: string;
|
|
7
|
+
/** 尺寸:数字为 px;预设 small/medium/large */
|
|
8
|
+
size?: number | 'small' | 'medium' | 'large';
|
|
9
|
+
/** 圆形 */
|
|
10
|
+
round?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
13
|
+
size: number | "small" | "medium" | "large";
|
|
14
|
+
round: boolean;
|
|
15
|
+
src: string;
|
|
16
|
+
alt: string;
|
|
17
|
+
fallback: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface BadgeProps {
|
|
2
|
+
/** 角标内容(数字超过 max 时封顶) */
|
|
3
|
+
content?: string | number;
|
|
4
|
+
/** 小红点模式 */
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
/** 数字封顶值 */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** 自定义背景色 */
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
16
|
+
color: string;
|
|
17
|
+
content: string | number;
|
|
18
|
+
dot: boolean;
|
|
19
|
+
max: number;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BreadcrumbProps {
|
|
6
|
+
items: BreadcrumbItem[];
|
|
7
|
+
/** 分隔符 */
|
|
8
|
+
separator?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<BreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {
|
|
11
|
+
separator: string;
|
|
12
|
+
items: BreadcrumbItem[];
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ButtonProps {
|
|
2
|
+
type?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
round?: boolean;
|
|
6
|
+
plain?: boolean;
|
|
7
|
+
nativeType?: 'button' | 'submit' | 'reset';
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
click: (event: MouseEvent) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
type: "default" | "primary" | "success" | "warning" | "danger" | "info";
|
|
19
|
+
size: "small" | "medium" | "large";
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
round: boolean;
|
|
22
|
+
plain: boolean;
|
|
23
|
+
nativeType: "button" | "submit" | "reset";
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CalendarProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<CalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
modelValue: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CardProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
/** 阴影:always / hover / never */
|
|
4
|
+
shadow?: 'always' | 'hover' | 'never';
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
footer?: (props: typeof __VLS_3) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
shadow: "always" | "hover" | "never";
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CarouselItem {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CarouselProps {
|
|
6
|
+
items: CarouselItem[];
|
|
7
|
+
/** 高度(px) */
|
|
8
|
+
height?: number;
|
|
9
|
+
/** 自动播放间隔(ms,0 关闭) */
|
|
10
|
+
autoplay?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<CarouselProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CarouselProps> & Readonly<{}>, {
|
|
13
|
+
height: number;
|
|
14
|
+
items: CarouselItem[];
|
|
15
|
+
autoplay: number;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface CascaderOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
children?: CascaderOption[];
|
|
5
|
+
}
|
|
6
|
+
export interface CascaderProps {
|
|
7
|
+
options: CascaderOption[];
|
|
8
|
+
modelValue?: (string | number)[];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<CascaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<CascaderProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
modelValue: (string | number)[];
|
|
17
|
+
placeholder: string;
|
|
18
|
+
options: CascaderOption[];
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: boolean) => any;
|
|
12
|
+
change: (value: boolean) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
modelValue: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface CollapseItem {
|
|
2
|
+
title: string;
|
|
3
|
+
content?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface CollapseProps {
|
|
7
|
+
items: CollapseItem[];
|
|
8
|
+
/** 当前展开项(数组,多开) */
|
|
9
|
+
modelValue?: string[];
|
|
10
|
+
/** 手风琴模式(单选) */
|
|
11
|
+
accordion?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare var __VLS_2: `item-${number}`, __VLS_3: {
|
|
14
|
+
item: CollapseItem;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import('vue').DefineComponent<CollapseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string[]) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<CollapseProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
modelValue: string[];
|
|
25
|
+
items: CollapseItem[];
|
|
26
|
+
accordion: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ColorPickerProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<ColorPickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
modelValue: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CountUpProps {
|
|
2
|
+
end: number;
|
|
3
|
+
/** 起始值 */
|
|
4
|
+
start?: number;
|
|
5
|
+
/** 动画时长(ms) */
|
|
6
|
+
duration?: number;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
/** 小数位 */
|
|
10
|
+
decimals?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<CountUpProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CountUpProps> & Readonly<{}>, {
|
|
13
|
+
start: number;
|
|
14
|
+
duration: number;
|
|
15
|
+
prefix: string;
|
|
16
|
+
suffix: string;
|
|
17
|
+
decimals: number;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DatePickerProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
modelValue: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DescriptionItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
}
|
|
5
|
+
export interface DescriptionsProps {
|
|
6
|
+
items: DescriptionItem[];
|
|
7
|
+
title?: string;
|
|
8
|
+
/** 每行列数 */
|
|
9
|
+
column?: number;
|
|
10
|
+
border?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<DescriptionsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DescriptionsProps> & Readonly<{}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
border: boolean;
|
|
15
|
+
column: number;
|
|
16
|
+
items: DescriptionItem[];
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface DialogProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
closeOnClickOverlay?: boolean;
|
|
6
|
+
/** 是否支持 ESC 关闭(默认 true) */
|
|
7
|
+
closeOnEsc?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_7) => any;
|
|
12
|
+
} & {
|
|
13
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
close: () => any;
|
|
17
|
+
"update:modelValue": (value: boolean) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
width: string | number;
|
|
24
|
+
modelValue: boolean;
|
|
25
|
+
closeOnClickOverlay: boolean;
|
|
26
|
+
closeOnEsc: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DividerProps {
|
|
2
|
+
direction?: 'horizontal' | 'vertical';
|
|
3
|
+
contentPosition?: 'left' | 'center' | 'right';
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
10
|
+
direction: "horizontal" | "vertical";
|
|
11
|
+
contentPosition: "left" | "center" | "right";
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DrawerProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
/** 抽屉方向 */
|
|
5
|
+
direction?: 'left' | 'right' | 'top' | 'bottom';
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
11
|
+
} & {
|
|
12
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
title: string;
|
|
20
|
+
width: string | number;
|
|
21
|
+
direction: "left" | "right" | "top" | "bottom";
|
|
22
|
+
modelValue: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DropdownItem {
|
|
2
|
+
label: string;
|
|
3
|
+
key: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
danger?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface DropdownProps {
|
|
8
|
+
items: DropdownItem[];
|
|
9
|
+
/** 触发方式 */
|
|
10
|
+
trigger?: 'hover' | 'click';
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<DropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
select: (key: string) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
19
|
+
onSelect?: ((key: string) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
trigger: "hover" | "click";
|
|
22
|
+
items: DropdownItem[];
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface EmptyProps {
|
|
2
|
+
/** 空状态文案 */
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_1: {}, __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
image?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
action?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<EmptyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
|
|
12
|
+
description: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface FormRule {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
pattern?: RegExp;
|
|
5
|
+
validator?: (value: unknown) => boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FormContext {
|
|
8
|
+
model: Record<string, unknown>;
|
|
9
|
+
rules: Record<string, FormRule[]>;
|
|
10
|
+
errors: Record<string, string | null>;
|
|
11
|
+
validateField: (prop: string) => string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface FormProps {
|
|
14
|
+
model: Record<string, unknown>;
|
|
15
|
+
rules?: Record<string, FormRule[]>;
|
|
16
|
+
labelWidth?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function validateField(prop: string): string | null;
|
|
19
|
+
declare function validate(): Promise<boolean>;
|
|
20
|
+
declare var __VLS_1: {};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
default?: (props: typeof __VLS_1) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<FormProps, {
|
|
25
|
+
validate: typeof validate;
|
|
26
|
+
validateField: typeof validateField;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormProps> & Readonly<{}>, {
|
|
28
|
+
rules: Record<string, FormRule[]>;
|
|
29
|
+
labelWidth: string;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|