mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Code Format
This commit is contained in:
parent
a2eaeba481
commit
a85d4bc789
2 changed files with 335 additions and 328 deletions
|
@ -378,15 +378,13 @@ export default {
|
|||
if (this.value && this.value[0] !== undefined) {
|
||||
if (this.value[0] < this.min) return 0;
|
||||
else return ((this.value[0] - this.min) * 100) / (this.max - this.min);
|
||||
}
|
||||
else return 0;
|
||||
} else return 0;
|
||||
},
|
||||
rangeEndPosition() {
|
||||
if (this.value && this.value.length === 2 && this.value[1] !== undefined) {
|
||||
if (this.value[1] > this.max) return 100;
|
||||
else return ((this.value[1] - this.min) * 100) / (this.max - this.min);
|
||||
}
|
||||
else return 100;
|
||||
} else return 100;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue