vant 4.9.22 → 4.9.23

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 (202) hide show
  1. package/README.md +0 -2
  2. package/es/action-bar-icon/ActionBarIcon.d.ts +4 -0
  3. package/es/action-bar-icon/ActionBarIcon.mjs +12 -4
  4. package/es/action-bar-icon/index.css +1 -1
  5. package/es/action-bar-icon/index.d.ts +3 -0
  6. package/es/field/Field.mjs +2 -1
  7. package/es/floating-panel/FloatingPanel.d.ts +13 -0
  8. package/es/floating-panel/FloatingPanel.mjs +12 -0
  9. package/es/floating-panel/index.css +1 -1
  10. package/es/floating-panel/index.d.ts +9 -0
  11. package/es/index.d.ts +1 -1
  12. package/es/index.mjs +1 -1
  13. package/es/locale/lang/ar-SA.d.ts +1 -0
  14. package/es/locale/lang/ar-SA.mjs +10 -1
  15. package/es/locale/lang/bg-BG.d.ts +1 -0
  16. package/es/locale/lang/bg-BG.mjs +1 -0
  17. package/es/locale/lang/bn-BD.d.ts +1 -0
  18. package/es/locale/lang/bn-BD.mjs +1 -0
  19. package/es/locale/lang/da-DK.d.ts +1 -0
  20. package/es/locale/lang/da-DK.mjs +1 -0
  21. package/es/locale/lang/de-DE-formal.d.ts +1 -0
  22. package/es/locale/lang/de-DE-formal.mjs +1 -0
  23. package/es/locale/lang/de-DE.d.ts +1 -0
  24. package/es/locale/lang/de-DE.mjs +1 -0
  25. package/es/locale/lang/el-GR.d.ts +1 -0
  26. package/es/locale/lang/el-GR.mjs +1 -0
  27. package/es/locale/lang/en-US.d.ts +1 -0
  28. package/es/locale/lang/en-US.mjs +1 -0
  29. package/es/locale/lang/eo-EO.d.ts +1 -0
  30. package/es/locale/lang/eo-EO.mjs +1 -0
  31. package/es/locale/lang/es-ES.d.ts +1 -0
  32. package/es/locale/lang/es-ES.mjs +1 -0
  33. package/es/locale/lang/fa-IR.d.ts +1 -0
  34. package/es/locale/lang/fa-IR.mjs +1 -0
  35. package/es/locale/lang/fr-FR.d.ts +1 -0
  36. package/es/locale/lang/fr-FR.mjs +1 -0
  37. package/es/locale/lang/he-IL.d.ts +1 -0
  38. package/es/locale/lang/he-IL.mjs +1 -0
  39. package/es/locale/lang/hi-IN.d.ts +1 -0
  40. package/es/locale/lang/hi-IN.mjs +1 -0
  41. package/es/locale/lang/id-ID.d.ts +1 -0
  42. package/es/locale/lang/id-ID.mjs +1 -0
  43. package/es/locale/lang/is-IS.d.ts +1 -0
  44. package/es/locale/lang/is-IS.mjs +1 -0
  45. package/es/locale/lang/it-IT.d.ts +1 -0
  46. package/es/locale/lang/it-IT.mjs +1 -0
  47. package/es/locale/lang/ja-JP.d.ts +1 -0
  48. package/es/locale/lang/ja-JP.mjs +1 -0
  49. package/es/locale/lang/kk-KZ.d.ts +1 -0
  50. package/es/locale/lang/kk-KZ.mjs +1 -0
  51. package/es/locale/lang/km-KH.d.ts +1 -0
  52. package/es/locale/lang/km-KH.mjs +1 -0
  53. package/es/locale/lang/ko-KR.d.ts +1 -0
  54. package/es/locale/lang/ko-KR.mjs +1 -0
  55. package/es/locale/lang/la-LA.d.ts +1 -0
  56. package/es/locale/lang/la-LA.mjs +1 -0
  57. package/es/locale/lang/mm-MN.d.ts +1 -0
  58. package/es/locale/lang/mm-MN.mjs +1 -0
  59. package/es/locale/lang/nb-NO.d.ts +1 -0
  60. package/es/locale/lang/nb-NO.mjs +1 -0
  61. package/es/locale/lang/nl-NL.d.ts +1 -0
  62. package/es/locale/lang/nl-NL.mjs +1 -0
  63. package/es/locale/lang/pl-PL.d.ts +1 -0
  64. package/es/locale/lang/pl-PL.mjs +1 -0
  65. package/es/locale/lang/pt-BR.d.ts +1 -0
  66. package/es/locale/lang/pt-BR.mjs +1 -0
  67. package/es/locale/lang/ro-RO.d.ts +1 -0
  68. package/es/locale/lang/ro-RO.mjs +1 -0
  69. package/es/locale/lang/ru-RU.d.ts +1 -0
  70. package/es/locale/lang/ru-RU.mjs +1 -0
  71. package/es/locale/lang/sr-RS.d.ts +1 -0
  72. package/es/locale/lang/sr-RS.mjs +1 -0
  73. package/es/locale/lang/sv-SE.d.ts +1 -0
  74. package/es/locale/lang/sv-SE.mjs +1 -0
  75. package/es/locale/lang/th-TH.d.ts +1 -0
  76. package/es/locale/lang/th-TH.mjs +1 -0
  77. package/es/locale/lang/tr-TR.d.ts +1 -0
  78. package/es/locale/lang/tr-TR.mjs +1 -0
  79. package/es/locale/lang/uk-UA.d.ts +1 -0
  80. package/es/locale/lang/uk-UA.mjs +1 -0
  81. package/es/locale/lang/vi-VN.d.ts +1 -0
  82. package/es/locale/lang/vi-VN.mjs +1 -0
  83. package/es/locale/lang/zh-CN.d.ts +1 -0
  84. package/es/locale/lang/zh-CN.mjs +1 -0
  85. package/es/locale/lang/zh-HK.d.ts +1 -0
  86. package/es/locale/lang/zh-HK.mjs +1 -0
  87. package/es/locale/lang/zh-TW.d.ts +1 -0
  88. package/es/locale/lang/zh-TW.mjs +1 -0
  89. package/es/popup/index.d.ts +1 -0
  90. package/es/popup/index.mjs +7 -1
  91. package/es/progress/Progress.mjs +8 -4
  92. package/es/signature/Signature.d.ts +16 -0
  93. package/es/signature/Signature.mjs +32 -1
  94. package/es/signature/index.d.ts +11 -0
  95. package/es/signature/types.d.ts +1 -0
  96. package/es/swipe-cell/SwipeCell.d.ts +16 -0
  97. package/es/swipe-cell/SwipeCell.mjs +7 -2
  98. package/es/swipe-cell/index.d.ts +11 -0
  99. package/lib/action-bar-icon/ActionBarIcon.d.ts +4 -0
  100. package/lib/action-bar-icon/ActionBarIcon.js +12 -4
  101. package/lib/action-bar-icon/index.css +1 -1
  102. package/lib/action-bar-icon/index.d.ts +3 -0
  103. package/lib/field/Field.js +2 -1
  104. package/lib/floating-panel/FloatingPanel.d.ts +13 -0
  105. package/lib/floating-panel/FloatingPanel.js +12 -0
  106. package/lib/floating-panel/index.css +1 -1
  107. package/lib/floating-panel/index.d.ts +9 -0
  108. package/lib/index.css +1 -1
  109. package/lib/index.d.ts +1 -1
  110. package/lib/index.js +1 -1
  111. package/lib/locale/lang/ar-SA.d.ts +1 -0
  112. package/lib/locale/lang/ar-SA.js +10 -1
  113. package/lib/locale/lang/bg-BG.d.ts +1 -0
  114. package/lib/locale/lang/bg-BG.js +1 -0
  115. package/lib/locale/lang/bn-BD.d.ts +1 -0
  116. package/lib/locale/lang/bn-BD.js +1 -0
  117. package/lib/locale/lang/da-DK.d.ts +1 -0
  118. package/lib/locale/lang/da-DK.js +1 -0
  119. package/lib/locale/lang/de-DE-formal.d.ts +1 -0
  120. package/lib/locale/lang/de-DE-formal.js +1 -0
  121. package/lib/locale/lang/de-DE.d.ts +1 -0
  122. package/lib/locale/lang/de-DE.js +1 -0
  123. package/lib/locale/lang/el-GR.d.ts +1 -0
  124. package/lib/locale/lang/el-GR.js +1 -0
  125. package/lib/locale/lang/en-US.d.ts +1 -0
  126. package/lib/locale/lang/en-US.js +1 -0
  127. package/lib/locale/lang/eo-EO.d.ts +1 -0
  128. package/lib/locale/lang/eo-EO.js +1 -0
  129. package/lib/locale/lang/es-ES.d.ts +1 -0
  130. package/lib/locale/lang/es-ES.js +1 -0
  131. package/lib/locale/lang/fa-IR.d.ts +1 -0
  132. package/lib/locale/lang/fa-IR.js +1 -0
  133. package/lib/locale/lang/fr-FR.d.ts +1 -0
  134. package/lib/locale/lang/fr-FR.js +1 -0
  135. package/lib/locale/lang/he-IL.d.ts +1 -0
  136. package/lib/locale/lang/he-IL.js +1 -0
  137. package/lib/locale/lang/hi-IN.d.ts +1 -0
  138. package/lib/locale/lang/hi-IN.js +1 -0
  139. package/lib/locale/lang/id-ID.d.ts +1 -0
  140. package/lib/locale/lang/id-ID.js +1 -0
  141. package/lib/locale/lang/is-IS.d.ts +1 -0
  142. package/lib/locale/lang/is-IS.js +1 -0
  143. package/lib/locale/lang/it-IT.d.ts +1 -0
  144. package/lib/locale/lang/it-IT.js +1 -0
  145. package/lib/locale/lang/ja-JP.d.ts +1 -0
  146. package/lib/locale/lang/ja-JP.js +1 -0
  147. package/lib/locale/lang/kk-KZ.d.ts +1 -0
  148. package/lib/locale/lang/kk-KZ.js +1 -0
  149. package/lib/locale/lang/km-KH.d.ts +1 -0
  150. package/lib/locale/lang/km-KH.js +1 -0
  151. package/lib/locale/lang/ko-KR.d.ts +1 -0
  152. package/lib/locale/lang/ko-KR.js +1 -0
  153. package/lib/locale/lang/la-LA.d.ts +1 -0
  154. package/lib/locale/lang/la-LA.js +1 -0
  155. package/lib/locale/lang/mm-MN.d.ts +1 -0
  156. package/lib/locale/lang/mm-MN.js +1 -0
  157. package/lib/locale/lang/nb-NO.d.ts +1 -0
  158. package/lib/locale/lang/nb-NO.js +1 -0
  159. package/lib/locale/lang/nl-NL.d.ts +1 -0
  160. package/lib/locale/lang/nl-NL.js +1 -0
  161. package/lib/locale/lang/pl-PL.d.ts +1 -0
  162. package/lib/locale/lang/pl-PL.js +1 -0
  163. package/lib/locale/lang/pt-BR.d.ts +1 -0
  164. package/lib/locale/lang/pt-BR.js +1 -0
  165. package/lib/locale/lang/ro-RO.d.ts +1 -0
  166. package/lib/locale/lang/ro-RO.js +1 -0
  167. package/lib/locale/lang/ru-RU.d.ts +1 -0
  168. package/lib/locale/lang/ru-RU.js +1 -0
  169. package/lib/locale/lang/sr-RS.d.ts +1 -0
  170. package/lib/locale/lang/sr-RS.js +1 -0
  171. package/lib/locale/lang/sv-SE.d.ts +1 -0
  172. package/lib/locale/lang/sv-SE.js +1 -0
  173. package/lib/locale/lang/th-TH.d.ts +1 -0
  174. package/lib/locale/lang/th-TH.js +1 -0
  175. package/lib/locale/lang/tr-TR.d.ts +1 -0
  176. package/lib/locale/lang/tr-TR.js +1 -0
  177. package/lib/locale/lang/uk-UA.d.ts +1 -0
  178. package/lib/locale/lang/uk-UA.js +1 -0
  179. package/lib/locale/lang/vi-VN.d.ts +1 -0
  180. package/lib/locale/lang/vi-VN.js +1 -0
  181. package/lib/locale/lang/zh-CN.d.ts +1 -0
  182. package/lib/locale/lang/zh-CN.js +1 -0
  183. package/lib/locale/lang/zh-HK.d.ts +1 -0
  184. package/lib/locale/lang/zh-HK.js +1 -0
  185. package/lib/locale/lang/zh-TW.d.ts +1 -0
  186. package/lib/locale/lang/zh-TW.js +1 -0
  187. package/lib/popup/index.d.ts +1 -0
  188. package/lib/popup/index.js +4 -1
  189. package/lib/progress/Progress.js +8 -4
  190. package/lib/signature/Signature.d.ts +16 -0
  191. package/lib/signature/Signature.js +32 -1
  192. package/lib/signature/index.d.ts +11 -0
  193. package/lib/signature/types.d.ts +1 -0
  194. package/lib/swipe-cell/SwipeCell.d.ts +16 -0
  195. package/lib/swipe-cell/SwipeCell.js +7 -2
  196. package/lib/swipe-cell/index.d.ts +11 -0
  197. package/lib/vant.cjs.js +77 -13
  198. package/lib/vant.es.js +77 -13
  199. package/lib/vant.js +80 -16
  200. package/lib/vant.min.js +3 -3
  201. package/lib/web-types.json +1 -1
  202. package/package.json +33 -33
@@ -13,6 +13,7 @@ export declare const actionBarIconProps: {
13
13
  iconClass: PropType<unknown>;
14
14
  badgeProps: PropType<Partial<BadgeProps>>;
15
15
  iconPrefix: StringConstructor;
16
+ disabled: BooleanConstructor;
16
17
  };
17
18
  export type ActionBarIconProps = ExtractPropTypes<typeof actionBarIconProps>;
18
19
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
@@ -28,6 +29,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
28
29
  iconClass: PropType<unknown>;
29
30
  badgeProps: PropType<Partial<BadgeProps>>;
30
31
  iconPrefix: StringConstructor;
32
+ disabled: BooleanConstructor;
31
33
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
32
34
  to: PropType<import("vue-router").RouteLocationRaw>;
33
35
  url: StringConstructor;
@@ -41,8 +43,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
41
43
  iconClass: PropType<unknown>;
42
44
  badgeProps: PropType<Partial<BadgeProps>>;
43
45
  iconPrefix: StringConstructor;
46
+ disabled: BooleanConstructor;
44
47
  }>> & Readonly<{}>, {
45
48
  replace: boolean;
46
49
  dot: boolean;
50
+ disabled: boolean;
47
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
48
52
  export default _default;
@@ -37,7 +37,8 @@ const actionBarIconProps = (0, import_utils.extend)({}, import_use_route.routePr
37
37
  badge: import_utils.numericProp,
38
38
  iconClass: import_utils.unknownProp,
39
39
  badgeProps: Object,
40
- iconPrefix: String
40
+ iconPrefix: String,
41
+ disabled: Boolean
41
42
  });
42
43
  var stdin_default = (0, import_vue.defineComponent)({
43
44
  name,
@@ -77,11 +78,18 @@ var stdin_default = (0, import_vue.defineComponent)({
77
78
  "classPrefix": iconPrefix
78
79
  }, null);
79
80
  };
81
+ const onClick = () => {
82
+ if (!props.disabled) {
83
+ route();
84
+ }
85
+ };
80
86
  return () => (0, import_vue.createVNode)("div", {
81
87
  "role": "button",
82
- "class": bem(),
83
- "tabindex": 0,
84
- "onClick": route
88
+ "class": bem({
89
+ disabled: props.disabled
90
+ }),
91
+ "tabindex": props.disabled ? -1 : 0,
92
+ "onClick": onClick
85
93
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
86
94
  }
87
95
  });
@@ -1 +1 @@
1
- :root,:host{--van-action-bar-icon-width: 48px;--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: 18px;--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}
1
+ :root,:host{--van-action-bar-icon-width: 48px;--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: 18px;--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon--disabled{color:var(--van-text-color-3);cursor:not-allowed}.van-action-bar-icon--disabled:active{background-color:transparent}.van-action-bar-icon--disabled .van-action-bar-icon__icon{color:var(--van-text-color-3)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}
@@ -11,6 +11,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
11
11
  iconClass: import("vue").PropType<unknown>;
12
12
  badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
13
13
  iconPrefix: StringConstructor;
14
+ disabled: BooleanConstructor;
14
15
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
16
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
16
17
  url: StringConstructor;
@@ -24,9 +25,11 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
24
25
  iconClass: import("vue").PropType<unknown>;
25
26
  badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
26
27
  iconPrefix: StringConstructor;
28
+ disabled: BooleanConstructor;
27
29
  }>> & Readonly<{}>, {
28
30
  replace: boolean;
29
31
  dot: boolean;
32
+ disabled: boolean;
30
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
31
34
  export default ActionBarIcon;
32
35
  export { actionBarIconProps } from './ActionBarIcon';
@@ -228,10 +228,11 @@ var stdin_default = (0, import_vue.defineComponent)({
228
228
  if (modelValue && (0, import_utils2.getStringLength)(modelValue) === +maxlength) {
229
229
  return modelValue;
230
230
  }
231
- const selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
231
+ let selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
232
232
  if (state.focused && selectionEnd) {
233
233
  const valueArr = [...value];
234
234
  const exceededLength = valueArr.length - +maxlength;
235
+ selectionEnd = (0, import_utils2.getStringLength)(value.slice(0, selectionEnd));
235
236
  valueArr.splice(selectionEnd - exceededLength, exceededLength);
236
237
  return valueArr.join("");
237
238
  }
@@ -16,6 +16,10 @@ export declare const floatingPanelProps: {
16
16
  type: BooleanConstructor;
17
17
  default: true;
18
18
  };
19
+ draggable: {
20
+ type: BooleanConstructor;
21
+ default: true;
22
+ };
19
23
  contentDraggable: {
20
24
  type: BooleanConstructor;
21
25
  default: true;
@@ -44,6 +48,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
44
48
  type: BooleanConstructor;
45
49
  default: true;
46
50
  };
51
+ draggable: {
52
+ type: BooleanConstructor;
53
+ default: true;
54
+ };
47
55
  contentDraggable: {
48
56
  type: BooleanConstructor;
49
57
  default: true;
@@ -70,6 +78,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
70
78
  type: BooleanConstructor;
71
79
  default: true;
72
80
  };
81
+ draggable: {
82
+ type: BooleanConstructor;
83
+ default: true;
84
+ };
73
85
  contentDraggable: {
74
86
  type: BooleanConstructor;
75
87
  default: true;
@@ -89,6 +101,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
89
101
  lockScroll: boolean;
90
102
  magnetic: boolean;
91
103
  anchors: number[];
104
+ draggable: boolean;
92
105
  contentDraggable: boolean;
93
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
94
107
  export default _default;
@@ -32,6 +32,7 @@ const floatingPanelProps = {
32
32
  anchors: (0, import_utils.makeArrayProp)(),
33
33
  duration: (0, import_utils.makeNumericProp)(0.3),
34
34
  magnetic: import_utils.truthProp,
35
+ draggable: import_utils.truthProp,
35
36
  contentDraggable: import_utils.truthProp,
36
37
  lockScroll: Boolean,
37
38
  safeAreaInsetBottom: import_utils.truthProp
@@ -81,6 +82,7 @@ var stdin_default = (0, import_vue.defineComponent)({
81
82
  let maxScroll = -1;
82
83
  const touch = (0, import_use_touch.useTouch)();
83
84
  const onTouchstart = (e) => {
85
+ if (!props.draggable) return;
84
86
  touch.start(e);
85
87
  dragging.value = true;
86
88
  startY = -height.value;
@@ -88,6 +90,7 @@ var stdin_default = (0, import_vue.defineComponent)({
88
90
  };
89
91
  const onTouchmove = (e) => {
90
92
  var _a;
93
+ if (!props.draggable) return;
91
94
  touch.move(e);
92
95
  const target = e.target;
93
96
  if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
@@ -107,7 +110,13 @@ var stdin_default = (0, import_vue.defineComponent)({
107
110
  };
108
111
  const onTouchend = () => {
109
112
  maxScroll = -1;
113
+ if (!dragging.value) {
114
+ return;
115
+ }
110
116
  dragging.value = false;
117
+ if (!props.draggable) {
118
+ return;
119
+ }
111
120
  if (props.magnetic) {
112
121
  height.value = (0, import_utils.closest)(anchors.value, height.value);
113
122
  } else {
@@ -136,6 +145,9 @@ var stdin_default = (0, import_vue.defineComponent)({
136
145
  if (slots.header) {
137
146
  return slots.header();
138
147
  }
148
+ if (!props.draggable) {
149
+ return null;
150
+ }
139
151
  return (0, import_vue.createVNode)("div", {
140
152
  "class": bem("header")
141
153
  }, [(0, import_vue.createVNode)("div", {
@@ -1 +1 @@
1
- :root,:host{--van-floating-panel-border-radius: 16px;--van-floating-panel-header-height: 30px;--van-floating-panel-z-index: 999;--van-floating-panel-background: var(--van-background-2);--van-floating-panel-bar-width: 20px;--van-floating-panel-bar-height: 3px;--van-floating-panel-bar-color: var(--van-gray-5)}.van-floating-panel{position:fixed;left:0;bottom:0;width:100vw;z-index:var(--van-floating-panel-z-index);display:flex;flex-direction:column;touch-action:none;border-top-left-radius:var(--van-floating-panel-border-radius);border-top-right-radius:var(--van-floating-panel-border-radius);background:var(--van-floating-panel-background);will-change:transform}.van-floating-panel:after{content:"";display:block;position:absolute;bottom:-100vh;height:100vh;width:100vw;background-color:inherit}.van-floating-panel__header{height:var(--van-floating-panel-header-height);display:flex;justify-content:center;align-items:center;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;user-select:none}.van-floating-panel__header-bar{height:var(--van-floating-panel-bar-height);width:var(--van-floating-panel-bar-width);border-radius:var(--van-radius-md);background:var(--van-floating-panel-bar-color)}.van-floating-panel__content{flex:1;overflow-y:auto;background-color:var(--van-floating-panel-background)}
1
+ :root,:host{--van-floating-panel-border-radius: 16px;--van-floating-panel-header-height: 30px;--van-floating-panel-z-index: 999;--van-floating-panel-background: var(--van-background-2);--van-floating-panel-bar-width: 20px;--van-floating-panel-bar-height: 3px;--van-floating-panel-bar-color: var(--van-gray-5)}.van-floating-panel{position:fixed;left:0;bottom:0;width:100vw;z-index:var(--van-floating-panel-z-index);display:flex;flex-direction:column;touch-action:none;border-top-left-radius:var(--van-floating-panel-border-radius);border-top-right-radius:var(--van-floating-panel-border-radius);background:var(--van-floating-panel-background);will-change:transform}.van-floating-panel:after{content:"";display:block;position:absolute;bottom:-100vh;height:100vh;width:100vw;background-color:inherit}.van-floating-panel__header{height:var(--van-floating-panel-header-height);display:flex;justify-content:center;align-items:center;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;user-select:none}.van-floating-panel__header-bar{height:var(--van-floating-panel-bar-height);width:var(--van-floating-panel-bar-width);border-radius:var(--van-radius-md);background:var(--van-floating-panel-bar-color)}.van-floating-panel__content{flex:1;overflow-y:auto;background-color:var(--van-floating-panel-background);-webkit-overflow-scrolling:touch}
@@ -15,6 +15,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
15
15
  type: BooleanConstructor;
16
16
  default: true;
17
17
  };
18
+ draggable: {
19
+ type: BooleanConstructor;
20
+ default: true;
21
+ };
18
22
  contentDraggable: {
19
23
  type: BooleanConstructor;
20
24
  default: true;
@@ -41,6 +45,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
41
45
  type: BooleanConstructor;
42
46
  default: true;
43
47
  };
48
+ draggable: {
49
+ type: BooleanConstructor;
50
+ default: true;
51
+ };
44
52
  contentDraggable: {
45
53
  type: BooleanConstructor;
46
54
  default: true;
@@ -60,6 +68,7 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
60
68
  lockScroll: boolean;
61
69
  magnetic: boolean;
62
70
  anchors: number[];
71
+ draggable: boolean;
63
72
  contentDraggable: boolean;
64
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
65
74
  export default FloatingPanel;