docs: mark panel as deprecated (#6348)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# Panel 面板
|
||||
|
||||
### 废弃提示
|
||||
|
||||
<b>由于使用场景有限,Panel 组件将在 3.0 版本中废弃</b>,请直接使用 Cell 和 Button 组件代替
|
||||
|
||||
### 引入
|
||||
|
||||
```js
|
||||
|
||||
@@ -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>
|
||||
```
|
||||
|
||||
### 引入
|
||||
|
||||
|
||||
Reference in New Issue
Block a user