Files
----/后端源码/yifan.action-ai.cn/index/js/CustomNode.DH3hMbi5.js

47 lines
1.6 KiB
JavaScript

import { S as openBlock, _ as createElementBlock, a1 as createBaseVNode, aa as toDisplayString, $ as createVNode, o as unref, et as _sfc_main$f } from "./.pnpm.BW3P1y8f.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper.1tPrXgE0.js";
const _hoisted_1 = { class: "custom-node" };
const _hoisted_2 = { class: "node-header" };
const _sfc_main = {
__name: "CustomNode",
props: {
id: String,
data: Object
},
setup(__props) {
return (_ctx, _cache) => {
return openBlock(), createElementBlock("div", _hoisted_1, [
createBaseVNode("div", _hoisted_2, toDisplayString(__props.data.label), 1),
createVNode(unref(_sfc_main$f), {
id: "top-" + __props.id,
type: "source",
position: "top",
style: { background: "#4a5568" }
}, null, 8, ["id"]),
createVNode(unref(_sfc_main$f), {
id: "left-" + __props.id,
type: "source",
position: "left",
style: { background: "#4a5568" }
}, null, 8, ["id"]),
createVNode(unref(_sfc_main$f), {
id: "right-" + __props.id,
type: "source",
position: "right",
style: { background: "#4a5568" }
}, null, 8, ["id"]),
createVNode(unref(_sfc_main$f), {
id: "bottom-" + __props.id,
type: "source",
position: "bottom",
style: { background: "#4a5568" }
}, null, 8, ["id"])
]);
};
}
};
const CustomNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2960f973"]]);
export {
CustomNode as default
};