<template>
  <!--弹窗-->
  <el-dialog
    title="流程图设计"
    :visible.sync="activitiEditorVisible"
    width="80%"
    height="100%"
    :show-close="false"
  >
    <iframe :src="pageUrl" frameborder="0" width="100%" height="800px" />
    <span slot="footer" class="dialog-footer">
      <el-button @click="closeEditor()">关 闭</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    pageUrl: {
      type: String,
      required: true
    },
    activitiEditorVisible: {
      type: Boolean,
      required: true
    }
  },
  methods: {
    closeEditor() {
      this.$emit('update:activitiEditorVisible', false)
      this.$parent.$parent.refreshList()
    }
  }
}
</script>

<style>
</style>
