/*! For license information please see 5734.bb0f1874.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["5734"],{45382:function(t,a,n){"use strict";n.r(a);var e=n("80681");let i=["innerHTML"];a.default={setup:()=>({html:""}),render:()=>((0,e.wg)(),(0,e.iD)("div",{class:"van-doc-markdown-body",innerHTML:'
Changelog
\nTips
\n
The current document is the changelog of Vant 4, other versions:
\n
\n
Intro
\n
Vant follows Semantic Versioning 2.0.0.
\n
Release Schedule
\n
\n- Patch version\uFF1ATypically released every 1 to 2 weeks, including new features and bug fixes.
\n- Minor version\uFF1ATypically released every 1 to 2 months, including new components or significant feature updates, with backward compatibility.
\n- Major version\uFF1ANo fixed release time, includes breaking changes and major feature updates.
\n
\n
Details
\nv4.8.11
\n
2024-04-14
\n
New Features \uD83C\uDF89
\n
\n- feat(DropdownMenu): add disabled for option by @inottn in #12785
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.10
\n
2024-04-06
\n
New Features \uD83C\uDF89
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.9
\n
2024-04-06
\n
Invalid version, please do not use it.
\n
v4.8.8
\n
2024-03-31
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(floating-bubble): update offset when the value changed by @chouchouji in #12730
\n- fix(vant-cli): support defineOptions named by @wChenonly in #12734
\n- fix(PickerGroup): rendering correctly when using v-for by @inottn in #12732
\n- fix(TextEllipsis): should recalculate the ellipsis state when the component is activated by @inottn in #12741
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.7
\n
2024-03-18
\n
Other Changes
\n
\n
v4.8.6
\n
2024-03-17
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(ImagePreview): allow user to swipe to next image when the current image is moved to the edge by @inottn in #12666
\n- fix(ActionSheet): icon class name by @chenjiahan in #12701
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.5
\n
2024-02-25
\n
New Features \uD83C\uDF89
\n
\n- feat(Image): add
crossorigin
& referrerpolicy
props by @Jungzl in #12641 \n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(NumberKeyboard): render delete slot correctly when theme is custom by @TPORL in #12624
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.4
\n
2024-02-03
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(Sticky): initial sticky position by @nemo-shen in #12601
\n- fix(DropdownMenu): fix recursive update when passing object literal to title-class by @inottn in #12614
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
v4.8.3
\n
2024-01-20
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(Tab): tab(with sticky prop) loss \'fixed\' classname after switch tab by @nemo-shen in #12547
\n- fix(Image): ImagePosition type is not exported before by @Jungzl in #12549
\n- fix(Tabs): van-border-radius-sm to van-radius-sm by @edram in #12576
\n
\n
Document \uD83D\uDCD6
\n
\n- docs(Lazyload): fix preLoad type error and spelling mistakes by @RSS1102 in #12554
\n- docs(home): update heading level by @inottn in #12577
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.2
\n
2024-01-03
\n
New Features \uD83C\uDF89
\n
\n
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(ci): eslint on windows by @Jungzl in #12516
\n- fix(ImagePreview): double-scale and close-on-click-overlay may not work in certain scenarios by @inottn in #12521
\n
\n
Other Changes
\n
\n
v4.8.1
\n
2023-12-17
\n
New Features \uD83C\uDF89
\n
\n
\n
\n- perf(cli): disable source map to make compilation faster by @chenjiahan in #12484
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.8.0
\n
2023-11-19
\n
New Component \uD83C\uDF89
\n
\n
New Features
\n
\n- feat(ImagePreview): expose resetScale method by @inottn in #12426
\n- feat(Checker): add checked and disabled params to the default slot by @inottn in #12436
\n- feat(Row): gutter support vertical space by @cc-hearts in #12439
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.7.3
\n
2023-10-29
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(ConfigProvider): export missing theme vars by @inottn in #12371
\n- fix(AddressEdit): area field validate error when showArea is false by @zhousg in #12393
\n- fix(@vant/area-data): add exports types by @Alkaidcc in #12397
\n- fix(Search): fix search style when has error message by @johnsonwong666 in #12385
\n- fix(PickerGroup): only filter Comment vnode by @zhousg in #12402
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n- chore(Field): required label css will active when rules contain required by @morance in #12376
\n- test(ImagePreview): fix incorrect onClose test case by @chenjiahan in #12386
\n- chore: forked repo, skip CI running by @yoyo837 in #12410
\n
\n
New Contributors
\n
\n
v4.7.2
\n
2023-10-15
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(Icons): compatible with the browser range of Vant 2 by @chenjiahan in #12356
\n- fix(Uploader): multiple reupload only choose one & cancel chose problem by @zhousg in #12359
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.7.1
\n
2023-10-06
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.7.0
\n
2023-09-24
\n
\uD83C\uDF6D Icon Updates
\n
\n- Icon: add new
user
icon \n- Icon: add new
notes
icon \n- Icon: add new
newspaper
icon \n- Icon: add new
list-switch
icon \n- Icon: add new
list-switching
icon \n- Icon: add a filled
records
icon \n- Icon: add a filled
contact
icon \n- Icon: add a filled
discount
icon \n- Icon: add a filled
completed
icon \n- Icon: add a filled
description
icon \n- Icon: add a filled
cash-back-record
icon \n- Icon: rename the previous
records
icon to records-o
\n- Icon: rename the previous
contact
icon to contact-o
\n- Icon: rename the previous
discount
icon to discount-o
\n- Icon: rename the previous
completed
icon to completed-o
\n- Icon: rename the previous
description
icon to description-o
\n- Icon: rename the previous
cash-back-record
icon to cash-back-record-o
\n
\n
New Features \uD83C\uDF89
\n
\n- feat(Calendar): add click-disabled-date event by @LadyChatterleyLover in #12274
\n- feat(Uploader): add --van-uploader-border-radius css variables by @xieyezi in #12280
\n- feat(SwipeCell): fix triggered close by clickAway when in running beforeClose by @nined9 in #12309
\n- feat(AddressEdit): add change event for name and tel input by @zhousg in #12310
\n- types(Dialog): improve showDialog return type by @chenjiahan in #12316
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(Picker): fix bug the content of the popup window is not consistent with the Chinese version under the English version by @lllomh in #12300
\n- fix(Signature): fix checking if canvas is empty when backgroundColor is set by @sywyyhykkk in #12304
\n- fix(FloatingPanel): dragging down causes the page to move by @zhousg in #12314
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.6.8
\n
2023-09-10
\n
New Features \uD83C\uDF89
\n
\n- feat(Cell): add CSS vars to customize font size of the value by @inottn in #12260
\n- feat(ConfigProvider): supplement the type declaration of ConfigProviderThemeVars by @xieyezi in #12264
\n- feat(NavBar): add leftDisabled and rightDisabled prop by @m-xlsea in #12258
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(ConfigProvider): failed to set some basic theme vars by @chenjiahan in #12272
\n- fix(ConfigProvider): ConfigProviderThemeVars fontSizeXs hump by @xieyezi in #12267
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.6.7
\n
2023-09-04
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(auto-import-resolver): type mismatch in TS projects by @chenjiahan in #12243
\n- fix(eslint): using ignorePatterns to replace .eslintignore by @MrXwq in #12237
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
v4.6.6
\n
2023-08-20
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(FloatingBubble): drag should not trigger click on child elements by @zhousg in #12201
\n- fix(FloatingBubble): does not update state while hidden by @zhousg in #12207
\n
\n
Other Changes
\n
\n
v4.6.5
\n
2023-08-16
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(FloatingPanel): Lag caused by scrollbar and panel movement #12146 by @yue1123 in #12161
\n- fix(FloatingPanel): change the default value of lock-scroll to false by @inottn in #12162
\n- fix(cli): should escape curly brackets in markdown by @chenjiahan in #12188
\n
\n
Document \uD83D\uDCD6
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
v4.6.4
\n
2023-08-06
\n
New Features \uD83C\uDF89
\n
\n
Bug Fixes \uD83D\uDC1E
\n
\n- fix(TextEllipsis): dots repeated by @muzaisimao in #12120
\n- fix(TextEllipsis): fix the logic of calculating the position of ellipsis by @inottn in #12137
\n
\n
Document \uD83D\uDCD6
\n
\n- docs: move PR title format to contribution guide by @chenjiahan in #12114
\n- docs(Radio): add document description for the css var \'--van-radio-dot-size\' by @wjw-gavin in #12152
\n
\n
Other Changes
\n
\n
New Contributors
\n
\n
\n
2023-07-23
\n
Feature
\n
\n- AddressList: add show-add-button prop #12090
\n- CheckboxGroup: add shape prop #12092
\n- RadioGroup: add shape prop #12092
\n
\n
Bug Fixes
\n
\n- FloatingBubble: fix global component type #12101
\n- Tab: fix incorrect import path #12103
\n
\n
\n
2023-07-09
\n
Feature
\n
\n- Field: add autocapitalize, autocorrect and spellcheck props #12065
\n- FloatingBubble: add CSS vars to override border radius #12070
\n- Radio: add dot shape #12057
\n- TextEllipsis: add position prop, contributed by cxybd \u2764\uFE0F #12058
\n
\n
Bug Fixes
\n
\n- FloatingBubble: fix wrong value of boundary #12067
\n- Pagination: display the border correctly #12062
\n
\n
\n
2023-07-02
\n
Feature
\n
\n- ellipsis: improve break lines of Chinese, Japanese, or Korean text #12030
\n
\n
Bug Fixes
\n
\n- FloatingBubble: floatingBubbleBackground type should be optional #12029
\n- SubmitBar: remove redundant theme types #12031
\n- Uploader: render objectUrl to avoid perf issue #12051
\n
\n
\n
2023-06-24
\n
New Component
\n
\n- add new FloatingBubble component, contributed by @zhousg \u2764\uFE0F #11880
\n- add new RollingText component, contributed by @cunzaizhuyi \u2764\uFE0F #11911
\n
\n
Feature
\n
\n- Rate: add clearable prop #11969
\n
\n
Bug Fixes
\n
\n- DropdownMenu: fix missing exported type #11979
\n- Field: should not set
for
attr to label when using input slot #11966 \n- FloatingPanel: fix missing floatingPanelProps export #11978
\n- FloatingPanel: remove passive event warning #11992
\n- Picker: optimize the animation effect of sliding multiple columns simultaneously #11945
\n- Rate: should change value when half icon is touchmoved #12002
\n
\n
\n
2023-06-11
\n
New Component
\n
\n- add new FloatingPanel component, contributed by @zhousg \u2764\uFE0F #11832
\n
\n
Feature
\n
\n- AddressList: add new right-icon props #11959
\n- DropdownMenu: add close method #11921
\n- Slider: add dragging param for button slot #11946
\n- TimePicker: add min-time and max-time prop #11887
\n- TimePicker: add values param for filter method #11916
\n- CI: add issue helper #11963
\n
\n
Bug Fixes
\n
\n- BackTop: should hide when deactivated #11938
\n
\n
\n
2023-05-28
\n
Feature
\n
\n- Popover: add actions-direction prop #11888
\n
\n
Bug Fixes
\n
\n- ImagePreview: stop animation during initialization #11897
\n- Popup: opened event is emitted twice when duration is 0 #11902
\n- Slider: should update startValue when the slider is clicked #11904
\n- Tab: maximum recursive updates exceeded in Tabs #11898
\n
\n
\n
2023-05-21
\n
New Component
\n
\n- add new Barrage component, contributed by @zhousg \u2764\uFE0F #11760
\n
\n
Feature
\n
\n- Cascader: scroll the selected option into view when switching tabs #11869
\n- Divider: add vertical prop #11883
\n- Document: sync mobile position on anchor click #11879
\n- ImagePreview: optimize the preview effect of long images #11857
\n- Signature: improve signature clarity by devicePixelRatio #11835
\n- Uploader: add reupload prop #11854
\n
\n
Bug Fixes
\n
\n- AddressEdit: should hide border of the last cell #11872
\n- Area: areaProps omit allow-html show-toolbar #11871
\n- BackTop: use the closest parent scroll element as target #11858
\n- ContactList: increase right icon size and optimize styles #11873
\n- DatePicker: should display correctly when modelValue is updated from external #11839
\n- Dialog: fix the rounded corners of shadow when button is clicked #11863
\n
\n
\n
2023-05-14
\n
Feature
\n
\n- ImagePreview: use the touched point as the center of zooming #11848
\n- PickerGroup: the tab of PickerGroup supports controlled mode #11771
\n- Checkbox: disabled unchecked options when the limit is exceeded #11814
\n
\n
Bug Fixes
\n
\n- Filed: onclick label execute twice #11838
\n- Steps: fix the style that occurs when there is only one step #11822
\n- SubmitBar: Unused CSS variables #11845
\n- Tab: should cancel raf before the next scroll #11819
\n
\n
\n
2023-05-04
\n
Bug Fixes
\n
\n- Fix failed to install Vant v4.3.0 #11815
\n
\n
\n
2023-05-03
\n
New Component
\n
\n
Feature
\n
\n- Field: increase default icon size to 18px #11799
\n
\n
Bug Fixes
\n
\n- Field: disabled cursor should be not-allowed #11800
\n- Image: failed to display loading when using lazy-load #11809
\n
\n
\n
2023-04-30
\n
Feature
\n
\n- Pagination: add show-prev-button, show-next-button props #11780
\n- Picker: add scroll-into event #11757
\n
\n
Bug Fixes
\n
\n- Pagination: don\'t show click feedback when button is disabled #11779
\n- Sticky: resize or orientationchange wrapper no reset width and height #11753
\n- Tabs: re-render when line-width or line-height changed #11776
\n- Tabs: should scroll active tab into view after resized #11777
\n- Watermark: add xlink namespace and fix blob MIME type #11762
\n
\n
\n
2023-04-16
\n
New Component
\n
\n
Feature
\n
\n- ShareSheet: allow custom icon #11709
\n- TextEllipsis: add dots prop #11745
\n
\n
Bug Fixes
\n
\n- Swipe: should resize after props.width and props.height changed #11747
\n
\n
\n
2023-03-26
\n
Feature
\n
\n- Locale: add Khmer translations #11701
\n
\n
Bug Fixes
\n
\n- Field: label-align top works well with label-width #11684
\n- Field: should emit blur event when readonly #11699
\n- ImagePreview: long vertical images sliding up and down #11702
\n
\n
\n
2023-03-19
\n
Feature
\n
\n- Uploader: support avif image format #11655
\n
\n
Bug Fixes
\n
\n- @vant/use: add vue as peer dependencies #11662
\n- DatePicker: fix display back wrong of date-picker #11656
\n- Field: fix
FieldRuleFormatter
typo #11674 \n- TextEllipsis: fix that numbers and letters cannot display ellipses #11669
\n
\n
\n
2023-03-05
\n
New Component
\n
\n- add new TextEllipsis component, contributed by @wjw-gavin \u2764\uFE0F #11593
\n
\n
Feature
\n
\n- Swipe: add index param to drag-start/drag-end event #11632
\n- TreeSelect: add nav-text slot #11602 #11641
\n
\n
Bug Fixes
\n
\n- DropdownMenu: fix dropdown-item position when expanded by default #11640
\n- Field: fix label-align top not work when set label-width #11611
\n- Locale: improve Ukrainian translation #11629
\n
\n
\n
2023-02-20
\n
Feature
\n
\n- Add new vant-nuxt module for Nuxt #11588
\n- BackTop: support css variable and prop of z-index #11582
\n- Picker: expose option index to option slot #11594
\n- @vant/use: support cleanup useEventListener #11540
\n
\n
Bug Fixes
\n
\n- PickerGroup: confirm event missing params #11566
\n- PickerGroup: fix style of tab-line caused by v-show #11547
\n- PickerGroup: fix slots not work #11564
\n- Popover: fix the arrow position of
*-start/end
placements #11584 \n- Popover: should update location after transition #11568
\n- Space: Text is not defined in SSR #11549
\n
\n
\n
2023-02-02
\n
Bug Fixes
\n
\n- DatePicker: fix the value is not updated in time of change event #11529
\n- Slider: fix button does not work properly in two-thumb mode #11526 #11534
\n
\n
\n
2023-01-26
\n
Feature
\n
\n- BackTop: add immediate prop #11515
\n- Calendar: add month-title slot #11500
\n- Cascader: add useCascaderAreaData method #11518
\n- ImagePreview: allow swipe when image is moved to edge #11505
\n- Locale: add Esperanto translations #11520
\n- Locale: add useCurrentLang method #11517
\n- Swipe: add drag-start, drag-end event #11502
\n
\n
Bug Fixes
\n
\n- ImagePreview: disable zoom when swiping #11504
\n- Locale: fix Italian general revision #11519
\n- Swipe: avoid resetting position on multi-finger touch #11503
\n
\n
\n
2023-01-15
\n
Feature
\n
\n- PickerGroup: add next-step-text prop #11487
\n
\n
Bug Fixes
\n
\n- Picker: change confirm button color to primary color #11479
\n- NumberKeyboard: change confirm button color to primary color #11479
\n- Icons: add woff format to compat some special webview #11485
\n- Picker: ensure title align in center #11489
\n- Skeleton: fix can not register skeleton image component #11470 #11469
\n- Tabs: incorrect insert position in some cases #11462
\n
\n
\n
2023-01-02
\n
Bug Fixes
\n
\n- Icons: fix delete / delete-o icon #11441
\n- Icons: no longer support woff/ttf format #11442
\n- ImagePreview\uFF1Afix teleport prop not work #11429
\n- Locale: fix typo of "Calendar" in ru-RU #11425
\n- Swipe: failed to render inside keep-alive #11437
\n
\n
\n
2022-12-26
\n
Bug Fixes
\n
\n- Fix missing declaration files caused by upgrading vite v4 #11423
\n
\n
\n
2022-12-25
\n
Feature
\n
\n- Locale: add Dutch lang #11419
\n- Locale: add Mongolian lang #11418
\n
\n
Bug Fixes
\n
\n- Badge: fix badge offset of different position #11400
\n- Form: filter no name field\'s value #11410
\n- Picker: picker loading color in dark theme #11405
\n
\n
\n
2022-12-23
\n
Bug Fixes
\n
\n- Field: incorrect cursor position when value length exceeds maxlength or when formatter is used #11360
\n- Image: load event missing params #11406
\n
\n
\n
2022-12-13
\n
Bug Fixes
\n
\n- Field: failed to dynamically set empty label #11373
\n- ImagePreview: fix loading when previewing images #11376
\n
\n
\n
2022-12-03
\n
Bug Fixes
\n
\n- Field: incorrect cursor position when using formatter #11348
\n- Image: load event not triggered in nuxt3 128972
\n- NavBar: update placeholder height when window resized #11351
\n
\n
\n
2022-12-01
\n
Feature
\n
\n- Picker: add selectedIndexes to the confirm event #11329
\n
\n
Bug Fixes
\n
\n- Field: set selection range only when focused #11333
\n
\n
\n
2022-11-26
\n
Feature
\n
\n- List: add disabled prop #11307
\n- BackTop: allow dynamically set target prop #11311
\n- BackTop: allow using css var to custom position #11312
\n- BackTop: rename visibility-height prop to offset #11309
\n
\n
Bug Fixes
\n
\n- Field: keep selection position after updating value #11308
\n
\n
\n
2022-11-24
\n
Bug Fixes
\n
\n- Cell: arrow-direction assignment right is invalid #11279
\n- Style: body normalize not work #11287
\n
\n
\n
2022-11-20
\n
Feature
\n
\n- add new BackTop component, note that the API is not stable yet, we may change the API before 4.0 release. #11236
\n
\n
Bug Fixes
\n
\n- DropdownItem: should inherit attrs when using teleport #11273
\n- List: incorrect initial loading value #11275
\n- NumberKeyboard: should inherit attrs when using teleport #11274
\n
\n
\n
2022-11-13
\n
New Component
\n
\n- Add new SkeletonAvatar\u3001SkeletonTitle\u3001SkeletonImage\u3001SkeletonParagraph components #11173
\n
\n
Feature
\n
\n- ImagePreview: add long-press event #11252
\n- Popover: support uncontrolled mode #11244
\n
\n
Bug Fixes
\n
\n- ActionSheet: fix that close is invalid without title #11213
\n- DatePicker: only throw error in development #11248
\n- Lazyload: lazy-image h is not a function #11229
\n- Picker: correct v-model when emit confirm event #11194
\n- Picker: empty column will cause error #11249
\n- Uploader: chooseFile is invalid when show-upload is false #11218
\n
\n
\n
2022-10-23
\n
Feature
\n
\n- Calendar: add params for subtitle slot #11168
\n- Cell: add tag prop #11139
\n- ImagePreview: add image slot #11133
\n- Toast: add wordBreak prop #11147
\n
\n
Bug Fixes
\n
\n- CouponList: fix the style of coupon checkbox #11153
\n- CouponList: incorrect field style #11155
\n- Swipe: failed to render when inside popup #11162
\n
\n
\n
2022-10-07
\n
Feature
\n
\n- Field: support label-position top #11102
\n- Loading: add icon slot #11109
\n- NavBar: add clickable prop #11048
\n- Stepper: add auto-fixed prop #11071
\n
\n
Bug Fixes
\n
\n- DatePicker: format value when exceed max date #11122
\n- Tabs: incorrect nav scroll animation in some cases #11116
\n- Tabs: scroll position when using nav-bottom slot #11115
\n
\n
\n
2022-09-25
\n
Feature
\n
\n- Field: add message param to \'end-validate\' method #11080
\n
\n
Bug Fixes
\n
\n- Tabs: incorrect scroll position in some cases #11085
\n- Tabs: incorrect scroll position when inited #11059
\n
\n
\n
2022-09-12
\n
Feature
\n
\n- ConfigProvider: add ConfigProviderThemeVars type #11034
\n- Notify: add z-index prop #11032
\n- remove popperjs to reduce install size #11030
\n
\n
Types
\n
\n- Toast: fix missing global components type #11033
\n
\n
\n
2022-09-11
\n
Breaking Changes
\n
\n- attach css variables to :root element #11026
\n
\n
Bug Fixes
\n
\n- Dialog: incorrect transform behavior #11028
\n- Empty: fix opacity in dark mode #11027
\n
\n
\n
2022-09-10
\n
Feature
\n
\n- export props of all components #11024
\n- Dialog: message-align can be justify #11014
\n- Image: add block prop #11022
\n- Toast: add message slot #11018
\n
\n
Bug Fixes
\n
\n- Picker: failed to update value in some cases #11009
\n- Locale: avoid getting unexpected value #11010
\n
\n
\n
2022-09-04
\n
New Component
\n
\n
Bug Fixes
\n
\n- DatePicker: failed to update model value #10984
\n- DatePicker: min-date prop not work correctly #10985
\n
\n
\n
2022-08-24
\n
Breaking Changes
\n
\n- Popup: improve style when position is center #10965
\n
\n
\n.van-popup--center {\n left: 50%;\n transform: translate3d(-50%, -50%, 0);\n}\n\n\n.van-popup--center {\n left: 0;\n right: 0;\n width: fit-content;\n max-width: calc(100vw - var(--van-padding-md) * 2);\n margin: 0 auto;\n transform: translateY(-50%);\n}\n
\n
New Component
\n
\n
Feature
\n
\n- ConfigProvider: add z-index prop #10915
\n- Form: add validateEmpty option of rule #10913
\n- Popup: add role and tabindex for a11y #10894
\n- TouchEmulator: support .mjs extension #10888
\n
\n
Feature
\n
\n- ConfigProvider: add theme-vars-dark and theme-vars-light props #10939
\n- Picker: add clickOption event #10865
\n- add correct passive flag to improve scroll performance #10951
\n- @vant/use: improve useEventListener typing #10952
\n
\n
Bug Fixes
\n
\n- ConfigProvider: should remove theme class on unmount #10898
\n- reduce passive event warning of touchstart event #10954
\n- Tabs: resize not work for swipeable tabs #10964
\n- Fix incorrect tag name in WebStorm #10946
\n- Badge: should hide string zero when using show-zero prop #10921
\n- Calendar: content disappeared when hiding #10910
\n- Calendar: reading getFullYear error in some cases #10909
\n- Empty: generate unique id to avoid render issue #10943
\n- Popover: can not scroll inside popup #10949
\n- PullRefresh: fix passive event warning #10938
\n- Search: --van-search-input-height var not work #10911
\n
\n
\n
2022-07-16
\n
Breaking Changes
\n
\n- Toast: redesign function-call API #10804
\n- Dialog: redesign function-call API #10781
\n- Notify: redesign function-call API #10782
\n- ImagePreview: redesign function-call API #10802
\n
\n
Feature
\n
\n- add @vant/compat package #10806
\n- Calendar: expose getSelectedDate method 419a8e
\n- remove less source file to remove bundle size #10752
\n
\n
Bug Fixes
\n
\n- Uploader: should not preview failed images #10790
\n
\n
\n
2022-05-31
\n
Feature
\n
\n- using mjs extension for esmodule #10625
\n
\n
\n
2022-05-02
\n
Feature
\n
\n
Bug Fixes
\n
\n- Search: style error in dark mode #10527
\n- @vant/area-data: only publish dist folder to npm f927f6
\n
\n
\n
2022-04-16
\n
\n- CalendarDay: add default margin-bottom #10441
\n- Empty: support set the image size separately #10465
\n- Field: add enterkeyhint prop #10478
\n- Form: add getValues method #10511
\n- Icon: add some icons for ShareSheet #10468
\n- Locale: add Danish lang #10513
\n- ShareSheet: no longer rely on CDN images #10469
\n- Add event arguments in web-types.json #10474
\n
\n
Bug Fixes
\n
\n- DatetimePicker: modeValue is inconsistent with the selected data #10448
\n- Rate: support precisely selected #10500
\n
\n
\n
2022-03-19
\n
Feature
\n
\n- @vant/area-data: update counties of NanJing #10410
\n- Locale: add la-LA.ts #10388
\n
\n
Bug Fixes
\n
\n- Calendar: fix title color in dark mode #10403
\n- Picker: fix title color in dark mode #10403
\n- ConfigProvider: dark mode not work as default value #10413
\n- DatePicker: failed to update model value #10415
\n- Dialog: fix title and message color in dark mode #10379
\n- IndexBar: allow active bottom anchor #10404
\n
\n
'},null,8,i))}}}]);