enrecipes/app/components/sub/SnackBar.vue

25 lines
572 B
Vue
Raw Normal View History

2021-05-25 14:32:53 +00:00
<template>
2021-06-15 11:04:42 +00:00
<RGridLayout
:rtl="RTL"
2021-05-25 14:32:53 +00:00
row="1"
class="appbar snackBar"
columns="auto, *, auto"
@swipe="action"
2021-06-15 11:04:42 +00:00
@loaded="onload"
2021-05-25 14:32:53 +00:00
>
2021-06-15 11:04:42 +00:00
<Button @tap="action" :text="count" class="ico countdown tb" />
<RLabel @tap="action" class="title" col="1" :text="msg | L" />
<Button class="ico fab rtl" :text="icon.undo" @tap="undo" col="3" />
</RGridLayout>
2021-05-25 14:32:53 +00:00
</template>
<script>
import { mapState } from "vuex";
export default {
2021-06-15 11:04:42 +00:00
props: ["count", "msg", "undo", "action", "onload"],
2021-05-25 14:32:53 +00:00
computed: {
2021-06-15 11:04:42 +00:00
...mapState(["icon", "RTL"]),
2021-05-25 14:32:53 +00:00
},
};
</script>