From 07b8fb12a66c79e454cb09009585ba647499f6ae Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 19 Mar 2022 21:53:48 +0800 Subject: [PATCH 01/24] =?UTF-8?q?chore(=F0=9F=A4=96):=20upgrade=20github?= =?UTF-8?q?=20actions=20(#34599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/compressed-size.yml | 2 +- .github/workflows/issue-open-check.yml | 2 +- .../workflows/issues-similarity-analysis.yml | 2 +- .github/workflows/preview-build.yml | 8 ++--- .github/workflows/rebase.yml | 2 +- .github/workflows/site-deploy.yml | 4 +-- .github/workflows/test.yml | 32 +++++++++---------- .github/workflows/ui.yml | 8 ++--- .github/workflows/verify-package-version.yml | 2 +- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml index 1c88a91861..c3fa8b6767 100644 --- a/.github/workflows/compressed-size.yml +++ b/.github/workflows/compressed-size.yml @@ -11,7 +11,7 @@ jobs: CI_JOB_NUMBER: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: preactjs/compressed-size-action@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index 659fe0cdce..97bfef3a26 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -8,7 +8,7 @@ jobs: issue-open-check: runs-on: ubuntu-latest steps: - - uses: actions-cool/check-user-permission@v1 + - uses: actions-cool/check-user-permission@v2 id: checkUser with: require: 'write' diff --git a/.github/workflows/issues-similarity-analysis.yml b/.github/workflows/issues-similarity-analysis.yml index 89daa1877e..8a378357f6 100644 --- a/.github/workflows/issues-similarity-analysis.yml +++ b/.github/workflows/issues-similarity-analysis.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: analysis - uses: actions-cool/issues-similarity-analysis@v1.0.0 + uses: actions-cool/issues-similarity-analysis@v1.1.0 with: filter-threshold: 0.5 title-excludes: '' diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 16bb7253a7..a227a95bb0 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: cache package-lock.json uses: actions/cache@v2 @@ -47,7 +47,7 @@ jobs: needs: setup steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -68,7 +68,7 @@ jobs: SITE_ENV: development - name: upload site artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: site path: _site/ @@ -81,7 +81,7 @@ jobs: - name: Upload PR number if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pr path: ./pr-id.txt diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 0d4b713e9b..facf27780b 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -10,7 +10,7 @@ jobs: if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '\rebase')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Automatic Rebase diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index 77008b5bf5..e6a469593f 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -10,7 +10,7 @@ jobs: if: github.event.ref_type == 'tag' && (contains(github.event.ref, '-') == false) steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: cache package-lock.json uses: actions/cache@v2 @@ -43,7 +43,7 @@ jobs: needs: setup steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b2abedf11..23a0efff96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: cache package-lock.json uses: actions/cache@v2 @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -78,7 +78,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -100,7 +100,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -122,7 +122,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -145,7 +145,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -171,7 +171,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -194,7 +194,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -225,7 +225,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -256,7 +256,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -296,7 +296,7 @@ jobs: REACT: 16 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -324,7 +324,7 @@ jobs: REACT: 16 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -352,7 +352,7 @@ jobs: REACT: 16 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -388,7 +388,7 @@ jobs: REACT: 16 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -424,7 +424,7 @@ jobs: REACT: 16 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -460,7 +460,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: restore cache from package-lock.json uses: actions/cache@v2 diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index daace2e28e..9279de6a51 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: cache package-lock.json uses: actions/cache@v2 @@ -44,7 +44,7 @@ jobs: run: npm run test-image - name: upload snapshots artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: snapshots path: imageSnapshots/ @@ -60,7 +60,7 @@ jobs: - name: Upload commit if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: commit path: ./commit.txt @@ -75,7 +75,7 @@ jobs: - name: Upload branch if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: branch path: ./branch.txt diff --git a/.github/workflows/verify-package-version.yml b/.github/workflows/verify-package-version.yml index f73bcbb418..23ad7572f4 100644 --- a/.github/workflows/verify-package-version.yml +++ b/.github/workflows/verify-package-version.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.event.pull_request.title, 'changelog') || contains(github.event.pull_request.title, 'release') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: verify-version uses: actions-cool/verify-package-version@v1 with: From 89e9819c75fa4e6cf0e945bd6fabc58b7ea9b596 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Sun, 20 Mar 2022 11:06:50 +0800 Subject: [PATCH 02/24] ci: update result --- .github/workflows/issue-open-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index 97bfef3a26..e574f64ac7 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -15,7 +15,7 @@ jobs: check-bot: true - name: check invalid - if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false') + if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.check-result == 'false') uses: actions-cool/issues-helper@v3 with: actions: 'create-comment,add-labels,close-issue' From ee8e7851b6b67a358e19b438699da094008bb783 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Sun, 20 Mar 2022 11:07:34 +0800 Subject: [PATCH 03/24] ci: fix result --- .github/workflows/issue-open-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index e574f64ac7..46a2e6cfd4 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -15,7 +15,7 @@ jobs: check-bot: true - name: check invalid - if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.check-result == 'false') + if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.require-result == 'false') uses: actions-cool/issues-helper@v3 with: actions: 'create-comment,add-labels,close-issue' From bd79b2d2b7adee547ff39182f3bb89a221975f58 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 20 Mar 2022 23:06:54 +0800 Subject: [PATCH 04/24] Update issue-open-check.yml --- .github/workflows/issue-open-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index 46a2e6cfd4..0202bf7c6f 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -83,6 +83,6 @@ jobs: with: DING_TALK_TOKEN: ${{ secrets.DINGDING_BOT_TOKEN }} notify_title: '🔥 @${{ github.event.issue.user.login }} 创建了 issue:${{ github.event.issue.title }}' - notify_body: '### 🔥 @${{ github.event.issue.user.login }} 创建了 issue:[${{ github.event.issue.title }}](${{ github.event.issue.html_url }})
${{ github.event.issue.body }}' + notify_body: '### 🔥 @${{ github.event.issue.user.login }} 创建了 issue:[${{ github.event.issue.title }}](${{ github.event.issue.html_url }})
![](https://gw.alipayobjects.com/zos/antfincdn/5Cl2G7JjF/jieping2022-03-20%252520xiawu11.06.04.png)
${{ github.event.issue.body }}' notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。' at_all: false # whether to ding everybody From 47282f73bf16317ab1d2db5cc72f813e421372ad Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 21 Mar 2022 12:04:34 +0800 Subject: [PATCH 05/24] fix: clear icon style (#34610) --- components/input/style/allow-clear.less | 1 + 1 file changed, 1 insertion(+) diff --git a/components/input/style/allow-clear.less b/components/input/style/allow-clear.less index be370d87e5..946541ef4f 100644 --- a/components/input/style/allow-clear.less +++ b/components/input/style/allow-clear.less @@ -2,6 +2,7 @@ @input-prefix-cls: ~'@{ant-prefix}-input'; // ========================= Input ========================= +.@{iconfont-css-prefix}.@{ant-prefix}-input-clear-icon, .@{ant-prefix}-input-clear-icon { margin: 0; color: @disabled-color; From 491178cca93b2ec065eebaf680af66cf20bf94d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Mon, 21 Mar 2022 17:05:26 +0800 Subject: [PATCH 06/24] docs: add 4.19.3 changhelog (#34617) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 期贤 --- CHANGELOG.en-US.md | 16 ++++++++++++++++ CHANGELOG.zh-CN.md | 16 ++++++++++++++++ package.json | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 3e2711b40b..cd9221128a 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,22 @@ timeline: true --- +## 4.19.3 + +`2022-03-21` + +- 🐞 Fix TextArea clearIcon color. [#34610](https://github.com/ant-design/ant-design/pull/34610) [@MadCcc](https://github.com/MadCcc) +- 🌐 Updated lt_LT locale for `typeTemplate`. [#34567](https://github.com/ant-design/ant-design/pull/34567) [@Anizcus](https://github.com/Anizcus) +- 🐞 fix: apply scale transform to disabled star. [#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) +- 🐞 Fix Tooltip arrow color with preset. [#34548](https://github.com/ant-design/ant-design/pull/34548) [@MadCcc](https://github.com/MadCcc) +- 🐞 Fixed number abnormal position display in Badge RTL mode. [#34545](https://github.com/ant-design/ant-design/pull/34545) +- 💄 Fix numeric Row and Col class styles when using prefixCls. [#34494](https://github.com/ant-design/ant-design/pull/34494) [@mic-web](https://github.com/mic-web) +- 🐞 Fix Editable Textarea height jump in Firefox and Editable Typography.Title confirm icon position. [#34518](https://github.com/ant-design/ant-design/pull/34518) +- 💄 Fix missing `status` style in RangePicker. [#34509](https://github.com/ant-design/ant-design/pull/34509) [@MadCcc](https://github.com/MadCcc) +- 🛠 Prepare for CssInJs and place preClsName generation in the outer layer. [#34482](https://github.com/ant-design/ant-design/pull/34482) [@LongHaoo](https://github.com/LongHaoo) +- 🛎 Add warning for Input getting blurred when dynamically add `hasFeedback`. [#34475](https://github.com/ant-design/ant-design/pull/34475) [@MadCcc](https://github.com/MadCcc) +- 🐞 Fix missing classname in input when Input has `prefix` or `suffix`. [#34474](https://github.com/ant-design/ant-design/pull/34474) [@MadCcc](https://github.com/MadCcc) + ## 4.19.2 `2022-03-13` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 3c2456cfcd..68b0f8f8e8 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,22 @@ timeline: true --- +## 4.19.3 + +`2022-03-21` + +- 🐞 修复 TextArea clearIcon 的颜色问题。[#34610](https://github.com/ant-design/ant-design/pull/34610) [@MadCcc](https://github.com/MadCcc) +- 🌐 更新 lt_LT 的 locale。[#34567](https://github.com/ant-design/ant-design/pull/34567) [@Anizcus](https://github.com/Anizcus) +- 🐞 fix: apply scale transform to disabled star。[#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) +- 🐞 修复 Tooltip 使用预设颜色时 arrow 颜色错误的问题。[#34548](https://github.com/ant-design/ant-design/pull/34548) [@MadCcc](https://github.com/MadCcc) +- 🐞 修复 Badge 数字 RTL 模式下异常位置显示。[#34545](https://github.com/ant-design/ant-design/pull/34545) +- 💄 修复使用 `prefixCls` 时的数字 Row 和 Col 类样式问题。[#34494](https://github.com/ant-design/ant-design/pull/34494) [@mic-web](https://github.com/mic-web) +- 🐞 修复 Typography `editable` 切换时在 Firefox 下高度跳动 和 Typography.Title `editable` 确定图标错位的问题。[#34518](https://github.com/ant-design/ant-design/pull/34518) +- 💄 修复 RangePicker `status` 相关样式丢失的问题。[#34509](https://github.com/ant-design/ant-design/pull/34509) [@MadCcc](https://github.com/MadCcc) +- 🛠 为 CssInJs 做准备,将 preClsName 生成放到外层。[#34482](https://github.com/ant-design/ant-design/pull/34482) [@LongHaoo](https://github.com/LongHaoo) +- 🛎 为动态改变 Form.Item 的 `hasFeedback` 时 Input 焦点丢失添加警告。[#34475](https://github.com/ant-design/ant-design/pull/34475) [@MadCcc](https://github.com/MadCcc) +- 🐞 修复 Input 有 `prefix` 或者 `suffix` 时 input 缺少某些 className 的问题。[#34474](https://github.com/ant-design/ant-design/pull/34474) [@MadCcc](https://github.com/MadCcc) + ## 4.19.2 `2022-03-13` diff --git a/package.json b/package.json index 1f03c901d4..3f1ce82102 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "4.19.2", + "version": "4.19.3", "description": "An enterprise-class UI design language and React components implementation", "title": "Ant Design", "keywords": [ From 8bb11e6d1204f66ec9fa01d034ba73300bafa796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Mon, 21 Mar 2022 18:46:51 +0800 Subject: [PATCH 07/24] docs: update changelogs --- CHANGELOG.en-US.md | 15 +++++++-------- CHANGELOG.zh-CN.md | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index cd9221128a..781042b78e 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -19,17 +19,16 @@ timeline: true `2022-03-21` -- 🐞 Fix TextArea clearIcon color. [#34610](https://github.com/ant-design/ant-design/pull/34610) [@MadCcc](https://github.com/MadCcc) -- 🌐 Updated lt_LT locale for `typeTemplate`. [#34567](https://github.com/ant-design/ant-design/pull/34567) [@Anizcus](https://github.com/Anizcus) -- 🐞 fix: apply scale transform to disabled star. [#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) -- 🐞 Fix Tooltip arrow color with preset. [#34548](https://github.com/ant-design/ant-design/pull/34548) [@MadCcc](https://github.com/MadCcc) +- 🐞 Fix TextArea `clearIcon` color. [#34610](https://github.com/ant-design/ant-design/pull/34610) +- 🐞 Fix: apply scale transform to disabled star. [#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) +- 🐞 Fix Tooltip arrow color with preset. [#34548](https://github.com/ant-design/ant-design/pull/34548) - 🐞 Fixed number abnormal position display in Badge RTL mode. [#34545](https://github.com/ant-design/ant-design/pull/34545) - 💄 Fix numeric Row and Col class styles when using prefixCls. [#34494](https://github.com/ant-design/ant-design/pull/34494) [@mic-web](https://github.com/mic-web) - 🐞 Fix Editable Textarea height jump in Firefox and Editable Typography.Title confirm icon position. [#34518](https://github.com/ant-design/ant-design/pull/34518) -- 💄 Fix missing `status` style in RangePicker. [#34509](https://github.com/ant-design/ant-design/pull/34509) [@MadCcc](https://github.com/MadCcc) -- 🛠 Prepare for CssInJs and place preClsName generation in the outer layer. [#34482](https://github.com/ant-design/ant-design/pull/34482) [@LongHaoo](https://github.com/LongHaoo) -- 🛎 Add warning for Input getting blurred when dynamically add `hasFeedback`. [#34475](https://github.com/ant-design/ant-design/pull/34475) [@MadCcc](https://github.com/MadCcc) -- 🐞 Fix missing classname in input when Input has `prefix` or `suffix`. [#34474](https://github.com/ant-design/ant-design/pull/34474) [@MadCcc](https://github.com/MadCcc) +- 💄 Fix missing `status` style in RangePicker. [#34509](https://github.com/ant-design/ant-design/pull/34509) +- 🛎 Add warning for Input getting blurred when dynamically add `hasFeedback`. [#34475](https://github.com/ant-design/ant-design/pull/34475) +- 🐞 Fix missing classname in input when Input has `prefix` or `suffix`. [#34474](https://github.com/ant-design/ant-design/pull/34474) +- 🌐 Updated it_LT locale for `typeTemplate`. [#34567](https://github.com/ant-design/ant-design/pull/34567) [@Anizcus](https://gitit_LTit_LThub.com/Anizcus) ## 4.19.2 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 68b0f8f8e8..dfc29b4d77 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -19,17 +19,16 @@ timeline: true `2022-03-21` -- 🐞 修复 TextArea clearIcon 的颜色问题。[#34610](https://github.com/ant-design/ant-design/pull/34610) [@MadCcc](https://github.com/MadCcc) -- 🌐 更新 lt_LT 的 locale。[#34567](https://github.com/ant-design/ant-design/pull/34567) [@Anizcus](https://github.com/Anizcus) -- 🐞 fix: apply scale transform to disabled star。[#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) -- 🐞 修复 Tooltip 使用预设颜色时 arrow 颜色错误的问题。[#34548](https://github.com/ant-design/ant-design/pull/34548) [@MadCcc](https://github.com/MadCcc) +- 🐞 修复 TextArea `clearIcon` 的颜色问题。[#34610](https://github.com/ant-design/ant-design/pull/34610) +- 🐞 修复 Rate 下 disabled 时依然有 hover 效果的问题。[#34547](https://github.com/ant-design/ant-design/pull/34547) [@Unuuuuu](https://github.com/Unuuuuu) +- 🐞 修复 Tooltip 使用预设颜色时 arrow 颜色错误的问题。[#34548](https://github.com/ant-design/ant-design/pull/34548) - 🐞 修复 Badge 数字 RTL 模式下异常位置显示。[#34545](https://github.com/ant-design/ant-design/pull/34545) - 💄 修复使用 `prefixCls` 时的数字 Row 和 Col 类样式问题。[#34494](https://github.com/ant-design/ant-design/pull/34494) [@mic-web](https://github.com/mic-web) - 🐞 修复 Typography `editable` 切换时在 Firefox 下高度跳动 和 Typography.Title `editable` 确定图标错位的问题。[#34518](https://github.com/ant-design/ant-design/pull/34518) -- 💄 修复 RangePicker `status` 相关样式丢失的问题。[#34509](https://github.com/ant-design/ant-design/pull/34509) [@MadCcc](https://github.com/MadCcc) -- 🛠 为 CssInJs 做准备,将 preClsName 生成放到外层。[#34482](https://github.com/ant-design/ant-design/pull/34482) [@LongHaoo](https://github.com/LongHaoo) -- 🛎 为动态改变 Form.Item 的 `hasFeedback` 时 Input 焦点丢失添加警告。[#34475](https://github.com/ant-design/ant-design/pull/34475) [@MadCcc](https://github.com/MadCcc) -- 🐞 修复 Input 有 `prefix` 或者 `suffix` 时 input 缺少某些 className 的问题。[#34474](https://github.com/ant-design/ant-design/pull/34474) [@MadCcc](https://github.com/MadCcc) +- 💄 修复 RangePicker `status` 相关样式丢失的问题。[#34509](https://github.com/ant-design/ant-design/pull/34509) +- 🛎 为动态改变 Form.Item 的 `hasFeedback` 时 Input 焦点丢失添加警告。[#34475](https://github.com/ant-design/ant-design/pull/34475) +- 🐞 修复 Input 有 `prefix` 或者 `suffix` 时 input 缺少某些 className 的问题。[#34474](https://github.com/ant-design/ant-design/pull/34474) +- 🌐 更新 it_LT 的 locale。[#34567](https://github.com/ant-desin/ant-design/pull/34567) [@Anizcus](https://github.com/Anizcus) ## 4.19.2 From 232e236215665fbf863fe38309f07ab2275fdf15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Mon, 21 Mar 2022 20:02:11 +0800 Subject: [PATCH 08/24] chore: fix remote no work error --- scripts/check-commit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-commit.js b/scripts/check-commit.js index 7e2a4911ad..108edcd261 100755 --- a/scripts/check-commit.js +++ b/scripts/check-commit.js @@ -44,7 +44,7 @@ async function checkCommit({ files }) { async function checkRemote() { const { remote } = await git.fetch('origin', 'master'); - if (remote.indexOf('ant-design/ant-design') === -1) { + if (remote?.indexOf('ant-design/ant-design') === -1) { console.log( chalk.yellow('😓 Your remote origin is not ant-design/ant-design, did you fork it?'), ); From 4debb88f24431bbc4074d30b6f0ec71318344524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E9=B1=BC?= Date: Mon, 21 Mar 2022 23:11:48 +0800 Subject: [PATCH 09/24] fix: when fullscreen is false, the element returned by dateFullCellRender cannot be interactive (#34614) * fix: when fullscreen is false, the element returned by dateFullCellRender cannot be interactive * test: add test for Calendar --- components/calendar/__tests__/index.test.js | 16 ++++++++++++++++ components/calendar/style/index.less | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/components/calendar/__tests__/index.test.js b/components/calendar/__tests__/index.test.js index bbc8a546d6..33dc25d249 100644 --- a/components/calendar/__tests__/index.test.js +++ b/components/calendar/__tests__/index.test.js @@ -403,4 +403,20 @@ describe('Calendar', () => { ); expect(wrapper.find('.bamboo').first().text()).toEqual('Light'); }); + + it('when fullscreen is false, the element returned by dateFullCellRender should be interactive', () => { + const onClick = jest.fn(); + const wrapper = mount( + ( +
+ Light +
+ )} + />, + ); + wrapper.find('.bamboo').first().simulate('click'); + expect(onClick).toBeCalled(); + }); }); diff --git a/components/calendar/style/index.less b/components/calendar/style/index.less index af0e8a4a6d..18f7384268 100644 --- a/components/calendar/style/index.less +++ b/components/calendar/style/index.less @@ -70,6 +70,10 @@ line-height: 18px; } } + + .@{calendar-picker-prefix-cls}-cell::before { + pointer-events: none; + } } // ========================== Full ========================== From 0a90ac34c730df9c66de7d6568faddb4723e1a68 Mon Sep 17 00:00:00 2001 From: Hamed Mohammadzadeh <36853974+hmz22@users.noreply.github.com> Date: Mon, 21 Mar 2022 18:42:34 +0330 Subject: [PATCH 10/24] fix: BackTop responsive in RTL (#34626) --- components/back-top/style/responsive.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/back-top/style/responsive.less b/components/back-top/style/responsive.less index 7b21a85009..5529704d83 100644 --- a/components/back-top/style/responsive.less +++ b/components/back-top/style/responsive.less @@ -1,11 +1,21 @@ @media screen and (max-width: @screen-md) { .@{backtop-prefix-cls} { right: 60px; + + &-rtl { + right: auto; + left: 60px; + } } } @media screen and (max-width: @screen-xs) { .@{backtop-prefix-cls} { right: 20px; + + &-rtl { + right: auto; + left: 20px; + } } } From 0fe8bb9c37d110e3766c4f92b7aa1d322b1e2e12 Mon Sep 17 00:00:00 2001 From: Hamed Mohammadzadeh <36853974+hmz22@users.noreply.github.com> Date: Tue, 22 Mar 2022 06:38:17 +0430 Subject: [PATCH 11/24] fix: Badge Animation enter and leave in RTL (#34641) * fix: Badge Animation enter and leave in RTL * [CodeFactor] Apply fixes to commit 87f1866 [ci skip] [skip ci] Co-authored-by: codefactor-io --- components/badge/style/rtl.less | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/components/badge/style/rtl.less b/components/badge/style/rtl.less index a322596929..bfe948c962 100644 --- a/components/badge/style/rtl.less +++ b/components/badge/style/rtl.less @@ -30,6 +30,19 @@ } } } + + &-zoom-appear, + &-zoom-enter { + .@{badge-prefix-cls}-rtl & { + animation-name: antZoomBadgeInRtl; + } + } + + &-zoom-leave { + .@{badge-prefix-cls}-rtl & { + animation-name: antZoomBadgeOutRtl; + } + } } .@{ribbon-prefix-cls}-rtl { @@ -65,3 +78,26 @@ } } } + + +@keyframes antZoomBadgeInRtl { + 0% { + transform: scale(0) translate(-50%, -50%); + opacity: 0; + } + + 100% { + transform: scale(1) translate(-50%, -50%); + } +} + +@keyframes antZoomBadgeOutRtl { + 0% { + transform: scale(1) translate(-50%, -50%); + } + + 100% { + transform: scale(0) translate(-50%, -50%); + opacity: 0; + } +} From 7c182926bcb3cd472153452bd8732e426fbef08b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Long=20Hao=20=28=E9=BE=99=E6=BF=A0=29?= <45565100+LongHaoo@users.noreply.github.com> Date: Tue, 22 Mar 2022 10:32:54 +0800 Subject: [PATCH 12/24] fix: wrong word and cancel export inner interface (#34643) Co-authored-by: zengguhao.zgh --- components/affix/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/affix/index.tsx b/components/affix/index.tsx index 1be9f0f545..45f83daae4 100644 --- a/components/affix/index.tsx +++ b/components/affix/index.tsx @@ -33,7 +33,7 @@ export interface AffixProps { children: React.ReactNode; } -export interface InternalAffixProps extends AffixProps { +interface InternalAffixProps extends AffixProps { affixPrefixCls: string; } @@ -302,13 +302,13 @@ const AffixFC = React.forwardRef((props, ref) => { const affixPrefixCls = getPrefixCls('affix', customizePrefixCls); - const AffixProps: InternalAffixProps = { + const affixProps: InternalAffixProps = { ...props, affixPrefixCls, }; - return ; + return ; }); if (process.env.NODE_ENV !== 'production') { From 7f0aa8146f2458942b224e5b3146865296e7951e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 10:59:37 +0800 Subject: [PATCH 13/24] chore(deps): update actions/cache action to v3 (#34645) Co-authored-by: Renovate Bot --- .github/workflows/preview-build.yml | 8 +-- .github/workflows/site-deploy.yml | 8 +-- .github/workflows/test.yml | 76 ++++++++++++++--------------- .github/workflows/ui.yml | 4 +- 4 files changed, 48 insertions(+), 48 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index a227a95bb0..542edd5fb5 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 - name: cache package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -32,7 +32,7 @@ jobs: cp package-lock.json package-temp-dir - name: cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -50,13 +50,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index e6a469593f..57553c24fd 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v3 - name: cache package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -29,7 +29,7 @@ jobs: cp package-lock.json package-temp-dir - name: cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -46,13 +46,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23a0efff96..0c2d477a0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v3 - name: cache package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -28,7 +28,7 @@ jobs: cp package-lock.json package-temp-dir - name: cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -44,25 +44,25 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: cache lib - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: lib key: lib-${{ github.sha }} - name: cache es - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: es key: es-${{ github.sha }} @@ -81,13 +81,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -103,13 +103,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -125,13 +125,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -148,13 +148,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -174,13 +174,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -197,19 +197,19 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from lib - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: lib key: lib-${{ github.sha }} @@ -228,19 +228,19 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from es - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: es key: es-${{ github.sha }} @@ -259,13 +259,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -299,13 +299,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -327,13 +327,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -355,19 +355,19 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from lib - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: lib key: lib-${{ github.sha }} @@ -391,19 +391,19 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from es - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: es key: es-${{ github.sha }} @@ -427,13 +427,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -463,13 +463,13 @@ jobs: uses: actions/checkout@v3 - name: restore cache from package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 9279de6a51..be150568ec 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 - name: cache package-lock.json - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -31,7 +31,7 @@ jobs: cp package-lock.json package-temp-dir - name: cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} From 2709c5f7479b07caa93342ea7bb55bc6e517229e Mon Sep 17 00:00:00 2001 From: Yunwoo Ji Date: Tue, 22 Mar 2022 14:23:34 +0900 Subject: [PATCH 14/24] docs: fix default value of height in drawer component (#34652) --- components/drawer/index.en-US.md | 2 +- components/drawer/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drawer/index.en-US.md b/components/drawer/index.en-US.md index f0e2797689..df2c21db66 100644 --- a/components/drawer/index.en-US.md +++ b/components/drawer/index.en-US.md @@ -35,7 +35,7 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr | forceRender | Prerender Drawer component forcely | boolean | false | | | getContainer | Return the mounted node for Drawer | HTMLElement \| () => HTMLElement \| Selectors \| false | body | | | headerStyle | Style of the drawer header part | object | - | | -| height | Placement is `top` or `bottom`, height of the Drawer dialog | string \| number | 256 | | +| height | Placement is `top` or `bottom`, height of the Drawer dialog | string \| number | 378 | | | keyboard | Whether support press esc to close | boolean | true | | | mask | Whether to show mask or not | boolean | true | | | maskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not | boolean | true | | diff --git a/components/drawer/index.zh-CN.md b/components/drawer/index.zh-CN.md index 9cb863d745..2008b29e4c 100644 --- a/components/drawer/index.zh-CN.md +++ b/components/drawer/index.zh-CN.md @@ -34,7 +34,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/7z8NJQhFb/Drawer.svg | forceRender | 预渲染 Drawer 内元素 | boolean | false | | | getContainer | 指定 Drawer 挂载的 HTML 节点, false 为挂载在当前 dom | HTMLElement \| () => HTMLElement \| Selectors \| false | body | | | headerStyle | 用于设置 Drawer 头部的样式 | CSSProperties | - | | -| height | 高度, 在 `placement` 为 `top` 或 `bottom` 时使用 | string \| number | 256 | | +| height | 高度, 在 `placement` 为 `top` 或 `bottom` 时使用 | string \| number | 378 | | | keyboard | 是否支持键盘 esc 关闭 | boolean | true | | | mask | 是否展示遮罩 | boolean | true | | | maskClosable | 点击蒙层是否允许关闭 | boolean | true | | From 4209fa251f8c29cb778ffdc56c87ebd5fcd20c34 Mon Sep 17 00:00:00 2001 From: NullPointerException <62196528+onein528@users.noreply.github.com> Date: Tue, 22 Mar 2022 15:49:15 +0900 Subject: [PATCH 15/24] docs: Create README-ja_JP.md (#34638) * Create README-ja_JP.md * Update README-uk_UA.md * Update README-pt_BR.md * Update README-zh_CN.md * Update README-sp_MX.md --- README-ja_JP.md | 161 ++++++++++++++++++++++++++++++++++++++++++++++++ README-pt_BR.md | 2 +- README-sp_MX.md | 2 +- README-uk_UA.md | 2 +- README-zh_CN.md | 2 +- 5 files changed, 165 insertions(+), 4 deletions(-) create mode 100644 README-ja_JP.md diff --git a/README-ja_JP.md b/README-ja_JP.md new file mode 100644 index 0000000000..048bb42f3c --- /dev/null +++ b/README-ja_JP.md @@ -0,0 +1,161 @@ +

+ + + +

+ +

Ant Design

+ +
+ +エンタープライズクラスのUI設計言語とReact UIライブラリです。 + +[![CI status][github-action-image]][github-action-url] [![codecov][codecov-image]][codecov-url] [![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url] + +[![Renovate status][renovate-image]][renovate-dashboard-url] [![Total alerts][lgtm-image]][lgtm-url] [![][bundlesize-js-image]][unpkg-js-url] [![][bundlesize-css-image]][unpkg-css-url] + +[![Follow Twitter][twitter-image]][twitter-url] [![FOSSA Status][fossa-image]][fossa-url] [![Discussions][discussions-image]][discussions-url] [![][issues-helper-image]][issues-helper-url] [![Issues need help][help-wanted-image]][help-wanted-url] + +[npm-image]: http://img.shields.io/npm/v/antd.svg?style=flat-square +[npm-url]: http://npmjs.org/package/antd +[github-action-image]: https://github.com/ant-design/ant-design/workflows/%E2%9C%85%20test/badge.svg +[github-action-url]: https://github.com/ant-design/ant-design/actions?query=workflow%3A%22%E2%9C%85+test%22 +[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square +[codecov-url]: https://codecov.io/gh/ant-design/ant-design/branch/master +[download-image]: https://img.shields.io/npm/dm/antd.svg?style=flat-square +[download-url]: https://npmjs.org/package/antd +[lgtm-image]: https://flat.badgen.net/lgtm/alerts/g/ant-design/ant-design +[lgtm-url]: https://lgtm.com/projects/g/ant-design/ant-design/alerts/ +[fossa-image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield +[fossa-url]: https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield +[help-wanted-image]: https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open +[help-wanted-url]: https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22 +[twitter-image]: https://img.shields.io/twitter/follow/AntDesignUI.svg?label=Ant%20Design&style=social +[twitter-url]: https://twitter.com/AntDesignUI +[discussions-image]: https://img.shields.io/badge/discussions-on%20github-blue?style=flat-square +[discussions-url]: https://github.com/ant-design/ant-design/discussions +[bundlesize-js-image]: https://img.badgesize.io/https:/unpkg.com/antd/dist/antd.min.js?label=antd.min.js&compression=gzip&style=flat-square +[bundlesize-css-image]: https://img.badgesize.io/https:/unpkg.com/antd/dist/antd.min.css?label=antd.min.css&compression=gzip&style=flat-square +[unpkg-js-url]: https://unpkg.com/browse/antd/dist/antd.min.js +[unpkg-css-url]: https://unpkg.com/browse/antd/dist/antd.min.css +[issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square +[issues-helper-url]: https://github.com/actions-cool/issues-helper +[renovate-image]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square +[renovate-dashboard-url]: https://github.com/ant-design/ant-design/issues/32498 + +
+ +[![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*Yl83RJhUE7kAAAAAAAAAAABkARQnAQ)](https://ant.design) + +[English](./README.md) | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) | [Українською](./README-uk_UA.md) | [Spanish](./README-sp_MX.md) | 日本語 + +## ✨ 機能 + +- 🌈 ウェブアプリケーション用に設計されたエンタープライズクラスの UI。 +- 📦 高品質な React コンポーネントのセットが箱から出されます。 +- 🛡 TypeScript で書かれており、予測可能な静的型がある。 +- ⚙️ デザインリソースと開発ツールの全体的なパッケージ。 +- 🌍 数十の言語に対応した国際化サポート。 +- 🎨 強力なテーマのカスタマイズを細部にわたって実現。 + +## 🖥 環境対応 + +- モダンブラウザ、Internet Explorer 11 (with [polyfills](https://stackoverflow.com/questions/57020976/polyfills-in-2019-for-ie11)) +- サーバーサイド レンダリング +- [Electron](https://www.electronjs.org/) + +| [IE / Edge](http://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Electron](http://godban.github.io/browsers-support-badges/)
Electron | +| --- | --- | --- | --- | --- | +| IE11, Edge | 直近の 2 バージョン | 直近の 2 バージョン | 直近の 2 バージョン | 直近の 2 バージョン | + +## 📦 インストール + +```bash +npm install antd +``` + +```bash +yarn add antd +``` + +## 🔨 使い方 + +```jsx +import { Button, DatePicker } from 'antd'; + +const App = () => ( + <> + + + +); +``` + +そして、手動でスタイルをインポートする: + +```jsx +import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' +``` + +### TypeScript + +`antd` は TypeScript で書かれており、完全な定義がなされています。まずは [TypeScript で使う](https://ant.design/docs/react/use-in-typescript)をチェックしてください。 + +## 🌍 国際化対応 + +数十の言語が `antd` でサポートされています。[i18n](https://ant.design/docs/react/i18n) を参照してください。 + +## 🔗 リンク + +- [ホームページ](https://ant.design/) +- [コンポーネントの概要](https://ant.design/components/overview) +- [Ant Design Pro](http://pro.ant.design/) +- [変更ログ](CHANGELOG.en-US.md) +- [rc-components](http://react-component.github.io/) +- [Mobile UI](http://mobile.ant.design) +- [Ant Design Pro コンポーネント](https://procomponents.ant.design) +- [Ant Design チャート](https://charts.ant.design) +- [Ant Design アイコン](https://github.com/ant-design/ant-design-icons) +- [Ant Design カラー](https://github.com/ant-design/ant-design-colors) +- [ランディングページ](https://landing.ant.design) +- [動作](https://motion.ant.design) +- [足場マーケット](http://scaffold.ant.design) +- [開発者向けインストラクション](https://github.com/ant-design/ant-design/wiki/Development) +- [バージョン管理リリースノート](https://github.com/ant-design/ant-design/wiki/%E8%BD%AE%E5%80%BC%E8%A7%84%E5%88%99%E5%92%8C%E7%89%88%E6%9C%AC%E5%8F%91%E5%B8%83%E6%B5%81%E7%A8%8B) +- [FAQ](https://ant.design/docs/react/faq) +- バグレポート用の [CodeSandbox テンプレート](https://u.ant.design/codesandbox-repro) +- [テーマのカスタマイズ](https://ant.design/docs/react/customize-theme) +- [コラボレーターへの応募方法](https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator) + +## ⌨️ 開発 + +GitHub の無料オンライン開発環境である Gitpod を利用する。 + +[![Gitpod で開く](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ant-design/ant-design) + +またはローカルにクローンする: + +```bash +$ git clone git@github.com:ant-design/ant-design.git +$ cd ant-design +$ npm install +$ npm start +``` + +ブラウザを起動し、http://127.0.0.1:8001 にアクセスして[開発セクション](https://github.com/ant-design/ant-design/wiki/Development)の続きをもっと見る. + +## 🤝 貢献 [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) + +[貢献ガイド](https://ant.design/docs/react/contributing)を読んで、よりよい antd を一緒の作り上げましょう。 + +すべての貢献に感謝します。まずは [CONTRIBUTING.md](https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md) をお読みください. どんなアイデアも [Pull Request](https://github.com/ant-design/ant-design/pulls) や [GitHub issues](https://github.com/ant-design/ant-design/issues) で応募することができます. コードの改良をしたい方は、[開発手順](https://github.com/ant-design/ant-design/wiki/Development) を確認してください。あとは楽しみましょう! :) + +コラボレーターの方は、[コラボレーター テンプレート](https://github.com/ant-design/ant-design/compare?expand=1&template=collaborator.md)を使い、Pull Request を作成するための[プルリクエストの原則](https://github.com/ant-design/ant-design/wiki/PR-principle)に従ってください。 + +[![このレポジトリの課題に資金を提供しよう](https://issuehunt.io/static/embed/issuehunt-button-v1.svg)](https://issuehunt.io/repos/34526884) + +## ❤️ スポンサーと後援者 [![](https://opencollective.com/ant-design/tiers/sponsors/badge.svg?label=Sponsors&color=brightgreen)](https://opencollective.com/ant-design#support) [![](https://opencollective.com/ant-design/tiers/backers/badge.svg?label=Backers&color=brightgreen)](https://opencollective.com/ant-design#support) + +[![](https://opencollective.com/ant-design/tiers/sponsors.svg?avatarHeight=36)](https://opencollective.com/ant-design#support) + +[![](https://opencollective.com/ant-design/tiers/backers.svg?avatarHeight=36)](https://opencollective.com/ant-design#support) diff --git a/README-pt_BR.md b/README-pt_BR.md index 4c25709566..06815ae956 100644 --- a/README-pt_BR.md +++ b/README-pt_BR.md @@ -49,7 +49,7 @@ Uma solução empresarial de design e biblioteca UI para React. [![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*Yl83RJhUE7kAAAAAAAAAAABkARQnAQ)](https://ant.design) -[English](./README.md) | Português | [简体中文](./README-zh_CN.md) | [Українською](./README-uk_UA.md) | [Spanish](./README-sp_MX.md) +[English](./README.md) | Português | [简体中文](./README-zh_CN.md) | [Українською](./README-uk_UA.md) | [Spanish](./README-sp_MX.md) | [日本語](./README-ja_JP.md) ## ✨ Funcionalidades diff --git a/README-sp_MX.md b/README-sp_MX.md index b3862b1b49..03a1627165 100644 --- a/README-sp_MX.md +++ b/README-sp_MX.md @@ -47,7 +47,7 @@ Un lenguaje de diseño de interfaz de usuario de clase empresarial y una bibliot [![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*Yl83RJhUE7kAAAAAAAAAAABkARQnAQ)](https://ant.design) -[English](./README.md) | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) | [Українською](./README-uk_UA.md) | Spanish +[English](./README.md) | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) | [Українською](./README-uk_UA.md) | Spanish | [日本語](./README-ja_JP.md) ## ✨ Características diff --git a/README-uk_UA.md b/README-uk_UA.md index 2d27c749d3..41cb91b07b 100644 --- a/README-uk_UA.md +++ b/README-uk_UA.md @@ -49,7 +49,7 @@ [![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*Yl83RJhUE7kAAAAAAAAAAABkARQnAQ)](https://ant.design) -[English](./README.md) | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) | Українською | [Spanish](./README-sp_MX.md) +[English](./README.md) | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) | Українською | [Spanish](./README-sp_MX.md) | [日本語](./README-ja_JP.md) ## ✨ Особливості diff --git a/README-zh_CN.md b/README-zh_CN.md index 513098db8a..fcdd4b926c 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -49,7 +49,7 @@ [![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*Ey3wTo-5__QAAAAAAAAAAABkARQnAQ)](https://ant.design/index-cn) -[English](./README.md) | [Português](./README-pt_BR.md) | 简体中文 | [Українською](./README-uk_UA.md) | [Spanish](./README-sp_MX.md) +[English](./README.md) | [Português](./README-pt_BR.md) | 简体中文 | [Українською](./README-uk_UA.md) | [Spanish](./README-sp_MX.md) | [日本語](./README-ja_JP.md) ## ✨ 特性 From d207ba65b853d06f238632025ba590778b43c37c Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 22 Mar 2022 14:49:42 +0800 Subject: [PATCH 16/24] chore: update Space vertical demo (#34647) * chore: update Space vertical demo close #34609 * fix snapshot --- .../__snapshots__/demo-extend.test.ts.snap | 41 ++++++++++++++++--- .../__tests__/__snapshots__/demo.test.js.snap | 41 ++++++++++++++++--- components/space/demo/vertical.md | 14 +++---- 3 files changed, 79 insertions(+), 17 deletions(-) diff --git a/components/space/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/space/__tests__/__snapshots__/demo-extend.test.ts.snap index 12f9fe8a3a..9b68323533 100644 --- a/components/space/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/space/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -894,14 +894,46 @@ exports[`renders ./components/space/demo/split.md extend context correctly 1`] = exports[`renders ./components/space/demo/vertical.md extend context correctly 1`] = `
+
+
+
+ Card +
+
+
+
+

+ Card content +

+

+ Card content +

+
+
+
+
+
+
+
+
+ Card +
+
+
+
+

+ Card content +

+

+ Card content +

+
+
+
+
+
- + +

Card content

Card content

- + +

Card content

+

Card content

+
+

Card content

Card content

From 67bfdacca043f5738760ab50bc3d1090e4ddcba8 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 22 Mar 2022 16:12:53 +0800 Subject: [PATCH 17/24] fix: fix small steps dot positon (#34651) * fix: fix small steps dot positon * chore: code clean * docs: add demo --- .../__snapshots__/demo-extend.test.ts.snap | 305 ++++++++++++++++++ .../__tests__/__snapshots__/demo.test.js.snap | 305 ++++++++++++++++++ components/steps/demo/progress-dot-small.md | 40 +++ components/steps/style/progress-dot.less | 14 + 4 files changed, 664 insertions(+) create mode 100644 components/steps/demo/progress-dot-small.md diff --git a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap index 3a85799724..6ca7eeac08 100644 --- a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -2599,6 +2599,311 @@ Array [ ] `; +exports[`renders ./components/steps/demo/progress-dot-small.md extend context correctly 1`] = ` +Array [ +
+
+
+
+
+ + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + + +
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +