Closed minecraft2048 closed 7 months ago
In https://v2.baklava.tech/visual-editor/customization.html they have this example code:
<template> <Editor> <template #node="nodeProps"> <MyNodeRenderer v-if="nodeProps.node.type === 'MyNodeType'" :key="nodeProps.node.id" v-bind="nodeProps" /> <BaklavaNode v-else :key="nodeProps.node.id" v-bind="nodeProps" /> </template> </Editor> </template> <script setup> import { Editor, Components } from "@baklavajs/renderer-vue"; const BaklavaNode = Components.Node; // example, replace with your component: import MyNodeRenderer from "./MyNodeRenderer.vue"; </script>
But there's no Editor class in "@baklavajs/renderer-vue
Editor
"@baklavajs/renderer-vue
In https://v2.baklava.tech/visual-editor/customization.html they have this example code:
But there's no
Editor
class in"@baklavajs/renderer-vue