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

45 lines (44 loc) 1.19 kB
import { defineComponent as c, openBlock as t, createElementBlock as i, createBlock as s, unref as o, withCtx as n, createTextVNode as r, toDisplayString as p } from "vue"; import { pluginManager as k } from "@javaguns/utils"; const f = { class: "guns-timeline-item" }, m = c({ name: "flow-task-type" }), d = /* @__PURE__ */ c({ ...m, props: { task: {} }, setup(l) { const a = k.getComponent("Tag"), e = l; return (u, g) => (t(), i("div", f, [ e.task.taskType == 0 ? (t(), s(o(a), { key: 0, color: "#29cc80", class: "guns-timeline-tag" }, { default: n(() => [ r(p(e.task.taskTypeWrapper), 1) ]), _: 1 })) : e.task.taskType == 1 ? (t(), s(o(a), { key: 1, color: "#ff6a00", class: "guns-timeline-tag" }, { default: n(() => [ r(p(e.task.taskTypeWrapper), 1) ]), _: 1 })) : (t(), s(o(a), { key: 2, color: "#268bfb", class: "guns-timeline-tag" }, { default: n(() => [ r(p(e.task.taskTypeWrapper), 1) ]), _: 1 })) ])); } }); export { d as default };