mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-03 04:31:58 +00:00
fix: default variant changed and truncation added
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<template>
|
||||
<WidgetLayoutField :widget="widgetWithStyle">
|
||||
<!-- Use ToggleGroup when explicit labels are provided -->
|
||||
<!-- The variant attribute is not necessary here because the default is secondary -->
|
||||
<!-- It was still added to show that a variant (3) can be explicitly set -->
|
||||
<ToggleGroup
|
||||
v-if="hasLabels"
|
||||
type="single"
|
||||
variant="primary"
|
||||
variant="secondary"
|
||||
:model-value="toggleGroupValue"
|
||||
class="w-full mb-[-0.5rem]"
|
||||
@update:model-value="handleToggleGroupChange"
|
||||
|
||||
Reference in New Issue
Block a user