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

45 lines
752 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
2023-06-01 09:34:14 +08:00
width 90%
min-height 48px
2023-05-05 14:20:13 +08:00
text-align center
left 50%
top 50%
transform translate(-50%, -50%)
.text
2023-07-03 18:05:45 +08:00
line-height 40px
2023-05-05 14:20:13 +08:00
display inline-block
width auto
text-align center
2023-07-03 18:05:45 +08:00
padding 14px 73px
border-radius 16px
2023-05-05 14:20:13 +08:00
background #858586
2023-07-03 18:05:45 +08:00
font-size 32px
2023-05-05 14:20:13 +08:00
color #fff
</style>