From 7f868d06d0045fbed7ac346b977203d5847693e3 Mon Sep 17 00:00:00 2001 From: shutao-dc Date: Wed, 30 Aug 2023 18:27:02 +0800 Subject: [PATCH] Update list-view.uvue --- pages/component/list-view/list-view.uvue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index d1a55ab4..062860d0 100644 --- a/pages/component/list-view/list-view.uvue +++ b/pages/component/list-view/list-view.uvue @@ -14,9 +14,17 @@ export default { lower_threshold_input: 50, scroll_top_input: 0, scroll_left_input: 0, - refresher_background_input: "#FFF" + refresher_background_input: "#FFF", + scrollData: [] as Array } }, + onLoad() { + let lists: Array < string > = [] + for (let i = 0; i < 10; i++) { + lists.push("item---"+i) + } + this.scrollData = lists + }, methods: { list_view_click() { console.log("组件被点击时触发") }, list_view_touchstart() { console.log("手指触摸动作开始") }, @@ -57,7 +65,7 @@ export default {