diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index d1a55ab4af3aaf4c47275762b4f737dbd35a034b..062860d0bbdae1e1c5c254d1192f478984cf297e 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 {