You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/03/26 11:18:35 UTC

[6/8] incubator-weex-site git commit: deprecate switch component (#119)

deprecate switch component (#119)


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/baefb102
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/baefb102
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/baefb102

Branch: refs/heads/master
Commit: baefb10253655992fca4dd086d4f49cda206133d
Parents: 38839e7 8376d64
Author: Hanks <zh...@gmail.com>
Authored: Mon Mar 26 19:10:24 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Mon Mar 26 19:10:24 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/baefb102/source/cn/references/components/switch.md
----------------------------------------------------------------------
diff --cc source/cn/references/components/switch.md
index 3d235de,4c85f73..65e24d7
--- a/source/cn/references/components/switch.md
+++ b/source/cn/references/components/switch.md
@@@ -1,15 -1,16 +1,16 @@@
  ---
- title: <switch>
+ title: <switch> (已废弃)
  type: references
  group: 内置组件
 -order: 8.12
 +order: 8.22
  version: 2.1
  ---
  
  <span class="weex-version">v0.6.1+</span>
  
+ > **废弃:** 本组件已不推荐业务上使用。由于各端实现不一致且端上定制能力较弱,不适合作为内置组件实现,因此建议开发者通过 weex 上层能力自行定制该组件.
  
 -`<switch>` 是个类似 checkbox 的 UI 
 +`<switch>` 是个类似 checkbox 的 UI
  
  > **注意:** switch 组件的外观在三个平台(iOS, Android, Web)稍有不同,这和各平台的 UI 风格有关。
  

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/baefb102/source/references/components/switch.md
----------------------------------------------------------------------
diff --cc source/references/components/switch.md
index 0263732,bda02a0..5296c9a
--- a/source/references/components/switch.md
+++ b/source/references/components/switch.md
@@@ -1,8 -1,8 +1,8 @@@
  ---
- title: <switch>
+ title: <switch> (deprecated)
  type: references
  group: Build-in Components
 -order: 8.11
 +order: 8.22
  version: 2.1
  ---