enrecipes/app/components/sub/Toast.vue

22 lines
387 B
Vue
Raw Permalink Normal View History

2021-05-25 14:32:53 +00:00
<template>
<GridLayout
2021-06-15 11:04:42 +00:00
:hidden="!toast"
2021-05-25 14:32:53 +00:00
row="1"
colSpan="2"
2021-06-20 17:54:47 +00:00
class="appbar snackbar"
2021-05-25 14:32:53 +00:00
columns="*"
@swipe="action"
2021-06-15 11:04:42 +00:00
@tap="action"
@loaded="onload"
2021-05-25 14:32:53 +00:00
>
2021-06-15 11:04:42 +00:00
<StackLayout minHeight="48">
2021-06-20 17:54:47 +00:00
<RLabel padding="16 20" :text="toast" />
2021-06-15 11:04:42 +00:00
</StackLayout>
2021-05-25 14:32:53 +00:00
</GridLayout>
</template>
<script>
export default {
2021-06-15 11:04:42 +00:00
props: ["toast", "action", "onload"],
2021-05-25 14:32:53 +00:00
};
</script>