123456789101112131415161718192021222324252627282930 |
- <template>
- <el-dialog title="调试/运行" v-model="dialogVisible" :close-on-click-modal="false" destroy-on-close width="80%">
- <RunSpiderContent ref="runSpiderContent" />
- </el-dialog>
- </template>
- <script setup>
- import { ref, nextTick } from 'vue';
- import RunSpiderContent from "./RunSpider.vue"
- const dialogVisible = ref(false)
- const runSpiderContent = ref({})
- const setPageData = (e) => {
- nextTick(() => {
- runSpiderContent.value.setPageData(e)
- })
- }
- const getPageData = () => {
- return runSpiderContent.value.getPageData()
- }
- defineExpose({
- dialogVisible,
- setPageData,
- getPageData,
- })
- </script>
- <style scoped>
- </style>
|