mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-11-10 15:32:07 +08:00
4.5 KiB
4.5 KiB
Changelog
v2.0.0-beta.3
2019-05-31
Field
- No longer update v-model during IME composition
IndexBar
- Add
stickyprop - Add
highlight-colorprop
Notify
- Add
onCloseoption - Add
onOpenedoption
Picker
- Optimize animation
Rate
- Add
gutterprop - Support
sizeprop ofStringtype
Search
- No longer update v-model during IME composition
SwipeCell
- Support auto calc
left-widthandright-width
Toast
- Add
onOpenedoption
v2.0.0-beta.2
Accessibility
Improve accessibility for those components:
- List
- Rate
- Dialog
- Slider
- Switch
- NoticeBar
- GoodsAction
- DropdownMenu
- NumberKeyboard
Area
resetmethod supportcodeparam
Button
- Add
iconprop
ImagePreview
- Add
close-on-popstateprop
Search
- Add
clearableprop - Add
left-iconprop - Add
right-iconprop - Add
right-iconslot
Slider
- Add
drag-startevent - Add
drag-endevent
Uploader
- Add default upload style
- Add
upload-textprop
v2.0.0-beta.1
Accessibility
Improve accessibility for those components:
- Accordion
- Checkbox
- Radio
- Stepper
- Tab
ActionSheet
- Add
lock-scrollprop
DatetimePicker
- Add
filterprop
DropdownMenu
- Add
durationprop
DropdownItem
- Add
title-classprop - Fix incorrect position in some browsers
Picker
- Support inertial scrolling
Tab
- Add
borderprop
Uploader
oversizeevent adddetailparam
v2.0.0-beta.0
2019-05-21
Overview
- Add four new components
- Add dozens of APIs
- New card style document, support document search
- All components support custom styles via
lessvariables - Rename several components, deprecate several APIs
New Components
ImageComponentSkeletonComponentIndexBar、IndexAnchorComponentDropdownMenu、DropdownItemComponent
Breaking Changes
Actionsheet
- Rename to
ActionSheet
Button
- Remove
bottom-actionprop,please usesquareandsizeinstead
Field
- Remove
on-icon-clickprop,please useclick-right-iconevent instead - Rename
iconprop toright-icon - Rename
iconslot toright-icon - Rename
click-iconevent toclick-right-icon
GoodsAction
- Rename
GoodsActionBigBtntoGoodsActionButton - Rename
GoodsActionMiniBtntoGoodsActionIcon - Remove
primaryprop ofGoodsActionBigBtn,please totypeprop instead
Step
- Remove
iconprop - Remove
titleprop - Remove
icon-classprop - Remove
descriptionprop - Remove
message-extraslot
Badge
- Rename
BadgeGrouptoSidebar - Rename
BadgetoSlideBarItem
Loading
- Remove
circletype - Remove
gradient-circletype
Checkbox
- Adjusted to
flexlayout, may affect the original layout
Radio
- Adjusted to
flexlayout, may affect the original layout
Waterfall
- Remove Waterfall component,please use
Listinstead,or use @vant/waterfall。
New Features
ActionSheet
- add
close-on-click-actionprop - support use
titleandactionsprop at same time
Button
- add
loading-typeprop
Checkbox
- add
icon-sizeprop
Field
- add
label-classprop
GoodsActionButton
- add
typeprop
Icon
- Support
sizeprop ofNumbertype
Loading
- add
defaultslot - add
verticalprop - add
text-sizeprop - Support
sizeprop ofNumbertype
Notify
- add
onClickprop
NoticeBar
- add
left-iconslot - add
right-iconslot
PasswordInput
- add
gutterprop
Popup
- add
clickevent - add
durationprop
Radio
- add
icon-sizeprop
Steps
- add
inactive-iconprop - add
inactive-iconslot
SubmitBar
- add
tip-iconprop - add
suffix-labelprop
Switch
- The loading icon color will now follow the background color change
SwitchCell
- add
borderprop - add
cell-sizeprop
Sku
- add
preview-openevent - add
preview-closeevent
Tab
- Optimize
animatedperformance - Fix incorrect tab pane height when use
animatedprop
Tabbar
- add
routeprop - add
borderprop - add
inactive-colorprop
TabbarItem
- add
nameprop