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

[incubator-weex-site] branch master updated: Update richtext.md

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

moshen 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 7be37cc  Update richtext.md
     new c7d4182  Merge pull request #362 from sunshl/patch-3
7be37cc is described below

commit 7be37cce765ba0141f42cde7a849d291c8c34c4d
Author: sunshl <su...@163.com>
AuthorDate: Wed Mar 27 20:46:23 2019 +0800

    Update richtext.md
    
    Fire event when span is clicked which is in an a-label of a richtext component.
---
 docs/zh/docs/components/richtext.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/zh/docs/components/richtext.md b/docs/zh/docs/components/richtext.md
index 5ea9335..a0da36d 100644
--- a/docs/zh/docs/components/richtext.md
+++ b/docs/zh/docs/components/richtext.md
@@ -68,7 +68,8 @@
    * 没有任何父节点是 `a`
    * 如果第二个条件不满足,Weex 会尝试打开 `a` 标签指定的链接。
    * `img` 的 **pseudo-ref** 会作为参数传回来。
+   * `span`标签被点击时,如果满足此条件: 所在的`a`标签的href被指定为"click://",并且设置了pseudo-ref, 则itemclick事件会被触发,并且携带pseudo-ref的值。[示例](http://editor.weex.io/p/sunshl/Contribute/commit/b21e1133830b48767c6d00d712e415b2)
 
 ## 示例
 
-[示例](http://dotwe.org/vue/f748b0cee3991522a66d4376b66a4f2a)
\ No newline at end of file
+[示例](http://dotwe.org/vue/f748b0cee3991522a66d4376b66a4f2a)