doSealDialog.vue 722 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <el-dialog
  3. width ="90%"
  4. :title="title"
  5. :visible.sync="dialogvisible"
  6. :close-on-click-modal="false"
  7. >
  8. <template>
  9. <!-- <div v-html="html"></div> -->
  10. <iframe :srcdoc="html" class="iframe" scroll="false"></iframe>
  11. </template>
  12. </el-dialog>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. title:"",
  19. html:"",
  20. dialogvisible:false
  21. };
  22. },
  23. mounted() {
  24. },
  25. methods: {},
  26. };
  27. </script>
  28. <style lang="less" scoped>
  29. /deep/ .el-dialog__body{
  30. height: 1000px;
  31. }
  32. /deep/ .el-dialog{
  33. height: 60vh;
  34. // overflow: auto;
  35. }
  36. </style>