You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/04/02 12:03:45 UTC

[incubator-weex-site] branch master updated: Update richtext.md (#371)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 469f523  Update richtext.md (#371)
469f523 is described below

commit 469f523cc5320b3e76923b6029a8aab1c61ef818
Author: sunshl <su...@gmail.com>
AuthorDate: Tue Apr 2 20:03:40 2019 +0800

    Update richtext.md (#371)
---
 docs/zh/docs/components/richtext.md | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/docs/zh/docs/components/richtext.md b/docs/zh/docs/components/richtext.md
index a0da36d..1092a57 100644
--- a/docs/zh/docs/components/richtext.md
+++ b/docs/zh/docs/components/richtext.md
@@ -63,12 +63,15 @@
 ## 事件
 
 * **通用事件** 支持所有[通用事件](../events/common-events.html)。
-* **itemclick**. 触发时机
-   * `img` 被点击
-   * 没有任何父节点是 `a`
-   * 如果第二个条件不满足,Weex 会尝试打开 `a` 标签指定的链接。
-   * `img` 的 **pseudo-ref** 会作为参数传回来。
-   * `span`标签被点击时,如果满足此条件: 所在的`a`标签的href被指定为"click://",并且设置了pseudo-ref, 则itemclick事件会被触发,并且携带pseudo-ref的值。[示例](http://editor.weex.io/p/sunshl/Contribute/commit/b21e1133830b48767c6d00d712e415b2)
+* **itemclick**. 只有`img`和`span`标签可能触发,触发时机是: 
+   * `img`标签:
+      * `img`被点击时没有任何父节点是 `a`
+      * 如果第一个条件不满足,Weex 会尝试打开 `a` 标签指定的链接。
+      * `img` 的 **pseudo-ref** 会作为参数传回来。
+   * `span`标签:
+      * `a`标签中的`span`被点击
+      * 并且所在的`a`标签的href被指定为"click://"(这个条件iOS端强要求,Android端并不要求)
+      * a标签设置了pseudo-ref。此时itemclick事件会被触发,并且携带pseudo-ref的值。[示例](http://editor.weex.io/p/sunshl/Contribute/commit/b21e1133830b48767c6d00d712e415b2)
 
 ## 示例