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

30 lines (29 loc) 991 B
import { defineComponent as o, inject as r, openBlock as s, createElementBlock as c, normalizeClass as l, unref as d, createElementVNode as i, toDisplayString as f, createVNode as t } from "vue"; import { VerticalKey as m } from "../../utils/injection-key.mjs"; import p from "../widget/flowArrowLine.vue.mjs"; import _ from "../widget/flowAddNode.vue.mjs"; const u = { class: "flow-chart-start-node-content" }, h = o({ name: "flow-chart-start-node" }), V = /* @__PURE__ */ o({ ...h, props: { node: { default: { nodeName: "开始" } }, isMouseEnter: { type: Boolean, default: !1 } }, setup(n) { const e = n, a = r(m, !1); return (y, v) => (s(), c("div", { class: l(["flow-chart-start-node-container", { vertical: d(a) }]) }, [ i("div", u, f(e.node.nodeName), 1), t(p), t(_, { btnType: e.isMouseEnter ? "dot" : "", node: e.node }, null, 8, ["btnType", "node"]) ], 2)); } }); export { V as default };