apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

[iOS] richtext标签-同时设置多个a标签时点击事件不触发 #3299

Open zdpdsy opened 3 years ago

zdpdsy commented 3 years ago

测试代码如下:

<template>
    <div>
        <richtext @itemclick="listener" style="color:red;text-overflow:ellipsis">
            <a pseudo-ref="21"></a>
<a pseudo-ref="22"></a>
<a pseudo-ref="23"></a>
        </richtext>
    </div>
</template>

<script>
    module.exports = {
        methods: {
            listener: function (foo) {
                var modal = weex.requireModule('modal');
                modal.toast({
                  message: 'My pseudoRef is '+foo.pseudoRef,
                  duration: 3
                });
            }
        }
    }
</script>

<style>
.logo{width: 50;height: 50;}
.title{font-size:42; color: #FF5400;}
</style>