mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-11-10 15:32:07 +08:00
15 KiB
15 KiB
Changelog
v2.1.1
2019-08-02
Bug Fixes
v2.1.0 [deprecated]
2019-08-01
Improvements
- GoodsAction: update style #3967
- Sku: update style #3875 #3922
- Sku: add price-tag prop #3875
- Sku: add hide-selected-text prop #3875
- Sku: add sku-header-origin-price slot #3958
- Dialog: add title slot #3985
- Dialog: centered in screen #3905
- Uploader: add less vars #3907
- ActionSheet: add less vars #3908
- AddressList: add click-item event #3942
- CouponList: add empty-image prop #3941
- SwipeCell: add stop-propagation prop #3952
- ImagePreview: add swipe-duration prop #3963
Bug Fixes
- fix Tabs incorrect line position in some cases #3961
- fix ImagePreview should reset onClose & onChange option #3960
- fix DatetimePicker incorrect confirm param when use formatter #3969
- fix Tabs fix scroll position deviation when sticky #3949
- fix IndexBar should update when index-list updated #3943
- fix AddressList can't select item when click empty area #3909
- fix ImagePreview Image beyond the screen height cover index #4002
- fix Radio: can't select when click gap #4007
- fix SwipeCell should not prevent touchmove when opened #3982
v2.0.9
2019-07-19
Improvements
- add Sticky component #3888
- Grid: optimize word break #3897
- Image: add round prop #3838
- Image: add show-error prop #3896
- Image: add show-loading prop #3893
- Toast: add iconPrefix option #3872
- Toast: optimize image icon display #3895
- TreeSelect: add click-nav、click-item event #3892
- ActionSheet: add round prop #3874
- Uploader: support preview network image #3899
Bug Fixes
- fix Dialog closeOnPopstate can't be disabled #3868
- fix DropdownMenu cann't use toggle to open item #3876
- fix SwipeCell should stop event propagation #3898
v2.0.8
2019-07-16
Improvements
- Sku: support custom placeholder #3864
- DropdownMenu: add icon option #3855
- DropdownMenu: optimize title ellipsis #3847
- ImagePreview: support double click zoom #3839
Bug Fixes
- fix Tab: click event param missing #3866
- fix List not work when body is the scrolling container #3844
- fix IndexBar incorrect active anchor in some cases #3832
v2.0.7
2019-07-11
Improvements
- add CountDown component #3805
- Popup: add round prop #3781
- PullRefresh: add distance of slotProps #3829
- DropdownMenu: add close-on-click-outside prop #3824
- Swipe: add immediate option of swipeTo method #3821
- Slider: support number type of bar-height prop #3794
- IndexBar: add sticky-offset-top prop #3791
Bug Fixes
- fix Popup overlay may cover popup in some cases #3831
- fix Stepper add hack for iOS 12 page scroll #3804
- fix Dialog missing closeOnPopstate in type definition #3789
- fix DatetimePicker confirm event param incorrect when use filter #3816
v2.0.6
2019-07-05
Improvements
Bug Fixes
- fix Swipe fix blank area when use width prop #3751
- fix Grid gutter can be string type #3741
- fix Collapse use double raf to ensure animation can start #3723
- fix PullRefresh ensure value change can be watched #3719
v2.0.5
2019-07-02
Improvements
- Stepper: add button-size prop #3714
- Stepper: support long press gesture #3711
- Dialog: add close-on-popstate prop #3709
Bug Fixes
- fix postcss config overwritten issue
v2.0.4
2019-07-01
Improvements
- add Grid、GridItem component #3669 #3682 #3683
- Field: add arrow-direction prop #3679
- Sidebar: add to、replace prop #3696
- Sidebar: support use v-model to bind active key #3698
- IndexBar: add class for active index #3692
- Uploader: support number type of name prop #3681
- SwipeCell: add name prop #3680
- AddressEdit: add detail-maxlength prop #3707
- GoodsActionIcon: add icon slot #3705
Bug Fixes
- fix Collapse flick in safari #3686
- fix Picker compatibility issues on lower versions of Android #3688
v2.0.3
2019-06-27
Improvements
- ActionSheet: add duration prop #3608
- ActionSheet: add open、opened events #3639
- ActionSheet: add close、closed events #3639
- Icon: add fit mode for image content #3667
- Icon: update checked、comment、comment-o icon #3615
- ImagePreview: add onChange option #3630
- Popup: optimize overlay animation duration #3610
- Uploader: support preview non-image file #3604
- Uploader: support click to preview image #3603
- Stepper: add less vars #3599
Bug Fixes
- fix ImagePreview should lock scroll #3645
- fix Tab may cause error when render title slot #3631
- fix vetur auto-complete #3617
v2.0.2
2019-06-21
Improvements
- Card: add click-thumb event #3586
- CouponList: add enabled-title、disabled-title props #3578
- Slider: min/max can set any value #3566
- Uploader: before-read prop support promise mode #3572
- Picker: update acceleration rate #3556
- NumberKeyboard: support v-model #3531
- NumberKeyboard: add maxlength prop #3532
- add sideEffects to enable tree shaking #3530
Bug Fixes
- fix Button default margin in safari #3577
- fix Sku can not preview image when only have goods picture #3569
- fix Toast missing type definition of clear method #3542
v2.0.1
2019-06-15
Improvements
- Tab: support string type of line-width & line-height #3514
- Icon: use image component to display image #3515
- Toast: add icon prop #3485
- DropdownMenu: add direction prop #3490
- NumberKeyboard: add delete slot #3499
Bug Fixes
- fix Image missing type definition #3520
- fix SwitchCell incorrect loading position #3501
- fix Toast missing fade-out transition in multiple mode #3504
- fix Locale can not modify functional message #3498
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
