yc-design-vue 2.2.5 → 2.2.6

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 (229) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/es/Alert/index.vue.js +2 -2
  3. package/es/Avatar/Avatar.vue.js +1 -1
  4. package/es/BackTop/index.vue.js +1 -1
  5. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  6. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  7. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
  8. package/es/Calendar/Calendar.vue.js +2 -2
  9. package/es/Carousel/CarouselArrow.vue.js +1 -1
  10. package/es/Cascader/CascaderIcon.vue.js +2 -2
  11. package/es/Cascader/CascaderOption.vue.js +1 -1
  12. package/es/Checkbox/Checkbox.vue.js +2 -2
  13. package/es/Collapse/CollapseItem.vue.js +2 -2
  14. package/es/DatePicker/YcDatePicker.vue.js +34 -4
  15. package/es/DatePicker/YcMonthPicker.vue.js +25 -3
  16. package/es/DatePicker/YcWeekPicker.vue.js +34 -4
  17. package/es/DatePicker/YcYearPicker.vue.js +25 -3
  18. package/es/DatePicker/component/PickerHeader.vue.js +1 -1
  19. package/es/DatePicker/component/PickerInput.vue.d.ts +1 -0
  20. package/es/DatePicker/component/PickerInput.vue.js +41 -39
  21. package/es/DatePicker/type.d.ts +1 -0
  22. package/es/Drawer/Drawer.vue.js +2 -2
  23. package/es/Dropdown/DropdownButton.vue.js +1 -1
  24. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  25. package/es/Empty/index.vue.js +1 -1
  26. package/es/Image/Image.vue.js +1 -1
  27. package/es/Image/ImagePreview.vue.js +1 -1
  28. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  29. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  30. package/es/Input/Input.vue.js +2 -2
  31. package/es/Input/InputPassword.vue.js +2 -2
  32. package/es/Input/InputSearch.vue.js +2 -2
  33. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  34. package/es/InputTag/index.vue.js +2 -2
  35. package/es/Layout/LayoutSider.vue.js +1 -1
  36. package/es/Link/index.vue.js +1 -1
  37. package/es/Menu/Menu.vue.js +1 -1
  38. package/es/Menu/MenuEllipsis.vue.js +1 -1
  39. package/es/Menu/SubMenu.vue.js +1 -1
  40. package/es/Message/Message.vue.js +2 -2
  41. package/es/Modal/Modal.vue.js +2 -2
  42. package/es/Notification/Notification.vue.js +2 -2
  43. package/es/PageHeader/index.vue.js +2 -2
  44. package/es/Pagination/PaginationItem.vue.js +1 -1
  45. package/es/Progress/ProgressCircle.vue.js +1 -1
  46. package/es/Radio/Radio.vue.js +2 -2
  47. package/es/Rate/index.vue.js +1 -1
  48. package/es/ResizeBox/index.vue.js +1 -1
  49. package/es/Select/SelectIcon.vue.js +2 -2
  50. package/es/Spin/index.vue.js +1 -1
  51. package/es/Split/index.vue.js +1 -1
  52. package/es/Steps/Step.vue.js +1 -1
  53. package/es/Tabs/TabButton.vue.js +2 -2
  54. package/es/Tabs/Tabs.vue.js +1 -1
  55. package/es/Tag/index.vue.js +2 -2
  56. package/es/Textarea/index.vue.js +2 -2
  57. package/es/TimePicker/TimePicker.vue.js +2 -2
  58. package/es/Transfer/Transfer.vue.js +1 -1
  59. package/es/Transfer/TransferPanel.vue.js +3 -3
  60. package/es/Trigger/index.vue.js +1 -1
  61. package/es/Typography/TypographyBase.vue.js +1 -1
  62. package/es/Upload/UploadButton.vue.js +1 -1
  63. package/es/Upload/UploadDrag.vue.js +1 -1
  64. package/es/Upload/UploadFileList.vue.js +3 -3
  65. package/es/Upload/UploadPictureCard.vue.js +2 -2
  66. package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
  67. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  68. package/es/_shared/constants/index.js +1 -1
  69. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  70. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  71. package/es/_shared/icons/IconCalendar.vue2.js +1 -1
  72. package/es/_shared/icons/IconCheck.vue.js +1 -1
  73. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  74. package/es/_shared/icons/IconClose.vue.js +1 -1
  75. package/es/_shared/icons/IconCopy.vue2.js +1 -1
  76. package/es/_shared/icons/IconDelete.vue.js +24 -1
  77. package/es/_shared/icons/IconDelete.vue2.js +1 -24
  78. package/es/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  79. package/es/_shared/icons/IconDoubleRight.vue2.js +1 -1
  80. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  81. package/es/_shared/icons/IconEdit.vue2.js +1 -1
  82. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  83. package/es/_shared/icons/IconError.vue.js +1 -1
  84. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  85. package/es/_shared/icons/IconEyeClose.vue.js +1 -1
  86. package/es/_shared/icons/IconEyeOpen.vue.js +1 -1
  87. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  88. package/es/_shared/icons/IconFile.vue2.js +1 -1
  89. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  90. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  91. package/es/_shared/icons/IconInfo.vue.js +1 -1
  92. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  93. package/es/_shared/icons/IconLink.vue.js +1 -1
  94. package/es/_shared/icons/IconLoading.vue.js +1 -1
  95. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  96. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  97. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  98. package/es/_shared/icons/IconMore.vue.js +1 -1
  99. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  100. package/es/_shared/icons/IconPlus.vue.js +1 -1
  101. package/es/_shared/icons/IconRight.vue.js +1 -1
  102. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  103. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  104. package/es/_shared/icons/IconSearch.vue.js +1 -1
  105. package/es/_shared/icons/IconSeparator.vue.js +24 -1
  106. package/es/_shared/icons/IconSeparator.vue2.js +1 -24
  107. package/es/_shared/icons/IconStar.vue.js +1 -1
  108. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  109. package/es/_shared/icons/IconTime.vue.js +1 -1
  110. package/es/_shared/icons/IconToTop.vue.js +1 -1
  111. package/es/_shared/icons/IconUpload.vue2.js +1 -1
  112. package/es/_shared/icons/IconWarning.vue.js +1 -1
  113. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  114. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  115. package/lib/Alert/index.vue.js +1 -1
  116. package/lib/Avatar/Avatar.vue.js +1 -1
  117. package/lib/BackTop/index.vue.js +1 -1
  118. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  119. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  120. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  121. package/lib/Calendar/Calendar.vue.js +1 -1
  122. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  123. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  124. package/lib/Cascader/CascaderOption.vue.js +1 -1
  125. package/lib/Checkbox/Checkbox.vue.js +1 -1
  126. package/lib/Collapse/CollapseItem.vue.js +1 -1
  127. package/lib/DatePicker/YcDatePicker.vue.js +1 -1
  128. package/lib/DatePicker/YcMonthPicker.vue.js +1 -1
  129. package/lib/DatePicker/YcWeekPicker.vue.js +1 -1
  130. package/lib/DatePicker/YcYearPicker.vue.js +1 -1
  131. package/lib/DatePicker/component/PickerHeader.vue.js +1 -1
  132. package/lib/DatePicker/component/PickerInput.vue.d.ts +1 -0
  133. package/lib/DatePicker/component/PickerInput.vue.js +1 -1
  134. package/lib/DatePicker/type.d.ts +1 -0
  135. package/lib/Drawer/Drawer.vue.js +1 -1
  136. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  137. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  138. package/lib/Empty/index.vue.js +1 -1
  139. package/lib/Image/Image.vue.js +1 -1
  140. package/lib/Image/ImagePreview.vue.js +1 -1
  141. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  142. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  143. package/lib/Input/Input.vue.js +1 -1
  144. package/lib/Input/InputPassword.vue.js +1 -1
  145. package/lib/Input/InputSearch.vue.js +1 -1
  146. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  147. package/lib/InputTag/index.vue.js +1 -1
  148. package/lib/Layout/LayoutSider.vue.js +1 -1
  149. package/lib/Link/index.vue.js +1 -1
  150. package/lib/Menu/Menu.vue.js +1 -1
  151. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  152. package/lib/Menu/SubMenu.vue.js +1 -1
  153. package/lib/Message/Message.vue.js +1 -1
  154. package/lib/Modal/Modal.vue.js +1 -1
  155. package/lib/Notification/Notification.vue.js +1 -1
  156. package/lib/PageHeader/index.vue.js +1 -1
  157. package/lib/Pagination/PaginationItem.vue.js +1 -1
  158. package/lib/Progress/ProgressCircle.vue.js +1 -1
  159. package/lib/Radio/Radio.vue.js +1 -1
  160. package/lib/Rate/index.vue.js +1 -1
  161. package/lib/ResizeBox/index.vue.js +1 -1
  162. package/lib/Select/SelectIcon.vue.js +1 -1
  163. package/lib/Spin/index.vue.js +1 -1
  164. package/lib/Split/index.vue.js +1 -1
  165. package/lib/Steps/Step.vue.js +1 -1
  166. package/lib/Tabs/TabButton.vue.js +1 -1
  167. package/lib/Tabs/Tabs.vue.js +1 -1
  168. package/lib/Tag/index.vue.js +1 -1
  169. package/lib/Textarea/index.vue.js +1 -1
  170. package/lib/TimePicker/TimePicker.vue.js +1 -1
  171. package/lib/Transfer/Transfer.vue.js +1 -1
  172. package/lib/Transfer/TransferPanel.vue.js +1 -1
  173. package/lib/Trigger/index.vue.js +1 -1
  174. package/lib/Typography/TypographyBase.vue.js +1 -1
  175. package/lib/Upload/UploadButton.vue.js +1 -1
  176. package/lib/Upload/UploadDrag.vue.js +1 -1
  177. package/lib/Upload/UploadFileList.vue.js +1 -1
  178. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  179. package/lib/_shared/components/IconButton/index.vue.js +1 -0
  180. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  181. package/lib/_shared/constants/index.js +1 -1
  182. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  183. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  184. package/lib/_shared/icons/IconCalendar.vue2.js +1 -1
  185. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  186. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  187. package/lib/_shared/icons/IconClose.vue.js +1 -1
  188. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  189. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  190. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  191. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  192. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -1
  193. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  194. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  195. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  196. package/lib/_shared/icons/IconError.vue.js +1 -1
  197. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  198. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  199. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  200. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  201. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  202. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  203. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  204. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  205. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  206. package/lib/_shared/icons/IconLink.vue.js +1 -1
  207. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  208. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  209. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  210. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  211. package/lib/_shared/icons/IconMore.vue.js +1 -1
  212. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  213. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  214. package/lib/_shared/icons/IconRight.vue.js +1 -1
  215. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  216. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  217. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  218. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  219. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  220. package/lib/_shared/icons/IconStar.vue.js +1 -1
  221. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  222. package/lib/_shared/icons/IconTime.vue.js +1 -1
  223. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  224. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  225. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  226. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  227. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  228. package/package.json +1 -1
  229. package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useSlots, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
2
2
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
3
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
4
- /* empty css */
3
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
4
+ /* empty css */
5
5
  import "../node_modules/b-tween/dist/b-tween.es.js";
6
6
  import "../node_modules/dayjs/dayjs.min.js";
7
7
  import "../node_modules/tinycolor2/esm/tinycolor.js";
@@ -6,7 +6,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import { valueToPx } from "../_shared/utils/dom.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$1 from "../_shared/icons/IconImageClose.vue.js";
@@ -7,7 +7,7 @@ import { findFirstScrollableParent, getElement } from "../_shared/utils/dom.js";
7
7
  import { isUndefined } from "../_shared/utils/is.js";
8
8
  import "../_shared/utils/locale.js";
9
9
  import "../_shared/utils/time.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import _sfc_main$1 from "../_shared/icons/IconToTop.vue.js";
@@ -6,7 +6,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../_shared/utils/dom.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import Dropdown from "../Dropdown/index.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$2 from "../_shared/icons/IconMore.vue.js";
@@ -6,10 +6,10 @@ import "../_shared/utils/dom.js";
6
6
  import { isUndefined } from "../_shared/utils/is.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
- import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
12
+ import _sfc_main$1 from "../_shared/icons/IconSeparator.vue.js";
13
13
  const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
14
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  __name: "BreadcrumbSeparator",
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
6
6
  import { useControlValue } from "../_shared/utils/hooks.js";
7
7
  import { useI18n } from "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, resolveComponent, createBlock, createElementBlock, openBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createElementVNode, createCommentVNode, withModifiers } from "vue";
2
2
  import useCascaderContext from "./hooks/useContext.js";
3
3
  import _sfc_main$1 from "../_shared/icons/IconArrowDown.vue.js";
4
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
5
- /* empty css */
4
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
5
+ /* empty css */
6
6
  import "../node_modules/b-tween/dist/b-tween.es.js";
7
7
  import "../node_modules/dayjs/dayjs.min.js";
8
8
  import "../node_modules/tinycolor2/esm/tinycolor.js";
@@ -6,7 +6,7 @@ import { sleep } from "../_shared/utils/dom.js";
6
6
  import { isFunction } from "../_shared/utils/is.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
@@ -8,8 +8,8 @@ import { useControlValue } from "../_shared/utils/hooks.js";
8
8
  import "../_shared/utils/locale.js";
9
9
  import "../_shared/utils/time.js";
10
10
  import useCheckboxContext from "./hooks/useContext.js";
11
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
12
- /* empty css */
11
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import _sfc_main$2 from "../_shared/icons/IconCheckboxChecked.vue.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode, createBlock, createCommentVNode, withCtx, renderSlot, resolveDynamicComponent, createTextVNode, toDisplayString, withDirectives, vShow } from "vue";
2
2
  import useCollapseContext from "./hooks/useContext.js";
3
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
4
- /* empty css */
3
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
4
+ /* empty css */
5
5
  import _sfc_main$3 from "../_shared/components/ExpandTransition/index.vue2.js";
6
6
  /* empty css */
7
7
  import "../node_modules/b-tween/dist/b-tween.es.js";
@@ -228,7 +228,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
228
228
  "is-selected": unref(isSelected)(date, "date"),
229
229
  disabled: (_a = _ctx.disabledDate) == null ? void 0 : _a.call(_ctx, date),
230
230
  onClick: ($event) => unref(handleSelect)(date)
231
- }, null, 8, ["value", "cell-in-view", "is-today", "is-selected", "disabled", "onClick"]);
231
+ }, createSlots({ _: 2 }, [
232
+ $slots.cell ? {
233
+ name: "cell",
234
+ fn: withCtx(() => [
235
+ renderSlot(_ctx.$slots, "cell", { date })
236
+ ]),
237
+ key: "0"
238
+ } : void 0
239
+ ]), 1032, ["value", "cell-in-view", "is-today", "is-selected", "disabled", "onClick"]);
232
240
  }), 128))
233
241
  ]);
234
242
  }), 128))
@@ -253,12 +261,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
253
261
  class: normalizeClass(_ctx.$attrs.class),
254
262
  style: normalizeStyle(_ctx.$attrs.style),
255
263
  type: _ctx.showTime ? "time" : "date"
256
- }, {
264
+ }, createSlots({
257
265
  content: withCtx(() => [
258
266
  createVNode(unref(ReusePanel))
259
267
  ]),
260
- _: 1
261
- }, 8, ["class", "style", "type"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
268
+ _: 2
269
+ }, [
270
+ $slots.default ? {
271
+ name: "trigger",
272
+ fn: withCtx(() => [
273
+ renderSlot(_ctx.$slots, "default")
274
+ ]),
275
+ key: "0"
276
+ } : void 0,
277
+ $slots["suffix-icon"] ? {
278
+ name: "suffix-icon",
279
+ fn: withCtx(() => [
280
+ renderSlot(_ctx.$slots, "suffix-icon")
281
+ ]),
282
+ key: "1"
283
+ } : void 0,
284
+ $slots.prefix ? {
285
+ name: "prefix",
286
+ fn: withCtx(() => [
287
+ renderSlot(_ctx.$slots, "prefix")
288
+ ]),
289
+ key: "2"
290
+ } : void 0
291
+ ]), 1032, ["class", "style", "type"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
262
292
  ], 64);
263
293
  };
264
294
  }
@@ -199,12 +199,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
199
199
  class: normalizeClass(_ctx.$attrs.class),
200
200
  style: normalizeStyle(_ctx.$attrs.style),
201
201
  type: "month"
202
- }, {
202
+ }, createSlots({
203
203
  content: withCtx(() => [
204
204
  createVNode(unref(ReusePanel))
205
205
  ]),
206
- _: 1
207
- }, 8, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
206
+ _: 2
207
+ }, [
208
+ $slots.default ? {
209
+ name: "trigger",
210
+ fn: withCtx(() => [
211
+ renderSlot(_ctx.$slots, "default")
212
+ ]),
213
+ key: "0"
214
+ } : void 0,
215
+ $slots["suffix-icon"] ? {
216
+ name: "suffix-icon",
217
+ fn: withCtx(() => [
218
+ renderSlot(_ctx.$slots, "suffix-icon")
219
+ ]),
220
+ key: "1"
221
+ } : void 0,
222
+ $slots.prefix ? {
223
+ name: "prefix",
224
+ fn: withCtx(() => [
225
+ renderSlot(_ctx.$slots, "prefix")
226
+ ]),
227
+ key: "2"
228
+ } : void 0
229
+ ]), 1032, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
208
230
  ], 64);
209
231
  };
210
232
  }
@@ -225,7 +225,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
225
225
  "yc-week-picker-cell-first": !i,
226
226
  "yc-week-picker-cell-last": i == time.length - 1
227
227
  })
228
- }, null, 8, ["value", "cell-in-view", "is-today", "class"]);
228
+ }, createSlots({ _: 2 }, [
229
+ $slots.cell ? {
230
+ name: "cell",
231
+ fn: withCtx(() => [
232
+ renderSlot(_ctx.$slots, "cell", { date })
233
+ ]),
234
+ key: "0"
235
+ } : void 0
236
+ ]), 1032, ["value", "cell-in-view", "is-today", "class"]);
229
237
  }), 128))
230
238
  ], 10, _hoisted_3);
231
239
  }), 128))
@@ -250,12 +258,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
250
258
  class: normalizeClass(_ctx.$attrs.class),
251
259
  style: normalizeStyle(_ctx.$attrs.style),
252
260
  type: "week"
253
- }, {
261
+ }, createSlots({
254
262
  content: withCtx(() => [
255
263
  createVNode(unref(ReusePanel))
256
264
  ]),
257
- _: 1
258
- }, 8, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
265
+ _: 2
266
+ }, [
267
+ $slots.default ? {
268
+ name: "trigger",
269
+ fn: withCtx(() => [
270
+ renderSlot(_ctx.$slots, "default")
271
+ ]),
272
+ key: "0"
273
+ } : void 0,
274
+ $slots["suffix-icon"] ? {
275
+ name: "suffix-icon",
276
+ fn: withCtx(() => [
277
+ renderSlot(_ctx.$slots, "suffix-icon")
278
+ ]),
279
+ key: "1"
280
+ } : void 0,
281
+ $slots.prefix ? {
282
+ name: "prefix",
283
+ fn: withCtx(() => [
284
+ renderSlot(_ctx.$slots, "prefix")
285
+ ]),
286
+ key: "2"
287
+ } : void 0
288
+ ]), 1032, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
259
289
  ], 64);
260
290
  };
261
291
  }
@@ -176,12 +176,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
176
  class: normalizeClass(_ctx.$attrs.class),
177
177
  style: normalizeStyle(_ctx.$attrs.style),
178
178
  type: "year"
179
- }, {
179
+ }, createSlots({
180
180
  content: withCtx(() => [
181
181
  createVNode(unref(ReusePanel))
182
182
  ]),
183
- _: 1
184
- }, 8, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
183
+ _: 2
184
+ }, [
185
+ $slots.default ? {
186
+ name: "trigger",
187
+ fn: withCtx(() => [
188
+ renderSlot(_ctx.$slots, "default")
189
+ ]),
190
+ key: "0"
191
+ } : void 0,
192
+ $slots["suffix-icon"] ? {
193
+ name: "suffix-icon",
194
+ fn: withCtx(() => [
195
+ renderSlot(_ctx.$slots, "suffix-icon")
196
+ ]),
197
+ key: "1"
198
+ } : void 0,
199
+ $slots.prefix ? {
200
+ name: "prefix",
201
+ fn: withCtx(() => [
202
+ renderSlot(_ctx.$slots, "prefix")
203
+ ]),
204
+ key: "2"
205
+ } : void 0
206
+ ]), 1032, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
185
207
  ], 64);
186
208
  };
187
209
  }
@@ -6,7 +6,7 @@ import "../../_shared/utils/dom.js";
6
6
  import { isUndefined } from "../../_shared/utils/is.js";
7
7
  import "../../_shared/utils/locale.js";
8
8
  import "../../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$2 from "../../_shared/icons/IconArrowRight.vue.js";
@@ -5,6 +5,7 @@ type __VLS_Props = {
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
+ trigger?(_: {}): any;
8
9
  prefix?(_: {}): any;
9
10
  'suffix-icon'?(_: {}): any;
10
11
  content?(_: {}): any;
@@ -1,6 +1,6 @@
1
- import { defineComponent, toRefs, computed, ref, watch, nextTick, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode, normalizeClass, normalizeStyle, createSlots, createElementVNode, createCommentVNode, renderSlot, withModifiers } from "vue";
2
- import _sfc_main$2 from "../../_shared/components/IconButton/index.vue2.js";
3
- /* empty css */
1
+ import { defineComponent, toRefs, computed, ref, watch, nextTick, createBlock, openBlock, unref, mergeProps, isRef, withCtx, renderSlot, createVNode, normalizeClass, normalizeStyle, createSlots, createElementVNode, createCommentVNode, withModifiers } from "vue";
2
+ import _sfc_main$2 from "../../_shared/components/IconButton/index.vue.js";
3
+ /* empty css */
4
4
  import "../../node_modules/b-tween/dist/b-tween.es.js";
5
5
  import "../../node_modules/dayjs/dayjs.min.js";
6
6
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
@@ -72,44 +72,46 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  renderSlot(_ctx.$slots, "content")
73
73
  ]),
74
74
  default: withCtx(() => [
75
- createVNode(unref(Input), {
76
- "model-value": unref(formatValue),
77
- placeholder: placeholder.value,
78
- disabled: unref(disabled),
79
- error: unref(error),
80
- size: unref(size),
81
- readonly: unref(readonly) || unref(disabledInput) || true,
82
- style: normalizeStyle(_ctx.$attrs.style),
83
- class: normalizeClass([
84
- _ctx.$attrs.class,
85
- {
86
- "yc-picker-allow-clear": unref(showClearBtn)
87
- }
88
- ]),
89
- ref_key: "inputRef",
90
- ref: inputRef
91
- }, createSlots({
92
- suffix: withCtx(() => [
93
- createElementVNode("div", _hoisted_1, [
94
- renderSlot(_ctx.$slots, "suffix-icon", {}, () => [
95
- createVNode(unref(_sfc_main$1))
96
- ])
75
+ renderSlot(_ctx.$slots, "trigger", {}, () => [
76
+ createVNode(unref(Input), {
77
+ "model-value": unref(formatValue),
78
+ placeholder: placeholder.value,
79
+ disabled: unref(disabled),
80
+ error: unref(error),
81
+ size: unref(size),
82
+ readonly: unref(readonly) || unref(disabledInput) || true,
83
+ style: normalizeStyle(_ctx.$attrs.style),
84
+ class: normalizeClass([
85
+ _ctx.$attrs.class,
86
+ {
87
+ "yc-picker-allow-clear": unref(showClearBtn)
88
+ }
97
89
  ]),
98
- unref(showClearBtn) ? (openBlock(), createBlock(unref(_sfc_main$2), {
99
- key: 0,
100
- onClick: withModifiers(unref(onClear), ["stop"])
101
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
102
- ]),
103
- _: 2
104
- }, [
105
- _ctx.$slots.prefix ? {
106
- name: "prefix",
107
- fn: withCtx(() => [
108
- renderSlot(_ctx.$slots, "prefix")
90
+ ref_key: "inputRef",
91
+ ref: inputRef
92
+ }, createSlots({
93
+ suffix: withCtx(() => [
94
+ createElementVNode("div", _hoisted_1, [
95
+ renderSlot(_ctx.$slots, "suffix-icon", {}, () => [
96
+ createVNode(unref(_sfc_main$1))
97
+ ])
98
+ ]),
99
+ unref(showClearBtn) ? (openBlock(), createBlock(unref(_sfc_main$2), {
100
+ key: 0,
101
+ onClick: withModifiers(unref(onClear), ["stop"])
102
+ }, null, 8, ["onClick"])) : createCommentVNode("", true)
109
103
  ]),
110
- key: "0"
111
- } : void 0
112
- ]), 1032, ["model-value", "placeholder", "disabled", "error", "size", "readonly", "style", "class"])
104
+ _: 2
105
+ }, [
106
+ _ctx.$slots.prefix ? {
107
+ name: "prefix",
108
+ fn: withCtx(() => [
109
+ renderSlot(_ctx.$slots, "prefix")
110
+ ]),
111
+ key: "0"
112
+ } : void 0
113
+ ]), 1032, ["model-value", "placeholder", "disabled", "error", "size", "readonly", "style", "class"])
114
+ ])
113
115
  ]),
114
116
  _: 3
115
117
  }, 16, ["popup-visible", "popup-container", "unmount-on-close", "disabled", "position"]);
@@ -52,6 +52,7 @@ export interface BasePickerSlots {
52
52
  date: Date;
53
53
  }) => VNode[];
54
54
  extra?: () => VNode[];
55
+ default?: () => VNode[];
55
56
  }
56
57
  export interface YearPickerProps extends BasePickerProps {
57
58
  modelValue?: DatePickerValue;
@@ -8,8 +8,8 @@ import { useI18n } from "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
9
  import useModalClose from "../Modal/hooks/useModalClose.js";
10
10
  import Button from "../Button/index.js";
11
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
12
- /* empty css */
11
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  const _hoisted_1 = { class: "yc-drawer-header" };
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$3 from "../_shared/icons/IconMore.vue.js";
@@ -8,7 +8,7 @@ import { isBoolean, isUndefined } from "../_shared/utils/is.js";
8
8
  import { useControlValue } from "../_shared/utils/hooks.js";
9
9
  import "../_shared/utils/locale.js";
10
10
  import "../_shared/utils/time.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import { useI18n } from "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconEmpty.vue.js";
@@ -6,7 +6,7 @@ import { valueToPx } from "../_shared/utils/dom.js";
6
6
  import { useControlValue } from "../_shared/utils/hooks.js";
7
7
  import { useI18n } from "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$2 from "../_shared/icons/IconImageClose.vue.js";
@@ -8,7 +8,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
8
8
  import { useControlValue } from "../_shared/utils/hooks.js";
9
9
  import "../_shared/utils/locale.js";
10
10
  import "../_shared/utils/time.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import _sfc_main$2 from "../_shared/icons/IconClose.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import { useI18n } from "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$6 from "../_shared/icons/IconFullScreen.vue2.js";
@@ -7,8 +7,8 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
9
  import useLimitedInput from "./hooks/useLimitedInput.js";
10
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
11
- /* empty css */
10
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
11
+ /* empty css */
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
13
13
  /* empty css */
14
14
  /* empty css */
@@ -6,8 +6,8 @@ import { sleep } from "../_shared/utils/dom.js";
6
6
  import { useControlValue } from "../_shared/utils/hooks.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createVNode, unref, createTextVNode, toDisplayString } from "vue";
2
- import _sfc_main$3 from "../_shared/components/IconButton/index.vue2.js";
3
- /* empty css */
2
+ import _sfc_main$3 from "../_shared/components/IconButton/index.vue.js";
3
+ /* empty css */
4
4
  import "../node_modules/b-tween/dist/b-tween.es.js";
5
5
  import "../node_modules/dayjs/dayjs.min.js";
6
6
  import "../node_modules/tinycolor2/esm/tinycolor.js";
@@ -6,7 +6,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../_shared/utils/dom.js";
7
7
  import "../_shared/utils/locale.js";
8
8
  import "../_shared/utils/time.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$2 from "../_shared/icons/IconMinus.vue2.js";
@@ -11,8 +11,8 @@ import { isObject, isBoolean } from "../_shared/utils/is.js";
11
11
  import "../_shared/utils/locale.js";
12
12
  import "../_shared/utils/time.js";
13
13
  import Tag from "../Tag/index.js";
14
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
15
- /* empty css */
14
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
15
+ /* empty css */
16
16
  import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
17
17
  /* empty css */
18
18
  /* empty css */
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import { mediaQueryHandler, valueToPx } from "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconLink.vue.js";
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import { mediaQueryHandler } from "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/locale.js";
7
7
  import "../_shared/utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$2 from "../_shared/icons/IconMenuFold.vue.js";