mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
28 lines
687 B
TypeScript
28 lines
687 B
TypeScript
import SubgraphNode from '@/workbench/graph/subgraph/SubgraphNode.vue'
|
|
import { useDialogStore } from '@/stores/dialogStore'
|
|
import type { DialogComponentProps } from '@/stores/dialogStore'
|
|
|
|
const key = 'global-subgraph-node-config'
|
|
|
|
export function showSubgraphNodeDialog() {
|
|
const dialogStore = useDialogStore()
|
|
const dialogComponentProps: DialogComponentProps = {
|
|
modal: false,
|
|
position: 'topright',
|
|
pt: {
|
|
root: {
|
|
class: 'bg-node-component-surface mt-22'
|
|
},
|
|
header: {
|
|
class: 'h-8 text-xs ml-3'
|
|
}
|
|
}
|
|
}
|
|
dialogStore.showDialog({
|
|
title: 'Parameters',
|
|
key,
|
|
component: SubgraphNode,
|
|
dialogComponentProps
|
|
})
|
|
}
|