Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
ae92c8a1
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
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看板
提交
ae92c8a1
编写于
1月 04, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 调整示例与测试例适配web端
上级
14cd48c9
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
22 addition
and
16 deletion
+22
-16
pages/API/request/request.test.js
pages/API/request/request.test.js
+15
-12
pages/CSS/layout/position.uvue
pages/CSS/layout/position.uvue
+3
-0
pages/CSS/transform/rotate.uvue
pages/CSS/transform/rotate.uvue
+1
-1
pages/CSS/transform/scale.uvue
pages/CSS/transform/scale.uvue
+1
-1
pages/CSS/transform/translate.uvue
pages/CSS/transform/translate.uvue
+1
-1
pages/CSS/transition/transition.uvue
pages/CSS/transition/transition.uvue
+1
-1
未找到文件。
pages/API/request/request.test.js
浏览文件 @
ae92c8a1
...
@@ -79,6 +79,8 @@ describe('ExtApi-Request', () => {
...
@@ -79,6 +79,8 @@ describe('ExtApi-Request', () => {
await
request
(
page
,
'
HEAD
'
);
await
request
(
page
,
'
HEAD
'
);
});
});
if
(
process
.
env
.
uniTestPlatformInfo
.
indexOf
(
'
web
'
)
===
-
1
)
{
it
(
'
Check Set Cookie
'
,
async
()
=>
{
it
(
'
Check Set Cookie
'
,
async
()
=>
{
res
=
await
page
.
callMethod
(
'
jest_set_cookie
'
)
res
=
await
page
.
callMethod
(
'
jest_set_cookie
'
)
await
page
.
waitFor
(
500
);
await
page
.
waitFor
(
500
);
...
@@ -91,4 +93,5 @@ describe('ExtApi-Request', () => {
...
@@ -91,4 +93,5 @@ describe('ExtApi-Request', () => {
res
=
await
page
.
data
(
'
jest_result
'
);
res
=
await
page
.
data
(
'
jest_result
'
);
expect
(
res
).
toBe
(
true
)
expect
(
res
).
toBe
(
true
)
});
});
}
});
});
pages/CSS/layout/position.uvue
浏览文件 @
ae92c8a1
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<text>position: relative</text>
<text>position: relative</text>
<scroll-view
<scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray"
style="width: 500rpx; height: 500rpx; background-color: gray"
scroll-y="true"
>
>
<view
<view
style="width: 100rpx; height: 100rpx; background-color: red"
style="width: 100rpx; height: 100rpx; background-color: red"
...
@@ -42,6 +43,7 @@
...
@@ -42,6 +43,7 @@
<text>position: absolute</text>
<text>position: absolute</text>
<scroll-view
<scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray"
style="width: 500rpx; height: 500rpx; background-color: gray"
scroll-y="true"
>
>
<view
<view
style="width: 100rpx; height: 100rpx; background-color: red"
style="width: 100rpx; height: 100rpx; background-color: red"
...
@@ -77,6 +79,7 @@
...
@@ -77,6 +79,7 @@
<text>position: fixed</text>
<text>position: fixed</text>
<scroll-view
<scroll-view
style="width: 500rpx; height: 500rpx; background-color: gray"
style="width: 500rpx; height: 500rpx; background-color: gray"
scroll-y="true"
>
>
<view
<view
style="width: 100rpx; height: 100rpx; background-color: red"
style="width: 100rpx; height: 100rpx; background-color: red"
...
...
pages/CSS/transform/rotate.uvue
浏览文件 @
ae92c8a1
<template>
<template>
<scroll-view class="page">
<scroll-view class="page"
scroll-y="true"
>
<view class="trace">
<view class="trace">
<view class="base reserve">
<view class="base reserve">
...
...
pages/CSS/transform/scale.uvue
浏览文件 @
ae92c8a1
<template>
<template>
<scroll-view class="page">
<scroll-view class="page"
scroll-y="true"
>
<view class="trace">
<view class="trace">
<view class="base reserve">
<view class="base reserve">
<text class="reserve-text">scaleX(0.6)</text>
<text class="reserve-text">scaleX(0.6)</text>
...
...
pages/CSS/transform/translate.uvue
浏览文件 @
ae92c8a1
<template>
<template>
<scroll-view class="page">
<scroll-view class="page"
scroll-y="true"
>
<view class="trace">
<view class="trace">
<view class="base reserve">
<view class="base reserve">
<text class="reserve-text">translateX(80%)</text>
<text class="reserve-text">translateX(80%)</text>
...
...
pages/CSS/transition/transition.uvue
浏览文件 @
ae92c8a1
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
propertyChangeBackground() {
propertyChangeBackground() {
if (!this.isSetTransition) {
if (!this.isSetTransition) {
this.propertyStyleBackground?.style?.setProperty("transition-property", "background-color")
this.propertyStyleBackground?.style?.setProperty("transition-property", "background-color")
this.propertyStyleBackground?.style?.setProperty("transition-duration", "1000")
this.propertyStyleBackground?.style?.setProperty("transition-duration", "1000
ms
")
this.isSetTransition = true
this.isSetTransition = true
}
}
this.propertyStyleBackground?.style?.setProperty("background-color", this.isTransitionpropertystyleBackground
this.propertyStyleBackground?.style?.setProperty("background-color", this.isTransitionpropertystyleBackground
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录