mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
fix: render wrapper dynamically
This commit is contained in:
@@ -1,13 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<WidgetLayoutField :widget>
|
<WidgetLayoutField :widget>
|
||||||
<div class="ml-auto flex items-center gap-2">
|
<div v-if="currentLabel" class="ml-auto flex items-center gap-2">
|
||||||
<ToggleSwitch
|
<ToggleSwitch
|
||||||
v-model="modelValue"
|
v-model="modelValue"
|
||||||
v-bind="filteredProps"
|
v-bind="filteredProps"
|
||||||
:aria-label="widget.name"
|
:aria-label="widget.name"
|
||||||
/>
|
/>
|
||||||
<span v-if="currentLabel" class="text-sm">{{ currentLabel }}</span>
|
<span class="text-sm">{{ currentLabel }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<ToggleSwitch
|
||||||
|
v-else
|
||||||
|
v-model="modelValue"
|
||||||
|
v-bind="filteredProps"
|
||||||
|
class="ml-auto block"
|
||||||
|
:aria-label="widget.name"
|
||||||
|
/>
|
||||||
</WidgetLayoutField>
|
</WidgetLayoutField>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user