Merge pull request #1728 from SevanNerse/master
minor changes made on akaunting-date component and used partials
This commit is contained in:
commit
3b92bd8447
@ -83,12 +83,18 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.real_model = this.value;
|
this.real_model = this.value;
|
||||||
|
|
||||||
|
if (this.model) {
|
||||||
|
this.real_model = this.model;
|
||||||
|
}
|
||||||
|
|
||||||
this.$emit('interface', this.real_model);
|
this.$emit('interface', this.real_model);
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
change() {
|
change() {
|
||||||
this.$emit('interface', this.real_model);
|
this.$emit('interface', this.real_model);
|
||||||
|
|
||||||
|
this.$emit('change', this.real_model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (!empty($attributes['change']))
|
||||||
|
@change="{{ $attributes['change'] }}"
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($attributes['required']))
|
@if (isset($attributes['required']))
|
||||||
:required="{{ ($attributes['required']) ? 'true' : 'false' }}"
|
:required="{{ ($attributes['required']) ? 'true' : 'false' }}"
|
||||||
@endif
|
@endif
|
||||||
|
@ -52,6 +52,10 @@
|
|||||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (!empty($attributes['change']))
|
||||||
|
@change="{{ $attributes['change'] }}"
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($attributes['readonly']))
|
@if (isset($attributes['readonly']))
|
||||||
:readonly="{{ $attributes['readonly'] }}"
|
:readonly="{{ $attributes['readonly'] }}"
|
||||||
@endif
|
@endif
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (!empty($attributes['change']))
|
||||||
|
@change="{{ $attributes['change'] }}"
|
||||||
|
@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