提交 12feaa28 编写于 作者: D dongwei

add test cases

Signed-off-by: Ndongwei <dongwei@kaihongdigi.com>
上级 b3c7aaeb
...@@ -390,6 +390,15 @@ ...@@ -390,6 +390,15 @@
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
} }
.propNewAdd{
height: 15px;
margin-bottom: 3px;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
...@@ -145,6 +145,24 @@ ...@@ -145,6 +145,24 @@
</tab-bar> </tab-bar>
</tabs> </tabs>
<text class="sub-title">
通用属性 -- data
</text>
<tabs class = "tabs">
<tab-bar class="propNewAdd"
data="通用属性 -- data">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<tabs class = "tabs">
<tab-bar class="propNewAdd"
data="">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<text class="sub-title"> <text class="sub-title">
通用属性 -- click-effect 通用属性 -- click-effect
</text> </text>
...@@ -303,5 +321,49 @@ ...@@ -303,5 +321,49 @@
<text class="tab-text">Index</text> <text class="tab-text">Index</text>
</tab-bar> </tab-bar>
</tabs> </tabs>
<text class="sub-title">
特有属性 -- tid
</text>
<tabs class = "mode">
<tab-bar class="propNewAdd"
tid="id">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<tabs class = "mode">
<tab-bar class="propNewAdd"
tid="">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<text class="sub-title">
特有属性 -- elif
</text>
<tabs class = "mode">
<tab-bar class="propNewAdd"
if="false">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<tabs class = "mode">
<tab-bar class="propNewAdd"
elif="true">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
<tabs class = "mode">
<tab-bar class="propNewAdd"
elif="false">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-bar>
</tabs>
</div> </div>
</div> </div>
...@@ -437,6 +437,7 @@ ...@@ -437,6 +437,7 @@
onchange="change"> onchange="change">
<tab-bar class="tab-bar access1" <tab-bar class="tab-bar access1"
accessibilitygroup ="true" accessibilitygroup ="true"
onaccessibility="onAccessibility"
accessibilitytext="这是div" accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框" accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants" accessibilityimportance="no-hide-descendants"
......
...@@ -88,6 +88,13 @@ export default { ...@@ -88,6 +88,13 @@ export default {
console.log("Tab index: " + e.index); console.log("Tab index: " + e.index);
}, },
onAccessibility(event) {
if (event.eventType == 1) {
// Do Something
}
console.log("onAccessibility" + JSON.stringify(event));
},
onShow(){ onShow(){
// 通用属性 // 通用属性
var prop1 = this.$element('prop1'); var prop1 = this.$element('prop1');
......
...@@ -399,5 +399,14 @@ tab-text{ ...@@ -399,5 +399,14 @@ tab-text{
font-size: 30px; font-size: 30px;
} }
.propNewAdd{
height: 15px;
margin-bottom: 3px;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
...@@ -145,6 +145,24 @@ ...@@ -145,6 +145,24 @@
</tab-content> </tab-content>
</tabs> </tabs>
<text class="sub-title">
通用属性 -- data
</text>
<tabs class = "tabs">
<tab-content class="propNewAdd"
data="通用属性 -- data">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<tabs class = "tabs">
<tab-content class="propNewAdd"
data="">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<text class="sub-title"> <text class="sub-title">
通用属性 -- click-effect 通用属性 -- click-effect
</text> </text>
...@@ -300,5 +318,49 @@ ...@@ -300,5 +318,49 @@
<text class="textFont">First</text> <text class="textFont">First</text>
</tab-content> </tab-content>
</tabs> </tabs>
<text class="sub-title">
特有属性 -- tid
</text>
<tabs class = "mode">
<tab-content class="propNewAdd"
tid="id">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<tabs class = "mode">
<tab-content class="propNewAdd"
tid="">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<text class="sub-title">
特有属性 -- elif
</text>
<tabs class = "mode">
<tab-content class="propNewAdd"
if="false">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<tabs class = "mode">
<tab-content class="propNewAdd"
elif="true">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
<tabs class = "mode">
<tab-content class="propNewAdd"
elif="false">
<text class="tab-text">Home</text>
<text class="tab-text">Index</text>
</tab-content>
</tabs>
</div> </div>
</div> </div>
...@@ -522,6 +522,7 @@ ...@@ -522,6 +522,7 @@
vertical="false" vertical="false"
onchange="change"> onchange="change">
<tab-content class="tabcontent access1" <tab-content class="tabcontent access1"
onaccessibility="onAccessibility"
accessibilitygroup ="true" accessibilitygroup ="true"
accessibilitytext="这是div" accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框" accessibilitydescription="点击此按键会弹出一个对话框"
......
...@@ -99,6 +99,13 @@ export default { ...@@ -99,6 +99,13 @@ export default {
}); });
}, },
onAccessibility(event) {
if (event.eventType == 1) {
// Do Something
}
console.log("onAccessibility" + JSON.stringify(event));
},
touchStart(event){ touchStart(event){
var globalX = event.touches[0].globalX var globalX = event.touches[0].globalX
var globalY = event.touches[0].globalY var globalY = event.touches[0].globalY
......
...@@ -387,7 +387,16 @@ ...@@ -387,7 +387,16 @@
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
} }
.propNewAdd{
height: 15px;
margin-bottom: 3px;
background-color:#c00000;
width: 100%;
margin-left: 10px;
margin-right: 10px;
padding-start: 10px;
padding-end: 10px;
}
...@@ -181,5 +181,29 @@ ...@@ -181,5 +181,29 @@
<tabs id="verticalNone" <tabs id="verticalNone"
vertical=""> vertical="">
</tabs> </tabs>
<text class="sub-title">
特有属性 -- tid
</text>
<tabs class="propNewAdd"
tid="id">
</tabs>
<tabs class="propNewAdd"
tid="">
</tabs>
<text class="sub-title">
特有属性 -- elif
</text>
<tabs class="propNewAdd"
if="false">
</tabs>
<tabs class="propNewAdd"
elif="true">
</tabs>
<tabs class="propNewAdd"
elif="false">
</tabs>
</div> </div>
</div> </div>
...@@ -336,6 +336,7 @@ ...@@ -336,6 +336,7 @@
tabs无障碍1 tabs无障碍1
</text> </text>
<tabs class = "tabs access1 event3" <tabs class = "tabs access1 event3"
onaccessibility="onAccessibility"
accessibilitygroup ="true" accessibilitygroup ="true"
accessibilitytext="这是div" accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框" accessibilitydescription="点击此按键会弹出一个对话框"
......
...@@ -88,6 +88,13 @@ export default { ...@@ -88,6 +88,13 @@ export default {
console.log("Tab index: " + e.index); console.log("Tab index: " + e.index);
}, },
onAccessibility(event) {
if (event.eventType == 1) {
// Do Something
}
console.log("onAccessibility" + JSON.stringify(event));
},
onShow(){ onShow(){
// 通用属性 // 通用属性
var prop1 = this.$element('prop1'); var prop1 = this.$element('prop1');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册