@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
42 lines (41 loc) • 1.02 kB
JavaScript
import { defineComponent as c, openBlock as i, createBlock as m, unref as e, withCtx as t, createVNode as r, createTextVNode as a } from "vue";
import "../style/drawer.css";
import { pluginManager as p } from "@javaguns/utils";
import { GunsSpace as u } from "@javaguns/ui";
const _ = c({ name: "flow-drawer-footer" }), v = /* @__PURE__ */ c({
..._,
emits: ["save", "close"],
setup(d, { emit: s }) {
const o = p.getComponent("Button"), n = s, f = () => {
n("save");
}, l = () => {
n("close");
};
return (C, w) => (i(), m(e(u), {
class: "flow-drawer-footer",
justify: "center"
}, {
default: t(() => [
r(e(o), {
type: "primary",
onClick: f
}, {
default: t(() => [
a(" 保存 ")
]),
_: 1
}),
r(e(o), { onClick: l }, {
default: t(() => [
a(" 取消 ")
]),
_: 1
})
]),
_: 1
}));
}
});
export {
v as default
};