xinwen-design 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/README.md +195 -0
- package/dist/style.css +1 -0
- package/dist/types/App.vue.d.ts +3 -0
- package/dist/types/components/alert/Alert.d.ts +10 -0
- package/dist/types/components/alert/Alert.vue.d.ts +22 -0
- package/dist/types/components/alert/index.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.d.ts +13 -0
- package/dist/types/components/autocomplete/Autocomplete.vue.d.ts +17 -0
- package/dist/types/components/autocomplete/index.d.ts +2 -0
- package/dist/types/components/avatar/Avatar.d.ts +7 -0
- package/dist/types/components/avatar/Avatar.vue.d.ts +17 -0
- package/dist/types/components/avatar/index.d.ts +2 -0
- package/dist/types/components/backtop/Backtop.d.ts +9 -0
- package/dist/types/components/backtop/Backtop.vue.d.ts +23 -0
- package/dist/types/components/backtop/index.d.ts +2 -0
- package/dist/types/components/badge/Badge.d.ts +13 -0
- package/dist/types/components/badge/Badge.vue.d.ts +19 -0
- package/dist/types/components/badge/index.d.ts +4 -0
- package/dist/types/components/breadcrumb/Breadcrumb.d.ts +17 -0
- package/dist/types/components/breadcrumb/Breadcrumb.vue.d.ts +11 -0
- package/dist/types/components/breadcrumb/index.d.ts +4 -0
- package/dist/types/components/button/Button.d.ts +35 -0
- package/dist/types/components/button/Button.vue.d.ts +34 -0
- package/dist/types/components/button/button.test.d.ts +1 -0
- package/dist/types/components/button/index.d.ts +4 -0
- package/dist/types/components/card/Card.d.ts +4 -0
- package/dist/types/components/card/Card.vue.d.ts +20 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/carousel/Carousel.d.ts +8 -0
- package/dist/types/components/carousel/Carousel.vue.d.ts +22 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/cascader/Cascader.d.ts +15 -0
- package/dist/types/components/cascader/Cascader.vue.d.ts +14 -0
- package/dist/types/components/cascader/index.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.d.ts +31 -0
- package/dist/types/components/checkbox/Checkbox.vue.d.ts +27 -0
- package/dist/types/components/checkbox/checkbox.test.d.ts +1 -0
- package/dist/types/components/checkbox/index.d.ts +4 -0
- package/dist/types/components/collapse/Collapse.d.ts +14 -0
- package/dist/types/components/collapse/Collapse.vue.d.ts +24 -0
- package/dist/types/components/collapse/index.d.ts +2 -0
- package/dist/types/components/color-picker/ColorPicker.vue.d.ts +7 -0
- package/dist/types/components/date-picker/DatePicker.d.ts +10 -0
- package/dist/types/components/date-picker/DatePicker.vue.d.ts +14 -0
- package/dist/types/components/date-picker/index.d.ts +2 -0
- package/dist/types/components/demo/DemoSection.vue.d.ts +18 -0
- package/dist/types/components/divider/Divider.d.ts +10 -0
- package/dist/types/components/divider/Divider.vue.d.ts +18 -0
- package/dist/types/components/divider/index.d.ts +4 -0
- package/dist/types/components/drawer/Drawer.d.ts +12 -0
- package/dist/types/components/drawer/Drawer.vue.d.ts +27 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/dropdown/Dropdown.d.ts +11 -0
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +20 -0
- package/dist/types/components/dropdown/index.d.ts +2 -0
- package/dist/types/components/empty/Empty.d.ts +3 -0
- package/dist/types/components/empty/Empty.vue.d.ts +18 -0
- package/dist/types/components/empty/index.d.ts +2 -0
- package/dist/types/components/image/Image.d.ts +9 -0
- package/dist/types/components/image/Image.vue.d.ts +24 -0
- package/dist/types/components/image/index.d.ts +2 -0
- package/dist/types/components/input/Input.d.ts +58 -0
- package/dist/types/components/input/Input.vue.d.ts +51 -0
- package/dist/types/components/input/index.d.ts +4 -0
- package/dist/types/components/input-number/InputNumber.d.ts +25 -0
- package/dist/types/components/input-number/InputNumber.vue.d.ts +18 -0
- package/dist/types/components/input-number/index.d.ts +4 -0
- package/dist/types/components/link/Link.d.ts +18 -0
- package/dist/types/components/link/Link.vue.d.ts +24 -0
- package/dist/types/components/link/index.d.ts +4 -0
- package/dist/types/components/loading/Loading.d.ts +11 -0
- package/dist/types/components/loading/Loading.vue.d.ts +8 -0
- package/dist/types/components/loading/index.d.ts +4 -0
- package/dist/types/components/menu/Menu.d.ts +13 -0
- package/dist/types/components/menu/Menu.vue.d.ts +11 -0
- package/dist/types/components/menu/index.d.ts +2 -0
- package/dist/types/components/modal/Modal.d.ts +31 -0
- package/dist/types/components/modal/Modal.vue.d.ts +38 -0
- package/dist/types/components/modal/index.d.ts +4 -0
- package/dist/types/components/pagination/Pagination.d.ts +25 -0
- package/dist/types/components/pagination/Pagination.vue.d.ts +22 -0
- package/dist/types/components/pagination/index.d.ts +4 -0
- package/dist/types/components/popover/Popover.d.ts +6 -0
- package/dist/types/components/popover/Popover.vue.d.ts +19 -0
- package/dist/types/components/popover/index.d.ts +2 -0
- package/dist/types/components/progress/Progress.d.ts +16 -0
- package/dist/types/components/progress/Progress.vue.d.ts +9 -0
- package/dist/types/components/progress/index.d.ts +4 -0
- package/dist/types/components/radio/Radio.d.ts +25 -0
- package/dist/types/components/radio/Radio.vue.d.ts +23 -0
- package/dist/types/components/radio/index.d.ts +4 -0
- package/dist/types/components/radio/radio.test.d.ts +1 -0
- package/dist/types/components/rate/Rate.d.ts +20 -0
- package/dist/types/components/rate/Rate.vue.d.ts +18 -0
- package/dist/types/components/rate/index.d.ts +4 -0
- package/dist/types/components/select/Select.d.ts +31 -0
- package/dist/types/components/select/Select.vue.d.ts +20 -0
- package/dist/types/components/select/index.d.ts +4 -0
- package/dist/types/components/skeleton/Skeleton.d.ts +4 -0
- package/dist/types/components/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/types/components/skeleton/index.d.ts +2 -0
- package/dist/types/components/slider/Slider.d.ts +27 -0
- package/dist/types/components/slider/Slider.vue.d.ts +20 -0
- package/dist/types/components/slider/index.d.ts +4 -0
- package/dist/types/components/space/Space.d.ts +13 -0
- package/dist/types/components/space/Space.vue.d.ts +9 -0
- package/dist/types/components/space/index.d.ts +4 -0
- package/dist/types/components/steps/Steps.d.ts +9 -0
- package/dist/types/components/steps/Steps.vue.d.ts +8 -0
- package/dist/types/components/steps/index.d.ts +2 -0
- package/dist/types/components/switch/Switch.d.ts +29 -0
- package/dist/types/components/switch/Switch.vue.d.ts +16 -0
- package/dist/types/components/switch/index.d.ts +4 -0
- package/dist/types/components/switch/switch.test.d.ts +1 -0
- package/dist/types/components/table/Table.d.ts +11 -0
- package/dist/types/components/table/Table.vue.d.ts +22 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.d.ts +22 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts +26 -0
- package/dist/types/components/tabs/index.d.ts +4 -0
- package/dist/types/components/tag/Tag.d.ts +15 -0
- package/dist/types/components/tag/Tag.vue.d.ts +23 -0
- package/dist/types/components/tag/index.d.ts +4 -0
- package/dist/types/components/time-picker/TimePicker.d.ts +9 -0
- package/dist/types/components/time-picker/TimePicker.vue.d.ts +13 -0
- package/dist/types/components/time-picker/index.d.ts +2 -0
- package/dist/types/components/timeline/Timeline.d.ts +9 -0
- package/dist/types/components/timeline/Timeline.vue.d.ts +6 -0
- package/dist/types/components/timeline/index.d.ts +2 -0
- package/dist/types/components/toast/Toast.d.ts +21 -0
- package/dist/types/components/toast/Toast.vue.d.ts +15 -0
- package/dist/types/components/toast/index.d.ts +4 -0
- package/dist/types/components/tooltip/Tooltip.d.ts +16 -0
- package/dist/types/components/tooltip/Tooltip.vue.d.ts +22 -0
- package/dist/types/components/tooltip/index.d.ts +4 -0
- package/dist/types/components/transfer/Transfer.d.ts +14 -0
- package/dist/types/components/transfer/Transfer.vue.d.ts +14 -0
- package/dist/types/components/transfer/index.d.ts +2 -0
- package/dist/types/components/upload/Upload.d.ts +17 -0
- package/dist/types/components/upload/Upload.vue.d.ts +24 -0
- package/dist/types/components/upload/index.d.ts +2 -0
- package/dist/types/index.d.ts +49 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/xinwen-design.es.js +2929 -0
- package/dist/xinwen-design.umd.js +6 -0
- package/package.json +85 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type ButtonType = 'primary' | 'secondary' | 'danger' | 'success';
|
|
2
|
+
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
/** 按钮类型 @default 'primary' */
|
|
5
|
+
type?: ButtonType;
|
|
6
|
+
/** 按钮大小 @default 'medium' */
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
/** 是否禁用 @default false */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 是否加载中 @default false */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** 是否块级 @default false */
|
|
13
|
+
block?: boolean;
|
|
14
|
+
/** 图标 */
|
|
15
|
+
icon?: string;
|
|
16
|
+
/** 镂空模式 @default false */
|
|
17
|
+
ghost?: boolean;
|
|
18
|
+
/** 圆角胶囊形状 @default false */
|
|
19
|
+
round?: boolean;
|
|
20
|
+
/** 切换按钮模式 @default false */
|
|
21
|
+
toggle?: boolean;
|
|
22
|
+
/** toggle 模式下的选中状态(v-model) @default false */
|
|
23
|
+
modelValue?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ButtonEmits {
|
|
26
|
+
(e: 'click', event: MouseEvent): void;
|
|
27
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
28
|
+
(e: 'change', value: boolean): void;
|
|
29
|
+
}
|
|
30
|
+
export interface ButtonInstance {
|
|
31
|
+
/** 获得焦点 */
|
|
32
|
+
focus(): void;
|
|
33
|
+
/** 失去焦点 */
|
|
34
|
+
blur(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ButtonProps } from './Button';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
click: (event: MouseEvent) => any;
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
change: (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
13
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
type: import("./Button").ButtonType;
|
|
18
|
+
size: import("./Button").ButtonSize;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
block: boolean;
|
|
22
|
+
ghost: boolean;
|
|
23
|
+
round: boolean;
|
|
24
|
+
toggle: boolean;
|
|
25
|
+
modelValue: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CardProps } from './Card';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
header?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
} & {
|
|
8
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
11
|
+
shadow: "always" | "hover" | "never";
|
|
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,22 @@
|
|
|
1
|
+
import type { CarouselProps } from './Carousel';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<CarouselProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
change: (index: number) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<CarouselProps> & Readonly<{
|
|
9
|
+
onChange?: ((index: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
height: string;
|
|
12
|
+
autoplay: boolean;
|
|
13
|
+
interval: number;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface CascaderOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
children?: CascaderOption[];
|
|
5
|
+
}
|
|
6
|
+
export interface CascaderProps {
|
|
7
|
+
modelValue?: (string | number)[];
|
|
8
|
+
options?: CascaderOption[];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface CascaderEmits {
|
|
13
|
+
(e: 'update:modelValue', value: (string | number)[]): void;
|
|
14
|
+
(e: 'change', value: (string | number)[]): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CascaderProps, CascaderOption } from './Cascader';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<CascaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
4
|
+
change: (value: (string | number)[]) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<CascaderProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
7
|
+
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
options: CascaderOption[];
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type CheckboxSize = 'small' | 'medium' | 'large';
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
/** 绑定值 (v-model) */
|
|
4
|
+
modelValue?: boolean | string | number;
|
|
5
|
+
/** 选中状态的值 @default true */
|
|
6
|
+
trueValue?: boolean | string | number;
|
|
7
|
+
/** 未选中状态的值 @default false */
|
|
8
|
+
falseValue?: boolean | string | number;
|
|
9
|
+
/** 尺寸 @default 'medium' */
|
|
10
|
+
size?: CheckboxSize;
|
|
11
|
+
/** 是否禁用 @default false */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** 是否只读 @default false */
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
/** 是否为中间状态 @default false */
|
|
16
|
+
indeterminate?: boolean;
|
|
17
|
+
/** 标签文字 */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** 原生 name 属性 */
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CheckboxEmits {
|
|
23
|
+
(e: 'update:modelValue', value: boolean | string | number): void;
|
|
24
|
+
(e: 'change', value: boolean | string | number, event: Event): void;
|
|
25
|
+
}
|
|
26
|
+
export interface CheckboxInstance {
|
|
27
|
+
/** 获得焦点 */
|
|
28
|
+
focus(): void;
|
|
29
|
+
/** 失去焦点 */
|
|
30
|
+
blur(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CheckboxProps, CheckboxInstance } from './Checkbox';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<CheckboxProps, CheckboxInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
8
|
+
change: (value: string | number | boolean, event: Event) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
11
|
+
onChange?: ((value: string | number | boolean, event: Event) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: import("./Checkbox").CheckboxSize;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
trueValue: boolean | string | number;
|
|
17
|
+
falseValue: boolean | string | number;
|
|
18
|
+
indeterminate: 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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CollapseItem {
|
|
2
|
+
key: string | number;
|
|
3
|
+
title: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CollapseProps {
|
|
7
|
+
modelValue?: (string | number)[];
|
|
8
|
+
items?: CollapseItem[];
|
|
9
|
+
accordion?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface CollapseEmits {
|
|
12
|
+
(e: 'update:modelValue', value: (string | number)[]): void;
|
|
13
|
+
(e: 'change', value: (string | number)[]): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CollapseProps } from './Collapse';
|
|
2
|
+
declare var __VLS_2: `content-${string}` | `content-${number}`, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<CollapseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
8
|
+
change: (value: (string | number)[]) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<CollapseProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
11
|
+
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
modelValue: (string | number)[];
|
|
14
|
+
items: import("./Collapse").CollapseItem[];
|
|
15
|
+
accordion: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
change: (v: Record<string, string>) => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onChange?: ((v: Record<string, string>) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DatePickerProps } from './DatePicker';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"update:modelValue": (value: string) => any;
|
|
4
|
+
change: (value: string) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
|
+
onChange?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
format: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
desc?: string;
|
|
4
|
+
code?: 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<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DividerDirection = 'horizontal' | 'vertical';
|
|
2
|
+
export type DividerContentPosition = 'left' | 'center' | 'right';
|
|
3
|
+
export interface DividerProps {
|
|
4
|
+
/** 方向 @default 'horizontal' */
|
|
5
|
+
direction?: DividerDirection;
|
|
6
|
+
/** 是否虚线 @default false */
|
|
7
|
+
dashed?: boolean;
|
|
8
|
+
/** 文字位置 @default 'center' */
|
|
9
|
+
contentPosition?: DividerContentPosition;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DividerProps } from './Divider';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
7
|
+
direction: import("./Divider").DividerDirection;
|
|
8
|
+
dashed: boolean;
|
|
9
|
+
contentPosition: import("./Divider").DividerContentPosition;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DrawerProps {
|
|
2
|
+
visible?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
maskClosable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface DrawerEmits {
|
|
10
|
+
(e: 'update:visible', value: boolean): void;
|
|
11
|
+
(e: 'close'): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DrawerProps } from './Drawer';
|
|
2
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
} & {
|
|
6
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
close: () => any;
|
|
10
|
+
"update:visible": (value: boolean) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
width: string;
|
|
16
|
+
maskClosable: boolean;
|
|
17
|
+
placement: "left" | "right" | "top" | "bottom";
|
|
18
|
+
height: string;
|
|
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,20 @@
|
|
|
1
|
+
import type { DropdownProps, DropdownItem } from './Dropdown';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
select: (key: string | number) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
9
|
+
onSelect?: ((key: string | number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
items: DropdownItem[];
|
|
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,18 @@
|
|
|
1
|
+
import type { EmptyProps } from './Empty';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
|
|
9
|
+
description: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ImageProps } from './Image';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
error?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
loading?: (props: typeof __VLS_3) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
error: () => any;
|
|
10
|
+
load: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{
|
|
12
|
+
onError?: (() => any) | undefined;
|
|
13
|
+
onLoad?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type InputSize = 'small' | 'medium' | 'large';
|
|
2
|
+
export type InputType = 'text' | 'password' | 'number' | 'email' | 'tel' | 'url' | 'search';
|
|
3
|
+
export type InputStatus = 'default' | 'error' | 'success' | 'warning';
|
|
4
|
+
export interface InputProps {
|
|
5
|
+
/** 绑定值 (v-model) */
|
|
6
|
+
modelValue?: string | number;
|
|
7
|
+
/** 输入框类型 @default 'text' */
|
|
8
|
+
type?: InputType;
|
|
9
|
+
/** 尺寸 @default 'medium' */
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
/** 占位符 */
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** 是否禁用 @default false */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** 是否只读 @default false */
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
/** 是否可清除 @default false */
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
/** 是否显示密码切换(type=password 时生效) @default false */
|
|
20
|
+
showPassword?: boolean;
|
|
21
|
+
/** 最大输入长度 */
|
|
22
|
+
maxlength?: number;
|
|
23
|
+
/** 是否显示字数统计 @default false */
|
|
24
|
+
showCount?: boolean;
|
|
25
|
+
/** 前缀图标/文字 */
|
|
26
|
+
prefix?: string;
|
|
27
|
+
/** 后缀图标/文字 */
|
|
28
|
+
suffix?: string;
|
|
29
|
+
/** 前置标签 */
|
|
30
|
+
prepend?: string;
|
|
31
|
+
/** 后置标签 */
|
|
32
|
+
append?: string;
|
|
33
|
+
/** 状态 @default 'default' */
|
|
34
|
+
status?: InputStatus;
|
|
35
|
+
/** 提示文字(状态下方) */
|
|
36
|
+
hint?: string;
|
|
37
|
+
/** 是否自动聚焦 @default false */
|
|
38
|
+
autofocus?: boolean;
|
|
39
|
+
/** 是否块级 @default false */
|
|
40
|
+
block?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface InputEmits {
|
|
43
|
+
(e: 'update:modelValue', value: string): void;
|
|
44
|
+
(e: 'input', value: string, event: Event): void;
|
|
45
|
+
(e: 'change', value: string, event: Event): void;
|
|
46
|
+
(e: 'focus', event: FocusEvent): void;
|
|
47
|
+
(e: 'blur', event: FocusEvent): void;
|
|
48
|
+
(e: 'clear'): void;
|
|
49
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
50
|
+
(e: 'keyup', event: KeyboardEvent): void;
|
|
51
|
+
(e: 'enter', value: string, event: KeyboardEvent): void;
|
|
52
|
+
}
|
|
53
|
+
export interface InputInstance {
|
|
54
|
+
focus(): void;
|
|
55
|
+
blur(): void;
|
|
56
|
+
clear(): void;
|
|
57
|
+
select(): void;
|
|
58
|
+
}
|