From 824c1828d65b48b5e4ed295700bc071da0796617 Mon Sep 17 00:00:00 2001
From: zhenyuWang <13641039885@163.com>
Date: Thu, 17 Aug 2023 21:57:33 +0800
Subject: [PATCH] feat(component): general event
---
pages.json | 15 +-
.../general-event/general-event.uvue | 169 ++++++++++++++++++
pages/tabBar/component.uvue | 4 +-
3 files changed, 183 insertions(+), 5 deletions(-)
create mode 100644 pages/component/general-event/general-event.uvue
diff --git a/pages.json b/pages.json
index af875e51..0aaff01e 100644
--- a/pages.json
+++ b/pages.json
@@ -164,6 +164,12 @@
"navigationBarTitleText": "redirectPage"
}
},
+ {
+ "path": "pages/component/general-event/general-event",
+ "style": {
+ "navigationBarTitleText": "general-event"
+ }
+ },
{
"path": "pages/tabBar/API",
"style": {
@@ -729,7 +735,8 @@
"navigationBarTitleText": "日历",
"enablePullDownRefresh": false
}
- }, {
+ },
+ {
"path": "pages/template/custom-refresher/custom-refresher",
"style": {
"navigationBarTitleText": "自定义下拉刷新",
@@ -742,13 +749,15 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
- }, {
+ },
+ {
"path": "pages/template/half-screen/half-screen",
"style": {
"navigationBarTitleText": "半屏弹窗",
"enablePullDownRefresh": false
}
- }, {
+ },
+ {
"path": "pages/template/long-list/long-list",
"style": {
"navigationBarTitleText": "复杂长列表",
diff --git a/pages/component/general-event/general-event.uvue b/pages/component/general-event/general-event.uvue
new file mode 100644
index 00000000..41d5df12
--- /dev/null
+++ b/pages/component/general-event/general-event.uvue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+ click Event:
+ x: {{ clickEvent!.x }}, y: {{ clickEvent!.y }}
+
+
+ touchStart Event:
+ touches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+ changedTouches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+
+
+ touchMove Event:
+ touches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+ changedTouches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+
+
+ touchEnd Event:
+ touches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+ changedTouches:
+
+ touch[{{ index }}]:
+ pageX: {{ touch.pageX }}, pageY: {{ touch.pageY }}
+ clientX: {{ touch.clientX }}, clientY: {{ touch.clientY }}
+ screenX: {{ touch.screenX }}, screenY: {{ touch.screenY }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue
index a805cb53..69335209 100644
--- a/pages/tabBar/component.uvue
+++ b/pages/tabBar/component.uvue
@@ -272,8 +272,8 @@ export default {
},
{
name: '通用事件',
- url: 'general-event',
- enable: false,
+ url: '/pages/component/general-event/general-event',
+ enable: true,
},
] as Page[],
},
--
GitLab