Files
FiDA_Front/src/components/Canvas/CanvasTest.vue

32 lines
1.3 KiB
Vue
Raw Normal View History

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({
url: 'https://s3-alpha-sig.figma.com/img/ea2f/590e/9638f62a2fc91e31f33db0022db1642c?Expires=1773014400&Key-Pair-Id=APKAQ4GOSFWCW27IBOMQ&Signature=M0B8oJJOk~dGG0aZAqOIocAp7T0LFdJ9FYmCrEZVTCRzYxM6SJRNtYMTX-rTO3Z~s14QINh~o-S41XiZnBv-0zcKjuWot~VVaNHfd0~1LesfNe2KwvCinT~72btFut1pheLnKE-wWCX5ewtonxU77bnw386YPMTqv7DBZzksf2udsJA7NmOYD6~TUG3Q2dWSt~zPH~lkaidscPqpCnCbqzljCEi4RiHY4U3A45l5XypcX2umqn1UaYUFCTqV9471J4qdB6Dg2pcKocdp-7-3s1De6Q~2SmBOrSgDQ~KEADCB2lhKfhxgWmy0lwMvhTd4l90ygVZDWZRABgjHNrGUvg__'
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>