Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
aa4163ff
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
aa4163ff
编写于
3月 03, 2022
作者:
B
bayanxing
提交者:
Gitee
3月 03, 2022
浏览文件
操作
浏览文件
下载
差异文件
!25 add test cases
Merge pull request !25 from zhaojunxia/xts_acts_dev
上级
d2756500
a6e32baa
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
95 addition
and
128 deletion
+95
-128
ace/ace_standard/src/main/js/default/pages/imageAnimator/prop/index.js
...ard/src/main/js/default/pages/imageAnimator/prop/index.js
+19
-54
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.css
.../src/main/js/default/pages/imageAnimator/router/index.css
+2
-2
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.hml
.../src/main/js/default/pages/imageAnimator/router/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.js
...d/src/main/js/default/pages/imageAnimator/router/index.js
+69
-67
ace/ace_standard/src/main/js/default/test/imageAnimatorProps.test.js
...ndard/src/main/js/default/test/imageAnimatorProps.test.js
+4
-4
未找到文件。
ace/ace_standard/src/main/js/default/pages/imageAnimator/prop/index.js
浏览文件 @
aa4163ff
...
...
@@ -73,58 +73,39 @@ export default {
typeFillmodeNone
:
null
,
},
onShow
(){
this
.
getCommonPropValues
();
this
.
getSpecialPropValues
();
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
typeImage
:
this
.
typeImage
,
typeImageNull
:
this
.
typeImageNull
,
typePredecode2
:
this
.
typePredecode2
,
typeIterationInfi
:
this
.
typeIterationInfi
,
typeIteration3
:
this
.
typeIteration3
,
typeReverseNull
:
this
.
typeReverseNull
,
typeReverseTrue
:
this
.
typeReverseTrue
,
typeReverseFalse
:
this
.
typeReverseFalse
,
typeFixedsizeNull
:
this
.
typeFixedsizeNull
,
typeFixedsizeTrue
:
this
.
typeFixedsizeTrue
,
typeFixedsizeFalse
:
this
.
typeFixedsizeFalse
,
typeDurationNull
:
this
.
typeDurationNull
,
typeDuration3
:
this
.
typeDuration3
,
typeDuration6
:
this
.
typeDuration6
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
typeImage
:
this
.
typeImage
,
typeImageNull
:
this
.
typeImageNull
,
typePredecode2
:
this
.
typePredecode2
,
typeIterationInfi
:
this
.
typeIterationInfi
,
typeIteration3
:
this
.
typeIteration3
,
typeReverseNull
:
this
.
typeReverseNull
,
typeReverseTrue
:
this
.
typeReverseTrue
,
typeReverseFalse
:
this
.
typeReverseFalse
,
typeFixedsizeNull
:
this
.
typeFixedsizeNull
,
typeFixedsizeTrue
:
this
.
typeFixedsizeTrue
,
typeFixedsizeFalse
:
this
.
typeFixedsizeFalse
,
typeDurationNull
:
this
.
typeDurationNull
,
typeDuration3
:
this
.
typeDuration3
,
typeDuration6
:
this
.
typeDuration6
,
typeFillmodeNull
:
this
.
typeFillmodeNull
,
typeFillmodeForwards
:
this
.
typeFillmodeForwards
,
typeFillmodeNone
:
this
.
typeFillmodeNone
,
typeFillmodeForwards
:
this
.
typeFillmodeForwards
,
typeFillmodeNone
:
this
.
typeFillmodeNone
,
}
},
...
...
@@ -180,19 +161,3 @@ export default {
this
.
typeFillmodeNone
=
this
.
$element
(
"
typeFillmodeNone
"
).
getInspector
()
}
}
/*
* typeImage : null,
typePredecode0 : null,
typePredecode2 : null,
typeIterationInfi : null,
typeIteration3 : null,
typeReverseTrue : null,
typeReverseFalse : null,
typeFixedsizeTrue : null,
typeFixedsizeFalse : null,
typeDuration3 : null,
typeDuration6 : null,
typeFillmodeForwards : null,
typeFillmodeNone : null,
*/
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.css
浏览文件 @
aa4163ff
...
...
@@ -411,11 +411,11 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access
ibility
-container
{
.access-container
{
flex-direction
:
column
;
}
.access
ibility
1
{
.access1
{
height
:
20px
;
background-color
:
#321124
;
margin
:
5px
;
...
...
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.hml
浏览文件 @
aa4163ff
...
...
@@ -213,7 +213,7 @@
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<div class="access
ibility
-container">
<div class="access-container">
<text class="title">
无障碍
</text>
...
...
ace/ace_standard/src/main/js/default/pages/imageAnimator/router/index.js
浏览文件 @
aa4163ff
...
...
@@ -13,6 +13,74 @@
* limitations under the License.
*/
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:
{
...
...
@@ -383,73 +451,7 @@ export default {
functionTest3
(
event
){
var
function3
=
this
.
$element
(
'
function3
'
);
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
var
animation
=
function3
.
animate
(
frames
,
options
);
animation
.
play
()
...
...
ace/ace_standard/src/main/js/default/test/imageAnimatorProps.test.js
浏览文件 @
aa4163ff
...
...
@@ -303,8 +303,8 @@ describe('imageAnimatorPropsJsTest', function () {
expect
(
obj
.
$type
).
assertEqual
(
'
image-animator
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataProp
'
)
expect
(
obj
.
$attrs
.
data
imageAnimator
).
assertEqual
(
undefined
);
console
.
info
(
"
[imageAnimatorProps] get data
imageAnimator value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
dataimageAnimator
));
expect
(
obj
.
$attrs
.
data
).
assertEqual
(
undefined
);
console
.
info
(
"
[imageAnimatorProps] get data
value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
data
));
done
();
});
...
...
@@ -323,8 +323,8 @@ describe('imageAnimatorPropsJsTest', function () {
expect
(
obj
.
$type
).
assertEqual
(
'
image-animator
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataPropNone
'
)
expect
(
obj
.
$attrs
.
data
imageAnimator
).
assertEqual
(
undefined
)
console
.
info
(
"
[imageAnimatorProps] get data
imageAnimator value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
dataimageAnimator
));
expect
(
obj
.
$attrs
.
data
).
assertEqual
(
undefined
)
console
.
info
(
"
[imageAnimatorProps] get data
value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
data
));
done
();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录