Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
22d5663f
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6006
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
22d5663f
编写于
7月 01, 2024
作者:
DCloud-WZF
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 调整部分示例页面路径
上级
213988d9
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
320 addition
and
262 deletion
+320
-262
pages.json
pages.json
+7
-7
pages/component/public-events/public-events.test.js
pages/component/public-events/public-events.test.js
+1
-1
pages/component/public-events/public-events.uvue
pages/component/public-events/public-events.uvue
+303
-245
pages/component/public-events/touch-events.uvue
pages/component/public-events/touch-events.uvue
+0
-0
pages/component/public-events/transition-events.test.js
pages/component/public-events/transition-events.test.js
+1
-1
pages/component/public-events/transition-events.uvue
pages/component/public-events/transition-events.uvue
+0
-0
pages/component/public-properties/public-properties.test.js
pages/component/public-properties/public-properties.test.js
+1
-1
pages/component/public-properties/public-properties.uvue
pages/component/public-properties/public-properties.uvue
+2
-2
pages/pages.test.js
pages/pages.test.js
+5
-5
未找到文件。
pages.json
浏览文件 @
22d5663f
...
...
@@ -314,27 +314,27 @@
}
},
{
"path"
:
"pages/component/
general-attribute/general-attribute
"
,
"path"
:
"pages/component/
public-properties/public-properties
"
,
"style"
:
{
"navigationBarTitleText"
:
"
general-attribute
"
"navigationBarTitleText"
:
"
public-properties
"
}
},
{
"path"
:
"pages/component/
general-event/general-event
"
,
"path"
:
"pages/component/
public-events/public-events
"
,
"style"
:
{
"navigationBarTitleText"
:
"
general-event
"
"navigationBarTitleText"
:
"
public-events
"
}
},
{
"path"
:
"pages/component/
general-event/transition-event
"
,
"path"
:
"pages/component/
public-events/transition-events
"
,
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
}
},
{
"path"
:
"pages/component/
general-event/touch-event
"
,
"path"
:
"pages/component/
public-events/touch-events
"
,
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
"navigationBarTitleText"
:
"touch-event
s
"
}
},
{
...
...
pages/component/
general-event/general-event
.test.js
→
pages/component/
public-events/public-events
.test.js
浏览文件 @
22d5663f
const
PAGE_PATH
=
'
/pages/component/
general-event/general-event
'
const
PAGE_PATH
=
'
/pages/component/
public-events/public-events
'
describe
(
'
event trigger
'
,
()
=>
{
const
platformInfo
=
process
.
env
.
uniTestPlatformInfo
.
toLocaleLowerCase
()
...
...
pages/component/
general-event/general-event
.uvue
→
pages/component/
public-events/public-events
.uvue
浏览文件 @
22d5663f
...
...
@@ -14,7 +14,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-start-touch-identifier">{{touch.identifier}}</text>
<text id="touch-start-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -46,7 +48,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-start-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-start-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -58,19 +62,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-start-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-start-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-start-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-start-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-start-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-start-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-start-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-start-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
...
...
@@ -81,7 +93,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-cancel-touch-identifier">{{touch.identifier}}</text>
<text id="touch-cancel-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -113,31 +127,45 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-cancel-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-cancel-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
<text id="touch-cancel-changed-touch-page-x">{{ touch.pageX }}</text>
<text id="touch-cancel-changed-touch-page-x">{{
touch.pageX
}}</text>
</view>
<view class="uni-list-cell">
<text>pageY: </text>
<text id="touch-cancel-changed-touch-page-y">{{ touch.pageY }}</text>
<text id="touch-cancel-changed-touch-page-y">{{
touch.pageY
}}</text>
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-cancel-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-cancel-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-cancel-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-cancel-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-cancel-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-cancel-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-cancel-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-cancel-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
...
...
@@ -148,7 +176,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-move-touch-identifier">{{
touch.identifier}}</text>
<text id="touch-move-touch-identifier">{{
touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -180,7 +208,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-move-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-move-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -192,19 +222,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-move-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-move-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-move-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-move-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-move-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-move-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-move-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-move-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
...
...
@@ -216,7 +254,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-end-touch-identifier">{{
touch.identifier}}</text>
<text id="touch-end-touch-identifier">{{
touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -248,7 +286,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="touch-end-changed-touch-identifier">{{touch.identifier}}</text>
<text id="touch-end-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -260,19 +300,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="touch-end-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="touch-end-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="touch-end-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="touch-end-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="touch-end-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="touch-end-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="touch-end-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="touch-end-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
...
...
@@ -284,7 +332,7 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="long-press-touch-identifier">{{
touch.identifier}}</text>
<text id="long-press-touch-identifier">{{
touch.identifier }}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -316,7 +364,9 @@
<text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell">
<text>identifier: </text>
<text id="long-press-changed-touch-identifier">{{touch.identifier}}</text>
<text id="long-press-changed-touch-identifier">{{
touch.identifier
}}</text>
</view>
<view class="uni-list-cell">
<text>pageX: </text>
...
...
@@ -328,19 +378,27 @@
</view>
<view class="uni-list-cell">
<text>clientX: </text>
<text id="long-press-changed-touch-client-x">{{ touch.clientX }}</text>
<text id="long-press-changed-touch-client-x">{{
touch.clientX
}}</text>
</view>
<view class="uni-list-cell">
<text>clientY: </text>
<text id="long-press-changed-touch-client-y">{{ touch.clientY }}</text>
<text id="long-press-changed-touch-client-y">{{
touch.clientY
}}</text>
</view>
<view class="uni-list-cell">
<text>screenX: </text>
<text id="long-press-changed-touch-screen-x">{{ touch.screenX }}</text>
<text id="long-press-changed-touch-screen-x">{{
touch.screenX
}}</text>
</view>
<view class="uni-list-cell">
<text>screenY: </text>
<text id="long-press-changed-touch-screen-y">{{ touch.screenY }}</text>
<text id="long-press-changed-touch-screen-y">{{
touch.screenY
}}</text>
</view>
</template>
</view>
...
...
@@ -375,7 +433,7 @@
export default {
data() {
return {
title: '
general-event
',
title: '
public-events
',
touchStartEvent: null as TouchEvent | null,
touchCancelEvent: null as TouchEvent | null,
touchMoveEvent: null as TouchEvent | null,
...
...
pages/component/
general-event/touch-event
.uvue
→
pages/component/
public-events/touch-events
.uvue
浏览文件 @
22d5663f
文件已移动
pages/component/
general-event/transition-event
.test.js
→
pages/component/
public-events/transition-events
.test.js
浏览文件 @
22d5663f
...
...
@@ -3,7 +3,7 @@
describe
(
'
transition event
'
,
()
=>
{
let
page
;
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
'
/pages/component/
general-event/transition-event
'
)
page
=
await
program
.
reLaunch
(
'
/pages/component/
public-events/transition-events
'
)
await
page
.
waitFor
(
3000
);
});
...
...
pages/component/
general-event/transition-event
.uvue
→
pages/component/
public-events/transition-events
.uvue
浏览文件 @
22d5663f
文件已移动
pages/component/
general-attribute/general-attribute
.test.js
→
pages/component/
public-properties/public-properties
.test.js
浏览文件 @
22d5663f
const
PAGE_PATH
=
'
/pages/component/
general-attribute/general-attribute
'
const
PAGE_PATH
=
'
/pages/component/
public-properties/public-properties
'
describe
(
'
general attribute
'
,
()
=>
{
let
page
...
...
pages/component/
general-attribute/general-attribute
.uvue
→
pages/component/
public-properties/public-properties
.uvue
浏览文件 @
22d5663f
...
...
@@ -28,7 +28,7 @@
<text class="btn-inner">{{ validateGeneralAttrText }}</text>
</view>
<view class="btn btn-ref uni-common-mt" @click="changeHeight">
<text class="btn-inner">{{
changeHeightByRefText
}}</text>
<text class="btn-inner">{{
changeHeightByRefText
}}</text>
</view>
<view class="view-class" :hover-class="hoverClass" ref="view-target">
<text class="text">按下 50 ms 后背景变红</text>
...
...
@@ -55,7 +55,7 @@
export default {
data() {
return {
title: '
general-attribute
',
title: '
public-properties
',
generalId: 'general-id',
generalClass: 'general-class',
generalName: 'general-name',
...
...
pages/pages.test.js
浏览文件 @
22d5663f
...
...
@@ -83,10 +83,10 @@ const pages = [
// '/pages/component/unicloud-db/unicloud-db/contacts/detail',
'
/pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom
'
,
// 单独测试例截图
// '/pages/component/
general-attribute/general-attribute
',
'
/pages/component/
general-event/general-event
'
,
'
/pages/component/
general-event/transition-event
'
,
'
/pages/component/
general-event/touch-event
'
,
// '/pages/component/
public-properties/public-properties
',
'
/pages/component/
public-events/public-events
'
,
'
/pages/component/
public-events/transition-events
'
,
'
/pages/component/
public-events/touch-events
'
,
// 单独测试例截图
// '/pages/component/nested-scroll-header/nested-scroll-header',
// 单独测试例截图
...
...
@@ -349,7 +349,7 @@ function getWaitForTagName(pagePath) {
return
'
video
'
}
if
(
pagePath
===
'
/pages/component/
general-event/transition-event
'
||
pagePath
===
'
/pages/component/
public-events/transition-events
'
||
pagePath
===
'
/pages/component/list-view/list-view-refresh
'
||
pagePath
===
'
/pages/API/env/env
'
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录