close #1453 Fixed: Style problem with date field after validation
This commit is contained in:
parent
c1fd4a35e2
commit
4d009e11b0
4
public/css/custom.css
vendored
4
public/css/custom.css
vendored
@ -826,3 +826,7 @@ table .align-items-center td span.badge {
|
|||||||
.navbar-vertical .navbar-nav .nav-link:not(.active) {
|
.navbar-vertical .navbar-nav .nav-link:not(.active) {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-group.has-error .el-input__inner {
|
||||||
|
border-color: #ef3232 !important;
|
||||||
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{'disabled': disabled},
|
{'disabled': disabled},
|
||||||
formClasses
|
formClasses
|
||||||
]"
|
]"
|
||||||
:error="formError"
|
:footer-error="formError"
|
||||||
:prependIcon="icon"
|
:prependIcon="icon"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
@ -52,6 +52,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
<slot name="error">
|
||||||
|
<div v-if="footerError" class="invalid-feedback d-block"
|
||||||
|
v-html="footerError">
|
||||||
|
</div>
|
||||||
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -84,6 +89,10 @@
|
|||||||
type: String,
|
type: String,
|
||||||
description: "Input error (below input)"
|
description: "Input error (below input)"
|
||||||
},
|
},
|
||||||
|
footerError: {
|
||||||
|
type: String,
|
||||||
|
description: "Input error (below input)"
|
||||||
|
},
|
||||||
successMessage: {
|
successMessage: {
|
||||||
type: String,
|
type: String,
|
||||||
description: "Input success message",
|
description: "Input success message",
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
:group_class="'{{ $group_class }}'"
|
||||||
|
|
||||||
icon="fa fa-{{ $icon }}"
|
icon="fa fa-{{ $icon }}"
|
||||||
title="{{ $text }}"
|
title="{{ $text }}"
|
||||||
placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}"
|
placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}"
|
||||||
@ -47,6 +49,10 @@
|
|||||||
@interface="form.{{ $name }} = $event"
|
@interface="form.{{ $name }} = $event"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (isset($attributes['required']))
|
||||||
|
:required="{{ ($attributes['required']) ? 'true' : 'false' }}"
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($attributes['readonly']))
|
@if (isset($attributes['readonly']))
|
||||||
:readonly="{{ $attributes['readonly'] }}"
|
:readonly="{{ $attributes['readonly'] }}"
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user