yc-design-vue 1.0.2 → 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 (235) 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/type.d.ts +5 -5
  31. package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
  32. package/es/Dropdown/index.d.ts +65 -2
  33. package/es/Dropdown/type.d.ts +15 -14
  34. package/es/Empty/type.d.ts +2 -1
  35. package/es/Grid/type.d.ts +6 -5
  36. package/es/Icon/type.d.ts +2 -1
  37. package/es/Image/type.d.ts +11 -10
  38. package/es/Input/hooks/useCursor.d.ts +2 -1
  39. package/es/Input/hooks/useCursor.js +2 -2
  40. package/es/Input/type.d.ts +6 -5
  41. package/es/InputNumber/type.d.ts +8 -8
  42. package/es/InputTag/type.d.ts +5 -4
  43. package/es/Layout/Layout.vue.js +1 -1
  44. package/es/Layout/Layout.vue2.js +2 -2
  45. package/es/Layout/type.d.ts +8 -7
  46. package/es/Link/type.d.ts +3 -2
  47. package/es/List/type.d.ts +15 -14
  48. package/es/Mention/index.d.ts +65 -2
  49. package/es/Mention/index.vue.d.ts +130 -4
  50. package/es/Mention/type.d.ts +3 -2
  51. package/es/Menu/type.d.ts +11 -10
  52. package/es/Message/type.d.ts +1 -1
  53. package/es/Modal/type.d.ts +5 -5
  54. package/es/Notification/type.d.ts +1 -1
  55. package/es/OverflowList/index.vue.js +1 -1
  56. package/es/OverflowList/index.vue2.js +2 -2
  57. package/es/OverflowList/type.d.ts +3 -2
  58. package/es/PageHeader/type.d.ts +7 -6
  59. package/es/Pagination/type.d.ts +8 -8
  60. package/es/Popconfirm/index.d.ts +65 -2
  61. package/es/Popconfirm/index.vue.d.ts +130 -4
  62. package/es/Popconfirm/type.d.ts +4 -4
  63. package/es/Popover/type.d.ts +4 -4
  64. package/es/Radio/hooks/useContext.d.ts +3 -6
  65. package/es/Radio/type.d.ts +9 -8
  66. package/es/Rate/type.d.ts +3 -2
  67. package/es/ResizeBox/type.d.ts +6 -5
  68. package/es/Result/type.d.ts +6 -5
  69. package/es/Scrollbar/type.d.ts +2 -2
  70. package/es/Select/Select.vue.d.ts +130 -4
  71. package/es/Select/index.d.ts +65 -2
  72. package/es/Select/type.d.ts +19 -18
  73. package/es/Skeleton/type.d.ts +3 -2
  74. package/es/Space/index.vue.js +1 -1
  75. package/es/Space/index.vue2.js +2 -2
  76. package/es/Space/type.d.ts +3 -2
  77. package/es/Spin/type.d.ts +4 -3
  78. package/es/Split/type.d.ts +5 -4
  79. package/es/Statistic/type.d.ts +7 -7
  80. package/es/Steps/type.d.ts +8 -7
  81. package/es/Switch/index.vue.js +1 -1
  82. package/es/Switch/index.vue2.js +3 -3
  83. package/es/Switch/type.d.ts +5 -4
  84. package/es/Tabs/Tabs.vue.js +1 -1
  85. package/es/Tabs/Tabs.vue2.js +2 -2
  86. package/es/Tabs/type.d.ts +5 -4
  87. package/es/Tag/type.d.ts +4 -3
  88. package/es/TimePicker/type.d.ts +4 -3
  89. package/es/Timeline/type.d.ts +6 -5
  90. package/es/Tooltip/type.d.ts +3 -3
  91. package/es/Transfer/TransferPanel.vue2.js +2 -2
  92. package/es/Transfer/type.d.ts +13 -12
  93. package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  94. package/es/Trigger/hooks/useTriggerPosition.js +11 -20
  95. package/es/Trigger/index.d.ts +63 -2
  96. package/es/Trigger/index.vue.d.ts +130 -3
  97. package/es/Trigger/index.vue.js +1 -1
  98. package/es/Trigger/index.vue2.js +2 -2
  99. package/es/Trigger/type.d.ts +3 -3
  100. package/es/Typography/TypographyBase.vue2.js +2 -2
  101. package/es/Typography/type.d.ts +8 -7
  102. package/es/Watermark/type.d.ts +2 -1
  103. package/es/_shared/icons/IconCopy.vue.js +16 -1
  104. package/es/_shared/icons/IconCopy.vue2.js +1 -16
  105. package/es/_shared/icons/IconDelete.vue.js +1 -16
  106. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  107. package/es/_shared/icons/IconEdit.vue.js +16 -1
  108. package/es/_shared/icons/IconEdit.vue2.js +1 -16
  109. package/es/_shared/icons/IconSearch.vue.js +1 -16
  110. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  111. package/es/_shared/utils/dom.d.ts +4 -4
  112. package/es/_shared/utils/dom.js +6 -6
  113. package/es/_shared/utils/fn.d.ts +3 -3
  114. package/es/_shared/utils/fn.js +6 -6
  115. package/es/_shared/utils/global-config.d.ts +4 -2
  116. package/es/index.d.ts +65 -2
  117. package/es/style.css +1 -1
  118. package/lib/Affix/type.d.ts +3 -2
  119. package/lib/Alert/type.d.ts +6 -5
  120. package/lib/Anchor/type.d.ts +4 -3
  121. package/lib/AutoComplete/index.d.ts +65 -2
  122. package/lib/AutoComplete/index.vue.d.ts +130 -4
  123. package/lib/AutoComplete/type.d.ts +5 -4
  124. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  125. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  126. package/lib/Avatar/type.d.ts +4 -4
  127. package/lib/BackTop/type.d.ts +2 -1
  128. package/lib/Badge/index.vue.js +1 -1
  129. package/lib/Badge/index.vue2.js +1 -1
  130. package/lib/Badge/type.d.ts +3 -3
  131. package/lib/Breadcrumb/type.d.ts +9 -8
  132. package/lib/Button/Button.vue.js +1 -1
  133. package/lib/Button/Button.vue2.js +1 -1
  134. package/lib/Button/type.d.ts +4 -3
  135. package/lib/Calendar/type.d.ts +5 -4
  136. package/lib/Card/type.d.ts +10 -10
  137. package/lib/Carousel/type.d.ts +3 -2
  138. package/lib/Cascader/type.d.ts +10 -10
  139. package/lib/Checkbox/hooks/useContext.d.ts +2 -5
  140. package/lib/Checkbox/type.d.ts +9 -8
  141. package/lib/Collapse/type.d.ts +9 -8
  142. package/lib/Comment/type.d.ts +7 -6
  143. package/lib/ConfigProvider/index.vue.js +1 -1
  144. package/lib/ConfigProvider/type.d.ts +5 -4
  145. package/lib/Descriptions/type.d.ts +9 -9
  146. package/lib/Divider/type.d.ts +2 -1
  147. package/lib/Drawer/type.d.ts +5 -5
  148. package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
  149. package/lib/Dropdown/index.d.ts +65 -2
  150. package/lib/Dropdown/type.d.ts +15 -14
  151. package/lib/Empty/type.d.ts +2 -1
  152. package/lib/Grid/type.d.ts +6 -5
  153. package/lib/Icon/type.d.ts +2 -1
  154. package/lib/Image/type.d.ts +11 -10
  155. package/lib/Input/hooks/useCursor.d.ts +2 -1
  156. package/lib/Input/hooks/useCursor.js +1 -1
  157. package/lib/Input/type.d.ts +6 -5
  158. package/lib/InputNumber/type.d.ts +8 -8
  159. package/lib/InputTag/type.d.ts +5 -4
  160. package/lib/Layout/Layout.vue.js +1 -1
  161. package/lib/Layout/Layout.vue2.js +1 -1
  162. package/lib/Layout/type.d.ts +8 -7
  163. package/lib/Link/type.d.ts +3 -2
  164. package/lib/List/type.d.ts +15 -14
  165. package/lib/Mention/index.d.ts +65 -2
  166. package/lib/Mention/index.vue.d.ts +130 -4
  167. package/lib/Mention/type.d.ts +3 -2
  168. package/lib/Menu/type.d.ts +11 -10
  169. package/lib/Message/type.d.ts +1 -1
  170. package/lib/Modal/type.d.ts +5 -5
  171. package/lib/Notification/type.d.ts +1 -1
  172. package/lib/OverflowList/index.vue.js +1 -1
  173. package/lib/OverflowList/index.vue2.js +1 -1
  174. package/lib/OverflowList/type.d.ts +3 -2
  175. package/lib/PageHeader/type.d.ts +7 -6
  176. package/lib/Pagination/type.d.ts +8 -8
  177. package/lib/Popconfirm/index.d.ts +65 -2
  178. package/lib/Popconfirm/index.vue.d.ts +130 -4
  179. package/lib/Popconfirm/type.d.ts +4 -4
  180. package/lib/Popover/type.d.ts +4 -4
  181. package/lib/Radio/hooks/useContext.d.ts +3 -6
  182. package/lib/Radio/type.d.ts +9 -8
  183. package/lib/Rate/type.d.ts +3 -2
  184. package/lib/ResizeBox/type.d.ts +6 -5
  185. package/lib/Result/type.d.ts +6 -5
  186. package/lib/Scrollbar/type.d.ts +2 -2
  187. package/lib/Select/Select.vue.d.ts +130 -4
  188. package/lib/Select/index.d.ts +65 -2
  189. package/lib/Select/type.d.ts +19 -18
  190. package/lib/Skeleton/type.d.ts +3 -2
  191. package/lib/Space/index.vue.js +1 -1
  192. package/lib/Space/index.vue2.js +1 -1
  193. package/lib/Space/type.d.ts +3 -2
  194. package/lib/Spin/type.d.ts +4 -3
  195. package/lib/Split/type.d.ts +5 -4
  196. package/lib/Statistic/type.d.ts +7 -7
  197. package/lib/Steps/type.d.ts +8 -7
  198. package/lib/Switch/index.vue.js +1 -1
  199. package/lib/Switch/index.vue2.js +1 -1
  200. package/lib/Switch/type.d.ts +5 -4
  201. package/lib/Tabs/Tabs.vue.js +1 -1
  202. package/lib/Tabs/Tabs.vue2.js +1 -1
  203. package/lib/Tabs/type.d.ts +5 -4
  204. package/lib/Tag/type.d.ts +4 -3
  205. package/lib/TimePicker/type.d.ts +4 -3
  206. package/lib/Timeline/type.d.ts +6 -5
  207. package/lib/Tooltip/type.d.ts +3 -3
  208. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  209. package/lib/Transfer/type.d.ts +13 -12
  210. package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  211. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  212. package/lib/Trigger/index.d.ts +63 -2
  213. package/lib/Trigger/index.vue.d.ts +130 -3
  214. package/lib/Trigger/index.vue.js +1 -1
  215. package/lib/Trigger/index.vue2.js +1 -1
  216. package/lib/Trigger/type.d.ts +3 -3
  217. package/lib/Typography/TypographyBase.vue2.js +1 -1
  218. package/lib/Typography/type.d.ts +8 -7
  219. package/lib/Watermark/type.d.ts +2 -1
  220. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  221. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  222. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  223. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  224. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  225. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  226. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  227. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  228. package/lib/_shared/utils/dom.d.ts +4 -4
  229. package/lib/_shared/utils/dom.js +1 -1
  230. package/lib/_shared/utils/fn.d.ts +3 -3
  231. package/lib/_shared/utils/fn.js +1 -1
  232. package/lib/_shared/utils/global-config.d.ts +4 -2
  233. package/lib/index.d.ts +65 -2
  234. package/lib/style.css +1 -1
  235. package/package.json +1 -1
@@ -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 +1 @@
1
- "use strict";const e=require("vue");module.exports=function(t){const n=e.ref();function l(){if(!t.value||!n.value)return;const{value:e}=t.value,{beforeTxt:l,afterTxt:r,selectionStart:u}=n.value;if(!l||!r||!u)return;let s=e.length;if(e.endsWith(r))s=e.length-r.length;else if(e.startsWith(l))s=l.length;else{const t=l[u-1],n=e.indexOf(t,u-1);-1!==n&&(s=n+1)}return s}return{recordCursor:function(){if(!t.value)return;const{selectionStart:e,selectionEnd:l,value:r}=t.value;if(null==e||null==l)return;const u=r.slice(0,Math.max(0,e)),s=r.slice(Math.max(0,l));n.value={selectionStart:e,selectionEnd:l,value:r,beforeTxt:u,afterTxt:s}},setCursor:function(){var e;const n=l();n&&(null==(e=t.value)||e.setSelectionRange(n,n))},getCursor:l,selectionRef:n}};
1
+ "use strict";const e=require("vue");module.exports=t=>{const n=e.ref();function l(){if(!t.value||!n.value)return;const{value:e}=t.value,{beforeTxt:l,afterTxt:r,selectionStart:u}=n.value;if(!l||!r||!u)return;let s=e.length;if(e.endsWith(r))s=e.length-r.length;else if(e.startsWith(l))s=l.length;else{const t=l[u-1],n=e.indexOf(t,u-1);-1!==n&&(s=n+1)}return s}return{recordCursor:function(){if(!t.value)return;const{selectionStart:e,selectionEnd:l,value:r}=t.value;if(null==e||null==l)return;const u=r.slice(0,Math.max(0,e)),s=r.slice(Math.max(0,l));n.value={selectionStart:e,selectionEnd:l,value:r,beforeTxt:u,afterTxt:s}},setCursor:function(){var e;const n=l();n&&(null==(e=t.value)||e.setSelectionRange(n,n))},getCursor:l,selectionRef:n}};
@@ -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 +1 @@
1
- "use strict";const e=require("./Layout.vue2.js");;/* empty css */const u=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-89d3b476"]]);module.exports=u;
1
+ "use strict";const e=require("./Layout.vue2.js");;/* empty css */const u=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-4f591662"]]);module.exports=u;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const s=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./LayoutSider.vue.js"),o=e.defineComponent({name:"Layout",__name:"Layout",props:{hasSider:{type:Boolean,default:void 0}},setup(o){const t=o,{hasSider:u}=e.toRefs(t),i=e.useSlots(),n=e.computed(()=>{var e;if(!s.isUndefined(u.value))return u.value;return!!((null==(e=i.default)?void 0:e.call(i))||[]).find(e=>e.type.name==r.name)});return(s,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["yc-layout",{"yc-layout-has-sider":n.value}])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],2))}});module.exports=o;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const s=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./LayoutSider.vue.js"),o=e.defineComponent({name:"Layout",__name:"Layout",props:{hasSider:{type:Boolean,default:void 0}},setup(o){const t=e.useSlots(),u=o,{hasSider:i}=e.toRefs(u),n=e.computed(()=>{var e;if(!s.isUndefined(i.value))return i.value;return!!((null==(e=t.default)?void 0:e.call(t))||[]).find(e=>e.type.name==r.name)});return(s,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["yc-layout",{"yc-layout-has-sider":n.value}])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],2))}});module.exports=o;
@@ -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'>;
@@ -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';
@@ -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;
@@ -153,7 +153,70 @@ declare function __VLS_template(): {
153
153
  $attrs: {
154
154
  [x: string]: unknown;
155
155
  };
156
- $refs: any;
156
+ $refs: {
157
+ [x: string]: unknown;
158
+ } & {
159
+ triggerRef: unknown;
160
+ popupRef: ({
161
+ $: import('vue').ComponentInternalInstance;
162
+ $data: {};
163
+ $props: {
164
+ readonly preventFocus?: boolean | undefined;
165
+ readonly tag?: string | undefined;
166
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
167
+ $attrs: {
168
+ [x: string]: unknown;
169
+ };
170
+ $refs: {
171
+ [x: string]: unknown;
172
+ };
173
+ $slots: Readonly<{
174
+ [name: string]: import('vue').Slot<any> | undefined;
175
+ }>;
176
+ $root: import('vue').ComponentPublicInstance | null;
177
+ $parent: import('vue').ComponentPublicInstance | null;
178
+ $host: Element | null;
179
+ $emit: (event: string, ...args: any[]) => void;
180
+ $el: any;
181
+ $options: import('vue').ComponentOptionsBase<Readonly<{
182
+ preventFocus?: boolean;
183
+ tag?: string;
184
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
185
+ preventFocus: boolean;
186
+ tag: string;
187
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
188
+ beforeCreate?: (() => void) | (() => void)[];
189
+ created?: (() => void) | (() => void)[];
190
+ beforeMount?: (() => void) | (() => void)[];
191
+ mounted?: (() => void) | (() => void)[];
192
+ beforeUpdate?: (() => void) | (() => void)[];
193
+ updated?: (() => void) | (() => void)[];
194
+ activated?: (() => void) | (() => void)[];
195
+ deactivated?: (() => void) | (() => void)[];
196
+ beforeDestroy?: (() => void) | (() => void)[];
197
+ beforeUnmount?: (() => void) | (() => void)[];
198
+ destroyed?: (() => void) | (() => void)[];
199
+ unmounted?: (() => void) | (() => void)[];
200
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
201
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
202
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
203
+ };
204
+ $forceUpdate: () => void;
205
+ $nextTick: typeof nextTick;
206
+ $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;
207
+ } & Readonly<{
208
+ preventFocus: boolean;
209
+ tag: string;
210
+ }> & Omit<Readonly<{
211
+ preventFocus?: boolean;
212
+ tag?: string;
213
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
214
+ $slots: {
215
+ default?(_: {}): any;
216
+ };
217
+ }) | null;
218
+ arrowRef: HTMLDivElement;
219
+ };
157
220
  $slots: Readonly<{
158
221
  [name: string]: import('vue').Slot<any> | undefined;
159
222
  }>;
@@ -274,7 +337,7 @@ declare function __VLS_template(): {
274
337
  show(): void;
275
338
  updatePosition(x: number, y: number): void;
276
339
  }> & {} & import('vue').ComponentCustomProperties & {} & {
277
- $slots: any;
340
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
278
341
  }) | null;
279
342
  inputRef: ({
280
343
  $: import('vue').ComponentInternalInstance;
@@ -931,7 +994,70 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
931
994
  $attrs: {
932
995
  [x: string]: unknown;
933
996
  };
934
- $refs: any;
997
+ $refs: {
998
+ [x: string]: unknown;
999
+ } & {
1000
+ triggerRef: unknown;
1001
+ popupRef: ({
1002
+ $: import('vue').ComponentInternalInstance;
1003
+ $data: {};
1004
+ $props: {
1005
+ readonly preventFocus?: boolean | undefined;
1006
+ readonly tag?: string | undefined;
1007
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
1008
+ $attrs: {
1009
+ [x: string]: unknown;
1010
+ };
1011
+ $refs: {
1012
+ [x: string]: unknown;
1013
+ };
1014
+ $slots: Readonly<{
1015
+ [name: string]: import('vue').Slot<any> | undefined;
1016
+ }>;
1017
+ $root: import('vue').ComponentPublicInstance | null;
1018
+ $parent: import('vue').ComponentPublicInstance | null;
1019
+ $host: Element | null;
1020
+ $emit: (event: string, ...args: any[]) => void;
1021
+ $el: any;
1022
+ $options: import('vue').ComponentOptionsBase<Readonly<{
1023
+ preventFocus?: boolean;
1024
+ tag?: string;
1025
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1026
+ preventFocus: boolean;
1027
+ tag: string;
1028
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1029
+ beforeCreate?: (() => void) | (() => void)[];
1030
+ created?: (() => void) | (() => void)[];
1031
+ beforeMount?: (() => void) | (() => void)[];
1032
+ mounted?: (() => void) | (() => void)[];
1033
+ beforeUpdate?: (() => void) | (() => void)[];
1034
+ updated?: (() => void) | (() => void)[];
1035
+ activated?: (() => void) | (() => void)[];
1036
+ deactivated?: (() => void) | (() => void)[];
1037
+ beforeDestroy?: (() => void) | (() => void)[];
1038
+ beforeUnmount?: (() => void) | (() => void)[];
1039
+ destroyed?: (() => void) | (() => void)[];
1040
+ unmounted?: (() => void) | (() => void)[];
1041
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1042
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1043
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
1044
+ };
1045
+ $forceUpdate: () => void;
1046
+ $nextTick: typeof nextTick;
1047
+ $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;
1048
+ } & Readonly<{
1049
+ preventFocus: boolean;
1050
+ tag: string;
1051
+ }> & Omit<Readonly<{
1052
+ preventFocus?: boolean;
1053
+ tag?: string;
1054
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
1055
+ $slots: {
1056
+ default?(_: {}): any;
1057
+ };
1058
+ }) | null;
1059
+ arrowRef: HTMLDivElement;
1060
+ };
935
1061
  $slots: Readonly<{
936
1062
  [name: string]: import('vue').Slot<any> | undefined;
937
1063
  }>;
@@ -1052,7 +1178,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1052
1178
  show(): void;
1053
1179
  updatePosition(x: number, y: number): void;
1054
1180
  }> & {} & import('vue').ComponentCustomProperties & {} & {
1055
- $slots: any;
1181
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
1056
1182
  }) | null;
1057
1183
  inputRef: ({
1058
1184
  $: import('vue').ComponentInternalInstance;
@@ -1,5 +1,6 @@
1
1
  import { SelectOptions, SelectValue } from '../Select';
2
2
  import { ObjectData } from '../_shared/type';
3
+ import { VNode } from 'vue';
3
4
  export interface MentionProps {
4
5
  modelValue?: string;
5
6
  defaultValue?: string;
@@ -25,7 +26,7 @@ export interface MentionExpose {
25
26
  blur(): void;
26
27
  }
27
28
  export interface MentionSlots {
28
- option(scope: {
29
+ option?: (scope: {
29
30
  data: ObjectData;
30
- }): void;
31
+ }) => VNode[];
31
32
  }
@@ -2,6 +2,7 @@ import { BreakpointName } from '../Grid';
2
2
  import { TooltipProps } from '../Tooltip';
3
3
  import { TriggerProps } from '../Trigger';
4
4
  import { Theme } from '../_shared/type';
5
+ import { VNode } from 'vue';
5
6
  export interface MenuProps {
6
7
  theme?: Theme;
7
8
  mode?: MenuMode;
@@ -33,7 +34,7 @@ export interface MenuEmits {
33
34
  (e: 'sub-menu-click', key: string, openKeys: string[]): void;
34
35
  }
35
36
  export interface MenuSlots {
36
- default(): void;
37
+ default?: () => VNode[];
37
38
  }
38
39
  export interface SubMenuProps {
39
40
  path?: string;
@@ -43,26 +44,26 @@ export interface SubMenuProps {
43
44
  popupMaxHeight?: PopupMaxHeight;
44
45
  }
45
46
  export interface SubMenuSlots {
46
- default(): void;
47
- title(): void;
48
- icon(): void;
49
- ['expand-icon-down'](): void;
47
+ default?: () => VNode[];
48
+ title?: () => VNode[];
49
+ icon?: () => VNode[];
50
+ 'expand-icon-down'?: () => VNode[];
50
51
  }
51
52
  export interface MenuItemProps {
52
53
  path?: string;
53
54
  disabled?: boolean;
54
55
  }
55
56
  export interface MenuItemSlots {
56
- default(): void;
57
- icon(): void;
58
- suffix(): void;
57
+ default?: () => VNode[];
58
+ icon?: () => VNode[];
59
+ suffix?: () => VNode[];
59
60
  }
60
61
  export interface MenuItemGroupProps {
61
62
  title?: string;
62
63
  }
63
64
  export interface MenuItemGroupSlots {
64
- default(): void;
65
- title(): void;
65
+ default?: () => VNode[];
66
+ title?: () => VNode[];
66
67
  }
67
68
  export type MenuMode = 'vertical' | 'horizontal';
68
69
  export type PopupMaxHeight = boolean | number;
@@ -19,7 +19,7 @@ export interface MessageContainerProps {
19
19
  }
20
20
  export type MessageConfig = Omit<MessageProps, 'type' | 'onDestory'> & MessageContainerProps;
21
21
  export type MessageReturn = {
22
- close(): void;
22
+ close?: () => void;
23
23
  };
24
24
  export type MessageMethod = {
25
25
  info: (config: string | MessageConfig) => MessageReturn;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ButtonProps } from '../Button';
3
3
  import { RenderContent, PopupContainer, ClassName } from '../_shared/type';
4
4
  import { ModuleStatus } from 'vm';
@@ -48,10 +48,10 @@ export interface ModalEmits {
48
48
  (e: 'before-close'): void;
49
49
  }
50
50
  export interface ModalSlots {
51
- default(): void;
52
- header(): void;
53
- footer(): void;
54
- title(): void;
51
+ default?: () => VNode[];
52
+ header?: () => VNode[];
53
+ footer?: () => VNode[];
54
+ title?: () => VNode[];
55
55
  }
56
56
  export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible'> & {
57
57
  title?: RenderContent;
@@ -24,7 +24,7 @@ export interface NotificationContainerProps {
24
24
  }
25
25
  export type NotificationConfig = Omit<NotificationProps, 'type' | 'onDestory'> & NotificationContainerProps;
26
26
  export type NotificationReturn = {
27
- close(): void;
27
+ close?: () => void;
28
28
  };
29
29
  export type NotificationMethods = {
30
30
  info: (config: string | NotificationConfig) => NotificationReturn;
@@ -1 +1 @@
1
- "use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-a89a2ac3"]]);module.exports=r;
1
+ "use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-bf5ac246"]]);module.exports=r;