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.
Files changed (146) hide show
  1. package/README.md +195 -0
  2. package/dist/style.css +1 -0
  3. package/dist/types/App.vue.d.ts +3 -0
  4. package/dist/types/components/alert/Alert.d.ts +10 -0
  5. package/dist/types/components/alert/Alert.vue.d.ts +22 -0
  6. package/dist/types/components/alert/index.d.ts +2 -0
  7. package/dist/types/components/autocomplete/Autocomplete.d.ts +13 -0
  8. package/dist/types/components/autocomplete/Autocomplete.vue.d.ts +17 -0
  9. package/dist/types/components/autocomplete/index.d.ts +2 -0
  10. package/dist/types/components/avatar/Avatar.d.ts +7 -0
  11. package/dist/types/components/avatar/Avatar.vue.d.ts +17 -0
  12. package/dist/types/components/avatar/index.d.ts +2 -0
  13. package/dist/types/components/backtop/Backtop.d.ts +9 -0
  14. package/dist/types/components/backtop/Backtop.vue.d.ts +23 -0
  15. package/dist/types/components/backtop/index.d.ts +2 -0
  16. package/dist/types/components/badge/Badge.d.ts +13 -0
  17. package/dist/types/components/badge/Badge.vue.d.ts +19 -0
  18. package/dist/types/components/badge/index.d.ts +4 -0
  19. package/dist/types/components/breadcrumb/Breadcrumb.d.ts +17 -0
  20. package/dist/types/components/breadcrumb/Breadcrumb.vue.d.ts +11 -0
  21. package/dist/types/components/breadcrumb/index.d.ts +4 -0
  22. package/dist/types/components/button/Button.d.ts +35 -0
  23. package/dist/types/components/button/Button.vue.d.ts +34 -0
  24. package/dist/types/components/button/button.test.d.ts +1 -0
  25. package/dist/types/components/button/index.d.ts +4 -0
  26. package/dist/types/components/card/Card.d.ts +4 -0
  27. package/dist/types/components/card/Card.vue.d.ts +20 -0
  28. package/dist/types/components/card/index.d.ts +2 -0
  29. package/dist/types/components/carousel/Carousel.d.ts +8 -0
  30. package/dist/types/components/carousel/Carousel.vue.d.ts +22 -0
  31. package/dist/types/components/carousel/index.d.ts +2 -0
  32. package/dist/types/components/cascader/Cascader.d.ts +15 -0
  33. package/dist/types/components/cascader/Cascader.vue.d.ts +14 -0
  34. package/dist/types/components/cascader/index.d.ts +2 -0
  35. package/dist/types/components/checkbox/Checkbox.d.ts +31 -0
  36. package/dist/types/components/checkbox/Checkbox.vue.d.ts +27 -0
  37. package/dist/types/components/checkbox/checkbox.test.d.ts +1 -0
  38. package/dist/types/components/checkbox/index.d.ts +4 -0
  39. package/dist/types/components/collapse/Collapse.d.ts +14 -0
  40. package/dist/types/components/collapse/Collapse.vue.d.ts +24 -0
  41. package/dist/types/components/collapse/index.d.ts +2 -0
  42. package/dist/types/components/color-picker/ColorPicker.vue.d.ts +7 -0
  43. package/dist/types/components/date-picker/DatePicker.d.ts +10 -0
  44. package/dist/types/components/date-picker/DatePicker.vue.d.ts +14 -0
  45. package/dist/types/components/date-picker/index.d.ts +2 -0
  46. package/dist/types/components/demo/DemoSection.vue.d.ts +18 -0
  47. package/dist/types/components/divider/Divider.d.ts +10 -0
  48. package/dist/types/components/divider/Divider.vue.d.ts +18 -0
  49. package/dist/types/components/divider/index.d.ts +4 -0
  50. package/dist/types/components/drawer/Drawer.d.ts +12 -0
  51. package/dist/types/components/drawer/Drawer.vue.d.ts +27 -0
  52. package/dist/types/components/drawer/index.d.ts +2 -0
  53. package/dist/types/components/dropdown/Dropdown.d.ts +11 -0
  54. package/dist/types/components/dropdown/Dropdown.vue.d.ts +20 -0
  55. package/dist/types/components/dropdown/index.d.ts +2 -0
  56. package/dist/types/components/empty/Empty.d.ts +3 -0
  57. package/dist/types/components/empty/Empty.vue.d.ts +18 -0
  58. package/dist/types/components/empty/index.d.ts +2 -0
  59. package/dist/types/components/image/Image.d.ts +9 -0
  60. package/dist/types/components/image/Image.vue.d.ts +24 -0
  61. package/dist/types/components/image/index.d.ts +2 -0
  62. package/dist/types/components/input/Input.d.ts +58 -0
  63. package/dist/types/components/input/Input.vue.d.ts +51 -0
  64. package/dist/types/components/input/index.d.ts +4 -0
  65. package/dist/types/components/input-number/InputNumber.d.ts +25 -0
  66. package/dist/types/components/input-number/InputNumber.vue.d.ts +18 -0
  67. package/dist/types/components/input-number/index.d.ts +4 -0
  68. package/dist/types/components/link/Link.d.ts +18 -0
  69. package/dist/types/components/link/Link.vue.d.ts +24 -0
  70. package/dist/types/components/link/index.d.ts +4 -0
  71. package/dist/types/components/loading/Loading.d.ts +11 -0
  72. package/dist/types/components/loading/Loading.vue.d.ts +8 -0
  73. package/dist/types/components/loading/index.d.ts +4 -0
  74. package/dist/types/components/menu/Menu.d.ts +13 -0
  75. package/dist/types/components/menu/Menu.vue.d.ts +11 -0
  76. package/dist/types/components/menu/index.d.ts +2 -0
  77. package/dist/types/components/modal/Modal.d.ts +31 -0
  78. package/dist/types/components/modal/Modal.vue.d.ts +38 -0
  79. package/dist/types/components/modal/index.d.ts +4 -0
  80. package/dist/types/components/pagination/Pagination.d.ts +25 -0
  81. package/dist/types/components/pagination/Pagination.vue.d.ts +22 -0
  82. package/dist/types/components/pagination/index.d.ts +4 -0
  83. package/dist/types/components/popover/Popover.d.ts +6 -0
  84. package/dist/types/components/popover/Popover.vue.d.ts +19 -0
  85. package/dist/types/components/popover/index.d.ts +2 -0
  86. package/dist/types/components/progress/Progress.d.ts +16 -0
  87. package/dist/types/components/progress/Progress.vue.d.ts +9 -0
  88. package/dist/types/components/progress/index.d.ts +4 -0
  89. package/dist/types/components/radio/Radio.d.ts +25 -0
  90. package/dist/types/components/radio/Radio.vue.d.ts +23 -0
  91. package/dist/types/components/radio/index.d.ts +4 -0
  92. package/dist/types/components/radio/radio.test.d.ts +1 -0
  93. package/dist/types/components/rate/Rate.d.ts +20 -0
  94. package/dist/types/components/rate/Rate.vue.d.ts +18 -0
  95. package/dist/types/components/rate/index.d.ts +4 -0
  96. package/dist/types/components/select/Select.d.ts +31 -0
  97. package/dist/types/components/select/Select.vue.d.ts +20 -0
  98. package/dist/types/components/select/index.d.ts +4 -0
  99. package/dist/types/components/skeleton/Skeleton.d.ts +4 -0
  100. package/dist/types/components/skeleton/Skeleton.vue.d.ts +7 -0
  101. package/dist/types/components/skeleton/index.d.ts +2 -0
  102. package/dist/types/components/slider/Slider.d.ts +27 -0
  103. package/dist/types/components/slider/Slider.vue.d.ts +20 -0
  104. package/dist/types/components/slider/index.d.ts +4 -0
  105. package/dist/types/components/space/Space.d.ts +13 -0
  106. package/dist/types/components/space/Space.vue.d.ts +9 -0
  107. package/dist/types/components/space/index.d.ts +4 -0
  108. package/dist/types/components/steps/Steps.d.ts +9 -0
  109. package/dist/types/components/steps/Steps.vue.d.ts +8 -0
  110. package/dist/types/components/steps/index.d.ts +2 -0
  111. package/dist/types/components/switch/Switch.d.ts +29 -0
  112. package/dist/types/components/switch/Switch.vue.d.ts +16 -0
  113. package/dist/types/components/switch/index.d.ts +4 -0
  114. package/dist/types/components/switch/switch.test.d.ts +1 -0
  115. package/dist/types/components/table/Table.d.ts +11 -0
  116. package/dist/types/components/table/Table.vue.d.ts +22 -0
  117. package/dist/types/components/table/index.d.ts +2 -0
  118. package/dist/types/components/tabs/Tabs.d.ts +22 -0
  119. package/dist/types/components/tabs/Tabs.vue.d.ts +26 -0
  120. package/dist/types/components/tabs/index.d.ts +4 -0
  121. package/dist/types/components/tag/Tag.d.ts +15 -0
  122. package/dist/types/components/tag/Tag.vue.d.ts +23 -0
  123. package/dist/types/components/tag/index.d.ts +4 -0
  124. package/dist/types/components/time-picker/TimePicker.d.ts +9 -0
  125. package/dist/types/components/time-picker/TimePicker.vue.d.ts +13 -0
  126. package/dist/types/components/time-picker/index.d.ts +2 -0
  127. package/dist/types/components/timeline/Timeline.d.ts +9 -0
  128. package/dist/types/components/timeline/Timeline.vue.d.ts +6 -0
  129. package/dist/types/components/timeline/index.d.ts +2 -0
  130. package/dist/types/components/toast/Toast.d.ts +21 -0
  131. package/dist/types/components/toast/Toast.vue.d.ts +15 -0
  132. package/dist/types/components/toast/index.d.ts +4 -0
  133. package/dist/types/components/tooltip/Tooltip.d.ts +16 -0
  134. package/dist/types/components/tooltip/Tooltip.vue.d.ts +22 -0
  135. package/dist/types/components/tooltip/index.d.ts +4 -0
  136. package/dist/types/components/transfer/Transfer.d.ts +14 -0
  137. package/dist/types/components/transfer/Transfer.vue.d.ts +14 -0
  138. package/dist/types/components/transfer/index.d.ts +2 -0
  139. package/dist/types/components/upload/Upload.d.ts +17 -0
  140. package/dist/types/components/upload/Upload.vue.d.ts +24 -0
  141. package/dist/types/components/upload/index.d.ts +2 -0
  142. package/dist/types/index.d.ts +49 -0
  143. package/dist/types/main.d.ts +1 -0
  144. package/dist/xinwen-design.es.js +2929 -0
  145. package/dist/xinwen-design.umd.js +6 -0
  146. package/package.json +85 -0
@@ -0,0 +1,20 @@
1
+ import type { SliderProps } from './Slider';
2
+ declare const __VLS_export: import("vue").DefineComponent<SliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: number) => any;
4
+ change: (value: number) => any;
5
+ }, string, import("vue").PublicProps, Readonly<SliderProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
7
+ onChange?: ((value: number) => any) | undefined;
8
+ }>, {
9
+ size: import("./Slider").SliderSize;
10
+ disabled: boolean;
11
+ modelValue: number;
12
+ min: number;
13
+ max: number;
14
+ step: number;
15
+ showTooltip: boolean;
16
+ showStops: boolean;
17
+ showInput: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import Slider from './Slider.vue';
2
+ import type { SliderProps, SliderEmits } from './Slider';
3
+ export { Slider, type SliderProps, type SliderEmits };
4
+ export default Slider;
@@ -0,0 +1,13 @@
1
+ export type SpaceSize = 'small' | 'medium' | 'large' | number;
2
+ export type SpaceDirection = 'horizontal' | 'vertical';
3
+ export type SpaceAlign = 'start' | 'center' | 'end' | 'baseline';
4
+ export interface SpaceProps {
5
+ /** 间距方向 @default 'horizontal' */
6
+ direction?: SpaceDirection;
7
+ /** 间距大小 @default 'small' */
8
+ size?: SpaceSize;
9
+ /** 对齐方式 @default 'start' */
10
+ align?: SpaceAlign;
11
+ /** 是否自动换行 @default false */
12
+ wrap?: boolean;
13
+ }
@@ -0,0 +1,9 @@
1
+ import type { SpaceProps } from './Space';
2
+ declare const __VLS_export: import("vue").DefineComponent<SpaceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
3
+ size: import("./Space").SpaceSize;
4
+ direction: import("./Space").SpaceDirection;
5
+ align: import("./Space").SpaceAlign;
6
+ wrap: boolean;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import Space from './Space.vue';
2
+ import type { SpaceProps } from './Space';
3
+ export { Space, type SpaceProps };
4
+ export default Space;
@@ -0,0 +1,9 @@
1
+ export interface StepItem {
2
+ title: string;
3
+ description?: string;
4
+ }
5
+ export interface StepsProps {
6
+ current?: number;
7
+ steps?: StepItem[];
8
+ direction?: 'horizontal' | 'vertical';
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { StepsProps } from './Steps';
2
+ declare const __VLS_export: import("vue").DefineComponent<StepsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepsProps> & Readonly<{}>, {
3
+ direction: "horizontal" | "vertical";
4
+ current: number;
5
+ steps: import("./Steps").StepItem[];
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Steps } from './Steps.vue';
2
+ export type { StepsProps, StepItem } from './Steps';
@@ -0,0 +1,29 @@
1
+ export type SwitchSize = 'small' | 'medium' | 'large';
2
+ export interface SwitchProps {
3
+ /** 绑定值 (v-model) */
4
+ modelValue?: boolean | string | number;
5
+ /** 选中时的值 @default true */
6
+ activeValue?: boolean | string | number;
7
+ /** 未选中时的值 @default false */
8
+ inactiveValue?: boolean | string | number;
9
+ /** 尺寸 @default 'medium' */
10
+ size?: SwitchSize;
11
+ /** 是否禁用 @default false */
12
+ disabled?: boolean;
13
+ /** 是否加载中 @default false */
14
+ loading?: boolean;
15
+ /** 选中时的文字 */
16
+ checkedText?: string;
17
+ /** 未选中时的文字 */
18
+ uncheckedText?: string;
19
+ /** 选中时的图标 */
20
+ checkedIcon?: string;
21
+ /** 未选中时的图标 */
22
+ uncheckedIcon?: string;
23
+ /** 切换前的钩子函数,返回 false 可阻止切换 */
24
+ beforeChange?: (value: boolean | string | number) => boolean | Promise<boolean>;
25
+ }
26
+ export interface SwitchEmits {
27
+ (e: 'update:modelValue', value: boolean | string | number): void;
28
+ (e: 'change', value: boolean | string | number): void;
29
+ }
@@ -0,0 +1,16 @@
1
+ import type { SwitchProps } from './Switch';
2
+ declare const __VLS_export: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: string | number | boolean) => any;
4
+ change: (value: string | number | boolean) => any;
5
+ }, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
7
+ onChange?: ((value: string | number | boolean) => any) | undefined;
8
+ }>, {
9
+ size: import("./Switch").SwitchSize;
10
+ disabled: boolean;
11
+ loading: boolean;
12
+ activeValue: boolean | string | number;
13
+ inactiveValue: boolean | string | number;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import Switch from './Switch.vue';
2
+ import type { SwitchProps, SwitchEmits } from './Switch';
3
+ export { Switch, type SwitchProps, type SwitchEmits };
4
+ export default Switch;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface TableColumn {
2
+ key: string;
3
+ label: string;
4
+ width?: string;
5
+ }
6
+ export interface TableProps {
7
+ columns?: TableColumn[];
8
+ data?: any[];
9
+ stripe?: boolean;
10
+ border?: boolean;
11
+ }
@@ -0,0 +1,22 @@
1
+ import type { TableProps } from './Table';
2
+ declare var __VLS_2: `cell-${string}`, __VLS_3: {
3
+ row: any;
4
+ index: number;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ [K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<TableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableProps> & Readonly<{}>, {
10
+ data: any[];
11
+ columns: import("./Table").TableColumn[];
12
+ stripe: boolean;
13
+ border: boolean;
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,2 @@
1
+ export { default as Table } from './Table.vue';
2
+ export type { TableProps, TableColumn } from './Table';
@@ -0,0 +1,22 @@
1
+ export type TabsType = 'line' | 'card';
2
+ export interface TabItem {
3
+ key: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ closable?: boolean;
7
+ }
8
+ export interface TabsProps {
9
+ /** 当前激活的标签页 (v-model) */
10
+ modelValue?: string;
11
+ /** 标签页列表 */
12
+ items?: TabItem[];
13
+ /** 类型 @default 'line' */
14
+ type?: TabsType;
15
+ /** 是否可关闭 @default false */
16
+ closable?: boolean;
17
+ }
18
+ export interface TabsEmits {
19
+ (e: 'update:modelValue', value: string): void;
20
+ (e: 'change', value: string): void;
21
+ (e: 'close', key: string): void;
22
+ }
@@ -0,0 +1,26 @@
1
+ import type { TabsProps, TabItem } from './Tabs';
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<TabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value: string) => any;
8
+ change: (value: string) => any;
9
+ close: (key: string) => any;
10
+ }, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ onChange?: ((value: string) => any) | undefined;
13
+ onClose?: ((key: string) => any) | undefined;
14
+ }>, {
15
+ type: import("./Tabs").TabsType;
16
+ closable: boolean;
17
+ items: TabItem[];
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,4 @@
1
+ import Tabs from './Tabs.vue';
2
+ import type { TabsProps, TabsEmits, TabItem } from './Tabs';
3
+ export { Tabs, type TabsProps, type TabsEmits, type TabItem };
4
+ export default Tabs;
@@ -0,0 +1,15 @@
1
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
2
+ export type TagSize = 'small' | 'medium' | 'large';
3
+ export interface TagProps {
4
+ /** 类型 @default 'default' */
5
+ type?: TagType;
6
+ /** 尺寸 @default 'medium' */
7
+ size?: TagSize;
8
+ /** 是否可关闭 @default false */
9
+ closable?: boolean;
10
+ /** 是否圆角 @default false */
11
+ round?: boolean;
12
+ }
13
+ export interface TagEmits {
14
+ (e: 'close', event: MouseEvent): void;
15
+ }
@@ -0,0 +1,23 @@
1
+ import type { TagProps } from './Tag';
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<TagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ close: (event: MouseEvent) => any;
8
+ }, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{
9
+ onClose?: ((event: MouseEvent) => any) | undefined;
10
+ }>, {
11
+ type: import("./Tag").TagType;
12
+ size: import("./Tag").TagSize;
13
+ round: boolean;
14
+ closable: boolean;
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,4 @@
1
+ import Tag from './Tag.vue';
2
+ import type { TagProps, TagEmits } from './Tag';
3
+ export { Tag, type TagProps, type TagEmits };
4
+ export default Tag;
@@ -0,0 +1,9 @@
1
+ export interface TimePickerProps {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface TimePickerEmits {
7
+ (e: 'update:modelValue', value: string): void;
8
+ (e: 'change', value: string): void;
9
+ }
@@ -0,0 +1,13 @@
1
+ import type { TimePickerProps } from './TimePicker';
2
+ declare const __VLS_export: import("vue").DefineComponent<TimePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: string) => any;
4
+ change: (value: string) => any;
5
+ }, string, import("vue").PublicProps, Readonly<TimePickerProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
7
+ onChange?: ((value: string) => any) | undefined;
8
+ }>, {
9
+ disabled: boolean;
10
+ placeholder: string;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as TimePicker } from './TimePicker.vue';
2
+ export type { TimePickerProps, TimePickerEmits } from './TimePicker';
@@ -0,0 +1,9 @@
1
+ export interface TimelineItem {
2
+ title: string;
3
+ description?: string;
4
+ timestamp?: string;
5
+ type?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
6
+ }
7
+ export interface TimelineProps {
8
+ items?: TimelineItem[];
9
+ }
@@ -0,0 +1,6 @@
1
+ import type { TimelineProps } from './Timeline';
2
+ declare const __VLS_export: import("vue").DefineComponent<TimelineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
3
+ items: import("./Timeline").TimelineItem[];
4
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Timeline } from './Timeline.vue';
2
+ export type { TimelineProps, TimelineItem } from './Timeline';
@@ -0,0 +1,21 @@
1
+ export type ToastType = 'success' | 'error' | 'warning' | 'info';
2
+ export type ToastPosition = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
3
+ export interface ToastProps {
4
+ /** 提示内容 */
5
+ message: string;
6
+ /** 类型 @default 'info' */
7
+ type?: ToastType;
8
+ /** 显示时长(毫秒)@default 3000 */
9
+ duration?: number;
10
+ /** 位置 @default 'top' */
11
+ position?: ToastPosition;
12
+ /** 是否显示关闭按钮 @default false */
13
+ closable?: boolean;
14
+ }
15
+ export interface ToastInstance {
16
+ id: string;
17
+ message: string;
18
+ type: ToastType;
19
+ visible: boolean;
20
+ close: () => void;
21
+ }
@@ -0,0 +1,15 @@
1
+ import type { ToastProps, ToastInstance, ToastType } from './Toast';
2
+ declare const __VLS_export: import("vue").DefineComponent<ToastProps, {
3
+ show: (message: string, type?: ToastType, duration?: number) => ToastInstance;
4
+ success: (message: string, duration?: number) => ToastInstance;
5
+ error: (message: string, duration?: number) => ToastInstance;
6
+ warning: (message: string, duration?: number) => ToastInstance;
7
+ info: (message: string, duration?: number) => ToastInstance;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{}>, {
9
+ type: ToastType;
10
+ duration: number;
11
+ closable: boolean;
12
+ position: import("./Toast").ToastPosition;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import Toast from './Toast.vue';
2
+ import type { ToastProps, ToastInstance } from './Toast';
3
+ export { Toast, type ToastProps, type ToastInstance };
4
+ export default Toast;
@@ -0,0 +1,16 @@
1
+ export type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
2
+ export type TooltipTrigger = 'hover' | 'click' | 'focus';
3
+ export interface TooltipProps {
4
+ /** 提示内容 */
5
+ content?: string;
6
+ /** 位置 @default 'top' */
7
+ placement?: TooltipPlacement;
8
+ /** 触发方式 @default 'hover' */
9
+ trigger?: TooltipTrigger;
10
+ /** 是否禁用 @default false */
11
+ disabled?: boolean;
12
+ /** 显示延迟(毫秒)@default 100 */
13
+ showDelay?: number;
14
+ /** 隐藏延迟(毫秒)@default 100 */
15
+ hideDelay?: number;
16
+ }
@@ -0,0 +1,22 @@
1
+ import type { TooltipProps } from './Tooltip';
2
+ declare var __VLS_1: {}, __VLS_15: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ content?: (props: typeof __VLS_15) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ placement: import("./Tooltip").TooltipPlacement;
11
+ trigger: import("./Tooltip").TooltipTrigger;
12
+ showDelay: number;
13
+ hideDelay: 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,4 @@
1
+ import Tooltip from './Tooltip.vue';
2
+ import type { TooltipProps } from './Tooltip';
3
+ export { Tooltip, type TooltipProps };
4
+ export default Tooltip;
@@ -0,0 +1,14 @@
1
+ export interface TransferItem {
2
+ key: string | number;
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface TransferProps {
7
+ modelValue?: (string | number)[];
8
+ data?: TransferItem[];
9
+ titles?: [string, string];
10
+ }
11
+ export interface TransferEmits {
12
+ (e: 'update:modelValue', value: (string | number)[]): void;
13
+ (e: 'change', value: (string | number)[]): void;
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { TransferProps } from './Transfer';
2
+ declare const __VLS_export: import("vue").DefineComponent<TransferProps, {}, {}, {}, {}, 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<TransferProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
7
+ onChange?: ((value: (string | number)[]) => any) | undefined;
8
+ }>, {
9
+ modelValue: (string | number)[];
10
+ data: import("./Transfer").TransferItem[];
11
+ titles: [string, string];
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Transfer } from './Transfer.vue';
2
+ export type { TransferProps, TransferEmits, TransferItem } from './Transfer';
@@ -0,0 +1,17 @@
1
+ export interface UploadFile {
2
+ name: string;
3
+ size: number;
4
+ url?: string;
5
+ status?: 'uploading' | 'success' | 'error';
6
+ }
7
+ export interface UploadProps {
8
+ accept?: string;
9
+ multiple?: boolean;
10
+ disabled?: boolean;
11
+ maxSize?: number;
12
+ fileList?: UploadFile[];
13
+ }
14
+ export interface UploadEmits {
15
+ (e: 'change', files: File[]): void;
16
+ (e: 'remove', file: UploadFile): void;
17
+ }
@@ -0,0 +1,24 @@
1
+ import type { UploadProps, UploadFile } from './Upload';
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<UploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ change: (files: File[]) => any;
8
+ remove: (file: UploadFile) => any;
9
+ }, string, import("vue").PublicProps, Readonly<UploadProps> & Readonly<{
10
+ onChange?: ((files: File[]) => any) | undefined;
11
+ onRemove?: ((file: UploadFile) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ multiple: boolean;
15
+ fileList: UploadFile[];
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,2 @@
1
+ export { default as Upload } from './Upload.vue';
2
+ export type { UploadProps, UploadEmits, UploadFile } from './Upload';
@@ -0,0 +1,49 @@
1
+ import type { App as VueApp } from 'vue';
2
+ export { Button, type ButtonProps, type ButtonEmits, type ButtonInstance } from './components/button';
3
+ export { Input, type InputProps, type InputEmits, type InputInstance } from './components/input';
4
+ export { Checkbox, type CheckboxProps, type CheckboxEmits, type CheckboxInstance } from './components/checkbox';
5
+ export { Radio, type RadioProps, type RadioEmits, type RadioInstance } from './components/radio';
6
+ export { Switch, type SwitchProps, type SwitchEmits } from './components/switch';
7
+ export { Slider, type SliderProps, type SliderEmits } from './components/slider';
8
+ export { Select, type SelectProps, type SelectEmits, type SelectOption } from './components/select';
9
+ export { Modal, type ModalProps, type ModalEmits } from './components/modal';
10
+ export { Toast, type ToastProps, type ToastInstance } from './components/toast';
11
+ export { Tooltip, type TooltipProps } from './components/tooltip';
12
+ export { Loading, type LoadingProps } from './components/loading';
13
+ export { Tabs, type TabsProps, type TabsEmits, type TabItem } from './components/tabs';
14
+ export { Breadcrumb, type BreadcrumbProps, type BreadcrumbEmits, type BreadcrumbItem } from './components/breadcrumb';
15
+ export { Pagination, type PaginationProps, type PaginationEmits } from './components/pagination';
16
+ export { Link, type LinkProps, type LinkEmits } from './components/link';
17
+ export { Space, type SpaceProps } from './components/space';
18
+ export { Divider, type DividerProps } from './components/divider';
19
+ export { Tag, type TagProps, type TagEmits } from './components/tag';
20
+ export { Badge, type BadgeProps } from './components/badge';
21
+ export { Rate, type RateProps, type RateEmits } from './components/rate';
22
+ export { InputNumber, type InputNumberProps, type InputNumberEmits } from './components/input-number';
23
+ export { Progress, type ProgressProps } from './components/progress';
24
+ export { Autocomplete, type AutocompleteProps, type AutocompleteEmits } from './components/autocomplete';
25
+ export { Cascader, type CascaderProps, type CascaderEmits, type CascaderOption } from './components/cascader';
26
+ export { DatePicker, type DatePickerProps, type DatePickerEmits } from './components/date-picker';
27
+ export { TimePicker, type TimePickerProps, type TimePickerEmits } from './components/time-picker';
28
+ export { Transfer, type TransferProps, type TransferEmits, type TransferItem } from './components/transfer';
29
+ export { Upload, type UploadProps, type UploadEmits, type UploadFile } from './components/upload';
30
+ export { Avatar, type AvatarProps } from './components/avatar';
31
+ export { Card, type CardProps } from './components/card';
32
+ export { Carousel, type CarouselProps, type CarouselEmits } from './components/carousel';
33
+ export { Collapse, type CollapseProps, type CollapseEmits, type CollapseItem } from './components/collapse';
34
+ export { Empty, type EmptyProps } from './components/empty';
35
+ export { Image, type ImageProps, type ImageEmits } from './components/image';
36
+ export { Table, type TableProps, type TableColumn } from './components/table';
37
+ export { Timeline, type TimelineProps, type TimelineItem } from './components/timeline';
38
+ export { Skeleton, type SkeletonProps } from './components/skeleton';
39
+ export { Alert, type AlertProps, type AlertEmits } from './components/alert';
40
+ export { Drawer, type DrawerProps, type DrawerEmits } from './components/drawer';
41
+ export { Dropdown, type DropdownProps, type DropdownEmits, type DropdownItem } from './components/dropdown';
42
+ export { Steps, type StepsProps, type StepItem } from './components/steps';
43
+ export { Backtop, type BacktopProps, type BacktopEmits } from './components/backtop';
44
+ export { Menu, type MenuProps, type MenuEmits, type MenuItem } from './components/menu';
45
+ export { Popover, type PopoverProps } from './components/popover';
46
+ declare const _default: {
47
+ install(app: VueApp): void;
48
+ };
49
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};