vant 4.9.21 → 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 (276) hide show
  1. package/README.md +2 -4
  2. package/es/action-bar-button/index.css +1 -1
  3. package/es/action-bar-icon/ActionBarIcon.d.ts +4 -0
  4. package/es/action-bar-icon/ActionBarIcon.mjs +12 -4
  5. package/es/action-bar-icon/index.css +1 -1
  6. package/es/action-bar-icon/index.d.ts +3 -0
  7. package/es/action-sheet/ActionSheet.d.ts +1 -1
  8. package/es/action-sheet/index.d.ts +1 -1
  9. package/es/address-list/AddressListItem.d.ts +1 -1
  10. package/es/area/Area.d.ts +1 -1
  11. package/es/area/index.d.ts +1 -1
  12. package/es/calendar/index.css +1 -1
  13. package/es/composables/on-popup-reopen.mjs +1 -1
  14. package/es/composables/use-tab-status.mjs +2 -2
  15. package/es/composables/use-touch.mjs +4 -4
  16. package/es/date-picker/DatePicker.d.ts +1 -1
  17. package/es/date-picker/index.d.ts +1 -1
  18. package/es/dialog/Dialog.d.ts +1 -1
  19. package/es/dialog/index.css +1 -1
  20. package/es/dialog/index.d.ts +1 -1
  21. package/es/field/Field.d.ts +5 -5
  22. package/es/field/Field.mjs +5 -4
  23. package/es/field/index.d.ts +3 -3
  24. package/es/field/types.d.ts +1 -0
  25. package/es/floating-panel/FloatingPanel.d.ts +26 -0
  26. package/es/floating-panel/FloatingPanel.mjs +26 -2
  27. package/es/floating-panel/index.css +1 -1
  28. package/es/floating-panel/index.d.ts +18 -0
  29. package/es/grid/Grid.d.ts +1 -1
  30. package/es/grid/index.d.ts +1 -1
  31. package/es/index.d.ts +1 -1
  32. package/es/index.mjs +1 -1
  33. package/es/list/List.d.ts +13 -3
  34. package/es/list/List.mjs +5 -2
  35. package/es/list/index.d.ts +9 -2
  36. package/es/locale/lang/ar-SA.d.ts +1 -0
  37. package/es/locale/lang/ar-SA.mjs +10 -1
  38. package/es/locale/lang/bg-BG.d.ts +1 -0
  39. package/es/locale/lang/bg-BG.mjs +1 -0
  40. package/es/locale/lang/bn-BD.d.ts +1 -0
  41. package/es/locale/lang/bn-BD.mjs +1 -0
  42. package/es/locale/lang/da-DK.d.ts +1 -0
  43. package/es/locale/lang/da-DK.mjs +1 -0
  44. package/es/locale/lang/de-DE-formal.d.ts +1 -0
  45. package/es/locale/lang/de-DE-formal.mjs +1 -0
  46. package/es/locale/lang/de-DE.d.ts +1 -0
  47. package/es/locale/lang/de-DE.mjs +1 -0
  48. package/es/locale/lang/el-GR.d.ts +1 -0
  49. package/es/locale/lang/el-GR.mjs +1 -0
  50. package/es/locale/lang/en-US.d.ts +1 -0
  51. package/es/locale/lang/en-US.mjs +1 -0
  52. package/es/locale/lang/eo-EO.d.ts +1 -0
  53. package/es/locale/lang/eo-EO.mjs +1 -0
  54. package/es/locale/lang/es-ES.d.ts +1 -0
  55. package/es/locale/lang/es-ES.mjs +1 -0
  56. package/es/locale/lang/fa-IR.d.ts +1 -0
  57. package/es/locale/lang/fa-IR.mjs +1 -0
  58. package/es/locale/lang/fr-FR.d.ts +1 -0
  59. package/es/locale/lang/fr-FR.mjs +1 -0
  60. package/es/locale/lang/he-IL.d.ts +1 -0
  61. package/es/locale/lang/he-IL.mjs +1 -0
  62. package/es/locale/lang/hi-IN.d.ts +1 -0
  63. package/es/locale/lang/hi-IN.mjs +1 -0
  64. package/es/locale/lang/id-ID.d.ts +1 -0
  65. package/es/locale/lang/id-ID.mjs +1 -0
  66. package/es/locale/lang/is-IS.d.ts +1 -0
  67. package/es/locale/lang/is-IS.mjs +1 -0
  68. package/es/locale/lang/it-IT.d.ts +1 -0
  69. package/es/locale/lang/it-IT.mjs +1 -0
  70. package/es/locale/lang/ja-JP.d.ts +1 -0
  71. package/es/locale/lang/ja-JP.mjs +1 -0
  72. package/es/locale/lang/kk-KZ.d.ts +1 -0
  73. package/es/locale/lang/kk-KZ.mjs +1 -0
  74. package/es/locale/lang/km-KH.d.ts +1 -0
  75. package/es/locale/lang/km-KH.mjs +1 -0
  76. package/es/locale/lang/ko-KR.d.ts +1 -0
  77. package/es/locale/lang/ko-KR.mjs +1 -0
  78. package/es/locale/lang/la-LA.d.ts +1 -0
  79. package/es/locale/lang/la-LA.mjs +1 -0
  80. package/es/locale/lang/mm-MN.d.ts +1 -0
  81. package/es/locale/lang/mm-MN.mjs +1 -0
  82. package/es/locale/lang/nb-NO.d.ts +1 -0
  83. package/es/locale/lang/nb-NO.mjs +1 -0
  84. package/es/locale/lang/nl-NL.d.ts +1 -0
  85. package/es/locale/lang/nl-NL.mjs +1 -0
  86. package/es/locale/lang/pl-PL.d.ts +1 -0
  87. package/es/locale/lang/pl-PL.mjs +1 -0
  88. package/es/locale/lang/pt-BR.d.ts +1 -0
  89. package/es/locale/lang/pt-BR.mjs +1 -0
  90. package/es/locale/lang/ro-RO.d.ts +1 -0
  91. package/es/locale/lang/ro-RO.mjs +1 -0
  92. package/es/locale/lang/ru-RU.d.ts +1 -0
  93. package/es/locale/lang/ru-RU.mjs +1 -0
  94. package/es/locale/lang/sr-RS.d.ts +1 -0
  95. package/es/locale/lang/sr-RS.mjs +1 -0
  96. package/es/locale/lang/sv-SE.d.ts +1 -0
  97. package/es/locale/lang/sv-SE.mjs +1 -0
  98. package/es/locale/lang/th-TH.d.ts +1 -0
  99. package/es/locale/lang/th-TH.mjs +1 -0
  100. package/es/locale/lang/tr-TR.d.ts +1 -0
  101. package/es/locale/lang/tr-TR.mjs +1 -0
  102. package/es/locale/lang/uk-UA.d.ts +1 -0
  103. package/es/locale/lang/uk-UA.mjs +1 -0
  104. package/es/locale/lang/vi-VN.d.ts +1 -0
  105. package/es/locale/lang/vi-VN.mjs +1 -0
  106. package/es/locale/lang/zh-CN.d.ts +1 -0
  107. package/es/locale/lang/zh-CN.mjs +1 -0
  108. package/es/locale/lang/zh-HK.d.ts +1 -0
  109. package/es/locale/lang/zh-HK.mjs +1 -0
  110. package/es/locale/lang/zh-TW.d.ts +1 -0
  111. package/es/locale/lang/zh-TW.mjs +1 -0
  112. package/es/picker/Picker.d.ts +1 -1
  113. package/es/picker/index.d.ts +1 -1
  114. package/es/popup/index.d.ts +1 -0
  115. package/es/popup/index.mjs +7 -1
  116. package/es/progress/Progress.mjs +8 -4
  117. package/es/search/Search.d.ts +4 -4
  118. package/es/search/Search.mjs +1 -0
  119. package/es/search/index.d.ts +3 -3
  120. package/es/share-sheet/ShareSheet.d.ts +1 -1
  121. package/es/share-sheet/index.d.ts +1 -1
  122. package/es/signature/Signature.d.ts +16 -0
  123. package/es/signature/Signature.mjs +32 -1
  124. package/es/signature/index.d.ts +11 -0
  125. package/es/signature/types.d.ts +1 -0
  126. package/es/stepper/Stepper.mjs +3 -0
  127. package/es/swipe-cell/SwipeCell.d.ts +16 -0
  128. package/es/swipe-cell/SwipeCell.mjs +7 -2
  129. package/es/swipe-cell/index.d.ts +11 -0
  130. package/es/tabs/Tabs.d.ts +1 -1
  131. package/es/tabs/index.d.ts +1 -1
  132. package/es/time-picker/TimePicker.d.ts +1 -1
  133. package/es/time-picker/TimePicker.mjs +1 -1
  134. package/es/time-picker/index.d.ts +1 -1
  135. package/es/utils/constant.mjs +1 -1
  136. package/lib/action-bar-button/index.css +1 -1
  137. package/lib/action-bar-icon/ActionBarIcon.d.ts +4 -0
  138. package/lib/action-bar-icon/ActionBarIcon.js +12 -4
  139. package/lib/action-bar-icon/index.css +1 -1
  140. package/lib/action-bar-icon/index.d.ts +3 -0
  141. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  142. package/lib/action-sheet/index.d.ts +1 -1
  143. package/lib/address-list/AddressListItem.d.ts +1 -1
  144. package/lib/area/Area.d.ts +1 -1
  145. package/lib/area/index.d.ts +1 -1
  146. package/lib/calendar/index.css +1 -1
  147. package/lib/composables/on-popup-reopen.js +1 -1
  148. package/lib/composables/use-tab-status.js +2 -2
  149. package/lib/composables/use-touch.js +4 -4
  150. package/lib/date-picker/DatePicker.d.ts +1 -1
  151. package/lib/date-picker/index.d.ts +1 -1
  152. package/lib/dialog/Dialog.d.ts +1 -1
  153. package/lib/dialog/index.css +1 -1
  154. package/lib/dialog/index.d.ts +1 -1
  155. package/lib/field/Field.d.ts +5 -5
  156. package/lib/field/Field.js +5 -4
  157. package/lib/field/index.d.ts +3 -3
  158. package/lib/field/types.d.ts +1 -0
  159. package/lib/floating-panel/FloatingPanel.d.ts +26 -0
  160. package/lib/floating-panel/FloatingPanel.js +26 -2
  161. package/lib/floating-panel/index.css +1 -1
  162. package/lib/floating-panel/index.d.ts +18 -0
  163. package/lib/grid/Grid.d.ts +1 -1
  164. package/lib/grid/index.d.ts +1 -1
  165. package/lib/index.css +1 -1
  166. package/lib/index.d.ts +1 -1
  167. package/lib/index.js +1 -1
  168. package/lib/list/List.d.ts +13 -3
  169. package/lib/list/List.js +5 -2
  170. package/lib/list/index.d.ts +9 -2
  171. package/lib/locale/lang/ar-SA.d.ts +1 -0
  172. package/lib/locale/lang/ar-SA.js +10 -1
  173. package/lib/locale/lang/bg-BG.d.ts +1 -0
  174. package/lib/locale/lang/bg-BG.js +1 -0
  175. package/lib/locale/lang/bn-BD.d.ts +1 -0
  176. package/lib/locale/lang/bn-BD.js +1 -0
  177. package/lib/locale/lang/da-DK.d.ts +1 -0
  178. package/lib/locale/lang/da-DK.js +1 -0
  179. package/lib/locale/lang/de-DE-formal.d.ts +1 -0
  180. package/lib/locale/lang/de-DE-formal.js +1 -0
  181. package/lib/locale/lang/de-DE.d.ts +1 -0
  182. package/lib/locale/lang/de-DE.js +1 -0
  183. package/lib/locale/lang/el-GR.d.ts +1 -0
  184. package/lib/locale/lang/el-GR.js +1 -0
  185. package/lib/locale/lang/en-US.d.ts +1 -0
  186. package/lib/locale/lang/en-US.js +1 -0
  187. package/lib/locale/lang/eo-EO.d.ts +1 -0
  188. package/lib/locale/lang/eo-EO.js +1 -0
  189. package/lib/locale/lang/es-ES.d.ts +1 -0
  190. package/lib/locale/lang/es-ES.js +1 -0
  191. package/lib/locale/lang/fa-IR.d.ts +1 -0
  192. package/lib/locale/lang/fa-IR.js +1 -0
  193. package/lib/locale/lang/fr-FR.d.ts +1 -0
  194. package/lib/locale/lang/fr-FR.js +1 -0
  195. package/lib/locale/lang/he-IL.d.ts +1 -0
  196. package/lib/locale/lang/he-IL.js +1 -0
  197. package/lib/locale/lang/hi-IN.d.ts +1 -0
  198. package/lib/locale/lang/hi-IN.js +1 -0
  199. package/lib/locale/lang/id-ID.d.ts +1 -0
  200. package/lib/locale/lang/id-ID.js +1 -0
  201. package/lib/locale/lang/is-IS.d.ts +1 -0
  202. package/lib/locale/lang/is-IS.js +1 -0
  203. package/lib/locale/lang/it-IT.d.ts +1 -0
  204. package/lib/locale/lang/it-IT.js +1 -0
  205. package/lib/locale/lang/ja-JP.d.ts +1 -0
  206. package/lib/locale/lang/ja-JP.js +1 -0
  207. package/lib/locale/lang/kk-KZ.d.ts +1 -0
  208. package/lib/locale/lang/kk-KZ.js +1 -0
  209. package/lib/locale/lang/km-KH.d.ts +1 -0
  210. package/lib/locale/lang/km-KH.js +1 -0
  211. package/lib/locale/lang/ko-KR.d.ts +1 -0
  212. package/lib/locale/lang/ko-KR.js +1 -0
  213. package/lib/locale/lang/la-LA.d.ts +1 -0
  214. package/lib/locale/lang/la-LA.js +1 -0
  215. package/lib/locale/lang/mm-MN.d.ts +1 -0
  216. package/lib/locale/lang/mm-MN.js +1 -0
  217. package/lib/locale/lang/nb-NO.d.ts +1 -0
  218. package/lib/locale/lang/nb-NO.js +1 -0
  219. package/lib/locale/lang/nl-NL.d.ts +1 -0
  220. package/lib/locale/lang/nl-NL.js +1 -0
  221. package/lib/locale/lang/pl-PL.d.ts +1 -0
  222. package/lib/locale/lang/pl-PL.js +1 -0
  223. package/lib/locale/lang/pt-BR.d.ts +1 -0
  224. package/lib/locale/lang/pt-BR.js +1 -0
  225. package/lib/locale/lang/ro-RO.d.ts +1 -0
  226. package/lib/locale/lang/ro-RO.js +1 -0
  227. package/lib/locale/lang/ru-RU.d.ts +1 -0
  228. package/lib/locale/lang/ru-RU.js +1 -0
  229. package/lib/locale/lang/sr-RS.d.ts +1 -0
  230. package/lib/locale/lang/sr-RS.js +1 -0
  231. package/lib/locale/lang/sv-SE.d.ts +1 -0
  232. package/lib/locale/lang/sv-SE.js +1 -0
  233. package/lib/locale/lang/th-TH.d.ts +1 -0
  234. package/lib/locale/lang/th-TH.js +1 -0
  235. package/lib/locale/lang/tr-TR.d.ts +1 -0
  236. package/lib/locale/lang/tr-TR.js +1 -0
  237. package/lib/locale/lang/uk-UA.d.ts +1 -0
  238. package/lib/locale/lang/uk-UA.js +1 -0
  239. package/lib/locale/lang/vi-VN.d.ts +1 -0
  240. package/lib/locale/lang/vi-VN.js +1 -0
  241. package/lib/locale/lang/zh-CN.d.ts +1 -0
  242. package/lib/locale/lang/zh-CN.js +1 -0
  243. package/lib/locale/lang/zh-HK.d.ts +1 -0
  244. package/lib/locale/lang/zh-HK.js +1 -0
  245. package/lib/locale/lang/zh-TW.d.ts +1 -0
  246. package/lib/locale/lang/zh-TW.js +1 -0
  247. package/lib/picker/Picker.d.ts +1 -1
  248. package/lib/picker/index.d.ts +1 -1
  249. package/lib/popup/index.d.ts +1 -0
  250. package/lib/popup/index.js +4 -1
  251. package/lib/progress/Progress.js +8 -4
  252. package/lib/search/Search.d.ts +4 -4
  253. package/lib/search/Search.js +1 -0
  254. package/lib/search/index.d.ts +3 -3
  255. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  256. package/lib/share-sheet/index.d.ts +1 -1
  257. package/lib/signature/Signature.d.ts +16 -0
  258. package/lib/signature/Signature.js +32 -1
  259. package/lib/signature/index.d.ts +11 -0
  260. package/lib/signature/types.d.ts +1 -0
  261. package/lib/stepper/Stepper.js +3 -0
  262. package/lib/swipe-cell/SwipeCell.d.ts +16 -0
  263. package/lib/swipe-cell/SwipeCell.js +7 -2
  264. package/lib/swipe-cell/index.d.ts +11 -0
  265. package/lib/tabs/Tabs.d.ts +1 -1
  266. package/lib/tabs/index.d.ts +1 -1
  267. package/lib/time-picker/TimePicker.d.ts +1 -1
  268. package/lib/time-picker/TimePicker.js +1 -1
  269. package/lib/time-picker/index.d.ts +1 -1
  270. package/lib/utils/constant.js +1 -1
  271. package/lib/vant.cjs.js +108 -25
  272. package/lib/vant.es.js +108 -25
  273. package/lib/vant.js +118 -35
  274. package/lib/vant.min.js +3 -3
  275. package/lib/web-types.json +1 -1
  276. package/package.json +35 -35
package/README.md CHANGED
@@ -122,18 +122,16 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
122
122
  | Project | Description |
123
123
  | --- | --- |
124
124
  | [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
125
- | [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
126
125
  | [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
127
126
  | [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
128
127
  | [Taroify](https://github.com/mallfoundry/taroify) | Taroify is the Taro version of Vant |
129
128
  | [vant-playground](https://github.com/LadyChatterleyLover/vant-playground) | Vant Playground |
130
129
  | [sfc-playground-vant](https://github.com/zhixiaoqiang/sfc-playground-vant) | Vant Playground |
131
130
  | [vue3-h5-template](https://github.com/yulimchen/vue3-h5-template) | Mobile project template based on Vant |
132
- | [vue3-vant-mobile](https://github.com/easy-temps/vue3-vant-mobile) | Mobile project template based on Vant |
131
+ | [vue3-vant-mobile](https://github.com/vue-zone/vue3-vant-mobile) | Mobile project template based on Vant, out of the box |
133
132
  | [vscode-common-intellisense](https://github.com/Simon-He95/vscode-common-intellisense) | A VS Code extension that provides better intellisense to Vant developers |
134
- | [nuxt-vant-mobile](https://github.com/easy-temps/nuxt-vant-mobile) | Nuxt _⁴_ project template based on Vant, out of the box |
133
+ | [nuxt-vant-mobile](https://github.com/vue-zone/nuxt-vant-mobile) | Nuxt _⁴_ project template based on Vant, out of the box |
135
134
  | [mobvue](https://github.com/un-pany/mobvue) | A well-crafted mobile web app template |
136
- | [novlan1/press-ui](https://github.com/novlan1/press-ui) | Uni APP mobile UI Components based on Vant |
137
135
 
138
136
  ## Links
139
137
 
@@ -1 +1 @@
1
- :root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
1
+ :root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media(max-width:321px){.van-action-bar-button{font-size:13px}}
@@ -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;
@@ -14,7 +14,8 @@ const actionBarIconProps = extend({}, routeProps, {
14
14
  badge: numericProp,
15
15
  iconClass: unknownProp,
16
16
  badgeProps: Object,
17
- iconPrefix: String
17
+ iconPrefix: String,
18
+ disabled: Boolean
18
19
  });
19
20
  var stdin_default = defineComponent({
20
21
  name,
@@ -54,11 +55,18 @@ var stdin_default = defineComponent({
54
55
  "classPrefix": iconPrefix
55
56
  }, null);
56
57
  };
58
+ const onClick = () => {
59
+ if (!props.disabled) {
60
+ route();
61
+ }
62
+ };
57
63
  return () => _createVNode("div", {
58
64
  "role": "button",
59
- "class": bem(),
60
- "tabindex": 0,
61
- "onClick": route
65
+ "class": bem({
66
+ disabled: props.disabled
67
+ }),
68
+ "tabindex": props.disabled ? -1 : 0,
69
+ "onClick": onClick
62
70
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
63
71
  }
64
72
  });
@@ -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';
@@ -178,8 +178,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
178
178
  };
179
179
  }>> & Readonly<{
180
180
  onSelect?: ((...args: any[]) => any) | undefined;
181
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
182
181
  onCancel?: ((...args: any[]) => any) | undefined;
182
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
183
183
  }>, {
184
184
  round: boolean;
185
185
  overlay: boolean;
@@ -110,8 +110,8 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
110
110
  };
111
111
  }>> & Readonly<{
112
112
  onSelect?: ((...args: any[]) => any) | undefined;
113
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
114
113
  onCancel?: ((...args: any[]) => any) | undefined;
114
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
115
115
  }>, {
116
116
  round: boolean;
117
117
  overlay: boolean;
@@ -34,8 +34,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
34
34
  default: string;
35
35
  };
36
36
  }>> & Readonly<{
37
- onClick?: ((...args: any[]) => any) | undefined;
38
37
  onSelect?: ((...args: any[]) => any) | undefined;
38
+ onClick?: ((...args: any[]) => any) | undefined;
39
39
  onEdit?: ((...args: any[]) => any) | undefined;
40
40
  }>, {
41
41
  disabled: boolean;
package/es/area/Area.d.ts CHANGED
@@ -118,8 +118,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<import(".
118
118
  };
119
119
  }>> & Readonly<{
120
120
  onChange?: ((...args: any[]) => any) | undefined;
121
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
122
121
  onCancel?: ((...args: any[]) => any) | undefined;
122
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
123
123
  onConfirm?: ((...args: any[]) => any) | undefined;
124
124
  }>, {
125
125
  readonly: boolean;
@@ -76,8 +76,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
76
76
  };
77
77
  }>> & Readonly<{
78
78
  onChange?: ((...args: any[]) => any) | undefined;
79
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
80
79
  onCancel?: ((...args: any[]) => any) | undefined;
80
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
81
  onConfirm?: ((...args: any[]) => any) | undefined;
82
82
  }>, {
83
83
  readonly: boolean;
@@ -1 +1 @@
1
- :root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-switch{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
1
+ :root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-switch{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media(max-width:350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
@@ -1,5 +1,5 @@
1
1
  import { inject, watch } from "vue";
2
- const POPUP_TOGGLE_KEY = Symbol();
2
+ const POPUP_TOGGLE_KEY = /* @__PURE__ */ Symbol();
3
3
  function onPopupReopen(callback) {
4
4
  const popupToggleStatus = inject(POPUP_TOGGLE_KEY, null);
5
5
  if (popupToggleStatus) {
@@ -1,6 +1,6 @@
1
1
  import { inject, provide, computed } from "vue";
2
- const TAB_STATUS_KEY = Symbol();
3
- const ALL_TAB_STATUS_KEY = Symbol();
2
+ const TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
3
+ const ALL_TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
4
4
  const useTabStatus = () => inject(TAB_STATUS_KEY, null);
5
5
  const useAllTabStatus = () => inject(ALL_TAB_STATUS_KEY, null);
6
6
  const useProvideTabStatus = (status) => {
@@ -28,12 +28,12 @@ function useTouch() {
28
28
  direction.value = "";
29
29
  isTap.value = true;
30
30
  };
31
- const start = (event) => {
31
+ const start = ((event) => {
32
32
  reset();
33
33
  startX.value = event.touches[0].clientX;
34
34
  startY.value = event.touches[0].clientY;
35
- };
36
- const move = (event) => {
35
+ });
36
+ const move = ((event) => {
37
37
  const touch = event.touches[0];
38
38
  deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
39
39
  deltaY.value = touch.clientY - startY.value;
@@ -46,7 +46,7 @@ function useTouch() {
46
46
  if (isTap.value && (offsetX.value > TAP_OFFSET || offsetY.value > TAP_OFFSET)) {
47
47
  isTap.value = false;
48
48
  }
49
- };
49
+ });
50
50
  return {
51
51
  move,
52
52
  start,
@@ -156,8 +156,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
156
156
  };
157
157
  }>> & Readonly<{
158
158
  onChange?: ((...args: any[]) => any) | undefined;
159
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
160
159
  onCancel?: ((...args: any[]) => any) | undefined;
160
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
161
161
  onConfirm?: ((...args: any[]) => any) | undefined;
162
162
  }>, {
163
163
  formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -99,8 +99,8 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
99
99
  };
100
100
  }>> & Readonly<{
101
101
  onChange?: ((...args: any[]) => any) | undefined;
102
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
103
102
  onCancel?: ((...args: any[]) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
104
104
  onConfirm?: ((...args: any[]) => any) | undefined;
105
105
  }>, {
106
106
  formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
@@ -184,8 +184,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
184
184
  destroyOnClose: BooleanConstructor;
185
185
  }>> & Readonly<{
186
186
  onKeydown?: ((...args: any[]) => any) | undefined;
187
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
188
187
  onCancel?: ((...args: any[]) => any) | undefined;
188
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
189
189
  onConfirm?: ((...args: any[]) => any) | undefined;
190
190
  }>, {
191
191
  overlay: boolean;
@@ -1 +1 @@
1
- :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
1
+ :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media(max-width:321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
@@ -120,8 +120,8 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
120
120
  destroyOnClose: BooleanConstructor;
121
121
  }>> & Readonly<{
122
122
  onKeydown?: ((...args: any[]) => any) | undefined;
123
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
124
123
  onCancel?: ((...args: any[]) => any) | undefined;
124
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
125
125
  onConfirm?: ((...args: any[]) => any) | undefined;
126
126
  }>, {
127
127
  overlay: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes, type HTMLAttributes } from 'vue';
2
- import type { FieldRule, FieldType, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldAutosizeConfig } from './types';
2
+ import type { FieldRule, FieldType, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldAutosizeConfig, FieldEnterKeyHint } from './types';
3
3
  export declare const fieldSharedProps: {
4
4
  id: StringConstructor;
5
5
  name: StringConstructor;
@@ -25,7 +25,7 @@ export declare const fieldSharedProps: {
25
25
  autocapitalize: StringConstructor;
26
26
  autocorrect: StringConstructor;
27
27
  errorMessage: StringConstructor;
28
- enterkeyhint: StringConstructor;
28
+ enterkeyhint: PropType<FieldEnterKeyHint>;
29
29
  clearTrigger: {
30
30
  type: PropType<FieldClearTrigger>;
31
31
  default: FieldClearTrigger;
@@ -107,7 +107,7 @@ export declare const fieldProps: {
107
107
  autocapitalize: StringConstructor;
108
108
  autocorrect: StringConstructor;
109
109
  errorMessage: StringConstructor;
110
- enterkeyhint: StringConstructor;
110
+ enterkeyhint: PropType<FieldEnterKeyHint>;
111
111
  clearTrigger: {
112
112
  type: PropType<FieldClearTrigger>;
113
113
  default: FieldClearTrigger;
@@ -207,7 +207,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
207
207
  autocapitalize: StringConstructor;
208
208
  autocorrect: StringConstructor;
209
209
  errorMessage: StringConstructor;
210
- enterkeyhint: StringConstructor;
210
+ enterkeyhint: PropType<FieldEnterKeyHint>;
211
211
  clearTrigger: {
212
212
  type: PropType<FieldClearTrigger>;
213
213
  default: FieldClearTrigger;
@@ -305,7 +305,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
305
305
  autocapitalize: StringConstructor;
306
306
  autocorrect: StringConstructor;
307
307
  errorMessage: StringConstructor;
308
- enterkeyhint: StringConstructor;
308
+ enterkeyhint: PropType<FieldEnterKeyHint>;
309
309
  clearTrigger: {
310
310
  type: PropType<FieldClearTrigger>;
311
311
  default: FieldClearTrigger;
@@ -204,10 +204,11 @@ var stdin_default = defineComponent({
204
204
  if (modelValue && getStringLength(modelValue) === +maxlength) {
205
205
  return modelValue;
206
206
  }
207
- const selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
207
+ let selectionEnd = (_a = inputRef.value) == null ? void 0 : _a.selectionEnd;
208
208
  if (state.focused && selectionEnd) {
209
209
  const valueArr = [...value];
210
210
  const exceededLength = valueArr.length - +maxlength;
211
+ selectionEnd = getStringLength(value.slice(0, selectionEnd));
211
212
  valueArr.splice(selectionEnd - exceededLength, exceededLength);
212
213
  return valueArr.join("");
213
214
  }
@@ -219,7 +220,7 @@ var stdin_default = defineComponent({
219
220
  var _a, _b;
220
221
  const originalValue = value;
221
222
  value = limitValueLength(value);
222
- const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
223
+ const limitDiffLen = originalValue.length - value.length;
223
224
  if (props.type === "number" || props.type === "digit") {
224
225
  const isNumber = props.type === "number";
225
226
  value = formatNumber(value, isNumber, isNumber);
@@ -245,7 +246,7 @@ var stdin_default = defineComponent({
245
246
  selectionEnd
246
247
  } = inputRef.value;
247
248
  const bcoVal = cutString(originalValue, selectionEnd);
248
- formatterDiffLen = getStringLength(formatter(bcoVal)) - getStringLength(bcoVal);
249
+ formatterDiffLen = formatter(bcoVal).length - bcoVal.length;
249
250
  }
250
251
  }
251
252
  if (inputRef.value && inputRef.value.value !== value) {
@@ -256,7 +257,7 @@ var stdin_default = defineComponent({
256
257
  } = inputRef.value;
257
258
  inputRef.value.value = value;
258
259
  if (isDef(selectionStart) && isDef(selectionEnd)) {
259
- const valueLen = getStringLength(value);
260
+ const valueLen = value.length;
260
261
  if (limitDiffLen) {
261
262
  selectionStart -= limitDiffLen;
262
263
  selectionEnd -= limitDiffLen;
@@ -54,7 +54,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
54
54
  autocapitalize: StringConstructor;
55
55
  autocorrect: StringConstructor;
56
56
  errorMessage: StringConstructor;
57
- enterkeyhint: StringConstructor;
57
+ enterkeyhint: import("vue").PropType<import("./types").FieldEnterKeyHint>;
58
58
  clearTrigger: {
59
59
  type: import("vue").PropType<import("./types").FieldClearTrigger>;
60
60
  default: import("./types").FieldClearTrigger;
@@ -152,7 +152,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
152
152
  autocapitalize: StringConstructor;
153
153
  autocorrect: StringConstructor;
154
154
  errorMessage: StringConstructor;
155
- enterkeyhint: StringConstructor;
155
+ enterkeyhint: import("vue").PropType<import("./types").FieldEnterKeyHint>;
156
156
  clearTrigger: {
157
157
  type: import("vue").PropType<import("./types").FieldClearTrigger>;
158
158
  default: import("./types").FieldClearTrigger;
@@ -230,7 +230,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
230
230
  export default Field;
231
231
  export { fieldProps } from './Field';
232
232
  export type { FieldProps };
233
- export type { FieldType, FieldRule, FieldInstance, FieldTextAlign, FieldThemeVars, FieldRuleMessage, FieldClearTrigger, FieldFormatTrigger, FieldRuleValidator, FieldRuleFormatter, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, FieldValidationStatus, } from './types';
233
+ export type { FieldType, FieldRule, FieldInstance, FieldTextAlign, FieldThemeVars, FieldRuleMessage, FieldClearTrigger, FieldFormatTrigger, FieldRuleValidator, FieldRuleFormatter, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, FieldValidationStatus, FieldEnterKeyHint, } from './types';
234
234
  declare module 'vue' {
235
235
  interface GlobalComponents {
236
236
  VanField: typeof Field;
@@ -5,6 +5,7 @@ export type FieldTextAlign = 'left' | 'center' | 'right' | 'top';
5
5
  export type FieldClearTrigger = 'always' | 'focus';
6
6
  export type FieldFormatTrigger = 'onBlur' | 'onChange';
7
7
  export type FieldValidateTrigger = 'onBlur' | 'onChange' | 'onSubmit';
8
+ export type FieldEnterKeyHint = 'search' | 'done' | 'enter' | 'go' | 'next' | 'previous' | 'send';
8
9
  export type FieldAutosizeConfig = {
9
10
  maxHeight?: number;
10
11
  minHeight?: number;
@@ -12,6 +12,14 @@ export declare const floatingPanelProps: {
12
12
  type: (NumberConstructor | StringConstructor)[];
13
13
  default: number;
14
14
  };
15
+ magnetic: {
16
+ type: BooleanConstructor;
17
+ default: true;
18
+ };
19
+ draggable: {
20
+ type: BooleanConstructor;
21
+ default: true;
22
+ };
15
23
  contentDraggable: {
16
24
  type: BooleanConstructor;
17
25
  default: true;
@@ -36,6 +44,14 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
36
44
  type: (NumberConstructor | StringConstructor)[];
37
45
  default: number;
38
46
  };
47
+ magnetic: {
48
+ type: BooleanConstructor;
49
+ default: true;
50
+ };
51
+ draggable: {
52
+ type: BooleanConstructor;
53
+ default: true;
54
+ };
39
55
  contentDraggable: {
40
56
  type: BooleanConstructor;
41
57
  default: true;
@@ -58,6 +74,14 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
58
74
  type: (NumberConstructor | StringConstructor)[];
59
75
  default: number;
60
76
  };
77
+ magnetic: {
78
+ type: BooleanConstructor;
79
+ default: true;
80
+ };
81
+ draggable: {
82
+ type: BooleanConstructor;
83
+ default: true;
84
+ };
61
85
  contentDraggable: {
62
86
  type: BooleanConstructor;
63
87
  default: true;
@@ -75,7 +99,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
75
99
  safeAreaInsetBottom: boolean;
76
100
  duration: string | number;
77
101
  lockScroll: boolean;
102
+ magnetic: boolean;
78
103
  anchors: number[];
104
+ draggable: boolean;
79
105
  contentDraggable: boolean;
80
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
107
  export default _default;
@@ -8,6 +8,8 @@ const floatingPanelProps = {
8
8
  height: makeNumericProp(0),
9
9
  anchors: makeArrayProp(),
10
10
  duration: makeNumericProp(0.3),
11
+ magnetic: truthProp,
12
+ draggable: truthProp,
11
13
  contentDraggable: truthProp,
12
14
  lockScroll: Boolean,
13
15
  safeAreaInsetBottom: truthProp
@@ -57,6 +59,7 @@ var stdin_default = defineComponent({
57
59
  let maxScroll = -1;
58
60
  const touch = useTouch();
59
61
  const onTouchstart = (e) => {
62
+ if (!props.draggable) return;
60
63
  touch.start(e);
61
64
  dragging.value = true;
62
65
  startY = -height.value;
@@ -64,6 +67,7 @@ var stdin_default = defineComponent({
64
67
  };
65
68
  const onTouchmove = (e) => {
66
69
  var _a;
70
+ if (!props.draggable) return;
67
71
  touch.move(e);
68
72
  const target = e.target;
69
73
  if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
@@ -83,8 +87,22 @@ var stdin_default = defineComponent({
83
87
  };
84
88
  const onTouchend = () => {
85
89
  maxScroll = -1;
90
+ if (!dragging.value) {
91
+ return;
92
+ }
86
93
  dragging.value = false;
87
- height.value = closest(anchors.value, height.value);
94
+ if (!props.draggable) {
95
+ return;
96
+ }
97
+ if (props.magnetic) {
98
+ height.value = closest(anchors.value, height.value);
99
+ } else {
100
+ const {
101
+ min,
102
+ max
103
+ } = boundary.value;
104
+ height.value = Math.max(min, Math.min(max, height.value));
105
+ }
88
106
  if (height.value !== -startY) {
89
107
  emit("heightChange", {
90
108
  height: height.value
@@ -104,6 +122,9 @@ var stdin_default = defineComponent({
104
122
  if (slots.header) {
105
123
  return slots.header();
106
124
  }
125
+ if (!props.draggable) {
126
+ return null;
127
+ }
107
128
  return _createVNode("div", {
108
129
  "class": bem("header")
109
130
  }, [_createVNode("div", {
@@ -123,7 +144,10 @@ var stdin_default = defineComponent({
123
144
  "onTouchcancel": onTouchend
124
145
  }, [renderHeader(), _createVNode("div", {
125
146
  "class": bem("content"),
126
- "ref": contentRef
147
+ "ref": contentRef,
148
+ "style": {
149
+ paddingBottom: addUnit(boundary.value.max - height.value)
150
+ }
127
151
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
128
152
  };
129
153
  }
@@ -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}
@@ -11,6 +11,14 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
11
11
  type: (NumberConstructor | StringConstructor)[];
12
12
  default: number;
13
13
  };
14
+ magnetic: {
15
+ type: BooleanConstructor;
16
+ default: true;
17
+ };
18
+ draggable: {
19
+ type: BooleanConstructor;
20
+ default: true;
21
+ };
14
22
  contentDraggable: {
15
23
  type: BooleanConstructor;
16
24
  default: true;
@@ -33,6 +41,14 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
33
41
  type: (NumberConstructor | StringConstructor)[];
34
42
  default: number;
35
43
  };
44
+ magnetic: {
45
+ type: BooleanConstructor;
46
+ default: true;
47
+ };
48
+ draggable: {
49
+ type: BooleanConstructor;
50
+ default: true;
51
+ };
36
52
  contentDraggable: {
37
53
  type: BooleanConstructor;
38
54
  default: true;
@@ -50,7 +66,9 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
50
66
  safeAreaInsetBottom: boolean;
51
67
  duration: string | number;
52
68
  lockScroll: boolean;
69
+ magnetic: boolean;
53
70
  anchors: number[];
71
+ draggable: boolean;
54
72
  contentDraggable: boolean;
55
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
56
74
  export default FloatingPanel;
package/es/grid/Grid.d.ts CHANGED
@@ -66,8 +66,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
66
66
  }>> & Readonly<{}>, {
67
67
  reverse: boolean;
68
68
  center: boolean;
69
- border: boolean;
70
69
  square: boolean;
70
+ border: boolean;
71
71
  clickable: boolean;
72
72
  columnNum: string | number;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -39,8 +39,8 @@ export declare const Grid: import("../utils").WithInstall<import("vue").DefineCo
39
39
  }>> & Readonly<{}>, {
40
40
  reverse: boolean;
41
41
  center: boolean;
42
- border: boolean;
43
42
  square: boolean;
43
+ border: boolean;
44
44
  clickable: boolean;
45
45
  columnNum: string | number;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
package/es/index.d.ts CHANGED
@@ -106,4 +106,4 @@ declare namespace _default {
106
106
  }
107
107
  export default _default;
108
108
  export function install(app: any): void;
109
- export const version: "4.9.21";
109
+ export const version: "4.9.23";