mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-03 04:31:58 +00:00
Migrate vue widget data to use refs
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import Button from 'primevue/button'
|
||||
import { computed } from 'vue'
|
||||
import { computed, triggerRef } from 'vue'
|
||||
|
||||
import type { SimplifiedWidget } from '@/types/simplifiedWidget'
|
||||
import {
|
||||
@@ -37,8 +37,7 @@ const filteredProps = computed(() =>
|
||||
)
|
||||
|
||||
const handleClick = () => {
|
||||
if (props.widget.callback) {
|
||||
props.widget.callback()
|
||||
}
|
||||
//FIXME: Will do nothing since backing value is unchanged
|
||||
triggerRef(props.widget.value())
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user