mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
3.4 KiB
3.4 KiB
Changelog
v2.0.0-beta.1
Accessibility
Improve accessibility for those components:
- Accordion
- Checkbox
- Radio
- Stepper
- Tab
ActionSheet
- Add
lock-scroll
prop
DatetimePicker
- Add
filter
prop
DropdownMenu
- Add
duration
prop
DropdownItem
- Add
title-class
prop - Fix incorrect position in some browsers
Picker
- Support inertial scrolling
Tab
- Add
border
prop
Uploader
oversize
event adddetail
param
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
less
variables - Rename several components, deprecate several APIs
New Components
Image
ComponentSkeleton
ComponentIndexBar
、IndexAnchor
ComponentDropdownMenu
、DropdownItem
Component
Breaking Changes
Actionsheet
- Rename to
ActionSheet
Button
- Remove
bottom-action
prop,please usesquare
andsize
instead
Field
- Remove
on-icon-click
prop,please useclick-right-icon
event instead - Rename
icon
prop toright-icon
- Rename
icon
slot toright-icon
- Rename
click-icon
event toclick-right-icon
GoodsAction
- Rename
GoodsActionBigBtn
toGoodsActionButton
- Rename
GoodsActionMiniBtn
toGoodsActionIcon
- Remove
primary
prop ofGoodsActionBigBtn
,please totype
prop instead
Step
- Remove
icon
prop - Remove
title
prop - Remove
icon-class
prop - Remove
description
prop - Remove
message-extra
slot
Badge
- Rename
BadgeGroup
toSidebar
- Rename
Badge
toSlideBarItem
Loading
- Remove
circle
type - Remove
gradient-circle
type
Checkbox
- Adjusted to
flex
layout, may affect the original layout
Radio
- Adjusted to
flex
layout, may affect the original layout
Waterfall
- Remove Waterfall component,please use
List
instead,or use @vant/waterfall。
New Features
ActionSheet
- add
close-on-click-action
prop - support use
title
andactions
prop at same time
Button
- add
loading-type
prop
Checkbox
- add
icon-size
prop
Field
- add
label-class
prop
GoodsActionButton
- add
type
prop
Icon
- Support
size
prop ofNumber
type
Loading
- add
default
slot - add
vertical
prop - add
text-size
prop - Support
size
prop ofNumber
type
Notify
- add
onClick
prop
NoticeBar
- add
left-icon
slot - add
right-icon
slot
PasswordInput
- add
gutter
prop
Popup
- add
click
event - add
duration
prop
Radio
- add
icon-size
prop
Steps
- add
inactive-icon
prop - add
inactive-icon
slot
SubmitBar
- add
tip-icon
prop - add
suffix-label
prop
Switch
- The loading icon color will now follow the background color change
SwitchCell
- add
border
prop - add
cell-size
prop
Sku
- add
preview-open
event - add
preview-close
event
Tab
- Optimize
animated
performance - Fix incorrect tab pane height when use
animated
prop
Tabbar
- add
route
prop - add
border
prop - add
inactive-color
prop
TabbarItem
- add
name
prop