docs: mark panel as deprecated (#6348)

This commit is contained in:
neverland
2020-05-23 15:17:15 +08:00
committed by GitHub
parent 0daf9e6bcf
commit 54f3979fe8
4 changed files with 25 additions and 9 deletions
+4
View File
@@ -1,5 +1,9 @@
# Panel
### Deprecate Tip
The Panel component will be deprecated in version 3.0. Please use the Cell and Button components instead.
### Install
```js
+4
View File
@@ -1,5 +1,9 @@
# Panel 面板
### 废弃提示
<b>由于使用场景有限,Panel 组件将在 3.0 版本中废弃</b>,请直接使用 Cell 和 Button 组件代替
### 引入
```js
+9 -1
View File
@@ -2,7 +2,15 @@
### 废弃提示
<b>SwitchCell 组件将在 3.0 版本中废弃</b>,请直接使用 Cell 和 Switch 组件代替
<b>SwitchCell 组件将在 3.0 版本中废弃</b>,请直接使用 Cell 和 Switch 组件代替,替换写法如下:
```html
<van-cell center title="标题">
<template #right-icon>
<van-switch v-model="checked" size="24" />
</template>
</van-cell>
```
### 引入