diff --git a/src/components/ui/select/SelectItem.vue b/src/components/ui/select/SelectItem.vue index 678853cad98..1d5dd6624ed 100644 --- a/src/components/ui/select/SelectItem.vue +++ b/src/components/ui/select/SelectItem.vue @@ -5,8 +5,19 @@ import type { HTMLAttributes } from 'vue' import { cn } from '@comfyorg/tailwind-utils' -const { class: className, ...restProps } = defineProps< - SelectItemProps & { class?: HTMLAttributes['class'] } +const { + class: className, + textClass, + reserveIndicator = false, + ...restProps +} = defineProps< + SelectItemProps & { + class?: HTMLAttributes['class'] + /** Classes for the item's text, which holds the slot. */ + textClass?: HTMLAttributes['class'] + /** Keeps the check's column on unchecked items too, so text that ends at the right lines up. */ + reserveIndicator?: boolean + } >() @@ -26,12 +37,21 @@ const { class: className, ...restProps } = defineProps< ) " > - + - -