vant 4.9.15 → 4.9.16

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 (284) hide show
  1. package/es/action-sheet/ActionSheet.d.ts +6 -6
  2. package/es/action-sheet/index.d.ts +4 -4
  3. package/es/address-edit/AddressEdit.d.ts +3 -3
  4. package/es/address-edit/index.d.ts +2 -2
  5. package/es/address-list/AddressList.d.ts +9 -9
  6. package/es/address-list/AddressListItem.d.ts +2 -2
  7. package/es/address-list/index.d.ts +6 -6
  8. package/es/area/Area.d.ts +3 -3
  9. package/es/area/index.d.ts +2 -2
  10. package/es/badge/Badge.d.ts +6 -6
  11. package/es/badge/index.d.ts +4 -4
  12. package/es/barrage/Barrage.d.ts +3 -3
  13. package/es/barrage/index.d.ts +2 -2
  14. package/es/button/Button.d.ts +15 -15
  15. package/es/button/index.d.ts +10 -10
  16. package/es/calendar/Calendar.d.ts +11 -10
  17. package/es/calendar/Calendar.mjs +3 -1
  18. package/es/calendar/CalendarDay.mjs +2 -3
  19. package/es/calendar/CalendarHeader.d.ts +2 -2
  20. package/es/calendar/index.d.ts +8 -7
  21. package/es/calendar/utils.d.ts +7 -0
  22. package/es/calendar/utils.mjs +7 -0
  23. package/es/card/Card.d.ts +3 -3
  24. package/es/card/index.d.ts +2 -2
  25. package/es/cascader/Cascader.d.ts +6 -6
  26. package/es/cascader/index.d.ts +4 -4
  27. package/es/cell/Cell.d.ts +4 -4
  28. package/es/cell/index.d.ts +2 -2
  29. package/es/checkbox-group/CheckboxGroup.d.ts +6 -6
  30. package/es/checkbox-group/index.d.ts +4 -4
  31. package/es/circle/Circle.d.ts +6 -6
  32. package/es/circle/index.d.ts +4 -4
  33. package/es/col/Col.d.ts +3 -3
  34. package/es/col/index.d.ts +2 -2
  35. package/es/collapse-item/CollapseItem.d.ts +3 -3
  36. package/es/collapse-item/index.d.ts +2 -2
  37. package/es/config-provider/ConfigProvider.d.ts +9 -9
  38. package/es/config-provider/index.d.ts +6 -6
  39. package/es/contact-card/ContactCard.d.ts +3 -3
  40. package/es/contact-card/index.d.ts +2 -2
  41. package/es/count-down/CountDown.d.ts +3 -3
  42. package/es/count-down/index.d.ts +2 -2
  43. package/es/coupon/Coupon.d.ts +2 -2
  44. package/es/coupon/index.d.ts +2 -2
  45. package/es/coupon-cell/CouponCell.d.ts +6 -6
  46. package/es/coupon-cell/index.d.ts +4 -4
  47. package/es/coupon-list/CouponList.d.ts +12 -12
  48. package/es/coupon-list/index.d.ts +8 -8
  49. package/es/date-picker/DatePicker.d.ts +3 -3
  50. package/es/date-picker/index.d.ts +2 -2
  51. package/es/date-picker/utils.d.ts +1 -1
  52. package/es/dialog/Dialog.d.ts +3 -3
  53. package/es/dialog/index.d.ts +2 -2
  54. package/es/divider/Divider.d.ts +3 -3
  55. package/es/divider/index.d.ts +2 -2
  56. package/es/dropdown-item/DropdownItem.d.ts +3 -3
  57. package/es/dropdown-item/index.d.ts +2 -2
  58. package/es/dropdown-menu/DropdownMenu.d.ts +3 -3
  59. package/es/dropdown-menu/index.d.ts +2 -2
  60. package/es/empty/Empty.d.ts +3 -3
  61. package/es/empty/index.d.ts +2 -2
  62. package/es/field/Field.d.ts +18 -18
  63. package/es/field/index.d.ts +10 -10
  64. package/es/floating-bubble/FloatingBubble.d.ts +3 -3
  65. package/es/floating-bubble/index.d.ts +2 -2
  66. package/es/floating-panel/FloatingPanel.d.ts +3 -3
  67. package/es/floating-panel/index.d.ts +2 -2
  68. package/es/highlight/Highlight.d.ts +12 -12
  69. package/es/highlight/index.d.ts +8 -8
  70. package/es/icon/Icon.d.ts +3 -3
  71. package/es/icon/index.d.ts +2 -2
  72. package/es/image/Image.d.ts +6 -6
  73. package/es/image/index.d.ts +4 -4
  74. package/es/image-preview/ImagePreview.d.ts +9 -9
  75. package/es/image-preview/index.d.ts +6 -6
  76. package/es/index.d.ts +1 -1
  77. package/es/index.mjs +1 -1
  78. package/es/list/List.d.ts +3 -3
  79. package/es/list/index.d.ts +2 -2
  80. package/es/loading/Loading.d.ts +3 -3
  81. package/es/loading/index.d.ts +2 -2
  82. package/es/notify/Notify.d.ts +6 -6
  83. package/es/notify/index.d.ts +4 -4
  84. package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
  85. package/es/number-keyboard/index.d.ts +4 -4
  86. package/es/pagination/Pagination.d.ts +3 -3
  87. package/es/pagination/index.d.ts +2 -2
  88. package/es/password-input/PasswordInput.d.ts +3 -3
  89. package/es/password-input/index.d.ts +2 -2
  90. package/es/picker/Picker.d.ts +9 -9
  91. package/es/picker/PickerColumn.d.ts +2 -2
  92. package/es/picker/index.d.ts +6 -6
  93. package/es/picker-group/PickerGroup.d.ts +3 -3
  94. package/es/picker-group/index.d.ts +2 -2
  95. package/es/popover/Popover.d.ts +15 -15
  96. package/es/popover/index.d.ts +10 -10
  97. package/es/popup/Popup.d.ts +9 -9
  98. package/es/popup/index.d.ts +6 -6
  99. package/es/rate/Rate.d.ts +6 -6
  100. package/es/rate/index.d.ts +4 -4
  101. package/es/rolling-text/RollingText.d.ts +9 -9
  102. package/es/rolling-text/RollingTextItem.d.ts +6 -6
  103. package/es/rolling-text/index.d.ts +6 -6
  104. package/es/row/Row.d.ts +3 -3
  105. package/es/row/index.d.ts +2 -2
  106. package/es/search/Search.d.ts +15 -15
  107. package/es/search/index.d.ts +10 -10
  108. package/es/share-sheet/ShareSheet.d.ts +3 -3
  109. package/es/share-sheet/index.d.ts +2 -2
  110. package/es/signature/Signature.d.ts +9 -9
  111. package/es/signature/index.d.ts +6 -6
  112. package/es/skeleton/Skeleton.d.ts +3 -3
  113. package/es/skeleton/index.d.ts +2 -2
  114. package/es/skeleton-avatar/SkeletonAvatar.d.ts +3 -3
  115. package/es/skeleton-avatar/index.d.ts +2 -2
  116. package/es/skeleton-image/SkeletonImage.d.ts +3 -3
  117. package/es/skeleton-image/index.d.ts +2 -2
  118. package/es/steps/Steps.d.ts +6 -6
  119. package/es/steps/index.d.ts +4 -4
  120. package/es/sticky/Sticky.d.ts +3 -3
  121. package/es/sticky/index.d.ts +2 -2
  122. package/es/submit-bar/SubmitBar.d.ts +6 -6
  123. package/es/submit-bar/index.d.ts +4 -4
  124. package/es/tabs/Tabs.d.ts +3 -3
  125. package/es/tabs/index.d.ts +2 -2
  126. package/es/tag/Tag.d.ts +3 -3
  127. package/es/tag/index.d.ts +2 -2
  128. package/es/text-ellipsis/TextEllipsis.d.ts +15 -15
  129. package/es/text-ellipsis/index.d.ts +10 -10
  130. package/es/time-picker/TimePicker.d.ts +3 -3
  131. package/es/time-picker/index.d.ts +2 -2
  132. package/es/toast/Toast.d.ts +9 -9
  133. package/es/toast/index.d.ts +6 -6
  134. package/es/tree-select/TreeSelect.d.ts +6 -6
  135. package/es/tree-select/index.d.ts +4 -4
  136. package/es/uploader/Uploader.d.ts +15 -15
  137. package/es/uploader/index.d.ts +10 -10
  138. package/es/watermark/Watermark.d.ts +3 -3
  139. package/es/watermark/index.d.ts +2 -2
  140. package/lib/action-sheet/ActionSheet.d.ts +6 -6
  141. package/lib/action-sheet/index.d.ts +4 -4
  142. package/lib/address-edit/AddressEdit.d.ts +3 -3
  143. package/lib/address-edit/index.d.ts +2 -2
  144. package/lib/address-list/AddressList.d.ts +9 -9
  145. package/lib/address-list/AddressListItem.d.ts +2 -2
  146. package/lib/address-list/index.d.ts +6 -6
  147. package/lib/area/Area.d.ts +3 -3
  148. package/lib/area/index.d.ts +2 -2
  149. package/lib/badge/Badge.d.ts +6 -6
  150. package/lib/badge/index.d.ts +4 -4
  151. package/lib/barrage/Barrage.d.ts +3 -3
  152. package/lib/barrage/index.d.ts +2 -2
  153. package/lib/button/Button.d.ts +15 -15
  154. package/lib/button/index.d.ts +10 -10
  155. package/lib/calendar/Calendar.d.ts +11 -10
  156. package/lib/calendar/Calendar.js +3 -1
  157. package/lib/calendar/CalendarDay.js +1 -2
  158. package/lib/calendar/CalendarHeader.d.ts +2 -2
  159. package/lib/calendar/index.d.ts +8 -7
  160. package/lib/calendar/utils.d.ts +7 -0
  161. package/lib/calendar/utils.js +7 -0
  162. package/lib/card/Card.d.ts +3 -3
  163. package/lib/card/index.d.ts +2 -2
  164. package/lib/cascader/Cascader.d.ts +6 -6
  165. package/lib/cascader/index.d.ts +4 -4
  166. package/lib/cell/Cell.d.ts +4 -4
  167. package/lib/cell/index.d.ts +2 -2
  168. package/lib/checkbox-group/CheckboxGroup.d.ts +6 -6
  169. package/lib/checkbox-group/index.d.ts +4 -4
  170. package/lib/circle/Circle.d.ts +6 -6
  171. package/lib/circle/index.d.ts +4 -4
  172. package/lib/col/Col.d.ts +3 -3
  173. package/lib/col/index.d.ts +2 -2
  174. package/lib/collapse-item/CollapseItem.d.ts +3 -3
  175. package/lib/collapse-item/index.d.ts +2 -2
  176. package/lib/config-provider/ConfigProvider.d.ts +9 -9
  177. package/lib/config-provider/index.d.ts +6 -6
  178. package/lib/contact-card/ContactCard.d.ts +3 -3
  179. package/lib/contact-card/index.d.ts +2 -2
  180. package/lib/count-down/CountDown.d.ts +3 -3
  181. package/lib/count-down/index.d.ts +2 -2
  182. package/lib/coupon/Coupon.d.ts +2 -2
  183. package/lib/coupon/index.d.ts +2 -2
  184. package/lib/coupon-cell/CouponCell.d.ts +6 -6
  185. package/lib/coupon-cell/index.d.ts +4 -4
  186. package/lib/coupon-list/CouponList.d.ts +12 -12
  187. package/lib/coupon-list/index.d.ts +8 -8
  188. package/lib/date-picker/DatePicker.d.ts +3 -3
  189. package/lib/date-picker/index.d.ts +2 -2
  190. package/lib/date-picker/utils.d.ts +1 -1
  191. package/lib/dialog/Dialog.d.ts +3 -3
  192. package/lib/dialog/index.d.ts +2 -2
  193. package/lib/divider/Divider.d.ts +3 -3
  194. package/lib/divider/index.d.ts +2 -2
  195. package/lib/dropdown-item/DropdownItem.d.ts +3 -3
  196. package/lib/dropdown-item/index.d.ts +2 -2
  197. package/lib/dropdown-menu/DropdownMenu.d.ts +3 -3
  198. package/lib/dropdown-menu/index.d.ts +2 -2
  199. package/lib/empty/Empty.d.ts +3 -3
  200. package/lib/empty/index.d.ts +2 -2
  201. package/lib/field/Field.d.ts +18 -18
  202. package/lib/field/index.d.ts +10 -10
  203. package/lib/floating-bubble/FloatingBubble.d.ts +3 -3
  204. package/lib/floating-bubble/index.d.ts +2 -2
  205. package/lib/floating-panel/FloatingPanel.d.ts +3 -3
  206. package/lib/floating-panel/index.d.ts +2 -2
  207. package/lib/highlight/Highlight.d.ts +12 -12
  208. package/lib/highlight/index.d.ts +8 -8
  209. package/lib/icon/Icon.d.ts +3 -3
  210. package/lib/icon/index.d.ts +2 -2
  211. package/lib/image/Image.d.ts +6 -6
  212. package/lib/image/index.d.ts +4 -4
  213. package/lib/image-preview/ImagePreview.d.ts +9 -9
  214. package/lib/image-preview/index.d.ts +6 -6
  215. package/lib/index.d.ts +1 -1
  216. package/lib/index.js +1 -1
  217. package/lib/list/List.d.ts +3 -3
  218. package/lib/list/index.d.ts +2 -2
  219. package/lib/loading/Loading.d.ts +3 -3
  220. package/lib/loading/index.d.ts +2 -2
  221. package/lib/notify/Notify.d.ts +6 -6
  222. package/lib/notify/index.d.ts +4 -4
  223. package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
  224. package/lib/number-keyboard/index.d.ts +4 -4
  225. package/lib/pagination/Pagination.d.ts +3 -3
  226. package/lib/pagination/index.d.ts +2 -2
  227. package/lib/password-input/PasswordInput.d.ts +3 -3
  228. package/lib/password-input/index.d.ts +2 -2
  229. package/lib/picker/Picker.d.ts +9 -9
  230. package/lib/picker/PickerColumn.d.ts +2 -2
  231. package/lib/picker/index.d.ts +6 -6
  232. package/lib/picker-group/PickerGroup.d.ts +3 -3
  233. package/lib/picker-group/index.d.ts +2 -2
  234. package/lib/popover/Popover.d.ts +15 -15
  235. package/lib/popover/index.d.ts +10 -10
  236. package/lib/popup/Popup.d.ts +9 -9
  237. package/lib/popup/index.d.ts +6 -6
  238. package/lib/rate/Rate.d.ts +6 -6
  239. package/lib/rate/index.d.ts +4 -4
  240. package/lib/rolling-text/RollingText.d.ts +9 -9
  241. package/lib/rolling-text/RollingTextItem.d.ts +6 -6
  242. package/lib/rolling-text/index.d.ts +6 -6
  243. package/lib/row/Row.d.ts +3 -3
  244. package/lib/row/index.d.ts +2 -2
  245. package/lib/search/Search.d.ts +15 -15
  246. package/lib/search/index.d.ts +10 -10
  247. package/lib/share-sheet/ShareSheet.d.ts +3 -3
  248. package/lib/share-sheet/index.d.ts +2 -2
  249. package/lib/signature/Signature.d.ts +9 -9
  250. package/lib/signature/index.d.ts +6 -6
  251. package/lib/skeleton/Skeleton.d.ts +3 -3
  252. package/lib/skeleton/index.d.ts +2 -2
  253. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +3 -3
  254. package/lib/skeleton-avatar/index.d.ts +2 -2
  255. package/lib/skeleton-image/SkeletonImage.d.ts +3 -3
  256. package/lib/skeleton-image/index.d.ts +2 -2
  257. package/lib/steps/Steps.d.ts +6 -6
  258. package/lib/steps/index.d.ts +4 -4
  259. package/lib/sticky/Sticky.d.ts +3 -3
  260. package/lib/sticky/index.d.ts +2 -2
  261. package/lib/submit-bar/SubmitBar.d.ts +6 -6
  262. package/lib/submit-bar/index.d.ts +4 -4
  263. package/lib/tabs/Tabs.d.ts +3 -3
  264. package/lib/tabs/index.d.ts +2 -2
  265. package/lib/tag/Tag.d.ts +3 -3
  266. package/lib/tag/index.d.ts +2 -2
  267. package/lib/text-ellipsis/TextEllipsis.d.ts +15 -15
  268. package/lib/text-ellipsis/index.d.ts +10 -10
  269. package/lib/time-picker/TimePicker.d.ts +3 -3
  270. package/lib/time-picker/index.d.ts +2 -2
  271. package/lib/toast/Toast.d.ts +9 -9
  272. package/lib/toast/index.d.ts +6 -6
  273. package/lib/tree-select/TreeSelect.d.ts +6 -6
  274. package/lib/tree-select/index.d.ts +4 -4
  275. package/lib/uploader/Uploader.d.ts +15 -15
  276. package/lib/uploader/index.d.ts +10 -10
  277. package/lib/vant.cjs.js +11 -4
  278. package/lib/vant.es.js +11 -4
  279. package/lib/vant.js +24 -35
  280. package/lib/vant.min.js +2 -2
  281. package/lib/watermark/Watermark.d.ts +3 -3
  282. package/lib/watermark/index.d.ts +2 -2
  283. package/lib/web-types.json +1 -1
  284. package/package.json +6 -6
@@ -4,11 +4,11 @@ import type { CalendarType, CalendarSwitchMode, CalendarDayItem } from './types'
4
4
  export declare const calendarProps: {
5
5
  show: BooleanConstructor;
6
6
  type: {
7
- type: PropType<T>;
7
+ type: PropType<CalendarType>;
8
8
  default: CalendarType;
9
9
  };
10
10
  switchMode: {
11
- type: PropType<T>;
11
+ type: PropType<CalendarSwitchMode>;
12
12
  default: CalendarSwitchMode;
13
13
  };
14
14
  title: StringConstructor;
@@ -27,7 +27,7 @@ export declare const calendarProps: {
27
27
  default: null;
28
28
  };
29
29
  position: {
30
- type: PropType<T>;
30
+ type: PropType<PopupPosition>;
31
31
  default: PopupPosition;
32
32
  };
33
33
  teleport: PropType<TeleportProps["to"]>;
@@ -93,11 +93,11 @@ export type CalendarProps = ExtractPropTypes<typeof calendarProps>;
93
93
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
94
94
  show: BooleanConstructor;
95
95
  type: {
96
- type: PropType<T>;
96
+ type: PropType<CalendarType>;
97
97
  default: CalendarType;
98
98
  };
99
99
  switchMode: {
100
- type: PropType<T>;
100
+ type: PropType<CalendarSwitchMode>;
101
101
  default: CalendarSwitchMode;
102
102
  };
103
103
  title: StringConstructor;
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
116
116
  default: null;
117
117
  };
118
118
  position: {
119
- type: PropType<T>;
119
+ type: PropType<PopupPosition>;
120
120
  default: PopupPosition;
121
121
  };
122
122
  teleport: PropType<TeleportProps["to"]>;
@@ -177,14 +177,14 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
177
177
  default: number;
178
178
  validator: (val: number) => boolean;
179
179
  };
180
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
180
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "clickOverlay" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "clickOverlay" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
181
181
  show: BooleanConstructor;
182
182
  type: {
183
- type: PropType<T>;
183
+ type: PropType<CalendarType>;
184
184
  default: CalendarType;
185
185
  };
186
186
  switchMode: {
187
- type: PropType<T>;
187
+ type: PropType<CalendarSwitchMode>;
188
188
  default: CalendarSwitchMode;
189
189
  };
190
190
  title: StringConstructor;
@@ -203,7 +203,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
203
203
  default: null;
204
204
  };
205
205
  position: {
206
- type: PropType<T>;
206
+ type: PropType<PopupPosition>;
207
207
  default: PopupPosition;
208
208
  };
209
209
  teleport: PropType<TeleportProps["to"]>;
@@ -267,6 +267,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
267
267
  }>> & Readonly<{
268
268
  onSelect?: ((...args: any[]) => any) | undefined;
269
269
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
270
+ onClickOverlay?: ((...args: any[]) => any) | undefined;
270
271
  onConfirm?: ((...args: any[]) => any) | undefined;
271
272
  onClickDisabledDate?: ((...args: any[]) => any) | undefined;
272
273
  onClickSubtitle?: ((...args: any[]) => any) | undefined;
@@ -55,7 +55,7 @@ const calendarProps = {
55
55
  var stdin_default = defineComponent({
56
56
  name,
57
57
  props: calendarProps,
58
- emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate", "panelChange"],
58
+ emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate", "clickOverlay", "panelChange"],
59
59
  setup(props, {
60
60
  emit,
61
61
  slots
@@ -343,6 +343,7 @@ var stdin_default = defineComponent({
343
343
  select(date, true);
344
344
  }
345
345
  };
346
+ const onClickOverlay = (event) => emit("clickOverlay", event);
346
347
  const updateShow = (value) => emit("update:show", value);
347
348
  const renderMonth = (date, index) => {
348
349
  const showMonthTitle = index !== 0 || !props.showSubtitle;
@@ -434,6 +435,7 @@ var stdin_default = defineComponent({
434
435
  "closeOnPopstate": props.closeOnPopstate,
435
436
  "safeAreaInsetTop": props.safeAreaInsetTop,
436
437
  "closeOnClickOverlay": props.closeOnClickOverlay,
438
+ "onClickOverlay": onClickOverlay,
437
439
  "onUpdate:show": updateShow
438
440
  }, {
439
441
  default: renderCalendar
@@ -1,6 +1,6 @@
1
1
  import { computed, defineComponent, createVNode as _createVNode } from "vue";
2
2
  import { makeNumberProp, createNamespace, makeRequiredProp } from "../utils/index.mjs";
3
- import { bem } from "./utils.mjs";
3
+ import { bem, isLastRowInMonth } from "./utils.mjs";
4
4
  const [name] = createNamespace("calendar-day");
5
5
  var stdin_default = defineComponent({
6
6
  name,
@@ -17,7 +17,6 @@ var stdin_default = defineComponent({
17
17
  slots
18
18
  }) {
19
19
  const style = computed(() => {
20
- var _a;
21
20
  const {
22
21
  item,
23
22
  index,
@@ -49,7 +48,7 @@ var stdin_default = defineComponent({
49
48
  break;
50
49
  }
51
50
  }
52
- if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
51
+ if (item.date && isLastRowInMonth(item.date, offset)) {
53
52
  style2.marginBottom = 0;
54
53
  }
55
54
  return style2;
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  showSubtitle: BooleanConstructor;
10
10
  firstDayOfWeek: NumberConstructor;
11
11
  switchMode: {
12
- type: import("vue").PropType<T>;
12
+ type: import("vue").PropType<CalendarSwitchMode>;
13
13
  default: CalendarSwitchMode;
14
14
  };
15
15
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickSubtitle" | "panelChange")[], "clickSubtitle" | "panelChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
22
  showSubtitle: BooleanConstructor;
23
23
  firstDayOfWeek: NumberConstructor;
24
24
  switchMode: {
25
- type: import("vue").PropType<T>;
25
+ type: import("vue").PropType<CalendarSwitchMode>;
26
26
  default: CalendarSwitchMode;
27
27
  };
28
28
  }>> & Readonly<{
@@ -1,11 +1,11 @@
1
1
  export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  show: BooleanConstructor;
3
3
  type: {
4
- type: import("vue").PropType<T>;
4
+ type: import("vue").PropType<import("./types").CalendarType>;
5
5
  default: import("./types").CalendarType;
6
6
  };
7
7
  switchMode: {
8
- type: import("vue").PropType<T>;
8
+ type: import("vue").PropType<import("./types").CalendarSwitchMode>;
9
9
  default: import("./types").CalendarSwitchMode;
10
10
  };
11
11
  title: StringConstructor;
@@ -24,7 +24,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
24
24
  default: null;
25
25
  };
26
26
  position: {
27
- type: import("vue").PropType<T>;
27
+ type: import("vue").PropType<import("..").PopupPosition>;
28
28
  default: import("..").PopupPosition;
29
29
  };
30
30
  teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
@@ -85,14 +85,14 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
85
85
  default: number;
86
86
  validator: (val: number) => boolean;
87
87
  };
88
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
88
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "clickOverlay" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "clickOverlay" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
89
89
  show: BooleanConstructor;
90
90
  type: {
91
- type: import("vue").PropType<T>;
91
+ type: import("vue").PropType<import("./types").CalendarType>;
92
92
  default: import("./types").CalendarType;
93
93
  };
94
94
  switchMode: {
95
- type: import("vue").PropType<T>;
95
+ type: import("vue").PropType<import("./types").CalendarSwitchMode>;
96
96
  default: import("./types").CalendarSwitchMode;
97
97
  };
98
98
  title: StringConstructor;
@@ -111,7 +111,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
111
111
  default: null;
112
112
  };
113
113
  position: {
114
- type: import("vue").PropType<T>;
114
+ type: import("vue").PropType<import("..").PopupPosition>;
115
115
  default: import("..").PopupPosition;
116
116
  };
117
117
  teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
@@ -175,6 +175,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
175
175
  }>> & Readonly<{
176
176
  onSelect?: ((...args: any[]) => any) | undefined;
177
177
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
178
+ onClickOverlay?: ((...args: any[]) => any) | undefined;
178
179
  onConfirm?: ((...args: any[]) => any) | undefined;
179
180
  onClickDisabledDate?: ((...args: any[]) => any) | undefined;
180
181
  onClickSubtitle?: ((...args: any[]) => any) | undefined;
@@ -16,3 +16,10 @@ export declare const getPrevYear: (date: Date) => Date;
16
16
  export declare const getNextYear: (date: Date) => Date;
17
17
  export declare const getToday: () => Date;
18
18
  export declare function calcDateNum(date: [Date, Date]): number;
19
+ /**
20
+ * Checks if the given date is in the last row of its month in a calendar view
21
+ * @param date The date to check
22
+ * @param offset The offset of the first day of the month
23
+ * @returns boolean indicating whether the date is in the last row
24
+ */
25
+ export declare function isLastRowInMonth(date: Date, offset?: number): boolean;
@@ -59,6 +59,12 @@ function calcDateNum(date) {
59
59
  const day2 = date[1].getTime();
60
60
  return (day2 - day1) / (1e3 * 60 * 60 * 24) + 1;
61
61
  }
62
+ function isLastRowInMonth(date, offset = 0) {
63
+ const lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
64
+ const currentPos = offset + date.getDate() - 1;
65
+ const lastDayPos = offset + lastDay.getDate() - 1;
66
+ return Math.floor(currentPos / 7) === Math.floor(lastDayPos / 7);
67
+ }
62
68
  export {
63
69
  bem,
64
70
  calcDateNum,
@@ -77,6 +83,7 @@ export {
77
83
  getPrevYear,
78
84
  getToday,
79
85
  getYearByOffset,
86
+ isLastRowInMonth,
80
87
  name,
81
88
  t
82
89
  };
package/es/card/Card.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare const cardProps: {
9
9
  centered: BooleanConstructor;
10
10
  lazyLoad: BooleanConstructor;
11
11
  currency: {
12
- type: import("vue").PropType<T>;
12
+ type: import("vue").PropType<string>;
13
13
  default: string;
14
14
  };
15
15
  thumbLink: StringConstructor;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
26
26
  centered: BooleanConstructor;
27
27
  lazyLoad: BooleanConstructor;
28
28
  currency: {
29
- type: import("vue").PropType<T>;
29
+ type: import("vue").PropType<string>;
30
30
  default: string;
31
31
  };
32
32
  thumbLink: StringConstructor;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
41
41
  centered: BooleanConstructor;
42
42
  lazyLoad: BooleanConstructor;
43
43
  currency: {
44
- type: import("vue").PropType<T>;
44
+ type: import("vue").PropType<string>;
45
45
  default: string;
46
46
  };
47
47
  thumbLink: StringConstructor;
@@ -8,7 +8,7 @@ export declare const Card: import("../utils").WithInstall<import("vue").DefineCo
8
8
  centered: BooleanConstructor;
9
9
  lazyLoad: BooleanConstructor;
10
10
  currency: {
11
- type: import("vue").PropType<T>;
11
+ type: import("vue").PropType<string>;
12
12
  default: string;
13
13
  };
14
14
  thumbLink: StringConstructor;
@@ -23,7 +23,7 @@ export declare const Card: import("../utils").WithInstall<import("vue").DefineCo
23
23
  centered: BooleanConstructor;
24
24
  lazyLoad: BooleanConstructor;
25
25
  currency: {
26
- type: import("vue").PropType<T>;
26
+ type: import("vue").PropType<string>;
27
27
  default: string;
28
28
  };
29
29
  thumbLink: StringConstructor;
@@ -3,7 +3,7 @@ import type { CascaderOption, CascaderFieldNames } from './types';
3
3
  export declare const cascaderProps: {
4
4
  title: StringConstructor;
5
5
  options: {
6
- type: PropType<T[]>;
6
+ type: PropType<CascaderOption[]>;
7
7
  default: () => never[];
8
8
  };
9
9
  closeable: {
@@ -15,7 +15,7 @@ export declare const cascaderProps: {
15
15
  default: true;
16
16
  };
17
17
  closeIcon: {
18
- type: PropType<T_1>;
18
+ type: PropType<string>;
19
19
  default: string;
20
20
  };
21
21
  showHeader: {
@@ -31,7 +31,7 @@ export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
31
31
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
32
32
  title: StringConstructor;
33
33
  options: {
34
- type: PropType<T[]>;
34
+ type: PropType<CascaderOption[]>;
35
35
  default: () => never[];
36
36
  };
37
37
  closeable: {
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
43
43
  default: true;
44
44
  };
45
45
  closeIcon: {
46
- type: PropType<T_1>;
46
+ type: PropType<string>;
47
47
  default: string;
48
48
  };
49
49
  showHeader: {
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
57
57
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "clickTab" | "finish")[], "update:modelValue" | "change" | "close" | "clickTab" | "finish", import("vue").PublicProps, Readonly<ExtractPropTypes<{
58
58
  title: StringConstructor;
59
59
  options: {
60
- type: PropType<T[]>;
60
+ type: PropType<CascaderOption[]>;
61
61
  default: () => never[];
62
62
  };
63
63
  closeable: {
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
69
69
  default: true;
70
70
  };
71
71
  closeIcon: {
72
- type: PropType<T_1>;
72
+ type: PropType<string>;
73
73
  default: string;
74
74
  };
75
75
  showHeader: {
@@ -1,7 +1,7 @@
1
1
  export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  title: StringConstructor;
3
3
  options: {
4
- type: import("vue").PropType<T[]>;
4
+ type: import("vue").PropType<import("./types").CascaderOption[]>;
5
5
  default: () => never[];
6
6
  };
7
7
  closeable: {
@@ -13,7 +13,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
13
13
  default: true;
14
14
  };
15
15
  closeIcon: {
16
- type: import("vue").PropType<T_1>;
16
+ type: import("vue").PropType<string>;
17
17
  default: string;
18
18
  };
19
19
  showHeader: {
@@ -27,7 +27,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
27
27
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "clickTab" | "finish")[], "update:modelValue" | "change" | "close" | "clickTab" | "finish", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
28
  title: StringConstructor;
29
29
  options: {
30
- type: import("vue").PropType<T[]>;
30
+ type: import("vue").PropType<import("./types").CascaderOption[]>;
31
31
  default: () => never[];
32
32
  };
33
33
  closeable: {
@@ -39,7 +39,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
39
39
  default: true;
40
40
  };
41
41
  closeIcon: {
42
- type: import("vue").PropType<T_1>;
42
+ type: import("vue").PropType<string>;
43
43
  default: string;
44
44
  };
45
45
  showHeader: {
package/es/cell/Cell.d.ts CHANGED
@@ -3,7 +3,7 @@ export type CellSize = 'normal' | 'large';
3
3
  export type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
4
4
  export declare const cellSharedProps: {
5
5
  tag: {
6
- type: PropType<T>;
6
+ type: PropType<keyof HTMLElementTagNameMap>;
7
7
  default: keyof HTMLElementTagNameMap;
8
8
  };
9
9
  icon: StringConstructor;
@@ -34,7 +34,7 @@ export declare const cellSharedProps: {
34
34
  };
35
35
  export declare const cellProps: {
36
36
  tag: {
37
- type: PropType<T>;
37
+ type: PropType<keyof HTMLElementTagNameMap>;
38
38
  default: keyof HTMLElementTagNameMap;
39
39
  };
40
40
  icon: StringConstructor;
@@ -70,7 +70,7 @@ export declare const cellProps: {
70
70
  export type CellProps = ExtractPropTypes<typeof cellProps>;
71
71
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
72
72
  tag: {
73
- type: PropType<T>;
73
+ type: PropType<keyof HTMLElementTagNameMap>;
74
74
  default: keyof HTMLElementTagNameMap;
75
75
  };
76
76
  icon: StringConstructor;
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
104
104
  replace: BooleanConstructor;
105
105
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
106
106
  tag: {
107
- type: PropType<T>;
107
+ type: PropType<keyof HTMLElementTagNameMap>;
108
108
  default: keyof HTMLElementTagNameMap;
109
109
  };
110
110
  icon: StringConstructor;
@@ -1,6 +1,6 @@
1
1
  export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  tag: {
3
- type: import("vue").PropType<T>;
3
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
4
4
  default: keyof HTMLElementTagNameMap;
5
5
  };
6
6
  icon: StringConstructor;
@@ -34,7 +34,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
34
34
  replace: BooleanConstructor;
35
35
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  tag: {
37
- type: import("vue").PropType<T>;
37
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
38
38
  default: keyof HTMLElementTagNameMap;
39
39
  };
40
40
  icon: StringConstructor;
@@ -4,14 +4,14 @@ import type { CheckboxGroupProvide } from './types';
4
4
  export declare const checkboxGroupProps: {
5
5
  max: (NumberConstructor | StringConstructor)[];
6
6
  shape: {
7
- type: PropType<T>;
7
+ type: PropType<CheckerShape>;
8
8
  default: CheckerShape;
9
9
  };
10
10
  disabled: BooleanConstructor;
11
11
  iconSize: (NumberConstructor | StringConstructor)[];
12
12
  direction: PropType<CheckerDirection>;
13
13
  modelValue: {
14
- type: PropType<T_1[]>;
14
+ type: PropType<unknown[]>;
15
15
  default: () => never[];
16
16
  };
17
17
  checkedColor: StringConstructor;
@@ -21,28 +21,28 @@ export declare const CHECKBOX_GROUP_KEY: InjectionKey<CheckboxGroupProvide>;
21
21
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
22
22
  max: (NumberConstructor | StringConstructor)[];
23
23
  shape: {
24
- type: PropType<T>;
24
+ type: PropType<CheckerShape>;
25
25
  default: CheckerShape;
26
26
  };
27
27
  disabled: BooleanConstructor;
28
28
  iconSize: (NumberConstructor | StringConstructor)[];
29
29
  direction: PropType<CheckerDirection>;
30
30
  modelValue: {
31
- type: PropType<T_1[]>;
31
+ type: PropType<unknown[]>;
32
32
  default: () => never[];
33
33
  };
34
34
  checkedColor: StringConstructor;
35
35
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
36
36
  max: (NumberConstructor | StringConstructor)[];
37
37
  shape: {
38
- type: PropType<T>;
38
+ type: PropType<CheckerShape>;
39
39
  default: CheckerShape;
40
40
  };
41
41
  disabled: BooleanConstructor;
42
42
  iconSize: (NumberConstructor | StringConstructor)[];
43
43
  direction: PropType<CheckerDirection>;
44
44
  modelValue: {
45
- type: PropType<T_1[]>;
45
+ type: PropType<unknown[]>;
46
46
  default: () => never[];
47
47
  };
48
48
  checkedColor: StringConstructor;
@@ -1,28 +1,28 @@
1
1
  export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  max: (NumberConstructor | StringConstructor)[];
3
3
  shape: {
4
- type: import("vue").PropType<T>;
4
+ type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
5
5
  default: import("../checkbox/Checker").CheckerShape;
6
6
  };
7
7
  disabled: BooleanConstructor;
8
8
  iconSize: (NumberConstructor | StringConstructor)[];
9
9
  direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
10
10
  modelValue: {
11
- type: import("vue").PropType<T_1[]>;
11
+ type: import("vue").PropType<unknown[]>;
12
12
  default: () => never[];
13
13
  };
14
14
  checkedColor: StringConstructor;
15
15
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
16
  max: (NumberConstructor | StringConstructor)[];
17
17
  shape: {
18
- type: import("vue").PropType<T>;
18
+ type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
19
19
  default: import("../checkbox/Checker").CheckerShape;
20
20
  };
21
21
  disabled: BooleanConstructor;
22
22
  iconSize: (NumberConstructor | StringConstructor)[];
23
23
  direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
24
24
  modelValue: {
25
- type: import("vue").PropType<T_1[]>;
25
+ type: import("vue").PropType<unknown[]>;
26
26
  default: () => never[];
27
27
  };
28
28
  checkedColor: StringConstructor;
@@ -4,7 +4,7 @@ export declare const circleProps: {
4
4
  text: StringConstructor;
5
5
  size: (NumberConstructor | StringConstructor)[];
6
6
  fill: {
7
- type: PropType<T>;
7
+ type: PropType<string>;
8
8
  default: string;
9
9
  };
10
10
  rate: {
@@ -31,7 +31,7 @@ export declare const circleProps: {
31
31
  };
32
32
  strokeLinecap: PropType<CanvasLineCap>;
33
33
  startPosition: {
34
- type: PropType<T>;
34
+ type: PropType<CircleStartPosition>;
35
35
  default: CircleStartPosition;
36
36
  };
37
37
  };
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
40
40
  text: StringConstructor;
41
41
  size: (NumberConstructor | StringConstructor)[];
42
42
  fill: {
43
- type: PropType<T>;
43
+ type: PropType<string>;
44
44
  default: string;
45
45
  };
46
46
  rate: {
@@ -67,14 +67,14 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
67
67
  };
68
68
  strokeLinecap: PropType<CanvasLineCap>;
69
69
  startPosition: {
70
- type: PropType<T>;
70
+ type: PropType<CircleStartPosition>;
71
71
  default: CircleStartPosition;
72
72
  };
73
73
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").PublicProps, Readonly<ExtractPropTypes<{
74
74
  text: StringConstructor;
75
75
  size: (NumberConstructor | StringConstructor)[];
76
76
  fill: {
77
- type: PropType<T>;
77
+ type: PropType<string>;
78
78
  default: string;
79
79
  };
80
80
  rate: {
@@ -101,7 +101,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
101
101
  };
102
102
  strokeLinecap: PropType<CanvasLineCap>;
103
103
  startPosition: {
104
- type: PropType<T>;
104
+ type: PropType<CircleStartPosition>;
105
105
  default: CircleStartPosition;
106
106
  };
107
107
  }>> & Readonly<{
@@ -2,7 +2,7 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
2
2
  text: StringConstructor;
3
3
  size: (NumberConstructor | StringConstructor)[];
4
4
  fill: {
5
- type: import("vue").PropType<T>;
5
+ type: import("vue").PropType<string>;
6
6
  default: string;
7
7
  };
8
8
  rate: {
@@ -29,14 +29,14 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
29
29
  };
30
30
  strokeLinecap: import("vue").PropType<CanvasLineCap>;
31
31
  startPosition: {
32
- type: import("vue").PropType<T>;
32
+ type: import("vue").PropType<import("./Circle").CircleStartPosition>;
33
33
  default: import("./Circle").CircleStartPosition;
34
34
  };
35
35
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  text: StringConstructor;
37
37
  size: (NumberConstructor | StringConstructor)[];
38
38
  fill: {
39
- type: import("vue").PropType<T>;
39
+ type: import("vue").PropType<string>;
40
40
  default: string;
41
41
  };
42
42
  rate: {
@@ -63,7 +63,7 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
63
63
  };
64
64
  strokeLinecap: import("vue").PropType<CanvasLineCap>;
65
65
  startPosition: {
66
- type: import("vue").PropType<T>;
66
+ type: import("vue").PropType<import("./Circle").CircleStartPosition>;
67
67
  default: import("./Circle").CircleStartPosition;
68
68
  };
69
69
  }>> & Readonly<{
package/es/col/Col.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
2
  export declare const colProps: {
3
3
  tag: {
4
- type: import("vue").PropType<T>;
4
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
5
5
  default: keyof HTMLElementTagNameMap;
6
6
  };
7
7
  span: {
@@ -13,7 +13,7 @@ export declare const colProps: {
13
13
  export type ColProps = ExtractPropTypes<typeof colProps>;
14
14
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
15
15
  tag: {
16
- type: import("vue").PropType<T>;
16
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
17
17
  default: keyof HTMLElementTagNameMap;
18
18
  };
19
19
  span: {
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
23
23
  offset: (NumberConstructor | StringConstructor)[];
24
24
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
25
25
  tag: {
26
- type: import("vue").PropType<T>;
26
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
27
27
  default: keyof HTMLElementTagNameMap;
28
28
  };
29
29
  span: {
package/es/col/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const Col: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  tag: {
3
- type: import("vue").PropType<T>;
3
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
4
4
  default: keyof HTMLElementTagNameMap;
5
5
  };
6
6
  span: {
@@ -10,7 +10,7 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
10
10
  offset: (NumberConstructor | StringConstructor)[];
11
11
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
12
  tag: {
13
- type: import("vue").PropType<T>;
13
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
14
14
  default: keyof HTMLElementTagNameMap;
15
15
  };
16
16
  span: {