Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from ant-design:master #208

Closed
wants to merge 88 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
6af1d95
feat: Input & TextArea support count (#45140)
zombieJ Oct 10, 2023
bef9539
feat: Table support `scrollTo` `reference` (#45245)
zombieJ Oct 11, 2023
012e878
Merge pull request #45271 from ant-design/master
zombieJ Oct 12, 2023
eaf4949
feat: App support component (#45292)
zombieJ Oct 12, 2023
44e1493
feat: Watermark support inherit to disable passing (#45319)
zombieJ Oct 13, 2023
8b486f3
Merge branch master into master-merge-feature
li-jia-nan Oct 15, 2023
5b47f16
Merge branch master into master-merge-feature
li-jia-nan Oct 15, 2023
442e175
feat: update snap
kiner-tang Oct 15, 2023
0de095c
Merge branch 'master' into master-merge-feature
li-jia-nan Oct 15, 2023
bb6ef6f
fix: update snap
li-jia-nan Oct 15, 2023
00d74a3
Merge branch 'master' into master-merge-feature
li-jia-nan Oct 15, 2023
f9e5547
fix: update snap
li-jia-nan Oct 15, 2023
1474006
feat: update snap
kiner-tang Oct 16, 2023
cb7e11a
feat: update snap
kiner-tang Oct 16, 2023
e62197a
Merge pull request #45347 from ant-design/master-merge-feature
zombieJ Oct 16, 2023
9a04519
fix: InputNumber dynamic formatter (#45325)
zombieJ Oct 16, 2023
98a8d30
feat: Tabs items support destroyInactiveTabPane (#45359)
zombieJ Oct 16, 2023
11cdac4
chore: bump rc-tabs (#45370)
zombieJ Oct 17, 2023
d8140e0
Merge pull request #45381 from ant-design/master
zombieJ Oct 17, 2023
a337fee
fix: dropdown not trigger onOpenChange when click menu item (#45378)
zombieJ Oct 17, 2023
3ab42ad
feat: support dirty (#45389)
zombieJ Oct 17, 2023
2e8e67f
feat: support changeOnBlur (#45395)
zombieJ Oct 18, 2023
cc223a1
feat(spin): Adds `fullscreen` property to `<Spin />` component (#44986)
Rafael-Martins Oct 19, 2023
dde3651
feat: Modal & Select support z-index context to manage z-index (#45346)
kiner-tang Oct 19, 2023
d51de67
Merge branch 'feature' into refactor-z-index-context
kiner-tang Oct 20, 2023
f25fd3c
chore: auto merge branches (#45444)
github-actions[bot] Oct 20, 2023
bff04cd
Merge branch 'feature' into refactor-z-index-context
kiner-tang Oct 20, 2023
0fd730a
feat: Popconfirm support z-index manager (#45421)
kiner-tang Oct 20, 2023
8c49b38
feat: Popover support z-index manager (#45420)
kiner-tang Oct 20, 2023
bf1468a
feat: Tooltip support z-index manager (#45422)
kiner-tang Oct 20, 2023
193c3b4
feat: Tour support z-index manager (#45425)
kiner-tang Oct 20, 2023
30c8e42
feat: add transition to spin fullscreen (#45436)
li-jia-nan Oct 20, 2023
3627031
feat: Drawer support z-index manager (#45417)
kiner-tang Oct 20, 2023
7784617
Merge branch 'master' into feature-merge-master
yoyo837 Oct 21, 2023
c7661ce
chore: update site snap
yoyo837 Oct 21, 2023
7c31c62
chore: auto merge branches (#45464)
github-actions[bot] Oct 21, 2023
e740269
feat: z-index container opt (#45490)
kiner-tang Oct 23, 2023
6d9db9f
feat: dropdown support z-index manager (#45486)
kiner-tang Oct 23, 2023
2940f62
chore: auto merge branches (#45501)
github-actions[bot] Oct 23, 2023
d04e9ef
feat: config-provider support rangePicker className and style (#45479)
Yueyanc Oct 23, 2023
3cb2738
feat: SelectLike components support z-index manager (#45494)
kiner-tang Oct 24, 2023
a29a079
feat: columnTitle render props (#41937)
Zhou-Bill Oct 24, 2023
e7109d3
feat: ColorPicker support z-index manager (#45496)
kiner-tang Oct 24, 2023
3ec0ec2
feat: DatePicker & TimePicker support z-index manager (#45497)
kiner-tang Oct 24, 2023
de442ca
feat: menu support z-index manager (#45498)
kiner-tang Oct 24, 2023
bceb2e2
Merge branch 'feature' into refactor-z-index-context
kiner-tang Oct 24, 2023
90c4fab
Merge pull request #45512 from ant-design/refactor-z-index-context
kiner-tang Oct 25, 2023
5a45276
feat: Add useMultipleSelect hooks, transfer supports multiple select …
zbw-zbw Oct 26, 2023
2dbcd20
feat: Pagination support combine simple and pageSizeChanger (#45538)
MadCcc Oct 26, 2023
661f3e8
Merge branch 'master' into feature-merge-master
li-jia-nan Oct 29, 2023
cd60418
chore: auto merge branches (#45572)
github-actions[bot] Oct 29, 2023
fc56106
feat: Implement `optionRender` API (#45529)
RedJue Oct 31, 2023
b14faf0
feat: CP support Dropdown className and style (#45621)
li-jia-nan Nov 1, 2023
300c1f3
docs: remove dead links (#45624)
jibolash Nov 2, 2023
d8fbefc
feat(Modal): Modal static function accept 'styles' (#45558)
KotoriK Nov 2, 2023
923aaba
chore: add lodash eslint (#45627)
crazyair Nov 2, 2023
9f1b8f1
docs: fix code selection style issue (#45631)
MadCcc Nov 2, 2023
95322ea
fix: InputNumber in Form with hasFeedback should not lose focus (#45632)
MadCcc Nov 2, 2023
e6d9232
docs: fix demo editor shadow (#45636)
MadCcc Nov 2, 2023
d9902eb
chore(deps-dev): bump eslint-plugin-unicorn from 48.0.1 to 49.0.0 (#4…
dependabot[bot] Nov 2, 2023
56c2b56
docs(input): add placeholder (#45643)
Simon-He95 Nov 2, 2023
bf15203
Docs: usage with next.js, add information about workaround for Next.j…
pavelee Nov 2, 2023
52d2439
Merge branch 'master' into feature-merge-master
MadCcc Nov 3, 2023
da9ca05
chore: auto merge branches (#45645)
github-actions[bot] Nov 3, 2023
99138cb
feat(color-picker): preset colors support collapsing at initializatio…
Wxh16144 Nov 3, 2023
ad3b73a
chore: auto merge branches (#45648)
github-actions[bot] Nov 3, 2023
d7e2330
chore: bump rc-* (#45650)
yoyo837 Nov 3, 2023
f46587b
fix: Slider handler should be movable after click tracker (#45651)
afc163 Nov 3, 2023
321dfd8
feat: show Slider tooltip when focus handler (#45653)
afc163 Nov 3, 2023
f3c37a3
refactor(color-picker): rename `defaultCollapsed` => `defaultOpen` (#…
Wxh16144 Nov 3, 2023
7616c35
✨ docs: changelog 5.11.0 (#45649)
MadCcc Nov 3, 2023
e0a6244
test: fix test case
afc163 Nov 3, 2023
f15bddf
chore: fix ci download artifact logic (#45661)
Wxh16144 Nov 3, 2023
13ae715
docs: solve error about dropdown (#45662)
kiner-tang Nov 3, 2023
38c2002
style: fix Upload border color when drag over (#45663)
Oceansdeep7 Nov 3, 2023
b888f69
test: fix Slider test case in React 16 (#45664)
kiner-tang Nov 3, 2023
bcd8a78
ci: timed check for dependency updates (#45593)
Wxh16144 Nov 3, 2023
fe59bb0
docs: optimize (#45659)
MadCcc Nov 3, 2023
d1ed469
type: add generics to AppProps (#45669)
JexLau Nov 3, 2023
f693a68
fix(Image): using chinese language in image components API's table (#…
ParsaArvanehPA Nov 5, 2023
ea25528
chore(deps): update npm to v10.2.3 (#45675)
renovate[bot] Nov 5, 2023
3f683d7
fix: fix App error when component === false (#45671)
li-jia-nan Nov 5, 2023
d9a60a4
docs: Update README.md Contributor Section (#45674)
Aylee-Shomali Nov 5, 2023
3b5a915
fix: notification style width (#45681)
MadCcc Nov 6, 2023
284347c
chore: upgrade deps (#45692)
github-actions[bot] Nov 6, 2023
4a68036
chore: remove unused config files (#45697)
afc163 Nov 7, 2023
d3fc8ed
chore: fix codesandbox ci (#45698)
afc163 Nov 7, 2023
380649e
fix: update tag default background (#45700)
kiner-tang Nov 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sandboxes": ["antd-reproduction-template-y9vgcf"],
"node": "14"
"sandboxes": ["antd-reproduction-template-forked-jyh2k9"],
"node": "18"
}
4 changes: 2 additions & 2 deletions .dumi/theme/common/LiveCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const useStyle = createStyles(({ token, css }) => {
outline: none;

&:hover {
border: 1px solid ${colorPrimaryBorder} !important;
box-shadow: inset 0 0 0 1px ${colorPrimaryBorder} !important;
}

&:focus {
border: 1px solid ${colorPrimary} !important;
box-shadow: inset 0 0 0 1px ${colorPrimary} !important;
}
}
`,
Expand Down
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ module.exports = {
},
},
parser: '@typescript-eslint/parser',
plugins: ['react', '@babel', 'jest', '@typescript-eslint', 'react-hooks', 'unicorn', 'markdown'],
plugins: [
'react',
'@babel',
'jest',
'@typescript-eslint',
'react-hooks',
'unicorn',
'markdown',
'lodash',
],
// https://github.com/typescript-eslint/typescript-eslint/issues/46#issuecomment-470486034
overrides: [
{
Expand Down Expand Up @@ -156,6 +165,7 @@ module.exports = {
'react/no-unused-class-component-methods': 0,
'import/extensions': 0,
'import/no-cycle': 2,
'lodash/import-scope': 2,
'import/no-extraneous-dependencies': [
'error',
{
Expand Down
14 changes: 0 additions & 14 deletions .github/lock.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/tests_checker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:

# Download site artifact
- name: download site artifact
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }}
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
name: site

- name: upload surge service
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }}
id: deploy
continue-on-error: true
run: |
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/upgrade-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Upgrade Dependencies

on:
schedule:
- cron: "0 18 * * *" # every day at 18:00 UTC
# - timezone: Asia/Shanghai # not supported yet https://github.com/orgs/community/discussions/13454

jobs:
upgrade-deps:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
permissions:
pull-requests: write # for peter-evans/create-pull-request to create PRs
contents: write # for git push
steps:
- name: checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
.ncurc.js
package.json

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: upgrade deps
id: upgrade
run: |
if [ ! -d .tmp ] ; then
mkdir .tmp
fi
$(npx npm-check-updates -u > .tmp/upgrade-deps-logs.txt) 2>&1 || true
if [ -s .tmp/upgrade-deps-logs.txt ]; then
cat .tmp/upgrade-deps-logs.txt
echo "logs<<EOF" >> $GITHUB_OUTPUT
cat .tmp/upgrade-deps-logs.txt >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
fi

- name: create pull request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }} # Cannot be default!!!
assignees: 'afc163, zombieJ, xrkffgg, MadCcc'
title: "chore: upgrade deps"
commit-message: "chore: upgrade deps"
body: |
Upgrade dependencies

```
${{ steps.upgrade.outputs.logs }}
```
branch: auto-upgrade-deps
delete-branch: true
add-paths: |
package.json
29 changes: 29 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// doc: https://github.com/raineorshine/npm-check-updates/tree/v16.14.6#readme
const path = require('path');

const rcOrg = ['@rc-component/', 'rc-'];
const check = ['@ant-design/', ...rcOrg];

// rules: https://github.com/ant-design/ant-design/pull/45593#issuecomment-1784891887
module.exports = {
packageFile: path.resolve(__dirname, './package.json'),
upgrade: false, // use `npx npm-check-updates -u` to upgrade
packageManager: 'npm',
dep: ['prod'], // check only prod dependencies
// https://github.com/raineorshine/npm-check-updates#filter
filter: (name) => check.some((prefix) => name.startsWith(prefix)),
// https://github.com/raineorshine/npm-check-updates#target
target: (name, semver) => {
const { operator } = semver[0] ?? {};

// rc-component
if (rcOrg.some((prefix) => name.startsWith(prefix))) {
// `^` always upgrade latest, otherwise follow semver.
if (operator === '^') {
return 'latest';
}
}

return 'semver';
},
};
42 changes: 42 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,48 @@ tag: vVERSION

---

## 5.11.0

`2023-11-03`

- Slider
- 🆕 Slider will show tooltip when focus handler. [#45653](https://github.com/ant-design/ant-design/pull/45653)
- 💄 Slider handler should be movable after click tracker. [#45651](https://github.com/ant-design/ant-design/pull/45651)
- InputNumber
- 🆕 InputNumber support `changeOnBlur` prop to disable trigger `onChange` event when blur. [#45395](https://github.com/ant-design/ant-design/pull/45395)
- 🐞 Fix InputNumber in Form with `hasFeedback` that will lose focus when feedback icon appear. [#45632](https://github.com/ant-design/ant-design/pull/45632) [@MadCcc](https://github.com/MadCcc)
- 🐞 Fix InputNumber dynamic modify `formatter` not working. [#45325](https://github.com/ant-design/ant-design/pull/45325)
- Table
- 🆕 Table `columnTitle` support render function. [#41937](https://github.com/ant-design/ant-design/pull/41937) [@Zhou-Bill](https://github.com/Zhou-Bill)
- 🛠 Refactor Table `ref` to support `scrollTo` to scroll to target `key` or `index` or `top`. [#45245](https://github.com/ant-design/ant-design/pull/45245)
- Tabs
- 🆕 Tabs `items` support tab pane level `destroyInactiveTabPane`. [#45359](https://github.com/ant-design/ant-design/pull/45359)
- 🐞 Fix Tabs overflow blinking when Tab bar has decimal width. [#45370](https://github.com/ant-design/ant-design/pull/45370)
- ConfigProvider
- 🆕 ConfigProvider support RangePicker `className` and `style` properties. [#45479](https://github.com/ant-design/ant-design/pull/45479) [@chenzhuo198](https://github.com/chenzhuo198)
- 🆕 ConfigProvider support Dropdown `className` and `style` properties. [#45621](https://github.com/ant-design/ant-design/pull/45621) [@li-jia-nan](https://github.com/li-jia-nan)
- 🆕 ColorPicker `preset` prop support `defaultOpen` to control whether preset colors is open by default. [#45607](https://github.com/ant-design/ant-design/pull/45607) [@Wxh16144](https://github.com/Wxh16144)
- 🆕 Select support `optionRender` prop. [#45529](https://github.com/ant-design/ant-design/pull/45529) [@RedJue](https://github.com/RedJue)
- 🆕 Pagination support combine `simple` and `showSizeChanger`. [#45538](https://github.com/ant-design/ant-design/pull/45538)
- 🆕 Spin support `fullscreen` to display as backdrop. [#44986](https://github.com/ant-design/ant-design/pull/44986) [@Rafael-Martins](https://github.com/Rafael-Martins) [#45436](https://github.com/ant-design/ant-design/pull/45436) [@li-jia-nan](https://github.com/li-jia-nan)
- 🆕 Form `validateFields` support `dirty` for validating touched and validated fields. [#45389](https://github.com/ant-design/ant-design/pull/45389)
- 🆕 Watermark support `inherit` prop to disable watermark pass to Drawer and Modal. [#45319](https://github.com/ant-design/ant-design/pull/45319)
- 🆕 App support `component` for customization. [#45292](https://github.com/ant-design/ant-design/pull/45292)
- 🆕 Input and Input.TextArea support `count` custom character count (for example, fix emoji character length to `1`); `count.max` supports out-of-range styles; restore emoji to native count to solve the problem of `maxLength` and `value` mismatch. [#45140](https://github.com/ant-design/ant-design/pull/45140)
- 🐞 Fix Dropdown not trigger `onOpenChange` when click menu item to close the popup. [#45378](https://github.com/ant-design/ant-design/pull/45378)
- 💄 Modal static function support `styles`. [#45558](https://github.com/ant-design/ant-design/pull/45558) [@KotoriK](https://github.com/KotoriK)
- 💄 Optimize z-index logic of popup components, and make them don't block each other by default. [#45512](https://github.com/ant-design/ant-design/pull/45512) [#45490](https://github.com/ant-design/ant-design/pull/45490) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Menu. [#45498](https://github.com/ant-design/ant-design/pull/45498) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of DatePicker and TimePicker. [#45497](https://github.com/ant-design/ant-design/pull/45497) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Drawer. [#45496](https://github.com/ant-design/ant-design/pull/45496) [#45417](https://github.com/ant-design/ant-design/pull/45417) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Cascader, TreeSelect and AutoComplete. [#45494](https://github.com/ant-design/ant-design/pull/45494) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Dropdown. [#45486](https://github.com/ant-design/ant-design/pull/45486) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Tour. [#45425](https://github.com/ant-design/ant-design/pull/45425) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Tooltip. [#45422](https://github.com/ant-design/ant-design/pull/45422) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Popover. [#45420](https://github.com/ant-design/ant-design/pull/45420) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Popconfirm. [#45421](https://github.com/ant-design/ant-design/pull/45421) [@kiner-tang](https://github.com/kiner-tang)
- Optimize z-index logic of Modal and Select. [#45346](https://github.com/ant-design/ant-design/pull/45346) [@kiner-tang](https://github.com/kiner-tang)

## 5.10.3

`2023-10-30`
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,48 @@ tag: vVERSION

---

## 5.11.0

`2023-11-03`

- Slider
- 🆕 Slider 聚焦滑块时现在会显示 Tooltip。[#45653](https://github.com/ant-design/ant-design/pull/45653)
- 💄 优化 Slider 交互体验,点击轨道后可直接拖拽滑块。[#45651](https://github.com/ant-design/ant-design/pull/45651)
- InputNumber
- 🆕 InputNumber 添加 `changeOnBlur` 属性以支持在失去焦点时不触发 `onChange` 事件。[#45395](https://github.com/ant-design/ant-design/pull/45395)
- 🐞 修复 InputNumber 组件在 Form 组件中使用并且启用 `hasFeedback` 时,反馈图标出现会使 InputNumber 失去焦点的问题。[#45632](https://github.com/ant-design/ant-design/pull/45632) [@MadCcc](https://github.com/MadCcc)
- 🐞 修复 InputNumber 动态改变 `formatter` 不生效的问题。[#45325](https://github.com/ant-design/ant-design/pull/45325)
- Table
- 🆕 Table 组件 `columnTitle` 支持传入 render 方法。[#41937](https://github.com/ant-design/ant-design/pull/41937) [@Zhou-Bill](https://github.com/Zhou-Bill)
- 🛠 重构 Table `ref` 支持 `scrollTo` 以滚动到目标 `key` 或 `index` 或 `top`。[#45245](https://github.com/ant-design/ant-design/pull/45245)
- Tabs
- 🆕 Tabs `items` 支持单个标签页设置 `destroyInactiveTabPane`。[#45359](https://github.com/ant-design/ant-design/pull/45359)
- 🐞 修复 Tabs 的标签宽度存在小数时,滚动会出现抖动的问题。[#45370](https://github.com/ant-design/ant-design/pull/45370)
- ConfigProvider
- 🆕 ConfigProvider 支持 RangePicker 组件的 `className` 和 `style` 属性。[#45479](https://github.com/ant-design/ant-design/pull/45479) [@chenzhuo198](https://github.com/chenzhuo198)
- 🆕 ConfigProvider 支持 Dropdown 组件的 `className` 和 `style` 属性。[#45621](https://github.com/ant-design/ant-design/pull/45621) [@li-jia-nan](https://github.com/li-jia-nan)
- 🆕 ColorPicker 组件 `preset` 新增 `defaultOpen` 属性,可控制预设颜色默认是否展开。[#45607](https://github.com/ant-design/ant-design/pull/45607) [@Wxh16144](https://github.com/Wxh16144)
- 🆕 Select 组件支持 `optionRender` 方法。[#45529](https://github.com/ant-design/ant-design/pull/45529) [@RedJue](https://github.com/RedJue)
- 🆕 Pagination 组件支持组合 `simple` 和 `showSizeChanger` 使用。[#45538](https://github.com/ant-design/ant-design/pull/45538)
- 🆕 Spin 组件新增 `fullscreen` 属性,支持全屏展示。[#44986](https://github.com/ant-design/ant-design/pull/44986) [@Rafael-Martins](https://github.com/Rafael-Martins) [#45436](https://github.com/ant-design/ant-design/pull/45436) [@li-jia-nan](https://github.com/li-jia-nan)
- 🆕 Form `validateFields` 支持 `dirty` 参数以校验被修改过和校验过的字段。[#45389](https://github.com/ant-design/ant-design/pull/45389)
- 🆕 Watermark 支持 `inherit` 配置,关闭水印传导至弹出 Drawer 与 Modal。[#45319](https://github.com/ant-design/ant-design/pull/45319)
- 🆕 App 支持 `component` 以自定义渲染元素。[#45292](https://github.com/ant-design/ant-design/pull/45292)
- 🆕 Input 与 Input.TextArea 支持 `count` 自定义字符计数(例如固定 emoji 字符长度为 `1`);`count.max` 支持超出范围样式;将 emoji 计数还原为原生计数以解决 `maxLength` 与 `value` 不匹配的问题。[#45140](https://github.com/ant-design/ant-design/pull/45140)
- 🐞 修复 Dropdown 在点击菜单项关闭弹出框时不会触发 `onOpenChange` 的问题。[#45378](https://github.com/ant-design/ant-design/pull/45378)
- 💄 Modal 静态方法支持 `styles` 属性。[#45558](https://github.com/ant-design/ant-design/pull/45558) [@KotoriK](https://github.com/KotoriK)
- 💄 优化弹层组件的 `z-index` 逻辑,使其在默认情况下不会互相遮挡。[#45512](https://github.com/ant-design/ant-design/pull/45512) [#45490](https://github.com/ant-design/ant-design/pull/45490) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Menu 组件 `z-index` 逻辑。[#45498](https://github.com/ant-design/ant-design/pull/45498) [@kiner-tang](https://github.com/kiner-tang)
- 优化 DatePicker、TimePicker 组件 `z-index` 逻辑。[#45497](https://github.com/ant-design/ant-design/pull/45497) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Drawer 组件 `z-index` 逻辑。[#45496](https://github.com/ant-design/ant-design/pull/45496) [#45417](https://github.com/ant-design/ant-design/pull/45417) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Cascader、TreeSelect、AutoComplete 组件 `z-index` 逻辑。[#45494](https://github.com/ant-design/ant-design/pull/45494) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Dropdown 组件 `z-index` 逻辑。[#45486](https://github.com/ant-design/ant-design/pull/45486) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Tour 组件 `z-index` 逻辑。[#45425](https://github.com/ant-design/ant-design/pull/45425) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Tooltip 组件 `z-index` 逻辑。[#45422](https://github.com/ant-design/ant-design/pull/45422) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Popover 组件 `z-index` 逻辑。[#45420](https://github.com/ant-design/ant-design/pull/45420) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Popconfirm 组件 `z-index` 逻辑。[#45421](https://github.com/ant-design/ant-design/pull/45421) [@kiner-tang](https://github.com/kiner-tang)
- 优化 Modal、Select 组件 `z-index` 逻辑。[#45346](https://github.com/ant-design/ant-design/pull/45346) [@kiner-tang](https://github.com/kiner-tang)

## 5.10.3

`2023-10-30`
Expand Down
4 changes: 3 additions & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pnpm add antd

## 🔨 示例

```jsx
```tsx
import React from 'react';
import { Button, DatePicker } from 'antd';

Expand All @@ -94,6 +94,8 @@ const App = () => (
<DatePicker />
</>
);

export default App;
```

### 🌈 定制主题
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pnpm add antd

## 🔨 Usage

```jsx
```tsx
import React from 'react';
import { Button, DatePicker } from 'antd';

Expand All @@ -94,6 +94,8 @@ const App = () => (
<DatePicker placeholder="select date" />
</>
);

export default App;
```

### TypeScript
Expand Down Expand Up @@ -146,11 +148,11 @@ Open your browser and visit http://127.0.0.1:8001 , see more at [Development](ht

## 🤝 Contributing [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

Read our [contributing guide](https://ant.design/docs/react/contributing) and let's build a better antd together.
Let's build a better antd together.

We welcome all contributions. Please read our [CONTRIBUTING.md](https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md) first. You can submit any ideas as [pull requests](https://github.com/ant-design/ant-design/pulls) or as [GitHub issues](https://github.com/ant-design/ant-design/issues). If you'd like to improve code, check out the [Development Instructions](https://github.com/ant-design/ant-design/wiki/Development) and have a good time! :)
We welcome all contributions. Please read our [Contributing Guide](https://ant.design/docs/react/contributing) first. You can submit any ideas as [Pull Requests](https://github.com/ant-design/ant-design/pulls) or as [GitHub Issues](https://github.com/ant-design/ant-design/issues). If you'd like to improve code, check out the [Development Instructions](https://github.com/ant-design/ant-design/wiki/Development) and have a good time! :)

If you are a collaborator, please follow our [Pull Request principle](https://github.com/ant-design/ant-design/wiki/PR-principle) to create a Pull Request with [collaborator template](https://github.com/ant-design/ant-design/compare?expand=1&template=collaborator.md).
If you are a collaborator, please follow our [Pull Request Principle](https://github.com/ant-design/ant-design/wiki/PR-principle) to create a Pull Request with our [Pull Request Template](https://github.com/ant-design/ant-design/wiki/PR-principle#pull-request-template).

[![Let's fund issues in this repository](https://raw.githubusercontent.com/BoostIO/issuehunt-materials/master/v1/issuehunt-button-v1.svg)](https://issuehunt.io/repos/34526884)

Expand Down
Loading
Loading