From c2f74d69b6b86d4beabc768ca7463f251efe1bc5 Mon Sep 17 00:00:00 2001 From: codingories Date: Tue, 10 Jun 2025 13:13:17 +0800 Subject: [PATCH 1/2] fix(RangePicker): fix active bar alignment (#8221) --- components/vc-picker/RangePicker.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, From dc122c6bab143f74ef618f3484924b60df12c6fe Mon Sep 17 00:00:00 2001 From: codingories Date: Tue, 10 Jun 2025 13:19:45 +0800 Subject: [PATCH 2/2] update(snapshots): update range-picker snapshot --- .../__tests__/__snapshots__/RangePicker.test.js.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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
-
-
+
+