From 54f3979fe8be8154c59cf5f8bb4e0d944ea9bfa9 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 23 May 2020 15:17:15 +0800 Subject: [PATCH] docs: mark panel as deprecated (#6348) --- src/panel/README.md | 4 ++++ src/panel/README.zh-CN.md | 4 ++++ src/switch-cell/README.zh-CN.md | 10 +++++++++- vant.config.js | 16 ++++++++-------- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/panel/README.md b/src/panel/README.md index 489cba62d..72cf7fad7 100644 --- a/src/panel/README.md +++ b/src/panel/README.md @@ -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 diff --git a/src/panel/README.zh-CN.md b/src/panel/README.zh-CN.md index 1d7e9c877..77d6d9ba8 100644 --- a/src/panel/README.zh-CN.md +++ b/src/panel/README.zh-CN.md @@ -1,5 +1,9 @@ # Panel 面板 +### 废弃提示 + +由于使用场景有限,Panel 组件将在 3.0 版本中废弃,请直接使用 Cell 和 Button 组件代替 + ### 引入 ```js diff --git a/src/switch-cell/README.zh-CN.md b/src/switch-cell/README.zh-CN.md index 31175dd98..d91c3cd58 100644 --- a/src/switch-cell/README.zh-CN.md +++ b/src/switch-cell/README.zh-CN.md @@ -2,7 +2,15 @@ ### 废弃提示 -SwitchCell 组件将在 3.0 版本中废弃,请直接使用 Cell 和 Switch 组件代替 +SwitchCell 组件将在 3.0 版本中废弃,请直接使用 Cell 和 Switch 组件代替,替换写法如下: + +```html + + + +``` ### 引入 diff --git a/vant.config.js b/vant.config.js index 8361d0abb..73d8f62d7 100644 --- a/vant.config.js +++ b/vant.config.js @@ -256,10 +256,6 @@ module.exports = { path: 'notice-bar', title: 'NoticeBar 通知栏', }, - { - path: 'panel', - title: 'Panel 面板', - }, { path: 'progress', title: 'Progress 进度条', @@ -367,6 +363,10 @@ module.exports = { { title: '废弃', items: [ + { + path: 'panel', + title: 'Panel 面板', + }, { path: 'switch-cell', title: 'SwitchCell 开关单元格', @@ -607,10 +607,6 @@ module.exports = { path: 'notice-bar', title: 'NoticeBar', }, - { - path: 'panel', - title: 'Panel', - }, { path: 'progress', title: 'Progress', @@ -718,6 +714,10 @@ module.exports = { { title: 'Deprecated', items: [ + { + path: 'panel', + title: 'Panel', + }, { path: 'switch-cell', title: 'SwitchCell',