2026-02-26 11:45:32 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="canvas-test">
|
2026-03-06 10:21:05 +08:00
|
|
|
<button @click="dialogVisible = true">打开画布</button>
|
|
|
|
|
<fullscreen-dialog v-model="dialogVisible" hide-destroy>
|
|
|
|
|
<flow-canvas :config="config" />
|
|
|
|
|
<Assistant />
|
|
|
|
|
</fullscreen-dialog>
|
2026-02-26 11:45:32 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-03-06 10:21:05 +08:00
|
|
|
import fullscreenDialog from './components/fullscreen-dialog.vue'
|
2026-02-27 11:43:27 +08:00
|
|
|
import flowCanvas from './FlowCanvas/flow-canvas.vue'
|
2026-03-05 17:12:35 +08:00
|
|
|
import Assistant from '../Assistant/assistant.vue'
|
2026-02-26 11:45:32 +08:00
|
|
|
import { computed, ref, markRaw, onMounted, reactive, nextTick } from 'vue'
|
2026-03-06 10:21:05 +08:00
|
|
|
const dialogVisible = ref(true)
|
|
|
|
|
const config = ref({
|
2026-03-17 10:53:43 +08:00
|
|
|
|
2026-02-26 11:45:32 +08:00
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.canvas-test {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
2026-03-06 10:21:05 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2026-02-26 11:45:32 +08:00
|
|
|
}
|
|
|
|
|
</style>
|