tiny-vue/examples/sites/demos/pc/app/process-designer/readonly-composition-api.vue

32 lines
1.5 KiB
Vue

<template>
<tiny-process-designer :value="xml" :height="420" readonly />
</template>
<script setup>
import { ref } from 'vue'
import { TinyProcessDesigner } from '@opentiny/vue'
const xml = ref(`<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="readonly" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn2:process id="Process_ro" isExecutable="false">
<bpmn2:startEvent id="StartEvent_1"/>
<bpmn2:endEvent id="EndEvent_1"/>
<bpmn2:sequenceFlow id="Flow_1" sourceRef="StartEvent_1" targetRef="EndEvent_1"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_ro">
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
<dc:Bounds x="160" y="180" width="36" height="36"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_1_di" bpmnElement="EndEvent_1">
<dc:Bounds x="280" y="180" width="36" height="36"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="196" y="198"/>
<di:waypoint x="280" y="198"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>`)
</script>