diff --git a/packages/components/slider/src/composables/use-slide.ts b/packages/components/slider/src/composables/use-slide.ts index c2ec002b43..12700ba884 100644 --- a/packages/components/slider/src/composables/use-slide.ts +++ b/packages/components/slider/src/composables/use-slide.ts @@ -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) => {