mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Merge remote-tracking branch 'origin/main' into webcam-capture
This commit is contained in:
@@ -32,7 +32,6 @@ export interface IWidgetOptions<TValues = unknown[]> {
|
||||
/** Optional function to format values for display (e.g., hash → human-readable name) */
|
||||
getOptionLabel?: (value?: string | null) => string
|
||||
callback?: IWidget['callback']
|
||||
|
||||
iconClass?: string
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="flex flex-col gap-1">
|
||||
<Button
|
||||
class="text-text-secondary w-full border-0 bg-component-node-widget-background p-2"
|
||||
class="text-base-foreground w-full border-0 bg-component-node-widget-background p-2"
|
||||
v-bind="filteredProps"
|
||||
:aria-label="widget.label"
|
||||
size="small"
|
||||
:text="true"
|
||||
@click="handleClick"
|
||||
>
|
||||
{{ widget.label }}
|
||||
<i v-if="widget.options?.iconClass" :class="widget.options.iconClass"></i>
|
||||
{{ widget.label ?? widget.name }}
|
||||
<i v-if="widget.options?.iconClass" :class="widget.options.iconClass" />
|
||||
</Button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="relative">
|
||||
<div class="mb-4">
|
||||
<Button
|
||||
class="text-text-secondary w-full border-0 bg-component-node-widget-background hover:bg-secondary-background-hover"
|
||||
class="text-base-foreground w-full border-0 bg-secondary-background hover:bg-secondary-background-hover"
|
||||
:disabled="isRecording || readonly"
|
||||
@click="handleStartRecording"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user