vant/docs/markdown/changelog.en-US.md
2019-06-11 21:10:20 +08:00

4.3 KiB
Raw Blame History

更新日志

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 less variables
  • Rename several components, deprecate several APIs

New Components

  • Image Component
  • Skeleton Component
  • IndexBarIndexAnchor Component
  • DropdownMenuDropdownItem Component

Breaking Changes

Actionsheet
  • Rename to ActionSheet
Button
  • Remove bottom-action propplease use square and size instead
Field
  • Remove on-icon-click propplease use click-right-icon event instead
  • Rename icon prop to right-icon
  • Rename icon slot to right-icon
  • Rename click-icon event to click-right-icon
GoodsAction
  • Rename GoodsActionBigBtn to GoodsActionButton
  • Rename GoodsActionMiniBtn to GoodsActionIcon
  • Remove primary prop of GoodsActionBigBtnplease to type prop instead
Step
  • Remove icon prop
  • Remove title prop
  • Remove icon-class prop
  • Remove description prop
  • Remove message-extra slot
Badge
  • Rename BadgeGroup to Sidebar
  • Rename Badge to SlideBarItem
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 componentplease use List insteador 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-scroll prop
  • Add click-overlay event
  • Add close-on-click-action prop
  • Support both use title and actions prop
Area
  • reset method support code param
Button
  • Add icon prop
  • Add loading-type prop
Checkbox
  • Add icon-size prop
DatetimePicker
  • Add filter prop
Field
  • Add input slot
  • Add click event
  • Add clickable prop
  • Add label-class prop
  • No longer update v-model during IME composition
GoodsActionButton
  • Add type prop
Icon
  • Support Number type of size prop
ImagePreview
  • Add close-on-popstate prop
Loading
  • Add default slot
  • Add vertical prop
  • Add text-size prop
  • Support Number type of size prop
Notify
  • Add onClick option
  • Add onClose option
  • Add onOpened option
NoticeBar
  • Add left-icon slot
  • Add right-icon slot
PasswordInput
  • Add gutter prop
Picker
  • Support inertial scrolling
  • Add toolbar-position prop
Popup
  • Add click event
  • Add duration prop
Radio
  • Add icon-size prop
Rate
  • Add gutter prop
  • SupportString type of size prop
  • Add clearable prop
  • Add left-icon prop
  • Add right-icon prop
  • Add right-icon slot
  • No longer update v-model during IME composition
Slider
  • Add drag-start event
  • Add drag-end event
Steps
  • Add inactive-icon prop
  • Add inactive-icon slot
Stepper
  • SupportNumber type of input-width prop
SubmitBar
  • Add tip-icon prop
  • Add suffix-label prop
SwipeCell
  • Auto calc left-width and right-width
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
  • Add border prop
  • Optimize animated animation 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
Toast
  • Add onOpened option
Uploader
  • Add default upload style
  • Add delete event
  • Add upload-text prop
  • Add max-count prop
  • Add preview-size prop
  • Add preview-image prop
  • Support use v-model to bind file-list
  • oversize event add detail param