提交 22d5663f 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor: 调整部分示例页面路径

上级 213988d9
...@@ -314,27 +314,27 @@ ...@@ -314,27 +314,27 @@
} }
}, },
{ {
"path": "pages/component/general-attribute/general-attribute", "path": "pages/component/public-properties/public-properties",
"style": { "style": {
"navigationBarTitleText": "general-attribute" "navigationBarTitleText": "public-properties"
} }
}, },
{ {
"path": "pages/component/general-event/general-event", "path": "pages/component/public-events/public-events",
"style": { "style": {
"navigationBarTitleText": "general-event" "navigationBarTitleText": "public-events"
} }
}, },
{ {
"path": "pages/component/general-event/transition-event", "path": "pages/component/public-events/transition-events",
"style": { "style": {
"navigationBarTitleText": "transitionend事件" "navigationBarTitleText": "transitionend事件"
} }
}, },
{ {
"path": "pages/component/general-event/touch-event", "path": "pages/component/public-events/touch-events",
"style": { "style": {
"navigationBarTitleText": "touch-event" "navigationBarTitleText": "touch-events"
} }
}, },
{ {
......
const PAGE_PATH = '/pages/component/general-event/general-event' const PAGE_PATH = '/pages/component/public-events/public-events'
describe('event trigger', () => { describe('event trigger', () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
......
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <text>identifier: </text>
<text id="touch-start-touch-identifier">{{touch.identifier}}</text> <text id="touch-start-touch-identifier">{{
touch.identifier
}}</text>
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -46,7 +48,9 @@ ...@@ -46,7 +48,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -58,19 +62,27 @@ ...@@ -58,19 +62,27 @@
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenY: </text> <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> </view>
</template> </template>
</view> </view>
...@@ -81,7 +93,9 @@ ...@@ -81,7 +93,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <text>identifier: </text>
<text id="touch-cancel-touch-identifier">{{touch.identifier}}</text> <text id="touch-cancel-touch-identifier">{{
touch.identifier
}}</text>
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -113,31 +127,45 @@ ...@@ -113,31 +127,45 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenY: </text> <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> </view>
</template> </template>
</view> </view>
...@@ -148,7 +176,7 @@ ...@@ -148,7 +176,7 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <text>identifier: </text>
<text id="touch-move-touch-identifier">{{touch.identifier}}</text> <text id="touch-move-touch-identifier">{{ touch.identifier }}</text>
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -180,7 +208,9 @@ ...@@ -180,7 +208,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -192,19 +222,27 @@ ...@@ -192,19 +222,27 @@
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenY: </text> <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> </view>
</template> </template>
</view> </view>
...@@ -216,7 +254,7 @@ ...@@ -216,7 +254,7 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <text>identifier: </text>
<text id="touch-end-touch-identifier">{{touch.identifier}}</text> <text id="touch-end-touch-identifier">{{ touch.identifier }}</text>
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -248,7 +286,9 @@ ...@@ -248,7 +286,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -260,19 +300,27 @@ ...@@ -260,19 +300,27 @@
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenY: </text> <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> </view>
</template> </template>
</view> </view>
...@@ -284,7 +332,7 @@ ...@@ -284,7 +332,7 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <text>identifier: </text>
<text id="long-press-touch-identifier">{{touch.identifier}}</text> <text id="long-press-touch-identifier">{{ touch.identifier }}</text>
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -316,7 +364,9 @@ ...@@ -316,7 +364,9 @@
<text class="title3">touch[{{ index }}]:</text> <text class="title3">touch[{{ index }}]:</text>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>identifier: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>pageX: </text> <text>pageX: </text>
...@@ -328,19 +378,27 @@ ...@@ -328,19 +378,27 @@
</view> </view>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>clientY: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenX: </text> <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>
<view class="uni-list-cell"> <view class="uni-list-cell">
<text>screenY: </text> <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> </view>
</template> </template>
</view> </view>
...@@ -375,7 +433,7 @@ ...@@ -375,7 +433,7 @@
export default { export default {
data() { data() {
return { return {
title: 'general-event', title: 'public-events',
touchStartEvent: null as TouchEvent | null, touchStartEvent: null as TouchEvent | null,
touchCancelEvent: null as TouchEvent | null, touchCancelEvent: null as TouchEvent | null,
touchMoveEvent: null as TouchEvent | null, touchMoveEvent: null as TouchEvent | null,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
describe('transition event', () => { describe('transition event', () => {
let page; let page;
beforeAll(async () => { 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); await page.waitFor(3000);
}); });
......
const PAGE_PATH = '/pages/component/general-attribute/general-attribute' const PAGE_PATH = '/pages/component/public-properties/public-properties'
describe('general attribute', () => { describe('general attribute', () => {
let page let page
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<text class="btn-inner">{{ validateGeneralAttrText }}</text> <text class="btn-inner">{{ validateGeneralAttrText }}</text>
</view> </view>
<view class="btn btn-ref uni-common-mt" @click="changeHeight"> <view class="btn btn-ref uni-common-mt" @click="changeHeight">
<text class="btn-inner">{{changeHeightByRefText}}</text> <text class="btn-inner">{{ changeHeightByRefText }}</text>
</view> </view>
<view class="view-class" :hover-class="hoverClass" ref="view-target"> <view class="view-class" :hover-class="hoverClass" ref="view-target">
<text class="text">按下 50 ms 后背景变红</text> <text class="text">按下 50 ms 后背景变红</text>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
export default { export default {
data() { data() {
return { return {
title: 'general-attribute', title: 'public-properties',
generalId: 'general-id', generalId: 'general-id',
generalClass: 'general-class', generalClass: 'general-class',
generalName: 'general-name', generalName: 'general-name',
......
...@@ -83,10 +83,10 @@ const pages = [ ...@@ -83,10 +83,10 @@ const pages = [
// '/pages/component/unicloud-db/unicloud-db/contacts/detail', // '/pages/component/unicloud-db/unicloud-db/contacts/detail',
'/pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom', '/pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom',
// 单独测试例截图 // 单独测试例截图
// '/pages/component/general-attribute/general-attribute', // '/pages/component/public-properties/public-properties',
'/pages/component/general-event/general-event', '/pages/component/public-events/public-events',
'/pages/component/general-event/transition-event', '/pages/component/public-events/transition-events',
'/pages/component/general-event/touch-event', '/pages/component/public-events/touch-events',
// 单独测试例截图 // 单独测试例截图
// '/pages/component/nested-scroll-header/nested-scroll-header', // '/pages/component/nested-scroll-header/nested-scroll-header',
// 单独测试例截图 // 单独测试例截图
...@@ -349,7 +349,7 @@ function getWaitForTagName(pagePath) { ...@@ -349,7 +349,7 @@ function getWaitForTagName(pagePath) {
return 'video' return 'video'
} }
if ( 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/component/list-view/list-view-refresh' ||
pagePath === '/pages/API/env/env' pagePath === '/pages/API/env/env'
) { ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册