mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
docs(changelog): add SwitchCell migrate guide
This commit is contained in:
parent
fc825d7a33
commit
4e5f509b2f
@ -105,3 +105,11 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
|||||||
##### 废弃组件
|
##### 废弃组件
|
||||||
|
|
||||||
- SwitchCell: 移除此组件,可以直接使用 Cell 和 Switch 组件代替
|
- SwitchCell: 移除此组件,可以直接使用 Cell 和 Switch 组件代替
|
||||||
|
|
||||||
|
```html
|
||||||
|
<van-cell center title="标题">
|
||||||
|
<template #right-icon>
|
||||||
|
<van-switch v-model="checked" size="24" />
|
||||||
|
</template>
|
||||||
|
</van-cell>
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user