mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [slider] data anomaly when the input value is undefined (#15402)
fix(components): [slider] data anomaly Co-authored-by: qiang <qw13131wang@gmail.com>
This commit is contained in:
@@ -113,8 +113,10 @@ export const useSlide = (
|
||||
}
|
||||
|
||||
const setFirstValue = (firstValue: number | undefined) => {
|
||||
initData.firstValue = firstValue!
|
||||
_emit(props.range ? [minValue.value, maxValue.value] : firstValue!)
|
||||
initData.firstValue = firstValue ?? props.min
|
||||
_emit(
|
||||
props.range ? [minValue.value, maxValue.value] : firstValue ?? props.min
|
||||
)
|
||||
}
|
||||
|
||||
const setSecondValue = (secondValue: number) => {
|
||||
|
||||
Reference in New Issue
Block a user