yc-design-vue 1.0.9 → 1.1.1

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 (277) 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.vue.js +1 -1
  30. package/es/Dropdown/Dsubmenu.vue2.js +2 -3
  31. package/es/Grid/Grid.vue2.js +1 -2
  32. package/es/Grid/GridCol.vue.js +1 -2
  33. package/es/Grid/GridItem.vue.js +1 -2
  34. package/es/Grid/GridRow.vue2.js +1 -2
  35. package/es/Icon/index.vue2.js +1 -2
  36. package/es/Image/Image.vue2.js +1 -2
  37. package/es/Image/ImagePreview.vue.d.ts +1 -1
  38. package/es/Image/index.d.ts +3 -3
  39. package/es/Input/Input.vue.d.ts +1 -1
  40. package/es/Input/index.d.ts +3 -3
  41. package/es/InputNumber/InputNumber.vue.d.ts +7 -7
  42. package/es/InputNumber/InputNumber.vue2.js +1 -2
  43. package/es/InputNumber/index.d.ts +6 -6
  44. package/es/InputTag/index.d.ts +5 -5
  45. package/es/InputTag/index.vue.d.ts +2 -2
  46. package/es/InputTag/index.vue2.js +1 -2
  47. package/es/Layout/LayoutSider.vue2.js +1 -2
  48. package/es/List/List.vue.d.ts +1 -1
  49. package/es/List/List.vue.js +1 -1
  50. package/es/List/List.vue2.js +2 -3
  51. package/es/List/hooks/useScrollReach.js +1 -2
  52. package/es/List/index.d.ts +3 -3
  53. package/es/Mention/index.d.ts +16 -19
  54. package/es/Mention/index.vue.d.ts +32 -38
  55. package/es/Menu/MenuItem.vue2.js +1 -2
  56. package/es/Menu/MenuItemGroup.vue2.js +1 -2
  57. package/es/Menu/hooks/useContext.js +1 -2
  58. package/es/Message/Message.vue.d.ts +2 -2
  59. package/es/Message/index.d.ts +6 -6
  60. package/es/Modal/Modal.vue2.js +1 -2
  61. package/es/Modal/hooks/useModalDraggable.js +1 -2
  62. package/es/Notification/Notification.vue.d.ts +2 -2
  63. package/es/Notification/index.d.ts +6 -6
  64. package/es/OverflowList/index.vue.js +1 -1
  65. package/es/OverflowList/index.vue2.js +3 -4
  66. package/es/Pagination/Pagination.vue2.js +1 -2
  67. package/es/Progress/ProgressCircle.vue2.js +1 -2
  68. package/es/Progress/ProgressLine.vue2.js +1 -2
  69. package/es/Progress/ProgressSteps.vue.js +1 -2
  70. package/es/Radio/RadioGroup.vue.d.ts +1 -1
  71. package/es/Radio/index.d.ts +3 -3
  72. package/es/Rate/index.vue2.js +1 -2
  73. package/es/ResizeBox/index.vue2.js +1 -2
  74. package/es/Scrollbar/ScrollbarTrack.vue2.js +1 -2
  75. package/es/Select/Select.vue.d.ts +13 -14
  76. package/es/Select/Select.vue.js +1 -1
  77. package/es/Select/Select.vue2.js +1 -3
  78. package/es/Select/SelectView.vue.js +1 -1
  79. package/es/Select/SelectView.vue2.js +1 -1
  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/index.d.ts +6 -6
  99. package/es/Tabs/Tabs.vue2.js +1 -2
  100. package/es/Tabs/TabsNavInk.vue2.js +1 -2
  101. package/es/Tabs/hooks/useTabsScroll.js +1 -2
  102. package/es/Textarea/hooks/useTextareaHeight.js +1 -2
  103. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  104. package/es/TimePicker/TimePickerPanel.vue2.js +1 -2
  105. package/es/TimePicker/index.d.ts +15 -15
  106. package/es/Tooltip/index.d.ts +3 -3
  107. package/es/Tooltip/index.vue.d.ts +1 -1
  108. package/es/Tooltip/index.vue.js +1 -1
  109. package/es/Transfer/TransferPanel.vue2.js +2 -2
  110. package/es/Trigger/hooks/useContext.js +2 -3
  111. package/es/Trigger/hooks/useTriggerPosition.js +3 -3
  112. package/es/Trigger/hooks/useTriggerVisible.js +2 -1
  113. package/es/Typography/TypographyBase.vue.d.ts +6 -6
  114. package/es/Typography/TypographyBase.vue.js +1 -1
  115. package/es/Typography/TypographyBase.vue2.js +2 -6
  116. package/es/VerificationCode/index.vue2.js +1 -2
  117. package/es/_shared/components/ExpandTransition.vue3.js +1 -2
  118. package/es/_shared/components/Icon.vue3.js +1 -2
  119. package/es/_shared/components/IconButton.vue3.js +1 -2
  120. package/es/_shared/constants/index.d.ts +8 -0
  121. package/es/_shared/constants/index.js +9 -0
  122. package/es/_shared/icons/IconDelete.vue.js +1 -16
  123. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  124. package/es/_shared/icons/IconSearch.vue.js +1 -16
  125. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  126. package/es/_shared/icons/IconSeparator.vue.js +1 -16
  127. package/es/_shared/icons/IconSeparator.vue2.js +16 -1
  128. package/es/_shared/utils/dom.d.ts +7 -18
  129. package/es/_shared/utils/dom.js +82 -14
  130. package/es/_shared/utils/index.d.ts +0 -1
  131. package/es/_shared/utils/time.d.ts +1 -37
  132. package/es/_shared/utils/time.js +2 -2
  133. package/es/_shared/utils/vue-utils.d.ts +11 -5
  134. package/es/_shared/utils/vue-utils.js +12 -7
  135. package/es/index.d.ts +13 -13
  136. package/es/style.css +1 -1
  137. package/lib/Affix/index.vue.js +1 -1
  138. package/lib/Anchor/Anchor.vue2.js +1 -1
  139. package/lib/AutoComplete/index.d.ts +16 -19
  140. package/lib/AutoComplete/index.vue.d.ts +27 -33
  141. package/lib/Avatar/Avatar.vue2.js +1 -1
  142. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  143. package/lib/Badge/index.vue2.js +1 -1
  144. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  145. package/lib/Button/hooks/useContext.d.ts +1 -1
  146. package/lib/Carousel/CarouselIndicator.vue2.js +1 -1
  147. package/lib/Carousel/hooks/useContext.js +1 -1
  148. package/lib/Cascader/Cascader.vue.d.ts +7 -7
  149. package/lib/Cascader/Cascader.vue2.js +1 -1
  150. package/lib/Cascader/CascaderOption.vue2.js +1 -1
  151. package/lib/Cascader/index.d.ts +6 -6
  152. package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  153. package/lib/Checkbox/index.d.ts +3 -3
  154. package/lib/ColorPicker/ColorControl.vue2.js +1 -1
  155. package/lib/ColorPicker/ColorPalette.vue2.js +1 -1
  156. package/lib/ColorPicker/ColorPicker.vue.d.ts +2 -2
  157. package/lib/ColorPicker/index.d.ts +6 -6
  158. package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
  159. package/lib/Descriptions/index.d.ts +3 -3
  160. package/lib/Divider/index.d.ts +3 -3
  161. package/lib/Divider/index.vue.d.ts +1 -1
  162. package/lib/Divider/index.vue2.js +1 -1
  163. package/lib/Drawer/Drawer.vue2.js +1 -1
  164. package/lib/Dropdown/Dropdown.vue.js +1 -1
  165. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  166. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  167. package/lib/Grid/Grid.vue2.js +1 -1
  168. package/lib/Grid/GridCol.vue.js +1 -1
  169. package/lib/Grid/GridItem.vue.js +1 -1
  170. package/lib/Grid/GridRow.vue2.js +1 -1
  171. package/lib/Icon/index.vue2.js +1 -1
  172. package/lib/Image/Image.vue2.js +1 -1
  173. package/lib/Image/ImagePreview.vue.d.ts +1 -1
  174. package/lib/Image/index.d.ts +3 -3
  175. package/lib/Input/Input.vue.d.ts +1 -1
  176. package/lib/Input/index.d.ts +3 -3
  177. package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
  178. package/lib/InputNumber/InputNumber.vue2.js +1 -1
  179. package/lib/InputNumber/index.d.ts +6 -6
  180. package/lib/InputTag/index.d.ts +5 -5
  181. package/lib/InputTag/index.vue.d.ts +2 -2
  182. package/lib/InputTag/index.vue2.js +1 -1
  183. package/lib/Layout/LayoutSider.vue2.js +1 -1
  184. package/lib/List/List.vue.d.ts +1 -1
  185. package/lib/List/List.vue.js +1 -1
  186. package/lib/List/List.vue2.js +1 -1
  187. package/lib/List/hooks/useScrollReach.js +1 -1
  188. package/lib/List/index.d.ts +3 -3
  189. package/lib/Mention/index.d.ts +16 -19
  190. package/lib/Mention/index.vue.d.ts +32 -38
  191. package/lib/Menu/MenuItem.vue2.js +1 -1
  192. package/lib/Menu/MenuItemGroup.vue2.js +1 -1
  193. package/lib/Menu/hooks/useContext.js +1 -1
  194. package/lib/Message/Message.vue.d.ts +2 -2
  195. package/lib/Message/index.d.ts +6 -6
  196. package/lib/Modal/Modal.vue2.js +1 -1
  197. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  198. package/lib/Notification/Notification.vue.d.ts +2 -2
  199. package/lib/Notification/index.d.ts +6 -6
  200. package/lib/OverflowList/index.vue.js +1 -1
  201. package/lib/OverflowList/index.vue2.js +1 -1
  202. package/lib/Pagination/Pagination.vue2.js +1 -1
  203. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  204. package/lib/Progress/ProgressLine.vue2.js +1 -1
  205. package/lib/Progress/ProgressSteps.vue.js +1 -1
  206. package/lib/Radio/RadioGroup.vue.d.ts +1 -1
  207. package/lib/Radio/index.d.ts +3 -3
  208. package/lib/Rate/index.vue2.js +1 -1
  209. package/lib/ResizeBox/index.vue2.js +1 -1
  210. package/lib/Scrollbar/ScrollbarTrack.vue2.js +1 -1
  211. package/lib/Select/Select.vue.d.ts +13 -14
  212. package/lib/Select/Select.vue.js +1 -1
  213. package/lib/Select/Select.vue2.js +1 -1
  214. package/lib/Select/SelectView.vue.js +1 -1
  215. package/lib/Select/SelectView.vue2.js +1 -1
  216. package/lib/Select/index.d.ts +13 -16
  217. package/lib/Select/type.d.ts +0 -1
  218. package/lib/Skeleton/SkeletonLine.vue.d.ts +1 -1
  219. package/lib/Skeleton/SkeletonLine.vue2.js +1 -1
  220. package/lib/Skeleton/index.d.ts +1 -1
  221. package/lib/Slider/Slider.vue.d.ts +3 -3
  222. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  223. package/lib/Slider/index.d.ts +9 -9
  224. package/lib/Space/index.d.ts +3 -3
  225. package/lib/Space/index.vue.d.ts +1 -1
  226. package/lib/Space/index.vue2.js +1 -1
  227. package/lib/Spin/index.vue2.js +1 -1
  228. package/lib/Split/index.d.ts +3 -3
  229. package/lib/Split/index.vue.d.ts +1 -1
  230. package/lib/Split/index.vue2.js +1 -1
  231. package/lib/Statistic/Countdown.vue.d.ts +1 -1
  232. package/lib/Statistic/Countdown.vue.js +1 -1
  233. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  234. package/lib/Statistic/index.d.ts +6 -6
  235. package/lib/Tabs/Tabs.vue2.js +1 -1
  236. package/lib/Tabs/TabsNavInk.vue2.js +1 -1
  237. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  238. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  239. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  240. package/lib/TimePicker/TimePickerPanel.vue2.js +1 -1
  241. package/lib/TimePicker/index.d.ts +15 -15
  242. package/lib/Tooltip/index.d.ts +3 -3
  243. package/lib/Tooltip/index.vue.d.ts +1 -1
  244. package/lib/Tooltip/index.vue.js +1 -1
  245. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  246. package/lib/Trigger/hooks/useContext.js +1 -1
  247. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  248. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  249. package/lib/Typography/TypographyBase.vue.d.ts +6 -6
  250. package/lib/Typography/TypographyBase.vue.js +1 -1
  251. package/lib/Typography/TypographyBase.vue2.js +1 -1
  252. package/lib/VerificationCode/index.vue2.js +1 -1
  253. package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
  254. package/lib/_shared/components/Icon.vue3.js +1 -1
  255. package/lib/_shared/components/IconButton.vue3.js +1 -1
  256. package/lib/_shared/constants/index.d.ts +8 -0
  257. package/lib/_shared/constants/index.js +1 -1
  258. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  259. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  260. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  261. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  262. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  263. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  264. package/lib/_shared/utils/dom.d.ts +7 -18
  265. package/lib/_shared/utils/dom.js +1 -1
  266. package/lib/_shared/utils/index.d.ts +0 -1
  267. package/lib/_shared/utils/time.d.ts +1 -37
  268. package/lib/_shared/utils/time.js +1 -1
  269. package/lib/_shared/utils/vue-utils.d.ts +11 -5
  270. package/lib/_shared/utils/vue-utils.js +1 -1
  271. package/lib/index.d.ts +13 -13
  272. package/lib/style.css +1 -1
  273. package/package.json +1 -1
  274. package/es/_shared/utils/fn.d.ts +0 -8
  275. package/es/_shared/utils/fn.js +0 -79
  276. package/lib/_shared/utils/fn.d.ts +0 -8
  277. package/lib/_shared/utils/fn.js +0 -1
@@ -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>;
@@ -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"),require("../Empty/index.js");/* empty css */const t=e.defineComponent({name:"SkeletonLine",__name:"SkeletonLine",props:{rows:{default:1},widths:{default:()=>[]},lineHeight:{default:20},lineSpacing:{default:15}},setup(t){const n=t,{lineSpacing:o}=e.toRefs(n),s=e.computed(()=>l.valueToPx(o.value));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-skeleton-line",style:e.normalizeStyle({gap:s.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,n=>(e.openBlock(),e.createElementBlock("div",{class:"yc-skeleton-line-row",key:n,style:e.normalizeStyle({height:e.unref(l.valueToPx)(t.lineHeight),width:t.widths[n]?e.unref(l.valueToPx)(t.widths[n]):"100%"})},null,4))),128))],4))}});module.exports=t;
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"),require("../Empty/index.js");/* empty css */const t=e.defineComponent({name:"SkeletonLine",__name:"SkeletonLine",props:{rows:{default:1},widths:{default:()=>[]},lineHeight:{default:20},lineSpacing:{default:15}},setup(t){const n=t,{lineSpacing:o}=e.toRefs(n),s=e.computed(()=>l.valueToPx(o.value));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-skeleton-line",style:e.normalizeStyle({gap:s.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,n=>(e.openBlock(),e.createElementBlock("div",{class:"yc-skeleton-line-row",key:n,style:e.normalizeStyle({height:e.unref(l.valueToPx)(t.lineHeight),width:t.widths[n]?e.unref(l.valueToPx)(t.widths[n]):"100%"})},null,4))),128))],4))}});module.exports=t;
@@ -35,8 +35,8 @@ declare const Skeleton: {
35
35
  shape: import('./type').SkeletonShapeShape;
36
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
37
37
  line: import('vue').DefineComponent<import('./type').SkeletonLineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./type').SkeletonLineProps> & Readonly<{}>, {
38
- rows: number;
39
38
  lineHeight: number;
39
+ rows: number;
40
40
  widths: number[];
41
41
  lineSpacing: number;
42
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -8,14 +8,14 @@ declare const _default: import('vue').DefineComponent<SliderProps, {}, {}, {}, {
8
8
  }>, {
9
9
  disabled: boolean;
10
10
  range: boolean;
11
- showTooltip: boolean;
12
- step: number;
13
- direction: import('..').Direction;
14
11
  modelValue: import('./type').SliderValue;
15
12
  defaultValue: import('./type').SliderValue;
16
13
  showInput: boolean;
17
14
  max: number;
15
+ direction: import('..').Direction;
18
16
  min: number;
17
+ step: number;
18
+ showTooltip: boolean;
19
19
  marks: Record<number, string>;
20
20
  showTicks: boolean;
21
21
  formatTooltip: import('./type').FormatTooltip;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),a=require("../../node_modules/@vueuse/core/index.js");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const l=require("../../_shared/utils/fn.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js");/* empty css */module.exports=t=>{const{trackRef:u,triggerRef:v,computedValue:i,direction:o,max:r,min:n,step:s,disabled:c,normalizeValue:m,denormalizeValue:d}=t,{x:g,y:h,isDragging:f}=a.useDraggable(v,{disabled:c,onMove(){const{minTop:e,maxTop:a,minLeft:l,maxLeft:t}=q;let u;"vertical"==o.value?(h.value=h.value>e?e:h.value,h.value=h.value<a?a:h.value,u=b(h.value)):(g.value=g.value<l?l:g.value,g.value=g.value>t?t:g.value,u=b(g.value)),u=d(u),w(u),u!=i.value&&(i.value=u)}}),p=e.computed(()=>m(r.value)),x=e.computed(()=>m(s.value)),T=e.reactive({bottom:0,left:0,top:0,right:0}),q=e.reactive({minLeft:0,maxLeft:0,minTop:0,maxTop:0}),b=e=>{const{left:a,bottom:l,width:t,height:v}=u.value.getBoundingClientRect(),i="vertical"==o.value?(l-e)/v*p.value:(e-a)/t*p.value;return Math.floor(i/x.value)*x.value},j=e=>{e=m(e);const{left:a,bottom:l,width:t,height:v}=u.value.getBoundingClientRect();return e=Math.floor(e/x.value)*x.value,"vertical"==o.value?l-e/p.value*v:e/p.value*t+a},w=e=>{e=m(e);const{width:a,height:t}=u.value.getBoundingClientRect(),v=m(i.value)/p.value*t,r=m(i.value)/p.value*a;"vertical"==o.value?(T.top=100-e,T.bottom=e,T.transform=`translate(-50%,calc(${l.valueToPx(-v)} + 50%))`):(T.left=e,T.right=100-e,T.transform=`translate(calc(${l.valueToPx(r)} - 50%),-50%)`)};return e.watch([n,r],async()=>{await e.nextTick(),q.minTop=j(n.value),q.maxTop=j(r.value),q.minLeft=j(n.value),q.maxLeft=j(r.value),i.value>r.value?i.value=r.value:i.value<n.value&&(i.value=n.value),w(i.value)},{immediate:!0}),e.watch(()=>i.value,async a=>{f.value||(await e.nextTick(),w(a))}),{isDragging:f,position:T}};
1
+ "use strict";const e=require("vue"),a=require("../../node_modules/@vueuse/core/index.js");require("../../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../../_shared/utils/dom.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js");/* empty css */module.exports=t=>{const{trackRef:u,triggerRef:v,computedValue:i,direction:o,max:r,min:n,step:s,disabled:c,normalizeValue:m,denormalizeValue:d}=t,{x:g,y:h,isDragging:f}=a.useDraggable(v,{disabled:c,onMove(){const{minTop:e,maxTop:a,minLeft:l,maxLeft:t}=b;let u;"vertical"==o.value?(h.value=h.value>e?e:h.value,h.value=h.value<a?a:h.value,u=q(h.value)):(g.value=g.value<l?l:g.value,g.value=g.value>t?t:g.value,u=q(g.value)),u=d(u),j(u),u!=i.value&&(i.value=u)}}),p=e.computed(()=>m(r.value)),x=e.computed(()=>m(s.value)),T=e.reactive({bottom:0,left:0,top:0,right:0}),b=e.reactive({minLeft:0,maxLeft:0,minTop:0,maxTop:0}),q=e=>{const{left:a,bottom:l,width:t,height:v}=u.value.getBoundingClientRect(),i="vertical"==o.value?(l-e)/v*p.value:(e-a)/t*p.value;return Math.floor(i/x.value)*x.value},w=e=>{e=m(e);const{left:a,bottom:l,width:t,height:v}=u.value.getBoundingClientRect();return e=Math.floor(e/x.value)*x.value,"vertical"==o.value?l-e/p.value*v:e/p.value*t+a},j=e=>{e=m(e);const{width:a,height:t}=u.value.getBoundingClientRect(),v=m(i.value)/p.value*t,r=m(i.value)/p.value*a;"vertical"==o.value?(T.top=100-e,T.bottom=e,T.transform=`translate(-50%,calc(${l.valueToPx(-v)} + 50%))`):(T.left=e,T.right=100-e,T.transform=`translate(calc(${l.valueToPx(r)} - 50%),-50%)`)};return e.watch([n,r],async()=>{await e.nextTick(),b.minTop=w(n.value),b.maxTop=w(r.value),b.minLeft=w(n.value),b.maxLeft=w(r.value),i.value>r.value?i.value=r.value:i.value<n.value&&(i.value=n.value),j(i.value)},{immediate:!0}),e.watch(()=>i.value,async a=>{f.value||(await e.nextTick(),j(a))}),{isDragging:f,position:T}};
@@ -12,14 +12,14 @@ declare const Slider: {
12
12
  }, import('vue').PublicProps, {
13
13
  disabled: boolean;
14
14
  range: boolean;
15
- showTooltip: boolean;
16
- step: number;
17
- direction: import('..').Direction;
18
15
  modelValue: import('./type').SliderValue;
19
16
  defaultValue: import('./type').SliderValue;
20
17
  showInput: boolean;
21
18
  max: number;
19
+ direction: import('..').Direction;
22
20
  min: number;
21
+ step: number;
22
+ showTooltip: boolean;
23
23
  marks: Record<number, string>;
24
24
  showTicks: boolean;
25
25
  formatTooltip: import('./type').FormatTooltip;
@@ -38,14 +38,14 @@ declare const Slider: {
38
38
  }>, {}, {}, {}, {}, {
39
39
  disabled: boolean;
40
40
  range: boolean;
41
- showTooltip: boolean;
42
- step: number;
43
- direction: import('..').Direction;
44
41
  modelValue: import('./type').SliderValue;
45
42
  defaultValue: import('./type').SliderValue;
46
43
  showInput: boolean;
47
44
  max: number;
45
+ direction: import('..').Direction;
48
46
  min: number;
47
+ step: number;
48
+ showTooltip: boolean;
49
49
  marks: Record<number, string>;
50
50
  showTicks: boolean;
51
51
  formatTooltip: import('./type').FormatTooltip;
@@ -62,14 +62,14 @@ declare const Slider: {
62
62
  }, string, {
63
63
  disabled: boolean;
64
64
  range: boolean;
65
- showTooltip: boolean;
66
- step: number;
67
- direction: import('..').Direction;
68
65
  modelValue: import('./type').SliderValue;
69
66
  defaultValue: import('./type').SliderValue;
70
67
  showInput: boolean;
71
68
  max: number;
69
+ direction: import('..').Direction;
72
70
  min: number;
71
+ step: number;
72
+ showTooltip: boolean;
73
73
  marks: Record<number, string>;
74
74
  showTicks: boolean;
75
75
  formatTooltip: import('./type').FormatTooltip;
@@ -7,8 +7,8 @@ declare const Space: {
7
7
  size: import('..').Size | number;
8
8
  fill: boolean;
9
9
  wrap: boolean;
10
- align: import('./type').SpaceAlign;
11
10
  direction: import('..').Direction;
11
+ align: import('./type').SpaceAlign;
12
12
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
13
13
  P: {};
14
14
  B: {};
@@ -20,8 +20,8 @@ declare const Space: {
20
20
  size: import('..').Size | number;
21
21
  fill: boolean;
22
22
  wrap: boolean;
23
- align: import('./type').SpaceAlign;
24
23
  direction: import('..').Direction;
24
+ align: import('./type').SpaceAlign;
25
25
  }>;
26
26
  __isFragment?: never;
27
27
  __isTeleport?: never;
@@ -30,8 +30,8 @@ declare const Space: {
30
30
  size: import('..').Size | number;
31
31
  fill: boolean;
32
32
  wrap: boolean;
33
- align: import('./type').SpaceAlign;
34
33
  direction: import('..').Direction;
34
+ align: import('./type').SpaceAlign;
35
35
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
36
36
  $slots: Readonly<import('./type').SpaceSlots> & import('./type').SpaceSlots;
37
37
  }) & {
@@ -10,8 +10,8 @@ declare const __VLS_component: import('vue').DefineComponent<SpaceProps, {}, {},
10
10
  size: import('..').Size | number;
11
11
  fill: boolean;
12
12
  wrap: boolean;
13
- align: import('./type').SpaceAlign;
14
13
  direction: import('..').Direction;
14
+ align: import('./type').SpaceAlign;
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
17
  export default _default;
@@ -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"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const s={class:"yc-space-item"},r={key:0,class:"yc-space-split"},a=e.defineComponent({name:"Space",__name:"index",props:{align:{default:void 0},direction:{default:"horizontal"},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"}},setup(a){const n=e.useSlots(),i=a,{size:c,direction:u,align:d}=e.toRefs(i),m=e.computed(()=>l.valueToPx(t.isNumber(c.value)?c.value:{mini:4,small:8,medium:16,large:24}[c.value])),p=e.computed(()=>t.isUndefined(d.value)?"horizontal"==u.value?"center":"start":d.value),v=e.computed(()=>{var l;if(!n.split)return[];const t=[];return((null==(l=n.default)?void 0:l.call(n))||[]).forEach(l=>{l.type===e.Fragment?t.push(...l.children):l.type!==e.Comment&&t.push(l)}),t});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-space",`yc-space-align-${p.value}`,`yc-space-direction-${e.unref(u)}`,{"yc-space-wrap":l.wrap,"yc-space-fill":l.fill}]),style:e.normalizeStyle({gap:m.value})},[l.$slots.split?e.createCommentVNode("",!0):e.renderSlot(l.$slots,"default",{key:0},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[e.createElementVNode("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t))))]),a<v.value.length-1?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(l.$slots,"split",{},void 0,!0)])):e.createCommentVNode("",!0)],64))),128))],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"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const s={class:"yc-space-item"},a={key:0,class:"yc-space-split"},r=e.defineComponent({name:"Space",__name:"index",props:{align:{default:void 0},direction:{default:"horizontal"},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"}},setup(r){const n=e.useSlots(),i=r,{size:c,direction:u,align:d}=e.toRefs(i),m=e.computed(()=>l.valueToPx(t.isNumber(c.value)?c.value:{mini:4,small:8,medium:16,large:24}[c.value])),p=e.computed(()=>t.isUndefined(d.value)?"horizontal"==u.value?"center":"start":d.value),v=e.computed(()=>{var l;if(!n.split)return[];const t=[];return((null==(l=n.default)?void 0:l.call(n))||[]).forEach(l=>{l.type===e.Fragment?t.push(...l.children):l.type!==e.Comment&&t.push(l)}),t});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-space",`yc-space-align-${p.value}`,`yc-space-direction-${e.unref(u)}`,{"yc-space-wrap":l.wrap,"yc-space-fill":l.fill}]),style:e.normalizeStyle({gap:m.value})},[l.$slots.split?e.createCommentVNode("",!0):e.renderSlot(l.$slots,"default",{key:0},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[e.createElementVNode("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t))))]),r<v.value.length-1?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(l.$slots,"split",{},void 0,!0)])):e.createCommentVNode("",!0)],64))),128))],6))}});module.exports=r;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/global-config.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},r={key:1,class:"yc-spin-tip"},s={key:0,class:"yc-spin-mask"},a=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(a){const{define:c,reuse:d}=o.createReusableTemplate(),{renderLoading:u}=n.getGlobalConfig();return(o,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(c),null,{default:e.withCtx(()=>[o.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!o.dot}]),style:e.normalizeStyle({fontSize:o.isSizeInherit?"inherit":e.unref(t.valueToPx)(o.size)})},[e.renderSlot(o.$slots,"icon",{},()=>[o.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)()),{key:1}))],!0)],6)),o.tip?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(o.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(o.tip),1)],!0)])):e.createCommentVNode("",!0)]),_:3}),o.$slots.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[o.loading?(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.unref(d))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(d),{key:0})),e.renderSlot(o.$slots,"default",{},void 0,!0)]))}});module.exports=a;
1
+ "use strict";const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/global-config.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},r={key:1,class:"yc-spin-tip"},a={key:0,class:"yc-spin-mask"},c=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(c){const{define:s,reuse:d}=o.createReusableTemplate(),{renderLoading:u}=n.getGlobalConfig();return(o,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(s),null,{default:e.withCtx(()=>[o.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!o.dot}]),style:e.normalizeStyle({fontSize:o.isSizeInherit?"inherit":e.unref(t.valueToPx)(o.size)})},[e.renderSlot(o.$slots,"icon",{},()=>[o.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)()),{key:1}))],!0)],6)),o.tip?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(o.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(o.tip),1)],!0)])):e.createCommentVNode("",!0)]),_:3}),o.$slots.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[o.loading?(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(e.unref(d))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(d),{key:0})),e.renderSlot(o.$slots,"default",{},void 0,!0)]))}});module.exports=c;
@@ -17,8 +17,8 @@ declare const Split: {
17
17
  size: number | string;
18
18
  disabled: boolean;
19
19
  component: string;
20
- direction: import('..').Direction;
21
20
  max: number;
21
+ direction: import('..').Direction;
22
22
  min: number;
23
23
  defaultSize: number | string;
24
24
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -40,8 +40,8 @@ declare const Split: {
40
40
  size: number | string;
41
41
  disabled: boolean;
42
42
  component: string;
43
- direction: import('..').Direction;
44
43
  max: number;
44
+ direction: import('..').Direction;
45
45
  min: number;
46
46
  defaultSize: number | string;
47
47
  }>;
@@ -62,8 +62,8 @@ declare const Split: {
62
62
  size: number | string;
63
63
  disabled: boolean;
64
64
  component: string;
65
- direction: import('..').Direction;
66
65
  max: number;
66
+ direction: import('..').Direction;
67
67
  min: number;
68
68
  defaultSize: number | string;
69
69
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<SplitProps, {}, {},
23
23
  size: number | string;
24
24
  disabled: boolean;
25
25
  component: string;
26
- direction: import('..').Direction;
27
26
  max: number;
27
+ direction: import('..').Direction;
28
28
  min: number;
29
29
  defaultSize: number | string;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -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"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");const i=require("../_shared/utils/control.js");;/* empty css */const a=require("../_shared/icons/IconDragDot.vue.js"),r=require("../node_modules/@vueuse/core/index.js"),o={class:"yc-split-trigger-icon-wrapper"},s={class:"yc-split-trigger-icon"},u={class:"yc-split-pane yc-split-pane-second"},n=e.defineComponent({name:"Split",__name:"index",props:{component:{default:"div"},direction:{default:"horizontal"},size:{default:void 0},defaultSize:{default:.5},min:{default:0},max:{default:1},disabled:{type:Boolean,default:!1}},emits:["update:size","moving-start","moving","moving-end"],setup(n,{emit:d}){const v=n,c=d,{size:m,defaultSize:p,direction:f,min:g,max:h}=e.toRefs(v),y=i(m,p.value,e=>{c("update:size",e)}),z=e.computed(()=>100*(l.isNumber(y.value)?y.value:E(y.value))+"%"),_=e.ref(),x=e.ref(),q=e.computed(()=>{var e,t;return("horizontal"==f.value?null==(e=x.value)?void 0:e.offsetWidth:null==(t=x.value)?void 0:t.offsetHeight)??6}),N=e.computed(()=>{var e;const t=null==(e=_.value)?void 0:e.getBoundingClientRect();return("horizontal"==f.value?null==t?void 0:t.width:null==t?void 0:t.height)??0}),{isDragging:j,x:S,y:b}=r.useDraggable(x,{onMove(){c("moving");const{left:e,top:t}=_.value.getBoundingClientRect(),i="horizontal"==f.value?e:t,a=i+C(g.value),r=i+C(h.value)-q.value;let o="";"horizontal"==f.value?(S.value=S.value<a?a:S.value,S.value=S.value>r?r:S.value,o=S.value-e+"px"):(b.value=b.value<a?a:b.value,b.value=b.value>r?r:b.value,o=b.value-t+"px"),y.value=l.isNumber(y.value)?E(o):o},onStart(){c("moving-start")},onEnd(){c("moving-end")}}),C=e=>l.isNumber(e)?e*N.value:Number.parseFloat(e),E=e=>Number.parseFloat(e)/N.value;return e.watch(()=>y.value,async e=>{if(j.value)return;await t.sleep(0);const{left:l,top:i}=_.value.getBoundingClientRect();S.value=l+C(e),b.value=i+C(e)},{immediate:!0}),(l,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component),{class:e.normalizeClass(["yc-split",`yc-split-direction-${e.unref(f)}`]),ref_key:"splitRef",ref:_},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"yc-split-pane yc-split-pane-first",style:e.normalizeStyle({flex:`0 0 calc(${z.value} - ${e.unref(t.valueToPx)(q.value/2)}`})},[e.renderSlot(l.$slots,"first",{},void 0,!0)],4),e.createElementVNode("div",{class:"yc-split-trigger",ref_key:"triggerRef",ref:x},[e.renderSlot(l.$slots,"resize-trigger",{},()=>[e.createElementVNode("div",o,[e.createElementVNode("div",s,[e.renderSlot(l.$slots,"resize-trigger-icon",{},()=>[e.createVNode(e.unref(a),{rotate:"horizontal"==e.unref(f)?90:0,size:12},null,8,["rotate"])],!0)])])],!0)],512),e.createElementVNode("div",u,[e.renderSlot(l.$slots,"second",{},void 0,!0)])]),_:3},8,["class"]))}});module.exports=n;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");const a=require("../_shared/utils/control.js");;/* empty css */const i=require("../_shared/icons/IconDragDot.vue.js"),o=require("../node_modules/@vueuse/core/index.js"),r={class:"yc-split-trigger-icon-wrapper"},n={class:"yc-split-trigger-icon"},u={class:"yc-split-pane yc-split-pane-second"},s=e.defineComponent({name:"Split",__name:"index",props:{component:{default:"div"},direction:{default:"horizontal"},size:{default:void 0},defaultSize:{default:.5},min:{default:0},max:{default:1},disabled:{type:Boolean,default:!1}},emits:["update:size","moving-start","moving","moving-end"],setup(s,{emit:d}){const v=s,c=d,{size:m,defaultSize:p,direction:f,min:g,max:y}=e.toRefs(v),h=a(m,p.value,e=>{c("update:size",e)}),z=e.computed(()=>100*(l.isNumber(h.value)?h.value:E(h.value))+"%"),_=e.ref(),x=e.ref(),N=e.computed(()=>{var e,t;return("horizontal"==f.value?null==(e=x.value)?void 0:e.offsetWidth:null==(t=x.value)?void 0:t.offsetHeight)??6}),q=e.computed(()=>{var e;const t=null==(e=_.value)?void 0:e.getBoundingClientRect();return("horizontal"==f.value?null==t?void 0:t.width:null==t?void 0:t.height)??0}),{isDragging:j,x:S,y:b}=o.useDraggable(x,{onMove(){c("moving");const{left:e,top:t}=_.value.getBoundingClientRect(),a="horizontal"==f.value?e:t,i=a+C(g.value),o=a+C(y.value)-N.value;let r="";"horizontal"==f.value?(S.value=S.value<i?i:S.value,S.value=S.value>o?o:S.value,r=S.value-e+"px"):(b.value=b.value<i?i:b.value,b.value=b.value>o?o:b.value,r=b.value-t+"px"),h.value=l.isNumber(h.value)?E(r):r},onStart(){c("moving-start")},onEnd(){c("moving-end")}}),C=e=>l.isNumber(e)?e*q.value:Number.parseFloat(e),E=e=>Number.parseFloat(e)/q.value;return e.watch(()=>h.value,async e=>{if(j.value)return;await t.sleep(0);const{left:l,top:a}=_.value.getBoundingClientRect();S.value=l+C(e),b.value=a+C(e)},{immediate:!0}),(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component),{class:e.normalizeClass(["yc-split",`yc-split-direction-${e.unref(f)}`]),ref_key:"splitRef",ref:_},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"yc-split-pane yc-split-pane-first",style:e.normalizeStyle({flex:`0 0 calc(${z.value} - ${e.unref(t.valueToPx)(N.value/2)}`})},[e.renderSlot(l.$slots,"first",{},void 0,!0)],4),e.createElementVNode("div",{class:"yc-split-trigger",ref_key:"triggerRef",ref:x},[e.renderSlot(l.$slots,"resize-trigger",{},()=>[e.createElementVNode("div",r,[e.createElementVNode("div",n,[e.renderSlot(l.$slots,"resize-trigger-icon",{},()=>[e.createVNode(e.unref(i),{rotate:"horizontal"==e.unref(f)?90:0,size:12},null,8,["rotate"])],!0)])])],!0)],512),e.createElementVNode("div",u,[e.renderSlot(l.$slots,"second",{},void 0,!0)])]),_:3},8,["class"]))}});module.exports=s;
@@ -14,8 +14,8 @@ declare const __VLS_component: import('vue').DefineComponent<CountdownProps, {},
14
14
  value: number;
15
15
  start: boolean;
16
16
  title: string;
17
- format: string;
18
17
  easeing: string;
18
+ format: string;
19
19
  valueStyle: import('vue').CSSProperties;
20
20
  now: number;
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const a=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js"),u=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const l=require("./Statistic.vue.js"),i=e.defineComponent({name:"Countdown",__name:"Countdown",props:{title:{default:""},value:{default:void 0},now:{default:void 0},format:{default:"HH:mm:ss"},start:{type:Boolean,default:!0},easeing:{default:"quadOut"},valueStyle:{default:()=>({})}},emits:["finish"],setup(i,{emit:n}){const r=i,s=n,{value:o,now:v,format:d,start:f}=e.toRefs(r),m=e.ref(0),c=e.ref(0),p=e.ref(m.value),h=e.ref(!1),q=()=>{if(p.value-1e3<=0)return h.value=!1,s("finish");p.value-=1e3};return e.watch(()=>f.value,async e=>{h.value||(m.value=t.isUndefined(o.value)?Date.now()+3e5:o.value,c.value=t.isUndefined(v.value)?Date.now():v.value,p.value=m.value-c.value),e&&(await a.sleep(0),h.value=!0)},{immediate:!0}),(a,t)=>(e.openBlock(),e.createBlock(l,{title:a.title,value:p.value-1e3,"value-from":p.value,start:e.unref(f),animation:h.value,format:e.unref(d),"value-style":a.valueStyle,easeing:a.easeing,"animation-duration":1e3,"is-countdown":"",onFinish:q},{value:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u.formatSeconds)(m.value-c.value,e.unref(d))),1)]),_:1},8,["title","value","value-from","start","animation","format","value-style","easeing"]))}});module.exports=i;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const a=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js"),u=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const l=require("./Statistic.vue.js"),i=e.defineComponent({name:"Countdown",__name:"Countdown",props:{title:{default:""},value:{default:void 0},now:{default:void 0},format:{default:"HH:mm:ss"},start:{type:Boolean,default:!0},easeing:{default:"quadOut"},valueStyle:{default:()=>({})}},emits:["finish"],setup(i,{emit:n}){const o=i,r=n,{value:s,now:v,format:d,start:f}=e.toRefs(o),m=e.ref(0),c=e.ref(0),p=e.ref(m.value),w=e.ref(!1),y=()=>{if(p.value-1e3<=0)return w.value=!1,r("finish");p.value-=1e3};return e.watch(()=>f.value,async e=>{w.value||(m.value=t.isUndefined(s.value)?Date.now()+3e5:s.value,c.value=t.isUndefined(v.value)?Date.now():v.value,p.value=m.value-c.value),e&&(await a.sleep(0),w.value=!0)},{immediate:!0}),(a,t)=>(e.openBlock(),e.createBlock(l,{title:a.title,value:p.value-1e3,"value-from":p.value,start:e.unref(f),animation:w.value,format:e.unref(d),"value-style":a.valueStyle,easeing:a.easeing,"animation-duration":1e3,"is-countdown":"",onFinish:y},{value:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u.formatSeconds)(m.value-c.value,e.unref(d))),1)]),_:1},8,["title","value","value-from","start","animation","format","value-style","easeing"]))}});module.exports=i;
@@ -19,10 +19,10 @@ declare const __VLS_component: import('vue').DefineComponent<StatisticProps, {},
19
19
  title: string;
20
20
  placeholder: string;
21
21
  animation: boolean;
22
- format: string;
23
22
  animationDuration: number;
24
23
  easeing: string;
25
24
  extra: string;
25
+ format: string;
26
26
  precision: number;
27
27
  valueStyle: import('vue').CSSProperties;
28
28
  showGroupSeparator: boolean;
@@ -16,10 +16,10 @@ declare const Statistic: {
16
16
  title: string;
17
17
  placeholder: string;
18
18
  animation: boolean;
19
- format: string;
20
19
  animationDuration: number;
21
20
  easeing: string;
22
21
  extra: string;
22
+ format: string;
23
23
  precision: number;
24
24
  valueStyle: import('vue').CSSProperties;
25
25
  showGroupSeparator: boolean;
@@ -43,10 +43,10 @@ declare const Statistic: {
43
43
  title: string;
44
44
  placeholder: string;
45
45
  animation: boolean;
46
- format: string;
47
46
  animationDuration: number;
48
47
  easeing: string;
49
48
  extra: string;
49
+ format: string;
50
50
  precision: number;
51
51
  valueStyle: import('vue').CSSProperties;
52
52
  showGroupSeparator: boolean;
@@ -67,10 +67,10 @@ declare const Statistic: {
67
67
  title: string;
68
68
  placeholder: string;
69
69
  animation: boolean;
70
- format: string;
71
70
  animationDuration: number;
72
71
  easeing: string;
73
72
  extra: string;
73
+ format: string;
74
74
  precision: number;
75
75
  valueStyle: import('vue').CSSProperties;
76
76
  showGroupSeparator: boolean;
@@ -88,8 +88,8 @@ declare const Statistic: {
88
88
  value: number;
89
89
  start: boolean;
90
90
  title: string;
91
- format: string;
92
91
  easeing: string;
92
+ format: string;
93
93
  valueStyle: import('vue').CSSProperties;
94
94
  now: number;
95
95
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -105,8 +105,8 @@ declare const Statistic: {
105
105
  value: number;
106
106
  start: boolean;
107
107
  title: string;
108
- format: string;
109
108
  easeing: string;
109
+ format: string;
110
110
  valueStyle: import('vue').CSSProperties;
111
111
  now: number;
112
112
  }>;
@@ -121,8 +121,8 @@ declare const Statistic: {
121
121
  value: number;
122
122
  start: boolean;
123
123
  title: string;
124
- format: string;
125
124
  easeing: string;
125
+ format: string;
126
126
  valueStyle: import('vue').CSSProperties;
127
127
  now: number;
128
128
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -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");require("../_shared/utils/time.js");const a=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconPlus.vue.js"),l=require("./hooks/useContext.js"),r=require("./hooks/useTabsScroll.js"),i=require("./TabPane.vue.js");;/* empty css */const s=require("./TabsTab.vue.js"),u=require("./TabsNavInk.vue.js"),c=require("./TabButton.vue.js"),d={class:"yc-tabs-nav"},f={key:3,class:"yc-tabs-nav-extra"},y=e.defineComponent({name:"Tabs",__name:"Tabs",props:{activeKey:{default:void 0},defaultActiveKey:{default:""},position:{default:void 0},size:{default:void 0},type:{default:"line"},direction:{default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destoryOnHide:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{default:"click"}},emits:["update:activeKey","change","tab-click","add","delete"],setup(y,{emit:p}){const m=e.useSlots(),v=y,h=p,k=e.ref(),{computedActiveKey:b,size:B,direction:z,autoSwitch:x,position:C}=l().provide(v,h,k),j=e.computed(()=>{var e;return a.findComponentsFromVnodes((null==(e=m.default)?void 0:e.call(m))||[],i.name)}),q=e.computed(()=>j.value.map(e=>({title:"",path:"",disabled:!1,...e.props||{},slots:e.children}))),g=e.computed(()=>v.showAddButton&&["line","card","card-gutter"].includes(v.type)),N=e.computed(()=>{const e=q.value.findIndex(e=>e.path==b.value);return e<0?0:e}),{scrollDis:V,isScrollable:_,preDisabled:T,nextDisabled:$,navHeight:w,handleScroll:E}=r({listRef:k,panes:q,direction:z}),S=async()=>{h("add"),x.value&&(await e.nextTick(),b.value=q.value[q.value.length-1].path)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-tabs",`yc-tabs-${e.unref(z)}`,`yc-tabs-type-${a.type}`,`yc-tabs-size-${e.unref(B)}`,{"yc-tabs-animation":a.animation,"yc-tabs-justify":"horizontal"==e.unref(z)&&a.justify,"yc-tabs-no-padding":a.headerPadding&&["line","text"].includes(a.type)&&"horizontal"===v.direction,[`yc-tabs-${e.unref(C)}`]:e.unref(C)}])},[e.createElementVNode("div",d,[e.unref(_)?(e.openBlock(),e.createBlock(c,{key:0,disabled:e.unref(T),direction:"horizontal"==e.unref(z)?"left":"up",onClick:l[0]||(l[0]=t=>e.unref(E)("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?180:-90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-tabs-nav-tab",{"yc-tabs-nav-tab-scroll":e.unref(_)}])},[e.createElementVNode("div",{class:"yc-tabs-nav-tab-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${e.unref(t.valueToPx)(e.unref(V))})`}),ref_key:"listRef",ref:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(t,a)=>(e.openBlock(),e.createBlock(s,{key:a,index:a,node:t},null,8,["index","node"]))),128)),"line"==a.type?(e.openBlock(),e.createBlock(u,{key:0,"cur-index":N.value,panes:q.value},null,8,["cur-index","panes"])):e.createCommentVNode("",!0)],4)],2),e.unref(_)?(e.openBlock(),e.createBlock(c,{key:1,disabled:e.unref($),direction:"horizontal"==e.unref(z)?"right":"down",onClick:l[1]||(l[1]=t=>e.unref(E)("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?0:90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createBlock(c,{key:2,type:"add",size:"12",onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(o),{size:12})]),_:1})):e.createCommentVNode("",!0),a.$slots.extra?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(a.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),a.hideContent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-tabs-content",style:e.normalizeStyle({height:"vertical"==e.unref(z)?`${e.unref(t.valueToPx)(e.unref(w))}`:""})},[e.createElementVNode("div",{class:"yc-tabs-content-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${100*-N.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(t,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:a}))),128))],4)],4))],2))}});module.exports=y;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const a=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconPlus.vue.js"),l=require("./hooks/useContext.js"),r=require("./hooks/useTabsScroll.js"),i=require("./TabPane.vue.js");;/* empty css */const s=require("./TabsTab.vue.js"),c=require("./TabsNavInk.vue.js"),u=require("./TabButton.vue.js"),d={class:"yc-tabs-nav"},f={key:3,class:"yc-tabs-nav-extra"},y=e.defineComponent({name:"Tabs",__name:"Tabs",props:{activeKey:{default:void 0},defaultActiveKey:{default:""},position:{default:void 0},size:{default:void 0},type:{default:"line"},direction:{default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destoryOnHide:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{default:"click"}},emits:["update:activeKey","change","tab-click","add","delete"],setup(y,{emit:p}){const m=e.useSlots(),v=y,h=p,k=e.ref(),{computedActiveKey:b,size:B,direction:z,autoSwitch:x,position:C}=l().provide(v,h,k),j=e.computed(()=>{var e;return a.findComponentsFromVnodes((null==(e=m.default)?void 0:e.call(m))||[],i.name)}),q=e.computed(()=>j.value.map(e=>({title:"",path:"",disabled:!1,...e.props||{},slots:e.children}))),g=e.computed(()=>v.showAddButton&&["line","card","card-gutter"].includes(v.type)),N=e.computed(()=>{const e=q.value.findIndex(e=>e.path==b.value);return e<0?0:e}),{scrollDis:V,isScrollable:_,preDisabled:T,nextDisabled:$,navHeight:w,handleScroll:E}=r({listRef:k,panes:q,direction:z}),S=async()=>{h("add"),x.value&&(await e.nextTick(),b.value=q.value[q.value.length-1].path)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-tabs",`yc-tabs-${e.unref(z)}`,`yc-tabs-type-${a.type}`,`yc-tabs-size-${e.unref(B)}`,{"yc-tabs-animation":a.animation,"yc-tabs-justify":"horizontal"==e.unref(z)&&a.justify,"yc-tabs-no-padding":a.headerPadding&&["line","text"].includes(a.type)&&"horizontal"===v.direction,[`yc-tabs-${e.unref(C)}`]:e.unref(C)}])},[e.createElementVNode("div",d,[e.unref(_)?(e.openBlock(),e.createBlock(u,{key:0,disabled:e.unref(T),direction:"horizontal"==e.unref(z)?"left":"up",onClick:l[0]||(l[0]=t=>e.unref(E)("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?180:-90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-tabs-nav-tab",{"yc-tabs-nav-tab-scroll":e.unref(_)}])},[e.createElementVNode("div",{class:"yc-tabs-nav-tab-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${e.unref(t.valueToPx)(e.unref(V))})`}),ref_key:"listRef",ref:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(t,a)=>(e.openBlock(),e.createBlock(s,{key:a,index:a,node:t},null,8,["index","node"]))),128)),"line"==a.type?(e.openBlock(),e.createBlock(c,{key:0,"cur-index":N.value,panes:q.value},null,8,["cur-index","panes"])):e.createCommentVNode("",!0)],4)],2),e.unref(_)?(e.openBlock(),e.createBlock(u,{key:1,disabled:e.unref($),direction:"horizontal"==e.unref(z)?"right":"down",onClick:l[1]||(l[1]=t=>e.unref(E)("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?0:90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createBlock(u,{key:2,type:"add",size:"12",onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(o),{size:12})]),_:1})):e.createCommentVNode("",!0),a.$slots.extra?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(a.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),a.hideContent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-tabs-content",style:e.normalizeStyle({height:"vertical"==e.unref(z)?`${e.unref(t.valueToPx)(e.unref(w))}`:""})},[e.createElementVNode("div",{class:"yc-tabs-content-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${100*-N.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(t,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:a}))),128))],4)],4))],2))}});module.exports=y;
@@ -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"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),s=e.defineComponent({__name:"TabsNavInk",props:{curIndex:{},panes:{}},setup(s){const i=s,{curIndex:n,panes:u}=e.toRefs(i),{titleRefs:r,listRef:a,direction:c,editable:d}=o().inject(),v=e.computed(()=>{var e,o,s;const i=u.value[n.value],v=d.value&&(t.isUndefined(i.closable)||i.closable)?22:0,f=r.value[n.value],{left:p,top:h}=(null==(o=null==(e=a.value)?void 0:e.getBoundingClientRect)?void 0:o.call(e))??{left:0,top:0},{scrollLeft:m,scrollTop:j}=a.value??{scrollLeft:0,scrollTop:0},{left:q,top:x}=(null==(s=null==f?void 0:f.getBoundingClientRect)?void 0:s.call(f))??{left:0,top:0},{offsetHeight:_,offsetWidth:g}=f??{offsetHeight:0,offsetWidth:0};return"horizontal"==c.value?{width:l.valueToPx(g+v),left:l.valueToPx(q-p+m)}:{height:l.valueToPx(_),top:l.valueToPx(x-h+j)}});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-tabs-nav-ink",style:e.normalizeStyle(v.value)},null,4))}});module.exports=s;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),s=e.defineComponent({__name:"TabsNavInk",props:{curIndex:{},panes:{}},setup(s){const n=s,{curIndex:i,panes:u}=e.toRefs(n),{titleRefs:r,listRef:a,direction:c,editable:d}=o().inject(),v=e.computed(()=>{var e,o,s;const n=u.value[i.value],v=d.value&&(t.isUndefined(n.closable)||n.closable)?22:0,f=r.value[i.value],{left:p,top:h}=(null==(o=null==(e=a.value)?void 0:e.getBoundingClientRect)?void 0:o.call(e))??{left:0,top:0},{scrollLeft:m,scrollTop:x}=a.value??{scrollLeft:0,scrollTop:0},{left:j,top:q}=(null==(s=null==f?void 0:f.getBoundingClientRect)?void 0:s.call(f))??{left:0,top:0},{offsetHeight:g,offsetWidth:T}=f??{offsetHeight:0,offsetWidth:0};return"horizontal"==c.value?{width:l.valueToPx(T+v),left:l.valueToPx(j-p+m)}:{height:l.valueToPx(g),top:l.valueToPx(q-h+x)}});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-tabs-nav-ink",style:e.normalizeStyle(v.value)},null,4))}});module.exports=s;
@@ -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 */module.exports=u=>{const{direction:t,panes:r,listRef:s}=u,v=e.ref(!1),o=e.ref(0),i=e.ref(0),n=e.ref(0),c=e.ref(0),h=e.ref(0),d=e.ref(0),m=e.computed(()=>!o.value),f=e.computed(()=>"horizontal"==t.value?Math.abs(o.value)+c.value>=i.value:Math.abs(o.value)+h.value>=n.value);l.useResizeObserver(s,()=>q()),e.watch(()=>r.value.length,async()=>{await a.sleep(0),q()});const p=()=>{n.value=s.value.scrollHeight,i.value=s.value.scrollWidth,c.value=s.value.parentElement.offsetWidth,h.value=s.value.parentElement.offsetHeight,d.value=s.value.parentElement.parentElement.offsetHeight},q=()=>{p(),"horizontal"==t.value?v.value=i.value>c.value:v.value=n.value>h.value};return{navHeight:d,scrollDis:o,isScrollable:v,preDisabled:m,nextDisabled:f,handleScroll:e=>{p();const l="horizontal"===t.value?c.value:h.value,a="horizontal"===t.value?i.value:n.value,u=.8*l;let r=o.value;r="next"===e?Math.max(o.value-u,l-a):Math.min(o.value+u,0),o.value=r}}};
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 */module.exports=u=>{const{direction:t,panes:r,listRef:s}=u,v=e.ref(!1),o=e.ref(0),n=e.ref(0),i=e.ref(0),c=e.ref(0),h=e.ref(0),d=e.ref(0),m=e.computed(()=>!o.value),f=e.computed(()=>"horizontal"==t.value?Math.abs(o.value)+c.value>=n.value:Math.abs(o.value)+h.value>=i.value);l.useResizeObserver(s,()=>q()),e.watch(()=>r.value.length,async()=>{await a.sleep(0),q()});const p=()=>{i.value=s.value.scrollHeight,n.value=s.value.scrollWidth,c.value=s.value.parentElement.offsetWidth,h.value=s.value.parentElement.offsetHeight,d.value=s.value.parentElement.parentElement.offsetHeight},q=()=>{p(),"horizontal"==t.value?v.value=n.value>c.value:v.value=i.value>h.value};return{navHeight:d,scrollDis:o,isScrollable:v,preDisabled:m,nextDisabled:f,handleScroll:e=>{p();const l="horizontal"===t.value?c.value:h.value,a="horizontal"===t.value?n.value:i.value,u=.8*l;let r=o.value;r="next"===e?Math.max(o.value-u,l-a):Math.min(o.value+u,0),o.value=r}}};
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("../../node_modules/@vueuse/core/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 */module.exports=(o,u)=>{if(!u)return{};const{height:i}=r.useElementSize(o,void 0,{box:"border-box"}),t=e=>14*e*1.5715+8;return{style:e.computed(()=>{const{minRows:e=1,maxRows:r=1e4}=u,o=e<=1?1:e,n=t(e),d=t(r<=o?o:r);let l=i.value;return l=l<n?n:l,l=l>d?d:l,{minHeight:s.valueToPx(n),height:s.valueToPx(l)}})}};
1
+ "use strict";const e=require("vue"),r=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");/* empty css */module.exports=(s,u)=>{if(!u)return{};const{height:t}=r.useElementSize(s,void 0,{box:"border-box"}),i=e=>14*e*1.5715+8;return{style:e.computed(()=>{const{minRows:e=1,maxRows:r=1e4}=u,s=e<=1?1:e,n=i(e),d=i(r<=s?s:r);let l=t.value;return l=l<n?n:l,l=l>d?d:l,{minHeight:o.valueToPx(n),height:o.valueToPx(l)}})}};
@@ -79,16 +79,16 @@ declare const __VLS_component: import('vue').DefineComponent<TimePickerProps, {}
79
79
  error: boolean;
80
80
  type: import('./type').TimePickerType;
81
81
  placeholder: string | string[];
82
+ modelValue: import('./type').TimePickerValue;
83
+ defaultValue: import('./type').TimePickerValue;
84
+ allowClear: boolean;
85
+ readonly: boolean;
82
86
  triggerProps: import('../Trigger').TriggerProps;
83
87
  format: string;
88
+ hideDisabledOptions: boolean;
84
89
  disabledHours: import('./type').DisabledHours;
85
90
  disabledMinutes: import('./type').DisabledMinutes;
86
91
  disabledSeconds: import('./type').DisabledSeconds;
87
- hideDisabledOptions: boolean;
88
- modelValue: import('./type').TimePickerValue;
89
- defaultValue: import('./type').TimePickerValue;
90
- allowClear: boolean;
91
- readonly: boolean;
92
92
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
93
93
  panelRef: ({
94
94
  $: import('vue').ComponentInternalInstance;