mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 00:39:49 +00:00
Migrate settings dialog to Vue (#335)
* Basic setting dialog * Add custom setting value render * handle combo options * Add input slider * 100% width for select dropdown
This commit is contained in:
@@ -7,10 +7,16 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { app } from '@/scripts/app'
|
||||
import SideBarIcon from './SideBarIcon.vue'
|
||||
import { useDialogStore } from '@/stores/dialogStore'
|
||||
import SettingDialogContent from '@/components/dialog/content/SettingDialogContent.vue'
|
||||
const frontendVersion = window['__COMFYUI_FRONTEND_VERSION__']
|
||||
|
||||
const dialogStore = useDialogStore()
|
||||
const showSetting = () => {
|
||||
app.ui.settings.show()
|
||||
dialogStore.showDialog({
|
||||
title: `Settings (v${frontendVersion})`,
|
||||
component: SettingDialogContent
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user