@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
74 lines (73 loc) • 2.19 kB
JavaScript
import { defineComponent as b, ref as t, provide as c, openBlock as r, createBlock as p, unref as s, withCtx as i, createVNode as f } from "vue";
import { pluginManager as v } from "@javaguns/utils";
import { ApproverMultiKey as A, ApproverDisabledKey as C } from "../../utils/injection-key.mjs";
import T from "../common/flowNodeAuthForm.vue.mjs";
import V from "./approver/flowApproverGroup.vue.mjs";
const G = b({ name: "flow-copyer-drawer" }), R = /* @__PURE__ */ b({
...G,
props: {
node: { default: () => ({}) },
privileges: { default: () => [] }
},
setup(_, { expose: y }) {
const g = v.getComponent("Tabs"), d = v.getComponent("TabPane"), l = _, K = t(), a = t(3), k = t(!1), w = t(!1), u = (e) => {
k.value = e;
}, m = (e) => {
w.value = e;
}, x = async () => {
var e;
return await ((e = K.value) == null ? void 0 : e.valid());
};
return c(A, u), c(C, m), y({
updateApproverMulti: u,
updateApproverDisabled: m,
valid: x
}), (e, o) => (r(), p(s(g), {
class: "demo-tabs",
modelValue: a.value,
"onUpdate:modelValue": o[0] || (o[0] = (n) => a.value = n),
activeKey: a.value,
"onUpdate:activeKey": o[1] || (o[1] = (n) => a.value = n)
}, {
default: i(() => [
(r(), p(s(d), {
label: "表单权限",
title: "表单权限",
name: 3,
key: 3,
tab: "表单权限",
forceRender: ""
}, {
default: i(() => [
f(T, {
node: l.node,
privileges: l.privileges,
readable: ""
}, null, 8, ["node", "privileges"])
]),
_: 1
})),
(r(), p(s(d), {
label: "抄送设置",
title: "抄送设置",
name: 5,
key: 5,
tab: "抄送设置",
forceRender: ""
}, {
default: i(() => [
f(V, {
node: l.node,
title: "抄送人"
}, null, 8, ["node"])
]),
_: 1
}))
]),
_: 1
}, 8, ["modelValue", "activeKey"]));
}
});
export {
R as default
};