17 KiB
Changelog
Tips
The current document is the changelog of Vant 4, other versions:
Intro
Vant follows Semantic Versioning 2.0.0.
Release Schedule
- Patch version:released weekly, including features and bug fixes.
- Minor version:released every one to two months, including backwards compatible features.
- Major version:including breaking changes and new features.
Details
v4.0.8
2023-01-15
Feature
- PickerGroup: add next-step-text prop #11487
Bug Fixes
- Picker: change confirm button color to primary color #11479
- NumberKeyboard: change confirm button color to primary color #11479
- Icons: add woff format to compat some special webview #11485
- Picker: ensure title align in center #11489
- Skeleton: fix can not register skeleton image component #11470 #11469
- Tabs: incorrect insert position in some cases #11462
v4.0.7
2023-01-02
Bug Fixes
- Icons: fix delete / delete-o icon #11441
- Icons: no longer support woff/ttf format #11442
- ImagePreview:fix teleport prop not work #11429
- Locale: fix typo of "Calendar" in ru-RU #11425
- Swipe: failed to render inside keep-alive #11437
v4.0.6
2022-12-26
Bug Fixes
- Fix missing declaration files caused by upgrading vite v4 #11423
v4.0.5
2022-12-25
Feature
Bug Fixes
- Badge: fix badge offset of different position #11400
- Form: filter no name field's value #11410
- Picker: picker loading color in dark theme #11405
v4.0.4
2022-12-23
Bug Fixes
- Field: incorrect cursor position when value length exceeds maxlength or when formatter is used #11360
- Image: load event missing params #11406
v4.0.3
2022-12-13
Bug Fixes
- Field: failed to dynamically set empty label #11373
- ImagePreview: fix loading when previewing images #11376
v4.0.2
2022-12-03
Bug Fixes
- Field: incorrect cursor position when using formatter #11348
- Image: load event not triggered in nuxt3 128972
- NavBar: update placeholder height when window resized #11351
v4.0.1
2022-12-01
Feature
- Picker: add selectedIndexes to the confirm event #11329
Bug Fixes
- Field: set selection range only when focused #11333
v4.0.0
2022-11-26
Feature
- List: add disabled prop #11307
- BackTop: allow dynamically set target prop #11311
- BackTop: allow using css var to custom position #11312
- BackTop: rename visibility-height prop to offset #11309
Bug Fixes
- Field: keep selection position after updating value #11308
v4.0.0-rc.9
2022-11-24
Bug Fixes
v4.0.0-rc.8
2022-11-20
Feature
- add new BackTop component, note that the API is not stable yet, we may change the API before 4.0 release. #11236
Bug Fixes
- DropdownItem: should inherit attrs when using teleport #11273
- List: incorrect initial loading value #11275
- NumberKeyboard: should inherit attrs when using teleport #11274
v4.0.0-rc.7
2022-11-13
New Component
- Add new SkeletonAvatar、SkeletonTitle、SkeletonImage、SkeletonParagraph components #11173
Feature
Bug Fixes
- ActionSheet: fix that close is invalid without title #11213
- DatePicker: only throw error in development #11248
- Lazyload: lazy-image h is not a function #11229
- Picker: correct v-model when emit confirm event #11194
- Picker: empty column will cause error #11249
- Uploader: chooseFile is invalid when show-upload is false #11218
v4.0.0-rc.6
2022-10-23
Feature
- Calendar: add params for subtitle slot #11168
- Cell: add tag prop #11139
- ImagePreview: add image slot #11133
- Toast: add wordBreak prop #11147
Bug Fixes
- CouponList: fix the style of coupon checkbox #11153
- CouponList: incorrect field style #11155
- Swipe: failed to render when inside popup #11162
v4.0.0-rc.5
2022-10-07
Feature
- Field: support label-position top #11102
- Loading: add icon slot #11109
- NavBar: add clickable prop #11048
- Stepper: add auto-fixed prop #11071
Bug Fixes
- DatePicker: format value when exceed max date #11122
- Tabs: incorrect nav scroll animation in some cases #11116
- Tabs: scroll position when using nav-bottom slot #11115
v4.0.0-rc.4
2022-09-25
Feature
- Field: add message param to 'end-validate' method #11080
Bug Fixes
- Tabs: incorrect scroll position in some cases #11085
- Tabs: incorrect scroll position when inited #11059
v4.0.0-rc.3
2022-09-12
Feature
- ConfigProvider: add ConfigProviderThemeVars type #11034
- Notify: add z-index prop #11032
- remove popperjs to reduce install size #11030
Types
- Toast: fix missing global components type #11033
v4.0.0-rc.2
2022-09-11
Breaking Changes
- attach css variables to :root element #11026
Bug Fixes
v4.0.0-rc.1
2022-09-10
Feature
- export props of all components #11024
- Dialog: message-align can be justify #11014
- Image: add block prop #11022
- Toast: add message slot #11018
Bug Fixes
v4.0.0-rc.0
2022-09-04
New Component
- Add new component PickerGroup #11005
Bug Fixes
v4.0.0-beta.1
2022-08-24
Breaking Changes
- Popup: improve style when position is center #10965
// Vant 3
.van-popup--center {
left: 50%;
transform: translate3d(-50%, -50%, 0);
}
// Vant 4
.van-popup--center {
left: 0;
right: 0;
width: fit-content;
max-width: calc(100vw - var(--van-padding-md) * 2);
margin: 0 auto;
transform: translateY(-50%);
}
New Component
- Add new component Space, contributed by @LadyChatterleyLover #10857
Feature
- ConfigProvider: add z-index prop #10915
- Form: add validateEmpty option of rule #10913
- Popup: add role and tabindex for a11y #10894
- TouchEmulator: support .mjs extension #10888
Feature
- ConfigProvider: add theme-vars-dark and theme-vars-light props #10939
- Picker: add clickOption event #10865
- add correct passive flag to improve scroll performance #10951
- @vant/use: improve useEventListener typing #10952
Bug Fixes
- ConfigProvider: should remove theme class on unmount #10898
- reduce passive event warning of touchstart event #10954
- Tabs: resize not work for swipeable tabs #10964
- Fix incorrect tag name in WebStorm #10946
- Badge: should hide string zero when using show-zero prop #10921
- Calendar: content disappeared when hiding #10910
- Calendar: reading getFullYear error in some cases #10909
- Empty: generate unique id to avoid render issue #10943
- Popover: can not scroll inside popup #10949
- PullRefresh: fix passive event warning #10938
- Search: --van-search-input-height var not work #10911
v4.0.0-beta.0
2022-07-16
Breaking Changes
- Toast: redesign function-call API #10804
- Dialog: redesign function-call API #10781
- Notify: redesign function-call API #10782
- ImagePreview: redesign function-call API #10802
Feature
- add @vant/compat package #10806
- Calendar: expose getSelectedDate method 419a8e
- remove less source file to remove bundle size #10752
Bug Fixes
- Uploader: should not preview failed images #10790
v4.0.0-alpha.4
2022-05-31
Feature
- using mjs extension for esmodule #10625
v4.0.0-alpha.3
2022-05-02
Feature
- Form: support setting multiple validate-trigger #10544
- Empty: localize all images #10514 #10515 #10516
- Loading: add aria to improve a11y #10568
Bug Fixes
v4.0.0-alpha.2
2022-04-16
- CalendarDay: add default margin-bottom #10441
- Empty: support set the image size separately #10465
- Field: add enterkeyhint prop #10478
- Form: add getValues method #10511
- Icon: add some icons for ShareSheet #10468
- Locale: add Danish lang #10513
- ShareSheet: no longer rely on CDN images #10469
- Add event arguments in web-types.json #10474
Bug Fixes
- DatetimePicker: modeValue is inconsistent with the selected data #10448
- Rate: support precisely selected #10500
v4.0.0-alpha.1
2022-03-19
Feature
Bug Fixes