提交 49b77e18 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

richt-text 示例新增点击 rich-text 组件测试是否可正常触发父节点 click 事件

(cherry picked from commit 4efb78ce)
上级 d69d2ffa
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class="uni-title"> <view class="uni-title">
<text class="uni-subtitle-text">selectable</text> <text class="uni-subtitle-text">selectable</text>
</view> </view>
<view class="text-box"> <view class="text-box" @click="testClick">
<rich-text :selectable="true" <rich-text :selectable="true"
nodes="<span>hello uni-app x!</span><br/><span>uni-app x,终极跨平台方案</span>"></rich-text> nodes="<span>hello uni-app x!</span><br/><span>uni-app x,终极跨平台方案</span>"></rich-text>
</view> </view>
...@@ -24,7 +24,14 @@ ...@@ -24,7 +24,14 @@
</template> </template>
<script> <script>
export default {
methods: {
testClick() {
// 测试点击rich-text是否正常触发父节点点击事件
console.log('testClick')
}
},
}
</script> </script>
<style> <style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册