Merge pull request #1728 from SevanNerse/master

minor changes made on akaunting-date component and used partials
This commit is contained in:
Cüneyt Şentürk 2021-01-04 18:47:51 +03:00 committed by GitHub
commit 3b92bd8447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View File

@ -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);
} }
} }
} }

View File

@ -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

View File

@ -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

View File

@ -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