yc-design-vue 1.0.1 → 1.0.3

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 (255) hide show
  1. package/es/Affix/type.d.ts +3 -2
  2. package/es/Alert/type.d.ts +6 -5
  3. package/es/Anchor/type.d.ts +4 -3
  4. package/es/AutoComplete/index.d.ts +65 -2
  5. package/es/AutoComplete/index.vue.d.ts +130 -4
  6. package/es/AutoComplete/type.d.ts +5 -4
  7. package/es/Avatar/AvatarGroup.vue.js +1 -1
  8. package/es/Avatar/AvatarGroup.vue2.js +2 -2
  9. package/es/Avatar/type.d.ts +4 -4
  10. package/es/BackTop/type.d.ts +2 -1
  11. package/es/Badge/index.vue.js +1 -1
  12. package/es/Badge/index.vue2.js +2 -2
  13. package/es/Badge/type.d.ts +3 -3
  14. package/es/Breadcrumb/type.d.ts +9 -8
  15. package/es/Button/Button.vue.js +1 -1
  16. package/es/Button/Button.vue2.js +2 -2
  17. package/es/Button/type.d.ts +4 -3
  18. package/es/Calendar/type.d.ts +5 -4
  19. package/es/Card/type.d.ts +10 -10
  20. package/es/Carousel/type.d.ts +3 -2
  21. package/es/Cascader/type.d.ts +10 -10
  22. package/es/Checkbox/hooks/useContext.d.ts +2 -5
  23. package/es/Checkbox/type.d.ts +9 -8
  24. package/es/Collapse/type.d.ts +9 -8
  25. package/es/Comment/type.d.ts +7 -6
  26. package/es/ConfigProvider/index.vue.js +2 -2
  27. package/es/ConfigProvider/type.d.ts +5 -4
  28. package/es/Descriptions/type.d.ts +9 -9
  29. package/es/Divider/type.d.ts +2 -1
  30. package/es/Drawer/Drawer.vue.js +1 -1
  31. package/es/Drawer/Drawer.vue2.js +6 -7
  32. package/es/Drawer/type.d.ts +5 -5
  33. package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
  34. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  35. package/es/Dropdown/Dsubmenu.vue2.js +2 -2
  36. package/es/Dropdown/index.d.ts +65 -2
  37. package/es/Dropdown/type.d.ts +15 -14
  38. package/es/Empty/type.d.ts +2 -1
  39. package/es/Grid/type.d.ts +6 -5
  40. package/es/Icon/type.d.ts +2 -1
  41. package/es/Image/type.d.ts +11 -10
  42. package/es/Input/hooks/useCursor.d.ts +2 -1
  43. package/es/Input/hooks/useCursor.js +2 -2
  44. package/es/Input/type.d.ts +6 -5
  45. package/es/InputNumber/type.d.ts +8 -8
  46. package/es/InputTag/type.d.ts +5 -4
  47. package/es/Layout/Layout.vue.js +1 -1
  48. package/es/Layout/Layout.vue2.js +2 -2
  49. package/es/Layout/type.d.ts +8 -7
  50. package/es/Link/type.d.ts +3 -2
  51. package/es/List/List.vue.js +1 -1
  52. package/es/List/List.vue2.js +1 -1
  53. package/es/List/type.d.ts +15 -14
  54. package/es/Mention/index.d.ts +65 -2
  55. package/es/Mention/index.vue.d.ts +130 -4
  56. package/es/Mention/type.d.ts +3 -2
  57. package/es/Menu/type.d.ts +11 -10
  58. package/es/Message/type.d.ts +1 -1
  59. package/es/Modal/Modal.vue.js +1 -1
  60. package/es/Modal/Modal.vue2.js +4 -6
  61. package/es/Modal/hooks/useModalClose.d.ts +2 -1
  62. package/es/Modal/hooks/useModalClose.js +1 -6
  63. package/es/Modal/type.d.ts +5 -5
  64. package/es/Notification/type.d.ts +1 -1
  65. package/es/OverflowList/index.vue.js +1 -1
  66. package/es/OverflowList/index.vue2.js +4 -4
  67. package/es/OverflowList/type.d.ts +3 -2
  68. package/es/PageHeader/type.d.ts +7 -6
  69. package/es/Pagination/type.d.ts +8 -8
  70. package/es/Popconfirm/index.d.ts +65 -2
  71. package/es/Popconfirm/index.vue.d.ts +130 -4
  72. package/es/Popconfirm/type.d.ts +4 -4
  73. package/es/Popover/type.d.ts +4 -4
  74. package/es/Radio/hooks/useContext.d.ts +3 -6
  75. package/es/Radio/type.d.ts +9 -8
  76. package/es/Rate/type.d.ts +3 -2
  77. package/es/ResizeBox/type.d.ts +6 -5
  78. package/es/Result/type.d.ts +6 -5
  79. package/es/Scrollbar/Scrollbar.vue.js +1 -1
  80. package/es/Scrollbar/type.d.ts +2 -2
  81. package/es/Select/Select.vue.d.ts +130 -4
  82. package/es/Select/SelectView.vue.js +1 -1
  83. package/es/Select/SelectView.vue2.js +1 -1
  84. package/es/Select/index.d.ts +65 -2
  85. package/es/Select/type.d.ts +19 -18
  86. package/es/Skeleton/type.d.ts +3 -2
  87. package/es/Space/index.vue.js +1 -1
  88. package/es/Space/index.vue2.js +2 -2
  89. package/es/Space/type.d.ts +3 -2
  90. package/es/Spin/index.vue.js +1 -1
  91. package/es/Spin/index.vue2.js +1 -1
  92. package/es/Spin/type.d.ts +4 -3
  93. package/es/Split/type.d.ts +5 -4
  94. package/es/Statistic/type.d.ts +7 -7
  95. package/es/Steps/type.d.ts +8 -7
  96. package/es/Switch/index.vue.js +1 -1
  97. package/es/Switch/index.vue2.js +3 -3
  98. package/es/Switch/type.d.ts +5 -4
  99. package/es/Tabs/Tabs.vue.js +1 -1
  100. package/es/Tabs/Tabs.vue2.js +2 -2
  101. package/es/Tabs/type.d.ts +5 -4
  102. package/es/Tag/type.d.ts +4 -3
  103. package/es/TimePicker/type.d.ts +4 -3
  104. package/es/Timeline/type.d.ts +6 -5
  105. package/es/Tooltip/type.d.ts +3 -3
  106. package/es/Transfer/type.d.ts +13 -12
  107. package/es/Trigger/hooks/useContext.js +1 -1
  108. package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  109. package/es/Trigger/hooks/useTriggerPosition.js +12 -22
  110. package/es/Trigger/hooks/useTriggerVisible.js +1 -2
  111. package/es/Trigger/index.d.ts +63 -2
  112. package/es/Trigger/index.vue.d.ts +130 -3
  113. package/es/Trigger/index.vue.js +1 -1
  114. package/es/Trigger/index.vue2.js +2 -2
  115. package/es/Trigger/type.d.ts +3 -3
  116. package/es/Typography/type.d.ts +8 -7
  117. package/es/Watermark/type.d.ts +2 -1
  118. package/es/_shared/type/index.d.ts +1 -6
  119. package/es/_shared/utils/dom.d.ts +5 -5
  120. package/es/_shared/utils/dom.js +8 -9
  121. package/es/_shared/utils/fn.d.ts +3 -3
  122. package/es/_shared/utils/fn.js +6 -6
  123. package/es/_shared/utils/global-config.d.ts +4 -2
  124. package/es/_shared/utils/vue-utils.d.ts +1 -2
  125. package/es/_shared/utils/vue-utils.js +2 -7
  126. package/es/index.d.ts +66 -3
  127. package/es/style.css +1 -1
  128. package/lib/Affix/type.d.ts +3 -2
  129. package/lib/Alert/type.d.ts +6 -5
  130. package/lib/Anchor/type.d.ts +4 -3
  131. package/lib/AutoComplete/index.d.ts +65 -2
  132. package/lib/AutoComplete/index.vue.d.ts +130 -4
  133. package/lib/AutoComplete/type.d.ts +5 -4
  134. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  135. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  136. package/lib/Avatar/type.d.ts +4 -4
  137. package/lib/BackTop/type.d.ts +2 -1
  138. package/lib/Badge/index.vue.js +1 -1
  139. package/lib/Badge/index.vue2.js +1 -1
  140. package/lib/Badge/type.d.ts +3 -3
  141. package/lib/Breadcrumb/type.d.ts +9 -8
  142. package/lib/Button/Button.vue.js +1 -1
  143. package/lib/Button/Button.vue2.js +1 -1
  144. package/lib/Button/type.d.ts +4 -3
  145. package/lib/Calendar/type.d.ts +5 -4
  146. package/lib/Card/type.d.ts +10 -10
  147. package/lib/Carousel/type.d.ts +3 -2
  148. package/lib/Cascader/type.d.ts +10 -10
  149. package/lib/Checkbox/hooks/useContext.d.ts +2 -5
  150. package/lib/Checkbox/type.d.ts +9 -8
  151. package/lib/Collapse/type.d.ts +9 -8
  152. package/lib/Comment/type.d.ts +7 -6
  153. package/lib/ConfigProvider/index.vue.js +1 -1
  154. package/lib/ConfigProvider/type.d.ts +5 -4
  155. package/lib/Descriptions/type.d.ts +9 -9
  156. package/lib/Divider/type.d.ts +2 -1
  157. package/lib/Drawer/Drawer.vue.js +1 -1
  158. package/lib/Drawer/Drawer.vue2.js +1 -1
  159. package/lib/Drawer/type.d.ts +5 -5
  160. package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
  161. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  162. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  163. package/lib/Dropdown/index.d.ts +65 -2
  164. package/lib/Dropdown/type.d.ts +15 -14
  165. package/lib/Empty/type.d.ts +2 -1
  166. package/lib/Grid/type.d.ts +6 -5
  167. package/lib/Icon/type.d.ts +2 -1
  168. package/lib/Image/type.d.ts +11 -10
  169. package/lib/Input/hooks/useCursor.d.ts +2 -1
  170. package/lib/Input/hooks/useCursor.js +1 -1
  171. package/lib/Input/type.d.ts +6 -5
  172. package/lib/InputNumber/type.d.ts +8 -8
  173. package/lib/InputTag/type.d.ts +5 -4
  174. package/lib/Layout/Layout.vue.js +1 -1
  175. package/lib/Layout/Layout.vue2.js +1 -1
  176. package/lib/Layout/type.d.ts +8 -7
  177. package/lib/Link/type.d.ts +3 -2
  178. package/lib/List/List.vue.js +1 -1
  179. package/lib/List/List.vue2.js +1 -1
  180. package/lib/List/type.d.ts +15 -14
  181. package/lib/Mention/index.d.ts +65 -2
  182. package/lib/Mention/index.vue.d.ts +130 -4
  183. package/lib/Mention/type.d.ts +3 -2
  184. package/lib/Menu/type.d.ts +11 -10
  185. package/lib/Message/type.d.ts +1 -1
  186. package/lib/Modal/Modal.vue.js +1 -1
  187. package/lib/Modal/Modal.vue2.js +1 -1
  188. package/lib/Modal/hooks/useModalClose.d.ts +2 -1
  189. package/lib/Modal/hooks/useModalClose.js +1 -1
  190. package/lib/Modal/type.d.ts +5 -5
  191. package/lib/Notification/type.d.ts +1 -1
  192. package/lib/OverflowList/index.vue.js +1 -1
  193. package/lib/OverflowList/index.vue2.js +1 -1
  194. package/lib/OverflowList/type.d.ts +3 -2
  195. package/lib/PageHeader/type.d.ts +7 -6
  196. package/lib/Pagination/type.d.ts +8 -8
  197. package/lib/Popconfirm/index.d.ts +65 -2
  198. package/lib/Popconfirm/index.vue.d.ts +130 -4
  199. package/lib/Popconfirm/type.d.ts +4 -4
  200. package/lib/Popover/type.d.ts +4 -4
  201. package/lib/Radio/hooks/useContext.d.ts +3 -6
  202. package/lib/Radio/type.d.ts +9 -8
  203. package/lib/Rate/type.d.ts +3 -2
  204. package/lib/ResizeBox/type.d.ts +6 -5
  205. package/lib/Result/type.d.ts +6 -5
  206. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  207. package/lib/Scrollbar/type.d.ts +2 -2
  208. package/lib/Select/Select.vue.d.ts +130 -4
  209. package/lib/Select/SelectView.vue.js +1 -1
  210. package/lib/Select/SelectView.vue2.js +1 -1
  211. package/lib/Select/index.d.ts +65 -2
  212. package/lib/Select/type.d.ts +19 -18
  213. package/lib/Skeleton/type.d.ts +3 -2
  214. package/lib/Space/index.vue.js +1 -1
  215. package/lib/Space/index.vue2.js +1 -1
  216. package/lib/Space/type.d.ts +3 -2
  217. package/lib/Spin/index.vue.js +1 -1
  218. package/lib/Spin/index.vue2.js +1 -1
  219. package/lib/Spin/type.d.ts +4 -3
  220. package/lib/Split/type.d.ts +5 -4
  221. package/lib/Statistic/type.d.ts +7 -7
  222. package/lib/Steps/type.d.ts +8 -7
  223. package/lib/Switch/index.vue.js +1 -1
  224. package/lib/Switch/index.vue2.js +1 -1
  225. package/lib/Switch/type.d.ts +5 -4
  226. package/lib/Tabs/Tabs.vue.js +1 -1
  227. package/lib/Tabs/Tabs.vue2.js +1 -1
  228. package/lib/Tabs/type.d.ts +5 -4
  229. package/lib/Tag/type.d.ts +4 -3
  230. package/lib/TimePicker/type.d.ts +4 -3
  231. package/lib/Timeline/type.d.ts +6 -5
  232. package/lib/Tooltip/type.d.ts +3 -3
  233. package/lib/Transfer/type.d.ts +13 -12
  234. package/lib/Trigger/hooks/useContext.js +1 -1
  235. package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  236. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  237. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  238. package/lib/Trigger/index.d.ts +63 -2
  239. package/lib/Trigger/index.vue.d.ts +130 -3
  240. package/lib/Trigger/index.vue.js +1 -1
  241. package/lib/Trigger/index.vue2.js +1 -1
  242. package/lib/Trigger/type.d.ts +3 -3
  243. package/lib/Typography/type.d.ts +8 -7
  244. package/lib/Watermark/type.d.ts +2 -1
  245. package/lib/_shared/type/index.d.ts +1 -6
  246. package/lib/_shared/utils/dom.d.ts +5 -5
  247. package/lib/_shared/utils/dom.js +1 -1
  248. package/lib/_shared/utils/fn.d.ts +3 -3
  249. package/lib/_shared/utils/fn.js +1 -1
  250. package/lib/_shared/utils/global-config.d.ts +4 -2
  251. package/lib/_shared/utils/vue-utils.d.ts +1 -2
  252. package/lib/_shared/utils/vue-utils.js +1 -1
  253. package/lib/index.d.ts +66 -3
  254. package/lib/style.css +1 -1
  255. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import { ObjectData, PopupContainer, Theme, Size } from '../_shared/type';
2
2
  import { TriggerProps, TriggerType } from '../Trigger';
3
3
  import { ButtonProps, ButtonType } from '../Button';
4
+ import { VNode } from 'vue';
4
5
  export interface DropdownProps {
5
6
  popupVisible?: boolean;
6
7
  defaultPopupVisible?: boolean;
@@ -19,9 +20,9 @@ export interface DropdownEmits {
19
20
  (e: 'select', value: DoptionValue, ev: MouseEvent): void;
20
21
  }
21
22
  export interface DropdownSlots {
22
- default(): void;
23
- content(): void;
24
- footer(): void;
23
+ default?: () => VNode[];
24
+ content?: () => VNode[];
25
+ footer?: () => VNode[];
25
26
  }
26
27
  export interface DropdownExpose {
27
28
  show(): void;
@@ -34,9 +35,9 @@ export interface DoptionProps {
34
35
  isActive?: boolean;
35
36
  }
36
37
  export interface DoptionSlots {
37
- default(): void;
38
- icon(): void;
39
- suffix(): void;
38
+ default?: () => VNode[];
39
+ icon?: () => VNode[];
40
+ suffix?: () => VNode[];
40
41
  }
41
42
  export interface DsubmenuProps {
42
43
  disabled?: boolean;
@@ -52,16 +53,16 @@ export interface DsubmenuEmits {
52
53
  (e: 'popup-visible-change', value: boolean): void;
53
54
  }
54
55
  export interface DsubmenuSlots {
55
- content(): void;
56
- default(): void;
57
- footer(): void;
56
+ content?: () => VNode[];
57
+ default?: () => VNode[];
58
+ footer?: () => VNode[];
58
59
  }
59
60
  export interface DgroupProps {
60
61
  title?: string;
61
62
  }
62
63
  export interface DgroupSlots {
63
- title(): void;
64
- default(): void;
64
+ title?: () => VNode[];
65
+ default?: () => VNode[];
65
66
  }
66
67
  export interface DropdownButtonProps {
67
68
  popupVisible?: boolean;
@@ -76,9 +77,9 @@ export interface DropdownButtonProps {
76
77
  hideOnSelect?: boolean;
77
78
  }
78
79
  export interface DropdownButtonSlots {
79
- content(): void;
80
- default(): void;
81
- icon(): void;
80
+ content?: () => VNode[];
81
+ default?: () => VNode[];
82
+ icon?: () => VNode[];
82
83
  }
83
84
  export type DoptionValue = string | number | boolean | ObjectData;
84
85
  export type DropdownPosition = 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl';
@@ -1,7 +1,8 @@
1
+ import { VNode } from 'vue';
1
2
  export interface EmptyProps {
2
3
  description?: string;
3
4
  imgSrc?: string;
4
5
  }
5
6
  export interface EmptySlots {
6
- image(): void;
7
+ image?: () => VNode[];
7
8
  }
package/es/Grid/type.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface GridProps {
2
3
  cols?: number | ResponsiveValue;
3
4
  rowGap?: number | ResponsiveValue;
@@ -6,7 +7,7 @@ export interface GridProps {
6
7
  collapsedRows?: number;
7
8
  }
8
9
  export interface GridSlots {
9
- default(): void;
10
+ default?: () => VNode[];
10
11
  }
11
12
  export interface GridItemProps {
12
13
  span?: number | ResponsiveValue;
@@ -14,9 +15,9 @@ export interface GridItemProps {
14
15
  suffix?: boolean;
15
16
  }
16
17
  export interface GridItemSlots {
17
- default(scope: {
18
+ default?: (scope: {
18
19
  overflow: boolean;
19
- }): void;
20
+ }) => void;
20
21
  }
21
22
  export interface GridRowProps {
22
23
  gutter?: Gutter | [Gutter, Gutter];
@@ -26,7 +27,7 @@ export interface GridRowProps {
26
27
  wrap?: boolean;
27
28
  }
28
29
  export interface GridRowSlots {
29
- default(): void;
30
+ default?: () => VNode[];
30
31
  }
31
32
  export interface GridColProps {
32
33
  span?: number | ResponsiveValue;
@@ -35,7 +36,7 @@ export interface GridColProps {
35
36
  flex?: GridColFlex | ResponsiveValue;
36
37
  }
37
38
  export interface GridColSlots {
38
- default(): void;
39
+ default?: () => VNode[];
39
40
  }
40
41
  export type ResponsiveValue<T = number | string> = {
41
42
  xs?: T;
package/es/Icon/type.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ObjectData } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface IconProps {
3
4
  type?: string;
4
5
  size?: number | string | number[];
@@ -6,7 +7,7 @@ export interface IconProps {
6
7
  spin?: boolean;
7
8
  }
8
9
  export interface IconSlots {
9
- default(): void;
10
+ default?: () => VNode[];
10
11
  }
11
12
  export interface IconFontOptions {
12
13
  src?: string;
@@ -1,4 +1,5 @@
1
1
  import { ClassName, PopupContainer } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface ImageProps {
3
4
  src?: string;
4
5
  width?: number | string;
@@ -21,11 +22,11 @@ export interface ImageEmits {
21
22
  (e: 'preview-visible-change', visible: boolean): void;
22
23
  }
23
24
  export interface ImageSlots {
24
- error(): void;
25
- ['error-icon'](): void;
26
- loader(): void;
27
- extra(): void;
28
- ['preview-actions'](): void;
25
+ error?: () => VNode[];
26
+ 'error-icon'?: () => VNode[];
27
+ loader?: () => VNode[];
28
+ extra?: () => VNode[];
29
+ 'preview-actions'?: () => VNode[];
29
30
  }
30
31
  export interface ImagePreviewProps {
31
32
  src?: string;
@@ -46,8 +47,8 @@ export interface ImagePreviewEmits {
46
47
  (e: 'close'): void;
47
48
  }
48
49
  export interface ImagePreviewSlots {
49
- actions(): void;
50
- arrow(): void;
50
+ actions?: () => VNode[];
51
+ arrow?: () => VNode[];
51
52
  }
52
53
  export interface ImagePreviewGroupProps extends Omit<ImagePreviewProps, 'src'> {
53
54
  srcList?: string[];
@@ -62,8 +63,8 @@ export interface ImagePreviewGroupEmits {
62
63
  (e: 'visible-change', value: boolean): void;
63
64
  }
64
65
  export interface ImagePreviewGroupSlots {
65
- actions(): void;
66
- default(): void;
66
+ actions?: () => VNode[];
67
+ default?: () => VNode[];
67
68
  }
68
69
  export interface ImagePreviewActionProps {
69
70
  name?: string;
@@ -75,7 +76,7 @@ export interface ImagePreviewActionEmits {
75
76
  (e: 'contextmenu', ev: MouseEvent): void;
76
77
  }
77
78
  export interface ImagePreviewActionSlots {
78
- default(): void;
79
+ default?: () => VNode[];
79
80
  }
80
81
  export type ImageObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
81
82
  export type HideFooter = boolean | 'never';
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- export default function useCursor(input: Ref<HTMLInputElement | HTMLTextAreaElement | undefined>): {
2
+ declare const _default: (input: Ref<HTMLInputElement | HTMLTextAreaElement | undefined>) => {
3
3
  recordCursor: () => void;
4
4
  setCursor: () => void;
5
5
  getCursor: () => number | undefined;
@@ -17,3 +17,4 @@ export default function useCursor(input: Ref<HTMLInputElement | HTMLTextAreaElem
17
17
  afterTxt?: string;
18
18
  } | undefined>;
19
19
  };
20
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ref } from "vue";
2
- function useCursor(input) {
2
+ const useCursor = (input) => {
3
3
  const selectionRef = ref();
4
4
  function recordCursor() {
5
5
  if (!input.value) return;
@@ -46,7 +46,7 @@ function useCursor(input) {
46
46
  getCursor,
47
47
  selectionRef
48
48
  };
49
- }
49
+ };
50
50
  export {
51
51
  useCursor as default
52
52
  };
@@ -1,4 +1,5 @@
1
1
  import { Size, ObjectData } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface InputProps {
3
4
  modelValue?: string;
4
5
  defaultValue?: string;
@@ -32,11 +33,11 @@ export interface InputEmits {
32
33
  (e: 'blur', ev: FocusEvent): void;
33
34
  }
34
35
  export interface InputSlots {
35
- prefix(): void;
36
- suffix(): void;
37
- prepend(): void;
38
- append(): void;
39
- label(): void;
36
+ prefix?: () => VNode[];
37
+ suffix?: () => VNode[];
38
+ prepend?: () => VNode[];
39
+ append?: () => VNode[];
40
+ label?: () => VNode[];
40
41
  }
41
42
  export interface InputExpose {
42
43
  focus(): void;
@@ -1,4 +1,5 @@
1
1
  import { Size, ObjectData } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface InputNumberProps {
3
4
  modelValue?: InputNumberValue;
4
5
  defaultValue?: InputNumberValue;
@@ -30,14 +31,13 @@ export interface InputNumberEmits {
30
31
  (e: 'pressEnter', ev: KeyboardEvent): void;
31
32
  }
32
33
  export interface InputNumberSlots {
33
- plus(): void;
34
- minus(): void;
35
- suffix(): void;
36
- prefix(): void;
37
- suffix(): void;
38
- prepend(): void;
39
- append(): void;
40
- label(): void;
34
+ plus?: () => VNode[];
35
+ minus?: () => VNode[];
36
+ prefix?: () => VNode[];
37
+ suffix?: () => VNode[];
38
+ prepend?: () => VNode[];
39
+ append?: () => VNode[];
40
+ label?: () => VNode[];
41
41
  }
42
42
  export interface InputNumberExpose {
43
43
  focus(): void;
@@ -1,5 +1,6 @@
1
1
  import { Size, ObjectData } from '../_shared/type';
2
2
  import { TagProps } from '../Tag';
3
+ import { VNode } from 'vue';
3
4
  export interface InputTagProps {
4
5
  modelValue?: InputTagValue;
5
6
  defaultValue?: InputTagValue;
@@ -31,11 +32,11 @@ export interface InputTagEmits {
31
32
  (e: 'clear', ev: MouseEvent): void;
32
33
  }
33
34
  export interface InputTagSlots {
34
- tag(scope: {
35
+ tag?: (scope: {
35
36
  tag: ObjectData;
36
- }): void;
37
- prefix(): void;
38
- suffix(): void;
37
+ }) => VNode[];
38
+ prefix?: () => VNode[];
39
+ suffix?: () => VNode[];
39
40
  }
40
41
  export interface InputTagExpose {
41
42
  focus(): void;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Layout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-89d3b476"]]);
4
+ const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4f591662"]]);
5
5
  export {
6
6
  _Layout as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRefs, useSlots, computed, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
1
+ import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
4
  import { isUndefined } from "../_shared/utils/is.js";
@@ -15,9 +15,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  hasSider: { type: Boolean, default: void 0 }
16
16
  },
17
17
  setup(__props) {
18
+ const slots = useSlots();
18
19
  const props = __props;
19
20
  const { hasSider: _hasSider } = toRefs(props);
20
- const slots = useSlots();
21
21
  const hasSider = computed(() => {
22
22
  var _a;
23
23
  if (!isUndefined(_hasSider.value)) return _hasSider.value;
@@ -1,19 +1,20 @@
1
1
  import { BreakpointName } from '../Grid';
2
2
  import { Theme } from '../_shared/type';
3
+ import { VNode } from 'vue';
3
4
  export interface LayoutProps {
4
5
  hasSider?: boolean;
5
6
  }
6
7
  export interface LayoutSlots {
7
- default(): void;
8
+ default?: () => VNode[];
8
9
  }
9
10
  export interface LayoutHeaderSlots {
10
- default(): void;
11
+ default?: () => VNode[];
11
12
  }
12
13
  export interface LayoutContentSlots {
13
- default(): void;
14
+ default?: () => VNode[];
14
15
  }
15
16
  export interface LayoutFooterSlots {
16
- default(): void;
17
+ default?: () => VNode[];
17
18
  }
18
19
  export interface LayoutSiderProps {
19
20
  theme?: Theme;
@@ -33,9 +34,9 @@ export interface LayoutSiderEmits {
33
34
  (e: 'breakpoint', collapsed: boolean): void;
34
35
  }
35
36
  export interface LayoutSiderSlots {
36
- default(): void;
37
- trigger(scope: {
37
+ default?: () => VNode[];
38
+ trigger?: (scope: {
38
39
  collapsed: boolean;
39
- }): void;
40
+ }) => VNode[];
40
41
  }
41
42
  export type ResizeDirections = Array<'left' | 'right' | 'top' | 'bottom'>;
package/es/Link/type.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface LinkProps {
2
3
  href?: string;
3
4
  icon?: boolean;
@@ -12,7 +13,7 @@ export interface LinkEmits {
12
13
  (e: 'contextmenu', event: MouseEvent): void;
13
14
  }
14
15
  export interface LinkSlots {
15
- default(): void;
16
- icon(): void;
16
+ default?: () => VNode[];
17
+ icon?: () => VNode[];
17
18
  }
18
19
  export type LinkStatus = 'normal' | 'warning' | 'success' | 'danger';
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./List.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d8fc233"]]);
4
+ const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e85a4d7e"]]);
5
5
  export {
6
6
  _List as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, createElementVNode, renderSlot, createSlots, normalizeProps, guardReactiveProps, mergeProps, Fragment, renderList, resolveDynamicComponent, isRef } from "vue";
2
+ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
2
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
4
  import "../_shared/utils/dom.js";
4
5
  import { valueToPx } from "../_shared/utils/fn.js";
5
6
  import "../_shared/utils/time.js";
6
- import { unrefElement } from "../_shared/utils/vue-utils.js";
7
7
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
8
8
  import useControlValue from "../_shared/utils/control.js";
9
9
  import useScrollReach from "./hooks/useScrollReach.js";
package/es/List/type.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Direction, ObjectData } from '../_shared/type';
2
2
  import { GridProps } from '../Grid';
3
3
  import { PaginationProps } from '../Pagination';
4
4
  import { VirtualListProps } from '../Select';
5
+ import { VNode } from 'vue';
5
6
  export interface ListProps {
6
7
  data?: ObjectData[];
7
8
  size?: ListSize;
@@ -23,32 +24,32 @@ export interface ListEmits {
23
24
  (e: 'page-size-change', value: number): void;
24
25
  }
25
26
  export interface ListSlots {
26
- empty(): void;
27
- header(): void;
28
- footer(): void;
29
- default(): void;
30
- ['scroll-loading'](): void;
31
- item(scope: {
27
+ empty?: () => VNode[];
28
+ header?: () => VNode[];
29
+ footer?: () => VNode[];
30
+ default?: () => VNode[];
31
+ 'scroll-loading'?: () => VNode[];
32
+ item?: (scope: {
32
33
  index: number;
33
34
  item: ObjectData;
34
- }): void;
35
+ }) => VNode[];
35
36
  }
36
37
  export interface ListItemProps {
37
38
  actionLayout?: Direction;
38
39
  }
39
40
  export interface ListItemSlots {
40
- default(): void;
41
- meta(): void;
42
- extra(): void;
43
- actions(): void;
41
+ default?: () => VNode[];
42
+ meta?: () => VNode[];
43
+ extra?: () => VNode[];
44
+ actions?: () => VNode[];
44
45
  }
45
46
  export interface ListItemMetaProps {
46
47
  title?: string;
47
48
  description?: string;
48
49
  }
49
50
  export interface ListItemMetaSlots {
50
- avatar(): void;
51
- title(): void;
52
- description(): void;
51
+ avatar?: () => VNode[];
52
+ title?: () => VNode[];
53
+ description?: () => VNode[];
53
54
  }
54
55
  export type ListSize = 'small' | 'medium' | 'large';
@@ -182,7 +182,70 @@ declare const Mention: {
182
182
  $attrs: {
183
183
  [x: string]: unknown;
184
184
  };
185
- $refs: any;
185
+ $refs: {
186
+ [x: string]: unknown;
187
+ } & {
188
+ triggerRef: unknown;
189
+ popupRef: ({
190
+ $: import('vue').ComponentInternalInstance;
191
+ $data: {};
192
+ $props: {
193
+ readonly preventFocus?: boolean | undefined;
194
+ readonly tag?: string | undefined;
195
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
196
+ $attrs: {
197
+ [x: string]: unknown;
198
+ };
199
+ $refs: {
200
+ [x: string]: unknown;
201
+ };
202
+ $slots: Readonly<{
203
+ [name: string]: import('vue').Slot<any> | undefined;
204
+ }>;
205
+ $root: import('vue').ComponentPublicInstance | null;
206
+ $parent: import('vue').ComponentPublicInstance | null;
207
+ $host: Element | null;
208
+ $emit: (event: string, ...args: any[]) => void;
209
+ $el: any;
210
+ $options: import('vue').ComponentOptionsBase<Readonly<{
211
+ preventFocus?: boolean;
212
+ tag?: string;
213
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
214
+ preventFocus: boolean;
215
+ tag: string;
216
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
217
+ beforeCreate?: (() => void) | (() => void)[];
218
+ created?: (() => void) | (() => void)[];
219
+ beforeMount?: (() => void) | (() => void)[];
220
+ mounted?: (() => void) | (() => void)[];
221
+ beforeUpdate?: (() => void) | (() => void)[];
222
+ updated?: (() => void) | (() => void)[];
223
+ activated?: (() => void) | (() => void)[];
224
+ deactivated?: (() => void) | (() => void)[];
225
+ beforeDestroy?: (() => void) | (() => void)[];
226
+ beforeUnmount?: (() => void) | (() => void)[];
227
+ destroyed?: (() => void) | (() => void)[];
228
+ unmounted?: (() => void) | (() => void)[];
229
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
230
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
231
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
232
+ };
233
+ $forceUpdate: () => void;
234
+ $nextTick: typeof import('vue').nextTick;
235
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
236
+ } & Readonly<{
237
+ preventFocus: boolean;
238
+ tag: string;
239
+ }> & Omit<Readonly<{
240
+ preventFocus?: boolean;
241
+ tag?: string;
242
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
243
+ $slots: {
244
+ default?(_: {}): any;
245
+ };
246
+ }) | null;
247
+ arrowRef: HTMLDivElement;
248
+ };
186
249
  $slots: Readonly<{
187
250
  [name: string]: import('vue').Slot<any> | undefined;
188
251
  }>;
@@ -303,7 +366,7 @@ declare const Mention: {
303
366
  show(): void;
304
367
  updatePosition(x: number, y: number): void;
305
368
  }> & {} & import('vue').ComponentCustomProperties & {} & {
306
- $slots: any;
369
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
307
370
  }) | null;
308
371
  inputRef: ({
309
372
  $: import('vue').ComponentInternalInstance;