尝试自定义节点

This commit is contained in:
2025-03-10 16:06:12 +08:00
parent 57120c002a
commit 6c33113092
6 changed files with 43 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
<script setup>
import {onMounted} from 'vue'
import {amisRender} from '../utils.js'
import {createApp, onMounted} from 'vue'
import {amisRender} from '@/utils.js'
import Flow from "@/components/Flow.vue";
const toastMessage = () => {
alert('click in vue')
@@ -29,6 +30,12 @@ onMounted(() => {
]
}
}
},
{
type: 'custom',
onMount: (dom, value, onChange, props) => {
createApp(Flow).mount(dom)
}
}
]
}