enrecipes/app/components/sub/Toast.vue
2021-06-20 23:24:47 +05:30

22 lines
No EOL
387 B
Vue

<template>
<GridLayout
:hidden="!toast"
row="1"
colSpan="2"
class="appbar snackbar"
columns="*"
@swipe="action"
@tap="action"
@loaded="onload"
>
<StackLayout minHeight="48">
<RLabel padding="16 20" :text="toast" />
</StackLayout>
</GridLayout>
</template>
<script>
export default {
props: ["toast", "action", "onload"],
};
</script>