fixed claim responsibility
gitea/salix/master This commit looks good
Details
gitea/salix/master This commit looks good
Details
This commit is contained in:
parent
39a41f9a64
commit
7d47757c64
|
@ -6,6 +6,16 @@ export default class Range extends FormInput {
|
|||
constructor($element, $scope) {
|
||||
super($element, $scope);
|
||||
this.input = this.element.querySelector('input');
|
||||
this.input.addEventListener('change', () => this.onValueUpdate());
|
||||
}
|
||||
|
||||
get field() {
|
||||
return super.field;
|
||||
}
|
||||
|
||||
set field(value) {
|
||||
this.input.value = value;
|
||||
super.field = value;
|
||||
}
|
||||
|
||||
get max() {
|
||||
|
@ -35,6 +45,11 @@ export default class Range extends FormInput {
|
|||
refreshTabIndex() {
|
||||
this.input.tabIndex = this.disabled ? -1 : this.tabIndex;
|
||||
}
|
||||
|
||||
onValueUpdate() {
|
||||
this.change(this.input.value);
|
||||
this.$.$applyAsync();
|
||||
}
|
||||
}
|
||||
|
||||
ngModule.vnComponent('vnRange', {
|
||||
|
|
Loading…
Reference in New Issue