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

45 lines
752 B
Vue
Raw Normal View History

2023-10-18 14:44:29 +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 90%
2023-10-21 19:53:37 +08:00
min-height 80px
2023-10-18 14:44:29 +08:00
text-align center
left 50%
top 50%
transform translate(-50%, -50%)
.text
2023-10-21 19:53:37 +08:00
line-height 40px
2023-10-18 14:44:29 +08:00
display inline-block
width auto
text-align center
2023-10-21 19:53:37 +08:00
padding 20px 50px
2023-10-18 14:44:29 +08:00
border-radius 16px
background #858586
2023-10-21 19:53:37 +08:00
font-size 30px
2023-10-18 14:44:29 +08:00
color #fff
</style>