From 3a160a1793419a2d7e0f0d545c9f51f595441adb Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 22 Mar 2024 17:21:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E8=A1=8C=E5=AE=9E=E7=8E=B0=E9=95=BF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 8 ++ pages/tabBar/template.uvue | 69 ++++++----- .../custom-long-list/custom-list-item.uvue | 36 ++++++ .../custom-long-list/custom-list-view.uvue | 115 ++++++++++++++++++ .../custom-long-list/custom-long-list.uvue | 52 ++++++++ 5 files changed, 249 insertions(+), 31 deletions(-) create mode 100644 pages/template/custom-long-list/custom-list-item.uvue create mode 100644 pages/template/custom-long-list/custom-list-view.uvue create mode 100644 pages/template/custom-long-list/custom-long-list.uvue diff --git a/pages.json b/pages.json index b69afe18..5a972ca5 100644 --- a/pages.json +++ b/pages.json @@ -1270,6 +1270,14 @@ "navigationBarTitleText": "ad", "backgroundColor": "#F8F8F8" } + }, + { + "path" : "pages/template/custom-long-list/custom-long-list", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } // #endif ], diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 33360581..276ab8ee 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -65,18 +65,18 @@ { name: '顶部搜索框随时下移长列表', url: 'long-list' - }, + }, // #ifdef APP-ANDROID || WEB { name: '顶部banner长列表', url: 'long-list2' - }, - // #endif - // #ifdef APP-IOS - { - name: '顶部banner长列表', - url: 'long-list-nested' - }, + }, + // #endif + // #ifdef APP-IOS + { + name: '顶部banner长列表', + url: 'long-list-nested' + }, // #endif ] as Page[], }, @@ -110,21 +110,28 @@ }, ] as Page[], }, - // #ifdef APP + { + id: 'custom-long-list', + url: 'custom-long-list', + name: '自行实现长列表组件', + open: false, + pages: [] as Page[], + }, + // #ifdef APP { id: 'custom-refresher', url: 'custom-refresher', name: '自定义下拉刷新', open: false, pages: [] as Page[], - }, - { - id: 'pull-zoom-image', - url: 'pull-zoom-image', - name: '下拉缩放顶部封面图', - open: false, - pages: [] as Page[], - }, + }, + { + id: 'pull-zoom-image', + url: 'pull-zoom-image', + name: '下拉缩放顶部封面图', + open: false, + pages: [] as Page[], + }, // #endif { id: 'swiper-vertical-video', @@ -132,7 +139,7 @@ name: '竖滑视频', open: false, pages: [] as Page[], - }, + }, // #ifdef APP { id: 'scroll-sticky', @@ -140,7 +147,7 @@ name: 'scroll-view自定义滚动吸顶', open: false, pages: [] as Page[], - }, + }, // #endif { id: 'half-screen', @@ -170,7 +177,7 @@ open: false, enable: true, pages: [] as Page[], - }, + }, // #ifdef APP { id: 'calendar', @@ -190,16 +197,16 @@ name: '分享示例', open: false, pages: [] as Page[], - }, - // #endif - // #ifdef WEB - { - id: 'browser-canvas', - url: 'browser-canvas', - name: '如何使用浏览器 canvas', - open: false, - pages: [] as Page[], - }, + }, + // #endif + // #ifdef WEB + { + id: 'browser-canvas', + url: 'browser-canvas', + name: '如何使用浏览器 canvas', + open: false, + pages: [] as Page[], + }, // #endif ] as ListItem[], arrowUpIcon: '/static/icons/arrow-up.png', @@ -244,4 +251,4 @@ }, }, } - + diff --git a/pages/template/custom-long-list/custom-list-item.uvue b/pages/template/custom-long-list/custom-list-item.uvue new file mode 100644 index 00000000..1bb145b4 --- /dev/null +++ b/pages/template/custom-long-list/custom-list-item.uvue @@ -0,0 +1,36 @@ + + + + + diff --git a/pages/template/custom-long-list/custom-list-view.uvue b/pages/template/custom-long-list/custom-list-view.uvue new file mode 100644 index 00000000..731189f6 --- /dev/null +++ b/pages/template/custom-long-list/custom-list-view.uvue @@ -0,0 +1,115 @@ + + + + + diff --git a/pages/template/custom-long-list/custom-long-list.uvue b/pages/template/custom-long-list/custom-long-list.uvue new file mode 100644 index 00000000..dbd1fb00 --- /dev/null +++ b/pages/template/custom-long-list/custom-long-list.uvue @@ -0,0 +1,52 @@ + + + + + -- GitLab