提交 5299c64b 编写于 作者: D dongwei

add test cases

Signed-off-by: Ndongwei <dongwei@kaihongdigi.com>
上级 039f8739
...@@ -389,4 +389,9 @@ picker { ...@@ -389,4 +389,9 @@ picker {
width: 100%; width: 100%;
height: 20px; height: 20px;
background-color: red; background-color: red;
}
.picker {
width: 100%;
height: 20px;
background-color: #00ff00;
} }
\ No newline at end of file
...@@ -140,6 +140,15 @@ ...@@ -140,6 +140,15 @@
<picker type="text" id="ifPropTrue" <picker type="text" id="ifPropTrue"
if="true"> if="true">
picker</picker> picker</picker>
<picker type="text" class="picker"
elif="true">
picker</picker>
<picker type="text" id="ifPropTrue"
elif="false">
picker</picker>
<picker type="text" id="ifPropTrue"
elif="">
picker</picker>
<text class="sub-title"> <text class="sub-title">
渲染属性 -- show 渲染属性 -- show
...@@ -207,5 +216,30 @@ ...@@ -207,5 +216,30 @@
range="{{multitext}}" range="{{multitext}}"
selected="{{multitextselect}}" selected="{{multitextselect}}"
></picker> ></picker>
<text class="sub-title">
picker特有属性 -- picker
</text>
<picker
class="picker"
picker="picker"
type="time"
value="11:20"
></picker>
<picker
class="picker"
picker=""
type="time"
value="11:20"
></picker>
<!--<text class="sub-title">
picker特有属性 -- shareid
</text>
<picker class="picker" type="time" value="11:20" shareid="shareid"></picker>
<picker class="picker" type="time" value="11:20" shareid=""></picker>-->
<text class="sub-title">
picker特有属性 -- tid
</text>
<picker class="picker" type="time" value="11:20" tid="tid"></picker>
<picker class="picker" type="time" value="11:20" tid=""></picker>
</div> </div>
</div> </div>
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
</text> </text>
<picker id="event2" class="event2" onclick="click" ondoubleclick="doubleClick" <picker id="event2" class="event2" onclick="click" ondoubleclick="doubleClick"
onlongpress="longPress" onfocus="focus" onblur="blur" onkey="key" onlongpress="longPress" onfocus="focus" onblur="blur" onkey="key"
onaccessibility="onAccessibility"
onswipe="swipe" onattached="attached" ondetached="detached" onswipe="swipe" onattached="attached" ondetached="detached"
value="通用事件2" range="{{ rangetext }}"> value="通用事件2" range="{{ rangetext }}">
</picker> </picker>
...@@ -156,8 +157,8 @@ ...@@ -156,8 +157,8 @@
<text class="sub-title"> <text class="sub-title">
picker特有事件1 picker特有事件1
</text> </text>
<picker id="event4" class="event4" type="text" value="特有事件1" range="{{ rangetext }}" <picker id="event4" class="event4" type="multi-text" value="{{multitextvalue}}" columns="3" range="{{multitext}}" selected="{{multitextselect}}"
onchange="textonchange" oncancel="textoncancel"> onchange="multitextonchange" oncancel="multitextoncancel" oncolumnchange="columnchange" show="true">
</picker> </picker>
</div> </div>
<div style="background-color: #000000; width: 100%; height: 2px;"> <div style="background-color: #000000; width: 100%; height: 2px;">
......
...@@ -272,7 +272,11 @@ export default { ...@@ -272,7 +272,11 @@ export default {
message: 'key:\n' + message message: 'key:\n' + message
}); });
}, },
onAccessibility (event) {
if (event.eventType === 1) {
console.log("onAccessibility" + JSON.stringify(event));
}
},
swipe(event){ swipe(event){
var direction = event.direction; var direction = event.direction;
var distance = event.distance; var distance = event.distance;
...@@ -576,4 +580,7 @@ export default { ...@@ -576,4 +580,7 @@ export default {
multitextoncancel() { multitextoncancel() {
prompt.showToast({ message:"multitextoncancel" }) prompt.showToast({ message:"multitextoncancel" })
}, },
columnchange () {
prompt.showToast({ message:"columnchange" })
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册