mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
test(picker): fixes return data
This commit is contained in:
@ -21,8 +21,8 @@ class E2EPage {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Done',
|
text: 'Done',
|
||||||
handler: (data) => {
|
handler: (data: any) => {
|
||||||
this.smoothie = `${data.flavor1} ${data.flavor2}`;
|
this.smoothie = `${data.flavor1.value} ${data.flavor2.value}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -86,8 +86,8 @@ class E2EPage {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Woot!',
|
text: 'Woot!',
|
||||||
handler: (data) => {
|
handler: (data: any) => {
|
||||||
this.smoothie = `${data.flavor1}`;
|
this.smoothie = `${data.flavor1.value}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -130,8 +130,8 @@ class E2EPage {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Si',
|
text: 'Si',
|
||||||
handler: (data) => {
|
handler: (data: any) => {
|
||||||
this.smoothie = `${data.flavor1}`;
|
this.smoothie = `${data.flavor1.value}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -175,8 +175,8 @@ class E2EPage {
|
|||||||
|
|
||||||
picker.addButton({
|
picker.addButton({
|
||||||
text: 'Set Timer',
|
text: 'Set Timer',
|
||||||
handler: (data) => {
|
handler: (data: any) => {
|
||||||
this.timer = `${data.hour}:${data.min}`;
|
this.timer = `${data.hour.value}:${data.min.value}`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ class E2EPage {
|
|||||||
options: Array.apply(null, {length: 23}).map(Number.call, Number)
|
options: Array.apply(null, {length: 23}).map(Number.call, Number)
|
||||||
});
|
});
|
||||||
|
|
||||||
var minuteOptions = [];
|
let minuteOptions = [];
|
||||||
|
|
||||||
for (var i = 0; i < 60; i++) {
|
for (var i = 0; i < 60; i++) {
|
||||||
minuteOptions.push({
|
minuteOptions.push({
|
||||||
|
Reference in New Issue
Block a user