From bc98ba1421fb9d86660d5388459dae9497647f2e Mon Sep 17 00:00:00 2001 From: hdx Date: Thu, 27 Jun 2024 15:36:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(canvas):=20Web=20=E5=B9=B3=E5=8F=B0=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20canvas/ball=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 11 +- pages/component/canvas/ball.uvue | 184 +++++ pages/component/canvas/canvas.uvue | 1068 ++++++++++++++++++++++++---- pages/tabBar/component.uvue | 9 +- 4 files changed, 1114 insertions(+), 158 deletions(-) create mode 100644 pages/component/canvas/ball.uvue diff --git a/pages.json b/pages.json index 508a72b7..803ee62d 100644 --- a/pages.json +++ b/pages.json @@ -422,12 +422,19 @@ "enablePullDownRefresh": false } }, - // #ifdef APP-ANDROID + // #ifdef WEB { "path" : "pages/component/canvas/canvas", "style" : { - "navigationBarTitleText" : "" + "navigationBarTitleText" : "canvas" + } + }, + { + "path" : "pages/component/canvas/ball", + "style" : + { + "navigationBarTitleText" : "ball" } }, // #endif diff --git a/pages/component/canvas/ball.uvue b/pages/component/canvas/ball.uvue new file mode 100644 index 00000000..79dc53a9 --- /dev/null +++ b/pages/component/canvas/ball.uvue @@ -0,0 +1,184 @@ + + + + + diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index 08700a02..34e44e9d 100644 --- a/pages/component/canvas/canvas.uvue +++ b/pages/component/canvas/canvas.uvue @@ -1,162 +1,922 @@ - - diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue index 1cbd1946..08ec7b59 100644 --- a/pages/tabBar/component.uvue +++ b/pages/tabBar/component.uvue @@ -194,13 +194,18 @@ ] as Page[] }, // #endif - // #ifdef APP-ANDROID + // #ifdef WEB { id: 'canvas', name: '画布', pages: [ { - name: 'canvas' + name: 'canvas', + url: '/pages/component/canvas/canvas', + }, + { + name: 'ball', + url: '/pages/component/canvas/ball', } ] as Page[] }, -- GitLab