fixed date group configuration issue..
This commit is contained in:
parent
0bb114de71
commit
096d9f29be
@ -14,7 +14,7 @@
|
|||||||
<flat-picker slot-scope="{focus, blur}"
|
<flat-picker slot-scope="{focus, blur}"
|
||||||
@on-open="focus"
|
@on-open="focus"
|
||||||
@on-close="blur"
|
@on-close="blur"
|
||||||
:config="config"
|
:config="dateConfig"
|
||||||
class="form-control datepicker"
|
class="form-control datepicker"
|
||||||
v-model="real_model"
|
v-model="real_model"
|
||||||
@input="change"
|
@input="change"
|
||||||
@ -67,7 +67,19 @@ export default {
|
|||||||
default: null,
|
default: null,
|
||||||
description: "Input model defalut"
|
description: "Input model defalut"
|
||||||
},
|
},
|
||||||
config: null,
|
dateConfig: {
|
||||||
|
type: Object,
|
||||||
|
default: function () {
|
||||||
|
return {
|
||||||
|
allowInput: true,
|
||||||
|
altFormat: "d M Y",
|
||||||
|
altInput: true,
|
||||||
|
dateFormat: "Y-m-d",
|
||||||
|
wrap: true,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
description: "FlatPckr date configuration"
|
||||||
|
},
|
||||||
icon: {
|
icon: {
|
||||||
type: String,
|
type: String,
|
||||||
description: "Prepend icon (left)"
|
description: "Prepend icon (left)"
|
||||||
|
@ -24,20 +24,21 @@
|
|||||||
:model="{{ $attributes['model'] }}"
|
:model="{{ $attributes['model'] }}"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
:config="{
|
:date-config="{
|
||||||
|
wrap: true, // set wrap to true only when using 'input-group'
|
||||||
allowInput: true,
|
allowInput: true,
|
||||||
@if (!empty($attributes['show-date-format']))
|
@if (!empty($attributes['show-date-format']))
|
||||||
altInput: true,
|
altInput: true,
|
||||||
altFormat: '{{ $attributes['show-date-format'] }}',
|
altFormat: '{{ $attributes['show-date-format'] }}',
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['date-format']))
|
@if (!empty($attributes['date-format']))
|
||||||
dateFormat: '{{ $attributes['date-format'] }}'
|
dateFormat: '{{ $attributes['date-format'] }}',
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['min-date']))
|
@if (!empty($attributes['min-date']))
|
||||||
minDate: {{ $attributes['min-date'] }}
|
minDate: {{ $attributes['min-date'] }},
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['max-date']))
|
@if (!empty($attributes['max-date']))
|
||||||
maxDate: {{ $attributes['max-date'] }}
|
maxDate: {{ $attributes['max-date'] }},
|
||||||
@endif
|
@endif
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
:model="{{ $attributes['model'] }}"
|
:model="{{ $attributes['model'] }}"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
:config="{
|
:date-config="{
|
||||||
allowInput: true,
|
allowInput: true,
|
||||||
@if (!empty($attributes['show-date-format']))
|
@if (!empty($attributes['show-date-format']))
|
||||||
altInput: true,
|
altInput: true,
|
||||||
@ -34,13 +34,13 @@
|
|||||||
wrap: true,
|
wrap: true,
|
||||||
enableTime: true,
|
enableTime: true,
|
||||||
@if (!empty($attributes['seconds']))
|
@if (!empty($attributes['seconds']))
|
||||||
enableSeconds: true
|
enableSeconds: true,
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['min-date']))
|
@if (!empty($attributes['min-date']))
|
||||||
minDate: {{ $attributes['min-date'] }}
|
minDate: {{ $attributes['min-date'] }},
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['max-date']))
|
@if (!empty($attributes['max-date']))
|
||||||
maxDate: {{ $attributes['max-date'] }}
|
maxDate: {{ $attributes['max-date'] }},
|
||||||
@endif
|
@endif
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user