mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00

committed by
Brandy Carney

parent
583c43127b
commit
016fa16d44
@ -105,6 +105,12 @@ export class Range implements ComponentInterface {
|
||||
*/
|
||||
@Prop() step = 1;
|
||||
|
||||
/**
|
||||
* If `true`, tick marks are displayed based on the step value.
|
||||
* Only applies when `snaps` is `true`.
|
||||
*/
|
||||
@Prop() ticks = true;
|
||||
|
||||
/**
|
||||
* If `true`, the user cannot interact with the range.
|
||||
*/
|
||||
@ -393,7 +399,7 @@ export class Range implements ComponentInterface {
|
||||
const end = isRTL ? 'left' : 'right';
|
||||
|
||||
const ticks = [];
|
||||
if (this.snaps) {
|
||||
if (this.snaps && this.ticks) {
|
||||
for (let value = min; value <= max; value += step) {
|
||||
const ratio = valueToRatio(value, min, max);
|
||||
|
||||
|
Reference in New Issue
Block a user