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.
