Select and date vue component fixes.

This commit is contained in:
Cüneyt Şentürk
2020-02-14 14:56:58 +03:00
parent 259a771bbf
commit aa97e6ab16
15 changed files with 161 additions and 79 deletions

View File

@@ -9,12 +9,19 @@
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
@endif
:icon="'{{ $icon }}'"
:title="'{{ $text }}'"
:placeholder="'{{ trans('general.form.select.field', ['field' => $text]) }}'"
:name="'{{ $name }}'"
icon="{{ $icon }}"
title="{{ $text }}"
placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}"
name="{{ $name }}"
:options="{{ json_encode($values) }}"
:value="'{{ old($name, $selected) }}'"
@if(old($name, $selected))
value="{{ old($name, $selected) }}"
@endif
@if (!empty($attributes['model']))
:model="{{ $attributes['model'] }}"
@endif
:add-new="{{ json_encode([
'status' => true,
@@ -62,8 +69,8 @@
:form-error="form.errors.get('{{ $name }}')"
@endif
:no-data-text="'{{ trans('general.no_data') }}'"
:no-matching-data-text="'{{ trans('general.no_matching_data') }}'"
no-data-text="{{ trans('general.no_data') }}"
no-matching-data-text="{{ trans('general.no_matching_data') }}"
></akaunting-select>
@stack($name . '_input_end')