Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c689eab2
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看板
提交
c689eab2
编写于
2月 21, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add button attrs testcase
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
c3302091
变更
26
展开全部
隐藏空白更改
内联
并排
Showing
26 changed file
with
4630 addition
and
348 deletion
+4630
-348
ace/ace_standard/src/main/config.json
ace/ace_standard/src/main/config.json
+5
-3
ace/ace_standard/src/main/js/default/pages/button/index.css
ace/ace_standard/src/main/js/default/pages/button/index.css
+0
-78
ace/ace_standard/src/main/js/default/pages/button/index.hml
ace/ace_standard/src/main/js/default/pages/button/index.hml
+0
-46
ace/ace_standard/src/main/js/default/pages/button/index.js
ace/ace_standard/src/main/js/default/pages/button/index.js
+0
-34
ace/ace_standard/src/main/js/default/pages/button/prop/index.css
..._standard/src/main/js/default/pages/button/prop/index.css
+519
-0
ace/ace_standard/src/main/js/default/pages/button/prop/index.hml
..._standard/src/main/js/default/pages/button/prop/index.hml
+238
-0
ace/ace_standard/src/main/js/default/pages/button/prop/index.js
...e_standard/src/main/js/default/pages/button/prop/index.js
+176
-0
ace/ace_standard/src/main/js/default/pages/button/router/index.css
...tandard/src/main/js/default/pages/button/router/index.css
+206
-81
ace/ace_standard/src/main/js/default/pages/button/router/index.hml
...tandard/src/main/js/default/pages/button/router/index.hml
+353
-0
ace/ace_standard/src/main/js/default/pages/button/router/index.js
...standard/src/main/js/default/pages/button/router/index.js
+507
-0
ace/ace_standard/src/main/js/default/pages/button/style/index.css
...standard/src/main/js/default/pages/button/style/index.css
+0
-0
ace/ace_standard/src/main/js/default/pages/button/style/index.hml
...standard/src/main/js/default/pages/button/style/index.hml
+0
-0
ace/ace_standard/src/main/js/default/pages/button/style/index.js
..._standard/src/main/js/default/pages/button/style/index.js
+0
-0
ace/ace_standard/src/main/js/default/pages/div/style/index.css
...ce_standard/src/main/js/default/pages/div/style/index.css
+161
-2
ace/ace_standard/src/main/js/default/pages/div/style/index.hml
...ce_standard/src/main/js/default/pages/div/style/index.hml
+125
-0
ace/ace_standard/src/main/js/default/pages/div/style/index.js
...ace_standard/src/main/js/default/pages/div/style/index.js
+0
-98
ace/ace_standard/src/main/js/default/pages/divider/prop/index.css
...standard/src/main/js/default/pages/divider/prop/index.css
+367
-0
ace/ace_standard/src/main/js/default/pages/divider/prop/index.hml
...standard/src/main/js/default/pages/divider/prop/index.hml
+176
-0
ace/ace_standard/src/main/js/default/pages/divider/prop/index.js
..._standard/src/main/js/default/pages/divider/prop/index.js
+136
-0
ace/ace_standard/src/main/js/default/pages/divider/router/index.css
...andard/src/main/js/default/pages/divider/router/index.css
+313
-0
ace/ace_standard/src/main/js/default/pages/divider/router/index.hml
...andard/src/main/js/default/pages/divider/router/index.hml
+259
-0
ace/ace_standard/src/main/js/default/pages/divider/router/index.js
...tandard/src/main/js/default/pages/divider/router/index.js
+104
-0
ace/ace_standard/src/main/js/default/test/List.test.js
ace/ace_standard/src/main/js/default/test/List.test.js
+1
-0
ace/ace_standard/src/main/js/default/test/buttonProps.test.js
...ace_standard/src/main/js/default/test/buttonProps.test.js
+979
-0
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+4
-4
ace/ace_standard/src/main/js/default/test/divProps.test.js
ace/ace_standard/src/main/js/default/test/divProps.test.js
+1
-2
未找到文件。
ace/ace_standard/src/main/config.json
浏览文件 @
c689eab2
...
...
@@ -53,12 +53,12 @@
"pages/index/index"
,
"pages/routerPush/index"
,
"pages/routerReplace/index"
,
"pages/button/index"
,
"pages/button/
router/
index"
,
"pages/chart/index"
,
"pages/input/index"
,
"pages/slider/index"
,
"pages/text/index"
,
"pages/divider/index"
,
"pages/divider/
router/
index"
,
"pages/image/index"
,
"pages/label/index"
,
"pages/rating/index"
,
...
...
@@ -122,7 +122,9 @@
"pages/textPath/index"
,
"pages/tspan/index"
,
"pages/div/prop/index"
,
"pages/div/style/index"
"pages/div/style/index"
,
"pages/divider/prop/index"
,
"pages/button/prop/index"
],
"name"
:
"default"
,
"window"
:
{
...
...
ace/ace_standard/src/main/js/default/pages/button/index.css
已删除
100644 → 0
浏览文件 @
c3302091
.div-button
{
flex-direction
:
column
;
width
:
100%
;
}
.circleall
{
width
:
90%
;
flex-direction
:
row
;
justify-content
:
space-around
;
margin-left
:
4%
;
}
.circlealls
{
flex-direction
:
row
;
}
.buttons
{
margin-top
:
15px
;
width
:
45%
;
height
:
45px
;
text-align
:
center
;
font-size
:
14px
;
border-radius
:
10px
;
background-color
:
#317aff
;
}
.title
{
font-size
:
13px
;
margin-top
:
60px
;
margin-left
:
20px
;
color
:
grey
;
}
.all
{
flex-direction
:
column
;
align-items
:
center
;
margin-bottom
:
20px
;
}
.oriage
{
background-color
:
#ee8443
;
}
.white
{
opacity
:
0.4
;
}
.icon
{
icon-height
:
30px
;
icon-width
:
30px
;
}
.warn
{
background-color
:
#f55a42
;
}
.circle
{
radius
:
30px
;
icon-width
:
30px
;
icon-height
:
30px
;
margin-left
:
20px
;
margin-top
:
20px
;
background-color
:
#317aff
;
}
.cir
{
background-color
:
#f55a42
;
}
.text
{
text-color
:
#0a59f7
;
font-size
:
17px
;
font-weight
:
600
;
font-family
:
sans-serif
;
font-style
:
normal
;
}
.text1
{
text-color
:
#969696
;
}
.text2
{
text-color
:
#e84026
;
}
.download
{
margin-top
:
15px
;
width
:
88%
;
height
:
45px
;
border-radius
:
50px
;
text-color
:
white
;
background-color
:
#007dff
;
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/button/index.hml
已删除
100644 → 0
浏览文件 @
c3302091
<div class="div-button">
<text class="title">普通按钮</text>
<div class="circleall">
<button class="buttons">确认按钮</button>
<button class="buttons" waiting="true">Loading</button>
</div>
<div class="circleall">
<button class="buttons icon" icon="/common/images/paobu.png" value="跑步" placement="start"></button>
<button class="buttons white">禁用按钮</button>
</div>
<div class="circleall">
<button class="buttons oriage">重置</button>
<button class="buttons warn">告警按钮</button>
</div>
<text class="title">胶囊按钮</text>
<div class="circleall">
<button class="buttons" type="capsule">确认按钮</button>
<button class="buttons" type="capsule" waiting="true">Loading</button>
</div>
<div class="circleall">
<button class="buttons" type="capsule">清除</button>
<button class="buttons white" type="capsule" >禁用按钮</button>
</div>
<div class="circleall">
<button class="buttons oriage" type="capsule">重置</button>
<button class="buttons warn" type="capsule">告警按钮</button>
</div>
<text class="title">圆形按钮</text>
<div class="circlealls">
<button class="circle" type="circle" icon="/common/images/fenleifuben.png">icon按钮</button>
<button class="circle cir" type="circle" icon="/common/images/rest-fill.png">icon按钮</button>
</div>
<text class="title">文本按钮</text>
<div class="circleall">
<button class="text" type="text">文本按钮1</button>
<button class="text text1" type="text">文本按钮2</button>
<button class="text text2" type="text">文本按钮3</button>
</div>
<text class="title">长胶囊按钮</text>
<div class="all">
<button class="download" type="download">下载按钮</button>
<button class="download white" type="download">禁止下载</button>
<button class="download" type="download" id="download-btn"
onclick="setProgress">{{downloadText}}</button>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/button/index.js
已删除
100644 → 0
浏览文件 @
c3302091
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
data
:
{
progress
:
10
,
downloadText
:
"
进度条按钮
"
},
setProgress
(
e
)
{
var
i
=
0
var
set
=
setInterval
(()
=>
{
i
+=
10
this
.
progress
=
i
this
.
downloadText
=
this
.
progress
+
"
%
"
;
this
.
$element
(
'
download-btn
'
).
setProgress
({
progress
:
this
.
progress
});
if
(
this
.
progress
>=
100
){
clearInterval
(
set
)
this
.
downloadText
=
"
完成
"
}
},
1000
)
},
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/button/prop/index.css
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#typeArc
{
height
:
30px
;
margin-bottom
:
20px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
}
#typeCapsule
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#typeCircle
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#typeText
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#typeDownload
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#typeNone
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#value
{
height
:
15px
;
font-size
:
10px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#valueNone
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#icon
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#iconNone
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#placementStart
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#placementEnd
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#placementTop
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#placementBottom
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#placementNone
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#waitingTrue
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#waitingFalse
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#waitingNone
{
height
:
15px
;
margin-bottom
:
3px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
ace/ace_standard/src/main/js/default/pages/button/prop/index.hml
0 → 100644
浏览文件 @
c689eab2
<!--/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/-->
<div class="container">
<div class="prop-container">
<text class="title">
button通用属性
</text>
<text class="sub-title">
通用属性 -- id
</text>
<button id="idProp">
</button>
<text class="sub-title">
通用属性 -- class
</text>
<button id="classProp"
class="classProp">
</button>
<button id="classPropNone"
class="">
</button>
<text class="sub-title">
通用属性 -- style
</text>
<button id="styleProp"
style="width:10%;height:20px;background-color:red">
</button>
<text class="sub-title">
通用属性 -- ref
</text>
<button id="refProp"
ref="refProp">
</button>
<button id="refPropNone"
ref="">
</button>
<text class="sub-title">
通用属性 -- disabled
</text>
<button id="disabledPropTrue"
disabled="true">
</button>
<button id="disabledPropFalse"
disabled="false">
</button>
<button id="disabledPropNone"
disabled="">
</button>
<text class="sub-title">
通用属性 -- focusable
</text>
<button id="focusablePropTrue"
focusable="true">
</button>
<button id="focusablePropFalse"
focusable="false">
</button>
<button id="focusablePropNone"
focusable="">
</button>
<text class="sub-title">
通用属性 -- data-*
</text>
<button id="dataProp"
data-button="通用属性 -- data-*">
</button>
<button id="dataPropNone"
data-button="">
</button>
<text class="sub-title">
通用属性 -- click-effect
</text>
<button id="clickEffectPropSmall"
click-effect="spring-small">
</button>
<button id="clickEffectPropMedium"
click-effect="spring-medium">
</button>
<button id="clickEffectPropLarge"
click-effect="spring-large">
</button>
<button id="clickEffectPropNone"
click-effect="">
</button>
<text class="sub-title">
通用属性 -- dir
</text>
<button id="dirPropRtl"
dir="rtl">
</button>
<button id="dirPropAuto"
dir="auto">
</button>
<button id="dirPropLtr"
dir="ltr">
</button>
<button id="dirPropNone"
dir="">
</button>
<text class="sub-title">
渲染属性 -- for
</text>
<button id="forPropNull"
for="">
</button>
<button id="forPropOne"
for="{{listOne}}">
</button>
<button id="forPropThree"
for="{{listThree}}">
</button>
<text class="sub-title">
渲染属性 -- if
</text>
<button id="ifPropTrue"
if="true">
</button>
<text class="sub-title">
渲染属性 -- show
</text>
<button id="showPropTrue"
show="true">
</button>
<button id="showPropFalse"
show="false">
</button>
<button id="showPropNone"
show="">
</button>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
button特有属性
</text>
<text class="sub-title">
特有属性 -- type
</text>
<button id="typeArc"
type="arc">
</button>
<button id="typeCapsule"
type="capsule">
</button>
<button id="typeCircle"
type="circle">
</button>
<button id="typeText"
type="text">
</button>
<button id="typeDownload"
type="download">
</button>
<button id="typeNone"
type="">
</button>
<text class="sub-title">
特有属性 -- value
</text>
<button id="value"
value="按钮">
</button>
<button id="valueNone"
value="">
</button>
<text class="sub-title">
特有属性 -- icon
</text>
<button id="icon"
icon="common/images/image.png">
</button>
<button id="iconNone"
icon="">
</button>
<text class="sub-title">
特有属性 -- placement
</text>
<button id="placementStart"
placement="start">
</button>
<button id="placementEnd"
placement="end">
</button>
<button id="placementTop"
placement="top">
</button>
<button id="placementBottom"
placement="bottom">
</button>
<button id="placementNone"
placement="">
</button>
<text class="sub-title">
特有属性 -- waiting
</text>
<button id="waitingTrue"
waiting="true">
</button>
<button id="waitingFalse"
waiting="false">
</button>
<button id="waitingNone"
waiting="">
</button>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/button/prop/index.js
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
listOne
:[{}],
listThree
:[{},{},{}],
idProp
:
null
,
classProp
:
null
,
classPropNone
:
null
,
styleProp
:
null
,
refProp
:
null
,
refPropNone
:
null
,
disabledPropTrue
:
null
,
disabledPropFalse
:
null
,
disabledPropNone
:
null
,
focusablePropTrue
:
null
,
focusablePropFalse
:
null
,
focusablePropNone
:
null
,
dataProp
:
null
,
dataPropNone
:
null
,
clickEffectPropSmall
:
null
,
clickEffectPropMedium
:
null
,
clickEffectPropLarge
:
null
,
clickEffectPropNone
:
null
,
dirPropRtl
:
null
,
dirPropAuto
:
null
,
dirPropLtr
:
null
,
dirPropNone
:
null
,
forPropNull
:
null
,
forPropOne
:
null
,
forPropThree
:
null
,
ifPropTrue
:
null
,
showPropTrue
:
null
,
showPropFalse
:
null
,
showPropNone
:
null
,
typeArc
:
null
,
typeCapsule
:
null
,
typeCircle
:
null
,
typeText
:
null
,
typeDownload
:
null
,
typeNone
:
null
,
value
:
null
,
valueNone
:
null
,
icon
:
null
,
iconNone
:
null
,
placementStart
:
null
,
placementEnd
:
null
,
placementTop
:
null
,
placementBottom
:
null
,
placementNone
:
null
,
waitingTrue
:
null
,
waitingFalse
:
null
,
waitingNone
:
null
},
onShow
(){
this
.
getCommonPropValues
();
this
.
getSpecificPropValues
();
globalThis
.
value
=
{
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
,
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
,
typeArc
:
this
.
typeArc
,
typeCapsule
:
this
.
typeCapsule
,
typeCircle
:
this
.
typeCircle
,
typeText
:
this
.
typeText
,
typeDownload
:
this
.
typeDownload
,
typeNone
:
this
.
typeNone
,
value
:
this
.
value
,
valueNone
:
this
.
valueNone
,
icon
:
this
.
icon
,
iconNone
:
this
.
iconNone
,
placementStart
:
this
.
placementStart
,
placementEnd
:
this
.
placementEnd
,
placementTop
:
this
.
placementTop
,
placementBottom
:
this
.
placementBottom
,
placementNone
:
this
.
placementNone
,
waitingTrue
:
this
.
waitingTrue
,
waitingFalse
:
this
.
waitingFalse
,
waitingNone
:
this
.
waitingNone
}
},
getCommonPropValues
(){
this
.
idProp
=
this
.
$element
(
"
idProp
"
).
getInspector
()
this
.
classProp
=
this
.
$element
(
"
classProp
"
).
getInspector
()
this
.
classPropNone
=
this
.
$element
(
"
classPropNone
"
).
getInspector
()
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refPropNone
=
this
.
$element
(
"
refPropNone
"
).
getInspector
()
this
.
disabledPropTrue
=
this
.
$element
(
"
disabledPropTrue
"
).
getInspector
()
this
.
disabledPropFalse
=
this
.
$element
(
"
disabledPropFalse
"
).
getInspector
()
this
.
disabledPropNone
=
this
.
$element
(
"
disabledPropNone
"
).
getInspector
()
this
.
focusablePropTrue
=
this
.
$element
(
"
focusablePropTrue
"
).
getInspector
()
this
.
focusablePropFalse
=
this
.
$element
(
"
focusablePropFalse
"
).
getInspector
()
this
.
focusablePropNone
=
this
.
$element
(
"
focusablePropNone
"
).
getInspector
()
this
.
dataProp
=
this
.
$element
(
"
dataProp
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
this
.
clickEffectPropMedium
=
this
.
$element
(
"
clickEffectPropMedium
"
).
getInspector
()
this
.
clickEffectPropLarge
=
this
.
$element
(
"
clickEffectPropLarge
"
).
getInspector
()
this
.
clickEffectPropNone
=
this
.
$element
(
"
clickEffectPropNone
"
).
getInspector
()
this
.
dirPropRtl
=
this
.
$element
(
"
dirPropRtl
"
).
getInspector
()
this
.
dirPropAuto
=
this
.
$element
(
"
dirPropAuto
"
).
getInspector
()
this
.
dirPropLtr
=
this
.
$element
(
"
dirPropLtr
"
).
getInspector
()
this
.
dirPropNone
=
this
.
$element
(
"
dirPropNone
"
).
getInspector
()
this
.
forPropNull
=
this
.
$element
(
"
forPropNull
"
).
getInspector
()
this
.
forPropOne
=
this
.
$element
(
"
forPropOne
"
).
getInspector
()
this
.
forPropThree
=
this
.
$element
(
"
forPropThree
"
).
getInspector
()
this
.
ifPropTrue
=
this
.
$element
(
"
ifPropTrue
"
).
getInspector
()
this
.
showPropTrue
=
this
.
$element
(
"
showPropTrue
"
).
getInspector
()
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
},
getSpecificPropValues
(){
this
.
typeArc
=
this
.
$element
(
"
typeArc
"
).
getInspector
()
this
.
typeCapsule
=
this
.
$element
(
"
typeCapsule
"
).
getInspector
()
this
.
typeCircle
=
this
.
$element
(
"
typeCircle
"
).
getInspector
()
this
.
typeText
=
this
.
$element
(
"
typeText
"
).
getInspector
()
this
.
typeDownload
=
this
.
$element
(
"
typeDownload
"
).
getInspector
()
this
.
typeNone
=
this
.
$element
(
"
typeNone
"
).
getInspector
()
this
.
value
=
this
.
$element
(
"
value
"
).
getInspector
()
this
.
valueNone
=
this
.
$element
(
"
valueNone
"
).
getInspector
()
this
.
icon
=
this
.
$element
(
"
icon
"
).
getInspector
()
this
.
iconNone
=
this
.
$element
(
"
iconNone
"
).
getInspector
()
this
.
placementStart
=
this
.
$element
(
"
placementStart
"
).
getInspector
()
this
.
placementEnd
=
this
.
$element
(
"
placementEnd
"
).
getInspector
()
this
.
placementTop
=
this
.
$element
(
"
placementTop
"
).
getInspector
()
this
.
placementBottom
=
this
.
$element
(
"
placementBottom
"
).
getInspector
()
this
.
placementNone
=
this
.
$element
(
"
placementNone
"
).
getInspector
()
this
.
waitingTrue
=
this
.
$element
(
"
waitingTrue
"
).
getInspector
()
this
.
waitingFalse
=
this
.
$element
(
"
waitingFalse
"
).
getInspector
()
this
.
waitingNone
=
this
.
$element
(
"
waitingNone
"
).
getInspector
()
}
}
ace/ace_standard/src/main/js/default/pages/
divid
er/index.css
→
ace/ace_standard/src/main/js/default/pages/
button/rout
er/index.css
浏览文件 @
c689eab2
...
...
@@ -20,6 +20,10 @@
padding
:
1px
;
}
button
{
width
:
60%
;
height
:
20px
;
}
.sub-container
{
flex-direction
:
column
;
height
:
100%
;
...
...
@@ -27,41 +31,87 @@
}
.style-container
{
flex-direction
:
column
;
height
:
70%
;
}
.contain1
{
width
:
100%
;
height
:
15%
;
flex-direction
:
column
;
}
.ani-container
{
flex-direction
:
column
;
height
:
100%
;
flex-weight
:
1
;
}
.prop-container
{
flex-direction
:
column
;
height
:
60%
;
padding-left
:
2px
;
}
.event-container
{
flex-direction
:
column
;
height
:
20%
;
}
.function-container
{
flex-direction
:
column
;
height
:
20%
;
}
.gradient-container
{
flex-direction
:
column
;
height
:
40%
;
}
.access-container
{
flex-direction
:
column
;
height
:
15%
;
}
.atom-container
{
flex-direction
:
column
;
height
:
45%
;
}
.multimode-container
{
flex-direction
:
column
;
height
:
45%
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
height
:
25px
;
font-size
:
15px
;
text-align
:
left
;
margin
:
2
px
;
margin
-bottom
:
1
px
;
padding
:
2px
;
}
.style1
{
width
:
100%
;
mask-color
:
red
;
height
:
100%
;
min-width
:
25px
;
min-height
:
10px
;
max-width
:
300px
;
max-height
:
5
0px
;
max-height
:
2
0px
;
padding-left
:
10px
;
padding-top
:
20
px
;
padding-top
:
1
px
;
padding-right
:
15px
;
padding-bottom
:
5
px
;
padding-bottom
:
1
px
;
margin-left
:
10px
;
margin-top
:
2
0px
;
margin-top
:
0px
;
margin-right
:
15px
;
margin-bottom
:
5px
;
border-left-style
:
solid
;
...
...
@@ -91,7 +141,7 @@
}
.style2
{
width
:
50px
;
width
:
70%
;
height
:
20px
;
padding-start
:
10px
;
padding-end
:
15px
;
...
...
@@ -105,11 +155,11 @@
mask-image
:
url('common/images/icon.png')
;
mask-size
:
cover
;
mask-position
:
center
;
}
.style3
{
width
:
100%
;
height
:
20px
;
padding
:
10px
;
margin
:
5px
;
border-left
:
1px
solid
#000000
;
...
...
@@ -127,22 +177,16 @@
}
.style4
{
height
:
20px
;
width
:
60%
;
height
:
5%
;
padding
:
10px
;
padding
:
1px
;
margin
:
5px
;
border
:
2px
solid
#000000
;
}
.contain1
{
width
:
100%
;
height
:
70px
;
flex-direction
:
column
;
}
.style5
{
width
:
50%
;
height
:
3
0px
;
height
:
2
0px
;
background-color
:
yellow
;
border-image-source
:
url('/common/images/image.png')
;
border-image-slice
:
1px
2px
3px
4px
;
...
...
@@ -153,7 +197,7 @@
.style6
{
width
:
70px
;
height
:
3
0px
;
height
:
2
0px
;
position
:
absolute
;
left
:
10px
;
top
:
35px
;
...
...
@@ -164,58 +208,117 @@
}
.style7
{
margin-bottom
:
50px
;
margin-top
:
10px
;
color
:
green
;
stroke-width
:
30px
;
line-cap
:
round
;
height
:
20px
;
text-color
:
salmon
;
font-size
:
15px
;
allow-scale
:
false
;
font-style
:
normal
;
font-weight
:
100
;
font-family
:
sans-serif
;
icon-width
:
60px
;
icon-height
:
15px
;
radius
:
10px
;
}
.prop-container
{
flex-direction
:
column
;
height
:
100%
;
flex-weight
:
1
;
.style8
{
height
:
20px
;
margin-bottom
:
5px
;
margin-top
:
5px
;
background-color
:
sandybrown
;
}
.event1
{
width
:
100%
;
height
:
20px
;
background-color
:
salmon
;
}
.event2
{
width
:
100%
;
height
:
20px
;
background-color
:
darkorchid
;
}
.event3
{
width
:
100%
;
height
:
20px
;
background-color
:
#ad4e2a
;
}
.event4
{
width
:
100%
;
height
:
20px
;
background-color
:
blanchedalmond
;
}
.event5
{
width
:
100%
;
height
:
20px
;
background-color
:
blanchedalmond
;
}
#prop1
{
color
:
#ad4e2a
;
stroke-width
:
10px
;
line-cap
:
square
;
margin
:
5px
;
background-color
:
mediumslateblue
;
height
:
20px
;
margin
:
2px
;
}
.prop2
{
color
:
#343524
;
stroke-width
:
15px
;
line-cap
:
round
;
margin
:
5px
;
background-color
:
salmon
;
height
:
20px
;
margin
:
2px
;
}
.prop4
{
color
:
#456345
;
stroke-width
:
25px
;
line-cap
:
round
;
margin
:
5px
;
background-color
:
skyblue
;
height
:
20px
;
margin
:
2px
;
text-color
:
skyblue
;
font-size
:
15px
;
allow-scale
:
true
;
font-style
:
italic
;
font-weight
:
200
;
font-family
:
sans-serif
;
}
.prop5
{
color
:
#831834
;
stroke-width
:
40px
;
line-cap
:
square
;
margin
:
5px
;
height
:
70px
;
background-color
:
gold
;
height
:
20px
;
width
:
100%
;
margin
:
2px
;
}
.ani-container
{
flex-direction
:
column
;
height
:
100%
;
flex-weight
:
1
;
.prop6
{
background-color
:
gold
;
height
:
30px
;
width
:
100%
;
margin
:
2px
;
}
.prop7
{
background-color
:
gold
;
height
:
20px
;
width
:
100%
;
margin
:
2px
;
}
.prop8
{
background-color
:
gold
;
height
:
20px
;
width
:
100%
;
margin
:
2px
;
}
.prop9
{
background-color
:
gold
;
height
:
20px
;
width
:
100%
;
margin
:
2px
;
}
.ani1
{
color
:
#72ac33
;
stroke-width
:
55px
;
line-cap
:
square
;
margin
:
5px
;
transform-origin
:
0%
0%
;
animation
:
ani1Go
3s
infinite
;
...
...
@@ -250,66 +353,88 @@
}
.ani2
{
color
:
#ad4e2a
;
stroke-width
:
55px
;
line-cap
:
square
;
background-
color
:
#ad4e2a
;
width
:
100%
;
height
:
55px
;
margin
:
5px
;
}
.gradient-container
{
flex-direction
:
column
;
}
.gradient1
{
stroke-width
:
30px
;
line-cap
:
square
;
margin
:
5px
;
height
:
20px
;
background
:
linear-gradient
(
red
,
#00ff00
);
}
.gradient2
{
stroke-width
:
30px
;
line-cap
:
square
;
margin
:
5px
;
height
:
20px
;
background
:
linear-gradient
(
45deg
,
rgb
(
255
,
0
,
0
),
rgb
(
0
,
255
,
0
));
}
.gradient3
{
stroke-width
:
30px
;
line-cap
:
square
;
margin
:
5px
;
height
:
20px
;
background
:
linear-gradient
(
to
right
,
rgb
(
255
,
0
,
0
)
90px
,
rgb
(
0
,
255
,
0
)
60%
);
}
.gradient4
{
stroke-width
:
30px
;
line-cap
:
square
;
margin
:
5px
;
height
:
20px
;
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access-container
{
flex-direction
:
column
;
}
.access1
{
color
:
#321124
;
stroke-width
:
30px
;
line-cap
:
square
;
height
:
20px
;
margin
:
5px
;
background-color
:
chartreuse
;
}
.atom-container
{
flex-direction
:
column
;
.atom1
{
background-color
:
saddlebrown
;
width
:
40px
;
height
:
40px
;
}
.multimode-container
{
flex-direction
:
column
;
.atom2
{
background-color
:
blueviolet
;
width
:
40px
;
height
:
40px
;
}
.atom3
{
background-color
:
aquamarine
;
width
:
40px
;
height
:
40px
;
}
.multimode1
{
color
:
#978666
;
stroke-width
:
3
0px
;
line-cap
:
square
;
background-color
:
firebrick
;
height
:
2
0px
;
width
:
100%
;
margin
:
5px
;
}
.function1
{
background-color
:
#ff0000
;
width
:
60%
;
height
:
30px
;
}
.function2
{
background-color
:
#00ff00
;
width
:
60%
;
height
:
30px
;
}
.function3
{
background-color
:
#0000ff
;
width
:
100%
;
height
:
30px
;
}
.function4
{
flex-direction
:
row
;
width
:
60%
;
height
:
60px
;
overflow
:
scroll
;
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/button/router/index.hml
0 → 100644
浏览文件 @
c689eab2
<!--/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/-->
<div class="container">
<div class="sub-container">
<!-- 通用样式 -->
<div class="style-container">
<text class="title">
通用样式
</text>
<text class="sub-title">
button通用样式1
</text>
<button id="style1" class="style1">
</button>
<text class="sub-title">
button通用样式2
</text>
<button id="style2" class="style2">
</button>
<text class="sub-title">
button通用样式3
</text>
<button id="style3" class="style3">
</button>
<text class="sub-title">
button通用样式4
</text>
<button id="style4" class="style4" >
</button>
<text class="sub-title">
button通用样式5
</text>
<div class="contain1">
<button id="style5" class="style5">
</button>
<button id="style6" class="style6">
</button>
</div>
<text class="sub-title">
button特有样式
</text>
<button id="style7" class="style7">
</button>
</div>
<divider style="color: #000000; stroke-width: 2px;" vertical="false">
</divider>
<!-- 动画 -->
<div class="ani-container">
<text class="title">
动画样式
</text>
<text class="sub-title">
button动画样式1
</text>
<button id="ani1" class="ani1" >
</button>
<text class="sub-title">
button动画样式2
</text>
<button id="ani2" class="ani2" >
</button>
</div>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="sub-container">
<!-- 通用属性 -->
<div class="prop-container">
<text class="title">
通用属性
</text>
<text class="sub-title">
button通用属性1
</text>
<button id="prop1"
class="prop1"
disabled = "true"
focusable ="true"
data-name ="prop1"
click-effect="spring-medium"
dir ="rtl"
placement="end">
</button>
<text class="sub-title">
button通用属性2
</text>
<button id="prop2"
class="prop2"
ref ="prop2"
disabled = "false"
focusable ="false"
data-name ="prop2"
click-effect="spring-large"
dir ="ltr"
placement="start">
</button>
<text class="sub-title">
button通用属性3
</text>
<button id="prop3" style="color: #679855; margin: 5px;width: 100%;height: 40px;"
placement="top">
</button>
<text class="sub-title">
arc按钮
</text>
<button id="prop4" class="prop4"
type="arc" value="1"
icon="common/images/image.png" waiting="false">
</button>
<text class="sub-title">
capsule按钮
</text>
<button id="prop5" class="prop5" type="capsule"
waiting="true" value="下载中" >
</button>
<text class="sub-title">
circle按钮
</text>
<button id="prop6" class="prop6" type="circle"
waiting="true" value="球">
</button>
<text class="sub-title">
text按钮
</text>
<button id="prop7" class="prop7" type="text"
waiting="false" value="嘿嘿嘿">
</button>
<text class="sub-title">
download按钮
</text>
<button id="prop8" class="prop8" type="download"
onclick="setProgress">{{downloadText}}>
</button>
<text class="sub-title">
普通按钮
</text>
<button id="prop9" class="prop9" waiting="true"
placement="bottom" value="嘿嘿嘿">
</button>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 通用事件 -->
<div class="event-container" >
<text class="title">
通用事件
</text>
<text class="sub-title">
button通用事件1
</text>
<button id="event1" class ="event1" ontouchstart="touchStart" ontouchmove="touchMove"
ontouchend="touchEnd" ontouchcancel="touchCancel" >
</button>
<text class="sub-title">
button通用事件2
</text>
<button id="event2" class="event2" onclick="click" ondoubleclick="doubleClick"
onlongpress="longPress" onfocus="focus" onblur="blur" onkey="key"
onswipe="swipe" onattached="attached" ondetached="detached" >
</button>
<text class="sub-title">
button通用事件3
</text>
<button id="event3" class="event3" onpinchstart="pinchStart" onpinchupdate="pinchUpdate"
onpinchend="pinchEnd" onpinchcancel="pinchCancel"
ondragstart="dragStart" ondrag="drag"
ondragend="dragEnd" ondragenter="dragEnter"
ondragover="dragOver" ondragleave="dragLeave"
ondrop="drop" >
</button>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 通用方法 -->
<div class="function-container">
<text class="title">
通用方法
</text>
<text class="sub-title">
button通用方法1
</text>
<button id="function1" class="function1" ontouchstart="functionTest1" >
</button>
<text class="sub-title">
button通用方法2
</text>
<button id="function2" class="function2" ontouchstart="functionTest2" >
</button>
<text class="sub-title">
button通用方法3
</text>
<button id="function3" class="function3" ontouchstart="functionTest3" >
</button>
</div>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="sub-container">
<!-- 渐变样式 -->
<div class="gradient-container">
<text class="title">
渐变样式
</text>
<text class="sub-title">
button渐变样式1
</text>
<button id="gradient1" class="gradient1" >
</button>
<text class="sub-title">
button渐变样式2
</text>
<button id="gradient2" class="gradient2" >
</button>
<text class="sub-title">
button渐变样式3
</text>
<button id="gradient3" class="gradient3" >
</button>
<text class="sub-title">
button渐变样式4
</text>
<button id="gradient4" class="gradient4" >
</button>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 无障碍 -->
<div class="access-container">
<text class="title">
无障碍
</text>
<text class="sub-title">
button无障碍1
</text>
<button id="access1" class="access1"
accessibilitygroup ="true"
accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants"
>
</button>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 原子布局和多模输入 -->
<div class="atom-container">
<text class="title">
原子布局
</text>
<text class="sub-title">
button原子布局1
</text>
<div style="flex-direction: row;height: 30px;width: 100%;">
<button id="atomA1" >
</button>
<button id="atomA2" >
</button>
<button id="atomA3" >
</button>
</div>
<text class="sub-title">
button原子布局2
</text>
<div style="flex-direction: row;height: 30px;width: 100%;">
<button id="atomB1" >
</button>
<button id="atomB2" >
</button>
<button id="atomB3" >
</button>
</div>
<text class="sub-title">
button原子布局3
</text>
<div style="flex-direction: row;height:40px;width: 100%;">
<button id="atomC1" >
</button>
<button id="atomC2" >
</button>
<button id="atomC3" >
</button>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<div class="multimode-container">
<text class="title">
多模输入
</text>
<text class="sub-title">
button多模输入1
</text>
<button id="multiMode1"
class="multimode1"
voicelabel = "voice"
subscriptflag="on"
subscriptlabel="div"
scenelabel="common"
>
</button>
</div>
</div>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/button/router/index.js
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen kaiHong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
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
'
},
];
export
default
{
data
:
{
progress
:
10
,
downloadText
:
"
进度条按钮
"
},
setProgress
(
e
)
{
var
i
=
0
var
set
=
setInterval
(()
=>
{
i
+=
10
this
.
progress
=
i
this
.
downloadText
=
this
.
progress
+
"
%
"
;
this
.
$element
(
'
download-btn
'
).
setProgress
({
progress
:
this
.
progress
});
if
(
this
.
progress
>=
100
){
clearInterval
(
set
)
this
.
downloadText
=
"
完成
"
}
},
1000
)
},
onShow
(){
// 通用属性
var
prop1
=
this
.
$element
(
'
prop1
'
);
var
name1
=
prop1
.
dataSet
.
name
var
prop2
=
this
.
$refs
.
prop2
;
var
name2
=
prop2
.
dataSet
.
name
prompt
.
showToast
({
message
:
'
prop1--
'
+
name1
+
'
\n
prop2--
'
+
name2
});
},
touchStart
(
event
){
var
globalX
=
event
.
touches
[
0
].
globalX
var
globalY
=
event
.
touches
[
0
].
globalY
var
localX
=
event
.
touches
[
0
].
localX
var
localY
=
event
.
touches
[
0
].
localY
var
size
=
event
.
touches
[
0
].
size
var
force
=
event
.
touches
[
0
].
force
var
changeGlobalX
=
event
.
changedTouches
[
0
].
globalX
var
changeGlobalY
=
event
.
changedTouches
[
0
].
globalY
var
changeLocalX
=
event
.
changedTouches
[
0
].
localX
var
changeLocalY
=
event
.
changedTouches
[
0
].
localY
var
changeSize
=
event
.
changedTouches
[
0
].
size
var
changeForce
=
event
.
changedTouches
[
0
].
force
var
message
=
'
globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,localX--
'
+
localX
+
'
,localY--
'
+
localY
+
'
,size--
'
+
size
+
'
,force--
'
+
force
+
'
,changeGlobalX--
'
+
changeGlobalX
+
'
,changeGlobalY--
'
+
changeGlobalY
+
'
,changeLocalX--
'
+
changeLocalX
+
'
,changeLocalY--
'
+
changeLocalY
+
'
,changeSize--
'
+
changeSize
+
'
,changeForce--
'
+
changeForce
;
prompt
.
showToast
({
message
:
'
touchstart:
\n
'
+
message
});
},
touchMove
(
event
){
var
globalX
=
event
.
touches
[
0
].
globalX
var
globalY
=
event
.
touches
[
0
].
globalY
var
localX
=
event
.
touches
[
0
].
localX
var
localY
=
event
.
touches
[
0
].
localY
var
size
=
event
.
touches
[
0
].
size
var
force
=
event
.
touches
[
0
].
force
var
changeGlobalX
=
event
.
changedTouches
[
0
].
globalX
var
changeGlobalY
=
event
.
changedTouches
[
0
].
globalY
var
changeLocalX
=
event
.
changedTouches
[
0
].
localX
var
changeLocalY
=
event
.
changedTouches
[
0
].
localY
var
changeSize
=
event
.
changedTouches
[
0
].
size
var
changeForce
=
event
.
changedTouches
[
0
].
force
var
message
=
'
globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,localX--
'
+
localX
+
'
,localY--
'
+
localY
+
'
,size--
'
+
size
+
'
,force--
'
+
force
+
'
,changeGlobalX--
'
+
changeGlobalX
+
'
,changeGlobalY--
'
+
changeGlobalY
+
'
,changeLocalX--
'
+
changeLocalX
+
'
,changeLocalY--
'
+
changeLocalY
+
'
,changeSize--
'
+
changeSize
+
'
,changeForce--
'
+
changeForce
;
prompt
.
showToast
({
message
:
'
touchMove:
\n
'
+
message
});
},
touchEnd
(
event
){
var
globalX
=
event
.
touches
[
0
].
globalX
var
globalY
=
event
.
touches
[
0
].
globalY
var
localX
=
event
.
touches
[
0
].
localX
var
localY
=
event
.
touches
[
0
].
localY
var
size
=
event
.
touches
[
0
].
size
var
force
=
event
.
touches
[
0
].
force
var
changeGlobalX
=
event
.
changedTouches
[
0
].
globalX
var
changeGlobalY
=
event
.
changedTouches
[
0
].
globalY
var
changeLocalX
=
event
.
changedTouches
[
0
].
localX
var
changeLocalY
=
event
.
changedTouches
[
0
].
localY
var
changeSize
=
event
.
changedTouches
[
0
].
size
var
changeForce
=
event
.
changedTouches
[
0
].
force
var
message
=
'
globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,localX--
'
+
localX
+
'
,localY--
'
+
localY
+
'
,size--
'
+
size
+
'
,force--
'
+
force
+
'
,changeGlobalX--
'
+
changeGlobalX
+
'
,changeGlobalY--
'
+
changeGlobalY
+
'
,changeLocalX--
'
+
changeLocalX
+
'
,changeLocalY--
'
+
changeLocalY
+
'
,changeSize--
'
+
changeSize
+
'
,changeForce--
'
+
changeForce
;
prompt
.
showToast
({
message
:
'
touchEnd:
\n
'
+
message
});
},
touchCancel
(
event
){
var
globalX
=
event
.
touches
[
0
].
globalX
var
globalY
=
event
.
touches
[
0
].
globalY
var
localX
=
event
.
touches
[
0
].
localX
var
localY
=
event
.
touches
[
0
].
localY
var
size
=
event
.
touches
[
0
].
size
var
force
=
event
.
touches
[
0
].
force
var
changeGlobalX
=
event
.
changedTouches
[
0
].
globalX
var
changeGlobalY
=
event
.
changedTouches
[
0
].
globalY
var
changeLocalX
=
event
.
changedTouches
[
0
].
localX
var
changeLocalY
=
event
.
changedTouches
[
0
].
localY
var
changeSize
=
event
.
changedTouches
[
0
].
size
var
changeForce
=
event
.
changedTouches
[
0
].
force
var
message
=
'
globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,localX--
'
+
localX
+
'
,localY--
'
+
localY
+
'
,size--
'
+
size
+
'
,force--
'
+
force
+
'
,changeGlobalX--
'
+
changeGlobalX
+
'
,changeGlobalY--
'
+
changeGlobalY
+
'
,changeLocalX--
'
+
changeLocalX
+
'
,changeLocalY--
'
+
changeLocalY
+
'
,changeSize--
'
+
changeSize
+
'
,changeForce--
'
+
changeForce
;
prompt
.
showToast
({
message
:
'
touchCancel:
\n
'
+
message
});
},
click
(){
prompt
.
showToast
({
message
:
'
click
'
});
},
doubleClick
(){
prompt
.
showToast
({
message
:
'
doubleClick
'
});
},
longPress
(){
prompt
.
showToast
({
message
:
'
longPress
'
});
},
focus
(){
prompt
.
showToast
({
message
:
'
focus
'
});
},
blur
(){
prompt
.
showToast
({
message
:
'
blur
'
});
},
key
(
event
){
var
code
=
event
.
code
;
var
action
=
event
.
action
;
var
repeatCount
=
event
.
repeatCount
;
var
timestampStart
=
event
.
timestampStart
;
var
message
=
'
code--
'
+
code
+
'
,action--
'
+
action
+
'
,repeatCount--
'
+
repeatCount
+
'
,timestampStart--
'
+
timestampStart
;
prompt
.
showToast
({
message
:
'
key:
\n
'
+
message
});
},
swipe
(
event
){
var
direction
=
event
.
direction
;
var
distance
=
event
.
distance
;
var
message
=
'
direction--
'
+
direction
+
'
,distance--
'
+
distance
;
prompt
.
showToast
({
message
:
'
swipe:
\n
'
+
message
});
},
attached
(){
prompt
.
showToast
({
message
:
'
attached
'
});
},
detached
(){
prompt
.
showToast
({
message
:
'
detached
'
});
},
pinchStart
(
event
){
var
scale
=
event
.
scale
var
pinchCenterX
=
event
.
pinchCenterX
var
pinchCenterY
=
event
.
pinchCenterY
var
message
=
'
scale--
'
+
scale
+
'
,pinchCenterX--
'
+
pinchCenterX
+
'
,pinchCenterY--
'
+
pinchCenterY
;
prompt
.
showToast
({
message
:
'
pinchStart:
\n
'
+
message
});
},
pinchUpdate
(
event
){
var
scale
=
event
.
scale
var
pinchCenterX
=
event
.
pinchCenterX
var
pinchCenterY
=
event
.
pinchCenterY
var
message
=
'
scale--
'
+
scale
+
'
,pinchCenterX--
'
+
pinchCenterX
+
'
,pinchCenterY--
'
+
pinchCenterY
;
prompt
.
showToast
({
message
:
'
pinchUpdate:
\n
'
+
message
});
},
pinchEnd
(
event
){
var
scale
=
event
.
scale
var
pinchCenterX
=
event
.
pinchCenterX
var
pinchCenterY
=
event
.
pinchCenterY
var
message
=
'
scale--
'
+
scale
+
'
,pinchCenterX--
'
+
pinchCenterX
+
'
,pinchCenterY--
'
+
pinchCenterY
;
prompt
.
showToast
({
message
:
'
pinchUpdate:
\n
'
+
message
});
},
pinchCancel
(
event
){
var
scale
=
event
.
scale
var
pinchCenterX
=
event
.
pinchCenterX
var
pinchCenterY
=
event
.
pinchCenterY
var
message
=
'
scale--
'
+
scale
+
'
,pinchCenterX--
'
+
pinchCenterX
+
'
,pinchCenterY--
'
+
pinchCenterY
;
prompt
.
showToast
({
message
:
'
pinchCancel:
\n
'
+
message
});
},
dragStart
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
dragStart:
\n
'
+
message
});
},
drag
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
drag:
\n
'
+
message
});
},
dragEnd
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
dragEnd:
\n
'
+
message
});
},
dragEnter
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
dragEnter:
\n
'
+
message
});
},
dragOver
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
dragOver:
\n
'
+
message
});
},
dragLeave
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
dragLeave:
\n
'
+
message
});
},
drop
(
event
){
var
type
=
event
.
type
var
globalX
=
event
.
globalX
var
globalY
=
event
.
globalY
var
timestamp
=
event
.
timestamp
var
message
=
'
type--
'
+
type
+
'
,globalX--
'
+
globalX
+
'
,globalY--
'
+
globalY
+
'
,timestamp--
'
+
timestamp
;
prompt
.
showToast
({
message
:
'
drop:
\n
'
+
message
});
},
functionTest1
(
event
){
var
function1
=
this
.
$element
(
'
function1
'
);
function1
.
focus
(
true
)
var
rect
=
function1
.
getBoundingClientRect
();
var
width
=
rect
.
width
;
var
height
=
rect
.
height
;
var
left
=
rect
.
left
;
var
top
=
rect
.
top
;
var
message
=
'
width--
'
+
width
+
'
,height--
'
+
height
+
'
,left--
'
+
left
+
'
,top--
'
+
top
;
prompt
.
showToast
({
message
:
'
function1 rect:
\n
'
+
message
});
},
functionTest2
(
event
){
var
function2
=
this
.
$element
(
'
function2
'
);
let
observer
=
function2
.
createIntersectionObserver
({
ratios
:
[
0.2
,
0
],
// number
});
observer
.
observe
((
isVisible
,
ratio
)
=>
{
console
.
info
(
'
this element is
'
+
isVisible
+
'
ratio is
'
+
ratio
)
prompt
.
showToast
({
message
:
'
function2 observer:
\n
'
+
'
isVisible--
'
+
isVisible
+
'
,ratio--
'
+
ratio
});
})
observer
.
unobserve
()
},
functionTest3
(
event
){
var
function3
=
this
.
$element
(
'
function3
'
);
var
animation
=
function3
.
animate
(
frames
,
options
);
animation
.
play
()
animation
.
onfinish
=
function
(){
prompt
.
showToast
({
message
:
'
The animation is finished.
'
});
};
animation
.
oncancel
=
function
(){
prompt
.
showToast
({
message
:
'
The animation is canceled.
'
});
};
animation
.
onrepeat
=
function
(){
prompt
.
showToast
({
message
:
'
The animation is repeated.
'
});
};
setTimeout
(()
=>
{
animation
.
reverse
()
},
500
)
setTimeout
(()
=>
{
animation
.
pause
()
},
1000
)
setTimeout
(()
=>
{
animation
.
cancel
()
},
1500
)
},
functionTest4
(
event
){
var
function4
=
this
.
$element
(
'
function4
'
);
var
scrollOffset
=
function4
.
getScrollOffset
();
var
x
=
scrollOffset
.
x
;
var
y
=
scrollOffset
.
y
;
var
message
=
'
x--
'
+
x
+
'
,y--
'
+
y
;
prompt
.
showToast
({
message
:
'
functionTest4 scrollOffset:
\n
'
+
message
});
var
scrollParam
=
{
dx
:
60
,
dy
:
0
,
smooth
:
true
}
function4
.
scrollBy
(
scrollParam
)
},
reachStart
(){
prompt
.
showToast
({
message
:
'
reachStart
'
});
},
reachEnd
(){
prompt
.
showToast
({
message
:
'
reachEnd
'
});
},
reachTop
(){
prompt
.
showToast
({
message
:
'
reachTop
'
});
},
reachBottom
(){
prompt
.
showToast
({
message
:
'
reachBottom
'
});
}
}
ace/ace_standard/src/main/js/default/pages/button/style/index.css
0 → 100644
浏览文件 @
c689eab2
ace/ace_standard/src/main/js/default/pages/button/style/index.hml
0 → 100644
浏览文件 @
c689eab2
ace/ace_standard/src/main/js/default/pages/button/style/index.js
0 → 100644
浏览文件 @
c689eab2
ace/ace_standard/src/main/js/default/pages/div/style/index.css
浏览文件 @
c689eab2
...
...
@@ -51,7 +51,7 @@
padding-bottom
:
0.5px
;
margin-left
:
1px
;
margin-top
:
2px
;
margin-right
:
3
px
;
margin-right
:
1.5
px
;
margin-bottom
:
0.5px
;
border-left-style
:
solid
;
border-right-style
:
dashed
;
...
...
@@ -351,4 +351,163 @@
mask-image
:
url('common/images/icon.png')
;
mask-size
:
cover
;
mask-position
:
center
;
}
\ No newline at end of file
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#specificOne
{
width
:
70px
;
height
:
25px
;
flex-direction
:
row
;
flex-wrap
:
nowrap
;
}
#specificTwo
{
width
:
100%
;
height
:
50px
;
flex-direction
:
column
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
align-content
:
flex-start
;
}
#specificThree
{
width
:
18%
;
height
:
48%
;
border
:
1px
solid
pink
;
flex-direction
:
row
;
justify-content
:
flex-end
;
align-items
:
flex-end
;
align-content
:
flex-end
;
margin
:
1%
;
}
#specificFour
{
width
:
18%
;
height
:
48%
;
border
:
1px
solid
pink
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
margin
:
1%
;
}
#specificFive
{
width
:
18%
;
height
:
48%
;
border
:
1px
solid
pink
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
stretch
;
align-content
:
space-between
;
margin
:
1%
;
}
#specificSix
{
width
:
18%
;
height
:
48%
;
border
:
1px
solid
pink
;
flex-direction
:
row
;
justify-content
:
space-around
;
align-items
:
baseline
;
align-content
:
space-around
;
margin
:
1%
;
}
#specificSeven
{
width
:
50px
;
height
:
10px
;
background-color
:
#ff0000
;
overflow
:
hidden
;
}
#specificEight
{
width
:
70px
;
height
:
10px
;
background-color
:
#00ff00
;
overflow
:
visible
;
margin-left
:
10px
;
}
#specificNine
{
width
:
100%
;
height
:
50px
;
margin-top
:
10px
;
overflow
:
scroll
;
flex-direction
:
column
;
scrollbar-color
:
#ff0000
;
scrollbar-width
:
2px
;
overscroll-effect
:
spring
;
}
#specificTen
{
width
:
100%
;
height
:
10px
;
margin-top
:
10px
;
overflow
:
scroll
;
scrollbar-color
:
#ff0000
;
scrollbar-width
:
2px
;
overscroll-effect
:
fade
;
}
#specificEleven
{
width
:
100%
;
height
:
10px
;
margin-top
:
10px
;
overflow
:
scroll
;
scrollbar-color
:
#ff0000
;
scrollbar-width
:
2px
;
overscroll-effect
:
none
;
}
#specificTwelve
{
width
:
100%
;
height
:
30px
;
display
:
grid
;
background-color
:
#000fff
;
grid-template-rows
:
50px
100px
60px
;
grid-rows-gap
:
10px
;
grid-row-start
:
1
;
grid-row-end
:
2
;
grid-auto-flow
:
row
;
}
#specificThirteen
{
width
:
100%
;
height
:
30px
;
background-color
:
#fff000
;
display
:
grid
;
grid-template-columns
:
50px
100px
60px
;
grid-columns-gap
:
10px
;
grid-column-start
:
1
;
grid-column-end
:
2
;
grid-auto-flow
:
column
;
}
.flex-item
{
width
:
40%
;
height
:
10px
;
}
.red-item
{
background-color
:
#ff0000
;
}
.green-item
{
background-color
:
#00ff00
;
}
.blue-item
{
background-color
:
#0000ff
;
}
.yellow-item
{
background-color
:
#fff000
;
}
ace/ace_standard/src/main/js/default/pages/div/style/index.hml
浏览文件 @
c689eab2
...
...
@@ -107,5 +107,130 @@
<div id="styleThirtyTwo">
</div>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
div特有样式
</text>
<text class="sub-title">
特有样式 flex-direction flex-wrap justify-content align-items align-content
</text>
<div id="specificOne">
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
</div>
<div id="specificTwo">
<div id="specificThree" >
<div class="flex-item red-item">
</div>
</div>
<div id="specificFour" >
<div class="flex-item blue-item">
</div>
</div>
<div id="specificFive" >
<div class="flex-item yellow-item">
</div>
<div class="flex-item blue-item">
</div>
</div>
<div id="specificSix" >
<text style="font-size: 6px;">
文本
</text>
<div class="flex-item blue-item">
</div>
</div>
</div>
<text class="sub-title">
特有样式 overflow scrollbar-color scrollbar-width overscroll-effect
</text>
<div id="specificSeven" >
<div id="specificEight" >
<div style="margin-left:10px;width: 80px; height: 10px; background-color: #0000ff;"></div>
</div>
</div>
<div id="specificNine">
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
</div>
<div id="specificTen">
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
</div>
<div id="specificEleven">
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
<div class="flex-item red-item">
</div>
<div class="flex-item blue-item">
</div>
<div class="flex-item green-item">
</div>
</div>
<text class="sub-title">
特有样式 grid
</text>
<div id="specificTwelve">
</div>
<div id="specificThirteen">
</div>
<!-- <div id="specificEight" >-->
<!-- <div class="flex-item yellow-item">-->
<!-- </div>-->
<!-- <div class="flex-item blue-item" style="width: 45%; align-content:flex-end;">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div id="specificNine" >-->
<!-- <div class="flex-item yellow-item">-->
<!-- </div>-->
<!-- <div class="flex-item blue-item">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div id="specificTen" >-->
<!-- <div class="flex-item yellow-item">-->
<!-- </div>-->
<!-- <div class="flex-item blue-item">-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
ace/ace_standard/src/main/js/default/pages/div/style/index.js
浏览文件 @
c689eab2
...
...
@@ -14,104 +14,6 @@
*/
export
default
{
data
:{
styleOne
:
null
,
styleTwo
:
null
,
styleThree
:
null
,
styleFour
:
null
,
styleFive
:
null
,
styleSix
:
null
,
styleSeven
:
null
,
styleEight
:
null
,
styleNine
:
null
,
styleTen
:
null
,
styleEleven
:
null
,
styleTwelve
:
null
,
styleThirteen
:
null
,
styleFourteen
:
null
,
styleFifteen
:
null
,
styleSixteen
:
null
,
styleSeventeen
:
null
,
styleEighteen
:
null
,
styleNineteen
:
null
,
styleTwenty
:
null
,
styleTwentyOne
:
null
,
styleTwentyTwo
:
null
,
styleTwentyThree
:
null
,
styleTwentyFour
:
null
,
styleTwentyFive
:
null
,
styleTwentySix
:
null
,
styleTwentySeven
:
null
,
styleTwentyNine
:
null
,
styleThirty
:
null
,
styleThirtyOne
:
null
,
styleThirtyTwo
:
null
},
onShow
(){
this
.
getCommonStyleValues
();
globalThis
.
value
=
{
styleOne
:
this
.
styleOne
,
styleTwo
:
this
.
styleTwo
,
styleThree
:
this
.
styleThree
,
styleFour
:
this
.
styleFour
,
styleFive
:
this
.
styleFive
,
styleSix
:
this
.
styleSix
,
styleSeven
:
this
.
styleSeven
,
styleEight
:
this
.
styleEight
,
styleNine
:
this
.
styleNine
,
styleTen
:
this
.
styleTen
,
styleEleven
:
this
.
styleEleven
,
styleTwelve
:
this
.
styleTwelve
,
styleThirteen
:
this
.
styleThirteen
,
styleFourteen
:
this
.
styleFourteen
,
styleFifteen
:
this
.
styleFifteen
,
styleSixteen
:
this
.
styleSixteen
,
styleSeventeen
:
this
.
styleSeventeen
,
styleEighteen
:
this
.
styleEighteen
,
styleNineteen
:
this
.
styleNineteen
,
styleTwenty
:
this
.
styleTwenty
,
styleTwentyOne
:
this
.
styleTwentyOne
,
styleTwentyTwo
:
this
.
styleTwentyTwo
,
styleTwentyThree
:
this
.
styleTwentyThree
,
styleTwentyFour
:
this
.
styleTwentyFour
,
styleTwentyFive
:
this
.
styleTwentyFive
,
styleTwentySix
:
this
.
styleTwentySix
,
styleThirty
:
this
.
styleThirty
,
styleThirtyOne
:
this
.
styleThirtyOne
,
styleThirtyTwo
:
this
.
styleThirtyTwo
}
},
getCommonStyleValues
(){
this
.
styleOne
=
this
.
$element
(
"
styleOne
"
).
getInspector
()
this
.
styleTwo
=
this
.
$element
(
"
styleTwo
"
).
getInspector
()
this
.
styleThree
=
this
.
$element
(
"
styleThree
"
).
getInspector
()
this
.
styleFour
=
this
.
$element
(
"
styleFour
"
).
getInspector
()
this
.
styleFive
=
this
.
$element
(
"
styleFive
"
).
getInspector
()
this
.
styleSix
=
this
.
$element
(
"
styleSix
"
).
getInspector
()
this
.
styleSeven
=
this
.
$element
(
"
styleSeven
"
).
getInspector
()
this
.
styleEight
=
this
.
$element
(
"
styleEight
"
).
getInspector
()
this
.
styleNine
=
this
.
$element
(
"
styleNine
"
).
getInspector
()
this
.
styleTen
=
this
.
$element
(
"
styleTen
"
).
getInspector
()
this
.
styleEleven
=
this
.
$element
(
"
styleEleven
"
).
getInspector
()
this
.
styleTwelve
=
this
.
$element
(
"
styleTwelve
"
).
getInspector
()
this
.
styleThirteen
=
this
.
$element
(
"
styleThirteen
"
).
getInspector
()
this
.
styleFourteen
=
this
.
$element
(
"
styleFourteen
"
).
getInspector
()
this
.
styleFifteen
=
this
.
$element
(
"
styleFifteen
"
).
getInspector
()
this
.
styleSixteen
=
this
.
$element
(
"
styleSixteen
"
).
getInspector
()
this
.
styleSeventeen
=
this
.
$element
(
"
styleSeventeen
"
).
getInspector
()
this
.
styleEighteen
=
this
.
$element
(
"
styleEighteen
"
).
getInspector
()
this
.
styleNineteen
=
this
.
$element
(
"
styleNineteen
"
).
getInspector
()
this
.
styleTwenty
=
this
.
$element
(
"
styleTwenty
"
).
getInspector
()
this
.
styleTwentyOne
=
this
.
$element
(
"
styleTwentyOne
"
).
getInspector
()
this
.
styleTwentyTwo
=
this
.
$element
(
"
styleTwentyTwo
"
).
getInspector
()
this
.
styleTwentyThree
=
this
.
$element
(
"
styleTwentyThree
"
).
getInspector
()
this
.
styleTwentyFour
=
this
.
$element
(
"
styleTwentyFour
"
).
getInspector
()
this
.
styleTwentyFive
=
this
.
$element
(
"
styleTwentyFive
"
).
getInspector
()
this
.
styleTwentySix
=
this
.
$element
(
"
styleTwentySix
"
).
getInspector
()
this
.
styleThirty
=
this
.
$element
(
"
styleThirty
"
).
getInspector
()
this
.
styleThirtyOne
=
this
.
$element
(
"
styleThirtyOne
"
).
getInspector
()
this
.
styleThirtyTwo
=
this
.
$element
(
"
styleThirtyTwo
"
).
getInspector
()
},
}
ace/ace_standard/src/main/js/default/pages/divider/prop/index.css
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
}
divider
{
color
:
#0d0000
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
padding
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
font-size
:
14px
;
text-align
:
left
;
margin
:
2px
;
padding
:
2px
;
}
.prop-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#idProp
{
flex-weight
:
1
;
background-color
:
#f00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.classProp
{
flex-weight
:
1
;
background-color
:
#0f0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#classPropNone
{
flex-weight
:
1
;
background-color
:
#0000e0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refProp
{
flex-weight
:
1
;
background-color
:
#00f000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#refPropNone
{
flex-weight
:
1
;
background-color
:
#00000e
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropTrue
{
flex-weight
:
1
;
background-color
:
#000f00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropFalse
{
flex-weight
:
1
;
background-color
:
#0000f0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#disabledPropNone
{
flex-weight
:
1
;
background-color
:
#d00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropTrue
{
flex-weight
:
1
;
background-color
:
#00000f
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropFalse
{
flex-weight
:
1
;
background-color
:
#ff0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#focusablePropNone
{
flex-weight
:
1
;
background-color
:
#0d0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataProp
{
flex-weight
:
1
;
background-color
:
#0ff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dataPropNone
{
flex-weight
:
1
;
background-color
:
#00d000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropSmall
{
height
:
15px
;
background-color
:
#00ff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropMedium
{
height
:
15px
;
background-color
:
#000ff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropLarge
{
height
:
15px
;
background-color
:
#fff000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#clickEffectPropNone
{
height
:
15px
;
background-color
:
#000d00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropRtl
{
flex-weight
:
1
;
background-color
:
#0fff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropAuto
{
flex-weight
:
1
;
background-color
:
#00fff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropLtr
{
flex-weight
:
1
;
background-color
:
#000fff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#dirPropNone
{
flex-weight
:
1
;
background-color
:
#0000d0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropNull
{
flex-weight
:
1
;
background-color
:
#ffff00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropOne
{
flex-weight
:
1
;
background-color
:
#00e000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#forPropThree
{
flex-weight
:
1
;
background-color
:
#000e00
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropTrue
{
flex-weight
:
1
;
background-color
:
#0ffff0
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropFalse
{
flex-weight
:
1
;
background-color
:
#00ffff
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#ifPropNone
{
flex-weight
:
1
;
background-color
:
#00000d
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropTrue
{
flex-weight
:
1
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropFalse
{
flex-weight
:
1
;
background-color
:
#0e0000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#showPropNone
{
flex-weight
:
1
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
.specific-container
{
flex-direction
:
column
;
flex-weight
:
1
;
}
#verticalTrue
{
height
:
10px
;
background-color
:
#c00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
#verticalFalse
{
height
:
10px
;
background-color
:
#e00000
;
width
:
100%
;
margin-left
:
10px
;
margin-right
:
10px
;
padding-start
:
10px
;
padding-end
:
10px
;
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/divider/prop/index.hml
0 → 100644
浏览文件 @
c689eab2
<!--/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/-->
<div class="container">
<div class="prop-container">
<text class="title">
divider通用属性
</text>
<text class="sub-title">
通用属性 -- id
</text>
<divider id="idProp">
</divider>
<text class="sub-title">
通用属性 -- class
</text>
<divider id="classProp"
class="classProp">
</divider>
<divider id="classPropNone"
class="">
</divider>
<text class="sub-title">
通用属性 -- style
</text>
<divider id="styleProp"
style="width:10%;height:20px;background-color:red">
</divider>
<text class="sub-title">
通用属性 -- ref
</text>
<divider id="refProp"
ref="refProp">
</divider>
<divider id="refPropNone"
ref="">
</divider>
<text class="sub-title">
通用属性 -- disabled
</text>
<divider id="disabledPropTrue"
disabled="true">
</divider>
<divider id="disabledPropFalse"
disabled="false">
</divider>
<divider id="disabledPropNone"
disabled="">
</divider>
<text class="sub-title">
通用属性 -- focusable
</text>
<divider id="focusablePropTrue"
focusable="true">
</divider>
<divider id="focusablePropFalse"
focusable="false">
</divider>
<divider id="focusablePropNone"
focusable="">
</divider>
<text class="sub-title">
通用属性 -- data-*
</text>
<divider id="dataProp"
data-divider="通用属性 -- data-*">
</divider>
<divider id="dataPropNone"
data-divider="">
</divider>
<text class="sub-title">
通用属性 -- click-effect
</text>
<divider id="clickEffectPropSmall"
click-effect="spring-small">
</divider>
<divider id="clickEffectPropMedium"
click-effect="spring-medium">
</divider>
<divider id="clickEffectPropLarge"
click-effect="spring-large">
</divider>
<divider id="clickEffectPropNone"
click-effect="">
</divider>
<text class="sub-title">
通用属性 -- dir
</text>
<divider id="dirPropRtl"
dir="rtl">
</divider>
<divider id="dirPropAuto"
dir="auto">
</divider>
<divider id="dirPropLtr"
dir="ltr">
</divider>
<divider id="dirPropNone"
dir="">
</divider>
<text class="sub-title">
渲染属性 -- for
</text>
<divider id="forPropNull"
for="">
</divider>
<divider id="forPropOne"
for="{{listOne}}">
</divider>
<divider id="forPropThree"
for="{{listThree}}">
</divider>
<text class="sub-title">
渲染属性 -- if
</text>
<divider id="ifPropTrue"
if="true">
</divider>
<divider id="ifPropFalse"
if="false">
</divider>
<divider id="ifPropNone"
if="">
</divider>
<text class="sub-title">
渲染属性 -- show
</text>
<divider id="showPropTrue"
show="true">
</divider>
<divider id="showPropFalse"
show="false">
</divider>
<divider id="showPropNone"
show="none">
</divider>
</div>
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
<div class="specific-container">
<text class="title">
divider特有属性
</text>
<text class="sub-title">
divider特有属性 -- vertical
</text>
<divider id="verticalTrue" vertical="true"></divider>
<divider id="verticalFalse" vertical="false"></divider>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/divider/prop/index.js
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
export
default
{
data
:{
listOne
:[{}],
listThree
:[{},{},{}],
idProp
:
null
,
classProp
:
null
,
classPropNone
:
null
,
styleProp
:
null
,
refProp
:
null
,
refPropNone
:
null
,
disabledPropTrue
:
null
,
disabledPropFalse
:
null
,
disabledPropNone
:
null
,
focusablePropTrue
:
null
,
focusablePropFalse
:
null
,
focusablePropNone
:
null
,
dataProp
:
null
,
dataPropNone
:
null
,
clickEffectPropSmall
:
null
,
clickEffectPropMedium
:
null
,
clickEffectPropLarge
:
null
,
clickEffectPropNone
:
null
,
dirPropRtl
:
null
,
dirPropAuto
:
null
,
dirPropLtr
:
null
,
dirPropNone
:
null
,
forPropNull
:
null
,
forPropOne
:
null
,
forPropThree
:
null
,
ifPropTrue
:
null
,
ifPropFalse
:
null
,
ifPropNone
:
null
,
showPropTrue
:
null
,
showPropFalse
:
null
,
showPropNone
:
null
,
verticalTrue
:
null
,
verticalFalse
:
null
},
onCreate
(){
this
.
getCommonPropValues
();
this
.
getSpecificPropValues
();
globalThis
.
value
=
{
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
,
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
,
ifPropFalse
:
this
.
ifPropFalse
,
ifPropNone
:
this
.
ifPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
verticalTrue
:
this
.
verticalTrue
,
verticalFalse
:
this
.
verticalFalse
}
},
getCommonPropValues
(){
this
.
idProp
=
this
.
$element
(
"
idProp
"
).
getInspector
()
this
.
classProp
=
this
.
$element
(
"
classProp
"
).
getInspector
()
this
.
classPropNone
=
this
.
$element
(
"
classPropNone
"
).
getInspector
()
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refPropNone
=
this
.
$element
(
"
refPropNone
"
).
getInspector
()
this
.
disabledPropTrue
=
this
.
$element
(
"
disabledPropTrue
"
).
getInspector
()
this
.
disabledPropFalse
=
this
.
$element
(
"
disabledPropFalse
"
).
getInspector
()
this
.
disabledPropNone
=
this
.
$element
(
"
disabledPropNone
"
).
getInspector
()
this
.
focusablePropTrue
=
this
.
$element
(
"
focusablePropTrue
"
).
getInspector
()
this
.
focusablePropFalse
=
this
.
$element
(
"
focusablePropFalse
"
).
getInspector
()
this
.
focusablePropNone
=
this
.
$element
(
"
focusablePropNone
"
).
getInspector
()
this
.
dataProp
=
this
.
$element
(
"
dataProp
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
this
.
clickEffectPropMedium
=
this
.
$element
(
"
clickEffectPropMedium
"
).
getInspector
()
this
.
clickEffectPropLarge
=
this
.
$element
(
"
clickEffectPropLarge
"
).
getInspector
()
this
.
clickEffectPropNone
=
this
.
$element
(
"
clickEffectPropNone
"
).
getInspector
()
this
.
dirPropRtl
=
this
.
$element
(
"
dirPropRtl
"
).
getInspector
()
this
.
dirPropAuto
=
this
.
$element
(
"
dirPropAuto
"
).
getInspector
()
this
.
dirPropLtr
=
this
.
$element
(
"
dirPropLtr
"
).
getInspector
()
this
.
dirPropNone
=
this
.
$element
(
"
dirPropNone
"
).
getInspector
()
this
.
forPropNull
=
this
.
$element
(
"
forPropNull
"
).
getInspector
()
this
.
forPropOne
=
this
.
$element
(
"
forPropOne
"
).
getInspector
()
this
.
forPropThree
=
this
.
$element
(
"
forPropThree
"
).
getInspector
()
this
.
ifPropTrue
=
this
.
$element
(
"
ifPropTrue
"
).
getInspector
()
this
.
ifPropFalse
=
this
.
$element
(
"
ifPropFalse
"
).
getInspector
()
this
.
ifPropNone
=
this
.
$element
(
"
ifPropNone
"
).
getInspector
()
this
.
showPropTrue
=
this
.
$element
(
"
showPropTrue
"
).
getInspector
()
this
.
showPropFalse
=
this
.
$element
(
"
showPropFalse
"
).
getInspector
()
this
.
showPropNone
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
return
},
getSpecificPropValues
()
{
this
.
verticalTrue
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
this
.
verticalTrue
=
this
.
$element
(
"
showPropNone
"
).
getInspector
()
return
}
}
ace/ace_standard/src/main/js/default/pages/divider/router/index.css
0 → 100644
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
row
;
width
:
100%
;
height
:
100%
;
padding
:
1px
;
}
.sub-container
{
flex-direction
:
column
;
height
:
100%
;
flex-weight
:
1
;
}
.style-container
{
flex-direction
:
column
;
height
:
70%
;
}
.contain1
{
width
:
100%
;
height
:
15%
;
flex-direction
:
column
;
}
.ani-container
{
flex-direction
:
column
;
height
:
100%
;
flex-weight
:
1
;
}
.prop-container
{
flex-direction
:
column
;
height
:
45%
;
padding-left
:
2px
;
}
.event-container
{
flex-direction
:
column
;
height
:
40%
;
}
.function-container
{
flex-direction
:
column
;
height
:
25%
;
}
.gradient-container
{
flex-direction
:
column
;
height
:
40%
;
}
.access-container
{
flex-direction
:
column
;
height
:
15%
;
}
.atom-container
{
flex-direction
:
column
;
height
:
45%
;
}
.multimode-container
{
flex-direction
:
column
;
height
:
45%
;
}
.title
{
width
:
100%
;
font-size
:
18px
;
margin
:
2px
;
font-weight
:
bold
;
text-align
:
center
;
}
.sub-title
{
width
:
100%
;
height
:
25px
;
font-size
:
15px
;
text-align
:
left
;
margin-bottom
:
1px
;
padding
:
2px
;
}
divider
{
color
:
darkblue
;
}
.style1
{
width
:
100%
;
mask-color
:
red
;
height
:
100%
;
min-width
:
25px
;
min-height
:
10px
;
max-width
:
300px
;
max-height
:
50px
;
padding-left
:
10px
;
padding-top
:
1px
;
padding-right
:
15px
;
padding-bottom
:
1px
;
margin-left
:
10px
;
margin-top
:
0px
;
margin-right
:
15px
;
margin-bottom
:
5px
;
border-left-style
:
solid
;
border-right-style
:
dashed
;
border-top-style
:
dashed
;
border-bottom-style
:
dotted
;
border-left-width
:
1px
;
border-right-width
:
2px
;
border-top-width
:
2px
;
border-bottom-width
:
1px
;
border-left-color
:
#ff0000
;
border-right-color
:
#00ff00
;
border-top-color
:
#0000ff
;
border-bottom-color
:
#fff000
;
border-bottom-left-radius
:
10px
;
border-bottom-right-radius
:
15px
;
border-top-left-radius
:
8px
;
border-top-right-radius
:
12px
;
background
:
linear-gradient
(
pink
,
#fff000
);
box-shadow
:
2px
4px
6px
8px
#888888
;
opacity
:
0.5
;
display
:
flex
;
visibility
:
visible
;
align-self
:
center
;
image-fill
:
#000fff
;
clip-path
:
margin-box
;
}
.style2
{
height
:
200px
;
margin
:
10px
;
color
:
red
;
stroke-width
:
5px
;
display
:
flex
;
visibility
:
visible
;
line-cap
:
square
;
flex-grow
:
1
;
flex-shrink
:
1
;
flex-basis
:
1
;
}
.event1
{
width
:
100%
;
height
:
40px
;
background-color
:
salmon
;
}
.event2
{
width
:
100%
;
height
:
40px
;
background-color
:
darkorchid
;
}
.event3
{
width
:
100%
;
height
:
40px
;
background-color
:
#ad4e2a
;
}
.event4
{
width
:
100%
;
height
:
40px
;
background-color
:
blanchedalmond
;
}
.event5
{
width
:
100%
;
height
:
40px
;
background-color
:
blanchedalmond
;
}
#prop1
{
background-color
:
mediumslateblue
;
height
:
40px
;
margin
:
2px
;
}
.prop2
{
background-color
:
salmon
;
height
:
40px
;
margin
:
2px
;
}
.prop4
{
background-color
:
skyblue
;
height
:
40px
;
margin
:
2px
;
}
.prop5
{
background-color
:
gold
;
height
:
40px
;
width
:
100%
;
margin
:
2px
;
}
.ani1
{
color
:
#72ac33
;
margin
:
5px
;
transform-origin
:
0%
0%
;
animation
:
ani1Go
3s
infinite
;
}
@keyframes
ani1Go
{
from
{
background-color
:
#f76160
;
opacity
:
0.3
;
width
:
50px
;
height
:
50px
;
transform
:
translate
(
20px
)
rotate
(
10deg
)
scale
(
0.2
)
skew
(
40deg
);
background-position
:
10%
10%
}
30
%
{
background-color
:
#60f761
;
opacity
:
0.5
;
width
:
70px
;
height
:
70px
;
background-position
:
12%
12%
;
transform
:
translateX
(
10px
)
translateY
(
5px
)
rotateX
(
20deg
)
rotateY
(
25deg
)
scaleX
(
0.6
)
scaleY
(
0.5
)
skewX
(
25deg
)
skewY
(
15deg
)
}
to
{
background-color
:
#6160f7
;
opacity
:
1
;
width
:
90px
;
height
:
90px
;
background-position
:
22%
22%
;
transform
:
rotate
(
180deg
)
scale
(
2
)
}
}
.ani2
{
background-color
:
#ad4e2a
;
width
:
100%
;
height
:
55px
;
margin
:
5px
;
}
.gradient1
{
margin
:
5px
;
height
:
40px
;
background
:
linear-gradient
(
red
,
#00ff00
);
}
.gradient2
{
margin
:
5px
;
height
:
40px
;
background
:
linear-gradient
(
45deg
,
rgb
(
255
,
0
,
0
),
rgb
(
0
,
255
,
0
));
}
.gradient3
{
margin
:
5px
;
height
:
40px
;
background
:
linear-gradient
(
to
right
,
rgb
(
255
,
0
,
0
)
90px
,
rgb
(
0
,
255
,
0
)
60%
);
}
.gradient4
{
margin
:
5px
;
height
:
40px
;
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access1
{
color
:
#321124
;
height
:
40px
;
margin
:
5px
;
}
.multimode1
{
background-color
:
firebrick
;
height
:
40px
;
margin
:
5px
;
}
.function1
{
background-color
:
#ff0000
;
width
:
60%
;
height
:
30px
;
}
.function2
{
background-color
:
#00ff00
;
width
:
60%
;
height
:
30px
;
}
.function3
{
background-color
:
#0000ff
;
width
:
100%
;
height
:
30px
;
}
.function4
{
flex-direction
:
row
;
width
:
60%
;
height
:
60px
;
overflow
:
scroll
;
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/divider/index.hml
→
ace/ace_standard/src/main/js/default/pages/divider/
router/
index.hml
浏览文件 @
c689eab2
...
...
@@ -14,50 +14,46 @@
*/-->
<div class="container">
<div class="style-container">
<text class="title">
通用样式
</text>
<text class="sub-title">
divider通用样式1
</text>
<divider class="style1" vertical="false">
</divider>
<text class="sub-title">
divider通用样式2
</text>
<divider class="style2" vertical="true">
</divider>
<text class="sub-title">
divider通用样式3
</text>
<divider class="style3" vertical="false">
</divider>
<text class="sub-title">
divider通用样式4
</text>
<divider class="style4" vertical="false">
<div class="sub-container">
<!-- 通用样式 -->
<div class="style-container">
<text class="title">
通用样式
</text>
<text class="sub-title">
仅支持如下样式
</text>
<divider class="style2" id="style2"></divider>
</div>
<divider style="color: #000000; stroke-width: 2px;" vertical="false">
</divider>
<text class="sub-title">
divider通用样式5
</text>
<div class="contain1">
<divider class="style5" vertical="false">
<!-- 动画 -->
<div class="ani-container">
<text class="title">
动画样式
</text>
<text class="sub-title">
divider动画样式1
</text>
<divider id="ani1" class="ani1">
</divider>
<divider class="style6" vertical="false">
<text class="sub-title">
divider动画样式2
</text>
<divider id="ani2" class="ani2">
</divider>
</div>
<text class="sub-title">
divider特有样式
</text>
<divider class="style7" vertical="false">
</divider>
</div>
<div
ider style="color: #000000; stroke-width: 2px;" vertical="true
">
</div
ider
>
<div
style="background-color: #000000; width: 2px; height: 100%;
">
</div>
<div class="sub-container">
<!-- 通用属性 -->
<div class="prop-container">
<text class="title">
通用属性
...
...
@@ -65,88 +61,106 @@
<text class="sub-title">
divider通用属性1
</text>
<divider id="prop1"
disabled = "true" focusable ="true"
data-name ="prop1" click-effect="spring-medium"
dir ="rtl">
<divider id="prop1"
class="prop1"
disabled = "true"
focusable ="true"
data-name ="prop1"
click-effect="spring-medium"
dir ="rtl">
</divider>
<text class="sub-title">
divider通用属性2
</text>
<divider class="prop2" ref ="prop2"
disabled = "false" focusable ="false"
data-name ="prop2" click-effect="spring-large"
dir ="ltr">
<divider class="prop2"
ref ="prop2"
disabled = "false"
focusable ="false"
data-name ="prop2"
click-effect="spring-large"
dir ="ltr">
</divider>
<text class="sub-title">
divider通用属性3
</text>
<divider
style="color: #679855; stroke-width: 15px; line-cap: round; margin: 5px;"
>
<divider
id="prop3" style="color: #679855; margin: 5px;width: 100%;height: 40px;" class="prop3"
>
</divider>
<text class="sub-title">
divider特有属性4
</text>
<divider
class="prop4" vertical="fals
e">
<divider
id="prop4" class="prop4" vertical="tru
e">
</divider>
<text class="sub-title">
divider特有属性5
</text>
<divider
class="prop5" vertical="tru
e">
<divider
id="prop5" class="prop5" vertical="fals
e">
</divider>
</div>
<divider style="color: #000000; stroke-width: 2px;" vertical="false">
</divider>
<div class="ani-container">
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 通用事件 -->
<div class="event-container" >
<text class="title">
动画样式
通用事件
</text>
<text class="sub-title">
divider
动画样式1
<text
class="sub-title">
divider
不支持通用事件
</text>
<divider class="ani1" >
</divider>
<text class="sub-title">
divider动画样式2
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 通用方法 -->
<div class="function-container">
<text class="title">
通用方法
</text>
<text class="sub-title">
divider不支持通用方法
</text>
<divider class="ani2" >
</divider>
</div>
</div>
<div
ider style="color: #000000; stroke-width: 2px;" vertical="true
">
</div
ider
>
<div
style="background-color: #000000; width: 2px; height: 100%;
">
</div>
<div class="sub-container">
<!-- 渐变样式 -->
<div class="gradient-container">
<text class="title">
渐变样式
</text>
<text class="sub-title">
divider渐变样式1
</text>
<divider class="gradient1">
<divider
id="gradient1"
class="gradient1">
</divider>
<text class="sub-title">
divider渐变样式2
</text>
<divider class="gradient2">
<divider
id="gradient2"
class="gradient2">
</divider>
<text class="sub-title">
divider渐变样式3
</text>
<divider class="gradient3">
<divider
id="gradient3"
class="gradient3">
</divider>
<text class="sub-title">
divider渐变样式4
</text>
<divider class="gradient4">
<divider
id="gradient4"
class="gradient4">
</divider>
</div>
<divider style="color: #000000; stroke-width: 2px;" vertical="false">
</divider>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<!-- 无障碍 -->
<div class="access-container">
<text class="title">
无障碍
...
...
@@ -155,13 +169,13 @@
divider无障碍1
</text>
<divider class="access1" accessibilitygroup ="true"
accessibilitytext="这是divider
"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants">
accessibilitytext="这是div
"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants">
</divider>
</div>
<div
ider style="color: #000000; stroke-width: 2px;" vertical="false
">
</div
ider
>
<div
style="background-color: #000000; width: 100%; height: 2px;
">
</div>
<div class="atom-container">
<text class="title">
原子布局
...
...
@@ -170,66 +184,76 @@
divider原子布局1
</text>
<div style="flex-direction: row;height: 30px;width: 100%;">
<div
ider vertical="true" style="width
:20px;background-color: blue;display-index: 1;">
</div
ider
>
<div
ider vertical="true" style="width:3
0px;background-color: black;display-index: 5;">
</div
ider
>
<div
ider vertical="true" style="width:4
0px;background-color: yellow;display-index: 4;">
</div
ider
>
<div
ider vertical="true" style="width:1
0px;background-color: red;display-index: 3;">
</div
ider
>
<div
ider vertical="true" style="width:25
px;background-color:pink;display-index: 7;">
</div
ider
>
<div
ider vertical="true" style="width:15
px;background-color: palegoldenrod;display-index: 2;">
</div
ider
>
<div
style="width:20px;height
:20px;background-color: blue;display-index: 1;">
</div>
<div
style="width:30px; height:2
0px;background-color: black;display-index: 5;">
</div>
<div
style="width:40px; height:2
0px;background-color: yellow;display-index: 4;">
</div>
<div
style="width:10px; height:2
0px;background-color: red;display-index: 3;">
</div>
<div
style="width:25px; height:20
px;background-color:pink;display-index: 7;">
</div>
<div
style="width:15px; height:20
px;background-color: palegoldenrod;display-index: 2;">
</div>
</div>
<text class="sub-title">
divider原子布局2
</text>
<div style="flex-direction: row;height: 30px;width: 100%;">
<divider
vertical="true" style="
background-color: blue;flex-weight: 1;">
<divider
style="height:20px;
background-color: blue;flex-weight: 1;">
</divider>
<divider
vertical="true" style="
background-color: black;flex-weight: 5;">
<divider
style="height:20px;
background-color: black;flex-weight: 5;">
</divider>
<divider
vertical="true" style="
background-color: yellow;flex-weight: 4;">
<divider
style="height:20px;
background-color: yellow;flex-weight: 4;">
</divider>
<divider
vertical="true" style="
background-color: red;flex-weight: 3;">
<divider
style="height:20px;
background-color: red;flex-weight: 3;">
</divider>
<divider
vertical="true" style="
background-color:pink;flex-weight: 7;">
<divider
style="height:20px;
background-color:pink;flex-weight: 7;">
</divider>
<divider
vertical="true" style="
background-color: palegoldenrod;flex-weight: 2;">
<divider
style="height:20px;
background-color: palegoldenrod;flex-weight: 2;">
</divider>
</div>
<text class="sub-title">
divider原子布局3
</text>
<div style="flex-direction: row;height:60px;width: 100%;">
<divider
vertical="true"
style="width:30px;background-color: blue;aspect-ratio: 0.6;">
<divider style="width:30px;background-color: blue;aspect-ratio: 0.6;">
</divider>
<divider
vertical="true"
style="width:30px;background-color: black;aspect-ratio:0.5;">
<divider style="width:30px;background-color: black;aspect-ratio:0.5;">
</divider>
<divider
vertical="true"
style="width:30px;background-color: yellow;aspect-ratio: 1.5;">
<divider style="width:30px;background-color: yellow;aspect-ratio: 1.5;">
</divider>
<divider
vertical="true"
style="width:30px;background-color: red;aspect-ratio: 1.3;">
<divider style="width:30px;background-color: red;aspect-ratio: 1.3;">
</divider>
<divider
vertical="true"
style="width:30px;background-color:pink;aspect-ratio: 1;">
<divider style="width:30px;background-color:pink;aspect-ratio: 1;">
</divider>
<divider vertical="true" style="width:30px;background-color: palegoldenrod;aspect-ratio:2;">
<divider style="width:30px;background-color: palegoldenrod;aspect-ratio:2;">
</divider>
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<div class="multimode-container">
<text class="title">
多模输入
</text>
<text class="sub-title">
divider多模输入1
</text>
<divider id="multiMode1"
class="multiMode1"
voicelabel = "voice"
subscriptflag="on"
subscriptlabel="div"
scenelabel="common">
</divider>
</div>
</div>
<divider style="color: #000000; stroke-width: 2px;" vertical="false">
</divider>
<div class="multimode-container">
<text class="title">
多模输入
</text>
<text class="sub-title">
divider多模输入1
</text>
<divider class="multimode1" voicelabel = "voice"
subscriptflag="on" subscriptlabel="divider" scenelabel="common">
</divider>
</div>
</div>
</div>
ace/ace_standard/src/main/js/default/pages/divider/index.js
→
ace/ace_standard/src/main/js/default/pages/divider/
router/
index.js
浏览文件 @
c689eab2
/**
* Copyright (c) 2022 Shenzhen
Kaih
ong Digital Industry Development Co., Ltd.
* Copyright (c) 2022 Shenzhen
kaiH
ong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -15,18 +15,90 @@
import
prompt
from
'
@system.prompt
'
;
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
'
},
];
export
default
{
data
:
{
title
:
'
World
'
onMenuSelected
(
e
)
{
prompt
.
showToast
({
message
:
e
.
value
})
},
onShow
(){
// 通用属性
var
prop1
=
this
.
$element
(
"
prop1
"
);
var
prop1
=
this
.
$element
(
'
prop1
'
);
var
name1
=
prop1
.
dataSet
.
name
var
prop2
=
this
.
$refs
.
prop2
;
var
name2
=
prop2
.
dataSet
.
name
prompt
.
showToast
({
message
:
'
prop1--
'
+
name1
+
'
\n
prop2--
'
+
name2
});
}
}
\ No newline at end of file
},
}
ace/ace_standard/src/main/js/default/test/List.test.js
浏览文件 @
c689eab2
...
...
@@ -17,4 +17,5 @@ require('./basicabilityapi.test.js')
require
(
'
./mediaquery.test.js
'
)
require
(
'
./commonComponentJsApi.test.js
'
)
require
(
'
./divProps.test.js
'
)
require
(
'
./buttonProps.test.js
'
)
ace/ace_standard/src/main/js/default/test/buttonProps.test.js
0 → 100644
浏览文件 @
c689eab2
此差异已折叠。
点击以展开。
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
c689eab2
...
...
@@ -89,7 +89,7 @@ describe('aceJsTest', function () {
console
.
info
(
'
testButtonComponent START
'
);
let
result
;
let
options
=
{
uri
:
'
pages/button/index
'
uri
:
'
pages/button/
router/
index
'
}
try
{
result
=
router
.
push
(
options
)
...
...
@@ -100,7 +100,7 @@ describe('aceJsTest', function () {
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.button] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/button/
"
).
assertEqual
(
pages
.
path
);
expect
(
"
pages/button/
router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
...
...
@@ -227,7 +227,7 @@ describe('aceJsTest', function () {
it
(
'
testDividerComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/divider/index
'
uri
:
'
pages/divider/
router/
index
'
}
try
{
result
=
router
.
push
(
options
)
...
...
@@ -236,7 +236,7 @@ describe('aceJsTest', function () {
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/divider/
"
).
assertEqual
(
pages
.
path
);
expect
(
"
pages/divider/
router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
...
...
ace/ace_standard/src/main/js/default/test/divProps.test.js
浏览文件 @
c689eab2
...
...
@@ -27,7 +27,7 @@ describe('divPropsJsTest', function () {
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
}
}
;
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -158,7 +158,6 @@ describe('divPropsJsTest', function () {
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[divProps] get style background-color value is: " + JSON.stringify(obj.$styles.get('background-color')));
// done();
// });
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录