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 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const r=require("../node_modules/@vueuse/core/index.js"),o=require("../Tag/index.js"),a=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(a,{emit:n}){const u=a,s=n,{min:i,margin:c,from:f}=e.toRefs(u),v=e.ref(1e4),m=e.ref([]),d=e.useSlots(),p=e.computed(()=>{var e;return t.findComponentsFromVnodes((null==(e=d.default)?void 0:e.call(d))||[],o.name)}),h=e.ref(),y=e.ref(),g=e.computed(()=>y.value?r.unrefElement(y).offsetWidth+c.value:c.value),k=e.computed(()=>p.value.length-v.value);return r.useResizeObserver(h,l.throttle(async()=>{await l.sleep(0);let e=0,t=0;const r=h.value.offsetWidth;for(let l=0;l<m.value.length;l++){const o=t+(l>0?c.value:0)+m.value[l];if(o>r)break;t=o,e++}v.value=e>i.value?e:i.value},180)),e.watch(()=>v.value,()=>{s("change",k.value)}),e.watch(()=>p.value.length,async()=>{v.value=1e5,await l.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);m.value=e},{immediate:!0}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(f)}`]),style:e.normalizeStyle({gap:e.unref(l.valueToPx)(e.unref(c)),padding:"start"==e.unref(f)?`0 0 0 ${e.unref(l.valueToPx)(g.value)}`:` 0 ${e.unref(l.valueToPx)(g.value)} 0 0`}),ref_key:"listRef",ref:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<v.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),v.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:y},[e.renderSlot(t.$slots,"overflow",{number:k.value},()=>[e.createVNode(e.unref(o),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${k.value}`),1)]),_:1})],!0)],512)):e.createCommentVNode("",!0)],6))}});module.exports=a;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const r=require("../node_modules/@vueuse/core/index.js"),o=require("../Tag/index.js"),a=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(a,{emit:n}){const u=e.useSlots(),s=a,i=n,{min:c,margin:f,from:v}=e.toRefs(s),m=e.ref(1e4),d=e.ref([]),p=e.computed(()=>{var e;return t.findComponentsFromVnodes((null==(e=u.default)?void 0:e.call(u))||[],o.name)}),h=e.ref(),y=e.ref(),g=e.computed(()=>y.value?r.unrefElement(y).offsetWidth+f.value:f.value),k=e.computed(()=>p.value.length-m.value);return r.useResizeObserver(h,l.throttle(async()=>{await l.sleep(0);let e=0,t=0;const r=h.value.offsetWidth;for(let l=0;l<d.value.length;l++){const o=t+(l>0?f.value:0)+d.value[l];if(o>r)break;t=o,e++}m.value=e>c.value?e:c.value},180)),e.watch(()=>m.value,()=>{i("change",k.value)}),e.watch(()=>p.value.length,async()=>{m.value=1e5,await l.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);d.value=e},{immediate:!0}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(v)}`]),style:e.normalizeStyle({gap:e.unref(l.valueToPx)(e.unref(f)),padding:"start"==e.unref(v)?`0 0 0 ${e.unref(l.valueToPx)(g.value)}`:` 0 ${e.unref(l.valueToPx)(g.value)} 0 0`}),ref_key:"listRef",ref:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),m.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:y},[e.renderSlot(t.$slots,"overflow",{number:k.value},()=>[e.createVNode(e.unref(o),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${k.value}`),1)]),_:1})],!0)],512)):e.createCommentVNode("",!0)],6))}});module.exports=a;
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface OverflowListProps {
2
3
  min?: number;
3
4
  margin?: number;
@@ -7,7 +8,7 @@ export interface OverflowListEmits {
7
8
  (e: 'change', value: number): void;
8
9
  }
9
10
  export interface OverflowListSlots {
10
- default(): void;
11
- overflow(): void;
11
+ default?: () => VNode[];
12
+ overflow?: () => VNode[];
12
13
  }
13
14
  export type OverflowListFrom = 'start' | 'end';
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface PageHeaderProp {
2
3
  title?: string;
3
4
  subtitle?: string;
@@ -7,10 +8,10 @@ export interface PageHeaderEmits {
7
8
  (e: 'back', ev: Event): void;
8
9
  }
9
10
  export interface PageHeaderSlots {
10
- default(): void;
11
- breadcrumb(): void;
12
- ['back-icon']: void;
13
- title(): void;
14
- subtitle(): void;
15
- extra(): void;
11
+ default?: () => VNode[];
12
+ breadcrumb?: () => VNode[];
13
+ 'back-icon': VNode[];
14
+ title?: () => VNode[];
15
+ subtitle?: () => VNode[];
16
+ extra?: () => VNode[];
16
17
  }
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { Size } from '../_shared/type';
3
3
  import { SelectProps } from '../Select';
4
4
  export interface PaginationProps {
@@ -30,14 +30,14 @@ export interface PaginationEmits {
30
30
  (e: 'page-size-change', pageSize: number): void;
31
31
  }
32
32
  export interface PaginationSlots {
33
- total(scope: {
33
+ total?: (scope: {
34
34
  total: number;
35
- }): void;
36
- ['page-item-ellipsis'](): void;
37
- ['page-item-step'](scope: {
35
+ }) => VNode[];
36
+ ['page-item-ellipsis']?: () => VNode[];
37
+ ['page-item-step']?: (scope: {
38
38
  type: 'previous' | 'next';
39
- }): void;
40
- ['page-item'](scope: {
39
+ }) => VNode[];
40
+ ['page-item']?: (scope: {
41
41
  page: number;
42
- }): void;
42
+ }) => VNode[];
43
43
  }
@@ -88,7 +88,70 @@ declare const Popconfirm: {
88
88
  $attrs: {
89
89
  [x: string]: unknown;
90
90
  };
91
- $refs: any;
91
+ $refs: {
92
+ [x: string]: unknown;
93
+ } & {
94
+ triggerRef: unknown;
95
+ popupRef: ({
96
+ $: import('vue').ComponentInternalInstance;
97
+ $data: {};
98
+ $props: {
99
+ readonly preventFocus?: boolean | undefined;
100
+ readonly tag?: string | undefined;
101
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
102
+ $attrs: {
103
+ [x: string]: unknown;
104
+ };
105
+ $refs: {
106
+ [x: string]: unknown;
107
+ };
108
+ $slots: Readonly<{
109
+ [name: string]: import('vue').Slot<any> | undefined;
110
+ }>;
111
+ $root: import('vue').ComponentPublicInstance | null;
112
+ $parent: import('vue').ComponentPublicInstance | null;
113
+ $host: Element | null;
114
+ $emit: (event: string, ...args: any[]) => void;
115
+ $el: any;
116
+ $options: import('vue').ComponentOptionsBase<Readonly<{
117
+ preventFocus?: boolean;
118
+ tag?: string;
119
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
120
+ preventFocus: boolean;
121
+ tag: string;
122
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
123
+ beforeCreate?: (() => void) | (() => void)[];
124
+ created?: (() => void) | (() => void)[];
125
+ beforeMount?: (() => void) | (() => void)[];
126
+ mounted?: (() => void) | (() => void)[];
127
+ beforeUpdate?: (() => void) | (() => void)[];
128
+ updated?: (() => void) | (() => void)[];
129
+ activated?: (() => void) | (() => void)[];
130
+ deactivated?: (() => void) | (() => void)[];
131
+ beforeDestroy?: (() => void) | (() => void)[];
132
+ beforeUnmount?: (() => void) | (() => void)[];
133
+ destroyed?: (() => void) | (() => void)[];
134
+ unmounted?: (() => void) | (() => void)[];
135
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
136
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
137
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
138
+ };
139
+ $forceUpdate: () => void;
140
+ $nextTick: typeof import('vue').nextTick;
141
+ $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;
142
+ } & Readonly<{
143
+ preventFocus: boolean;
144
+ tag: string;
145
+ }> & Omit<Readonly<{
146
+ preventFocus?: boolean;
147
+ tag?: string;
148
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
149
+ $slots: {
150
+ default?(_: {}): any;
151
+ };
152
+ }) | null;
153
+ arrowRef: HTMLDivElement;
154
+ };
92
155
  $slots: Readonly<{
93
156
  [name: string]: import('vue').Slot<any> | undefined;
94
157
  }>;
@@ -209,7 +272,7 @@ declare const Popconfirm: {
209
272
  show(): void;
210
273
  updatePosition(x: number, y: number): void;
211
274
  }> & {} & import('vue').ComponentCustomProperties & {} & {
212
- $slots: any;
275
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
213
276
  }) | null;
214
277
  }, any, import('vue').ComponentProvideOptions, {
215
278
  P: {};
@@ -55,7 +55,70 @@ declare function __VLS_template(): {
55
55
  $attrs: {
56
56
  [x: string]: unknown;
57
57
  };
58
- $refs: any;
58
+ $refs: {
59
+ [x: string]: unknown;
60
+ } & {
61
+ triggerRef: unknown;
62
+ popupRef: ({
63
+ $: import('vue').ComponentInternalInstance;
64
+ $data: {};
65
+ $props: {
66
+ readonly preventFocus?: boolean | undefined;
67
+ readonly tag?: string | undefined;
68
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
69
+ $attrs: {
70
+ [x: string]: unknown;
71
+ };
72
+ $refs: {
73
+ [x: string]: unknown;
74
+ };
75
+ $slots: Readonly<{
76
+ [name: string]: import('vue').Slot<any> | undefined;
77
+ }>;
78
+ $root: import('vue').ComponentPublicInstance | null;
79
+ $parent: import('vue').ComponentPublicInstance | null;
80
+ $host: Element | null;
81
+ $emit: (event: string, ...args: any[]) => void;
82
+ $el: any;
83
+ $options: import('vue').ComponentOptionsBase<Readonly<{
84
+ preventFocus?: boolean;
85
+ tag?: string;
86
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
87
+ preventFocus: boolean;
88
+ tag: string;
89
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
90
+ beforeCreate?: (() => void) | (() => void)[];
91
+ created?: (() => void) | (() => void)[];
92
+ beforeMount?: (() => void) | (() => void)[];
93
+ mounted?: (() => void) | (() => void)[];
94
+ beforeUpdate?: (() => void) | (() => void)[];
95
+ updated?: (() => void) | (() => void)[];
96
+ activated?: (() => void) | (() => void)[];
97
+ deactivated?: (() => void) | (() => void)[];
98
+ beforeDestroy?: (() => void) | (() => void)[];
99
+ beforeUnmount?: (() => void) | (() => void)[];
100
+ destroyed?: (() => void) | (() => void)[];
101
+ unmounted?: (() => void) | (() => void)[];
102
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
103
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
104
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
105
+ };
106
+ $forceUpdate: () => void;
107
+ $nextTick: typeof import('vue').nextTick;
108
+ $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;
109
+ } & Readonly<{
110
+ preventFocus: boolean;
111
+ tag: string;
112
+ }> & Omit<Readonly<{
113
+ preventFocus?: boolean;
114
+ tag?: string;
115
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
116
+ $slots: {
117
+ default?(_: {}): any;
118
+ };
119
+ }) | null;
120
+ arrowRef: HTMLDivElement;
121
+ };
59
122
  $slots: Readonly<{
60
123
  [name: string]: import('vue').Slot<any> | undefined;
61
124
  }>;
@@ -176,7 +239,7 @@ declare function __VLS_template(): {
176
239
  show(): void;
177
240
  updatePosition(x: number, y: number): void;
178
241
  }> & {} & import('vue').ComponentCustomProperties & {} & {
179
- $slots: any;
242
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
180
243
  }) | null;
181
244
  };
182
245
  rootEl: any;
@@ -267,7 +330,70 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
267
330
  $attrs: {
268
331
  [x: string]: unknown;
269
332
  };
270
- $refs: any;
333
+ $refs: {
334
+ [x: string]: unknown;
335
+ } & {
336
+ triggerRef: unknown;
337
+ popupRef: ({
338
+ $: import('vue').ComponentInternalInstance;
339
+ $data: {};
340
+ $props: {
341
+ readonly preventFocus?: boolean | undefined;
342
+ readonly tag?: string | undefined;
343
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
344
+ $attrs: {
345
+ [x: string]: unknown;
346
+ };
347
+ $refs: {
348
+ [x: string]: unknown;
349
+ };
350
+ $slots: Readonly<{
351
+ [name: string]: import('vue').Slot<any> | undefined;
352
+ }>;
353
+ $root: import('vue').ComponentPublicInstance | null;
354
+ $parent: import('vue').ComponentPublicInstance | null;
355
+ $host: Element | null;
356
+ $emit: (event: string, ...args: any[]) => void;
357
+ $el: any;
358
+ $options: import('vue').ComponentOptionsBase<Readonly<{
359
+ preventFocus?: boolean;
360
+ tag?: string;
361
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
362
+ preventFocus: boolean;
363
+ tag: string;
364
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
365
+ beforeCreate?: (() => void) | (() => void)[];
366
+ created?: (() => void) | (() => void)[];
367
+ beforeMount?: (() => void) | (() => void)[];
368
+ mounted?: (() => void) | (() => void)[];
369
+ beforeUpdate?: (() => void) | (() => void)[];
370
+ updated?: (() => void) | (() => void)[];
371
+ activated?: (() => void) | (() => void)[];
372
+ deactivated?: (() => void) | (() => void)[];
373
+ beforeDestroy?: (() => void) | (() => void)[];
374
+ beforeUnmount?: (() => void) | (() => void)[];
375
+ destroyed?: (() => void) | (() => void)[];
376
+ unmounted?: (() => void) | (() => void)[];
377
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
378
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
379
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
380
+ };
381
+ $forceUpdate: () => void;
382
+ $nextTick: typeof import('vue').nextTick;
383
+ $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;
384
+ } & Readonly<{
385
+ preventFocus: boolean;
386
+ tag: string;
387
+ }> & Omit<Readonly<{
388
+ preventFocus?: boolean;
389
+ tag?: string;
390
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
391
+ $slots: {
392
+ default?(_: {}): any;
393
+ };
394
+ }) | null;
395
+ arrowRef: HTMLDivElement;
396
+ };
271
397
  $slots: Readonly<{
272
398
  [name: string]: import('vue').Slot<any> | undefined;
273
399
  }>;
@@ -388,7 +514,7 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
388
514
  show(): void;
389
515
  updatePosition(x: number, y: number): void;
390
516
  }> & {} & import('vue').ComponentCustomProperties & {} & {
391
- $slots: any;
517
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
392
518
  }) | null;
393
519
  }, any>;
394
520
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName, PopupContainer } from '../_shared/type';
3
3
  import { OnBeforeCancel, OnBeforeOk } from '../Modal';
4
4
  import { TriggerPostion, TriggerProps } from '../Trigger';
@@ -30,9 +30,9 @@ export interface PopconfirmEmits {
30
30
  (e: 'cancel'): void;
31
31
  }
32
32
  export interface PopconfirmSlots {
33
- default(): void;
34
- content(): void;
35
- icon(): void;
33
+ default?: () => VNode[];
34
+ content?: () => VNode[];
35
+ icon?: () => VNode[];
36
36
  }
37
37
  export type PopconfirmType = 'info' | 'success' | 'warning' | 'error';
38
38
  export interface PopconfirmExpose {
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName, PopupContainer } from '../_shared/type';
3
3
  import { TriggerPostion, TriggerProps, TriggerType } from '../Trigger';
4
4
  export interface PopoverProps {
@@ -20,9 +20,9 @@ export interface PopoverEmits {
20
20
  (e: 'popup-visible-change', value: boolean): void;
21
21
  }
22
22
  export interface PopoverSlots {
23
- default(): void;
24
- content(): void;
25
- title(): void;
23
+ default?: () => VNode[];
24
+ content?: () => VNode[];
25
+ title?: () => VNode[];
26
26
  }
27
27
  export interface PopoverExpose {
28
28
  hide(): void;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RadioType, RadioGroupEmits, RadioValue, RadioOption } from '../type';
3
- import { Size, Props } from '../../_shared/type';
2
+ import { RadioType, RadioGroupEmits, RadioValue } from '../type';
3
+ import { Size, Props, ObjectData } from '../../_shared/type';
4
4
  interface RadioContext {
5
5
  computedValue: Ref<RadioValue | undefined>;
6
6
  type: Ref<RadioType>;
@@ -11,10 +11,7 @@ interface RadioContext {
11
11
  }
12
12
  declare const _default: () => {
13
13
  provide: (props: Props, emits: RadioGroupEmits) => {
14
- options: import('vue').ComputedRef<((RadioOption & Record<string, unknown>) | {
15
- label: RadioOption;
16
- value: RadioOption;
17
- })[]>;
14
+ options: import('vue').ComputedRef<ObjectData[]>;
18
15
  };
19
16
  inject: () => RadioContext;
20
17
  };
@@ -1,4 +1,5 @@
1
1
  import { Direction, Size, ObjectData } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface RadioProps {
3
4
  modelValue?: RadioValue;
4
5
  defaultChecked?: boolean;
@@ -11,11 +12,11 @@ export interface RadioEmits {
11
12
  (e: 'change', value: RadioValue, ev: Event): void;
12
13
  }
13
14
  export interface RadioSlots {
14
- default(): void;
15
- radio(scope: {
15
+ default?: () => VNode[];
16
+ radio?: (scope: {
16
17
  checked: boolean;
17
18
  disabled: boolean;
18
- }): void;
19
+ }) => VNode[];
19
20
  }
20
21
  export interface RadioGroupProps {
21
22
  modelValue?: RadioValue;
@@ -31,14 +32,14 @@ export interface RadioGroupEmits {
31
32
  (e: 'change', value: RadioValue): void;
32
33
  }
33
34
  export interface RadioGroupSlots {
34
- default(): void;
35
- radio(scope: {
35
+ default?: () => VNode[];
36
+ radio?: (scope: {
36
37
  checked: boolean;
37
38
  disabled: boolean;
38
- }): void;
39
- label(scope: {
39
+ }) => VNode[];
40
+ label?: (scope: {
40
41
  data: ObjectData;
41
- }): void;
42
+ }) => VNode[];
42
43
  }
43
44
  export type RadioOption = (RadioValue | {
44
45
  label?: string;
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface RateProps {
2
3
  count?: number;
3
4
  modelValue?: number;
@@ -15,7 +16,7 @@ export interface RateEmits {
15
16
  (e: 'hover-change', value: number): void;
16
17
  }
17
18
  export interface RateSlots {
18
- character(scope: {
19
+ character?: (scope: {
19
20
  index: number;
20
- }): void;
21
+ }) => VNode[];
21
22
  }
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface ResizeBoxProps {
2
3
  width?: number;
3
4
  height?: number;
@@ -15,12 +16,12 @@ export interface ResizeBoxEmits {
15
16
  (e: 'moving-end', ev: MouseEvent): void;
16
17
  }
17
18
  export interface ResizeBoxSlots {
18
- default(): void;
19
- ['resize-trigger'](scope: {
19
+ default?: () => VNode[];
20
+ 'resize-trigger'?: (scope: {
20
21
  direction: ResizeBoxDirection;
21
- }): void;
22
- ['resize-trigger-icon'](scope: {
22
+ }) => VNode[];
23
+ 'resize-trigger-icon'?: (scope: {
23
24
  direction: ResizeBoxDirection;
24
- }): void;
25
+ }) => VNode[];
25
26
  }
26
27
  export type ResizeBoxDirection = 'left' | 'right' | 'top' | 'bottom';
@@ -1,13 +1,14 @@
1
+ import { VNode } from 'vue';
1
2
  export interface ResultProps {
2
3
  status?: ResultStatus;
3
4
  title?: string;
4
5
  subtitle?: string;
5
6
  }
6
7
  export interface ResultSlots {
7
- icon(): void;
8
- title(): void;
9
- subtitle(): void;
10
- default(): void;
11
- extra(): void;
8
+ icon?: () => VNode[];
9
+ title?: () => VNode[];
10
+ subtitle?: () => VNode[];
11
+ default?: () => VNode[];
12
+ extra?: () => VNode[];
12
13
  }
13
14
  export type ResultStatus = 'info' | 'success' | 'warning' | 'error' | '403' | '404' | '500' | null;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName } from '../_shared/type';
3
3
  export interface ScrollbarProps {
4
4
  type?: TackType;
@@ -10,7 +10,7 @@ export interface ScrollbarEmits {
10
10
  (e: 'scroll', left: number, top: number, ev: Event): void;
11
11
  }
12
12
  export interface ScrollbarSlots {
13
- default(): void;
13
+ default?: () => VNode[];
14
14
  }
15
15
  export interface ScrollbarExpose {
16
16
  scrollTo(options: ScrollOptions): void;