vant 4.0.0-rc.5 → 4.0.0-rc.7

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 (120) hide show
  1. package/es/action-sheet/index.css +1 -1
  2. package/es/calendar/Calendar.mjs +10 -3
  3. package/es/calendar/CalendarHeader.d.ts +2 -0
  4. package/es/calendar/CalendarHeader.mjs +5 -1
  5. package/es/cell/Cell.d.ts +17 -0
  6. package/es/cell/Cell.mjs +11 -4
  7. package/es/cell/index.d.ts +9 -0
  8. package/es/collapse-item/CollapseItem.d.ts +13 -0
  9. package/es/collapse-item/index.d.ts +9 -0
  10. package/es/composables/use-sync-prop-ref.d.ts +2 -0
  11. package/es/composables/use-sync-prop-ref.mjs +18 -0
  12. package/es/coupon/index.css +1 -1
  13. package/es/coupon-list/index.css +1 -1
  14. package/es/date-picker/DatePicker.mjs +4 -1
  15. package/es/field/Field.d.ts +13 -0
  16. package/es/field/index.d.ts +9 -0
  17. package/es/image-preview/ImagePreview.d.ts +2 -1
  18. package/es/image-preview/ImagePreview.mjs +9 -4
  19. package/es/image-preview/ImagePreviewItem.d.ts +2 -1
  20. package/es/image-preview/ImagePreviewItem.mjs +22 -13
  21. package/es/image-preview/index.css +1 -1
  22. package/es/image-preview/index.d.ts +2 -1
  23. package/es/index.d.ts +1 -1
  24. package/es/index.mjs +1 -1
  25. package/es/lazyload/vue-lazyload/lazy-image.mjs +5 -5
  26. package/es/picker/Picker.mjs +4 -2
  27. package/es/picker/PickerColumn.mjs +5 -4
  28. package/es/popover/Popover.mjs +13 -8
  29. package/es/skeleton/Skeleton.d.ts +23 -23
  30. package/es/skeleton/Skeleton.mjs +28 -23
  31. package/es/skeleton/SkeletonAvatar.d.ts +26 -0
  32. package/es/skeleton/SkeletonAvatar.mjs +22 -0
  33. package/es/skeleton/SkeletonImage.d.ts +26 -0
  34. package/es/skeleton/SkeletonImage.mjs +26 -0
  35. package/es/skeleton/SkeletonParagraph.d.ts +27 -0
  36. package/es/skeleton/SkeletonParagraph.mjs +31 -0
  37. package/es/skeleton/SkeletonTitle.d.ts +16 -0
  38. package/es/skeleton/SkeletonTitle.mjs +26 -0
  39. package/es/skeleton/index.css +1 -1
  40. package/es/skeleton/index.d.ts +85 -18
  41. package/es/skeleton/index.mjs +22 -2
  42. package/es/skeleton/style/index.mjs +2 -0
  43. package/es/skeleton/types.d.ts +7 -3
  44. package/es/stepper/Stepper.d.ts +1 -1
  45. package/es/stepper/Stepper.mjs +1 -2
  46. package/es/stepper/index.d.ts +1 -1
  47. package/es/swipe/Swipe.mjs +1 -1
  48. package/es/time-picker/TimePicker.mjs +4 -1
  49. package/es/toast/Toast.d.ts +4 -1
  50. package/es/toast/Toast.mjs +2 -1
  51. package/es/toast/index.css +1 -1
  52. package/es/toast/index.d.ts +3 -1
  53. package/es/toast/types.d.ts +2 -0
  54. package/es/uploader/Uploader.mjs +4 -4
  55. package/es/utils/constant.d.ts +1 -0
  56. package/es/utils/constant.mjs +3 -1
  57. package/lib/action-sheet/index.css +1 -1
  58. package/lib/calendar/Calendar.js +10 -3
  59. package/lib/calendar/CalendarHeader.d.ts +2 -0
  60. package/lib/calendar/CalendarHeader.js +5 -1
  61. package/lib/cell/Cell.d.ts +17 -0
  62. package/lib/cell/Cell.js +10 -3
  63. package/lib/cell/index.d.ts +9 -0
  64. package/lib/collapse-item/CollapseItem.d.ts +13 -0
  65. package/lib/collapse-item/index.d.ts +9 -0
  66. package/lib/composables/use-sync-prop-ref.d.ts +2 -0
  67. package/lib/composables/use-sync-prop-ref.js +37 -0
  68. package/lib/coupon/index.css +1 -1
  69. package/lib/coupon-list/index.css +1 -1
  70. package/lib/date-picker/DatePicker.js +4 -1
  71. package/lib/field/Field.d.ts +13 -0
  72. package/lib/field/index.d.ts +9 -0
  73. package/lib/image-preview/ImagePreview.d.ts +2 -1
  74. package/lib/image-preview/ImagePreview.js +9 -4
  75. package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
  76. package/lib/image-preview/ImagePreviewItem.js +21 -12
  77. package/lib/image-preview/index.css +1 -1
  78. package/lib/image-preview/index.d.ts +2 -1
  79. package/lib/index.css +1 -1
  80. package/lib/index.d.ts +1 -1
  81. package/lib/index.js +1 -1
  82. package/lib/lazyload/vue-lazyload/lazy-image.js +6 -6
  83. package/lib/picker/Picker.js +3 -1
  84. package/lib/picker/PickerColumn.js +5 -4
  85. package/lib/popover/Popover.js +13 -8
  86. package/lib/skeleton/Skeleton.d.ts +23 -23
  87. package/lib/skeleton/Skeleton.js +34 -23
  88. package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
  89. package/lib/skeleton/SkeletonAvatar.js +41 -0
  90. package/lib/skeleton/SkeletonImage.d.ts +26 -0
  91. package/lib/skeleton/SkeletonImage.js +45 -0
  92. package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
  93. package/lib/skeleton/SkeletonParagraph.js +50 -0
  94. package/lib/skeleton/SkeletonTitle.d.ts +16 -0
  95. package/lib/skeleton/SkeletonTitle.js +45 -0
  96. package/lib/skeleton/index.css +1 -1
  97. package/lib/skeleton/index.d.ts +85 -18
  98. package/lib/skeleton/index.js +22 -2
  99. package/lib/skeleton/style/index.js +2 -0
  100. package/lib/skeleton/types.d.ts +7 -3
  101. package/lib/stepper/Stepper.d.ts +1 -1
  102. package/lib/stepper/Stepper.js +1 -2
  103. package/lib/stepper/index.d.ts +1 -1
  104. package/lib/swipe/Swipe.js +1 -1
  105. package/lib/time-picker/TimePicker.js +4 -1
  106. package/lib/toast/Toast.d.ts +4 -1
  107. package/lib/toast/Toast.js +2 -1
  108. package/lib/toast/index.css +1 -1
  109. package/lib/toast/index.d.ts +3 -1
  110. package/lib/toast/types.d.ts +2 -0
  111. package/lib/uploader/Uploader.js +3 -3
  112. package/lib/utils/constant.d.ts +1 -0
  113. package/lib/utils/constant.js +3 -1
  114. package/lib/vant.cjs.js +936 -788
  115. package/lib/vant.es.js +936 -788
  116. package/lib/vant.js +930 -788
  117. package/lib/vant.min.js +1 -1
  118. package/lib/web-types.json +1 -12150
  119. package/package.json +1 -1
  120. package/changelog.generated.md +0 -71
@@ -1,11 +1,72 @@
1
+ export declare const SkeletonImage: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ imageSize: (NumberConstructor | StringConstructor)[];
3
+ imageShape: {
4
+ type: import("vue").PropType<import("./types").SkeletonImageShape>;
5
+ default: import("./types").SkeletonImageShape;
6
+ };
7
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ imageSize: (NumberConstructor | StringConstructor)[];
9
+ imageShape: {
10
+ type: import("vue").PropType<import("./types").SkeletonImageShape>;
11
+ default: import("./types").SkeletonImageShape;
12
+ };
13
+ }>>, {
14
+ imageShape: import("./types").SkeletonImageShape;
15
+ }>>;
16
+ export declare const SkeletonTitle: import("../utils").WithInstall<import("vue").DefineComponent<{
17
+ round: BooleanConstructor;
18
+ titleWidth: (NumberConstructor | StringConstructor)[];
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ round: BooleanConstructor;
21
+ titleWidth: (NumberConstructor | StringConstructor)[];
22
+ }>>, {
23
+ round: boolean;
24
+ }>>;
25
+ export declare const SkeletonAvatar: import("../utils").WithInstall<import("vue").DefineComponent<{
26
+ avatarSize: (NumberConstructor | StringConstructor)[];
27
+ avatarShape: {
28
+ type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
29
+ default: import("./types").SkeletonAvatarShape;
30
+ };
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ avatarSize: (NumberConstructor | StringConstructor)[];
33
+ avatarShape: {
34
+ type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
35
+ default: import("./types").SkeletonAvatarShape;
36
+ };
37
+ }>>, {
38
+ avatarShape: import("./types").SkeletonAvatarShape;
39
+ }>>;
40
+ export declare const SkeletonParagraph: import("../utils").WithInstall<import("vue").DefineComponent<{
41
+ round: BooleanConstructor;
42
+ rowWidth: {
43
+ type: (NumberConstructor | StringConstructor)[];
44
+ default: string;
45
+ };
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ round: BooleanConstructor;
48
+ rowWidth: {
49
+ type: (NumberConstructor | StringConstructor)[];
50
+ default: string;
51
+ };
52
+ }>>, {
53
+ round: boolean;
54
+ rowWidth: string | number;
55
+ }>>;
1
56
  export declare const Skeleton: import("../utils").WithInstall<import("vue").DefineComponent<{
2
57
  row: {
3
58
  type: (NumberConstructor | StringConstructor)[];
4
59
  default: number;
5
60
  };
6
- title: BooleanConstructor;
7
61
  round: BooleanConstructor;
62
+ title: BooleanConstructor;
63
+ titleWidth: (NumberConstructor | StringConstructor)[];
8
64
  avatar: BooleanConstructor;
65
+ avatarSize: (NumberConstructor | StringConstructor)[];
66
+ avatarShape: {
67
+ type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
68
+ default: import("./types").SkeletonAvatarShape;
69
+ };
9
70
  loading: {
10
71
  type: BooleanConstructor;
11
72
  default: true;
@@ -14,12 +75,6 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
14
75
  type: BooleanConstructor;
15
76
  default: true;
16
77
  };
17
- avatarSize: (NumberConstructor | StringConstructor)[];
18
- titleWidth: (NumberConstructor | StringConstructor)[];
19
- avatarShape: {
20
- type: import("vue").PropType<import("./Skeleton").SkeletonAvatarShape>;
21
- default: import("./Skeleton").SkeletonAvatarShape;
22
- };
23
78
  rowWidth: {
24
79
  type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
25
80
  default: string;
@@ -31,9 +86,15 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
31
86
  type: (NumberConstructor | StringConstructor)[];
32
87
  default: number;
33
88
  };
34
- title: BooleanConstructor;
35
89
  round: BooleanConstructor;
90
+ title: BooleanConstructor;
91
+ titleWidth: (NumberConstructor | StringConstructor)[];
36
92
  avatar: BooleanConstructor;
93
+ avatarSize: (NumberConstructor | StringConstructor)[];
94
+ avatarShape: {
95
+ type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
96
+ default: import("./types").SkeletonAvatarShape;
97
+ };
37
98
  loading: {
38
99
  type: BooleanConstructor;
39
100
  default: true;
@@ -42,12 +103,6 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
42
103
  type: BooleanConstructor;
43
104
  default: true;
44
105
  };
45
- avatarSize: (NumberConstructor | StringConstructor)[];
46
- titleWidth: (NumberConstructor | StringConstructor)[];
47
- avatarShape: {
48
- type: import("vue").PropType<import("./Skeleton").SkeletonAvatarShape>;
49
- default: import("./Skeleton").SkeletonAvatarShape;
50
- };
51
106
  rowWidth: {
52
107
  type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
53
108
  default: string;
@@ -58,16 +113,28 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
58
113
  round: boolean;
59
114
  loading: boolean;
60
115
  row: string | number;
61
- avatar: boolean;
62
- avatarShape: import("./Skeleton").SkeletonAvatarShape;
116
+ avatarShape: import("./types").SkeletonAvatarShape;
63
117
  rowWidth: import("../utils").Numeric | import("../utils").Numeric[];
118
+ avatar: boolean;
64
119
  }>>;
65
120
  export default Skeleton;
66
121
  export { skeletonProps } from './Skeleton';
67
- export type { SkeletonProps, SkeletonAvatarShape } from './Skeleton';
68
- export type { SkeletonThemeVars } from './types';
122
+ export type { SkeletonProps } from './Skeleton';
123
+ export { skeletonImageProps } from './SkeletonImage';
124
+ export type { SkeletonImageProps } from './SkeletonImage';
125
+ export { skeletonAvatarProps } from './SkeletonAvatar';
126
+ export type { SkeletonAvatarProps } from './SkeletonAvatar';
127
+ export { skeletonParagraphProps } from './SkeletonParagraph';
128
+ export type { SkeletonParagraphProps } from './SkeletonParagraph';
129
+ export { skeletonTitleProps } from './SkeletonTitle';
130
+ export type { SkeletonTitleProps } from './SkeletonTitle';
131
+ export type { SkeletonThemeVars, SkeletonImageShape, SkeletonAvatarShape, } from './types';
69
132
  declare module 'vue' {
70
133
  interface GlobalComponents {
71
134
  VanSkeleton: typeof Skeleton;
135
+ VanSkeletonImage: typeof SkeletonImage;
136
+ VanSkeletonTitle: typeof SkeletonTitle;
137
+ VanSkeletonAvatar: typeof SkeletonAvatar;
138
+ VanSkeletonParagraph: typeof SkeletonParagraph;
72
139
  }
73
140
  }
@@ -1,10 +1,30 @@
1
- import { withInstall } from "../utils/index.mjs";
2
1
  import _Skeleton from "./Skeleton.mjs";
2
+ import _SkeletonImage from "./SkeletonImage.mjs";
3
+ import _SkeletonTitle from "./SkeletonTitle.mjs";
4
+ import _SkeletonAvatar from "./SkeletonAvatar.mjs";
5
+ import _SkeletonParagraph from "./SkeletonParagraph.mjs";
6
+ import { withInstall } from "../utils/index.mjs";
7
+ const SkeletonImage = withInstall(_SkeletonImage);
8
+ const SkeletonTitle = withInstall(_SkeletonTitle);
9
+ const SkeletonAvatar = withInstall(_SkeletonAvatar);
10
+ const SkeletonParagraph = withInstall(_SkeletonParagraph);
3
11
  const Skeleton = withInstall(_Skeleton);
4
12
  var stdin_default = Skeleton;
5
13
  import { skeletonProps } from "./Skeleton.mjs";
14
+ import { skeletonImageProps } from "./SkeletonImage.mjs";
15
+ import { skeletonAvatarProps } from "./SkeletonAvatar.mjs";
16
+ import { skeletonParagraphProps } from "./SkeletonParagraph.mjs";
17
+ import { skeletonTitleProps } from "./SkeletonTitle.mjs";
6
18
  export {
7
19
  Skeleton,
20
+ SkeletonAvatar,
21
+ SkeletonImage,
22
+ SkeletonParagraph,
23
+ SkeletonTitle,
8
24
  stdin_default as default,
9
- skeletonProps
25
+ skeletonAvatarProps,
26
+ skeletonImageProps,
27
+ skeletonParagraphProps,
28
+ skeletonProps,
29
+ skeletonTitleProps
10
30
  };
@@ -1,2 +1,4 @@
1
1
  import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
2
4
  import "../index.css";
@@ -1,9 +1,13 @@
1
+ export declare type SkeletonAvatarShape = 'square' | 'round';
2
+ export declare type SkeletonImageShape = 'square' | 'round';
1
3
  export declare type SkeletonThemeVars = {
2
- skeletonRowHeight?: string;
3
- skeletonRowBackground?: string;
4
- skeletonRowMarginTop?: string;
4
+ skeletonParagraphHeight?: string;
5
+ skeletonParagraphBackground?: string;
6
+ skeletonParagraphMarginTop?: string;
5
7
  skeletonTitleWidth?: string;
6
8
  skeletonAvatarSize?: string;
7
9
  skeletonAvatarBackground?: string;
10
+ SkeletonImageSize?: string;
11
+ SkeletonImageRadius?: string;
8
12
  skeletonDuration?: string;
9
13
  };
@@ -177,13 +177,13 @@ declare const _default: import("vue").DefineComponent<{
177
177
  name: string | number;
178
178
  max: string | number;
179
179
  disabled: boolean;
180
+ longPress: boolean;
180
181
  step: string | number;
181
182
  min: string | number;
182
183
  integer: boolean;
183
184
  showPlus: boolean;
184
185
  showMinus: boolean;
185
186
  showInput: boolean;
186
- longPress: boolean;
187
187
  autoFixed: boolean;
188
188
  allowEmpty: boolean;
189
189
  disablePlus: boolean;
@@ -1,10 +1,9 @@
1
1
  import { withDirectives as _withDirectives, createVNode as _createVNode, mergeProps as _mergeProps, vShow as _vShow } from "vue";
2
2
  import { ref, watch, computed, nextTick, defineComponent } from "vue";
3
- import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK } from "../utils/index.mjs";
3
+ import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK, LONG_PRESS_START_TIME } from "../utils/index.mjs";
4
4
  import { useCustomFieldValue } from "@vant/use";
5
5
  const [name, bem] = createNamespace("stepper");
6
6
  const LONG_PRESS_INTERVAL = 200;
7
- const LONG_PRESS_START_TIME = 600;
8
7
  const isEqual = (value1, value2) => String(value1) === String(value2);
9
8
  const stepperProps = {
10
9
  min: makeNumericProp(1),
@@ -118,13 +118,13 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
118
118
  name: string | number;
119
119
  max: string | number;
120
120
  disabled: boolean;
121
+ longPress: boolean;
121
122
  step: string | number;
122
123
  min: string | number;
123
124
  integer: boolean;
124
125
  showPlus: boolean;
125
126
  showMinus: boolean;
126
127
  showInput: boolean;
127
- longPress: boolean;
128
128
  autoFixed: boolean;
129
129
  allowEmpty: boolean;
130
130
  disablePlus: boolean;
@@ -54,7 +54,7 @@ var stdin_default = defineComponent({
54
54
  }
55
55
  return 0;
56
56
  });
57
- const maxCount = computed(() => Math.ceil(Math.abs(minOffset.value) / size.value));
57
+ const maxCount = computed(() => size.value ? Math.ceil(Math.abs(minOffset.value) / size.value) : count.value);
58
58
  const trackSize = computed(() => count.value * size.value);
59
59
  const activeIndicator = computed(() => (state.active + count.value) % count.value);
60
60
  const isCorrectDirection = computed(() => {
@@ -38,7 +38,10 @@ var stdin_default = defineComponent({
38
38
  case "second":
39
39
  return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
40
40
  default:
41
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
41
+ if (process.env.NODE_ENV !== "production") {
42
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
43
+ }
44
+ return [];
42
45
  }
43
46
  }));
44
47
  watch(currentValues, (newValues) => {
@@ -1,6 +1,6 @@
1
1
  import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
2
2
  import { LoadingType } from '../loading';
3
- import type { ToastType, ToastPosition } from './types';
3
+ import type { ToastType, ToastPosition, ToastWordBreak } from './types';
4
4
  export declare const toastProps: {
5
5
  icon: StringConstructor;
6
6
  show: BooleanConstructor;
@@ -20,6 +20,7 @@ export declare const toastProps: {
20
20
  default: ToastPosition;
21
21
  };
22
22
  teleport: PropType<string | import("vue").RendererElement | null | undefined>;
23
+ wordBreak: PropType<ToastWordBreak>;
23
24
  className: PropType<unknown>;
24
25
  iconPrefix: StringConstructor;
25
26
  transition: {
@@ -53,6 +54,7 @@ declare const _default: import("vue").DefineComponent<{
53
54
  default: ToastPosition;
54
55
  };
55
56
  teleport: PropType<string | import("vue").RendererElement | null | undefined>;
57
+ wordBreak: PropType<ToastWordBreak>;
56
58
  className: PropType<unknown>;
57
59
  iconPrefix: StringConstructor;
58
60
  transition: {
@@ -84,6 +86,7 @@ declare const _default: import("vue").DefineComponent<{
84
86
  default: ToastPosition;
85
87
  };
86
88
  teleport: PropType<string | import("vue").RendererElement | null | undefined>;
89
+ wordBreak: PropType<ToastWordBreak>;
87
90
  className: PropType<unknown>;
88
91
  iconPrefix: StringConstructor;
89
92
  transition: {
@@ -17,6 +17,7 @@ const toastProps = {
17
17
  duration: makeNumberProp(2e3),
18
18
  position: makeStringProp("middle"),
19
19
  teleport: [String, Object],
20
+ wordBreak: String,
20
21
  className: unknownProp,
21
22
  iconPrefix: String,
22
23
  transition: makeStringProp("van-fade"),
@@ -108,7 +109,7 @@ var stdin_default = defineComponent({
108
109
  onMounted(toggleClickable);
109
110
  onUnmounted(toggleClickable);
110
111
  return () => _createVNode(Popup, _mergeProps({
111
- "class": [bem([props.position, {
112
+ "class": [bem([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
112
113
  [props.type]: !props.icon
113
114
  }]), props.className],
114
115
  "lockScroll": false,
@@ -1 +1 @@
1
- :root{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: 36px;--van-toast-text-min-width: 96px;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 88px;--van-toast-default-min-height: 88px;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}
1
+ :root{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: 36px;--van-toast-text-min-width: 96px;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 88px;--van-toast-default-min-height: 88px;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;word-break:break-all;text-align:center;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--break-normal{word-break:normal;word-wrap:normal}.van-toast--break-word{word-break:normal;word-wrap:break-word}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}
@@ -17,6 +17,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
17
17
  default: import("./types").ToastPosition;
18
18
  };
19
19
  teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
20
+ wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
20
21
  className: import("vue").PropType<unknown>;
21
22
  iconPrefix: StringConstructor;
22
23
  transition: {
@@ -48,6 +49,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
48
49
  default: import("./types").ToastPosition;
49
50
  };
50
51
  teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
52
+ wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
51
53
  className: import("vue").PropType<unknown>;
52
54
  iconPrefix: StringConstructor;
53
55
  transition: {
@@ -77,7 +79,7 @@ export default Toast;
77
79
  export { toastProps } from './Toast';
78
80
  export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
79
81
  export type { ToastProps } from './Toast';
80
- export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, } from './types';
82
+ export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, } from './types';
81
83
  declare module 'vue' {
82
84
  interface GlobalComponents {
83
85
  VanToast: typeof Toast;
@@ -3,6 +3,7 @@ import type { LoadingType } from '../loading';
3
3
  import type { Numeric } from '../utils';
4
4
  export declare type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
5
5
  export declare type ToastPosition = 'top' | 'middle' | 'bottom';
6
+ export declare type ToastWordBreak = 'break-all' | 'break-word' | 'normal';
6
7
  export declare type ToastOptions = {
7
8
  icon?: string;
8
9
  type?: ToastType;
@@ -18,6 +19,7 @@ export declare type ToastOptions = {
18
19
  className?: unknown;
19
20
  transition?: string;
20
21
  iconPrefix?: string;
22
+ wordBreak?: ToastWordBreak;
21
23
  loadingType?: LoadingType;
22
24
  forbidClick?: boolean;
23
25
  closeOnClick?: boolean;
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
3
3
  import { pick, extend, toArray, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils/index.mjs";
4
4
  import { bem, name, isOversize, filterFiles, isImageFile, readFileContent } from "./utils.mjs";
@@ -189,7 +189,7 @@ var stdin_default = defineComponent({
189
189
  };
190
190
  const onClickUpload = (event) => emit("clickUpload", event);
191
191
  const renderUpload = () => {
192
- if (props.modelValue.length >= props.maxCount || !props.showUpload) {
192
+ if (props.modelValue.length >= props.maxCount) {
193
193
  return;
194
194
  }
195
195
  const Input = props.readonly ? null : _createVNode("input", {
@@ -208,7 +208,7 @@ var stdin_default = defineComponent({
208
208
  "onClick": onClickUpload
209
209
  }, [slots.default(), Input]);
210
210
  }
211
- return _createVNode("div", {
211
+ return _withDirectives(_createVNode("div", {
212
212
  "class": bem("upload", {
213
213
  readonly: props.readonly
214
214
  }),
@@ -219,7 +219,7 @@ var stdin_default = defineComponent({
219
219
  "class": bem("upload-icon")
220
220
  }, null), props.uploadText && _createVNode("span", {
221
221
  "class": bem("upload-text")
222
- }, [props.uploadText]), Input]);
222
+ }, [props.uploadText]), Input]), [[_vShow, props.showUpload]]);
223
223
  };
224
224
  const chooseFile = () => {
225
225
  if (inputRef.value && !props.disabled) {
@@ -9,3 +9,4 @@ export declare const BORDER_TOP_BOTTOM: string;
9
9
  export declare const BORDER_UNSET_TOP_BOTTOM: string;
10
10
  export declare const HAPTICS_FEEDBACK = "van-haptics-feedback";
11
11
  export declare const FORM_KEY: InjectionKey<FormProvide>;
12
+ export declare const LONG_PRESS_START_TIME = 500;
@@ -7,6 +7,7 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
7
7
  const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
8
8
  const HAPTICS_FEEDBACK = "van-haptics-feedback";
9
9
  const FORM_KEY = Symbol("van-form");
10
+ const LONG_PRESS_START_TIME = 500;
10
11
  export {
11
12
  BORDER,
12
13
  BORDER_BOTTOM,
@@ -16,5 +17,6 @@ export {
16
17
  BORDER_TOP_BOTTOM,
17
18
  BORDER_UNSET_TOP_BOTTOM,
18
19
  FORM_KEY,
19
- HAPTICS_FEEDBACK
20
+ HAPTICS_FEEDBACK,
21
+ LONG_PRESS_START_TIME
20
22
  };
@@ -1 +1 @@
1
- :root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
1
+ :root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
@@ -135,7 +135,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
135
135
  };
136
136
  let bodyHeight;
137
137
  const bodyRef = (0, import_vue2.ref)();
138
- const subtitle = (0, import_vue2.ref)("");
138
+ const subtitle = (0, import_vue2.ref)({
139
+ text: "",
140
+ date: void 0
141
+ });
139
142
  const currentDate = (0, import_vue2.ref)(getInitialDate());
140
143
  const [monthRefs, setMonthRefs] = (0, import_use_refs.useRefs)();
141
144
  const dayOffset = (0, import_vue2.computed)(() => props.firstDayOfWeek ? +props.firstDayOfWeek % 7 : 0);
@@ -196,7 +199,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
196
199
  monthRefs.value[index].setVisible(visible);
197
200
  });
198
201
  if (currentMonth) {
199
- subtitle.value = currentMonth.getTitle();
202
+ subtitle.value = {
203
+ text: currentMonth.getTitle(),
204
+ date: currentMonth.date
205
+ };
200
206
  }
201
207
  };
202
208
  const scrollToDate = (targetDate) => {
@@ -386,8 +392,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
386
392
  const renderCalendar = () => (0, import_vue.createVNode)("div", {
387
393
  "class": (0, import_utils2.bem)()
388
394
  }, [(0, import_vue.createVNode)(import_CalendarHeader.default, {
395
+ "date": subtitle.value.date,
389
396
  "title": props.title,
390
- "subtitle": subtitle.value,
397
+ "subtitle": subtitle.value.text,
391
398
  "showTitle": props.showTitle,
392
399
  "showSubtitle": props.showSubtitle,
393
400
  "firstDayOfWeek": dayOffset.value,
@@ -1,10 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ date: DateConstructor;
2
3
  title: StringConstructor;
3
4
  subtitle: StringConstructor;
4
5
  showTitle: BooleanConstructor;
5
6
  showSubtitle: BooleanConstructor;
6
7
  firstDayOfWeek: NumberConstructor;
7
8
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickSubtitle"[], "clickSubtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ date: DateConstructor;
8
10
  title: StringConstructor;
9
11
  subtitle: StringConstructor;
10
12
  showTitle: BooleanConstructor;
@@ -28,6 +28,7 @@ const [name] = (0, import_utils.createNamespace)("calendar-header");
28
28
  var stdin_default = (0, import_vue2.defineComponent)({
29
29
  name,
30
30
  props: {
31
+ date: Date,
31
32
  title: String,
32
33
  subtitle: String,
33
34
  showTitle: Boolean,
@@ -51,7 +52,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
51
52
  const onClickSubtitle = (event) => emit("clickSubtitle", event);
52
53
  const renderSubtitle = () => {
53
54
  if (props.showSubtitle) {
54
- const title = slots.subtitle ? slots.subtitle() : props.subtitle;
55
+ const title = slots.subtitle ? slots.subtitle({
56
+ date: props.date,
57
+ text: props.subtitle
58
+ }) : props.subtitle;
55
59
  return (0, import_vue.createVNode)("div", {
56
60
  "class": (0, import_utils2.bem)("header-subtitle"),
57
61
  "onClick": onClickSubtitle
@@ -2,6 +2,10 @@ import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
2
2
  export declare type CellSize = 'normal' | 'large';
3
3
  export declare type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
4
4
  export declare const cellSharedProps: {
5
+ tag: {
6
+ type: PropType<keyof HTMLElementTagNameMap>;
7
+ default: keyof HTMLElementTagNameMap;
8
+ };
5
9
  icon: StringConstructor;
6
10
  size: PropType<CellSize>;
7
11
  title: (NumberConstructor | StringConstructor)[];
@@ -26,6 +30,10 @@ export declare const cellSharedProps: {
26
30
  };
27
31
  };
28
32
  export declare const cellProps: {
33
+ tag: {
34
+ type: PropType<keyof HTMLElementTagNameMap>;
35
+ default: keyof HTMLElementTagNameMap;
36
+ };
29
37
  icon: StringConstructor;
30
38
  size: PropType<CellSize>;
31
39
  title: (NumberConstructor | StringConstructor)[];
@@ -55,6 +63,10 @@ export declare const cellProps: {
55
63
  };
56
64
  export declare type CellProps = ExtractPropTypes<typeof cellProps>;
57
65
  declare const _default: import("vue").DefineComponent<{
66
+ tag: {
67
+ type: PropType<keyof HTMLElementTagNameMap>;
68
+ default: keyof HTMLElementTagNameMap;
69
+ };
58
70
  icon: StringConstructor;
59
71
  size: PropType<CellSize>;
60
72
  title: (NumberConstructor | StringConstructor)[];
@@ -82,6 +94,10 @@ declare const _default: import("vue").DefineComponent<{
82
94
  url: StringConstructor;
83
95
  replace: BooleanConstructor;
84
96
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
97
+ tag: {
98
+ type: PropType<keyof HTMLElementTagNameMap>;
99
+ default: keyof HTMLElementTagNameMap;
100
+ };
85
101
  icon: StringConstructor;
86
102
  size: PropType<CellSize>;
87
103
  title: (NumberConstructor | StringConstructor)[];
@@ -111,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
111
127
  }>>, {
112
128
  replace: boolean;
113
129
  required: boolean;
130
+ tag: keyof HTMLElementTagNameMap;
114
131
  center: boolean;
115
132
  isLink: boolean;
116
133
  border: boolean;
package/lib/cell/Cell.js CHANGED
@@ -29,6 +29,7 @@ var import_use_route = require("../composables/use-route");
29
29
  var import_icon = require("../icon");
30
30
  const [name, bem] = (0, import_utils.createNamespace)("cell");
31
31
  const cellSharedProps = {
32
+ tag: (0, import_utils.makeStringProp)("div"),
32
33
  icon: String,
33
34
  size: String,
34
35
  title: import_utils.numericProp,
@@ -107,8 +108,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
107
108
  }
108
109
  };
109
110
  return () => {
110
- var _a, _b;
111
+ var _a;
111
112
  const {
113
+ tag,
112
114
  size,
113
115
  center,
114
116
  border,
@@ -125,12 +127,17 @@ var stdin_default = (0, import_vue2.defineComponent)({
125
127
  if (size) {
126
128
  classes[size] = !!size;
127
129
  }
128
- return (0, import_vue.createVNode)("div", {
130
+ return (0, import_vue.createVNode)(tag, {
129
131
  "class": bem(classes),
130
132
  "role": clickable ? "button" : void 0,
131
133
  "tabindex": clickable ? 0 : void 0,
132
134
  "onClick": route
133
- }, [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_b = slots.extra) == null ? void 0 : _b.call(slots)]);
135
+ }, {
136
+ default: () => {
137
+ var _a2;
138
+ return [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_a2 = slots.extra) == null ? void 0 : _a2.call(slots)];
139
+ }
140
+ });
134
141
  };
135
142
  }
136
143
  });
@@ -1,4 +1,8 @@
1
1
  export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ tag: {
3
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
4
+ default: keyof HTMLElementTagNameMap;
5
+ };
2
6
  icon: StringConstructor;
3
7
  size: import("vue").PropType<import("./Cell").CellSize>;
4
8
  title: (NumberConstructor | StringConstructor)[];
@@ -26,6 +30,10 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
26
30
  url: StringConstructor;
27
31
  replace: BooleanConstructor;
28
32
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ tag: {
34
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
35
+ default: keyof HTMLElementTagNameMap;
36
+ };
29
37
  icon: StringConstructor;
30
38
  size: import("vue").PropType<import("./Cell").CellSize>;
31
39
  title: (NumberConstructor | StringConstructor)[];
@@ -55,6 +63,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
55
63
  }>>, {
56
64
  replace: boolean;
57
65
  required: boolean;
66
+ tag: keyof HTMLElementTagNameMap;
58
67
  center: boolean;
59
68
  isLink: boolean;
60
69
  border: boolean;