vant 4.0.0-rc.2 → 4.0.0-rc.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 (406) hide show
  1. package/README.md +4 -5
  2. package/changelog.generated.md +38 -26
  3. package/es/action-bar/index.d.ts +1 -0
  4. package/es/action-bar/types.d.ts +4 -0
  5. package/es/action-bar/types.mjs +0 -0
  6. package/es/action-bar-button/index.d.ts +1 -0
  7. package/es/action-bar-button/types.d.ts +5 -0
  8. package/es/action-bar-button/types.mjs +0 -0
  9. package/es/action-bar-icon/index.d.ts +1 -0
  10. package/es/action-bar-icon/types.d.ts +10 -0
  11. package/es/action-bar-icon/types.mjs +0 -0
  12. package/es/action-sheet/index.d.ts +1 -0
  13. package/es/action-sheet/types.d.ts +23 -0
  14. package/es/action-sheet/types.mjs +0 -0
  15. package/es/address-edit/index.d.ts +1 -1
  16. package/es/address-edit/types.d.ts +6 -0
  17. package/es/address-list/index.d.ts +1 -0
  18. package/es/address-list/types.d.ts +15 -0
  19. package/es/address-list/types.mjs +0 -0
  20. package/es/badge/index.d.ts +1 -0
  21. package/es/badge/types.d.ts +12 -0
  22. package/es/badge/types.mjs +0 -0
  23. package/es/button/index.d.ts +1 -1
  24. package/es/button/types.d.ts +36 -0
  25. package/es/calendar/index.d.ts +1 -1
  26. package/es/calendar/types.d.ts +28 -0
  27. package/es/card/index.d.ts +1 -0
  28. package/es/card/types.d.ts +18 -0
  29. package/es/card/types.mjs +0 -0
  30. package/es/cascader/index.d.ts +1 -1
  31. package/es/cascader/types.d.ts +15 -0
  32. package/es/cell/index.d.ts +1 -0
  33. package/es/cell/types.d.ts +21 -0
  34. package/es/cell/types.mjs +0 -0
  35. package/es/cell-group/index.d.ts +1 -0
  36. package/es/cell-group/types.d.ts +10 -0
  37. package/es/cell-group/types.mjs +0 -0
  38. package/es/checkbox/index.d.ts +1 -1
  39. package/es/checkbox/types.d.ts +11 -0
  40. package/es/circle/index.d.ts +1 -0
  41. package/es/circle/types.d.ts +9 -0
  42. package/es/circle/types.mjs +0 -0
  43. package/es/collapse-item/index.d.ts +1 -1
  44. package/es/collapse-item/types.d.ts +9 -0
  45. package/es/config-provider/index.d.ts +1 -0
  46. package/es/config-provider/types.d.ts +1 -0
  47. package/es/config-provider/types.mjs +0 -0
  48. package/es/contact-card/index.d.ts +1 -0
  49. package/es/contact-card/types.d.ts +6 -0
  50. package/es/contact-card/types.mjs +0 -0
  51. package/es/contact-edit/index.d.ts +1 -0
  52. package/es/contact-edit/types.d.ts +8 -0
  53. package/es/contact-edit/types.mjs +0 -0
  54. package/es/contact-list/index.d.ts +1 -0
  55. package/es/contact-list/types.d.ts +6 -0
  56. package/es/contact-list/types.mjs +0 -0
  57. package/es/count-down/index.d.ts +1 -1
  58. package/es/count-down/types.d.ts +5 -0
  59. package/es/coupon/index.d.ts +1 -0
  60. package/es/coupon/types.d.ts +19 -0
  61. package/es/coupon/types.mjs +0 -0
  62. package/es/coupon-cell/index.d.ts +1 -0
  63. package/es/coupon-cell/types.d.ts +3 -0
  64. package/es/coupon-cell/types.mjs +0 -0
  65. package/es/coupon-list/index.d.ts +1 -0
  66. package/es/coupon-list/types.d.ts +9 -0
  67. package/es/coupon-list/types.mjs +0 -0
  68. package/es/dialog/index.d.ts +1 -1
  69. package/es/dialog/types.d.ts +21 -0
  70. package/es/divider/index.d.ts +1 -0
  71. package/es/divider/types.d.ts +10 -0
  72. package/es/divider/types.mjs +0 -0
  73. package/es/dropdown-item/index.d.ts +1 -1
  74. package/es/dropdown-item/types.d.ts +3 -0
  75. package/es/dropdown-menu/index.d.ts +1 -1
  76. package/es/dropdown-menu/types.d.ts +13 -0
  77. package/es/empty/index.d.ts +1 -0
  78. package/es/empty/types.d.ts +10 -0
  79. package/es/empty/types.mjs +0 -0
  80. package/es/field/Field.mjs +2 -1
  81. package/es/field/index.d.ts +1 -1
  82. package/es/field/types.d.ts +21 -0
  83. package/es/grid-item/index.d.ts +1 -0
  84. package/es/grid-item/types.d.ts +8 -0
  85. package/es/grid-item/types.mjs +0 -0
  86. package/es/image/index.d.ts +1 -0
  87. package/es/image/types.d.ts +9 -0
  88. package/es/image/types.mjs +0 -0
  89. package/es/image-preview/index.d.ts +2 -2
  90. package/es/image-preview/types.d.ts +11 -0
  91. package/es/index-anchor/index.d.ts +1 -0
  92. package/es/index-anchor/types.d.ts +11 -0
  93. package/es/index-anchor/types.mjs +0 -0
  94. package/es/index-bar/index.d.ts +1 -1
  95. package/es/index-bar/types.d.ts +6 -0
  96. package/es/index.d.ts +1 -1
  97. package/es/index.mjs +1 -1
  98. package/es/list/index.d.ts +1 -1
  99. package/es/list/types.d.ts +6 -0
  100. package/es/loading/index.d.ts +1 -0
  101. package/es/loading/types.d.ts +7 -0
  102. package/es/loading/types.mjs +0 -0
  103. package/es/nav-bar/index.d.ts +1 -0
  104. package/es/nav-bar/types.d.ts +10 -0
  105. package/es/nav-bar/types.mjs +0 -0
  106. package/es/notice-bar/index.d.ts +1 -1
  107. package/es/notice-bar/types.d.ts +11 -0
  108. package/es/notify/Notify.mjs +1 -0
  109. package/es/notify/function-call.mjs +1 -1
  110. package/es/notify/index.d.ts +2 -2
  111. package/es/notify/types.d.ts +10 -0
  112. package/es/number-keyboard/index.d.ts +1 -0
  113. package/es/number-keyboard/types.d.ts +17 -0
  114. package/es/number-keyboard/types.mjs +0 -0
  115. package/es/overlay/index.d.ts +1 -0
  116. package/es/overlay/types.d.ts +4 -0
  117. package/es/overlay/types.mjs +0 -0
  118. package/es/pagination/index.d.ts +1 -0
  119. package/es/pagination/types.d.ts +11 -0
  120. package/es/pagination/types.mjs +0 -0
  121. package/es/password-input/index.d.ts +1 -0
  122. package/es/password-input/types.d.ts +17 -0
  123. package/es/password-input/types.mjs +0 -0
  124. package/es/picker/index.d.ts +1 -1
  125. package/es/picker/types.d.ts +17 -0
  126. package/es/picker-group/index.d.ts +1 -0
  127. package/es/picker-group/types.d.ts +3 -0
  128. package/es/picker-group/types.mjs +0 -0
  129. package/es/popover/index.d.ts +1 -1
  130. package/es/popover/types.d.ts +15 -0
  131. package/es/popup/index.d.ts +1 -1
  132. package/es/popup/types.d.ts +9 -0
  133. package/es/progress/index.d.ts +1 -1
  134. package/es/progress/types.d.ts +11 -0
  135. package/es/pull-refresh/index.d.ts +1 -0
  136. package/es/pull-refresh/types.d.ts +6 -0
  137. package/es/pull-refresh/types.mjs +0 -0
  138. package/es/radio/index.d.ts +1 -0
  139. package/es/radio/types.d.ts +11 -0
  140. package/es/radio/types.mjs +0 -0
  141. package/es/rate/index.d.ts +1 -0
  142. package/es/rate/types.d.ts +7 -0
  143. package/es/rate/types.mjs +0 -0
  144. package/es/search/index.d.ts +1 -1
  145. package/es/search/types.d.ts +13 -0
  146. package/es/share-sheet/index.d.ts +1 -0
  147. package/es/share-sheet/types.d.ts +17 -0
  148. package/es/share-sheet/types.mjs +0 -0
  149. package/es/sidebar/index.d.ts +1 -0
  150. package/es/sidebar/types.d.ts +3 -0
  151. package/es/sidebar/types.mjs +0 -0
  152. package/es/sidebar-item/index.d.ts +1 -0
  153. package/es/sidebar-item/types.d.ts +15 -0
  154. package/es/sidebar-item/types.mjs +0 -0
  155. package/es/skeleton/index.d.ts +1 -0
  156. package/es/skeleton/types.d.ts +9 -0
  157. package/es/skeleton/types.mjs +0 -0
  158. package/es/slider/index.d.ts +1 -0
  159. package/es/slider/types.d.ts +11 -0
  160. package/es/slider/types.mjs +0 -0
  161. package/es/step/index.d.ts +1 -0
  162. package/es/step/types.d.ts +13 -0
  163. package/es/step/types.mjs +0 -0
  164. package/es/stepper/index.d.ts +1 -0
  165. package/es/stepper/types.d.ts +15 -0
  166. package/es/stepper/types.mjs +0 -0
  167. package/es/steps/index.d.ts +1 -0
  168. package/es/steps/types.d.ts +3 -0
  169. package/es/steps/types.mjs +0 -0
  170. package/es/sticky/index.d.ts +1 -0
  171. package/es/sticky/types.d.ts +3 -0
  172. package/es/sticky/types.mjs +0 -0
  173. package/es/submit-bar/index.d.ts +1 -0
  174. package/es/submit-bar/types.d.ts +21 -0
  175. package/es/submit-bar/types.mjs +0 -0
  176. package/es/swipe/index.d.ts +1 -1
  177. package/es/swipe/types.d.ts +8 -0
  178. package/es/switch/index.d.ts +1 -0
  179. package/es/switch/types.d.ts +12 -0
  180. package/es/switch/types.mjs +0 -0
  181. package/es/tab/Tab.mjs +12 -2
  182. package/es/tabbar/index.d.ts +1 -0
  183. package/es/tabbar/types.d.ts +5 -0
  184. package/es/tabbar/types.mjs +0 -0
  185. package/es/tabbar-item/index.d.ts +1 -0
  186. package/es/tabbar-item/types.d.ts +9 -0
  187. package/es/tabbar-item/types.mjs +0 -0
  188. package/es/tabs/Tabs.mjs +11 -11
  189. package/es/tabs/index.d.ts +1 -1
  190. package/es/tabs/types.d.ts +14 -0
  191. package/es/tag/Tag.d.ts +1 -2
  192. package/es/tag/index.d.ts +9 -8
  193. package/es/tag/types.d.ts +20 -0
  194. package/es/tag/types.mjs +0 -0
  195. package/es/toast/index.d.ts +6 -1
  196. package/es/toast/types.d.ts +17 -0
  197. package/es/tree-select/index.d.ts +1 -0
  198. package/es/tree-select/types.d.ts +10 -0
  199. package/es/tree-select/types.mjs +0 -0
  200. package/es/uploader/index.d.ts +1 -1
  201. package/es/uploader/types.d.ts +27 -0
  202. package/lib/action-bar/index.d.ts +1 -0
  203. package/lib/action-bar/types.d.ts +4 -0
  204. package/lib/action-bar/types.js +15 -0
  205. package/lib/action-bar-button/index.d.ts +1 -0
  206. package/lib/action-bar-button/types.d.ts +5 -0
  207. package/lib/action-bar-button/types.js +15 -0
  208. package/lib/action-bar-icon/index.d.ts +1 -0
  209. package/lib/action-bar-icon/types.d.ts +10 -0
  210. package/lib/action-bar-icon/types.js +15 -0
  211. package/lib/action-sheet/index.d.ts +1 -0
  212. package/lib/action-sheet/types.d.ts +23 -0
  213. package/lib/action-sheet/types.js +15 -0
  214. package/lib/address-edit/index.d.ts +1 -1
  215. package/lib/address-edit/types.d.ts +6 -0
  216. package/lib/address-list/index.d.ts +1 -0
  217. package/lib/address-list/types.d.ts +15 -0
  218. package/lib/address-list/types.js +15 -0
  219. package/lib/badge/index.d.ts +1 -0
  220. package/lib/badge/types.d.ts +12 -0
  221. package/lib/badge/types.js +15 -0
  222. package/lib/button/index.d.ts +1 -1
  223. package/lib/button/types.d.ts +36 -0
  224. package/lib/calendar/index.d.ts +1 -1
  225. package/lib/calendar/types.d.ts +28 -0
  226. package/lib/card/index.d.ts +1 -0
  227. package/lib/card/types.d.ts +18 -0
  228. package/lib/card/types.js +15 -0
  229. package/lib/cascader/index.d.ts +1 -1
  230. package/lib/cascader/types.d.ts +15 -0
  231. package/lib/cell/index.d.ts +1 -0
  232. package/lib/cell/types.d.ts +21 -0
  233. package/lib/cell/types.js +15 -0
  234. package/lib/cell-group/index.d.ts +1 -0
  235. package/lib/cell-group/types.d.ts +10 -0
  236. package/lib/cell-group/types.js +15 -0
  237. package/lib/checkbox/index.d.ts +1 -1
  238. package/lib/checkbox/types.d.ts +11 -0
  239. package/lib/circle/index.d.ts +1 -0
  240. package/lib/circle/types.d.ts +9 -0
  241. package/lib/circle/types.js +15 -0
  242. package/lib/collapse-item/index.d.ts +1 -1
  243. package/lib/collapse-item/types.d.ts +9 -0
  244. package/lib/config-provider/index.d.ts +1 -0
  245. package/lib/config-provider/types.d.ts +1 -0
  246. package/lib/config-provider/types.js +15 -0
  247. package/lib/contact-card/index.d.ts +1 -0
  248. package/lib/contact-card/types.d.ts +6 -0
  249. package/lib/contact-card/types.js +15 -0
  250. package/lib/contact-edit/index.d.ts +1 -0
  251. package/lib/contact-edit/types.d.ts +8 -0
  252. package/lib/contact-edit/types.js +15 -0
  253. package/lib/contact-list/index.d.ts +1 -0
  254. package/lib/contact-list/types.d.ts +6 -0
  255. package/lib/contact-list/types.js +15 -0
  256. package/lib/count-down/index.d.ts +1 -1
  257. package/lib/count-down/types.d.ts +5 -0
  258. package/lib/coupon/index.d.ts +1 -0
  259. package/lib/coupon/types.d.ts +19 -0
  260. package/lib/coupon/types.js +15 -0
  261. package/lib/coupon-cell/index.d.ts +1 -0
  262. package/lib/coupon-cell/types.d.ts +3 -0
  263. package/lib/coupon-cell/types.js +15 -0
  264. package/lib/coupon-list/index.d.ts +1 -0
  265. package/lib/coupon-list/types.d.ts +9 -0
  266. package/lib/coupon-list/types.js +15 -0
  267. package/lib/dialog/index.d.ts +1 -1
  268. package/lib/dialog/types.d.ts +21 -0
  269. package/lib/divider/index.d.ts +1 -0
  270. package/lib/divider/types.d.ts +10 -0
  271. package/lib/divider/types.js +15 -0
  272. package/lib/dropdown-item/index.d.ts +1 -1
  273. package/lib/dropdown-item/types.d.ts +3 -0
  274. package/lib/dropdown-menu/index.d.ts +1 -1
  275. package/lib/dropdown-menu/types.d.ts +13 -0
  276. package/lib/empty/index.d.ts +1 -0
  277. package/lib/empty/types.d.ts +10 -0
  278. package/lib/empty/types.js +15 -0
  279. package/lib/field/Field.js +2 -1
  280. package/lib/field/index.d.ts +1 -1
  281. package/lib/field/types.d.ts +21 -0
  282. package/lib/grid-item/index.d.ts +1 -0
  283. package/lib/grid-item/types.d.ts +8 -0
  284. package/lib/grid-item/types.js +15 -0
  285. package/lib/image/index.d.ts +1 -0
  286. package/lib/image/types.d.ts +9 -0
  287. package/lib/image/types.js +15 -0
  288. package/lib/image-preview/index.d.ts +2 -2
  289. package/lib/image-preview/types.d.ts +11 -0
  290. package/lib/index-anchor/index.d.ts +1 -0
  291. package/lib/index-anchor/types.d.ts +11 -0
  292. package/lib/index-anchor/types.js +15 -0
  293. package/lib/index-bar/index.d.ts +1 -1
  294. package/lib/index-bar/types.d.ts +6 -0
  295. package/lib/index.d.ts +1 -1
  296. package/lib/index.js +1 -1
  297. package/lib/list/index.d.ts +1 -1
  298. package/lib/list/types.d.ts +6 -0
  299. package/lib/loading/index.d.ts +1 -0
  300. package/lib/loading/types.d.ts +7 -0
  301. package/lib/loading/types.js +15 -0
  302. package/lib/nav-bar/index.d.ts +1 -0
  303. package/lib/nav-bar/types.d.ts +10 -0
  304. package/lib/nav-bar/types.js +15 -0
  305. package/lib/notice-bar/index.d.ts +1 -1
  306. package/lib/notice-bar/types.d.ts +11 -0
  307. package/lib/notify/Notify.js +1 -0
  308. package/lib/notify/function-call.js +1 -1
  309. package/lib/notify/index.d.ts +2 -2
  310. package/lib/notify/types.d.ts +10 -0
  311. package/lib/number-keyboard/index.d.ts +1 -0
  312. package/lib/number-keyboard/types.d.ts +17 -0
  313. package/lib/number-keyboard/types.js +15 -0
  314. package/lib/overlay/index.d.ts +1 -0
  315. package/lib/overlay/types.d.ts +4 -0
  316. package/lib/overlay/types.js +15 -0
  317. package/lib/pagination/index.d.ts +1 -0
  318. package/lib/pagination/types.d.ts +11 -0
  319. package/lib/pagination/types.js +15 -0
  320. package/lib/password-input/index.d.ts +1 -0
  321. package/lib/password-input/types.d.ts +17 -0
  322. package/lib/password-input/types.js +15 -0
  323. package/lib/picker/index.d.ts +1 -1
  324. package/lib/picker/types.d.ts +17 -0
  325. package/lib/picker-group/index.d.ts +1 -0
  326. package/lib/picker-group/types.d.ts +3 -0
  327. package/lib/picker-group/types.js +15 -0
  328. package/lib/popover/index.d.ts +1 -1
  329. package/lib/popover/types.d.ts +15 -0
  330. package/lib/popup/index.d.ts +1 -1
  331. package/lib/popup/types.d.ts +9 -0
  332. package/lib/progress/index.d.ts +1 -1
  333. package/lib/progress/types.d.ts +11 -0
  334. package/lib/pull-refresh/index.d.ts +1 -0
  335. package/lib/pull-refresh/types.d.ts +6 -0
  336. package/lib/pull-refresh/types.js +15 -0
  337. package/lib/radio/index.d.ts +1 -0
  338. package/lib/radio/types.d.ts +11 -0
  339. package/lib/radio/types.js +15 -0
  340. package/lib/rate/index.d.ts +1 -0
  341. package/lib/rate/types.d.ts +7 -0
  342. package/lib/rate/types.js +15 -0
  343. package/lib/search/index.d.ts +1 -1
  344. package/lib/search/types.d.ts +13 -0
  345. package/lib/share-sheet/index.d.ts +1 -0
  346. package/lib/share-sheet/types.d.ts +17 -0
  347. package/lib/share-sheet/types.js +15 -0
  348. package/lib/sidebar/index.d.ts +1 -0
  349. package/lib/sidebar/types.d.ts +3 -0
  350. package/lib/sidebar/types.js +15 -0
  351. package/lib/sidebar-item/index.d.ts +1 -0
  352. package/lib/sidebar-item/types.d.ts +15 -0
  353. package/lib/sidebar-item/types.js +15 -0
  354. package/lib/skeleton/index.d.ts +1 -0
  355. package/lib/skeleton/types.d.ts +9 -0
  356. package/lib/skeleton/types.js +15 -0
  357. package/lib/slider/index.d.ts +1 -0
  358. package/lib/slider/types.d.ts +11 -0
  359. package/lib/slider/types.js +15 -0
  360. package/lib/step/index.d.ts +1 -0
  361. package/lib/step/types.d.ts +13 -0
  362. package/lib/step/types.js +15 -0
  363. package/lib/stepper/index.d.ts +1 -0
  364. package/lib/stepper/types.d.ts +15 -0
  365. package/lib/stepper/types.js +15 -0
  366. package/lib/steps/index.d.ts +1 -0
  367. package/lib/steps/types.d.ts +3 -0
  368. package/lib/steps/types.js +15 -0
  369. package/lib/sticky/index.d.ts +1 -0
  370. package/lib/sticky/types.d.ts +3 -0
  371. package/lib/sticky/types.js +15 -0
  372. package/lib/submit-bar/index.d.ts +1 -0
  373. package/lib/submit-bar/types.d.ts +21 -0
  374. package/lib/submit-bar/types.js +15 -0
  375. package/lib/swipe/index.d.ts +1 -1
  376. package/lib/swipe/types.d.ts +8 -0
  377. package/lib/switch/index.d.ts +1 -0
  378. package/lib/switch/types.d.ts +12 -0
  379. package/lib/switch/types.js +15 -0
  380. package/lib/tab/Tab.js +11 -1
  381. package/lib/tabbar/index.d.ts +1 -0
  382. package/lib/tabbar/types.d.ts +5 -0
  383. package/lib/tabbar/types.js +15 -0
  384. package/lib/tabbar-item/index.d.ts +1 -0
  385. package/lib/tabbar-item/types.d.ts +9 -0
  386. package/lib/tabbar-item/types.js +15 -0
  387. package/lib/tabs/Tabs.js +11 -11
  388. package/lib/tabs/index.d.ts +1 -1
  389. package/lib/tabs/types.d.ts +14 -0
  390. package/lib/tag/Tag.d.ts +1 -2
  391. package/lib/tag/index.d.ts +9 -8
  392. package/lib/tag/types.d.ts +20 -0
  393. package/lib/tag/types.js +15 -0
  394. package/lib/toast/index.d.ts +6 -1
  395. package/lib/toast/types.d.ts +17 -0
  396. package/lib/tree-select/index.d.ts +1 -0
  397. package/lib/tree-select/types.d.ts +10 -0
  398. package/lib/tree-select/types.js +15 -0
  399. package/lib/uploader/index.d.ts +1 -1
  400. package/lib/uploader/types.d.ts +27 -0
  401. package/lib/vant.cjs.js +27 -15
  402. package/lib/vant.es.js +27 -15
  403. package/lib/vant.js +27 -15
  404. package/lib/vant.min.js +1 -1
  405. package/lib/web-types.json +1332 -1292
  406. package/package.json +4 -4
@@ -29,3 +29,11 @@ export declare type SwipeProvide = {
29
29
  activeIndicator: ComputedRef<number>;
30
30
  };
31
31
  export declare type SwipeInstance = ComponentPublicInstance<SwipeProps, SwipeExpose>;
32
+ export declare type SwipeThemeVars = {
33
+ swipeIndicatorSize?: string;
34
+ swipeIndicatorMargin?: string;
35
+ swipeIndicatorActiveOpacity?: number | string;
36
+ swipeIndicatorInactiveOpacity?: number | string;
37
+ swipeIndicatorActiveBackground?: string;
38
+ swipeIndicatorInactiveBackground?: string;
39
+ };
@@ -40,6 +40,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
40
40
  export default Switch;
41
41
  export { switchProps } from './Switch';
42
42
  export type { SwitchProps } from './Switch';
43
+ export type { SwitchThemeVars } from './types';
43
44
  declare module 'vue' {
44
45
  interface GlobalComponents {
45
46
  VanSwitch: typeof Switch;
@@ -0,0 +1,12 @@
1
+ export declare type SwitchThemeVars = {
2
+ switchSize?: string;
3
+ switchWidth?: string;
4
+ switchHeight?: string;
5
+ switchNodeSize?: string;
6
+ switchNodeBackground?: string;
7
+ switchNodeShadow?: string;
8
+ switchBackground?: string;
9
+ switchOnBackground?: string;
10
+ switchDuration?: string;
11
+ switchDisabledOpacity?: number | string;
12
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
package/lib/tab/Tab.js CHANGED
@@ -79,6 +79,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
79
79
  }
80
80
  return isActive;
81
81
  });
82
+ const hasInactiveClass = (0, import_vue2.ref)(!active.value);
83
+ (0, import_vue2.watch)(active, (val) => {
84
+ if (val) {
85
+ hasInactiveClass.value = false;
86
+ } else {
87
+ (0, import_use.doubleRaf)(() => {
88
+ hasInactiveClass.value = true;
89
+ });
90
+ }
91
+ });
82
92
  (0, import_vue2.watch)(() => props.title, () => {
83
93
  parent.setLine();
84
94
  parent.scrollIntoView();
@@ -102,7 +112,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
102
112
  "id": id,
103
113
  "role": "tabpanel",
104
114
  "class": bem("panel-wrapper", {
105
- inactive: !active.value
115
+ inactive: hasInactiveClass.value
106
116
  }),
107
117
  "tabindex": active.value ? 0 : -1,
108
118
  "aria-hidden": !active.value,
@@ -58,6 +58,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
58
58
  export default Tabbar;
59
59
  export { tabbarProps } from './Tabbar';
60
60
  export type { TabbarProps } from './Tabbar';
61
+ export type { TabbarThemeVars } from './types';
61
62
  declare module 'vue' {
62
63
  interface GlobalComponents {
63
64
  VanTabbar: typeof Tabbar;
@@ -0,0 +1,5 @@
1
+ export declare type TabbarThemeVars = {
2
+ tabbarHeight?: string;
3
+ tabbarZIndex?: number | string;
4
+ tabbarBackground?: string;
5
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -29,6 +29,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
29
29
  export default TabbarItem;
30
30
  export { tabbarItemProps } from './TabbarItem';
31
31
  export type { TabbarItemProps } from './TabbarItem';
32
+ export type { TabbarItemThemeVars } from './types';
32
33
  declare module 'vue' {
33
34
  interface GlobalComponents {
34
35
  VanTabbarItem: typeof TabbarItem;
@@ -0,0 +1,9 @@
1
+ export declare type TabbarItemThemeVars = {
2
+ tabbarItemFontSize?: string;
3
+ tabbarItemTextColor?: string;
4
+ tabbarItemActiveColor?: string;
5
+ tabbarItemActiveBackground?: string;
6
+ tabbarItemLineHeight?: number | string;
7
+ tabbarItemIconSize?: string;
8
+ tabbarItemIconMarginBottom?: string;
9
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
package/lib/tabs/Tabs.js CHANGED
@@ -163,7 +163,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
163
163
  index += diff;
164
164
  }
165
165
  };
166
- const setCurrentIndex = (currentIndex) => {
166
+ const setCurrentIndex = (currentIndex, skipScrollIntoView) => {
167
167
  const newIndex = findAvailableTab(currentIndex);
168
168
  if (!(0, import_utils.isDef)(newIndex)) {
169
169
  return;
@@ -178,11 +178,18 @@ var stdin_default = (0, import_vue2.defineComponent)({
178
178
  emit("change", newName, newTab.title);
179
179
  }
180
180
  }
181
+ if (!skipScrollIntoView) {
182
+ scrollIntoView();
183
+ }
184
+ setLine();
185
+ if (stickyFixed && !props.scrollspy) {
186
+ (0, import_utils.setRootScrollTop)(Math.ceil((0, import_utils.getElementTop)(root.value) - offsetTopPx.value));
187
+ }
181
188
  };
182
- const setCurrentIndexByName = (name2) => {
189
+ const setCurrentIndexByName = (name2, skipScrollIntoView) => {
183
190
  const matched = children.find((tab, index2) => getTabName(tab, index2) === name2);
184
191
  const index = matched ? children.indexOf(matched) : 0;
185
- setCurrentIndex(index);
192
+ setCurrentIndex(index, skipScrollIntoView);
186
193
  };
187
194
  const scrollToCurrentContent = (immediate = false) => {
188
195
  if (props.scrollspy) {
@@ -309,15 +316,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
309
316
  });
310
317
  }
311
318
  });
312
- (0, import_vue2.watch)(() => state.currentIndex, () => {
313
- scrollIntoView();
314
- setLine();
315
- if (stickyFixed && !props.scrollspy) {
316
- (0, import_utils.setRootScrollTop)(Math.ceil((0, import_utils.getElementTop)(root.value) - offsetTopPx.value));
317
- }
318
- });
319
319
  const init = () => {
320
- setCurrentIndexByName(props.active);
320
+ setCurrentIndexByName(props.active, true);
321
321
  (0, import_vue2.nextTick)(() => {
322
322
  state.inited = true;
323
323
  if (wrapRef.value) {
@@ -107,7 +107,7 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
107
107
  export default Tabs;
108
108
  export { tabsProps } from './Tabs';
109
109
  export type { TabsProps };
110
- export type { TabsType, TabsInstance } from './types';
110
+ export type { TabsType, TabsInstance, TabsThemeVars } from './types';
111
111
  declare module 'vue' {
112
112
  interface GlobalComponents {
113
113
  VanTabs: typeof Tabs;
@@ -21,3 +21,17 @@ export declare type TabsExpose = {
21
21
  scrollTo: (name: Numeric) => void;
22
22
  };
23
23
  export declare type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
24
+ export declare type TabsThemeVars = {
25
+ tabTextColor?: string;
26
+ tabActiveTextColor?: string;
27
+ tabDisabledTextColor?: string;
28
+ tabFontSize?: string;
29
+ tabLineHeight?: number | string;
30
+ tabsDefaultColor?: string;
31
+ tabsLineHeight?: number | string;
32
+ tabsCardHeight?: string;
33
+ tabsNavBackground?: string;
34
+ tabsBottomBarWidth?: string;
35
+ tabsBottomBarHeight?: string;
36
+ tabsBottomBarColor?: string;
37
+ };
package/lib/tag/Tag.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
- export declare type TagSize = 'large' | 'medium';
3
- export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
2
+ import type { TagType, TagSize } from './types';
4
3
  export declare const tagProps: {
5
4
  size: PropType<TagSize>;
6
5
  mark: BooleanConstructor;
@@ -1,13 +1,13 @@
1
1
  export declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<{
2
- size: import("vue").PropType<import("./Tag").TagSize>;
2
+ size: import("vue").PropType<import("./types").TagSize>;
3
3
  mark: BooleanConstructor;
4
4
  show: {
5
5
  type: BooleanConstructor;
6
6
  default: true;
7
7
  };
8
8
  type: {
9
- type: import("vue").PropType<import("./Tag").TagType>;
10
- default: import("./Tag").TagType;
9
+ type: import("vue").PropType<import("./types").TagType>;
10
+ default: import("./types").TagType;
11
11
  };
12
12
  color: StringConstructor;
13
13
  plain: BooleanConstructor;
@@ -15,15 +15,15 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
15
15
  textColor: StringConstructor;
16
16
  closeable: BooleanConstructor;
17
17
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
- size: import("vue").PropType<import("./Tag").TagSize>;
18
+ size: import("vue").PropType<import("./types").TagSize>;
19
19
  mark: BooleanConstructor;
20
20
  show: {
21
21
  type: BooleanConstructor;
22
22
  default: true;
23
23
  };
24
24
  type: {
25
- type: import("vue").PropType<import("./Tag").TagType>;
26
- default: import("./Tag").TagType;
25
+ type: import("vue").PropType<import("./types").TagType>;
26
+ default: import("./types").TagType;
27
27
  };
28
28
  color: StringConstructor;
29
29
  plain: BooleanConstructor;
@@ -33,7 +33,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
33
33
  }>> & {
34
34
  onClose?: ((...args: any[]) => any) | undefined;
35
35
  }, {
36
- type: import("./Tag").TagType;
36
+ type: import("./types").TagType;
37
37
  mark: boolean;
38
38
  round: boolean;
39
39
  show: boolean;
@@ -42,7 +42,8 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
42
42
  }>>;
43
43
  export default Tag;
44
44
  export { tagProps } from './Tag';
45
- export type { TagSize, TagType, TagProps } from './Tag';
45
+ export type { TagProps } from './Tag';
46
+ export type { TagSize, TagType, TagThemeVars } from './types';
46
47
  declare module 'vue' {
47
48
  interface GlobalComponents {
48
49
  VanTag: typeof Tag;
@@ -0,0 +1,20 @@
1
+ export declare type TagSize = 'large' | 'medium';
2
+ export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3
+ export declare type TagThemeVars = {
4
+ tagPadding?: string;
5
+ tagTextColor?: string;
6
+ tagFontSize?: string;
7
+ tagRadius?: string;
8
+ tagLineHeight?: number | string;
9
+ tagMediumPadding?: string;
10
+ tagLargePadding?: string;
11
+ tagLargeRadius?: string;
12
+ tagLargeFontSize?: string;
13
+ tagRoundRadius?: string;
14
+ tagDangerColor?: string;
15
+ tagPrimaryColor?: string;
16
+ tagSuccessColor?: string;
17
+ tagWarningColor?: string;
18
+ tagDefaultColor?: string;
19
+ tagPlainBackground?: string;
20
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -77,4 +77,9 @@ export default Toast;
77
77
  export { toastProps } from './Toast';
78
78
  export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
79
79
  export type { ToastProps } from './Toast';
80
- export type { ToastType, ToastOptions, ToastPosition } from './types';
80
+ export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, } from './types';
81
+ declare module 'vue' {
82
+ interface GlobalComponents {
83
+ VanToast: typeof Toast;
84
+ }
85
+ }
@@ -34,3 +34,20 @@ export declare type ToastWrapperInstance = ComponentPublicInstance<{
34
34
  */
35
35
  open: (props: Record<string, any>) => void;
36
36
  }>;
37
+ export declare type ToastThemeVars = {
38
+ toastMaxWidth?: string;
39
+ toastFontSize?: string;
40
+ toastTextColor?: string;
41
+ toastLoadingIconColor?: string;
42
+ toastLineHeight?: number | string;
43
+ toastRadius?: string;
44
+ toastBackground?: string;
45
+ toastIconSize?: string;
46
+ toastTextMinWidth?: string;
47
+ toastTextPadding?: string;
48
+ toastDefaultPadding?: string;
49
+ toastDefaultWidth?: string;
50
+ toastDefaultMinHeight?: string;
51
+ toastPositionTopDistance?: string;
52
+ toastPositionBottomDistance?: string;
53
+ };
@@ -64,6 +64,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
64
64
  export default TreeSelect;
65
65
  export { treeSelectProps } from './TreeSelect';
66
66
  export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
67
+ export type { TreeSelectThemeVars } from './types';
67
68
  declare module 'vue' {
68
69
  interface GlobalComponents {
69
70
  VanTreeSelect: typeof TreeSelect;
@@ -0,0 +1,10 @@
1
+ export declare type TreeSelectThemeVars = {
2
+ treeSelectFontSize?: string;
3
+ treeSelectNavBackground?: string;
4
+ treeSelectContentBackground?: string;
5
+ treeSelectNavItemPadding?: string;
6
+ treeSelectItemHeight?: string;
7
+ treeSelectItemActiveColor?: string;
8
+ treeSelectItemDisabledColor?: string;
9
+ treeSelectItemSelectedSize?: string;
10
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -147,7 +147,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
147
147
  export default Uploader;
148
148
  export { uploaderProps } from './Uploader';
149
149
  export type { UploaderProps };
150
- export type { UploaderInstance, UploaderResultType, UploaderFileListItem, } from './types';
150
+ export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, } from './types';
151
151
  declare module 'vue' {
152
152
  interface GlobalComponents {
153
153
  VanUploader: typeof Uploader;
@@ -29,3 +29,30 @@ export declare type UploaderExpose = {
29
29
  closeImagePreview: () => void;
30
30
  };
31
31
  export declare type UploaderInstance = ComponentPublicInstance<UploaderProps, UploaderExpose>;
32
+ export declare type UploaderThemeVars = {
33
+ uploaderSize?: string;
34
+ uploaderIconSize?: string;
35
+ uploaderIconColor?: string;
36
+ uploaderTextColor?: string;
37
+ uploaderTextFontSize?: string;
38
+ uploaderUploadBackground?: string;
39
+ uploaderUploadActiveColor?: string;
40
+ uploaderDeleteColor?: string;
41
+ uploaderDeleteIconSize?: string;
42
+ uploaderDeleteBackground?: string;
43
+ uploaderFileBackground?: string;
44
+ uploaderFileIconSize?: string;
45
+ uploaderFileIconColor?: string;
46
+ uploaderFileNamePadding?: string;
47
+ uploaderFileNameMarginTop?: string;
48
+ uploaderFileNameFontSize?: string;
49
+ uploaderFileNameTextColor?: string;
50
+ uploaderMaskTextColor?: string;
51
+ uploaderMaskBackground?: string;
52
+ uploaderMaskIconSize?: string;
53
+ uploaderMaskMessageFontSize?: string;
54
+ uploaderMaskMessageLineHeight?: number | string;
55
+ uploaderLoadingIconSize?: string;
56
+ uploaderLoadingIconColor?: string;
57
+ uploaderDisabledOpacity?: number | string;
58
+ };
package/lib/vant.cjs.js CHANGED
@@ -2635,7 +2635,7 @@ var stdin_default$1m = vue.defineComponent({
2635
2635
  index += diff;
2636
2636
  }
2637
2637
  };
2638
- const setCurrentIndex = (currentIndex) => {
2638
+ const setCurrentIndex = (currentIndex, skipScrollIntoView) => {
2639
2639
  const newIndex = findAvailableTab(currentIndex);
2640
2640
  if (!isDef(newIndex)) {
2641
2641
  return;
@@ -2650,11 +2650,18 @@ var stdin_default$1m = vue.defineComponent({
2650
2650
  emit("change", newName, newTab.title);
2651
2651
  }
2652
2652
  }
2653
+ if (!skipScrollIntoView) {
2654
+ scrollIntoView();
2655
+ }
2656
+ setLine();
2657
+ if (stickyFixed && !props.scrollspy) {
2658
+ setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
2659
+ }
2653
2660
  };
2654
- const setCurrentIndexByName = (name2) => {
2661
+ const setCurrentIndexByName = (name2, skipScrollIntoView) => {
2655
2662
  const matched = children.find((tab, index2) => getTabName(tab, index2) === name2);
2656
2663
  const index = matched ? children.indexOf(matched) : 0;
2657
- setCurrentIndex(index);
2664
+ setCurrentIndex(index, skipScrollIntoView);
2658
2665
  };
2659
2666
  const scrollToCurrentContent = (immediate = false) => {
2660
2667
  if (props.scrollspy) {
@@ -2781,15 +2788,8 @@ var stdin_default$1m = vue.defineComponent({
2781
2788
  });
2782
2789
  }
2783
2790
  });
2784
- vue.watch(() => state.currentIndex, () => {
2785
- scrollIntoView();
2786
- setLine();
2787
- if (stickyFixed && !props.scrollspy) {
2788
- setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
2789
- }
2790
- });
2791
2791
  const init = () => {
2792
- setCurrentIndexByName(props.active);
2792
+ setCurrentIndexByName(props.active, true);
2793
2793
  vue.nextTick(() => {
2794
2794
  state.inited = true;
2795
2795
  if (wrapRef.value) {
@@ -2982,6 +2982,16 @@ var stdin_default$1k = vue.defineComponent({
2982
2982
  }
2983
2983
  return isActive;
2984
2984
  });
2985
+ const hasInactiveClass = vue.ref(!active.value);
2986
+ vue.watch(active, (val) => {
2987
+ if (val) {
2988
+ hasInactiveClass.value = false;
2989
+ } else {
2990
+ use.doubleRaf(() => {
2991
+ hasInactiveClass.value = true;
2992
+ });
2993
+ }
2994
+ });
2985
2995
  vue.watch(() => props.title, () => {
2986
2996
  parent.setLine();
2987
2997
  parent.scrollIntoView();
@@ -3005,7 +3015,7 @@ var stdin_default$1k = vue.defineComponent({
3005
3015
  "id": id,
3006
3016
  "role": "tabpanel",
3007
3017
  "class": bem$18("panel-wrapper", {
3008
- inactive: !active.value
3018
+ inactive: hasInactiveClass.value
3009
3019
  }),
3010
3020
  "tabindex": active.value ? 0 : -1,
3011
3021
  "aria-hidden": !active.value,
@@ -3891,7 +3901,8 @@ var stdin_default$1e = vue.defineComponent({
3891
3901
  state.validateMessage = "";
3892
3902
  };
3893
3903
  const endValidate = () => emit("endValidate", {
3894
- status: state.status
3904
+ status: state.status,
3905
+ message: state.validateMessage
3895
3906
  });
3896
3907
  const validate = (rules = props.rules) => new Promise((resolve) => {
3897
3908
  resetValidation();
@@ -10262,6 +10273,7 @@ var stdin_default$u = vue.defineComponent({
10262
10273
  background: props.background
10263
10274
  },
10264
10275
  "overlay": false,
10276
+ "zIndex": props.zIndex,
10265
10277
  "position": props.position,
10266
10278
  "duration": 0.2,
10267
10279
  "lockScroll": props.lockScroll,
@@ -10321,7 +10333,7 @@ function showNotify(options) {
10321
10333
  instance.open(options);
10322
10334
  clearTimeout(timer);
10323
10335
  if (options.duration > 0) {
10324
- timer = window.setTimeout(closeNotify, options.duration);
10336
+ timer = setTimeout(closeNotify, options.duration);
10325
10337
  }
10326
10338
  return instance;
10327
10339
  }
@@ -14540,7 +14552,7 @@ const Lazyload = {
14540
14552
  });
14541
14553
  }
14542
14554
  };
14543
- const version = "4.0.0-rc.2";
14555
+ const version = "4.0.0-rc.4";
14544
14556
  function install(app) {
14545
14557
  const components = [
14546
14558
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -2633,7 +2633,7 @@ var stdin_default$1m = defineComponent({
2633
2633
  index += diff;
2634
2634
  }
2635
2635
  };
2636
- const setCurrentIndex = (currentIndex) => {
2636
+ const setCurrentIndex = (currentIndex, skipScrollIntoView) => {
2637
2637
  const newIndex = findAvailableTab(currentIndex);
2638
2638
  if (!isDef(newIndex)) {
2639
2639
  return;
@@ -2648,11 +2648,18 @@ var stdin_default$1m = defineComponent({
2648
2648
  emit("change", newName, newTab.title);
2649
2649
  }
2650
2650
  }
2651
+ if (!skipScrollIntoView) {
2652
+ scrollIntoView();
2653
+ }
2654
+ setLine();
2655
+ if (stickyFixed && !props.scrollspy) {
2656
+ setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
2657
+ }
2651
2658
  };
2652
- const setCurrentIndexByName = (name2) => {
2659
+ const setCurrentIndexByName = (name2, skipScrollIntoView) => {
2653
2660
  const matched = children.find((tab, index2) => getTabName(tab, index2) === name2);
2654
2661
  const index = matched ? children.indexOf(matched) : 0;
2655
- setCurrentIndex(index);
2662
+ setCurrentIndex(index, skipScrollIntoView);
2656
2663
  };
2657
2664
  const scrollToCurrentContent = (immediate = false) => {
2658
2665
  if (props.scrollspy) {
@@ -2779,15 +2786,8 @@ var stdin_default$1m = defineComponent({
2779
2786
  });
2780
2787
  }
2781
2788
  });
2782
- watch(() => state.currentIndex, () => {
2783
- scrollIntoView();
2784
- setLine();
2785
- if (stickyFixed && !props.scrollspy) {
2786
- setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
2787
- }
2788
- });
2789
2789
  const init = () => {
2790
- setCurrentIndexByName(props.active);
2790
+ setCurrentIndexByName(props.active, true);
2791
2791
  nextTick(() => {
2792
2792
  state.inited = true;
2793
2793
  if (wrapRef.value) {
@@ -2980,6 +2980,16 @@ var stdin_default$1k = defineComponent({
2980
2980
  }
2981
2981
  return isActive;
2982
2982
  });
2983
+ const hasInactiveClass = ref(!active.value);
2984
+ watch(active, (val) => {
2985
+ if (val) {
2986
+ hasInactiveClass.value = false;
2987
+ } else {
2988
+ doubleRaf(() => {
2989
+ hasInactiveClass.value = true;
2990
+ });
2991
+ }
2992
+ });
2983
2993
  watch(() => props.title, () => {
2984
2994
  parent.setLine();
2985
2995
  parent.scrollIntoView();
@@ -3003,7 +3013,7 @@ var stdin_default$1k = defineComponent({
3003
3013
  "id": id,
3004
3014
  "role": "tabpanel",
3005
3015
  "class": bem$18("panel-wrapper", {
3006
- inactive: !active.value
3016
+ inactive: hasInactiveClass.value
3007
3017
  }),
3008
3018
  "tabindex": active.value ? 0 : -1,
3009
3019
  "aria-hidden": !active.value,
@@ -3889,7 +3899,8 @@ var stdin_default$1e = defineComponent({
3889
3899
  state.validateMessage = "";
3890
3900
  };
3891
3901
  const endValidate = () => emit("endValidate", {
3892
- status: state.status
3902
+ status: state.status,
3903
+ message: state.validateMessage
3893
3904
  });
3894
3905
  const validate = (rules = props.rules) => new Promise((resolve) => {
3895
3906
  resetValidation();
@@ -10260,6 +10271,7 @@ var stdin_default$u = defineComponent({
10260
10271
  background: props.background
10261
10272
  },
10262
10273
  "overlay": false,
10274
+ "zIndex": props.zIndex,
10263
10275
  "position": props.position,
10264
10276
  "duration": 0.2,
10265
10277
  "lockScroll": props.lockScroll,
@@ -10319,7 +10331,7 @@ function showNotify(options) {
10319
10331
  instance.open(options);
10320
10332
  clearTimeout(timer);
10321
10333
  if (options.duration > 0) {
10322
- timer = window.setTimeout(closeNotify, options.duration);
10334
+ timer = setTimeout(closeNotify, options.duration);
10323
10335
  }
10324
10336
  return instance;
10325
10337
  }
@@ -14538,7 +14550,7 @@ const Lazyload = {
14538
14550
  });
14539
14551
  }
14540
14552
  };
14541
- const version = "4.0.0-rc.2";
14553
+ const version = "4.0.0-rc.4";
14542
14554
  function install(app) {
14543
14555
  const components = [
14544
14556
  ActionBar,