diff --git a/components/vc-picker/RangePicker.tsx b/components/vc-picker/RangePicker.tsx index 69cb823dd..c81d2cca4 100644 --- a/components/vc-picker/RangePicker.tsx +++ b/components/vc-picker/RangePicker.tsx @@ -413,7 +413,11 @@ function RangerPicker() { const { width: panelDivWidth } = useElementSize(panelDivRef); const { width: arrowWidth } = useElementSize(arrowRef); const { width: startInputDivWidth } = useElementSize(startInputDivRef); - const { width: separatorWidth } = useElementSize(separatorRef); + const { width: separatorWidth } = useElementSize( + separatorRef, + { width: 0, height: 0 }, + { box: 'border-box' }, + ); watch( [ mergedActivePickerIndex,