Skip to content

Commit e58b893

Browse files
committed
test: demo vue
1 parent 28581d6 commit e58b893

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

demo-vue/app/examples/SnackBar.vue

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<template>
22
<Page>
3-
43
<ActionBar :title="title">
54
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap" />
65
</ActionBar>
7-
<GridLayout rows="*, auto" backgroundColor="blue">
8-
<StackLayout ref="innerView">
9-
<MDButton id="show_snack" text="show snack" @tap="onTap" />
10-
<MDButton id="show_snack_action" text="show snack action" @tap="onTap" />
11-
<MDButton id="show_snack_action_color" text="show snack action color" @tap="onTap" />
12-
</StackLayout>
6+
<GridLayout rows="*, auto" id="innerView" ref="innerView">
7+
<Frame actionBarHidden="true">
8+
<Page actionBarHidden="true" backgroundColor="blue">
9+
<StackLayout>
10+
<MDButton id="show_snack" text="show snack" @tap="onTap" />
11+
<MDButton id="show_snack_action" text="show snack action" @tap="onTap" />
12+
<MDButton id="show_snack_action_color" text="show snack action color" @tap="onTap" />
13+
</StackLayout>
14+
</Page>
15+
</Frame>
1316
<MDBottomNavigationBar row="1" activeColor="red">
1417
<MDBottomNavigationTab title="First" icon="res://ic_home" activeColor="green" />
1518
<MDBottomNavigationTab title="Second" icon="res://ic_view_list" isSelectable="false" />
@@ -56,7 +59,7 @@ export default Vue.extend({
5659
break;
5760
}
5861
case 'show_snack_action_color': {
59-
showSnack({ message: 'this is test snack with action colored!', actionText: 'delete', actionTextColor: 'red' }).then((r) => {
62+
showSnack({ message: 'this is test snack with action colored!', actionText: 'delete', actionTextColor: 'red', view: this.$refs.innerView.nativeView }).then((r) => {
6063
console.log('showSnack result', r);
6164
});
6265
break;

0 commit comments

Comments
 (0)