index.vue 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <el-dialog
  3. :visible.sync="show"
  4. :close-on-click-modal="false"
  5. title="自动更新中"
  6. :show-close="false"
  7. @update:visible="close"
  8. >
  9. <template>
  10. <div class="desc line-30 fs-16">{{res.desc}}</div>
  11. </template>
  12. <slot></slot>
  13. </el-dialog>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'FullDialog',
  18. components: {
  19. },
  20. props: {
  21. show: {
  22. type: Boolean,
  23. default: false
  24. },
  25. res:{
  26. type: Object,
  27. default:()=>{
  28. return {}
  29. }
  30. },
  31. },
  32. data() {
  33. return {
  34. }
  35. },
  36. computed: {
  37. },
  38. watch: {
  39. },
  40. destroyed() {
  41. },
  42. mounted() {
  43. },
  44. created() {
  45. },
  46. methods: {
  47. close() {
  48. this.$emit('onClose')
  49. this.$emit('update:show', false)
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. </style>