yc-design-vue 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/es/Affix/index.vue.js +1 -2
  2. package/es/Anchor/Anchor.vue2.js +1 -2
  3. package/es/AutoComplete/index.d.ts +16 -19
  4. package/es/AutoComplete/index.vue.d.ts +27 -33
  5. package/es/Avatar/Avatar.vue2.js +1 -2
  6. package/es/Avatar/AvatarGroup.vue2.js +1 -2
  7. package/es/Badge/index.vue2.js +1 -2
  8. package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  9. package/es/Button/hooks/useContext.d.ts +1 -1
  10. package/es/Carousel/CarouselIndicator.vue2.js +1 -2
  11. package/es/Carousel/hooks/useContext.js +1 -2
  12. package/es/Cascader/Cascader.vue.d.ts +7 -7
  13. package/es/Cascader/Cascader.vue2.js +1 -2
  14. package/es/Cascader/CascaderOption.vue2.js +1 -2
  15. package/es/Cascader/index.d.ts +6 -6
  16. package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  17. package/es/Checkbox/index.d.ts +3 -3
  18. package/es/ColorPicker/ColorControl.vue2.js +1 -2
  19. package/es/ColorPicker/ColorPalette.vue2.js +1 -2
  20. package/es/ColorPicker/ColorPicker.vue.d.ts +2 -2
  21. package/es/ColorPicker/index.d.ts +6 -6
  22. package/es/Descriptions/Descriptions.vue.d.ts +1 -1
  23. package/es/Descriptions/index.d.ts +3 -3
  24. package/es/Divider/index.d.ts +3 -3
  25. package/es/Divider/index.vue.d.ts +1 -1
  26. package/es/Divider/index.vue2.js +1 -2
  27. package/es/Drawer/Drawer.vue2.js +1 -2
  28. package/es/Dropdown/Dropdown.vue.js +1 -2
  29. package/es/Dropdown/Dsubmenu.vue2.js +1 -2
  30. package/es/Grid/Grid.vue2.js +1 -2
  31. package/es/Grid/GridCol.vue.js +1 -2
  32. package/es/Grid/GridItem.vue.js +1 -2
  33. package/es/Grid/GridRow.vue2.js +1 -2
  34. package/es/Icon/index.vue2.js +1 -2
  35. package/es/Image/Image.vue2.js +1 -2
  36. package/es/Image/ImagePreview.vue.d.ts +1 -1
  37. package/es/Image/ImagePreview.vue.js +1 -1
  38. package/es/Image/ImagePreview.vue2.js +0 -1
  39. package/es/Image/ImagePreviewToolbar.vue2.js +6 -6
  40. package/es/Image/index.d.ts +3 -3
  41. package/es/Input/Input.vue.d.ts +1 -1
  42. package/es/Input/index.d.ts +3 -3
  43. package/es/InputNumber/InputNumber.vue.d.ts +7 -7
  44. package/es/InputNumber/InputNumber.vue2.js +1 -2
  45. package/es/InputNumber/index.d.ts +6 -6
  46. package/es/InputTag/index.d.ts +5 -5
  47. package/es/InputTag/index.vue.d.ts +2 -2
  48. package/es/InputTag/index.vue2.js +1 -2
  49. package/es/Layout/LayoutSider.vue2.js +1 -2
  50. package/es/List/List.vue.d.ts +1 -2
  51. package/es/List/List.vue.js +1 -1
  52. package/es/List/List.vue2.js +6 -24
  53. package/es/List/hooks/useScrollReach.js +1 -2
  54. package/es/List/index.d.ts +3 -6
  55. package/es/List/type.d.ts +0 -2
  56. package/es/Mention/index.d.ts +16 -19
  57. package/es/Mention/index.vue.d.ts +32 -38
  58. package/es/Menu/MenuItem.vue2.js +1 -2
  59. package/es/Menu/MenuItemGroup.vue2.js +1 -2
  60. package/es/Menu/hooks/useContext.js +1 -2
  61. package/es/Message/Message.vue.d.ts +2 -2
  62. package/es/Message/index.d.ts +6 -6
  63. package/es/Modal/Modal.vue2.js +1 -2
  64. package/es/Modal/hooks/useModalDraggable.js +1 -2
  65. package/es/Notification/Notification.vue.d.ts +2 -2
  66. package/es/Notification/index.d.ts +6 -6
  67. package/es/OverflowList/index.vue2.js +1 -2
  68. package/es/Pagination/Pagination.vue2.js +1 -2
  69. package/es/Progress/ProgressCircle.vue2.js +2 -3
  70. package/es/Progress/ProgressLine.vue2.js +1 -2
  71. package/es/Progress/ProgressSteps.vue.js +1 -2
  72. package/es/Radio/RadioGroup.vue.d.ts +1 -1
  73. package/es/Radio/index.d.ts +3 -3
  74. package/es/Rate/index.vue2.js +1 -2
  75. package/es/ResizeBox/index.vue2.js +1 -2
  76. package/es/Scrollbar/ScrollbarTrack.vue2.js +1 -2
  77. package/es/Select/Select.vue.d.ts +13 -14
  78. package/es/Select/Select.vue.js +1 -1
  79. package/es/Select/Select.vue2.js +1 -3
  80. package/es/Select/index.d.ts +13 -16
  81. package/es/Select/type.d.ts +0 -1
  82. package/es/Skeleton/SkeletonLine.vue.d.ts +1 -1
  83. package/es/Skeleton/SkeletonLine.vue2.js +1 -2
  84. package/es/Skeleton/index.d.ts +1 -1
  85. package/es/Slider/Slider.vue.d.ts +3 -3
  86. package/es/Slider/hooks/useSliderDraggable.js +1 -2
  87. package/es/Slider/index.d.ts +9 -9
  88. package/es/Space/index.d.ts +3 -3
  89. package/es/Space/index.vue.d.ts +1 -1
  90. package/es/Space/index.vue2.js +1 -2
  91. package/es/Spin/index.vue2.js +1 -2
  92. package/es/Split/index.d.ts +3 -3
  93. package/es/Split/index.vue.d.ts +1 -1
  94. package/es/Split/index.vue2.js +1 -2
  95. package/es/Statistic/Countdown.vue.d.ts +1 -1
  96. package/es/Statistic/Countdown.vue.js +1 -2
  97. package/es/Statistic/Statistic.vue.d.ts +1 -1
  98. package/es/Statistic/Statistic.vue.js +1 -1
  99. package/es/Statistic/Statistic.vue2.js +9 -2
  100. package/es/Statistic/index.d.ts +6 -6
  101. package/es/Tabs/Tabs.vue2.js +1 -2
  102. package/es/Tabs/TabsNavInk.vue2.js +1 -2
  103. package/es/Tabs/hooks/useTabsScroll.js +1 -2
  104. package/es/Textarea/hooks/useTextareaHeight.js +1 -2
  105. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  106. package/es/TimePicker/TimePickerPanel.vue2.js +1 -2
  107. package/es/TimePicker/index.d.ts +15 -15
  108. package/es/Tooltip/index.d.ts +3 -3
  109. package/es/Tooltip/index.vue.d.ts +1 -1
  110. package/es/Tooltip/index.vue.js +1 -1
  111. package/es/Transfer/TransferPanel.vue2.js +2 -2
  112. package/es/Trigger/hooks/useContext.js +1 -2
  113. package/es/Trigger/hooks/useTriggerPosition.js +1 -2
  114. package/es/Typography/TypographyBase.vue.d.ts +6 -6
  115. package/es/Typography/TypographyBase.vue.js +1 -1
  116. package/es/Typography/TypographyBase.vue2.js +2 -6
  117. package/es/VerificationCode/index.vue2.js +1 -2
  118. package/es/_shared/components/ExpandTransition.vue3.js +1 -2
  119. package/es/_shared/components/Icon.vue3.js +1 -2
  120. package/es/_shared/components/IconButton.vue3.js +1 -2
  121. package/es/_shared/constants/index.d.ts +8 -0
  122. package/es/_shared/constants/index.js +9 -0
  123. package/es/_shared/icons/IconDelete.vue.js +1 -16
  124. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  125. package/es/_shared/icons/IconExclamation.vue.js +27 -1
  126. package/es/_shared/icons/IconExclamation.vue2.js +1 -27
  127. package/es/_shared/icons/IconFullScreen.vue.js +16 -1
  128. package/es/_shared/icons/IconFullScreen.vue2.js +1 -16
  129. package/es/_shared/icons/IconOriginSize.vue.js +22 -1
  130. package/es/_shared/icons/IconOriginSize.vue2.js +1 -22
  131. package/es/_shared/icons/IconRotateLeft.vue.js +16 -1
  132. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -16
  133. package/es/_shared/icons/IconRotateRight.vue.js +16 -1
  134. package/es/_shared/icons/IconRotateRight.vue2.js +1 -16
  135. package/es/_shared/icons/IconSearch.vue.js +1 -16
  136. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  137. package/es/_shared/icons/IconSeparator.vue.js +1 -16
  138. package/es/_shared/icons/IconSeparator.vue2.js +16 -1
  139. package/es/_shared/icons/IconZoomIn.vue.js +16 -1
  140. package/es/_shared/icons/IconZoomIn.vue2.js +1 -16
  141. package/es/_shared/icons/IconZoomOut.vue.js +16 -1
  142. package/es/_shared/icons/IconZoomOut.vue2.js +1 -16
  143. package/es/_shared/utils/dom.d.ts +7 -18
  144. package/es/_shared/utils/dom.js +80 -13
  145. package/es/_shared/utils/index.d.ts +0 -1
  146. package/es/_shared/utils/time.d.ts +1 -37
  147. package/es/_shared/utils/time.js +2 -2
  148. package/es/_shared/utils/vue-utils.d.ts +4 -4
  149. package/es/_shared/utils/vue-utils.js +6 -6
  150. package/es/index.d.ts +13 -13
  151. package/es/style.css +1 -1
  152. package/lib/Affix/index.vue.js +1 -1
  153. package/lib/Anchor/Anchor.vue2.js +1 -1
  154. package/lib/AutoComplete/index.d.ts +16 -19
  155. package/lib/AutoComplete/index.vue.d.ts +27 -33
  156. package/lib/Avatar/Avatar.vue2.js +1 -1
  157. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  158. package/lib/Badge/index.vue2.js +1 -1
  159. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  160. package/lib/Button/hooks/useContext.d.ts +1 -1
  161. package/lib/Carousel/CarouselIndicator.vue2.js +1 -1
  162. package/lib/Carousel/hooks/useContext.js +1 -1
  163. package/lib/Cascader/Cascader.vue.d.ts +7 -7
  164. package/lib/Cascader/Cascader.vue2.js +1 -1
  165. package/lib/Cascader/CascaderOption.vue2.js +1 -1
  166. package/lib/Cascader/index.d.ts +6 -6
  167. package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  168. package/lib/Checkbox/index.d.ts +3 -3
  169. package/lib/ColorPicker/ColorControl.vue2.js +1 -1
  170. package/lib/ColorPicker/ColorPalette.vue2.js +1 -1
  171. package/lib/ColorPicker/ColorPicker.vue.d.ts +2 -2
  172. package/lib/ColorPicker/index.d.ts +6 -6
  173. package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
  174. package/lib/Descriptions/index.d.ts +3 -3
  175. package/lib/Divider/index.d.ts +3 -3
  176. package/lib/Divider/index.vue.d.ts +1 -1
  177. package/lib/Divider/index.vue2.js +1 -1
  178. package/lib/Drawer/Drawer.vue2.js +1 -1
  179. package/lib/Dropdown/Dropdown.vue.js +1 -1
  180. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  181. package/lib/Grid/Grid.vue2.js +1 -1
  182. package/lib/Grid/GridCol.vue.js +1 -1
  183. package/lib/Grid/GridItem.vue.js +1 -1
  184. package/lib/Grid/GridRow.vue2.js +1 -1
  185. package/lib/Icon/index.vue2.js +1 -1
  186. package/lib/Image/Image.vue2.js +1 -1
  187. package/lib/Image/ImagePreview.vue.d.ts +1 -1
  188. package/lib/Image/ImagePreview.vue.js +1 -1
  189. package/lib/Image/ImagePreviewToolbar.vue2.js +1 -1
  190. package/lib/Image/index.d.ts +3 -3
  191. package/lib/Input/Input.vue.d.ts +1 -1
  192. package/lib/Input/index.d.ts +3 -3
  193. package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
  194. package/lib/InputNumber/InputNumber.vue2.js +1 -1
  195. package/lib/InputNumber/index.d.ts +6 -6
  196. package/lib/InputTag/index.d.ts +5 -5
  197. package/lib/InputTag/index.vue.d.ts +2 -2
  198. package/lib/InputTag/index.vue2.js +1 -1
  199. package/lib/Layout/LayoutSider.vue2.js +1 -1
  200. package/lib/List/List.vue.d.ts +1 -2
  201. package/lib/List/List.vue.js +1 -1
  202. package/lib/List/List.vue2.js +1 -1
  203. package/lib/List/hooks/useScrollReach.js +1 -1
  204. package/lib/List/index.d.ts +3 -6
  205. package/lib/List/type.d.ts +0 -2
  206. package/lib/Mention/index.d.ts +16 -19
  207. package/lib/Mention/index.vue.d.ts +32 -38
  208. package/lib/Menu/MenuItem.vue2.js +1 -1
  209. package/lib/Menu/MenuItemGroup.vue2.js +1 -1
  210. package/lib/Menu/hooks/useContext.js +1 -1
  211. package/lib/Message/Message.vue.d.ts +2 -2
  212. package/lib/Message/index.d.ts +6 -6
  213. package/lib/Modal/Modal.vue2.js +1 -1
  214. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  215. package/lib/Notification/Notification.vue.d.ts +2 -2
  216. package/lib/Notification/index.d.ts +6 -6
  217. package/lib/OverflowList/index.vue2.js +1 -1
  218. package/lib/Pagination/Pagination.vue2.js +1 -1
  219. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  220. package/lib/Progress/ProgressLine.vue2.js +1 -1
  221. package/lib/Progress/ProgressSteps.vue.js +1 -1
  222. package/lib/Radio/RadioGroup.vue.d.ts +1 -1
  223. package/lib/Radio/index.d.ts +3 -3
  224. package/lib/Rate/index.vue2.js +1 -1
  225. package/lib/ResizeBox/index.vue2.js +1 -1
  226. package/lib/Scrollbar/ScrollbarTrack.vue2.js +1 -1
  227. package/lib/Select/Select.vue.d.ts +13 -14
  228. package/lib/Select/Select.vue.js +1 -1
  229. package/lib/Select/Select.vue2.js +1 -1
  230. package/lib/Select/index.d.ts +13 -16
  231. package/lib/Select/type.d.ts +0 -1
  232. package/lib/Skeleton/SkeletonLine.vue.d.ts +1 -1
  233. package/lib/Skeleton/SkeletonLine.vue2.js +1 -1
  234. package/lib/Skeleton/index.d.ts +1 -1
  235. package/lib/Slider/Slider.vue.d.ts +3 -3
  236. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  237. package/lib/Slider/index.d.ts +9 -9
  238. package/lib/Space/index.d.ts +3 -3
  239. package/lib/Space/index.vue.d.ts +1 -1
  240. package/lib/Space/index.vue2.js +1 -1
  241. package/lib/Spin/index.vue2.js +1 -1
  242. package/lib/Split/index.d.ts +3 -3
  243. package/lib/Split/index.vue.d.ts +1 -1
  244. package/lib/Split/index.vue2.js +1 -1
  245. package/lib/Statistic/Countdown.vue.d.ts +1 -1
  246. package/lib/Statistic/Countdown.vue.js +1 -1
  247. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  248. package/lib/Statistic/Statistic.vue.js +1 -1
  249. package/lib/Statistic/Statistic.vue2.js +1 -1
  250. package/lib/Statistic/index.d.ts +6 -6
  251. package/lib/Tabs/Tabs.vue2.js +1 -1
  252. package/lib/Tabs/TabsNavInk.vue2.js +1 -1
  253. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  254. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  255. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  256. package/lib/TimePicker/TimePickerPanel.vue2.js +1 -1
  257. package/lib/TimePicker/index.d.ts +15 -15
  258. package/lib/Tooltip/index.d.ts +3 -3
  259. package/lib/Tooltip/index.vue.d.ts +1 -1
  260. package/lib/Tooltip/index.vue.js +1 -1
  261. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  262. package/lib/Trigger/hooks/useContext.js +1 -1
  263. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  264. package/lib/Typography/TypographyBase.vue.d.ts +6 -6
  265. package/lib/Typography/TypographyBase.vue.js +1 -1
  266. package/lib/Typography/TypographyBase.vue2.js +1 -1
  267. package/lib/VerificationCode/index.vue2.js +1 -1
  268. package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
  269. package/lib/_shared/components/Icon.vue3.js +1 -1
  270. package/lib/_shared/components/IconButton.vue3.js +1 -1
  271. package/lib/_shared/constants/index.d.ts +8 -0
  272. package/lib/_shared/constants/index.js +1 -1
  273. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  274. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  275. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  276. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  277. package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
  278. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  279. package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
  280. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  281. package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
  282. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  283. package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
  284. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  285. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  286. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  287. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  288. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  289. package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
  290. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  291. package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
  292. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  293. package/lib/_shared/utils/dom.d.ts +7 -18
  294. package/lib/_shared/utils/dom.js +1 -1
  295. package/lib/_shared/utils/index.d.ts +0 -1
  296. package/lib/_shared/utils/time.d.ts +1 -37
  297. package/lib/_shared/utils/time.js +1 -1
  298. package/lib/_shared/utils/vue-utils.d.ts +4 -4
  299. package/lib/_shared/utils/vue-utils.js +1 -1
  300. package/lib/index.d.ts +13 -13
  301. package/lib/style.css +1 -1
  302. package/package.json +1 -1
  303. package/es/_shared/utils/fn.d.ts +0 -8
  304. package/es/_shared/utils/fn.js +0 -79
  305. package/lib/_shared/utils/fn.d.ts +0 -8
  306. package/lib/_shared/utils/fn.js +0 -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=e.useSlots(),s=a,i=n,{min:c,margin:f,from:m}=e.toRefs(s),v=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-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<d.value.length;l++){const o=t+(l>0?f.value:0)+d.value[l];if(o>r)break;t=o,e++}v.value=e>c.value?e:c.value},180)),e.watch(()=>v.value,()=>{i("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);d.value=e},{immediate:!0}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(m)}`]),style:e.normalizeStyle({gap:e.unref(l.valueToPx)(e.unref(f)),padding:"start"==e.unref(m)?`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");const l=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const o=require("../node_modules/@vueuse/core/index.js"),r=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:m,from:v}=e.toRefs(s),f=e.ref(1e4),d=e.ref([]),p=e.computed(()=>{var e;return t.findComponentsFromVnodes((null==(e=u.default)?void 0:e.call(u))||[],r.name)}),y=e.ref(),g=e.ref(),h=e.computed(()=>g.value?o.unrefElement(g).offsetWidth+m.value:m.value),k=e.computed(()=>p.value.length-f.value);return o.useResizeObserver(y,l.throttle(async()=>{await l.sleep(0);let e=0,t=0;const o=y.value.offsetWidth;for(let l=0;l<d.value.length;l++){const r=t+(l>0?m.value:0)+d.value[l];if(r>o)break;t=r,e++}f.value=e>c.value?e:c.value},180)),e.watch(()=>f.value,()=>{i("change",k.value)}),e.watch(()=>p.value.length,async()=>{f.value=1e5,await l.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);d.value=e},{immediate:!0}),(t,o)=>(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(m)),padding:"start"==e.unref(v)?`0 0 0 ${e.unref(l.valueToPx)(h.value)}`:` 0 ${e.unref(l.valueToPx)(h.value)} 0 0`}),ref_key:"listRef",ref:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),f.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:g},[e.renderSlot(t.$slots,"overflow",{number:k.value},()=>[e.createVNode(e.unref(r),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${k.value}`),1)]),_:1})],!0)],512)):e.createCommentVNode("",!0)],6))}});module.exports=a;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),l=require("./PaginationItem.vue.js"),n=require("../Select/index.js"),i=require("../InputNumber/index.js"),s={key:0,class:"yc-pagination-total"},r={key:1,class:"yc-pagination-jumper yc-pagination-jumper-simple"},u={class:"yc-pagination-jumper-total-page"},p={key:1,class:"yc-pagination-options"},d={key:2,class:"yc-pagination-jumper"},c=e.defineComponent({name:"Pagination",__name:"Pagination",props:{total:{},current:{default:void 0},defaultCurrent:{default:1},pageSize:{default:void 0},defaultPageSize:{default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,30,40,50]},pageSizeProps:{default:()=>({})},size:{default:void 0},pageItemStyle:{default:()=>({})},activePageItemStyle:{default:()=>({})},baseSize:{default:6},bufferSize:{default:2},autoAdjust:{type:Boolean,default:!0}},emits:["update:current","update:pageSize","change","page-size-change"],setup(c,{emit:m}){const g=c,f=m,{computedCurrent:y,pages:v,pagesArray:k,computedPageSize:V,size:h,total:B,sizeOptions:S}=o().provide(g,f),z=e.ref(y.value);e.watch(()=>y.value,()=>{z.value!=y.value&&(z.value=y.value)});const N=async e=>{`${z.value}`.length&&(y.value=z.value),await t.sleep(0);const a=e.target;+a.value!=y.value&&(a.value=y.value)};return(t,o)=>!t.hideOnSinglePage||t.hideOnSinglePage&&e.unref(v)<=1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-pagination",`yc-pagination-size-${e.unref(h)}`])},[t.showTotal?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(t.$slots,"total",{total:e.unref(B)},()=>[e.createTextVNode(" 共 "+e.toDisplayString(e.unref(B))+" 条 ",1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass([t.simple?"yc-pagination-simple":"yc-pagination-list"])},[e.createVNode(l,{type:"pre",class:"yc-pagination-item-previous"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"previous"},void 0,!0):e.createCommentVNode("",!0)]),_:3}),t.simple?(e.openBlock(),e.createElementBlock("span",r,[e.createVNode(e.unref(i),{modelValue:e.unref(y),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(y)?y.value=t:null),"hide-button":"",size:e.unref(h),disabled:t.disabled},null,8,["modelValue","size","disabled"]),o[4]||(o[4]=e.createElementVNode("span",{class:"yc-pagination-jumper-separator"},"/",-1)),e.createElementVNode("span",u,e.toDisplayString(e.unref(v)),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(k),o=>(e.openBlock(),e.createBlock(l,{type:e.unref(a.isNumber)(o)?"item":o,key:o,page:e.unref(a.isNumber)(o)?o:-1},{default:e.withCtx(()=>[e.unref(a.isNumber)(o)?e.renderSlot(t.$slots,"page-item",{key:0,page:o},()=>[e.createTextVNode(e.toDisplayString(o),1)],!0):t.$slots["page-item-ellipsis"]?e.renderSlot(t.$slots,"page-item-ellipsis",{key:1},void 0,!0):e.createCommentVNode("",!0)]),_:2},1032,["type","page"]))),128)),t.showMore&&!t.simple?(e.openBlock(),e.createBlock(l,{key:2,type:"more-right",class:"'yc-pagination-item-ellipsis'"})):e.createCommentVNode("",!0),e.createVNode(l,{type:"next",class:"yc-pagination-item-next"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"next"},void 0,!0):e.createCommentVNode("",!0)]),_:3})],2),t.showPageSize?(e.openBlock(),e.createElementBlock("span",p,[e.createVNode(e.unref(n.default),e.mergeProps({modelValue:e.unref(V),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(V)?V.value=t:null),options:e.unref(S),size:e.unref(h)},t.pageSizeProps,{disabled:t.disabled}),null,16,["modelValue","options","size","disabled"])])):e.createCommentVNode("",!0),t.showJumper?(e.openBlock(),e.createElementBlock("span",d,[o[5]||(o[5]=e.createElementVNode("span",{class:"yc-pagination-jumper-text-goto"}," 前往 ",-1)),e.createVNode(e.unref(i),{modelValue:z.value,"onUpdate:modelValue":o[2]||(o[2]=e=>z.value=e),"hide-button":"",size:e.unref(h),disabled:t.disabled,min:1,max:e.unref(v),onFocus:o[3]||(o[3]=t=>z.value=e.unref(y)),onBlur:N},null,8,["modelValue","size","disabled","max"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}});module.exports=c;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),l=require("./PaginationItem.vue.js"),n=require("../Select/index.js"),i=require("../InputNumber/index.js"),s={key:0,class:"yc-pagination-total"},r={key:1,class:"yc-pagination-jumper yc-pagination-jumper-simple"},u={class:"yc-pagination-jumper-total-page"},p={key:1,class:"yc-pagination-options"},d={key:2,class:"yc-pagination-jumper"},c=e.defineComponent({name:"Pagination",__name:"Pagination",props:{total:{},current:{default:void 0},defaultCurrent:{default:1},pageSize:{default:void 0},defaultPageSize:{default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,30,40,50]},pageSizeProps:{default:()=>({})},size:{default:void 0},pageItemStyle:{default:()=>({})},activePageItemStyle:{default:()=>({})},baseSize:{default:6},bufferSize:{default:2},autoAdjust:{type:Boolean,default:!0}},emits:["update:current","update:pageSize","change","page-size-change"],setup(c,{emit:m}){const g=c,y=m,{computedCurrent:f,pages:v,pagesArray:k,computedPageSize:V,size:h,total:B,sizeOptions:S}=o().provide(g,y),z=e.ref(f.value);e.watch(()=>f.value,()=>{z.value!=f.value&&(z.value=f.value)});const N=async e=>{`${z.value}`.length&&(f.value=z.value),await t.sleep(0);const a=e.target;+a.value!=f.value&&(a.value=f.value)};return(t,o)=>!t.hideOnSinglePage||t.hideOnSinglePage&&e.unref(v)<=1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-pagination",`yc-pagination-size-${e.unref(h)}`])},[t.showTotal?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(t.$slots,"total",{total:e.unref(B)},()=>[e.createTextVNode(" 共 "+e.toDisplayString(e.unref(B))+" 条 ",1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass([t.simple?"yc-pagination-simple":"yc-pagination-list"])},[e.createVNode(l,{type:"pre",class:"yc-pagination-item-previous"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"previous"},void 0,!0):e.createCommentVNode("",!0)]),_:3}),t.simple?(e.openBlock(),e.createElementBlock("span",r,[e.createVNode(e.unref(i),{modelValue:e.unref(f),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(f)?f.value=t:null),"hide-button":"",size:e.unref(h),disabled:t.disabled},null,8,["modelValue","size","disabled"]),o[4]||(o[4]=e.createElementVNode("span",{class:"yc-pagination-jumper-separator"},"/",-1)),e.createElementVNode("span",u,e.toDisplayString(e.unref(v)),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(k),o=>(e.openBlock(),e.createBlock(l,{type:e.unref(a.isNumber)(o)?"item":o,key:o,page:e.unref(a.isNumber)(o)?o:-1},{default:e.withCtx(()=>[e.unref(a.isNumber)(o)?e.renderSlot(t.$slots,"page-item",{key:0,page:o},()=>[e.createTextVNode(e.toDisplayString(o),1)],!0):t.$slots["page-item-ellipsis"]?e.renderSlot(t.$slots,"page-item-ellipsis",{key:1},void 0,!0):e.createCommentVNode("",!0)]),_:2},1032,["type","page"]))),128)),t.showMore&&!t.simple?(e.openBlock(),e.createBlock(l,{key:2,type:"more-right",class:"'yc-pagination-item-ellipsis'"})):e.createCommentVNode("",!0),e.createVNode(l,{type:"next",class:"yc-pagination-item-next"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"next"},void 0,!0):e.createCommentVNode("",!0)]),_:3})],2),t.showPageSize?(e.openBlock(),e.createElementBlock("span",p,[e.createVNode(e.unref(n.default),e.mergeProps({modelValue:e.unref(V),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(V)?V.value=t:null),options:e.unref(S),size:e.unref(h)},t.pageSizeProps,{disabled:t.disabled}),null,16,["modelValue","options","size","disabled"])])):e.createCommentVNode("",!0),t.showJumper?(e.openBlock(),e.createElementBlock("span",d,[o[5]||(o[5]=e.createElementVNode("span",{class:"yc-pagination-jumper-text-goto"}," 前往 ",-1)),e.createVNode(e.unref(i),{modelValue:z.value,"onUpdate:modelValue":o[2]||(o[2]=e=>z.value=e),"hide-button":"",size:e.unref(h),disabled:t.disabled,min:1,max:e.unref(v),onFocus:o[3]||(o[3]=t=>z.value=e.unref(f)),onBlur:N},null,8,["modelValue","size","disabled","max"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}});module.exports=c;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconCheck.vue.js"),t=require("../_shared/icons/IconExclamation.vue2.js"),s=require("../_shared/constants/index.js"),c=["aria-valuenow"],a=["viewBox"],n={key:0},u=["id"],i=["offset","stop-color"],m=["cx","cy","r","stroke-width"],d=["cx","cy","r","stroke-width"],p={key:2,class:e.normalizeClass("yc-progress-circle-text")},k=e.defineComponent({__name:"ProgressCircle",props:{type:{},percent:{},status:{},size:{},text:{},showText:{type:Boolean},width:{},strokeWidth:{},pathStrokeWidth:{},color:{},trackColor:{}},setup(k){const v=k,{size:y,width:f,color:h,strokeWidth:x,pathStrokeWidth:B}=e.toRefs(v);let _=0;const g=e.computed(()=>l.isObject(h.value)),C=e.computed(()=>x.value??("mini"===y.value?f.value/2:{mini:4,small:3,medium:4,large:4}[y.value])),E=e.computed(()=>B.value?B.value:"mini"===y.value?C.value:Math.max(2,C.value-2)),w=e.computed(()=>(f.value-C.value)/2),j=e.computed(()=>2*Math.PI*w.value),z=e.computed(()=>f.value/2),O=e.computed(()=>(_+=1,`yc-progress-circle-linear-gradient-${_}`));return(k,v)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":k.percent,class:e.normalizeClass("yc-progress-circle-wrapper"),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(f)),height:e.unref(r.valueToPx)(e.unref(f))})},["circle"===k.type&&"mini"===e.unref(y)&&"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:0,style:e.normalizeStyle({fontSize:e.unref(f)-2,color:e.unref(h)??e.unref(s.TYPE_ICON_COLOR_MAP).success})},null,8,["style"])):(e.openBlock(),e.createElementBlock("svg",{key:1,viewBox:`0 0 ${e.unref(f)} ${e.unref(f)}`,class:e.normalizeClass("yc-progress-circle-svg")},[e.unref(l.isObject)(e.unref(h))?(e.openBlock(),e.createElementBlock("defs",n,[e.createElementVNode("linearGradient",{id:O.value,x1:"0",y1:"1",x2:"0",y2:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(e.unref(h)),r=>(e.openBlock(),e.createElementBlock("stop",{key:r,offset:r,"stop-color":e.unref(h)[r]},null,8,i))),128))],8,u)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bg"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":E.value,style:e.normalizeStyle({stroke:k.trackColor})},null,12,m),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bar"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":C.value,style:e.normalizeStyle({stroke:g.value?`url(#${O.value})`:e.unref(h),strokeDasharray:j.value,strokeDashoffset:(k.percent>=1?0:1-k.percent)*j.value})},null,12,d)],8,a)),k.showText&&"mini"!==e.unref(y)?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(k.$slots,"text",{percent:k.percent},()=>["danger"===k.status?(e.openBlock(),e.createBlock(e.unref(t),{key:0,color:e.unref(s.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:1,color:e.unref(s.TYPE_ICON_COLOR_MAP).success},null,8,["color"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(k.text),1)],64))],!0)])):e.createCommentVNode("",!0)],12,c))}});module.exports=k;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconCheck.vue.js"),t=require("../_shared/icons/IconExclamation.vue.js"),s=require("../_shared/constants/index.js"),c=["aria-valuenow"],a=["viewBox"],n={key:0},u=["id"],i=["offset","stop-color"],m=["cx","cy","r","stroke-width"],d=["cx","cy","r","stroke-width"],p={key:2,class:e.normalizeClass("yc-progress-circle-text")},k=e.defineComponent({__name:"ProgressCircle",props:{type:{},percent:{},status:{},size:{},text:{},showText:{type:Boolean},width:{},strokeWidth:{},pathStrokeWidth:{},color:{},trackColor:{}},setup(k){const v=k,{size:y,width:f,color:h,strokeWidth:x,pathStrokeWidth:B}=e.toRefs(v);let _=0;const g=e.computed(()=>l.isObject(h.value)),C=e.computed(()=>x.value??("mini"===y.value?f.value/2:{mini:4,small:3,medium:4,large:4}[y.value])),E=e.computed(()=>B.value?B.value:"mini"===y.value?C.value:Math.max(2,C.value-2)),w=e.computed(()=>(f.value-C.value)/2),j=e.computed(()=>2*Math.PI*w.value),z=e.computed(()=>f.value/2),O=e.computed(()=>(_+=1,`yc-progress-circle-linear-gradient-${_}`));return(k,v)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":k.percent,class:e.normalizeClass("yc-progress-circle-wrapper"),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(f)),height:e.unref(r.valueToPx)(e.unref(f))})},["circle"===k.type&&"mini"===e.unref(y)&&"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:0,style:e.normalizeStyle({fontSize:e.unref(f)-2,color:e.unref(h)??e.unref(s.TYPE_ICON_COLOR_MAP).success})},null,8,["style"])):(e.openBlock(),e.createElementBlock("svg",{key:1,viewBox:`0 0 ${e.unref(f)} ${e.unref(f)}`,class:e.normalizeClass("yc-progress-circle-svg")},[e.unref(l.isObject)(e.unref(h))?(e.openBlock(),e.createElementBlock("defs",n,[e.createElementVNode("linearGradient",{id:O.value,x1:"0",y1:"1",x2:"0",y2:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(e.unref(h)),r=>(e.openBlock(),e.createElementBlock("stop",{key:r,offset:r,"stop-color":e.unref(h)[r]},null,8,i))),128))],8,u)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bg"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":E.value,style:e.normalizeStyle({stroke:k.trackColor})},null,12,m),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bar"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":C.value,style:e.normalizeStyle({stroke:g.value?`url(#${O.value})`:e.unref(h),strokeDasharray:j.value,strokeDashoffset:(k.percent>=1?0:1-k.percent)*j.value})},null,12,d)],8,a)),k.showText&&"mini"!==e.unref(y)?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(k.$slots,"text",{percent:k.percent},()=>["danger"===k.status?(e.openBlock(),e.createBlock(e.unref(t),{key:0,color:e.unref(s.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:1,color:e.unref(s.TYPE_ICON_COLOR_MAP).success},null,8,["color"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(k.text),1)],64))],!0)])):e.createCommentVNode("",!0)],12,c))}});module.exports=k;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const s=["aria-valuenow"],l={key:0,class:"yc-progress-line-text"},a=e.defineComponent({__name:"ProgressLine",props:{size:{},percent:{},status:{},showText:{type:Boolean},text:{},width:{},strokeWidth:{},color:{},trackColor:{}},setup(a){const n=a,{width:i,trackColor:u,color:c,percent:d,size:m,strokeWidth:p}=e.toRefs(n),v=e.computed(()=>p.value??{small:3,medium:4,large:8}[m.value]),g=e.computed(()=>({width:o.valueToPx(i.value),height:o.valueToPx(v.value),backgroundColor:u.value})),h=e.computed(()=>({width:100*d.value+"%",...y(c.value)})),y=e=>{if(t.isObject(e)){return{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(r=>`${e[r]} ${r}`).join(",")})`}}return{backgroundColor:e}};return(o,t)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.unref(d),class:"yc-progress-line-wrapper"},[e.createElementVNode("div",{class:"yc-progress-line",style:e.normalizeStyle(g.value)},[e.createElementVNode("div",{class:"yc-progress-line-bar",style:e.normalizeStyle(h.value)},null,4)],4),o.showText?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(o.$slots,"text",{percent:e.unref(d)},()=>[e.createElementVNode("span",null,e.toDisplayString(o.text),1),"danger"===o.status?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r.TYPE_ICON_MAP).warning),{key:0,color:e.unref(r.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],8,s))}});module.exports=a;
1
+ "use strict";const e=require("vue"),r=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=["aria-valuenow"],s={key:0,class:"yc-progress-line-text"},a=e.defineComponent({__name:"ProgressLine",props:{size:{},percent:{},status:{},showText:{type:Boolean},text:{},width:{},strokeWidth:{},color:{},trackColor:{}},setup(a){const n=a,{width:i,trackColor:u,color:c,percent:d,size:m,strokeWidth:p}=e.toRefs(n),v=e.computed(()=>p.value??{small:3,medium:4,large:8}[m.value]),g=e.computed(()=>({width:o.valueToPx(i.value),height:o.valueToPx(v.value),backgroundColor:u.value})),y=e.computed(()=>({width:100*d.value+"%",...h(c.value)})),h=e=>{if(t.isObject(e)){return{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(r=>`${e[r]} ${r}`).join(",")})`}}return{backgroundColor:e}};return(o,t)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.unref(d),class:"yc-progress-line-wrapper"},[e.createElementVNode("div",{class:"yc-progress-line",style:e.normalizeStyle(g.value)},[e.createElementVNode("div",{class:"yc-progress-line-bar",style:e.normalizeStyle(y.value)},null,4)],4),o.showText?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(o.$slots,"text",{percent:e.unref(d)},()=>[e.createElementVNode("span",null,e.toDisplayString(o.text),1),"danger"===o.status?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r.TYPE_ICON_MAP).warning),{key:0,color:e.unref(r.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],8,l))}});module.exports=a;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const s=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const t=["aria-valuenow"],o={key:0,class:"yc-progress-steps-text"},l=e.defineComponent({__name:"ProgressSteps",props:{steps:{},percent:{},size:{},text:{},showText:{type:Boolean},color:{},trackColor:{},strokeWidth:{},status:{}},setup(l){const a=l,{steps:n,percent:c,size:u,strokeWidth:i}=e.toRefs(a),p=e.computed(()=>i.value??("small"==u.value?8:4)),m=e.computed(()=>Array(n.value).fill(0).map((e,r)=>c.value>0&&c.value>1/n.value*r));return(l,a)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.unref(c),class:"yc-progress-steps-wrapper"},[e.createElementVNode("div",{class:"yc-progress-steps",style:e.normalizeStyle({height:e.unref(s.valueToPx)(p.value)})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(r,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["yc-progress-steps-item",{"yc-progress-steps-item-active":r}]),style:e.normalizeStyle({backgroundColor:r?l.color:l.trackColor})},null,6))),128))],4),l.showText?(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(l.$slots,"text",{percent:e.unref(c)},()=>[e.createTextVNode(e.toDisplayString(l.text)+" ",1),"danger"===l.status?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r.TYPE_ICON_MAP).danger),{key:0,color:e.unref(r.TYPE_ICON_COLOR_MAP).danger},null,8,["color"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],8,t))}});module.exports=l;
1
+ "use strict";const e=require("vue"),r=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=["aria-valuenow"],s={key:0,class:"yc-progress-steps-text"},l=e.defineComponent({__name:"ProgressSteps",props:{steps:{},percent:{},size:{},text:{},showText:{type:Boolean},color:{},trackColor:{},strokeWidth:{},status:{}},setup(l){const a=l,{steps:n,percent:c,size:u,strokeWidth:i}=e.toRefs(a),p=e.computed(()=>i.value??("small"==u.value?8:4)),m=e.computed(()=>Array(n.value).fill(0).map((e,r)=>c.value>0&&c.value>1/n.value*r));return(l,a)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.unref(c),class:"yc-progress-steps-wrapper"},[e.createElementVNode("div",{class:"yc-progress-steps",style:e.normalizeStyle({height:e.unref(t.valueToPx)(p.value)})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(r,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["yc-progress-steps-item",{"yc-progress-steps-item-active":r}]),style:e.normalizeStyle({backgroundColor:r?l.color:l.trackColor})},null,6))),128))],4),l.showText?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(l.$slots,"text",{percent:e.unref(c)},()=>[e.createTextVNode(e.toDisplayString(l.text)+" ",1),"danger"===l.status?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r.TYPE_ICON_MAP).danger),{key:0,color:e.unref(r.TYPE_ICON_COLOR_MAP).danger},null,8,["color"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],8,o))}});module.exports=l;
@@ -16,10 +16,10 @@ declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}
16
16
  size: import('..').Size;
17
17
  disabled: boolean;
18
18
  type: import('./type').RadioType;
19
- direction: import('..').Direction;
20
19
  modelValue: import('./type').RadioValue;
21
20
  defaultValue: import('./type').RadioValue;
22
21
  options: import('./type').RadioOption[];
22
+ direction: import('..').Direction;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
25
  export default _default;
@@ -63,10 +63,10 @@ declare const Radio: {
63
63
  size: import('..').Size;
64
64
  disabled: boolean;
65
65
  type: import('./type').RadioType;
66
- direction: import('..').Direction;
67
66
  modelValue: import('./type').RadioValue;
68
67
  defaultValue: import('./type').RadioValue;
69
68
  options: import('./type').RadioOption[];
69
+ direction: import('..').Direction;
70
70
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
71
71
  P: {};
72
72
  B: {};
@@ -81,10 +81,10 @@ declare const Radio: {
81
81
  size: import('..').Size;
82
82
  disabled: boolean;
83
83
  type: import('./type').RadioType;
84
- direction: import('..').Direction;
85
84
  modelValue: import('./type').RadioValue;
86
85
  defaultValue: import('./type').RadioValue;
87
86
  options: import('./type').RadioOption[];
87
+ direction: import('..').Direction;
88
88
  }>;
89
89
  __isFragment?: never;
90
90
  __isTeleport?: never;
@@ -99,10 +99,10 @@ declare const Radio: {
99
99
  size: import('..').Size;
100
100
  disabled: boolean;
101
101
  type: import('./type').RadioType;
102
- direction: import('..').Direction;
103
102
  modelValue: import('./type').RadioValue;
104
103
  defaultValue: import('./type').RadioValue;
105
104
  options: import('./type').RadioOption[];
105
+ direction: import('..').Direction;
106
106
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
107
107
  $slots: Readonly<import('./type').RadioGroupSlots> & import('./type').RadioGroupSlots;
108
108
  });
@@ -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"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconFaceSmile.vue.js"),o=require("../_shared/icons/IconStar.vue.js"),t=require("../_shared/utils/control.js"),n=["onClick","onMouseenter"],u=["onClick","onMouseenter"],c=e.defineComponent({name:"Rate",__name:"index",props:{count:{default:5},modelValue:{default:void 0},defaultValue:{default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{default:"rgb(247, 186, 30)"}},emits:["update:modelValue","change","hover-change"],setup(c,{emit:s}){const i=c,d=s,{modelValue:v,defaultValue:f,readonly:m,disabled:y,count:k,allowClear:p,color:h}=e.toRefs(i),B=e.ref([]);let g=!1;const j=e.ref(0),_=t(v,f.value,e=>{d("update:modelValue",e)}),q=e.computed(()=>{var e;return a.isObject(h.value)?(null==(e=Object.entries(h.value).find(([e])=>j.value<=+e))?void 0:e[1])??"rgb(247, 186, 30)":h.value??"rgb(247, 186, 30)"}),C=async e=>{if(!(m.value||y.value||g)){_.value=p.value&&_.value==e?0:e,d("change",_.value),g=!0;for(let e=1;e<=k.value;e++){if(e>_.value)continue;const a=B.value[e];a.classList.add("yc-rate-character-scale"),await l.sleep(50),setTimeout(()=>{a.classList.remove("yc-rate-character-scale")},150)}g=!1}};let b;const V=e=>{m.value||y.value||(b&&clearTimeout(b),j.value=e,d("hover-change",e))},M=()=>{m.value||y.value||(b&&clearTimeout(b),b=setTimeout(()=>{j.value=0},100))};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-rate",{"yc-rate-disabled":e.unref(y),"yc-rate-readonly":e.unref(m)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),a=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"yc-rate-character",ref_for:!0,ref:e=>B.value[a]=e},[l.allowHalf?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-rate-character-left",style:e.normalizeStyle({color:a-.5<=e.unref(_)&&!j.value||a-.5<=j.value?q.value:""}),onClick:e.withModifiers(e=>C(a-.5),["stop"]),onMouseenter:e=>V(a-.5),onMouseleave:M},[e.renderSlot(l.$slots,"character",{index:a},()=>[l.grading?(e.openBlock(),e.createBlock(e.unref(r),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))],!0)],44,n)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-rate-character-right",style:e.normalizeStyle({color:a<=e.unref(_)&&!j.value||a<=j.value?q.value:""}),onClick:e=>C(a),onMouseenter:e=>V(a),onMouseleave:M},[e.renderSlot(l.$slots,"character",{index:a},()=>[l.grading?(e.openBlock(),e.createBlock(e.unref(r),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))],!0)],44,u)]))),128))],2))}});module.exports=c;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconFaceSmile.vue.js"),r=require("../_shared/icons/IconStar.vue.js"),t=require("../_shared/utils/control.js"),n=["onClick","onMouseenter"],c=["onClick","onMouseenter"],u=e.defineComponent({name:"Rate",__name:"index",props:{count:{default:5},modelValue:{default:void 0},defaultValue:{default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{default:"rgb(247, 186, 30)"}},emits:["update:modelValue","change","hover-change"],setup(u,{emit:s}){const i=u,d=s,{modelValue:v,defaultValue:f,readonly:m,disabled:y,count:k,allowClear:p,color:h}=e.toRefs(i),B=e.ref([]);let g=!1;const j=e.ref(0),_=t(v,f.value,e=>{d("update:modelValue",e)}),q=e.computed(()=>{var e;return a.isObject(h.value)?(null==(e=Object.entries(h.value).find(([e])=>j.value<=+e))?void 0:e[1])??"rgb(247, 186, 30)":h.value??"rgb(247, 186, 30)"}),C=async e=>{if(!(m.value||y.value||g)){_.value=p.value&&_.value==e?0:e,d("change",_.value),g=!0;for(let e=1;e<=k.value;e++){if(e>_.value)continue;const a=B.value[e];a.classList.add("yc-rate-character-scale"),await l.sleep(50),setTimeout(()=>{a.classList.remove("yc-rate-character-scale")},150)}g=!1}};let b;const V=e=>{m.value||y.value||(b&&clearTimeout(b),j.value=e,d("hover-change",e))},M=()=>{m.value||y.value||(b&&clearTimeout(b),b=setTimeout(()=>{j.value=0},100))};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-rate",{"yc-rate-disabled":e.unref(y),"yc-rate-readonly":e.unref(m)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),a=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"yc-rate-character",ref_for:!0,ref:e=>B.value[a]=e},[l.allowHalf?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-rate-character-left",style:e.normalizeStyle({color:a-.5<=e.unref(_)&&!j.value||a-.5<=j.value?q.value:""}),onClick:e.withModifiers(e=>C(a-.5),["stop"]),onMouseenter:e=>V(a-.5),onMouseleave:M},[e.renderSlot(l.$slots,"character",{index:a},()=>[l.grading?(e.openBlock(),e.createBlock(e.unref(o),{key:0})):(e.openBlock(),e.createBlock(e.unref(r),{key:1}))],!0)],44,n)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-rate-character-right",style:e.normalizeStyle({color:a<=e.unref(_)&&!j.value||a<=j.value?q.value:""}),onClick:e=>C(a),onMouseenter:e=>V(a),onMouseleave:M},[e.renderSlot(l.$slots,"character",{index:a},()=>[l.grading?(e.openBlock(),e.createBlock(e.unref(o),{key:0})):(e.openBlock(),e.createBlock(e.unref(r),{key:1}))],!0)],44,c)]))),128))],2))}});module.exports=u;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");const o=require("../_shared/utils/control.js");;/* empty css */const i=require("../_shared/icons/IconDragDot.vue.js"),l=["dir","onMousedown"],u={class:"yc-resizebox-trigger-icon-wrapper"},n=e.defineComponent({name:"ResizeBox",__name:"index",props:{width:{default:void 0},height:{default:void 0},component:{default:"div"},directions:{default:()=>["right"]}},emits:["update:width","update:height","moving-start","moving","moving-end"],setup(n,{emit:s}){e.useSlots();const a=n,d=s,{width:c,height:v}=e.toRefs(a),h=o(c,0,e=>{d("update:width",e)}),g=o(v,0,e=>{d("update:height",e)}),m=e.reactive([]),f=e.reactive({left:0,right:0,bottom:0,top:0}),p=e.ref(),y=e.ref(null),b=e.ref(0),x=e.ref(0);let w;return t.useEventListener("mousemove",async e=>{if(!y.value||!p.value)return;const{clientX:t,clientY:o}=e,i="left"==y.value?b.value-t:t-b.value,l="top"==y.value?x.value-o:o-x.value,u=f.left+f.right,n=f.top+f.bottom;b.value=t,x.value=o,["left","right"].includes(y.value)?(h.value+=i,h.value<=u&&(h.value=u),p.value.style.width=r.valueToPx(h.value)):(g.value+=l,g.value<=n&&(g.value=n),p.value.style.height=r.valueToPx(g.value));const{width:s,height:a}=p.value.getBoundingClientRect();h.value!=s&&(h.value=s),a!=g.value&&(g.value=a),d("moving",{width:s,height:a},e)}),t.useEventListener("mouseup",e=>{y.value&&(y.value=null,document.body.style.cursor=w,d("moving-end",e))}),t.useResizeObserver(()=>m,e=>{e.forEach(e=>{const t=e.target.getAttribute("dir"),{contentRect:{width:r,height:o}}=e;f[t]=["right","left"].includes(t)?r:o})},{box:"border-box"}),(t,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),{class:"yc-resizebox",ref_key:"boxRef",ref:p},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directions,(r,o)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["yc-resizebox-trigger",`yc-resizebox-direction-${r}`,"yc-resizebox-trigger-"+(["left","right"].includes(r)?"vertical":"horizontal")]),dir:r,ref_for:!0,ref:e=>m[o]=e,onMousedown:e=>((e,t)=>{t.preventDefault(),y.value=e;const{width:r,height:o}=p.value.getBoundingClientRect(),{clientX:i,clientY:l}=t;h.value=r,g.value=o,b.value=i,x.value=l,w=getComputedStyle(document.body).cursor,document.body.style.cursor=["left","right"].includes(e)?"col-resize":"row-resize",d("moving-start",t)})(r,e)},[e.renderSlot(t.$slots,"resize-trigger",{direction:r},()=>[e.createElementVNode("div",u,[e.renderSlot(t.$slots,"resize-trigger-icon",{direction:r},()=>[e.createVNode(e.unref(i),{rotate:["left","right"].includes(r)?90:0},null,8,["rotate"])],!0)])],!0)],42,l))),128))]),_:3},512))}});module.exports=n;
1
+ "use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");const r=require("../_shared/utils/control.js");;/* empty css */const i=require("../_shared/icons/IconDragDot.vue.js"),l=["dir","onMousedown"],u={class:"yc-resizebox-trigger-icon-wrapper"},n=e.defineComponent({name:"ResizeBox",__name:"index",props:{width:{default:void 0},height:{default:void 0},component:{default:"div"},directions:{default:()=>["right"]}},emits:["update:width","update:height","moving-start","moving","moving-end"],setup(n,{emit:s}){e.useSlots();const a=n,d=s,{width:c,height:v}=e.toRefs(a),h=r(c,0,e=>{d("update:width",e)}),g=r(v,0,e=>{d("update:height",e)}),m=e.reactive([]),f=e.reactive({left:0,right:0,bottom:0,top:0}),p=e.ref(),y=e.ref(null),b=e.ref(0),x=e.ref(0);let w;return t.useEventListener("mousemove",async e=>{if(!y.value||!p.value)return;const{clientX:t,clientY:r}=e,i="left"==y.value?b.value-t:t-b.value,l="top"==y.value?x.value-r:r-x.value,u=f.left+f.right,n=f.top+f.bottom;b.value=t,x.value=r,["left","right"].includes(y.value)?(h.value+=i,h.value<=u&&(h.value=u),p.value.style.width=o.valueToPx(h.value)):(g.value+=l,g.value<=n&&(g.value=n),p.value.style.height=o.valueToPx(g.value));const{width:s,height:a}=p.value.getBoundingClientRect();h.value!=s&&(h.value=s),a!=g.value&&(g.value=a),d("moving",{width:s,height:a},e)}),t.useEventListener("mouseup",e=>{y.value&&(y.value=null,document.body.style.cursor=w,d("moving-end",e))}),t.useResizeObserver(()=>m,e=>{e.forEach(e=>{const t=e.target.getAttribute("dir"),{contentRect:{width:o,height:r}}=e;f[t]=["right","left"].includes(t)?o:r})},{box:"border-box"}),(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),{class:"yc-resizebox",ref_key:"boxRef",ref:p},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directions,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["yc-resizebox-trigger",`yc-resizebox-direction-${o}`,"yc-resizebox-trigger-"+(["left","right"].includes(o)?"vertical":"horizontal")]),dir:o,ref_for:!0,ref:e=>m[r]=e,onMousedown:e=>((e,t)=>{t.preventDefault(),y.value=e;const{width:o,height:r}=p.value.getBoundingClientRect(),{clientX:i,clientY:l}=t;h.value=o,g.value=r,b.value=i,x.value=l,w=getComputedStyle(document.body).cursor,document.body.style.cursor=["left","right"].includes(e)?"col-resize":"row-resize",d("moving-start",t)})(o,e)},[e.renderSlot(t.$slots,"resize-trigger",{direction:o},()=>[e.createElementVNode("div",u,[e.renderSlot(t.$slots,"resize-trigger-icon",{direction:o},()=>[e.createVNode(e.unref(i),{rotate:["left","right"].includes(o)?90:0},null,8,["rotate"])],!0)])],!0)],42,l))),128))]),_:3},512))}});module.exports=n;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const a=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./hooks/useContext.js"),u=e.defineComponent({__name:"ScrollbarTrack",props:{direction:{default:"vertical"}},emits:["drag","resize"],setup(u,{emit:t}){const s=u,o=t,{direction:i}=e.toRefs(s),{scrollRef:c,thumbHeight:n,thumbWidth:v,movableLeft:d,movableTop:f,curTop:m,curLeft:g,isDragging:h}=r().inject(),b=e.computed(()=>"vertical"==i.value),y=e.computed(()=>b.value?{height:a.valueToPx(n.value),transform:`translateY(${a.valueToPx(m.value)})`}:{width:a.valueToPx(v.value),transform:`translateX(${a.valueToPx(g.value)})`}),p=e.ref();l.useResizeObserver(p,()=>{const{width:e,height:l}=p.value.getBoundingClientRect();o("resize",b.value?e:l)});const k=e.ref(),{x:_,y:j,isDragging:q}=l.useDraggable(k,{onMove(){const{left:e,top:l}=c.value.getBoundingClientRect(),a=l,r=f.value+a,u=e,t=d.value+u;b.value?(j.value=j.value<=a?a:j.value,j.value=j.value>=r?r:j.value,o("drag",!0,j.value-a)):(_.value=_.value<=u?u:_.value,_.value=_.value>=t?t:_.value,o("drag",!1,_.value-u))}});e.watchEffect(()=>{h.value=q.value});const x=e=>{const{offsetX:l,offsetY:a}=e;if(b.value){const e=m.value<a?f.value/9:-f.value/9;let l=m.value+e;l=l<=0?0:l,l=l>f.value?f.value:l,o("drag",!0,l)}else{const e=g.value<l?d.value/9:-d.value/9;let a=g.value+e;a=a<=0?0:a,a=a>d.value?d.value:a,o("drag",!1,a)}};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-scrollbar-track",`yc-scrollbar-track-direction-${e.unref(i)}`]),ref_key:"trackRef",ref:p,onClick:e.withModifiers(x,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["yc-scrollbar-thumb",`yc-scrollbar-thumb-direction-${e.unref(i)}`]),style:e.normalizeStyle(y.value),ref_key:"dragRef",ref:k},[e.createElementVNode("div",{class:e.normalizeClass(["yc-scrollbar-thumb-bar",{"yc-scrollbar-thumb-bar-dragging":e.unref(q),"yc-scrollbar-thumb-bar-hover":!e.unref(q)&&e.unref(h)}])},null,2)],6)],2))}});module.exports=u;
1
+ "use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const a=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./hooks/useContext.js"),u=e.defineComponent({__name:"ScrollbarTrack",props:{direction:{default:"vertical"}},emits:["drag","resize"],setup(u,{emit:t}){const o=u,s=t,{direction:c}=e.toRefs(o),{scrollRef:i,thumbHeight:n,thumbWidth:v,movableLeft:d,movableTop:m,curTop:f,curLeft:g,isDragging:b}=r().inject(),h=e.computed(()=>"vertical"==c.value),y=e.computed(()=>h.value?{height:a.valueToPx(n.value),transform:`translateY(${a.valueToPx(f.value)})`}:{width:a.valueToPx(v.value),transform:`translateX(${a.valueToPx(g.value)})`}),p=e.ref();l.useResizeObserver(p,()=>{const{width:e,height:l}=p.value.getBoundingClientRect();s("resize",h.value?e:l)});const k=e.ref(),{x:x,y:_,isDragging:j}=l.useDraggable(k,{onMove(){const{left:e,top:l}=i.value.getBoundingClientRect(),a=l,r=m.value+a,u=e,t=d.value+u;h.value?(_.value=_.value<=a?a:_.value,_.value=_.value>=r?r:_.value,s("drag",!0,_.value-a)):(x.value=x.value<=u?u:x.value,x.value=x.value>=t?t:x.value,s("drag",!1,x.value-u))}});e.watchEffect(()=>{b.value=j.value});const q=e=>{const{offsetX:l,offsetY:a}=e;if(h.value){const e=f.value<a?m.value/9:-m.value/9;let l=f.value+e;l=l<=0?0:l,l=l>m.value?m.value:l,s("drag",!0,l)}else{const e=g.value<l?d.value/9:-d.value/9;let a=g.value+e;a=a<=0?0:a,a=a>d.value?d.value:a,s("drag",!1,a)}};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-scrollbar-track",`yc-scrollbar-track-direction-${e.unref(c)}`]),ref_key:"trackRef",ref:p,onClick:e.withModifiers(q,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["yc-scrollbar-thumb",`yc-scrollbar-thumb-direction-${e.unref(c)}`]),style:e.normalizeStyle(y.value),ref_key:"dragRef",ref:k},[e.createElementVNode("div",{class:e.normalizeClass(["yc-scrollbar-thumb-bar",{"yc-scrollbar-thumb-bar-dragging":e.unref(j),"yc-scrollbar-thumb-bar-hover":!e.unref(j)&&e.unref(b)}])},null,2)],6)],2))}});module.exports=u;
@@ -268,10 +268,10 @@ declare function __VLS_template(): {
268
268
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
269
269
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
270
270
  readonly onInput?: ((value: string) => any) | undefined;
271
- readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
272
271
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
273
272
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
274
273
  readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
274
+ readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
275
275
  readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
276
276
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
277
277
  $attrs: {
@@ -289,17 +289,17 @@ declare function __VLS_template(): {
289
289
  $root: import('vue').ComponentPublicInstance | null;
290
290
  $parent: import('vue').ComponentPublicInstance | null;
291
291
  $host: Element | null;
292
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
292
+ $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
293
293
  $el: HTMLDivElement;
294
294
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
295
295
  onFocus?: ((ev: FocusEvent) => any) | undefined;
296
296
  onClear?: ((ev: MouseEvent) => any) | undefined;
297
297
  onBlur?: ((ev: FocusEvent) => any) | undefined;
298
298
  onInput?: ((value: string) => any) | undefined;
299
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
300
299
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
301
300
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
302
301
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
302
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
303
303
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
304
304
  }>, {
305
305
  focus(): void;
@@ -309,10 +309,10 @@ declare function __VLS_template(): {
309
309
  clear: (ev: MouseEvent) => any;
310
310
  blur: (ev: FocusEvent) => any;
311
311
  input: (value: string) => any;
312
- remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
313
312
  "update:modelValue": (value: InputTagValue) => any;
314
313
  "update:inputValue": (value: string) => any;
315
314
  "input-value-change": (value: string, ev: Event) => any;
315
+ remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
316
316
  "press-enter": (ev: KeyboardEvent) => any;
317
317
  }, string, {
318
318
  size: import('..').Size;
@@ -373,10 +373,10 @@ declare function __VLS_template(): {
373
373
  onClear?: ((ev: MouseEvent) => any) | undefined;
374
374
  onBlur?: ((ev: FocusEvent) => any) | undefined;
375
375
  onInput?: ((value: string) => any) | undefined;
376
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
377
376
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
378
377
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
379
378
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
379
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
380
380
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
381
381
  }>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
382
382
  focus(): void;
@@ -399,10 +399,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
399
399
  clear: () => any;
400
400
  select: (value: import('./type').SelectValue) => any;
401
401
  search: (value: string) => any;
402
- remove: (index: string | number, ev: Event) => any;
403
402
  "update:modelValue": (value: import('./type').SelectValue) => any;
404
403
  "update:inputValue": (value: import('./type').SelectValue) => any;
405
404
  "input-value-change": (value: string) => any;
405
+ remove: (index: string | number, ev: Event) => any;
406
406
  exceedLimit: (value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any;
407
407
  "dropdown-scroll": (ev: Event) => any;
408
408
  "dropdown-reach-bottom": (ev: Event) => any;
@@ -413,10 +413,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
413
413
  onClear?: (() => any) | undefined;
414
414
  onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
415
415
  onSearch?: ((value: string) => any) | undefined;
416
- onRemove?: ((index: string | number, ev: Event) => any) | undefined;
417
416
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
418
417
  "onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
419
418
  "onInput-value-change"?: ((value: string) => any) | undefined;
419
+ onRemove?: ((index: string | number, ev: Event) => any) | undefined;
420
420
  onExceedLimit?: ((value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
421
421
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
422
422
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
@@ -431,7 +431,6 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
431
431
  scrollbar: boolean;
432
432
  multiple: boolean;
433
433
  placeholder: string;
434
- triggerProps: import('../Trigger').TriggerProps;
435
434
  bordered: boolean;
436
435
  modelValue: import('./type').SelectValue;
437
436
  defaultValue: import('./type').SelectValue;
@@ -447,9 +446,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
447
446
  showEmpty: boolean;
448
447
  allowCreate: boolean;
449
448
  maxTagCount: number;
450
- defaultActivefirstOption: boolean;
451
449
  filterOption: import('./type').FilterOption;
452
450
  virtualListProps: import('./type').VirtualListProps;
451
+ triggerProps: import('../Trigger').TriggerProps;
453
452
  searchDelay: number;
454
453
  showHeaderOnEmpty: boolean;
455
454
  showFooterOnEmpty: boolean;
@@ -718,10 +717,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
718
717
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
719
718
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
720
719
  readonly onInput?: ((value: string) => any) | undefined;
721
- readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
722
720
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
723
721
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
724
722
  readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
723
+ readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
725
724
  readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
726
725
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
727
726
  $attrs: {
@@ -739,17 +738,17 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
739
738
  $root: import('vue').ComponentPublicInstance | null;
740
739
  $parent: import('vue').ComponentPublicInstance | null;
741
740
  $host: Element | null;
742
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
741
+ $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
743
742
  $el: HTMLDivElement;
744
743
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
745
744
  onFocus?: ((ev: FocusEvent) => any) | undefined;
746
745
  onClear?: ((ev: MouseEvent) => any) | undefined;
747
746
  onBlur?: ((ev: FocusEvent) => any) | undefined;
748
747
  onInput?: ((value: string) => any) | undefined;
749
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
750
748
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
751
749
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
752
750
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
751
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
753
752
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
754
753
  }>, {
755
754
  focus(): void;
@@ -759,10 +758,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
759
758
  clear: (ev: MouseEvent) => any;
760
759
  blur: (ev: FocusEvent) => any;
761
760
  input: (value: string) => any;
762
- remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
763
761
  "update:modelValue": (value: InputTagValue) => any;
764
762
  "update:inputValue": (value: string) => any;
765
763
  "input-value-change": (value: string, ev: Event) => any;
764
+ remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
766
765
  "press-enter": (ev: KeyboardEvent) => any;
767
766
  }, string, {
768
767
  size: import('..').Size;
@@ -823,10 +822,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
823
822
  onClear?: ((ev: MouseEvent) => any) | undefined;
824
823
  onBlur?: ((ev: FocusEvent) => any) | undefined;
825
824
  onInput?: ((value: string) => any) | undefined;
826
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
827
825
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
828
826
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
829
827
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
828
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
830
829
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
831
830
  }>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
832
831
  focus(): void;
@@ -1 +1 @@
1
- "use strict";const e=require("./Select.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-b6b51f16"]]);module.exports=r;
1
+ "use strict";const e=require("./Select.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-b2e88e73"]]);module.exports=r;
@@ -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"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),t=,/* empty css */r=require("./SelectView.vue.js"),u=require("../Input/index.js"),n=require("../InputTag/index.js"),s=require("../Trigger/index.js"),i=e.defineComponent({name:"Select",__name:"Select",props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>e.multiple?[]:""},inputValue:{default:void 0},defaultInputValue:{default:""},size:{default:void 0},placeholder:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{default:0},popupContainer:{default:void 0},bordered:{type:Boolean,default:!0},defaultActivefirstOption:{type:Boolean,default:!1},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountonClose:{type:Boolean},filterOption:{type:[Boolean,Function],default:void 0},options:{default:()=>[]},virtualListProps:{default:void 0},triggerProps:{default:()=>({contentStyle:{}})},formatLabel:{},fallbackOption:{},showExtraOptions:{type:Boolean,default:!0},valueKey:{default:""},searchDelay:{default:500},limit:{default:0},fieldNames:{default:()=>({})},scrollbar:{type:Boolean,default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},hotkeys:{type:Boolean},showEmpty:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","remove","search","exceedLimit","popup-visible-change","dropdown-scroll","dropdown-reach-bottom","select"],setup(i,{expose:p,emit:d}){const c=i,f=d,{allowClear:v,disabled:m,loading:h,searchDelay:y,showFooterOnEmpty:b,showHeaderOnEmpty:w,multiple:g,allowSearch:B,allowCreate:V,virtualListProps:C}=e.toRefs(c),k=e.ref(),x=e.ref(),{computedVisible:j,computedValue:S,computedInputValue:q,selectOptions:_,createOptions:O}=o().provide(c,f,k),E=e.computed(()=>{const e=g.value?S.value.length:String(S.value).length;return v.value&&!m.value&&!h.value&&!!e}),N=e.computed(()=>(!B.value||h.value)&&!V.value&&a.isUndefined(c.filterOption)),z=async(e,a="")=>{var o,t,r;switch(e){case"create":if(!V.value)return;if(O.value.find(e=>e==q.value))return;O.value.push({label:q.value,value:q.value}),B.value&&(null==(o=k.value)||o.blur());break;case"clear":S.value=g.value?[]:"",f("clear");break;case"search":await l.sleep(y.value),f("search",a);break;case"focus":if(m.value)return;if(j.value)return null==(t=k.value)?void 0:t.blur();j.value=!0,await l.sleep(0),null==(r=k.value)||r.focus();break;case"blur":j.value=!1;break;case"updateValue":S.value=a.map(e=>e.value)}};return p({focus(){var e;null==(e=k.value)||e.focus()},blur(){var e;null==(e=k.value)||e.blur()},getPopupRef:()=>x.value}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(s),e.mergeProps({"popup-visible":e.unref(j),"onUpdate:popupVisible":a[14]||(a[14]=l=>e.isRef(j)?j.value=l:null),"unmount-on-close":l.unmountonClose,"popup-container":l.popupContainer,disabled:e.unref(m),"popup-offset":4,trigger:"focus",position:"bl","animation-name":"slide-dynamic-origin","need-transform-origin":"","auto-fit-popup-width":"","prevent-focus":"",ref_key:"popupRef",ref:x},l.triggerProps),{content:e.withCtx(()=>[e.createVNode(r,{loading:e.unref(h),scrollbar:l.scrollbar,"virtual-list-props":e.unref(C),"show-footer-on-empty":e.unref(b),"show-header-on-empty":e.unref(w)},null,8,["loading","scrollbar","virtual-list-props","show-footer-on-empty","show-header-on-empty"])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-select",{"yc-select-allow-search":e.unref(B),"yc-select-allow-clear":E.value,"yc-select-no-border":!l.bordered},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.renderSlot(l.$slots,"trigger",{},()=>{var o;return[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(n),{key:1,"input-value":e.unref(q),"onUpdate:inputValue":a[7]||(a[7]=l=>e.isRef(q)?q.value=l:null),"model-value":e.unref(_),placeholder:l.placeholder,readonly:N.value,disabled:e.unref(m),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:k,onFocus:a[8]||(a[8]=e=>z("focus")),onBlur:a[9]||(a[9]=e=>z("blur")),onInput:a[10]||(a[10]=e=>z("search",e)),onRemove:a[11]||(a[11]=(e,a)=>l.$emit("remove",e,a)),onPressEnter:a[12]||(a[12]=e=>z("create")),"onUpdate:modelValue":a[13]||(a[13]=e=>z("updateValue",e))},{tag:e.withCtx(({tag:a})=>[l.$slots.label?e.renderSlot(l.$slots,"label",{key:0,data:a},void 0,!0):e.createCommentVNode("",!0)]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(j),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":E.value,onClear:a[6]||(a[6]=e=>z("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(q),"onUpdate:modelValue":a[1]||(a[1]=l=>e.isRef(q)?q.value=l:null),"show-input":e.unref(j),readonly:N.value,disabled:e.unref(m),size:l.size,error:l.error,placeholder:(null==(o=e.unref(_)[0])?void 0:o.label)||"",ref_key:"inputRef",ref:k,onClick:a[2]||(a[2]=e=>z("focus")),onBlur:a[3]||(a[3]=e=>z("blur")),onInput:a[4]||(a[4]=e=>z("search",e)),onPressEnter:a[5]||(a[5]=e=>z("create"))},{label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(_)[0]},()=>{var a;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!e.unref(_).length}])},e.toDisplayString((null==(a=e.unref(_)[0])?void 0:a.label)||l.placeholder),3)]},!0)]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(j),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":E.value,onClear:a[0]||(a[0]=e=>z("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))]},!0)],6)]),_:3},16,["popup-visible","unmount-on-close","popup-container","disabled"]))}});module.exports=i;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),t=,/* empty css */r=require("./SelectView.vue.js"),u=require("../Input/index.js"),n=require("../InputTag/index.js"),s=require("../Trigger/index.js"),i=e.defineComponent({name:"Select",__name:"Select",props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>e.multiple?[]:""},inputValue:{default:void 0},defaultInputValue:{default:""},size:{default:void 0},placeholder:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{default:0},popupContainer:{default:void 0},bordered:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountonClose:{type:Boolean},filterOption:{type:[Boolean,Function],default:void 0},options:{default:()=>[]},virtualListProps:{default:void 0},triggerProps:{default:()=>({contentStyle:{}})},formatLabel:{},fallbackOption:{},showExtraOptions:{type:Boolean,default:!0},valueKey:{default:""},searchDelay:{default:500},limit:{default:0},fieldNames:{default:()=>({})},scrollbar:{type:Boolean,default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},hotkeys:{type:Boolean},showEmpty:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","remove","search","exceedLimit","popup-visible-change","dropdown-scroll","dropdown-reach-bottom","select"],setup(i,{expose:p,emit:d}){const c=i,f=d,{allowClear:v,disabled:m,loading:h,searchDelay:y,showFooterOnEmpty:b,showHeaderOnEmpty:w,multiple:g,allowSearch:B,allowCreate:V,virtualListProps:C}=e.toRefs(c),k=e.ref(),x=e.ref(),{computedVisible:S,computedValue:j,computedInputValue:q,selectOptions:_,createOptions:O}=o().provide(c,f,k),E=e.computed(()=>{const e=g.value?j.value.length:String(j.value).length;return v.value&&!m.value&&!h.value&&!!e}),N=e.computed(()=>(!B.value||h.value)&&!V.value&&a.isUndefined(c.filterOption)),z=async(e,a="")=>{var o,t,r;switch(e){case"create":if(!V.value)return;if(O.value.find(e=>e==q.value))return;O.value.push({label:q.value,value:q.value}),B.value&&(null==(o=k.value)||o.blur());break;case"clear":j.value=g.value?[]:"",f("clear");break;case"search":await l.sleep(y.value),f("search",a);break;case"focus":if(m.value)return;if(S.value)return null==(t=k.value)?void 0:t.blur();S.value=!0,await l.sleep(0),null==(r=k.value)||r.focus();break;case"blur":S.value=!1;break;case"updateValue":j.value=a.map(e=>e.value)}};return p({focus(){var e;null==(e=k.value)||e.focus()},blur(){var e;null==(e=k.value)||e.blur()},getPopupRef:()=>x.value}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(s),e.mergeProps({"popup-visible":e.unref(S),"onUpdate:popupVisible":a[14]||(a[14]=l=>e.isRef(S)?S.value=l:null),"unmount-on-close":l.unmountonClose,"popup-container":l.popupContainer,disabled:e.unref(m),"popup-offset":4,trigger:"focus",position:"bl","animation-name":"slide-dynamic-origin","need-transform-origin":"","auto-fit-popup-width":"","prevent-focus":"",ref_key:"popupRef",ref:x},l.triggerProps),{content:e.withCtx(()=>[e.createVNode(r,{loading:e.unref(h),scrollbar:l.scrollbar,"virtual-list-props":e.unref(C),"show-footer-on-empty":e.unref(b),"show-header-on-empty":e.unref(w)},null,8,["loading","scrollbar","virtual-list-props","show-footer-on-empty","show-header-on-empty"])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-select",{"yc-select-allow-search":e.unref(B),"yc-select-allow-clear":E.value,"yc-select-no-border":!l.bordered},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.renderSlot(l.$slots,"trigger",{},()=>{var o;return[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(n),{key:1,"input-value":e.unref(q),"onUpdate:inputValue":a[7]||(a[7]=l=>e.isRef(q)?q.value=l:null),"model-value":e.unref(_),placeholder:l.placeholder,readonly:N.value,disabled:e.unref(m),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:k,onFocus:a[8]||(a[8]=e=>z("focus")),onBlur:a[9]||(a[9]=e=>z("blur")),onInput:a[10]||(a[10]=e=>z("search",e)),onRemove:a[11]||(a[11]=(e,a)=>l.$emit("remove",e,a)),onPressEnter:a[12]||(a[12]=e=>z("create")),"onUpdate:modelValue":a[13]||(a[13]=e=>z("updateValue",e))},{tag:e.withCtx(({tag:a})=>[l.$slots.label?e.renderSlot(l.$slots,"label",{key:0,data:a},void 0,!0):e.createCommentVNode("",!0)]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":E.value,onClear:a[6]||(a[6]=e=>z("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(q),"onUpdate:modelValue":a[1]||(a[1]=l=>e.isRef(q)?q.value=l:null),"show-input":e.unref(S),readonly:N.value,disabled:e.unref(m),size:l.size,error:l.error,placeholder:(null==(o=e.unref(_)[0])?void 0:o.label)||"",ref_key:"inputRef",ref:k,onClick:a[2]||(a[2]=e=>z("focus")),onBlur:a[3]||(a[3]=e=>z("blur")),onInput:a[4]||(a[4]=e=>z("search",e)),onPressEnter:a[5]||(a[5]=e=>z("create"))},{label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(_)[0]},()=>{var a;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!e.unref(_).length}])},e.toDisplayString((null==(a=e.unref(_)[0])?void 0:a.label)||l.placeholder),3)]},!0)]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":E.value,onClear:a[0]||(a[0]=e=>z("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))]},!0)],6)]),_:3},16,["popup-visible","unmount-on-close","popup-container","disabled"]))}});module.exports=i;
@@ -14,10 +14,10 @@ declare const Select: {
14
14
  onClear?: (() => any) | undefined;
15
15
  onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
16
16
  onSearch?: ((value: string) => any) | undefined;
17
- onRemove?: ((index: string | number, ev: Event) => any) | undefined;
18
17
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
19
18
  "onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
20
19
  "onInput-value-change"?: ((value: string) => any) | undefined;
20
+ onRemove?: ((index: string | number, ev: Event) => any) | undefined;
21
21
  onExceedLimit?: ((value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
22
22
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
23
23
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
@@ -32,10 +32,10 @@ declare const Select: {
32
32
  clear: () => any;
33
33
  select: (value: import('./type').SelectValue) => any;
34
34
  search: (value: string) => any;
35
- remove: (index: string | number, ev: Event) => any;
36
35
  "update:modelValue": (value: import('./type').SelectValue) => any;
37
36
  "update:inputValue": (value: import('./type').SelectValue) => any;
38
37
  "input-value-change": (value: string) => any;
38
+ remove: (index: string | number, ev: Event) => any;
39
39
  exceedLimit: (value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any;
40
40
  "dropdown-scroll": (ev: Event) => any;
41
41
  "dropdown-reach-bottom": (ev: Event) => any;
@@ -50,7 +50,6 @@ declare const Select: {
50
50
  scrollbar: boolean;
51
51
  multiple: boolean;
52
52
  placeholder: string;
53
- triggerProps: import('..').TriggerProps;
54
53
  bordered: boolean;
55
54
  modelValue: import('./type').SelectValue;
56
55
  defaultValue: import('./type').SelectValue;
@@ -66,9 +65,9 @@ declare const Select: {
66
65
  showEmpty: boolean;
67
66
  allowCreate: boolean;
68
67
  maxTagCount: number;
69
- defaultActivefirstOption: boolean;
70
68
  filterOption: import('./type').FilterOption;
71
69
  virtualListProps: import('./type').VirtualListProps;
70
+ triggerProps: import('..').TriggerProps;
72
71
  searchDelay: number;
73
72
  showHeaderOnEmpty: boolean;
74
73
  showFooterOnEmpty: boolean;
@@ -337,10 +336,10 @@ declare const Select: {
337
336
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
338
337
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
339
338
  readonly onInput?: ((value: string) => any) | undefined;
340
- readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
341
339
  readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
342
340
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
343
341
  readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
342
+ readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
344
343
  readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
345
344
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
346
345
  $attrs: {
@@ -358,17 +357,17 @@ declare const Select: {
358
357
  $root: import('vue').ComponentPublicInstance | null;
359
358
  $parent: import('vue').ComponentPublicInstance | null;
360
359
  $host: Element | null;
361
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
360
+ $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
362
361
  $el: HTMLDivElement;
363
362
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
364
363
  onFocus?: ((ev: FocusEvent) => any) | undefined;
365
364
  onClear?: ((ev: MouseEvent) => any) | undefined;
366
365
  onBlur?: ((ev: FocusEvent) => any) | undefined;
367
366
  onInput?: ((value: string) => any) | undefined;
368
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
369
367
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
370
368
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
371
369
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
370
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
372
371
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
373
372
  }>, {
374
373
  focus(): void;
@@ -378,10 +377,10 @@ declare const Select: {
378
377
  clear: (ev: MouseEvent) => any;
379
378
  blur: (ev: FocusEvent) => any;
380
379
  input: (value: string) => any;
381
- remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
382
380
  "update:modelValue": (value: import('..').InputTagValue) => any;
383
381
  "update:inputValue": (value: string) => any;
384
382
  "input-value-change": (value: string, ev: Event) => any;
383
+ remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
385
384
  "press-enter": (ev: KeyboardEvent) => any;
386
385
  }, string, {
387
386
  size: import('..').Size;
@@ -442,10 +441,10 @@ declare const Select: {
442
441
  onClear?: ((ev: MouseEvent) => any) | undefined;
443
442
  onBlur?: ((ev: FocusEvent) => any) | undefined;
444
443
  onInput?: ((value: string) => any) | undefined;
445
- onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
446
444
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
447
445
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
448
446
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
447
+ onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
449
448
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
450
449
  }>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
451
450
  focus(): void;
@@ -467,10 +466,10 @@ declare const Select: {
467
466
  onClear?: (() => any) | undefined;
468
467
  onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
469
468
  onSearch?: ((value: string) => any) | undefined;
470
- onRemove?: ((index: string | number, ev: Event) => any) | undefined;
471
469
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
472
470
  "onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
473
471
  "onInput-value-change"?: ((value: string) => any) | undefined;
472
+ onRemove?: ((index: string | number, ev: Event) => any) | undefined;
474
473
  onExceedLimit?: ((value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
475
474
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
476
475
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
@@ -489,7 +488,6 @@ declare const Select: {
489
488
  scrollbar: boolean;
490
489
  multiple: boolean;
491
490
  placeholder: string;
492
- triggerProps: import('..').TriggerProps;
493
491
  bordered: boolean;
494
492
  modelValue: import('./type').SelectValue;
495
493
  defaultValue: import('./type').SelectValue;
@@ -505,9 +503,9 @@ declare const Select: {
505
503
  showEmpty: boolean;
506
504
  allowCreate: boolean;
507
505
  maxTagCount: number;
508
- defaultActivefirstOption: boolean;
509
506
  filterOption: import('./type').FilterOption;
510
507
  virtualListProps: import('./type').VirtualListProps;
508
+ triggerProps: import('..').TriggerProps;
511
509
  searchDelay: number;
512
510
  showHeaderOnEmpty: boolean;
513
511
  showFooterOnEmpty: boolean;
@@ -523,10 +521,10 @@ declare const Select: {
523
521
  onClear?: (() => any) | undefined;
524
522
  onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
525
523
  onSearch?: ((value: string) => any) | undefined;
526
- onRemove?: ((index: string | number, ev: Event) => any) | undefined;
527
524
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
528
525
  "onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
529
526
  "onInput-value-change"?: ((value: string) => any) | undefined;
527
+ onRemove?: ((index: string | number, ev: Event) => any) | undefined;
530
528
  onExceedLimit?: ((value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
531
529
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
532
530
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
@@ -541,10 +539,10 @@ declare const Select: {
541
539
  clear: () => any;
542
540
  select: (value: import('./type').SelectValue) => any;
543
541
  search: (value: string) => any;
544
- remove: (index: string | number, ev: Event) => any;
545
542
  "update:modelValue": (value: import('./type').SelectValue) => any;
546
543
  "update:inputValue": (value: import('./type').SelectValue) => any;
547
544
  "input-value-change": (value: string) => any;
545
+ remove: (index: string | number, ev: Event) => any;
548
546
  exceedLimit: (value: import('./type').SelectValue, ev?: MouseEvent | undefined) => any;
549
547
  "dropdown-scroll": (ev: Event) => any;
550
548
  "dropdown-reach-bottom": (ev: Event) => any;
@@ -559,7 +557,6 @@ declare const Select: {
559
557
  scrollbar: boolean;
560
558
  multiple: boolean;
561
559
  placeholder: string;
562
- triggerProps: import('..').TriggerProps;
563
560
  bordered: boolean;
564
561
  modelValue: import('./type').SelectValue;
565
562
  defaultValue: import('./type').SelectValue;
@@ -575,9 +572,9 @@ declare const Select: {
575
572
  showEmpty: boolean;
576
573
  allowCreate: boolean;
577
574
  maxTagCount: number;
578
- defaultActivefirstOption: boolean;
579
575
  filterOption: import('./type').FilterOption;
580
576
  virtualListProps: import('./type').VirtualListProps;
577
+ triggerProps: import('..').TriggerProps;
581
578
  searchDelay: number;
582
579
  showHeaderOnEmpty: boolean;
583
580
  showFooterOnEmpty: boolean;
@@ -19,7 +19,6 @@ export interface SelectProps {
19
19
  maxTagCount?: number;
20
20
  popupContainer?: PopupContainer;
21
21
  bordered?: boolean;
22
- defaultActivefirstOption?: boolean;
23
22
  popupVisible?: boolean;
24
23
  defaultPopupVisible?: boolean;
25
24
  unmountonClose?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { SkeletonLineProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<SkeletonLineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonLineProps> & Readonly<{}>, {
3
- rows: number;
4
3
  lineHeight: number;
4
+ rows: number;
5
5
  widths: number[];
6
6
  lineSpacing: number;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;