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:
Chenlei Hu
2024-08-07 14:01:43 -04:00
committed by GitHub
parent eb1c66c90a
commit 02d7f91e9e
7 changed files with 217 additions and 5 deletions

View File

@@ -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>