vant/docs/markdown/changelog-v3.zh-CN.md
2020-09-01 16:44:09 +08:00

20 KiB

更新日志

提示

当前文档为 Vant 3.x 版本的更新日志,如需查询 Vant 2.0 的更新内容,请访问 Vant 2.0 更新日志

介绍

Vant 遵循 Semver 语义化版本规范。

发布节奏

  • 修订号:每周发布,包含新特性和问题修复。
  • 次版本号:每隔一至二个月发布,包含新特性和较大的功能更新,向下兼容。
  • 主版本号:发布时间不定,包含不兼容更新。

v3.0.0-alpha.3

2020-09-01

Feature

  • ActionSheet: 新增 description 插槽 #7068
  • Toast: 使用 composition api 重构 44aaa4

Types

  • 修复使用 app.use 注册组件时提示类型错误的问题 #7056
  • 修复 $toast、$dialog 类型不存在的问题 0acbc6

Bug Fixes

  • Dialog: 修复 Dialog.close 不生效的问题 476e16
  • Toast: 修复设置 toast.message 不生效的问题 dac7fe

v3.0.0-alpha.2

2020-08-28

Bug Fixes

  • 修复使用 yarn add vant@next 安装失败的问题

v3.0.0-alpha.1

2020-08-28

refactor

使用 Composition API 重构以下组件:

  • ActionBar
  • AddressList
  • Area
  • Badge
  • Button
  • Circle
  • Col
  • Collapse
  • CountDown
  • Image
  • Row
  • List
  • Loading
  • NavBar
  • NoticeBar
  • Progress
  • Rate
  • Sidebar
  • Slider
  • Steps
  • Sticky
  • Tabbar

Bug Fixes

  • Rate: 修复控制台报 emit warning 提示的问题 c32fba
  • Button: 修复 click 事件参数丢失的问题 cea272
  • CellGroup: 修复 attrs 继承错误的问题 8f978a
  • Dialog: 修复部分弹窗相关属性不生效的问题 af94c9
  • Image: 修复 loading 图标和 error 图标不展示的问题 c720ee

v3.0.0-alpha.0

2020-08-22

Bug Fixes

  • ActionSheet: some events missed 4d8d02
  • AddressList: bottom slot not work d9e0e7
  • Cell: route props 7ed174
  • cli: register packageEntry failed 4e7931
  • cli: template v-for warning 0db903
  • Coupon: failed to render face amount 4e7769
  • Dialog: missing emits config 492065
  • eslint-config: update extends rule 9754a8
  • Field: cell slots ec64d8
  • Field: failed to inherit class/style ad1301
  • Field: rows not work 092c53
  • Icon: default slot 3a2e20
  • Image: alt prop not work 0a570b
  • Image: loading status 0010bf
  • Popup: adjust teleport handler 54a860
  • Popup: duration not work for overlay 5e5025
  • rename domPropsInnerHTML to innerHTML c0c4f7
  • Field: should not render empty label 4d58db
  • Image: memory leak during SSR #6721
  • NoticeBar: add emits 70f614
  • Pagination: missing emits e8d190
  • Popup: animation 708792
  • Popup: legacy removeNode 34ff81
  • Popup: missing overlay class & style de6690
  • Popup: overlay z-index 5db6e3
  • Popup: teleport 6995bc
  • Search: icon slot not work b4e026
  • Search: inherit style/class 742872
  • SwipeCell: missing emits config a7836a
  • Uploader: enable inheritAttrs 2937c1
  • currentRoute 7346f2
  • failed to install component 47ad40
  • missing emits d04c8c
  • rename unmount lifecycles 6c8529
  • Slider: missing transition in vertical mode 616723
  • Tabs: update:active event 7e47a0
  • non-empty path must start with "/" 075bc0
  • router catchAll 59f9b8
  • router-view with keep-alive 88f5fe
  • sync iframe router 2d63b9
  • utils 4c87fe

build

  • cli: update jsx plugin f6280d

Document

  • add changelog-v3 448584
  • add migrate guide 7cadc5
  • shoud install vant@next 569c6d
  • update component registration guide d42b1b
  • update global method guide 9a86e9
  • update install guide 435c6e
  • update migrate guide a0725b
  • ActionSheet: update v-model usage 1e441e
  • changelog: add SwitchCell migrate guide 4e5f50
  • changelog: add v-model demo 6347a0
  • Field: remove event inheirt 47cb51
  • update v-model change ab067e

Feature

  • cli: package entry fit Vue 3 173792
  • cli: update jest setup config f0482c
  • ActionSheet component aa09ba
  • add emits option 0e4b5a
  • Button component 12c167
  • Cell component 2f1f54
  • CellGroup component bd5651
  • Divider component aa9fc7
  • Empty component aab12a
  • Grid component 660e53
  • i18n next 0a4c66
  • image component b79e59
  • layout component e671e2
  • loading component e0f938
  • migrate AddressEdit component 134930
  • migrate AddressList component abe8ae
  • migrate Area component 789a2f
  • migrate Calendar component 0dd713
  • migrate Card component 607410
  • migrate Checkbox/CheckboxGroup cef8da
  • migrate Field component 75421a
  • migrate NoticeBar component b3964e
  • migrate PullRefresh component bb8a3d
  • migrate ShareSheet component bb445b
  • Tag: add show prop and fix transition 7317a1
  • migrate Circle component 94ae79
  • migrate Collapse component 79511f
  • migrate Contact component 6d1309
  • migrate ContactCard component 41796b
  • migrate CountDown component e111fd
  • migrate CouponCell component 832ed6
  • migrate CouponList component 579a9e
  • migrate DatetimePicker component bfe2e9
  • migrate Dialog component f3ff93
  • migrate Form component b6b6e3
  • migrate GoodsAction component e2d9b1
  • migrate List component 01c740
  • migrate SubmitBar component 854146
  • Field: enable inheritAttrs 3c3e72
  • migrate DropdownMenu 998c7d
  • migrate ImagePreview component 3a290c
  • migrate IndexBar component f956d1
  • migrate Notify component 0b9009
  • migrate NumberKeyboard component a70d11
  • migrate PasswordInput component 6d3ce8
  • migrate Picker component 9fa7a2
  • migrate Radio/RadioGroup 2172cc
  • migrate Search component 735aca
  • migrate Sidebar component 08e03e
  • migrate Slider component 75d76d
  • migrate Stepper component 0ed033
  • migrate Sticky component 4ad0c3
  • migrate Swipe component f97864
  • migrate SwipeCell component 8c4c51
  • migrate Tab component d2291f
  • migrate Tabbar component 7fda26
  • migrate Toast component 5d2cd5
  • migrate TreeSelect component 7a197f
  • migrate Uploader component 7c2b4c
  • Steps: add inactive-color prop 296315
  • NavBar component 6567b0
  • Overlay component 2a41dc
  • Pagination component 97a6bf
  • Popup component 57e035
  • Progress component 2539a5
  • Rate component 3bf647
  • Skeleton component ca0b7f
  • Steps component 4500e7
  • Switch component 1874b7
  • Tag component 919161
  • markdown-loader: compatible with vue 3 d69702

refactor

  • DropdownItem: remove portal mixin 0b208d

  • NumberKeyboard: remove portal mixin a4b481

  • Popup: remove popup mixin 1ad76a

  • SwipeCell: remove deprecated on-close 8031c6

  • SwipeCell: rename open event params 13912c

  • icon component 3bc649

  • info component 425ffb

  • breaking change: rename get-container to teleport 52b187

  • breaking change(Button): add success type, remove info type 07d1a2

  • breaking change(Picker): enable show-toolbar by default 8843b7

  • breaking change(Area): adjust change event param 832dab

  • breaking change(Picker): adjust change event param 036eb8

  • breaking change(Picker): update values param af7e7f

  • breaking change: rename Info to Badge 63bd47

  • breaking change: rename GoodsAction to ActionBar fc825d

  • breaking change: remove SwitchCell component 966fb5

  • Revert "chore: remove hooks ooops!" 2e6dbc

style

  • ActionSheet: subname align 6672b3

v3.0.0-alpha.0

2020-08-22

主要改动

  • 完成 Vue 3 适配
  • 调整部分组件的 v-model 和 prop.sync 用法,以适配 v-model 语法变更
  • 调整部分组件的 prop 和 event 用法
  • 重命名所有组件的 info 属性为 badge
  • 重命名所有组件的 get-container 属性为 teleport
  • 废弃 SwitchCell 组件
  • 废弃个别 API

已知问题

  • Lazyload、Panel 和 Sku 组件暂未完成 Vue 3 适配

详细改动请参考 从 v2 升级