<template>
    <div class="layout-pd">
        <LogicFlow ref='designerRef' v-model="flowData" />
    </div>
</template>
<script setup lang="ts" name="workflowAdd">
import { defineAsyncComponent, ref } from "vue";
const LogicFlow = defineAsyncComponent(() => import('/@/components/LogicFlow/index.vue'));
const designerRef = ref(null as any);
let flowData = ref({
    "name": "",
    "code": "",
    "id": "",
    "moduleName": "",
    "moduleCode": "",
    "nodes": [
        {
            "id": "start",
            "type": "hotline:start",
            "x": 780,
            "y": 120,
            "properties": {},
            "text": {
                "x": 780,
                "y": 80,
                "value": "开始"
            }
        },
        {
            "id": "end",
            "type": "hotline:end",
            "x": 780,
            "y": 400,
            "properties": {},
            "text": {
                "x": 780,
                "y": 440,
                "value": "结束"
            }
        }
    ],
    "edges": []
});
</script>

<style scoped>
</style>