Files
apt-nl/src/components/toast.vue

46 lines
761 B
Vue
Raw Normal View History

2023-05-05 14:20:13 +08:00
<template>
<div class="toast">
<div class="toast-wrap">
<div class="text">
{{toastMsg}}
</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data () {
return {}
},
computed: mapState({
toastMsg: state => state.com.toastMsg
})
}
</script>
<style lang="stylus" scoped>
.toast
.toast-wrap
position fixed
z-index 10001
width 100%
2023-05-24 09:58:28 +08:00
height 48px
2023-05-05 14:20:13 +08:00
text-align center
left 50%
top 50%
transform translate(-50%, -50%)
.text
2023-05-24 09:58:28 +08:00
height 48px
line-height 18px
2023-05-05 14:20:13 +08:00
display inline-block
width auto
text-align center
2023-05-24 09:58:28 +08:00
padding 15px
border-radius 4px
2023-05-05 14:20:13 +08:00
background #858586
2023-05-24 09:58:28 +08:00
font-size 16px
2023-05-05 14:20:13 +08:00
color #fff
</style>