mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
fix: iOS TimePicker minuteInterval property (#6116)
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
TimePickerBase, timeProperty,
|
TimePickerBase, timeProperty, minuteIntervalProperty,
|
||||||
minuteProperty, minMinuteProperty, maxMinuteProperty,
|
minuteProperty, minMinuteProperty, maxMinuteProperty,
|
||||||
hourProperty, minHourProperty, maxHourProperty, colorProperty, Color
|
hourProperty, minHourProperty, maxHourProperty, colorProperty, Color
|
||||||
} from "./time-picker-common";
|
} from "./time-picker-common";
|
||||||
@ -93,10 +93,10 @@ export class TimePicker extends TimePickerBase {
|
|||||||
this.nativeViewProtected.maximumDate = getDate(this.hour, value);
|
this.nativeViewProtected.maximumDate = getDate(this.hour, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[timeProperty.getDefault](): number {
|
[minuteIntervalProperty.getDefault](): number {
|
||||||
return this.nativeViewProtected.minuteInterval;
|
return this.nativeViewProtected.minuteInterval;
|
||||||
}
|
}
|
||||||
[timeProperty.setNative](value: number) {
|
[minuteIntervalProperty.setNative](value: number) {
|
||||||
this.nativeViewProtected.minuteInterval = value;
|
this.nativeViewProtected.minuteInterval = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user