|
|
@ -726,7 +726,7 @@ useEventListener( |
|
|
|
<span v-if="element.required" class="text-red-500"> *</span> |
|
|
|
<span v-if="element.required" class="text-red-500"> *</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-form-help-text text-gray-500 text-[13px] mt-2" data-testid="nc-form-help-text"> |
|
|
|
<div class="nc-form-help-text text-gray-500 text-[13px] leading-5 mt-2" data-testid="nc-form-help-text"> |
|
|
|
{{ element.description }} |
|
|
|
{{ element.description }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -752,8 +752,9 @@ useEventListener( |
|
|
|
<a-form-item class="my-0 !mb-2"> |
|
|
|
<a-form-item class="my-0 !mb-2"> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
|
<span |
|
|
|
<span |
|
|
|
class="text-gray-500 mr-2" |
|
|
|
class="nc-form-input-required text-gray-500 mr-2" |
|
|
|
@click=" |
|
|
|
data-testid="nc-form-input-required" |
|
|
|
|
|
|
|
@click.stop=" |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
element.required = !element.required |
|
|
|
element.required = !element.required |
|
|
|
updateColMeta(element) |
|
|
|
updateColMeta(element) |
|
|
@ -765,8 +766,6 @@ useEventListener( |
|
|
|
<a-switch |
|
|
|
<a-switch |
|
|
|
v-model:checked="element.required" |
|
|
|
v-model:checked="element.required" |
|
|
|
v-e="['a:form-view:field:mark-required']" |
|
|
|
v-e="['a:form-view:field:mark-required']" |
|
|
|
class="nc-form-input-required" |
|
|
|
|
|
|
|
data-testid="nc-form-input-required" |
|
|
|
|
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
@change="updateColMeta(element)" |
|
|
|
@change="updateColMeta(element)" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -1320,7 +1319,7 @@ useEventListener( |
|
|
|
.nc-form-field-ghost { |
|
|
|
.nc-form-field-ghost { |
|
|
|
@apply bg-gray-50; |
|
|
|
@apply bg-gray-50; |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(.nc-form-input-required):focus { |
|
|
|
:deep(.nc-form-input-required + button):focus { |
|
|
|
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3366ff; |
|
|
|
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3366ff; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|