enrecipes/app/components/sub/SnackBar.vue

31 lines
623 B
Vue
Raw Normal View History

2021-05-25 20:02:53 +05:30
<template>
2021-06-15 16:34:42 +05:30
<RGridLayout
:rtl="RTL"
2021-05-25 20:02:53 +05:30
row="1"
2021-06-20 23:24:47 +05:30
class="appbar snackbar"
2021-05-25 20:02:53 +05:30
columns="auto, *, auto"
@swipe="action"
2021-06-15 16:34:42 +05:30
@loaded="onload"
2021-05-25 20:02:53 +05:30
>
2021-06-18 18:22:03 +05:30
<Button @tap="action" :text="count" class="ico t3 accent tb" />
2021-06-20 23:24:47 +05:30
<RLabel
@tap="action"
2021-06-28 17:08:21 +05:30
margin="0 2"
class="tw vc lh4"
2021-06-20 23:24:47 +05:30
col="1"
:text="msg | L"
/>
2021-06-15 16:34:42 +05:30
<Button class="ico fab rtl" :text="icon.undo" @tap="undo" col="3" />
</RGridLayout>
2021-05-25 20:02:53 +05:30
</template>
<script>
import { mapState } from "vuex";
export default {
2021-06-15 16:34:42 +05:30
props: ["count", "msg", "undo", "action", "onload"],
2021-05-25 20:02:53 +05:30
computed: {
2021-06-15 16:34:42 +05:30
...mapState(["icon", "RTL"]),
2021-05-25 20:02:53 +05:30
},
};
</script>