From b4b44da5d1f209182fb684959fa1bcadd47e841f Mon Sep 17 00:00:00 2001 From: hydraZty <670688667@qq.com> Date: Thu, 2 Dec 2021 11:47:13 +0800 Subject: [PATCH 01/15] fix: Radio dot offset when zooming (#33086) Co-authored-by: hydraZty --- components/radio/style/index.less | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/radio/style/index.less b/components/radio/style/index.less index 66356b3e8082..f3a5d21c9fc0 100644 --- a/components/radio/style/index.less +++ b/components/radio/style/index.less @@ -81,15 +81,17 @@ &-inner { &::after { position: absolute; - top: ((@radio-size - @radio-dot-size) / 2) - @radio-border-width; - left: ((@radio-size - @radio-dot-size) / 2) - @radio-border-width; + top: 50%; + left: 50%; display: block; - width: @radio-dot-size; - height: @radio-dot-size; + width: @radio-size; + height: @radio-size; + margin-top: -(@radio-size / 2); + margin-left: -(@radio-size / 2); background-color: @radio-dot-color; border-top: 0; border-left: 0; - border-radius: @radio-dot-size; + border-radius: @radio-size; transform: scale(0); opacity: 0; transition: all @radio-duration @ease-in-out-circ; @@ -128,7 +130,7 @@ border-color: @radio-dot-color; &::after { - transform: scale(1); + transform: scale((unit(@radio-dot-size) / unit(@radio-size))); opacity: 1; transition: all @radio-duration @ease-in-out-circ; } From 441eb649bd7c7609fffd960c29e1b999361f1e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 2 Dec 2021 13:59:22 +0800 Subject: [PATCH 02/15] chore: bump version (#33124) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c5c42e076811..baefdaab13ab 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "lodash": "^4.17.21", "memoize-one": "^6.0.0", "moment": "^2.25.3", - "rc-cascader": "~2.2.0", + "rc-cascader": "~2.3.0", "rc-checkbox": "~2.3.0", "rc-collapse": "~3.1.0", "rc-dialog": "~8.6.0", @@ -139,7 +139,7 @@ "rc-progress": "~3.1.0", "rc-rate": "~2.9.0", "rc-resize-observer": "^1.1.0", - "rc-select": "~13.1.0-alpha.0", + "rc-select": "~13.2.1", "rc-slider": "~9.7.4", "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", @@ -148,7 +148,7 @@ "rc-textarea": "~0.3.0", "rc-tooltip": "~5.1.1", "rc-tree": "~5.3.0", - "rc-tree-select": "~4.7.0", + "rc-tree-select": "~4.8.0", "rc-trigger": "^5.2.10", "rc-upload": "~4.3.0", "rc-util": "^5.14.0", From e49a451650bda323ce129df00e8bfe657d07dd3e Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 2 Dec 2021 14:40:03 +0800 Subject: [PATCH 03/15] fix: Select width bug when searching (#32988) * fix: select placeholder should take place when searching close #27688 * fix snapshot --- .../select/__tests__/__snapshots__/demo.test.js.snap | 1 - components/select/demo/search.md | 11 ----------- components/select/style/single.less | 1 + 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/components/select/__tests__/__snapshots__/demo.test.js.snap b/components/select/__tests__/__snapshots__/demo.test.js.snap index 6663597385f2..ad1e10f98280 100644 --- a/components/select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/select/__tests__/__snapshots__/demo.test.js.snap @@ -1711,7 +1711,6 @@ exports[`renders ./components/select/demo/responsive.md correctly 1`] = ` exports[`renders ./components/select/demo/search.md correctly 1`] = `