提交 a81052d8 编写于 作者: shutao-dc's avatar shutao-dc

update list-view-multiplex.uvue

上级 b52a448d
<template> <template>
<list-view id="listview" style="flex: 1;" show-scrollbar=false @scrolltolower="onScrollTolower"> <list-view id="listview" style="flex: 1;" show-scrollbar=false @scrolltolower="onScrollTolower">
<list-item v-for="index in item_count" class="item"> <list-item v-for="index in item_count" class="item" @click="itemClick(index)">
<text >item-------<text>{{index}}</text></text> <text >item-------<text>{{index}}</text></text>
</list-item> </list-item>
</list-view> </list-view>
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
//用于自动化测试 //用于自动化测试
listViewScrollByY(y : number) { listViewScrollByY(y : number) {
this.listViewElement?.scrollBy(0, y) this.listViewElement?.scrollBy(0, y)
},
itemClick(index: number) {
console.log("itemTextClick---"+index)
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册