diff --git a/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap
index 022b717ab9..4a71c41934 100644
--- a/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap
+++ b/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap
@@ -2,10 +2,10 @@
exports[`RangePicker customize separator 1`] = `
-
+
test
-
-
+
+
diff --git a/components/vc-picker/RangePicker.tsx b/components/vc-picker/RangePicker.tsx
index 69cb823dd9..c81d2cca43 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,