mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
4.3 KiB
4.3 KiB
更新日志
v2.0.0
2019-06-12
Overview
- Add four new components
- Add dozens of APIs
- Improve accessibility
- 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。
Accessibility
Improve accessibility for those components:
- Accordion
- Checkbox
- Dialog
- DropdownMenu
- GoodsAction
- List
- NoticeBar
- NumberKeyboard
- Radio
- Rate
- Stepper
- Tab
- Slider
- Switch
New Feature
ActionSheet
- Add
lock-scrollprop - Add
click-overlayevent - Add
close-on-click-actionprop - Support both use
titleandactionsprop
Area
resetmethod supportcodeparam
Button
- Add
iconprop - Add
loading-typeprop
Checkbox
- Add
icon-sizeprop
DatetimePicker
- Add
filterprop
Field
- Add
inputslot - Add
clickevent - Add
clickableprop - Add
label-classprop - No longer update v-model during IME composition
GoodsActionButton
- Add
typeprop
Icon
- Support
Numbertype ofsizeprop
ImagePreview
- Add
close-on-popstateprop
Loading
- Add
defaultslot - Add
verticalprop - Add
text-sizeprop - Support
Numbertype ofsizeprop
Notify
- Add
onClickoption - Add
onCloseoption - Add
onOpenedoption
NoticeBar
- Add
left-iconslot - Add
right-iconslot
PasswordInput
- Add
gutterprop
Picker
- Support inertial scrolling
- Add
toolbar-positionprop
Popup
- Add
clickevent - Add
durationprop
Radio
- Add
icon-sizeprop
Rate
- Add
gutterprop - Support
Stringtype ofsizeprop
Search
- Add
clearableprop - Add
left-iconprop - Add
right-iconprop - Add
right-iconslot - No longer update v-model during IME composition
Slider
- Add
drag-startevent - Add
drag-endevent
Steps
- Add
inactive-iconprop - Add
inactive-iconslot
Stepper
- Support
Numbertype ofinput-widthprop
SubmitBar
- Add
tip-iconprop - Add
suffix-labelprop
SwipeCell
- Auto calc
left-widthandright-width
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
- Add
borderprop - Optimize
animatedanimation performance - Fix incorrect tab pane height when use
animatedprop
Tabbar
- Add
routeprop - Add
borderprop - Add
inactive-colorprop
TabbarItem
- Add
nameprop
Toast
- Add
onOpenedoption
Uploader
- Add default upload style
- Add
deleteevent - Add
upload-textprop - Add
max-countprop - Add
preview-sizeprop - Add
preview-imageprop - Support use
v-modelto bind file-list oversizeevent adddetailparam