update: use vue-demi again to add compatability to vue2

* add vite.config.app.ts for demo generation
This commit is contained in:
Braks
2021-07-10 11:51:12 +02:00
parent 6a5496c60f
commit 92caccfd6e
39 changed files with 67 additions and 42 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import Handle from '../../components/Handle';
import { NodeProps, Position } from '../../types';
import { defineComponent, PropType } from 'vue';
import { defineComponent, PropType } from 'vue-demi';
const DefaultNode = defineComponent({
name: 'DefaultNode',
+1 -1
View File
@@ -1,6 +1,6 @@
import Handle from '../../components/Handle';
import { NodeProps, Position } from '../../types';
import { defineComponent, PropType } from 'vue';
import { defineComponent, PropType } from 'vue-demi';
const InputNode = defineComponent({
name: 'InputNode',
+1 -1
View File
@@ -1,6 +1,6 @@
import Handle from '../../components/Handle';
import { NodeProps, Position } from '../../types';
import { defineComponent, PropType } from 'vue';
import { defineComponent, PropType } from 'vue-demi';
const OutputNode = defineComponent({
name: 'OutputNode',
+1 -1
View File
@@ -1,5 +1,5 @@
import { Node, WrapNodeProps } from '../../types';
import { computed, CSSProperties, defineComponent, onMounted, provide, ref } from 'vue';
import { computed, CSSProperties, defineComponent, onMounted, provide, ref } from 'vue-demi';
import store from '../../store';
export default (NodeComponent: any) => {