mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 18:24:11 +00:00
Dom widget store (#2899)
This commit is contained in:
19
src/components/graph/widgets/DomWidget.vue
Normal file
19
src/components/graph/widgets/DomWidget.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div ref="widgetElement" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
import type { DOMWidget } from '@/scripts/domWidget'
|
||||
|
||||
const { widget } = defineProps<{
|
||||
widget: DOMWidget<HTMLElement, any>
|
||||
}>()
|
||||
|
||||
const widgetElement = ref<HTMLElement>()
|
||||
|
||||
onMounted(() => {
|
||||
widgetElement.value.appendChild(widget.element)
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user