mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
docs: mark panel as deprecated (#6348)
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Panel
|
# Panel
|
||||||
|
|
||||||
|
### Deprecate Tip
|
||||||
|
|
||||||
|
The Panel component will be deprecated in version 3.0. Please use the Cell and Button components instead.
|
||||||
|
|
||||||
### Install
|
### Install
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@@ -1,5 +1,9 @@
|
|||||||
# Panel 面板
|
# Panel 面板
|
||||||
|
|
||||||
|
### 废弃提示
|
||||||
|
|
||||||
|
<b>由于使用场景有限,Panel 组件将在 3.0 版本中废弃</b>,请直接使用 Cell 和 Button 组件代替
|
||||||
|
|
||||||
### 引入
|
### 引入
|
||||||
|
|
||||||
```js
|
```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>
|
||||||
|
```
|
||||||
|
|
||||||
### 引入
|
### 引入
|
||||||
|
|
||||||
|
@@ -256,10 +256,6 @@ module.exports = {
|
|||||||
path: 'notice-bar',
|
path: 'notice-bar',
|
||||||
title: 'NoticeBar 通知栏',
|
title: 'NoticeBar 通知栏',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'panel',
|
|
||||||
title: 'Panel 面板',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'progress',
|
path: 'progress',
|
||||||
title: 'Progress 进度条',
|
title: 'Progress 进度条',
|
||||||
@@ -367,6 +363,10 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
title: '废弃',
|
title: '废弃',
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
path: 'panel',
|
||||||
|
title: 'Panel 面板',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'switch-cell',
|
path: 'switch-cell',
|
||||||
title: 'SwitchCell 开关单元格',
|
title: 'SwitchCell 开关单元格',
|
||||||
@@ -607,10 +607,6 @@ module.exports = {
|
|||||||
path: 'notice-bar',
|
path: 'notice-bar',
|
||||||
title: 'NoticeBar',
|
title: 'NoticeBar',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'panel',
|
|
||||||
title: 'Panel',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'progress',
|
path: 'progress',
|
||||||
title: 'Progress',
|
title: 'Progress',
|
||||||
@@ -718,6 +714,10 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
title: 'Deprecated',
|
title: 'Deprecated',
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
path: 'panel',
|
||||||
|
title: 'Panel',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'switch-cell',
|
path: 'switch-cell',
|
||||||
title: 'SwitchCell',
|
title: 'SwitchCell',
|
||||||
|
Reference in New Issue
Block a user