Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ed5eb721
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看板
提交
ed5eb721
编写于
2月 21, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改代码规范问题
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
04951709
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
66 addition
and
190 deletion
+66
-190
ace/ace_standard/src/main/js/default/pages/button/prop/index.js
...e_standard/src/main/js/default/pages/button/prop/index.js
+6
-3
ace/ace_standard/src/main/js/default/pages/chart/prop/index.js
...ce_standard/src/main/js/default/pages/chart/prop/index.js
+6
-3
ace/ace_standard/src/main/js/default/pages/image/prop/index.js
...ce_standard/src/main/js/default/pages/image/prop/index.js
+6
-3
ace/ace_standard/src/main/js/default/pages/menu/prop/index.js
...ace_standard/src/main/js/default/pages/menu/prop/index.js
+6
-18
ace/ace_standard/src/main/js/default/pages/span/prop/index.css
...ce_standard/src/main/js/default/pages/span/prop/index.css
+1
-1
ace/ace_standard/src/main/js/default/pages/span/prop/index.hml
...ce_standard/src/main/js/default/pages/span/prop/index.hml
+25
-24
ace/ace_standard/src/main/js/default/pages/span/prop/index.js
...ace_standard/src/main/js/default/pages/span/prop/index.js
+6
-18
ace/ace_standard/src/main/js/default/pages/switch/prop/index.js
...e_standard/src/main/js/default/pages/switch/prop/index.js
+8
-4
ace/ace_standard/src/main/js/default/test/menuProps.test.js
ace/ace_standard/src/main/js/default/test/menuProps.test.js
+2
-116
未找到文件。
ace/ace_standard/src/main/js/default/pages/button/prop/index.js
浏览文件 @
ed5eb721
...
@@ -77,9 +77,12 @@ export default {
...
@@ -77,9 +77,12 @@ export default {
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
...
...
ace/ace_standard/src/main/js/default/pages/chart/prop/index.js
浏览文件 @
ed5eb721
...
@@ -137,9 +137,12 @@ export default {
...
@@ -137,9 +137,12 @@ export default {
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
...
...
ace/ace_standard/src/main/js/default/pages/image/prop/index.js
浏览文件 @
ed5eb721
...
@@ -63,9 +63,12 @@ export default {
...
@@ -63,9 +63,12 @@ export default {
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
...
...
ace/ace_standard/src/main/js/default/pages/menu/prop/index.js
浏览文件 @
ed5eb721
...
@@ -28,12 +28,6 @@ export default {
...
@@ -28,12 +28,6 @@ export default {
styleProp
:
null
,
styleProp
:
null
,
refProp
:
null
,
refProp
:
null
,
refPropNone
:
null
,
refPropNone
:
null
,
disabledPropTrue
:
null
,
disabledPropFalse
:
null
,
disabledPropNone
:
null
,
focusablePropTrue
:
null
,
focusablePropFalse
:
null
,
focusablePropNone
:
null
,
dataProp
:
null
,
dataProp
:
null
,
dataPropNone
:
null
,
dataPropNone
:
null
,
clickEffectPropSmall
:
null
,
clickEffectPropSmall
:
null
,
...
@@ -66,12 +60,12 @@ export default {
...
@@ -66,12 +60,12 @@ export default {
globalThis
.
value
=
{
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
d
isabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFals
e
,
d
ataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNon
e
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectProp
Medium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectProp
None
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
...
@@ -88,12 +82,6 @@ export default {
...
@@ -88,12 +82,6 @@ export default {
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refPropNone
=
this
.
$element
(
"
refPropNone
"
).
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
.
dataProp
=
this
.
$element
(
"
dataProp
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
...
...
ace/ace_standard/src/main/js/default/pages/span/prop/index.css
浏览文件 @
ed5eb721
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
flex-weight
:
1
;
flex-weight
:
1
;
}
}
.
idProp
{
.
spanTextTitle
{
height
:
15px
;
height
:
15px
;
font-size
:
10px
;
font-size
:
10px
;
margin-bottom
:
2px
;
margin-bottom
:
2px
;
...
...
ace/ace_standard/src/main/js/default/pages/span/prop/index.hml
浏览文件 @
ed5eb721
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- id
通用属性 -- id
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="idProp">
<span id="idProp">
span
span
</span>
</span>
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- class
通用属性 -- class
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="classProp"
<span id="classProp"
class="classProp">
class="classProp">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="classPropNone"
<span id="classPropNone"
class="">
class="">
span
span
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- style
通用属性 -- style
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="styleProp"
<span id="styleProp"
style="width:80%;height:20px;background-color:red">
style="width:80%;height:20px;background-color:red">
span
span
...
@@ -61,13 +61,13 @@
...
@@ -61,13 +61,13 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- ref
通用属性 -- ref
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="refProp"
<span id="refProp"
ref="refProp">
ref="refProp">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="refPropNone"
<span id="refPropNone"
ref="">
ref="">
span
span
...
@@ -77,13 +77,13 @@
...
@@ -77,13 +77,13 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- data-*
通用属性 -- data-*
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dataProp"
<span id="dataProp"
data-Span="通用属性 -- data-Span">
data-Span="通用属性 -- data-Span">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dataPropNone"
<span id="dataPropNone"
data-Span="">
data-Span="">
span
span
...
@@ -93,25 +93,25 @@
...
@@ -93,25 +93,25 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- click-effect
通用属性 -- click-effect
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="clickEffectPropSmall"
<span id="clickEffectPropSmall"
click-effect="spring-small">
click-effect="spring-small">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="clickEffectPropMedium"
<span id="clickEffectPropMedium"
click-effect="spring-medium">
click-effect="spring-medium">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="clickEffectPropLarge"
<span id="clickEffectPropLarge"
click-effect="spring-large">
click-effect="spring-large">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="clickEffectPropNone"
<span id="clickEffectPropNone"
click-effect="">
click-effect="">
span
span
...
@@ -121,25 +121,25 @@
...
@@ -121,25 +121,25 @@
<text class="sub-title">
<text class="sub-title">
通用属性 -- dir
通用属性 -- dir
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dirPropRtl"
<span id="dirPropRtl"
dir="rtl">
dir="rtl">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dirPropAuto"
<span id="dirPropAuto"
dir="auto">
dir="auto">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dirPropLtr"
<span id="dirPropLtr"
dir="ltr">
dir="ltr">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="dirPropNone"
<span id="dirPropNone"
dir="">
dir="">
span
span
...
@@ -149,19 +149,19 @@
...
@@ -149,19 +149,19 @@
<text class="sub-title">
<text class="sub-title">
渲染属性 -- for
渲染属性 -- for
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="forPropNull"
<span id="forPropNull"
for="">
for="">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="forPropOne"
<span id="forPropOne"
for="{{listOne}}">
for="{{listOne}}">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="forPropThree"
<span id="forPropThree"
for="{{listThree}}">
for="{{listThree}}">
span
span
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<text class="sub-title">
<text class="sub-title">
渲染属性 -- if
渲染属性 -- if
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="ifPropTrue"
<span id="ifPropTrue"
if="true">
if="true">
span
span
...
@@ -182,21 +182,21 @@
...
@@ -182,21 +182,21 @@
<text class="sub-title">
<text class="sub-title">
渲染属性 -- show
渲染属性 -- show
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="showPropTrue"
<span id="showPropTrue"
show="true">
show="true">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="showPropFalse"
<span id="showPropFalse"
show="false">
show="false">
span
span
</span>
</span>
</text>
</text>
<text class="
idProp
">
<text class="
spanTextTitle
">
<span id="showPropNone"
<span id="showPropNone"
show="
false
">
show="">
span
span
</span>
</span>
</text>
</text>
...
@@ -204,6 +204,7 @@
...
@@ -204,6 +204,7 @@
<div style="background-color: #000000; width: 2px; height: 100%;">
<div style="background-color: #000000; width: 2px; height: 100%;">
</div>
</div>
<div class="specific-container">
<div class="specific-container">
</div>
</div>
...
...
ace/ace_standard/src/main/js/default/pages/span/prop/index.js
浏览文件 @
ed5eb721
...
@@ -26,12 +26,6 @@ export default {
...
@@ -26,12 +26,6 @@ export default {
styleProp
:
null
,
styleProp
:
null
,
refProp
:
null
,
refProp
:
null
,
refPropNone
:
null
,
refPropNone
:
null
,
disabledPropTrue
:
null
,
disabledPropFalse
:
null
,
disabledPropNone
:
null
,
focusablePropTrue
:
null
,
focusablePropFalse
:
null
,
focusablePropNone
:
null
,
dataProp
:
null
,
dataProp
:
null
,
dataPropNone
:
null
,
dataPropNone
:
null
,
clickEffectPropSmall
:
null
,
clickEffectPropSmall
:
null
,
...
@@ -56,12 +50,12 @@ export default {
...
@@ -56,12 +50,12 @@ export default {
globalThis
.
value
=
{
globalThis
.
value
=
{
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
idProp
:
this
.
idProp
,
classProp
:
this
.
classProp
,
classPropNone
:
this
.
classPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
styleProp
:
this
.
styleProp
,
refProp
:
this
.
refProp
,
refPropNone
:
this
.
refPropNone
,
d
isabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFals
e
,
d
ataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNon
e
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectProp
Medium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectProp
None
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
...
@@ -74,12 +68,6 @@ export default {
...
@@ -74,12 +68,6 @@ export default {
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
styleProp
=
this
.
$element
(
"
styleProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refProp
=
this
.
$element
(
"
refProp
"
).
getInspector
()
this
.
refPropNone
=
this
.
$element
(
"
refPropNone
"
).
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
.
dataProp
=
this
.
$element
(
"
dataProp
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
dataPropNone
=
this
.
$element
(
"
dataPropNone
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
this
.
clickEffectPropSmall
=
this
.
$element
(
"
clickEffectPropSmall
"
).
getInspector
()
...
...
ace/ace_standard/src/main/js/default/pages/switch/prop/index.js
浏览文件 @
ed5eb721
...
@@ -70,12 +70,16 @@ export default {
...
@@ -70,12 +70,16 @@ export default {
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropTrue
:
this
.
disabledPropTrue
,
disabledPropFalse
:
this
.
disabledPropFalse
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
disabledPropNone
:
this
.
disabledPropNone
,
focusablePropTrue
:
this
.
focusablePropTrue
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
focusablePropFalse
:
this
.
focusablePropFalse
,
focusablePropNone
:
this
.
focusablePropNone
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
dataProp
:
this
.
dataProp
,
dataPropNone
:
this
.
dataPropNone
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropSmall
:
this
.
clickEffectPropSmall
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
clickEffectPropMedium
:
this
.
clickEffectPropMedium
,
clickEffectPropLarge
:
this
.
clickEffectPropLarge
,
clickEffectPropNone
:
this
.
clickEffectPropNone
,
dirPropRtl
:
this
.
dirPropRtl
,
dirPropAuto
:
this
.
dirPropAuto
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
dirPropLtr
:
this
.
dirPropLtr
,
dirPropNone
:
this
.
dirPropNone
,
forPropNull
:
this
.
forPropNull
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
forPropOne
:
this
.
forPropOne
,
forPropThree
:
this
.
forPropThree
,
ifPropTrue
:
this
.
ifPropTrue
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
showPropTrue
:
this
.
showPropTrue
,
showPropFalse
:
this
.
showPropFalse
,
showPropNone
:
this
.
showPropNone
,
checkedTrue
:
this
.
checkedTrue
,
checkedFalse
:
this
.
checkedFalse
,
checkedNone
:
this
.
checkedNone
,
checkedTrue
:
this
.
checkedTrue
,
checkedFalse
:
this
.
checkedFalse
,
checkedNone
:
this
.
checkedNone
,
showTextTrue
:
this
.
showTextTrue
,
showTextFalse
:
this
.
showTextFalse
,
showTextNone
:
this
.
showTextNone
,
showTextTrue
:
this
.
showTextTrue
,
showTextFalse
:
this
.
showTextFalse
,
showTextNone
:
this
.
showTextNone
,
...
...
ace/ace_standard/src/main/js/default/test/menuProps.test.js
浏览文件 @
ed5eb721
/**
/**
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
@@ -168,120 +168,6 @@ describe('menuPropsJsTest', function () {
...
@@ -168,120 +168,6 @@ describe('menuPropsJsTest', function () {
done
();
done
();
});
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropTrue
* @tc.desc ACE
*/
it
(
'
testMenuDisabledPropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuDisabledPropTrue START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropTrue
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropTrue
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
true
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropFalse
* @tc.desc ACE
*/
it
(
'
testMenuDisabledPropFalse
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuDisabledPropFalse START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropFalse
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropFalse
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDisabledPropNone
* @tc.desc ACE
*/
it
(
'
testMenuDisabledPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuDisabledPropNone START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropNone
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropNone
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropTrue
* @tc.desc ACE
*/
it
(
'
testMenuFocusablePropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuFocusablePropTrue START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropTrue
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropTrue
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
true
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropFalse
* @tc.desc ACE
*/
it
(
'
testMenuFocusablePropFalse
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuFocusablePropFalse START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropFalse
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropFalse
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuFocusablePropNone
* @tc.desc ACE
*/
it
(
'
testMenuFocusablePropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testMenuFocusablePropNone START
'
);
console
.
info
(
"
[menuProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropNone
);
console
.
info
(
"
[menuProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[menuProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropNone
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
});
/**
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMenuDataProp
* @tc.name testMenuDataProp
...
@@ -712,7 +598,7 @@ describe('menuPropsJsTest', function () {
...
@@ -712,7 +598,7 @@ describe('menuPropsJsTest', function () {
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$type
).
assertEqual
(
'
menu
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeNone
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeNone
'
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
undefined
)
expect
(
obj
.
$attrs
.
type
).
assertEqual
(
'
click
'
)
console
.
info
(
"
[menuProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
console
.
info
(
"
[menuProps] get type value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
type
));
done
();
done
();
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录