提交 44e43bb8 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

更新 richt-text 示例,添加 click 事件测试

上级 9e52152e
......@@ -4,8 +4,8 @@
<!-- #endif -->
<view>
<page-head title="rich-text-complex"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<rich-text :nodes="htmlString" @itemclick="itemClick"></rich-text>
<view class="uni-padding-wrap uni-common-mt" @click="testClick('触发父 view click 事件')">
<rich-text :nodes="htmlString" @itemclick="itemClick" @click="testClick('触发 richtext click 事件')"></rich-text>
</view>
</view>
<!-- #ifdef APP -->
......@@ -33,6 +33,10 @@
content:clicktext,
showCancel:false
});
},
testClick(e:string) {
// 测试点击rich-text是否正常触发自身及父节点 click 事件
console.log(e)
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册