We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I want to output a Pre-defined interface or a personal Display Component to another node, I get an error: Could not find value for interface
import ReactiveOutputTest from "./ReactiveOutputTest.vue"; import { TextInputInterface } from "baklavajs"; class ReactiveOutputTestInterface extends NodeInterface<number> { constructor(name: string, value: number) { super(name, value); this.setComponent(markRaw(ReactiveOutputTest)); } } export default defineNode({ type: "ReactiveOutputTest", inputs: { a: () => new ReactiveOutputTestInterface("Test", 3), }, outputs: { b: () => new TextInputInterface("Name", "Edit me"), }, });
ReactiveOutputTest.vue:
<template> <button @click="add" >{{ modelValue }} </button> </template> <script> import { defineComponent } from "vue"; export default defineComponent({ props: { modelValue: { type: Number, // readonly: false, required: true, }, }, emits: ["update:modelValue"], setup(props, { emit }) { const add = () => { console.log('modelValue', props.modelValue); console.log('modelValue', props); emit("update:modelValue", props.modelValue + 1); console.log('modelValue+1', props.modelValue); }; return { add }; }, }); </script>
The text was updated successfully, but these errors were encountered:
Engine: Handle nodes without calculate function #313
15a45c4
Thanks, will be fixed in the next release
Sorry, something went wrong.
No branches or pull requests
when I want to output a Pre-defined interface or a personal Display Component to another node, I get an error: Could not find value for interface
ReactiveOutputTest.vue:
The text was updated successfully, but these errors were encountered: