yc-design-vue 2.2.9 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Alert/index.vue.js +2 -2
  4. package/es/Avatar/Avatar.vue.js +1 -1
  5. package/es/BackTop/index.vue.js +1 -1
  6. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  7. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  8. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  9. package/es/Calendar/Calendar.vue.js +2 -2
  10. package/es/Carousel/CarouselArrow.vue.js +1 -1
  11. package/es/Cascader/CascaderIcon.vue.js +2 -2
  12. package/es/Cascader/CascaderOption.vue.js +1 -1
  13. package/es/Checkbox/Checkbox.vue.js +2 -2
  14. package/es/Collapse/CollapseItem.vue.js +2 -2
  15. package/es/DatePicker/DatePicker.vue.d.ts +408 -3
  16. package/es/DatePicker/DatePicker.vue.js +27 -5
  17. package/es/DatePicker/MonthPicker.vue.d.ts +1 -1
  18. package/es/DatePicker/MonthPicker.vue.js +2 -2
  19. package/es/DatePicker/WeekPicker.vue.d.ts +1 -1
  20. package/es/DatePicker/WeekPicker.vue.js +2 -2
  21. package/es/DatePicker/YearPicker.vue.js +2 -2
  22. package/es/DatePicker/component/{PickerInput.vue.js → Picker.vue.js} +5 -4
  23. package/es/DatePicker/component/Picker.vue3.js +5 -0
  24. package/es/DatePicker/component/PickerHeader.vue.js +1 -1
  25. package/es/DatePicker/hooks/userPicker.d.ts +1 -0
  26. package/es/DatePicker/hooks/userPicker.js +4 -2
  27. package/es/DatePicker/index.css +1 -1
  28. package/es/DatePicker/index.d.ts +206 -4
  29. package/es/Drawer/Drawer.vue.js +2 -2
  30. package/es/Dropdown/DropdownButton.vue.js +1 -1
  31. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  32. package/es/Empty/index.vue.js +1 -1
  33. package/es/Image/Image.vue.js +1 -1
  34. package/es/Image/ImagePreview.vue.js +1 -1
  35. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  36. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  37. package/es/Input/Input.vue.js +2 -2
  38. package/es/Input/InputPassword.vue.js +2 -2
  39. package/es/Input/InputSearch.vue.js +2 -2
  40. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  41. package/es/InputTag/index.vue.js +2 -2
  42. package/es/Layout/LayoutSider.vue.js +1 -1
  43. package/es/Link/index.vue.js +1 -1
  44. package/es/Menu/Menu.vue.js +1 -1
  45. package/es/Menu/MenuEllipsis.vue.js +1 -1
  46. package/es/Menu/SubMenu.vue.js +1 -1
  47. package/es/Message/Message.vue.js +2 -2
  48. package/es/Modal/Modal.vue.js +2 -2
  49. package/es/Notification/Notification.vue.js +2 -2
  50. package/es/PageHeader/index.vue.js +2 -2
  51. package/es/Pagination/PaginationItem.vue.js +1 -1
  52. package/es/Progress/ProgressCircle.vue.js +1 -1
  53. package/es/Radio/Radio.vue.js +2 -2
  54. package/es/Rate/index.vue.js +1 -1
  55. package/es/ResizeBox/index.vue.js +1 -1
  56. package/es/Select/SelectIcon.vue.js +2 -2
  57. package/es/Spin/index.vue.js +1 -1
  58. package/es/Split/index.vue.js +1 -1
  59. package/es/Steps/Step.vue.js +1 -1
  60. package/es/Tabs/TabButton.vue.js +2 -2
  61. package/es/Tabs/Tabs.vue.js +1 -1
  62. package/es/Tag/index.vue.js +2 -2
  63. package/es/Textarea/index.vue.js +2 -2
  64. package/es/TimePicker/TimePicker.vue.d.ts +104 -3
  65. package/es/TimePicker/TimePicker.vue.js +24 -9
  66. package/es/TimePicker/TimePickerPanel.vue.d.ts +4 -1
  67. package/es/TimePicker/TimePickerPanel.vue.js +37 -41
  68. package/es/TimePicker/hooks/useContext.d.ts +2 -0
  69. package/es/TimePicker/hooks/useContext.js +3 -0
  70. package/es/TimePicker/index.d.ts +61 -4
  71. package/es/TimePicker/type.d.ts +1 -0
  72. package/es/Transfer/Transfer.vue.js +1 -1
  73. package/es/Transfer/TransferPanel.vue.js +2 -2
  74. package/es/Trigger/index.vue.js +1 -1
  75. package/es/Typography/TypographyBase.vue.js +1 -1
  76. package/es/Upload/UploadButton.vue.js +1 -1
  77. package/es/Upload/UploadDrag.vue.js +1 -1
  78. package/es/Upload/UploadFileList.vue.js +2 -2
  79. package/es/Upload/UploadPictureCard.vue.js +1 -1
  80. package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -1
  81. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  82. package/es/_shared/constants/index.js +1 -1
  83. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  84. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  85. package/es/_shared/icons/IconCalendar.vue2.js +1 -1
  86. package/es/_shared/icons/IconCheck.vue.js +1 -1
  87. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  88. package/es/_shared/icons/IconClose.vue.js +1 -1
  89. package/es/_shared/icons/IconCopy.vue.js +1 -1
  90. package/es/_shared/icons/IconDelete.vue2.js +1 -1
  91. package/es/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  92. package/es/_shared/icons/IconDoubleRight.vue2.js +1 -1
  93. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  94. package/es/_shared/icons/IconEdit.vue.js +1 -1
  95. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  96. package/es/_shared/icons/IconError.vue.js +1 -1
  97. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  98. package/es/_shared/icons/IconEyeClose.vue.js +1 -1
  99. package/es/_shared/icons/IconEyeOpen.vue.js +1 -1
  100. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  101. package/es/_shared/icons/IconFile.vue2.js +1 -1
  102. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  103. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  104. package/es/_shared/icons/IconInfo.vue.js +1 -1
  105. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  106. package/es/_shared/icons/IconLink.vue.js +1 -1
  107. package/es/_shared/icons/IconLoading.vue.js +1 -1
  108. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  109. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  110. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  111. package/es/_shared/icons/IconMore.vue.js +1 -1
  112. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  113. package/es/_shared/icons/IconPlus.vue.js +1 -1
  114. package/es/_shared/icons/IconRight.vue.js +1 -1
  115. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  116. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  117. package/es/_shared/icons/IconSearch.vue.js +1 -1
  118. package/es/_shared/icons/IconSeparator.vue2.js +1 -1
  119. package/es/_shared/icons/IconStar.vue.js +1 -1
  120. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  121. package/es/_shared/icons/IconTime.vue.js +1 -1
  122. package/es/_shared/icons/IconToTop.vue.js +1 -1
  123. package/es/_shared/icons/IconUpload.vue2.js +1 -1
  124. package/es/_shared/icons/IconWarning.vue.js +1 -1
  125. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  126. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  127. package/es/index.d.ts +3 -3
  128. package/es/style.css +1 -1
  129. package/lib/Alert/index.vue.js +1 -1
  130. package/lib/Avatar/Avatar.vue.js +1 -1
  131. package/lib/BackTop/index.vue.js +1 -1
  132. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  133. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  134. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  135. package/lib/Calendar/Calendar.vue.js +1 -1
  136. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  137. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  138. package/lib/Cascader/CascaderOption.vue.js +1 -1
  139. package/lib/Checkbox/Checkbox.vue.js +1 -1
  140. package/lib/Collapse/CollapseItem.vue.js +1 -1
  141. package/lib/DatePicker/DatePicker.vue.d.ts +408 -3
  142. package/lib/DatePicker/DatePicker.vue.js +1 -1
  143. package/lib/DatePicker/MonthPicker.vue.d.ts +1 -1
  144. package/lib/DatePicker/MonthPicker.vue.js +1 -1
  145. package/lib/DatePicker/WeekPicker.vue.d.ts +1 -1
  146. package/lib/DatePicker/WeekPicker.vue.js +1 -1
  147. package/lib/DatePicker/YearPicker.vue.js +1 -1
  148. package/lib/DatePicker/component/Picker.vue.js +1 -0
  149. package/lib/DatePicker/component/{PickerInput.vue3.js → Picker.vue3.js} +1 -1
  150. package/lib/DatePicker/component/PickerHeader.vue.js +1 -1
  151. package/lib/DatePicker/hooks/userPicker.d.ts +1 -0
  152. package/lib/DatePicker/hooks/userPicker.js +1 -1
  153. package/lib/DatePicker/index.css +1 -1
  154. package/lib/DatePicker/index.d.ts +206 -4
  155. package/lib/Drawer/Drawer.vue.js +1 -1
  156. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  157. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  158. package/lib/Empty/index.vue.js +1 -1
  159. package/lib/Image/Image.vue.js +1 -1
  160. package/lib/Image/ImagePreview.vue.js +1 -1
  161. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  162. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  163. package/lib/Input/Input.vue.js +1 -1
  164. package/lib/Input/InputPassword.vue.js +1 -1
  165. package/lib/Input/InputSearch.vue.js +1 -1
  166. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  167. package/lib/InputTag/index.vue.js +1 -1
  168. package/lib/Layout/LayoutSider.vue.js +1 -1
  169. package/lib/Link/index.vue.js +1 -1
  170. package/lib/Menu/Menu.vue.js +1 -1
  171. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  172. package/lib/Menu/SubMenu.vue.js +1 -1
  173. package/lib/Message/Message.vue.js +1 -1
  174. package/lib/Modal/Modal.vue.js +1 -1
  175. package/lib/Notification/Notification.vue.js +1 -1
  176. package/lib/PageHeader/index.vue.js +1 -1
  177. package/lib/Pagination/PaginationItem.vue.js +1 -1
  178. package/lib/Progress/ProgressCircle.vue.js +1 -1
  179. package/lib/Radio/Radio.vue.js +1 -1
  180. package/lib/Rate/index.vue.js +1 -1
  181. package/lib/ResizeBox/index.vue.js +1 -1
  182. package/lib/Select/SelectIcon.vue.js +1 -1
  183. package/lib/Spin/index.vue.js +1 -1
  184. package/lib/Split/index.vue.js +1 -1
  185. package/lib/Steps/Step.vue.js +1 -1
  186. package/lib/Tabs/TabButton.vue.js +1 -1
  187. package/lib/Tabs/Tabs.vue.js +1 -1
  188. package/lib/Tag/index.vue.js +1 -1
  189. package/lib/Textarea/index.vue.js +1 -1
  190. package/lib/TimePicker/TimePicker.vue.d.ts +104 -3
  191. package/lib/TimePicker/TimePicker.vue.js +1 -1
  192. package/lib/TimePicker/TimePickerPanel.vue.d.ts +4 -1
  193. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  194. package/lib/TimePicker/hooks/useContext.d.ts +2 -0
  195. package/lib/TimePicker/hooks/useContext.js +1 -1
  196. package/lib/TimePicker/index.d.ts +61 -4
  197. package/lib/TimePicker/type.d.ts +1 -0
  198. package/lib/Transfer/Transfer.vue.js +1 -1
  199. package/lib/Transfer/TransferPanel.vue.js +1 -1
  200. package/lib/Trigger/index.vue.js +1 -1
  201. package/lib/Typography/TypographyBase.vue.js +1 -1
  202. package/lib/Upload/UploadButton.vue.js +1 -1
  203. package/lib/Upload/UploadDrag.vue.js +1 -1
  204. package/lib/Upload/UploadFileList.vue.js +1 -1
  205. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  206. package/lib/_shared/components/IconButton/index.vue2.js +1 -0
  207. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  208. package/lib/_shared/constants/index.js +1 -1
  209. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  210. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  211. package/lib/_shared/icons/IconCalendar.vue2.js +1 -1
  212. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  213. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  214. package/lib/_shared/icons/IconClose.vue.js +1 -1
  215. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  216. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  217. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  218. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -1
  219. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  220. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  221. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  222. package/lib/_shared/icons/IconError.vue.js +1 -1
  223. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  224. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  225. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  226. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  227. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  228. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  229. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  230. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  231. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  232. package/lib/_shared/icons/IconLink.vue.js +1 -1
  233. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  234. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  235. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  236. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  237. package/lib/_shared/icons/IconMore.vue.js +1 -1
  238. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  239. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  240. package/lib/_shared/icons/IconRight.vue.js +1 -1
  241. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  242. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  243. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  244. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  245. package/lib/_shared/icons/IconStar.vue.js +1 -1
  246. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  247. package/lib/_shared/icons/IconTime.vue.js +1 -1
  248. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  249. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  250. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  251. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  252. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  253. package/lib/index.d.ts +3 -3
  254. package/lib/style.css +1 -1
  255. package/package.json +1 -1
  256. package/es/DatePicker/component/PickerInput.vue3.js +0 -5
  257. package/lib/DatePicker/component/PickerInput.vue.js +0 -1
  258. package/lib/_shared/components/IconButton/index.vue.js +0 -1
  259. /package/es/DatePicker/component/{PickerInput.vue.d.ts → Picker.vue.d.ts} +0 -0
  260. /package/lib/DatePicker/component/{PickerInput.vue.d.ts → Picker.vue.d.ts} +0 -0
@@ -23,7 +23,7 @@ const _hoisted_6 = {
23
23
  };
24
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  __name: "TimePickerPanel",
26
- setup(__props) {
26
+ setup(__props, { expose: __expose }) {
27
27
  const {
28
28
  timeColumn,
29
29
  timeColumnCells,
@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  hideTrigger,
39
39
  scrollbar,
40
40
  scrollOffset,
41
+ watchValueChange,
41
42
  disabledHours,
42
43
  disabledMinutes,
43
44
  disabledSeconds
@@ -59,32 +60,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
60
  }
60
61
  };
61
62
  const handleClick = (val, i, cell) => {
62
- return new Promise((resolve) => {
63
- curValue.value[i] = val;
64
- timeColumn.value.forEach((_, i1) => {
65
- curValue.value[i1] = isUndefined(curValue.value[i1]) ? 0 : curValue.value[i1];
66
- });
67
- const container = scrollContainer.value[i];
68
- if (container && cell) {
69
- new Tween({
70
- from: { scroll: container.scrollTop },
71
- to: { scroll: cell.offsetTop },
72
- duration: 300,
73
- easing: "quadOut",
74
- onUpdate: (current) => {
75
- container.scrollTop = current.scroll - scrollOffset.value;
76
- },
77
- onFinish: () => {
78
- resolve("");
79
- }
80
- }).start();
81
- }
82
- if (disableConfirm.value) {
83
- handleConfirm();
84
- }
63
+ curValue.value[i] = val;
64
+ timeColumn.value.forEach((_, i1) => {
65
+ curValue.value[i1] = isUndefined(curValue.value[i1]) ? 0 : curValue.value[i1];
85
66
  });
67
+ const container = scrollContainer.value[i];
68
+ if (container && cell) {
69
+ new Tween({
70
+ from: { scroll: container.scrollTop },
71
+ to: { scroll: cell.offsetTop },
72
+ duration: 300,
73
+ easing: "quadOut",
74
+ onUpdate: (current) => {
75
+ container.scrollTop = current.scroll - scrollOffset.value;
76
+ }
77
+ }).start();
78
+ }
79
+ if (disableConfirm.value) {
80
+ handleConfirm();
81
+ }
86
82
  };
87
83
  const hanldeJump = async (newDate, oldDate) => {
84
+ await sleep(0);
88
85
  const newTimeMap = {
89
86
  hour: newDate.hour(),
90
87
  minute: newDate.minute(),
@@ -95,15 +92,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
92
  minute: oldDate == null ? void 0 : oldDate.minute(),
96
93
  second: oldDate == null ? void 0 : oldDate.second()
97
94
  };
98
- console.log(newTimeMap, oldTimeMap);
99
- for (let i = 0; i < timeColumn.value.length; i++) {
100
- const time = newTimeMap[timeColumn.value[i]];
101
- if (oldTimeMap) {
102
- const oldTime = oldTimeMap[timeColumn.value[i]];
103
- if (oldTime == time) continue;
104
- }
105
- await handleClick(time, i, cells.value[i][time]);
106
- }
95
+ timeColumn.value.forEach((v, i) => {
96
+ const time = newTimeMap[v];
97
+ const oldTime = oldTimeMap ? oldTimeMap[timeColumn.value[i]] : -1;
98
+ if (oldTime == time) return;
99
+ handleClick(time, i, cells.value[i][time]);
100
+ });
107
101
  };
108
102
  const handleConfirm = () => {
109
103
  var _a;
@@ -139,13 +133,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
139
133
  };
140
134
  watch(
141
135
  () => computedValue.value,
142
- async (newVal, oldVal) => {
143
- await sleep(0);
136
+ (newVal, oldVal) => {
144
137
  if (!newVal) return curValue.value = [];
145
- if (!hideTrigger.value) return;
146
- const oldDate = dayjs(oldVal, format.value);
147
- const newDate = dayjs(newVal, format.value);
148
- hanldeJump(newDate, oldDate);
138
+ if (!hideTrigger.value || !watchValueChange.value) return;
139
+ hanldeJump(
140
+ dayjs(newVal, format.value),
141
+ dayjs(oldVal, format.value)
142
+ );
149
143
  },
150
144
  {
151
145
  immediate: true
@@ -153,17 +147,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
153
147
  );
154
148
  watch(
155
149
  () => computedVisible.value,
156
- async (visible) => {
150
+ (visible) => {
157
151
  const value = isArray(computedValue.value) ? computedValue.value[curIndex.value] : computedValue.value;
158
152
  if (!value) return curValue.value = [];
159
153
  if (!visible) return;
160
- await sleep(0);
161
154
  hanldeJump(dayjs(value, format.value));
162
155
  },
163
156
  {
164
157
  immediate: true
165
158
  }
166
159
  );
160
+ __expose({
161
+ jump: hanldeJump
162
+ });
167
163
  return (_ctx, _cache) => {
168
164
  return openBlock(), createElementBlock("div", _hoisted_1, [
169
165
  createElementVNode("div", _hoisted_2, [
@@ -19,6 +19,7 @@ type TimePickerContext = {
19
19
  scrollOffset: Ref<number>;
20
20
  hideDisabledOptions: Ref<boolean>;
21
21
  hideTrigger: Ref<boolean>;
22
+ watchValueChange: Ref<boolean>;
22
23
  disabledHours: DisabledHours;
23
24
  disabledMinutes: DisabledMinutes;
24
25
  disabledSeconds: DisabledSeconds;
@@ -50,6 +51,7 @@ export default function useTimePickerContext(): {
50
51
  scrollOffset: Ref<number>;
51
52
  hideDisabledOptions: Ref<boolean>;
52
53
  hideTrigger: Ref<boolean>;
54
+ watchValueChange: Ref<boolean>;
53
55
  disabledHours: DisabledHours;
54
56
  disabledMinutes: DisabledMinutes;
55
57
  disabledSeconds: DisabledSeconds;
@@ -26,6 +26,7 @@ function useTimePickerContext() {
26
26
  scrollbar,
27
27
  scrollOffset,
28
28
  hideTrigger,
29
+ watchValueChange,
29
30
  placeholder: _placeholder
30
31
  } = toRefs(props);
31
32
  const { disabledHours, disabledMinutes, disabledSeconds } = props;
@@ -100,6 +101,7 @@ function useTimePickerContext() {
100
101
  hideTrigger,
101
102
  scrollOffset,
102
103
  disableConfirm,
104
+ watchValueChange,
103
105
  hideDisabledOptions,
104
106
  disabledHours,
105
107
  disabledMinutes,
@@ -129,6 +131,7 @@ function useTimePickerContext() {
129
131
  scrollbar: ref(true),
130
132
  hideTrigger: ref(false),
131
133
  scrollOffset: ref(4),
134
+ watchValueChange: ref(true),
132
135
  hideDisabledOptions: ref(false),
133
136
  disabledHours: () => [],
134
137
  disabledMinutes: () => [],
@@ -10,7 +10,9 @@ declare const TimePicker: {
10
10
  onClear?: (() => any) | undefined;
11
11
  onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
12
12
  "onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ }>, {
14
+ jump(date: import('dayjs').Dayjs, oldDate?: import('dayjs').Dayjs): void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
16
  change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
15
17
  "update:popupVisible": (value: boolean) => any;
16
18
  "popup-visible-change": (value: boolean) => any;
@@ -38,10 +40,59 @@ declare const TimePicker: {
38
40
  hideDisabledOptions: boolean;
39
41
  scrollOffset: number;
40
42
  hideTrigger: boolean;
43
+ watchValueChange: boolean;
41
44
  disabledHours: import('./type').DisabledHours;
42
45
  disabledMinutes: import('./type').DisabledMinutes;
43
46
  disabledSeconds: import('./type').DisabledSeconds;
44
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
47
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
48
+ panelRef: ({
49
+ $: import('vue').ComponentInternalInstance;
50
+ $data: {};
51
+ $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
52
+ $attrs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $refs: {
56
+ [x: string]: unknown;
57
+ };
58
+ $slots: Readonly<{
59
+ [name: string]: import('vue').Slot<any> | undefined;
60
+ }>;
61
+ $root: import('vue').ComponentPublicInstance | null;
62
+ $parent: import('vue').ComponentPublicInstance | null;
63
+ $host: Element | null;
64
+ $emit: (event: string, ...args: any[]) => void;
65
+ $el: HTMLDivElement;
66
+ $options: import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
67
+ jump: (newDate: import('dayjs').Dayjs, oldDate?: import('dayjs').Dayjs) => Promise<void>;
68
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
69
+ beforeCreate?: (() => void) | (() => void)[];
70
+ created?: (() => void) | (() => void)[];
71
+ beforeMount?: (() => void) | (() => void)[];
72
+ mounted?: (() => void) | (() => void)[];
73
+ beforeUpdate?: (() => void) | (() => void)[];
74
+ updated?: (() => void) | (() => void)[];
75
+ activated?: (() => void) | (() => void)[];
76
+ deactivated?: (() => void) | (() => void)[];
77
+ beforeDestroy?: (() => void) | (() => void)[];
78
+ beforeUnmount?: (() => void) | (() => void)[];
79
+ destroyed?: (() => void) | (() => void)[];
80
+ unmounted?: (() => void) | (() => void)[];
81
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
82
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
83
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
84
+ };
85
+ $forceUpdate: () => void;
86
+ $nextTick: typeof import('vue').nextTick;
87
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
88
+ } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "jump"> & import('vue').ShallowUnwrapRef<{
89
+ jump: (newDate: import('dayjs').Dayjs, oldDate?: import('dayjs').Dayjs) => Promise<void>;
90
+ }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
91
+ $slots: {
92
+ extra?(_: {}): any;
93
+ };
94
+ }) | null;
95
+ }, any, import('vue').ComponentProvideOptions, {
45
96
  P: {};
46
97
  B: {};
47
98
  D: {};
@@ -55,7 +106,9 @@ declare const TimePicker: {
55
106
  onClear?: (() => any) | undefined;
56
107
  onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
57
108
  "onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
58
- }>, {}, {}, {}, {}, {
109
+ }>, {
110
+ jump(date: import('dayjs').Dayjs, oldDate?: import('dayjs').Dayjs): void;
111
+ }, {}, {}, {}, {
59
112
  error: boolean;
60
113
  size: import('..').Size;
61
114
  popupVisible: boolean;
@@ -76,6 +129,7 @@ declare const TimePicker: {
76
129
  hideDisabledOptions: boolean;
77
130
  scrollOffset: number;
78
131
  hideTrigger: boolean;
132
+ watchValueChange: boolean;
79
133
  disabledHours: import('./type').DisabledHours;
80
134
  disabledMinutes: import('./type').DisabledMinutes;
81
135
  disabledSeconds: import('./type').DisabledSeconds;
@@ -90,7 +144,9 @@ declare const TimePicker: {
90
144
  onClear?: (() => any) | undefined;
91
145
  onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
92
146
  "onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
93
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
147
+ }>, {
148
+ jump(date: import('dayjs').Dayjs, oldDate?: import('dayjs').Dayjs): void;
149
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
94
150
  change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
95
151
  "update:popupVisible": (value: boolean) => any;
96
152
  "popup-visible-change": (value: boolean) => any;
@@ -118,6 +174,7 @@ declare const TimePicker: {
118
174
  hideDisabledOptions: boolean;
119
175
  scrollOffset: number;
120
176
  hideTrigger: boolean;
177
+ watchValueChange: boolean;
121
178
  disabledHours: import('./type').DisabledHours;
122
179
  disabledMinutes: import('./type').DisabledMinutes;
123
180
  disabledSeconds: import('./type').DisabledSeconds;
@@ -31,6 +31,7 @@ export interface TimePickerProps {
31
31
  hideTrigger?: boolean;
32
32
  scrollbar?: boolean;
33
33
  scrollOffset?: number;
34
+ watchValueChange?: boolean;
34
35
  }
35
36
  export interface TimePickerEmits {
36
37
  (e: 'update:modelValue', value: TimePickerValue): void;
@@ -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/IconArrowRight.vue.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, renderSlot, unref, normalizeProps, guardReactiveProps, createBlock, withCtx, createTextVNode, toDisplayString, Fragment, createVNode, mergeProps, renderList, normalizeClass } from "vue";
2
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
3
- /* empty css */
2
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.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";
@@ -9,7 +9,7 @@ import "../_shared/utils/time.js";
9
9
  import { findFirstLegitChild } from "../_shared/utils/vue-utils.js";
10
10
  import useTriggerVisible from "./hooks/useTriggerVisible.js";
11
11
  import useTriggerPosition from "./hooks/useTriggerPosition.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
14
14
  /* empty css */
15
15
  /* empty css */
@@ -7,7 +7,7 @@ import { innerText, sleep } from "../_shared/utils/dom.js";
7
7
  import { useControlValue } from "../_shared/utils/hooks.js";
8
8
  import { useI18n } from "../_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$3 from "../_shared/icons/IconCopy.vue.js";
@@ -6,7 +6,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../_shared/utils/dom.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$1 from "../_shared/icons/IconUpload.vue2.js";
@@ -6,7 +6,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../_shared/utils/dom.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$1 from "../_shared/icons/IconPlus.vue.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, renderSlot, createCommentVNode, createElementVNode, createBlock, resolveDynamicComponent, createVNode, withCtx } from "vue";
2
2
  import useUploadContext from "./hooks/useContext.js";
3
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
4
- /* empty css */
3
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.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 "../_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$3 from "../_shared/icons/IconDelete.vue2.js";
@@ -5,7 +5,7 @@ import "../../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import { valueToPx } from "../../utils/dom.js";
6
6
  import "../../utils/locale.js";
7
7
  import "../../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../../icons/IconClose.vue.js";
@@ -1,5 +1,5 @@
1
- import _sfc_main from "./index.vue.js";
2
- /* empty css */
1
+ import _sfc_main from "./index.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  _sfc_main as default
5
5
  };
@@ -8,7 +8,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
8
8
  import "../utils/dom.js";
9
9
  import "../utils/locale.js";
10
10
  import "../utils/time.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import _sfc_main from "../icons/IconCheck.vue.js";
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */
@@ -5,7 +5,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../utils/dom.js";
6
6
  import "../utils/locale.js";
7
7
  import "../utils/time.js";
8
- /* empty css */
8
+ /* empty css */
9
9
  /* empty css */
10
10
  import _sfc_main$1 from "../components/Icon/index.vue3.js";
11
11
  /* empty css */