提交 eb9203dd 编写于 作者: D dongwei 提交者: wanggang

add test cases

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