UNPKG

@javaguns/flow-ui

Version:

``` <template> <a-spin :spinning="loading"> <FlowDesigner ref="flowDesigner" top="50px"> </FlowDesigner> </a-spin> </template> <script lang="ts" setup> import { ref, provide, onMounted } from 'vue'; import { FlowDesigner, LoadingKey } from '@j

2 lines (1 loc) 1.01 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@javaguns/utils"),n={class:"guns-timeline-item"},r=e.defineComponent({name:"flow-task-type"}),c=e.defineComponent({...r,props:{task:{}},setup(o){const a=s.pluginManager.getComponent("Tag"),t=o;return(l,i)=>(e.openBlock(),e.createElementBlock("div",n,[t.task.taskType==0?(e.openBlock(),e.createBlock(e.unref(a),{key:0,color:"#29cc80",class:"guns-timeline-tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.task.taskTypeWrapper),1)]),_:1})):t.task.taskType==1?(e.openBlock(),e.createBlock(e.unref(a),{key:1,color:"#ff6a00",class:"guns-timeline-tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.task.taskTypeWrapper),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(a),{key:2,color:"#268bfb",class:"guns-timeline-tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.task.taskTypeWrapper),1)]),_:1}))]))}});exports.default=c;