File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed
Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -105,24 +105,26 @@ const hasErrors = computed(() => {
105105
106106<template >
107107 <div :class =" [rootClasses, $attrs.class]" data-ui-input-group >
108- <div
109- v-if =" $slots.actions"
110- :class =" [
111- 'flex items-center gap-x-1 mb-0',
112- props.label || $slots.label ? 'justify-between' : 'justify-end',
113- ]"
114- data-ui-field-header
115- >
116- <slot name =" label" >
117- <Label v-if =" label" v-bind =" labelProps" class =" flex-1" />
118- </slot >
119- <slot name =" actions" />
120- </div >
121- <div v-if =" label || (instructions && !instructionsBelow) || ($slots.label && !$slots.actions)" data-ui-field-text :class =" inline ? 'mb-0' : 'mb-1.5'" >
122- <slot v-if =" !$slots.actions" name =" label" >
123- <Label v-if =" label" v-bind =" labelProps" class =" flex-1" />
124- </slot >
125- <Description :text =" instructions" v-if =" instructions && !instructionsBelow" :class =" descriptionClasses" />
108+ <div v-if =" label || (instructions && !instructionsBelow) || $slots.label || $slots.actions" >
109+ <div
110+ v-if =" $slots.actions"
111+ :class =" [
112+ 'flex items-center gap-x-1 mb-0',
113+ props.label || $slots.label ? 'justify-between' : 'justify-end',
114+ ]"
115+ data-ui-field-header
116+ >
117+ <slot name =" label" >
118+ <Label v-if =" label" v-bind =" labelProps" class =" flex-1" />
119+ </slot >
120+ <slot name =" actions" />
121+ </div >
122+ <div v-if =" label || (instructions && !instructionsBelow) || ($slots.label && !$slots.actions)" data-ui-field-text :class =" inline ? 'mb-0' : 'mb-1.5'" >
123+ <slot v-if =" !$slots.actions" name =" label" >
124+ <Label v-if =" label" v-bind =" labelProps" class =" flex-1" />
125+ </slot >
126+ <Description :text =" instructions" v-if =" instructions && !instructionsBelow" :class =" descriptionClasses" />
127+ </div >
126128 </div >
127129 <slot />
128130 <div v-if =" (instructions && instructionsBelow) || hasErrors" >
You can’t perform that action at this time.
0 commit comments