add intro for deprecating switch.

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/8376d648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/8376d648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/8376d648

Branch: refs/heads/master
Commit: 8376d648f8c6e9b92b6a457cbbf92faad066c50e
Parents: 215d884
Author: MrRaindrop <[email protected]>
Authored: Mon Mar 26 15:53:25 2018 +0800
Committer: MrRaindrop <[email protected]>
Committed: Mon Mar 26 15:53:25 2018 +0800

----------------------------------------------------------------------
 source/cn/references/components/switch.md | 1 +
 source/references/components/switch.md    | 2 ++
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/8376d648/source/cn/references/components/switch.md
----------------------------------------------------------------------
diff --git a/source/cn/references/components/switch.md 
b/source/cn/references/components/switch.md
index 79c619e..4c85f73 100644
--- a/source/cn/references/components/switch.md
+++ b/source/cn/references/components/switch.md
@@ -8,6 +8,7 @@ version: 2.1
 
 <span class="weex-version">v0.6.1+</span>
 
+> **废弃:** 
本组件已不推荐业务上使用。由于各端实现不一致且端上定制能力较弱,不适合作为å†
…置组件实现,因此建议开发者通过 weex 
上层能力自行定制该组件.
 
 `<switch>` 是个类似 checkbox 的 UI 
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/8376d648/source/references/components/switch.md
----------------------------------------------------------------------
diff --git a/source/references/components/switch.md 
b/source/references/components/switch.md
index 31daba5..bda02a0 100644
--- a/source/references/components/switch.md
+++ b/source/references/components/switch.md
@@ -8,6 +8,8 @@ version: 2.1
 
 <span class="weex-version">v0.6.1+</span>
 
+> **deprecated:** This built-in component will be deprecated soon. There're 
some reasons for this deprecation, such as the inconsistency of user experience 
on different ends, and the component's appearance sometimes being not as 
expected. Therefore we strongly suggest developers build this component as a 
customized component using weex's DSL and its rendering ability.
+
 `<switch>` is a checkbox-like UI component.
 
 > **Note:** The appearance of switch component is a bit of different in three 
 > ends (iOS, Android, Web) in consideration of different platform styles.

Reply via email to