vant 3.2.0 → 3.2.4

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 (699) hide show
  1. package/changelog.generated.md +128 -61
  2. package/es/action-bar/ActionBar.d.ts +1 -1
  3. package/es/action-bar/index.d.ts +2 -3
  4. package/es/action-bar/index.js +2 -3
  5. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  6. package/es/action-bar-button/index.d.ts +2 -3
  7. package/es/action-bar-button/index.js +2 -3
  8. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  9. package/es/action-bar-icon/index.d.ts +2 -3
  10. package/es/action-bar-icon/index.js +2 -3
  11. package/es/action-sheet/ActionSheet.d.ts +1 -1
  12. package/es/action-sheet/index.d.ts +2 -3
  13. package/es/action-sheet/index.js +2 -3
  14. package/es/address-edit/AddressEdit.js +3 -3
  15. package/es/address-edit/AddressEditDetail.js +3 -19
  16. package/es/address-edit/index.css +1 -1
  17. package/es/address-edit/index.d.ts +3 -2
  18. package/es/address-edit/index.js +2 -3
  19. package/es/address-edit/index.less +0 -7
  20. package/es/address-edit/var.less +0 -2
  21. package/es/address-list/index.d.ts +1 -2
  22. package/es/address-list/index.js +2 -3
  23. package/es/area/Area.d.ts +1 -1
  24. package/es/area/Area.js +5 -2
  25. package/es/area/index.d.ts +4 -3
  26. package/es/area/index.js +2 -3
  27. package/es/badge/Badge.d.ts +2 -2
  28. package/es/badge/index.d.ts +3 -4
  29. package/es/badge/index.js +2 -3
  30. package/es/button/Button.d.ts +2 -2
  31. package/es/button/index.css +1 -1
  32. package/es/button/index.d.ts +3 -4
  33. package/es/button/index.js +2 -3
  34. package/es/button/index.less +7 -7
  35. package/es/calendar/Calendar.d.ts +3 -4
  36. package/es/calendar/Calendar.js +62 -56
  37. package/es/calendar/CalendarMonth.d.ts +29 -3
  38. package/es/calendar/CalendarMonth.js +34 -28
  39. package/es/calendar/index.d.ts +5 -5
  40. package/es/calendar/index.js +2 -3
  41. package/es/calendar/types.d.ts +10 -1
  42. package/es/card/index.d.ts +1 -2
  43. package/es/card/index.js +2 -3
  44. package/es/cascader/Cascader.d.ts +1 -1
  45. package/es/cascader/index.d.ts +2 -3
  46. package/es/cascader/index.js +2 -3
  47. package/es/cell/Cell.d.ts +2 -2
  48. package/es/cell/index.d.ts +3 -4
  49. package/es/cell/index.js +2 -3
  50. package/es/cell-group/CellGroup.d.ts +1 -1
  51. package/es/cell-group/index.d.ts +2 -3
  52. package/es/cell-group/index.js +2 -3
  53. package/es/checkbox/Checkbox.d.ts +2 -2
  54. package/es/checkbox/Checker.d.ts +4 -4
  55. package/es/checkbox/Checker.js +1 -1
  56. package/es/checkbox/index.d.ts +5 -4
  57. package/es/checkbox/index.js +2 -3
  58. package/es/checkbox-group/index.d.ts +3 -2
  59. package/es/checkbox-group/index.js +2 -3
  60. package/es/circle/Circle.d.ts +8 -0
  61. package/es/circle/Circle.js +21 -1
  62. package/es/circle/index.d.ts +9 -2
  63. package/es/circle/index.js +2 -3
  64. package/es/col/Col.d.ts +1 -1
  65. package/es/col/index.d.ts +2 -3
  66. package/es/col/index.js +2 -3
  67. package/es/collapse/index.d.ts +1 -2
  68. package/es/collapse/index.js +2 -3
  69. package/es/collapse-item/CollapseItem.d.ts +4 -4
  70. package/es/collapse-item/CollapseItem.js +4 -2
  71. package/es/collapse-item/index.d.ts +7 -6
  72. package/es/collapse-item/index.js +2 -3
  73. package/es/composables/use-height.js +3 -5
  74. package/es/composables/use-lock-scroll.js +2 -10
  75. package/es/config-provider/ConfigProvider.d.ts +2 -2
  76. package/es/config-provider/index.d.ts +3 -4
  77. package/es/config-provider/index.js +2 -3
  78. package/es/contact-card/index.d.ts +1 -2
  79. package/es/contact-card/index.js +2 -3
  80. package/es/contact-edit/ContactEdit.js +6 -8
  81. package/es/contact-edit/index.d.ts +1 -2
  82. package/es/contact-edit/index.js +2 -3
  83. package/es/contact-list/index.d.ts +1 -2
  84. package/es/contact-list/index.js +2 -3
  85. package/es/count-down/CountDown.d.ts +2 -10
  86. package/es/count-down/index.d.ts +4 -3
  87. package/es/count-down/index.js +2 -3
  88. package/es/count-down/types.d.ts +11 -0
  89. package/es/count-down/types.js +1 -0
  90. package/es/coupon/Coupon.d.ts +1 -1
  91. package/es/coupon/index.d.ts +2 -3
  92. package/es/coupon/index.js +2 -3
  93. package/es/coupon-cell/CouponCell.d.ts +1 -1
  94. package/es/coupon-cell/CouponCell.js +1 -1
  95. package/es/coupon-cell/index.d.ts +2 -3
  96. package/es/coupon-cell/index.js +2 -3
  97. package/es/coupon-list/CouponList.js +5 -12
  98. package/es/coupon-list/index.css +1 -1
  99. package/es/coupon-list/index.d.ts +1 -2
  100. package/es/coupon-list/index.js +2 -3
  101. package/es/coupon-list/index.less +6 -1
  102. package/es/datetime-picker/DatePicker.d.ts +1 -1
  103. package/es/datetime-picker/DatePicker.js +4 -3
  104. package/es/datetime-picker/DatetimePicker.d.ts +3 -2
  105. package/es/datetime-picker/DatetimePicker.js +1 -1
  106. package/es/datetime-picker/TimePicker.d.ts +1 -1
  107. package/es/datetime-picker/TimePicker.js +3 -1
  108. package/es/datetime-picker/index.d.ts +6 -4
  109. package/es/datetime-picker/index.js +2 -3
  110. package/es/dialog/Dialog.d.ts +3 -6
  111. package/es/dialog/Dialog.js +2 -1
  112. package/es/dialog/function-call.d.ts +15 -40
  113. package/es/dialog/function-call.js +3 -2
  114. package/es/dialog/index.d.ts +2 -3
  115. package/es/dialog/types.d.ts +36 -0
  116. package/es/dialog/types.js +1 -0
  117. package/es/divider/Divider.d.ts +1 -1
  118. package/es/divider/index.d.ts +2 -3
  119. package/es/divider/index.js +2 -3
  120. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  121. package/es/dropdown-item/index.d.ts +4 -3
  122. package/es/dropdown-item/index.js +2 -3
  123. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  124. package/es/dropdown-menu/index.d.ts +4 -3
  125. package/es/dropdown-menu/index.js +2 -3
  126. package/es/empty/Empty.d.ts +1 -1
  127. package/es/empty/index.d.ts +2 -3
  128. package/es/empty/index.js +2 -3
  129. package/es/field/Field.d.ts +19 -12
  130. package/es/field/Field.js +8 -3
  131. package/es/field/index.css +1 -1
  132. package/es/field/index.d.ts +17 -13
  133. package/es/field/index.js +2 -3
  134. package/es/field/index.less +5 -3
  135. package/es/field/var.less +1 -1
  136. package/es/form/index.d.ts +3 -2
  137. package/es/form/index.js +2 -3
  138. package/es/grid/Grid.d.ts +3 -3
  139. package/es/grid/index.d.ts +4 -5
  140. package/es/grid/index.js +2 -3
  141. package/es/grid-item/GridItem.d.ts +1 -1
  142. package/es/grid-item/index.d.ts +2 -3
  143. package/es/grid-item/index.js +2 -3
  144. package/es/icon/Icon.d.ts +1 -1
  145. package/es/icon/index.css +1 -1
  146. package/es/icon/index.d.ts +2 -3
  147. package/es/icon/index.js +2 -3
  148. package/es/icon/index.less +1 -1
  149. package/es/image/Image.d.ts +5 -5
  150. package/es/image/Image.js +1 -2
  151. package/es/image/index.d.ts +6 -7
  152. package/es/image/index.js +2 -3
  153. package/es/image-preview/ImagePreview.d.ts +4 -4
  154. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  155. package/es/image-preview/function-call.d.ts +5 -5
  156. package/es/image-preview/function-call.js +5 -5
  157. package/es/image-preview/index.d.ts +2 -0
  158. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  159. package/es/index-anchor/index.d.ts +2 -3
  160. package/es/index-anchor/index.js +2 -3
  161. package/es/index-bar/index.d.ts +3 -2
  162. package/es/index-bar/index.js +2 -3
  163. package/es/index.d.ts +1 -1
  164. package/es/index.js +1 -1
  165. package/es/list/index.d.ts +3 -2
  166. package/es/list/index.js +2 -3
  167. package/es/loading/Loading.d.ts +1 -1
  168. package/es/loading/index.d.ts +2 -3
  169. package/es/loading/index.js +2 -3
  170. package/es/locale/index.d.ts +1 -2
  171. package/es/locale/index.js +2 -3
  172. package/es/locale/lang/de-DE-formal.d.ts +1 -8
  173. package/es/locale/lang/de-DE-formal.js +2 -9
  174. package/es/locale/lang/de-DE.d.ts +1 -8
  175. package/es/locale/lang/de-DE.js +2 -9
  176. package/es/locale/lang/en-US.d.ts +1 -8
  177. package/es/locale/lang/en-US.js +2 -9
  178. package/es/locale/lang/es-ES.d.ts +1 -8
  179. package/es/locale/lang/es-ES.js +2 -9
  180. package/es/locale/lang/fr-FR.d.ts +1 -8
  181. package/es/locale/lang/fr-FR.js +2 -9
  182. package/es/locale/lang/ja-JP.d.ts +1 -8
  183. package/es/locale/lang/ja-JP.js +4 -11
  184. package/es/locale/lang/nb-NO.d.ts +1 -8
  185. package/es/locale/lang/nb-NO.js +2 -9
  186. package/es/locale/lang/ro-RO.d.ts +1 -8
  187. package/es/locale/lang/ro-RO.js +2 -9
  188. package/es/locale/lang/ru-RU.d.ts +1 -8
  189. package/es/locale/lang/ru-RU.js +2 -9
  190. package/es/locale/lang/th-TH.d.ts +1 -8
  191. package/es/locale/lang/th-TH.js +2 -9
  192. package/es/locale/lang/tr-TR.d.ts +1 -8
  193. package/es/locale/lang/tr-TR.js +2 -9
  194. package/es/locale/lang/zh-CN.d.ts +1 -8
  195. package/es/locale/lang/zh-CN.js +6 -13
  196. package/es/locale/lang/zh-HK.d.ts +1 -8
  197. package/es/locale/lang/zh-HK.js +5 -12
  198. package/es/locale/lang/zh-TW.d.ts +1 -8
  199. package/es/locale/lang/zh-TW.js +5 -12
  200. package/es/nav-bar/index.d.ts +1 -2
  201. package/es/nav-bar/index.js +2 -3
  202. package/es/notice-bar/index.d.ts +3 -2
  203. package/es/notice-bar/index.js +2 -3
  204. package/es/notify/Notify.d.ts +2 -2
  205. package/es/notify/Notify.js +12 -15
  206. package/es/notify/function-call.d.ts +6 -19
  207. package/es/notify/function-call.js +3 -2
  208. package/es/notify/index.d.ts +2 -3
  209. package/es/notify/types.d.ts +20 -0
  210. package/es/notify/types.js +1 -0
  211. package/es/number-keyboard/index.css +1 -1
  212. package/es/number-keyboard/index.d.ts +1 -2
  213. package/es/number-keyboard/index.js +2 -3
  214. package/es/number-keyboard/index.less +2 -1
  215. package/es/number-keyboard/var.less +1 -0
  216. package/es/overlay/Overlay.d.ts +1 -1
  217. package/es/overlay/index.d.ts +2 -3
  218. package/es/overlay/index.js +2 -3
  219. package/es/pagination/index.d.ts +1 -2
  220. package/es/pagination/index.js +2 -3
  221. package/es/password-input/index.css +1 -1
  222. package/es/password-input/index.d.ts +1 -2
  223. package/es/password-input/index.js +2 -3
  224. package/es/password-input/index.less +2 -0
  225. package/es/password-input/var.less +1 -0
  226. package/es/picker/Picker.d.ts +3 -3
  227. package/es/picker/PickerColumn.d.ts +2 -2
  228. package/es/picker/index.css +1 -1
  229. package/es/picker/index.d.ts +6 -5
  230. package/es/picker/index.js +2 -3
  231. package/es/picker/types.d.ts +3 -3
  232. package/es/popover/Popover.d.ts +8 -0
  233. package/es/popover/Popover.js +25 -15
  234. package/es/popover/index.d.ts +8 -2
  235. package/es/popover/index.js +2 -3
  236. package/es/popup/Popup.js +9 -8
  237. package/es/popup/index.d.ts +1 -2
  238. package/es/popup/index.js +2 -3
  239. package/es/progress/Progress.d.ts +5 -2
  240. package/es/progress/Progress.js +7 -32
  241. package/es/progress/index.css +1 -1
  242. package/es/progress/index.d.ts +7 -4
  243. package/es/progress/index.js +2 -3
  244. package/es/progress/index.less +6 -1
  245. package/es/pull-refresh/index.d.ts +1 -2
  246. package/es/pull-refresh/index.js +2 -3
  247. package/es/radio/Radio.d.ts +2 -2
  248. package/es/radio/index.d.ts +3 -4
  249. package/es/radio/index.js +2 -3
  250. package/es/radio-group/index.d.ts +1 -2
  251. package/es/radio-group/index.js +2 -3
  252. package/es/rate/Rate.d.ts +2 -2
  253. package/es/rate/Rate.js +1 -1
  254. package/es/rate/index.d.ts +3 -4
  255. package/es/rate/index.js +2 -3
  256. package/es/row/Row.d.ts +2 -2
  257. package/es/row/index.d.ts +3 -4
  258. package/es/row/index.js +2 -3
  259. package/es/search/Search.d.ts +18 -6
  260. package/es/search/Search.js +4 -3
  261. package/es/search/index.d.ts +18 -8
  262. package/es/search/index.js +2 -3
  263. package/es/share-sheet/ShareSheet.d.ts +1 -1
  264. package/es/share-sheet/index.d.ts +2 -3
  265. package/es/share-sheet/index.js +2 -3
  266. package/es/sidebar/index.d.ts +1 -2
  267. package/es/sidebar/index.js +2 -3
  268. package/es/sidebar-item/index.d.ts +1 -2
  269. package/es/sidebar-item/index.js +2 -3
  270. package/es/skeleton/Skeleton.d.ts +1 -1
  271. package/es/skeleton/index.d.ts +2 -3
  272. package/es/skeleton/index.js +2 -3
  273. package/es/slider/Slider.d.ts +6 -1
  274. package/es/slider/Slider.js +53 -17
  275. package/es/slider/index.css +1 -1
  276. package/es/slider/index.d.ts +5 -2
  277. package/es/slider/index.js +2 -3
  278. package/es/slider/index.less +19 -23
  279. package/es/step/Step.d.ts +1 -1
  280. package/es/step/index.css +1 -1
  281. package/es/step/index.d.ts +1 -2
  282. package/es/step/index.js +2 -3
  283. package/es/step/index.less +1 -1
  284. package/es/stepper/index.d.ts +1 -2
  285. package/es/stepper/index.js +2 -3
  286. package/es/steps/index.d.ts +1 -2
  287. package/es/steps/index.js +2 -3
  288. package/es/sticky/index.d.ts +1 -2
  289. package/es/sticky/index.js +2 -3
  290. package/es/style/animation.css +1 -1
  291. package/es/style/animation.less +20 -20
  292. package/es/style/base.css +1 -1
  293. package/es/submit-bar/index.css +1 -1
  294. package/es/submit-bar/index.d.ts +1 -2
  295. package/es/submit-bar/index.js +2 -3
  296. package/es/submit-bar/index.less +3 -4
  297. package/es/swipe/Swipe.d.ts +5 -5
  298. package/es/swipe/Swipe.js +2 -1
  299. package/es/swipe/index.d.ts +8 -7
  300. package/es/swipe/index.js +2 -3
  301. package/es/swipe-cell/index.css +1 -1
  302. package/es/swipe-cell/index.d.ts +3 -2
  303. package/es/swipe-cell/index.js +2 -3
  304. package/es/swipe-item/SwipeItem.d.ts +1 -1
  305. package/es/swipe-item/index.d.ts +1 -2
  306. package/es/swipe-item/index.js +2 -3
  307. package/es/switch/index.css +1 -1
  308. package/es/switch/index.d.ts +1 -2
  309. package/es/switch/index.js +2 -3
  310. package/es/tab/Tab.d.ts +8 -1
  311. package/es/tab/Tab.js +3 -2
  312. package/es/tab/index.d.ts +9 -3
  313. package/es/tab/index.js +2 -3
  314. package/es/tabbar/index.d.ts +1 -2
  315. package/es/tabbar/index.js +2 -3
  316. package/es/tabbar-item/index.d.ts +1 -2
  317. package/es/tabbar-item/index.js +2 -3
  318. package/es/tabs/Tabs.js +4 -8
  319. package/es/tabs/TabsTitle.d.ts +8 -1
  320. package/es/tabs/TabsTitle.js +5 -3
  321. package/es/tabs/index.d.ts +3 -2
  322. package/es/tabs/index.js +2 -3
  323. package/es/tabs/utils.js +2 -4
  324. package/es/tag/index.d.ts +1 -2
  325. package/es/tag/index.js +2 -3
  326. package/es/toast/Toast.d.ts +1 -2
  327. package/es/toast/Toast.js +3 -4
  328. package/es/toast/function-call.d.ts +2 -25
  329. package/es/toast/function-call.js +3 -1
  330. package/es/toast/index.d.ts +2 -3
  331. package/es/toast/types.d.ts +32 -0
  332. package/es/toast/types.js +1 -0
  333. package/es/tree-select/index.css +1 -1
  334. package/es/tree-select/index.d.ts +1 -2
  335. package/es/tree-select/index.js +2 -3
  336. package/es/tree-select/index.less +1 -1
  337. package/es/uploader/Uploader.d.ts +3 -3
  338. package/es/uploader/index.css +1 -1
  339. package/es/uploader/index.d.ts +6 -5
  340. package/es/uploader/index.js +2 -3
  341. package/es/uploader/index.less +4 -5
  342. package/es/utils/validate.d.ts +0 -1
  343. package/es/utils/validate.js +0 -3
  344. package/es/utils/with-install.d.ts +1 -1
  345. package/es/utils/with-install.js +0 -1
  346. package/lib/action-bar/ActionBar.d.ts +1 -1
  347. package/lib/action-bar/index.d.ts +2 -3
  348. package/lib/action-bar/index.js +1 -1
  349. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  350. package/lib/action-bar-button/index.d.ts +2 -3
  351. package/lib/action-bar-button/index.js +1 -1
  352. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  353. package/lib/action-bar-icon/index.d.ts +2 -3
  354. package/lib/action-bar-icon/index.js +1 -1
  355. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  356. package/lib/action-sheet/index.d.ts +2 -3
  357. package/lib/action-sheet/index.js +1 -1
  358. package/lib/address-edit/AddressEdit.js +3 -3
  359. package/lib/address-edit/AddressEditDetail.js +2 -18
  360. package/lib/address-edit/index.css +1 -1
  361. package/lib/address-edit/index.d.ts +3 -2
  362. package/lib/address-edit/index.js +1 -1
  363. package/lib/address-edit/index.less +0 -7
  364. package/lib/address-edit/var.less +0 -2
  365. package/lib/address-list/index.d.ts +1 -2
  366. package/lib/address-list/index.js +1 -1
  367. package/lib/area/Area.d.ts +1 -1
  368. package/lib/area/Area.js +5 -2
  369. package/lib/area/index.d.ts +4 -3
  370. package/lib/area/index.js +1 -1
  371. package/lib/badge/Badge.d.ts +2 -2
  372. package/lib/badge/index.d.ts +3 -4
  373. package/lib/badge/index.js +1 -1
  374. package/lib/button/Button.d.ts +2 -2
  375. package/lib/button/index.css +1 -1
  376. package/lib/button/index.d.ts +3 -4
  377. package/lib/button/index.js +1 -1
  378. package/lib/button/index.less +7 -7
  379. package/lib/calendar/Calendar.d.ts +3 -4
  380. package/lib/calendar/Calendar.js +60 -54
  381. package/lib/calendar/CalendarMonth.d.ts +29 -3
  382. package/lib/calendar/CalendarMonth.js +34 -28
  383. package/lib/calendar/index.d.ts +5 -5
  384. package/lib/calendar/index.js +1 -1
  385. package/lib/calendar/types.d.ts +10 -1
  386. package/lib/card/index.d.ts +1 -2
  387. package/lib/card/index.js +1 -1
  388. package/lib/cascader/Cascader.d.ts +1 -1
  389. package/lib/cascader/index.d.ts +2 -3
  390. package/lib/cascader/index.js +1 -1
  391. package/lib/cell/Cell.d.ts +2 -2
  392. package/lib/cell/index.d.ts +3 -4
  393. package/lib/cell/index.js +1 -1
  394. package/lib/cell-group/CellGroup.d.ts +1 -1
  395. package/lib/cell-group/index.d.ts +2 -3
  396. package/lib/cell-group/index.js +1 -1
  397. package/lib/checkbox/Checkbox.d.ts +2 -2
  398. package/lib/checkbox/Checker.d.ts +4 -4
  399. package/lib/checkbox/Checker.js +1 -1
  400. package/lib/checkbox/index.d.ts +5 -4
  401. package/lib/checkbox/index.js +1 -1
  402. package/lib/checkbox-group/index.d.ts +3 -2
  403. package/lib/checkbox-group/index.js +1 -1
  404. package/lib/circle/Circle.d.ts +8 -0
  405. package/lib/circle/Circle.js +21 -1
  406. package/lib/circle/index.d.ts +9 -2
  407. package/lib/circle/index.js +1 -1
  408. package/lib/col/Col.d.ts +1 -1
  409. package/lib/col/index.d.ts +2 -3
  410. package/lib/col/index.js +1 -1
  411. package/lib/collapse/index.d.ts +1 -2
  412. package/lib/collapse/index.js +1 -1
  413. package/lib/collapse-item/CollapseItem.d.ts +4 -4
  414. package/lib/collapse-item/CollapseItem.js +4 -2
  415. package/lib/collapse-item/index.d.ts +7 -6
  416. package/lib/collapse-item/index.js +1 -1
  417. package/lib/composables/use-height.js +3 -5
  418. package/lib/composables/use-lock-scroll.js +2 -10
  419. package/lib/config-provider/ConfigProvider.d.ts +2 -2
  420. package/lib/config-provider/index.d.ts +3 -4
  421. package/lib/config-provider/index.js +1 -1
  422. package/lib/contact-card/index.d.ts +1 -2
  423. package/lib/contact-card/index.js +1 -1
  424. package/lib/contact-edit/ContactEdit.js +6 -8
  425. package/lib/contact-edit/index.d.ts +1 -2
  426. package/lib/contact-edit/index.js +1 -1
  427. package/lib/contact-list/index.d.ts +1 -2
  428. package/lib/contact-list/index.js +1 -1
  429. package/lib/count-down/CountDown.d.ts +2 -10
  430. package/lib/count-down/index.d.ts +4 -3
  431. package/lib/count-down/index.js +1 -1
  432. package/lib/count-down/types.d.ts +11 -0
  433. package/lib/count-down/types.js +3 -0
  434. package/lib/coupon/Coupon.d.ts +1 -1
  435. package/lib/coupon/index.d.ts +2 -3
  436. package/lib/coupon/index.js +1 -1
  437. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  438. package/lib/coupon-cell/CouponCell.js +1 -1
  439. package/lib/coupon-cell/index.d.ts +2 -3
  440. package/lib/coupon-cell/index.js +1 -1
  441. package/lib/coupon-list/CouponList.js +5 -13
  442. package/lib/coupon-list/index.css +1 -1
  443. package/lib/coupon-list/index.d.ts +1 -2
  444. package/lib/coupon-list/index.js +1 -1
  445. package/lib/coupon-list/index.less +6 -1
  446. package/lib/datetime-picker/DatePicker.d.ts +1 -1
  447. package/lib/datetime-picker/DatePicker.js +4 -3
  448. package/lib/datetime-picker/DatetimePicker.d.ts +3 -2
  449. package/lib/datetime-picker/TimePicker.d.ts +1 -1
  450. package/lib/datetime-picker/TimePicker.js +3 -1
  451. package/lib/datetime-picker/index.d.ts +6 -4
  452. package/lib/datetime-picker/index.js +1 -1
  453. package/lib/dialog/Dialog.d.ts +3 -6
  454. package/lib/dialog/function-call.d.ts +15 -40
  455. package/lib/dialog/function-call.js +4 -4
  456. package/lib/dialog/index.d.ts +2 -3
  457. package/lib/dialog/types.d.ts +36 -0
  458. package/lib/dialog/types.js +3 -0
  459. package/lib/divider/Divider.d.ts +1 -1
  460. package/lib/divider/index.d.ts +2 -3
  461. package/lib/divider/index.js +1 -1
  462. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  463. package/lib/dropdown-item/index.d.ts +4 -3
  464. package/lib/dropdown-item/index.js +1 -1
  465. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  466. package/lib/dropdown-menu/index.d.ts +4 -3
  467. package/lib/dropdown-menu/index.js +1 -1
  468. package/lib/empty/Empty.d.ts +1 -1
  469. package/lib/empty/index.d.ts +2 -3
  470. package/lib/empty/index.js +1 -1
  471. package/lib/field/Field.d.ts +19 -12
  472. package/lib/field/Field.js +8 -3
  473. package/lib/field/index.css +1 -1
  474. package/lib/field/index.d.ts +17 -13
  475. package/lib/field/index.js +1 -1
  476. package/lib/field/index.less +5 -3
  477. package/lib/field/var.less +1 -1
  478. package/lib/form/index.d.ts +3 -2
  479. package/lib/form/index.js +1 -1
  480. package/lib/grid/Grid.d.ts +3 -3
  481. package/lib/grid/index.d.ts +4 -5
  482. package/lib/grid/index.js +1 -1
  483. package/lib/grid-item/GridItem.d.ts +1 -1
  484. package/lib/grid-item/index.d.ts +2 -3
  485. package/lib/grid-item/index.js +1 -1
  486. package/lib/icon/Icon.d.ts +1 -1
  487. package/lib/icon/index.css +1 -1
  488. package/lib/icon/index.d.ts +2 -3
  489. package/lib/icon/index.js +1 -1
  490. package/lib/icon/index.less +1 -1
  491. package/lib/image/Image.d.ts +5 -5
  492. package/lib/image/Image.js +1 -2
  493. package/lib/image/index.d.ts +6 -7
  494. package/lib/image/index.js +1 -1
  495. package/lib/image-preview/ImagePreview.d.ts +4 -4
  496. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  497. package/lib/image-preview/function-call.d.ts +5 -5
  498. package/lib/image-preview/function-call.js +5 -5
  499. package/lib/image-preview/index.d.ts +2 -0
  500. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  501. package/lib/index-anchor/index.d.ts +2 -3
  502. package/lib/index-anchor/index.js +1 -1
  503. package/lib/index-bar/index.d.ts +3 -2
  504. package/lib/index-bar/index.js +1 -1
  505. package/lib/index.css +1 -1
  506. package/lib/index.d.ts +1 -1
  507. package/lib/index.js +1 -1
  508. package/lib/list/index.d.ts +3 -2
  509. package/lib/list/index.js +1 -1
  510. package/lib/loading/Loading.d.ts +1 -1
  511. package/lib/loading/index.d.ts +2 -3
  512. package/lib/loading/index.js +1 -1
  513. package/lib/locale/index.d.ts +1 -2
  514. package/lib/locale/index.js +1 -1
  515. package/lib/locale/lang/de-DE-formal.d.ts +1 -8
  516. package/lib/locale/lang/de-DE-formal.js +2 -9
  517. package/lib/locale/lang/de-DE.d.ts +1 -8
  518. package/lib/locale/lang/de-DE.js +2 -9
  519. package/lib/locale/lang/en-US.d.ts +1 -8
  520. package/lib/locale/lang/en-US.js +2 -9
  521. package/lib/locale/lang/es-ES.d.ts +1 -8
  522. package/lib/locale/lang/es-ES.js +2 -9
  523. package/lib/locale/lang/fr-FR.d.ts +1 -8
  524. package/lib/locale/lang/fr-FR.js +2 -9
  525. package/lib/locale/lang/ja-JP.d.ts +1 -8
  526. package/lib/locale/lang/ja-JP.js +4 -11
  527. package/lib/locale/lang/nb-NO.d.ts +1 -8
  528. package/lib/locale/lang/nb-NO.js +2 -9
  529. package/lib/locale/lang/ro-RO.d.ts +1 -8
  530. package/lib/locale/lang/ro-RO.js +2 -9
  531. package/lib/locale/lang/ru-RU.d.ts +1 -8
  532. package/lib/locale/lang/ru-RU.js +2 -9
  533. package/lib/locale/lang/th-TH.d.ts +1 -8
  534. package/lib/locale/lang/th-TH.js +2 -9
  535. package/lib/locale/lang/tr-TR.d.ts +1 -8
  536. package/lib/locale/lang/tr-TR.js +2 -9
  537. package/lib/locale/lang/zh-CN.d.ts +1 -8
  538. package/lib/locale/lang/zh-CN.js +6 -13
  539. package/lib/locale/lang/zh-HK.d.ts +1 -8
  540. package/lib/locale/lang/zh-HK.js +5 -12
  541. package/lib/locale/lang/zh-TW.d.ts +1 -8
  542. package/lib/locale/lang/zh-TW.js +5 -12
  543. package/lib/nav-bar/index.d.ts +1 -2
  544. package/lib/nav-bar/index.js +1 -1
  545. package/lib/notice-bar/index.d.ts +3 -2
  546. package/lib/notice-bar/index.js +1 -1
  547. package/lib/notify/Notify.d.ts +2 -2
  548. package/lib/notify/Notify.js +12 -15
  549. package/lib/notify/function-call.d.ts +6 -19
  550. package/lib/notify/function-call.js +4 -4
  551. package/lib/notify/index.d.ts +2 -3
  552. package/lib/notify/types.d.ts +20 -0
  553. package/lib/notify/types.js +3 -0
  554. package/lib/number-keyboard/index.css +1 -1
  555. package/lib/number-keyboard/index.d.ts +1 -2
  556. package/lib/number-keyboard/index.js +1 -1
  557. package/lib/number-keyboard/index.less +2 -1
  558. package/lib/number-keyboard/var.less +1 -0
  559. package/lib/overlay/Overlay.d.ts +1 -1
  560. package/lib/overlay/index.d.ts +2 -3
  561. package/lib/overlay/index.js +1 -1
  562. package/lib/pagination/index.d.ts +1 -2
  563. package/lib/pagination/index.js +1 -1
  564. package/lib/password-input/index.css +1 -1
  565. package/lib/password-input/index.d.ts +1 -2
  566. package/lib/password-input/index.js +1 -1
  567. package/lib/password-input/index.less +2 -0
  568. package/lib/password-input/var.less +1 -0
  569. package/lib/picker/Picker.d.ts +3 -3
  570. package/lib/picker/PickerColumn.d.ts +2 -2
  571. package/lib/picker/index.css +1 -1
  572. package/lib/picker/index.d.ts +6 -5
  573. package/lib/picker/index.js +1 -1
  574. package/lib/picker/types.d.ts +3 -3
  575. package/lib/popover/Popover.d.ts +8 -0
  576. package/lib/popover/Popover.js +25 -15
  577. package/lib/popover/index.d.ts +8 -2
  578. package/lib/popover/index.js +1 -1
  579. package/lib/popup/Popup.js +9 -8
  580. package/lib/popup/index.d.ts +1 -2
  581. package/lib/popup/index.js +1 -1
  582. package/lib/progress/Progress.d.ts +5 -2
  583. package/lib/progress/Progress.js +6 -32
  584. package/lib/progress/index.css +1 -1
  585. package/lib/progress/index.d.ts +7 -4
  586. package/lib/progress/index.js +1 -1
  587. package/lib/progress/index.less +6 -1
  588. package/lib/pull-refresh/index.d.ts +1 -2
  589. package/lib/pull-refresh/index.js +1 -1
  590. package/lib/radio/Radio.d.ts +2 -2
  591. package/lib/radio/index.d.ts +3 -4
  592. package/lib/radio/index.js +1 -1
  593. package/lib/radio-group/index.d.ts +1 -2
  594. package/lib/radio-group/index.js +1 -1
  595. package/lib/rate/Rate.d.ts +2 -2
  596. package/lib/rate/Rate.js +1 -1
  597. package/lib/rate/index.d.ts +3 -4
  598. package/lib/rate/index.js +1 -1
  599. package/lib/row/Row.d.ts +2 -2
  600. package/lib/row/index.d.ts +3 -4
  601. package/lib/row/index.js +1 -1
  602. package/lib/search/Search.d.ts +18 -6
  603. package/lib/search/Search.js +3 -2
  604. package/lib/search/index.d.ts +18 -8
  605. package/lib/search/index.js +1 -1
  606. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  607. package/lib/share-sheet/index.d.ts +2 -3
  608. package/lib/share-sheet/index.js +1 -1
  609. package/lib/sidebar/index.d.ts +1 -2
  610. package/lib/sidebar/index.js +1 -1
  611. package/lib/sidebar-item/index.d.ts +1 -2
  612. package/lib/sidebar-item/index.js +1 -1
  613. package/lib/skeleton/Skeleton.d.ts +1 -1
  614. package/lib/skeleton/index.d.ts +2 -3
  615. package/lib/skeleton/index.js +1 -1
  616. package/lib/slider/Slider.d.ts +6 -1
  617. package/lib/slider/Slider.js +53 -17
  618. package/lib/slider/index.css +1 -1
  619. package/lib/slider/index.d.ts +5 -2
  620. package/lib/slider/index.js +1 -1
  621. package/lib/slider/index.less +19 -23
  622. package/lib/step/Step.d.ts +1 -1
  623. package/lib/step/index.css +1 -1
  624. package/lib/step/index.d.ts +1 -2
  625. package/lib/step/index.js +1 -1
  626. package/lib/step/index.less +1 -1
  627. package/lib/stepper/index.d.ts +1 -2
  628. package/lib/stepper/index.js +1 -1
  629. package/lib/steps/index.d.ts +1 -2
  630. package/lib/steps/index.js +1 -1
  631. package/lib/sticky/index.d.ts +1 -2
  632. package/lib/sticky/index.js +1 -1
  633. package/lib/style/animation.css +1 -1
  634. package/lib/style/animation.less +20 -20
  635. package/lib/style/base.css +1 -1
  636. package/lib/submit-bar/index.css +1 -1
  637. package/lib/submit-bar/index.d.ts +1 -2
  638. package/lib/submit-bar/index.js +1 -1
  639. package/lib/submit-bar/index.less +3 -4
  640. package/lib/swipe/Swipe.d.ts +5 -5
  641. package/lib/swipe/Swipe.js +2 -1
  642. package/lib/swipe/index.d.ts +8 -7
  643. package/lib/swipe/index.js +1 -1
  644. package/lib/swipe-cell/index.css +1 -1
  645. package/lib/swipe-cell/index.d.ts +3 -2
  646. package/lib/swipe-cell/index.js +1 -1
  647. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  648. package/lib/swipe-item/index.d.ts +1 -2
  649. package/lib/swipe-item/index.js +1 -1
  650. package/lib/switch/index.css +1 -1
  651. package/lib/switch/index.d.ts +1 -2
  652. package/lib/switch/index.js +1 -1
  653. package/lib/tab/Tab.d.ts +8 -1
  654. package/lib/tab/Tab.js +2 -1
  655. package/lib/tab/index.d.ts +9 -3
  656. package/lib/tab/index.js +1 -1
  657. package/lib/tabbar/index.d.ts +1 -2
  658. package/lib/tabbar/index.js +1 -1
  659. package/lib/tabbar-item/index.d.ts +1 -2
  660. package/lib/tabbar-item/index.js +1 -1
  661. package/lib/tabs/Tabs.js +2 -6
  662. package/lib/tabs/TabsTitle.d.ts +8 -1
  663. package/lib/tabs/TabsTitle.js +4 -2
  664. package/lib/tabs/index.d.ts +3 -2
  665. package/lib/tabs/index.js +1 -1
  666. package/lib/tabs/utils.js +1 -4
  667. package/lib/tag/index.d.ts +1 -2
  668. package/lib/tag/index.js +1 -1
  669. package/lib/toast/Toast.d.ts +1 -2
  670. package/lib/toast/Toast.js +1 -3
  671. package/lib/toast/function-call.d.ts +2 -25
  672. package/lib/toast/function-call.js +3 -1
  673. package/lib/toast/index.d.ts +2 -3
  674. package/lib/toast/types.d.ts +32 -0
  675. package/lib/toast/types.js +3 -0
  676. package/lib/tree-select/index.css +1 -1
  677. package/lib/tree-select/index.d.ts +1 -2
  678. package/lib/tree-select/index.js +1 -1
  679. package/lib/tree-select/index.less +1 -1
  680. package/lib/uploader/Uploader.d.ts +3 -3
  681. package/lib/uploader/index.css +1 -1
  682. package/lib/uploader/index.d.ts +6 -5
  683. package/lib/uploader/index.js +1 -1
  684. package/lib/uploader/index.less +4 -5
  685. package/lib/utils/validate.d.ts +0 -1
  686. package/lib/utils/validate.js +0 -5
  687. package/lib/utils/with-install.d.ts +1 -1
  688. package/lib/utils/with-install.js +0 -1
  689. package/lib/vant.es.js +15826 -0
  690. package/lib/vant.es.min.js +1 -0
  691. package/lib/vant.js +15157 -19779
  692. package/lib/vant.min.js +1 -1
  693. package/package.json +12 -18
  694. package/vetur/attributes.json +714 -684
  695. package/vetur/tags.json +243 -234
  696. package/vetur/web-types.json +2207 -2121
  697. package/LICENSE +0 -7
  698. package/README.md +0 -106
  699. package/README.zh-CN.md +0 -116
@@ -1,30 +1,5 @@
1
- import { App, CSSProperties, TeleportProps } from 'vue';
2
- import { Interceptor } from '../utils';
3
- import { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './Dialog';
4
- export declare type DialogOptions = {
5
- title?: string;
6
- width?: string | number;
7
- theme?: DialogTheme;
8
- message?: DialogMessage;
9
- overlay?: boolean;
10
- teleport?: TeleportProps['to'];
11
- className?: unknown;
12
- allowHtml?: boolean;
13
- lockScroll?: boolean;
14
- transition?: string;
15
- beforeClose?: Interceptor;
16
- messageAlign?: DialogMessageAlign;
17
- overlayClass?: string;
18
- overlayStyle?: CSSProperties;
19
- closeOnPopstate?: boolean;
20
- cancelButtonText?: string;
21
- showCancelButton?: boolean;
22
- showConfirmButton?: boolean;
23
- cancelButtonColor?: string;
24
- confirmButtonText?: string;
25
- confirmButtonColor?: string;
26
- closeOnClickOverlay?: boolean;
27
- };
1
+ import { App } from 'vue';
2
+ import type { DialogAction, DialogOptions } from './types';
28
3
  declare function Dialog(options: DialogOptions): Promise<unknown>;
29
4
  declare namespace Dialog {
30
5
  var defaultOptions: {
@@ -82,7 +57,6 @@ declare namespace Dialog {
82
57
  var close: () => void;
83
58
  var setDefaultOptions: (options: DialogOptions) => void;
84
59
  var resetDefaultOptions: () => void;
85
- var install: (app: App<any>) => void;
86
60
  var Component: import("../utils").WithInstall<import("vue").DefineComponent<{
87
61
  show: BooleanConstructor;
88
62
  zIndex: (NumberConstructor | StringConstructor)[];
@@ -100,8 +74,8 @@ declare namespace Dialog {
100
74
  type: BooleanConstructor;
101
75
  default: true;
102
76
  };
103
- beforeClose: import("vue").PropType<Interceptor>;
104
- overlayStyle: import("vue").PropType<CSSProperties>;
77
+ beforeClose: import("vue").PropType<import("../utils").Interceptor>;
78
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
105
79
  overlayClass: import("vue").PropType<unknown>;
106
80
  transitionAppear: BooleanConstructor;
107
81
  closeOnClickOverlay: {
@@ -110,13 +84,13 @@ declare namespace Dialog {
110
84
  };
111
85
  } & {
112
86
  title: StringConstructor;
113
- theme: import("vue").PropType<DialogTheme>;
87
+ theme: import("vue").PropType<import("./types").DialogTheme>;
114
88
  width: (NumberConstructor | StringConstructor)[];
115
- message: import("vue").PropType<DialogMessage>;
89
+ message: import("vue").PropType<import("./types").DialogMessage>;
116
90
  callback: import("vue").PropType<(action?: DialogAction | undefined) => void>;
117
91
  allowHtml: BooleanConstructor;
118
92
  className: import("vue").PropType<unknown>;
119
- messageAlign: import("vue").PropType<DialogMessageAlign>;
93
+ messageAlign: import("vue").PropType<import("./types").DialogMessageAlign>;
120
94
  closeOnPopstate: {
121
95
  type: BooleanConstructor;
122
96
  default: true;
@@ -135,7 +109,7 @@ declare namespace Dialog {
135
109
  type: StringConstructor;
136
110
  default: string;
137
111
  };
138
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "update:show" | "confirm")[], "cancel" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
112
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
139
113
  show?: unknown;
140
114
  zIndex?: unknown;
141
115
  overlay?: unknown;
@@ -177,21 +151,21 @@ declare namespace Dialog {
177
151
  showCancelButton: boolean;
178
152
  showConfirmButton: boolean;
179
153
  } & {
180
- message?: DialogMessage | undefined;
154
+ message?: import("./types").DialogMessage | undefined;
181
155
  title?: string | undefined;
156
+ width?: string | number | undefined;
182
157
  zIndex?: string | number | undefined;
183
158
  duration?: string | number | undefined;
184
159
  teleport?: string | import("vue").RendererElement | null | undefined;
185
- beforeClose?: Interceptor | undefined;
186
- overlayStyle?: CSSProperties | undefined;
160
+ beforeClose?: import("../utils").Interceptor | undefined;
161
+ overlayStyle?: import("vue").CSSProperties | undefined;
187
162
  overlayClass?: unknown;
188
163
  className?: unknown;
189
164
  callback?: ((action?: DialogAction | undefined) => void) | undefined;
190
165
  cancelButtonText?: string | undefined;
191
166
  confirmButtonText?: string | undefined;
192
- theme?: DialogTheme | undefined;
193
- width?: string | number | undefined;
194
- messageAlign?: DialogMessageAlign | undefined;
167
+ theme?: import("./types").DialogTheme | undefined;
168
+ messageAlign?: import("./types").DialogMessageAlign | undefined;
195
169
  cancelButtonColor?: string | undefined;
196
170
  confirmButtonColor?: string | undefined;
197
171
  }> & {
@@ -211,5 +185,6 @@ declare namespace Dialog {
211
185
  showCancelButton: boolean;
212
186
  showConfirmButton: boolean;
213
187
  }>>;
188
+ var install: (app: App<any>) => void;
214
189
  }
215
190
  export { Dialog };
@@ -87,10 +87,11 @@ Dialog.resetDefaultOptions = () => {
87
87
  Dialog.currentOptions = extend({}, Dialog.defaultOptions);
88
88
  };
89
89
 
90
+ Dialog.Component = withInstall(VanDialog);
91
+
90
92
  Dialog.install = app => {
91
- app.use(withInstall(VanDialog));
93
+ app.use(Dialog.Component);
92
94
  app.config.globalProperties.$dialog = Dialog;
93
95
  };
94
96
 
95
- Dialog.Component = withInstall(VanDialog);
96
97
  export { Dialog };
@@ -1,5 +1,4 @@
1
- import { Dialog, DialogOptions } from './function-call';
2
- import type { DialogTheme, DialogMessage, DialogMessageAlign } from './Dialog';
1
+ import { Dialog } from './function-call';
3
2
  export default Dialog;
4
3
  export { Dialog };
5
- export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign };
4
+ export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, } from './types';
@@ -0,0 +1,36 @@
1
+ import { Dialog } from './function-call';
2
+ import type { CSSProperties, TeleportProps } from 'vue';
3
+ import type { Interceptor } from '../utils';
4
+ export declare type DialogTheme = 'default' | 'round-button';
5
+ export declare type DialogAction = 'confirm' | 'cancel';
6
+ export declare type DialogMessage = string | (() => JSX.Element);
7
+ export declare type DialogMessageAlign = 'left' | 'center' | 'right';
8
+ export declare type DialogOptions = {
9
+ title?: string;
10
+ width?: string | number;
11
+ theme?: DialogTheme;
12
+ message?: DialogMessage;
13
+ overlay?: boolean;
14
+ teleport?: TeleportProps['to'];
15
+ className?: unknown;
16
+ allowHtml?: boolean;
17
+ lockScroll?: boolean;
18
+ transition?: string;
19
+ beforeClose?: Interceptor;
20
+ messageAlign?: DialogMessageAlign;
21
+ overlayClass?: string;
22
+ overlayStyle?: CSSProperties;
23
+ closeOnPopstate?: boolean;
24
+ cancelButtonText?: string;
25
+ showCancelButton?: boolean;
26
+ showConfirmButton?: boolean;
27
+ cancelButtonColor?: string;
28
+ confirmButtonText?: string;
29
+ confirmButtonColor?: string;
30
+ closeOnClickOverlay?: boolean;
31
+ };
32
+ declare module '@vue/runtime-core' {
33
+ interface ComponentCustomProperties {
34
+ $dialog: typeof Dialog;
35
+ }
36
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  dashed: boolean;
19
19
  hairline: boolean;
20
20
  contentPosition: DividerContentPosition;
21
- } & {}> & {}, {
21
+ } & {}>, {
22
22
  dashed: boolean;
23
23
  hairline: boolean;
24
24
  contentPosition: DividerContentPosition;
@@ -1,4 +1,4 @@
1
- declare const Divider: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Divider: import("../utils").WithInstall<import("vue").DefineComponent<{
2
2
  dashed: BooleanConstructor;
3
3
  hairline: {
4
4
  type: BooleanConstructor;
@@ -16,11 +16,10 @@ declare const Divider: import("../utils").WithInstall<import("vue").DefineCompon
16
16
  dashed: boolean;
17
17
  hairline: boolean;
18
18
  contentPosition: import("./Divider").DividerContentPosition;
19
- } & {}> & {}, {
19
+ } & {}>, {
20
20
  dashed: boolean;
21
21
  hairline: boolean;
22
22
  contentPosition: import("./Divider").DividerContentPosition;
23
23
  }>>;
24
24
  export default Divider;
25
- export { Divider };
26
25
  export type { DividerContentPosition } from './Divider';
@@ -1,5 +1,4 @@
1
1
  import { withInstall } from '../utils';
2
2
  import _Divider from './Divider';
3
- var Divider = withInstall(_Divider);
4
- export default Divider;
5
- export { Divider };
3
+ export var Divider = withInstall(_Divider);
4
+ export default Divider;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  type: PropType<DropdownItemOption[]>;
31
31
  default: () => never[];
32
32
  };
33
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "update:modelValue" | "open" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
33
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
34
34
  title?: unknown;
35
35
  disabled?: unknown;
36
36
  teleport?: unknown;
@@ -1,4 +1,5 @@
1
- declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ import { DropdownItemProps } from './DropdownItem';
2
+ export declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineComponent<{
2
3
  title: StringConstructor;
3
4
  disabled: BooleanConstructor;
4
5
  teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
@@ -12,7 +13,7 @@ declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineC
12
13
  type: import("vue").PropType<import("./types").DropdownItemOption[]>;
13
14
  default: () => never[];
14
15
  };
15
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "update:modelValue" | "open" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
16
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
16
17
  title?: unknown;
17
18
  disabled?: unknown;
18
19
  teleport?: unknown;
@@ -42,5 +43,5 @@ declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineC
42
43
  options: import("./types").DropdownItemOption[];
43
44
  }>>;
44
45
  export default DropdownItem;
45
- export { DropdownItem };
46
+ export type { DropdownItemProps };
46
47
  export type { DropdownItemInstance, DropdownItemOption } from './types';
@@ -1,5 +1,4 @@
1
1
  import { withInstall } from '../utils';
2
2
  import _DropdownItem from './DropdownItem';
3
- var DropdownItem = withInstall(_DropdownItem);
4
- export default DropdownItem;
5
- export { DropdownItem };
3
+ export var DropdownItem = withInstall(_DropdownItem);
4
+ export default DropdownItem;
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
66
66
  } & {
67
67
  zIndex?: string | number | undefined;
68
68
  activeColor?: string | undefined;
69
- }> & {}, {
69
+ }>, {
70
70
  overlay: boolean;
71
71
  duration: string | number;
72
72
  closeOnClickOverlay: boolean;
@@ -1,4 +1,5 @@
1
- declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ import { DropdownMenuProps } from './DropdownMenu';
2
+ export declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineComponent<{
2
3
  overlay: {
3
4
  type: BooleanConstructor;
4
5
  default: true;
@@ -38,7 +39,7 @@ declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineC
38
39
  } & {
39
40
  zIndex?: string | number | undefined;
40
41
  activeColor?: string | undefined;
41
- }> & {}, {
42
+ }>, {
42
43
  overlay: boolean;
43
44
  duration: string | number;
44
45
  closeOnClickOverlay: boolean;
@@ -46,5 +47,5 @@ declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineC
46
47
  closeOnClickOutside: boolean;
47
48
  }>>;
48
49
  export default DropdownMenu;
49
- export { DropdownMenu };
50
+ export type { DropdownMenuProps };
50
51
  export type { DropdownMenuDirection } from './types';
@@ -1,5 +1,4 @@
1
1
  import { withInstall } from '../utils';
2
2
  import _DropdownMenu from './DropdownMenu';
3
- var DropdownMenu = withInstall(_DropdownMenu);
4
- export default DropdownMenu;
5
- export { DropdownMenu };
3
+ export var DropdownMenu = withInstall(_DropdownMenu);
4
+ export default DropdownMenu;
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
14
14
  } & {
15
15
  description?: string | undefined;
16
16
  imageSize?: string | number | undefined;
17
- }> & {}, {
17
+ }>, {
18
18
  image: string;
19
19
  }>;
20
20
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<{
2
2
  imageSize: (NumberConstructor | StringConstructor)[];
3
3
  description: StringConstructor;
4
4
  image: {
@@ -14,8 +14,7 @@ declare const Empty: import("../utils").WithInstall<import("vue").DefineComponen
14
14
  } & {
15
15
  description?: string | undefined;
16
16
  imageSize?: string | number | undefined;
17
- }> & {}, {
17
+ }>, {
18
18
  image: string;
19
19
  }>>;
20
20
  export default Empty;
21
- export { Empty };
package/es/empty/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { withInstall } from '../utils';
2
2
  import _Empty from './Empty';
3
- var Empty = withInstall(_Empty);
4
- export default Empty;
5
- export { Empty };
3
+ export var Empty = withInstall(_Empty);
4
+ export default Empty;
@@ -1,6 +1,8 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
2
  import type { FieldRule, FieldType, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldAutosizeConfig } from './types';
3
3
  export declare const fieldSharedProps: {
4
+ id: StringConstructor;
5
+ name: StringConstructor;
4
6
  formatter: PropType<(value: string) => string>;
5
7
  leftIcon: StringConstructor;
6
8
  rightIcon: StringConstructor;
@@ -9,6 +11,7 @@ export declare const fieldSharedProps: {
9
11
  maxlength: (NumberConstructor | StringConstructor)[];
10
12
  inputAlign: PropType<FieldTextAlign>;
11
13
  placeholder: StringConstructor;
14
+ autocomplete: StringConstructor;
12
15
  errorMessage: StringConstructor;
13
16
  error: {
14
17
  type: BooleanConstructor;
@@ -63,6 +66,8 @@ declare const props: {
63
66
  default: null;
64
67
  };
65
68
  } & {
69
+ id: StringConstructor;
70
+ name: StringConstructor;
66
71
  formatter: PropType<(value: string) => string>;
67
72
  leftIcon: StringConstructor;
68
73
  rightIcon: StringConstructor;
@@ -71,6 +76,7 @@ declare const props: {
71
76
  maxlength: (NumberConstructor | StringConstructor)[];
72
77
  inputAlign: PropType<FieldTextAlign>;
73
78
  placeholder: StringConstructor;
79
+ autocomplete: StringConstructor;
74
80
  errorMessage: StringConstructor;
75
81
  error: {
76
82
  type: BooleanConstructor;
@@ -102,13 +108,11 @@ declare const props: {
102
108
  };
103
109
  } & {
104
110
  rows: (NumberConstructor | StringConstructor)[];
105
- name: StringConstructor;
106
111
  rules: PropType<FieldRule[]>;
107
112
  autosize: PropType<boolean | FieldAutosizeConfig>;
108
113
  labelWidth: (NumberConstructor | StringConstructor)[];
109
114
  labelClass: PropType<unknown>;
110
115
  labelAlign: PropType<FieldTextAlign>;
111
- autocomplete: StringConstructor;
112
116
  showWordLimit: BooleanConstructor;
113
117
  errorMessageAlign: PropType<FieldTextAlign>;
114
118
  type: {
@@ -145,6 +149,8 @@ declare const _default: import("vue").DefineComponent<{
145
149
  default: null;
146
150
  };
147
151
  } & {
152
+ id: StringConstructor;
153
+ name: StringConstructor;
148
154
  formatter: PropType<(value: string) => string>;
149
155
  leftIcon: StringConstructor;
150
156
  rightIcon: StringConstructor;
@@ -153,6 +159,7 @@ declare const _default: import("vue").DefineComponent<{
153
159
  maxlength: (NumberConstructor | StringConstructor)[];
154
160
  inputAlign: PropType<FieldTextAlign>;
155
161
  placeholder: StringConstructor;
162
+ autocomplete: StringConstructor;
156
163
  errorMessage: StringConstructor;
157
164
  error: {
158
165
  type: BooleanConstructor;
@@ -184,13 +191,11 @@ declare const _default: import("vue").DefineComponent<{
184
191
  };
185
192
  } & {
186
193
  rows: (NumberConstructor | StringConstructor)[];
187
- name: StringConstructor;
188
194
  rules: PropType<FieldRule[]>;
189
195
  autosize: PropType<boolean | FieldAutosizeConfig>;
190
196
  labelWidth: (NumberConstructor | StringConstructor)[];
191
197
  labelClass: PropType<unknown>;
192
198
  labelAlign: PropType<FieldTextAlign>;
193
- autocomplete: StringConstructor;
194
199
  showWordLimit: BooleanConstructor;
195
200
  errorMessageAlign: PropType<FieldTextAlign>;
196
201
  type: {
@@ -218,6 +223,8 @@ declare const _default: import("vue").DefineComponent<{
218
223
  titleStyle?: unknown;
219
224
  arrowDirection?: unknown;
220
225
  clickable?: unknown;
226
+ id?: unknown;
227
+ name?: unknown;
221
228
  formatter?: unknown;
222
229
  leftIcon?: unknown;
223
230
  rightIcon?: unknown;
@@ -226,6 +233,7 @@ declare const _default: import("vue").DefineComponent<{
226
233
  maxlength?: unknown;
227
234
  inputAlign?: unknown;
228
235
  placeholder?: unknown;
236
+ autocomplete?: unknown;
229
237
  errorMessage?: unknown;
230
238
  error?: unknown;
231
239
  disabled?: unknown;
@@ -235,12 +243,10 @@ declare const _default: import("vue").DefineComponent<{
235
243
  clearTrigger?: unknown;
236
244
  formatTrigger?: unknown;
237
245
  rows?: unknown;
238
- name?: unknown;
239
246
  rules?: unknown;
240
247
  autosize?: unknown;
241
248
  labelWidth?: unknown;
242
249
  labelAlign?: unknown;
243
- autocomplete?: unknown;
244
250
  showWordLimit?: unknown;
245
251
  errorMessageAlign?: unknown;
246
252
  type?: unknown;
@@ -248,14 +254,14 @@ declare const _default: import("vue").DefineComponent<{
248
254
  } & {
249
255
  type: FieldType;
250
256
  center: boolean;
257
+ autofocus: boolean;
258
+ disabled: boolean;
251
259
  isLink: boolean;
252
260
  border: boolean;
253
261
  required: boolean;
254
262
  clickable: boolean | null;
255
- autofocus: boolean;
256
263
  clearable: boolean;
257
264
  error: boolean;
258
- disabled: boolean;
259
265
  readonly: boolean;
260
266
  clearIcon: string;
261
267
  modelValue: string | number;
@@ -268,14 +274,16 @@ declare const _default: import("vue").DefineComponent<{
268
274
  label?: string | number | undefined;
269
275
  title?: string | number | undefined;
270
276
  iconPrefix?: string | undefined;
277
+ autocomplete?: string | undefined;
278
+ value?: string | number | undefined;
271
279
  icon?: string | undefined;
272
280
  size?: "large" | undefined;
273
- value?: string | number | undefined;
274
281
  valueClass?: unknown;
275
282
  labelClass?: unknown;
276
283
  titleClass?: unknown;
277
284
  titleStyle?: string | import("vue").CSSProperties | undefined;
278
285
  arrowDirection?: import("../cell").CellArrowDirection | undefined;
286
+ id?: string | undefined;
279
287
  formatter?: ((value: string) => string) | undefined;
280
288
  leftIcon?: string | undefined;
281
289
  rightIcon?: string | undefined;
@@ -288,7 +296,6 @@ declare const _default: import("vue").DefineComponent<{
288
296
  autosize?: boolean | FieldAutosizeConfig | undefined;
289
297
  labelWidth?: string | number | undefined;
290
298
  labelAlign?: FieldTextAlign | undefined;
291
- autocomplete?: string | undefined;
292
299
  errorMessageAlign?: FieldTextAlign | undefined;
293
300
  }> & {
294
301
  onFocus?: ((...args: any[]) => any) | undefined;
@@ -302,14 +309,14 @@ declare const _default: import("vue").DefineComponent<{
302
309
  }, {
303
310
  type: FieldType;
304
311
  center: boolean;
312
+ autofocus: boolean;
313
+ disabled: boolean;
305
314
  isLink: boolean;
306
315
  border: boolean;
307
316
  required: boolean;
308
317
  clickable: boolean | null;
309
- autofocus: boolean;
310
318
  clearable: boolean;
311
319
  error: boolean;
312
- disabled: boolean;
313
320
  readonly: boolean;
314
321
  clearIcon: string;
315
322
  modelValue: string | number;
package/es/field/Field.js CHANGED
@@ -14,6 +14,8 @@ import { Cell } from '../cell'; // Types
14
14
  var [name, bem] = createNamespace('field'); // provide to Search component to inherit
15
15
 
16
16
  export var fieldSharedProps = {
17
+ id: String,
18
+ name: String,
17
19
  formatter: Function,
18
20
  leftIcon: String,
19
21
  rightIcon: String,
@@ -22,6 +24,7 @@ export var fieldSharedProps = {
22
24
  maxlength: [Number, String],
23
25
  inputAlign: String,
24
26
  placeholder: String,
27
+ autocomplete: String,
25
28
  errorMessage: String,
26
29
  error: {
27
30
  type: Boolean,
@@ -54,13 +57,11 @@ export var fieldSharedProps = {
54
57
  };
55
58
  var props = extend({}, cellProps, fieldSharedProps, {
56
59
  rows: [Number, String],
57
- name: String,
58
60
  rules: Array,
59
61
  autosize: [Boolean, Object],
60
62
  labelWidth: [Number, String],
61
63
  labelClass: unknownProp,
62
64
  labelAlign: String,
63
- autocomplete: String,
64
65
  showWordLimit: Boolean,
65
66
  errorMessageAlign: String,
66
67
  type: {
@@ -354,6 +355,7 @@ export default defineComponent({
354
355
  }
355
356
 
356
357
  var inputAttrs = {
358
+ id: props.id,
357
359
  ref: inputRef,
358
360
  name: props.name,
359
361
  rows: props.rows !== undefined ? +props.rows : undefined,
@@ -443,7 +445,9 @@ export default defineComponent({
443
445
  }
444
446
 
445
447
  if (props.label) {
446
- return _createVNode("span", null, [props.label + colon]);
448
+ return _createVNode("label", {
449
+ "for": props.id
450
+ }, [props.label + colon]);
447
451
  }
448
452
  };
449
453
 
@@ -488,6 +492,7 @@ export default defineComponent({
488
492
  "size": props.size,
489
493
  "icon": props.leftIcon,
490
494
  "class": bem({
495
+ error: showError.value,
491
496
  disabled,
492
497
  ["label-" + labelAlign]: labelAlign
493
498
  }),
@@ -1 +1 @@
1
- :root{--van-field-label-width:6.2em;--van-field-label-color:var(--van-gray-7);--van-field-label-margin-right:var(--van-padding-sm);--van-field-input-text-color:var(--van-text-color);--van-field-input-error-text-color:var(--van-danger-color);--van-field-input-disabled-text-color:var(--van-gray-5);--van-field-placeholder-text-color:var(--van-gray-5);--van-field-icon-size:16px;--van-field-clear-icon-size:16px;--van-field-clear-icon-color:var(--van-gray-5);--van-field-right-icon-color:var(--van-gray-6);--van-field-error-message-color:var(--van-danger-color);--van-field-error-message-text-color:12px;--van-field-text-area-min-height:60px;--van-field-word-limit-color:var(--van-gray-7);--van-field-word-limit-font-size:var(--van-font-size-sm);--van-field-word-limit-line-height:16px;--van-field-disabled-text-color:var(--van-gray-5);--van-field-required-mark-color:var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required::before{margin-right:2px;color:var(--van-field-required-mark-color);content:'*'}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=datetime-local],.van-field__control[type=time]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__button,.van-field__clear,.van-field__icon,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:-var(--van-padding-xs);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-text-color);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}
1
+ :root{--van-field-label-width:6.2em;--van-field-label-color:var(--van-gray-7);--van-field-label-margin-right:var(--van-padding-sm);--van-field-input-text-color:var(--van-text-color);--van-field-input-error-text-color:var(--van-danger-color);--van-field-input-disabled-text-color:var(--van-gray-5);--van-field-placeholder-text-color:var(--van-gray-5);--van-field-icon-size:16px;--van-field-clear-icon-size:16px;--van-field-clear-icon-color:var(--van-gray-5);--van-field-right-icon-color:var(--van-gray-6);--van-field-error-message-color:var(--van-danger-color);--van-field-error-message-font-size:12px;--van-field-text-area-min-height:60px;--van-field-word-limit-color:var(--van-gray-7);--van-field-word-limit-font-size:var(--van-font-size-sm);--van-field-word-limit-line-height:16px;--van-field-disabled-text-color:var(--van-gray-5);--van-field-required-mark-color:var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required::before{margin-right:2px;color:var(--van-field-required-mark-color);content:'*'}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=datetime-local],.van-field__control[type=time]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__button,.van-field__clear,.van-field__icon,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}