RemindStr.vue 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="mobile-modal" v-if="showRemind">
  3. <div class="mobile-remind-modal">
  4. <div class="mb-content" v-html="text"></div>
  5. <div class="mb-foot" @click="$emit('closeAction')">我知道了</div>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. props: {
  12. showRemind: {
  13. type: Boolean,
  14. default: false
  15. },
  16. text: {
  17. type: String,
  18. default: '提示'
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .mobile-remind-modal {
  25. position: absolute;
  26. top: 50%;
  27. left: 50%;
  28. width: 6.3rem;
  29. margin-left: -3.15rem;
  30. margin-top: -1.36rem;
  31. background: #fff;
  32. border-radius: .15rem;
  33. font-size: .32rem;
  34. .mb-content {
  35. padding: .39rem .42rem .25rem;
  36. border-bottom: 1px solid #f4f4f4;
  37. }
  38. .mb-foot {
  39. padding: .27rem 0;
  40. color: #3f84f6;
  41. text-align: center;
  42. }
  43. }
  44. </style>