Skip to content

Commit

Permalink
feat: merge feature
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyu4585 committed Dec 6, 2022
2 parents 0936c19 + e2e0b13 commit 187c9ce
Show file tree
Hide file tree
Showing 34 changed files with 380 additions and 403 deletions.
1 change: 0 additions & 1 deletion .dumi/theme/builtins/Previewer/fromDumiProps.tsx
Expand Up @@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
import JsonML from 'jsonml.js/lib/utils';
// @ts-ignore
import toReactComponent from 'jsonml-to-react-element';
// @ts-ignore
import Prism from 'prismjs';
import { useLocation, useIntl, type IPreviewerProps } from 'dumi';
import { ping } from '../../utils';
Expand Down
6 changes: 3 additions & 3 deletions .dumi/theme/slots/Footer/AdditionalInfo.tsx
Expand Up @@ -35,15 +35,15 @@ export default function InfoNewVersion() {
updateCSS(
`
:where(.${whereCls}) {
width: 93px !important;
content: "__CHECK__";
}
`,
whereCls,
);

// Check style
const { width } = getComputedStyle(p);
setSupportWhere(String(width) === '93px');
const { content } = getComputedStyle(p);
setSupportWhere(String(content).includes('CHECK'));

return () => {
document.body.removeChild(p);
Expand Down
14 changes: 9 additions & 5 deletions .dumi/theme/slots/Footer/index.tsx
Expand Up @@ -15,7 +15,6 @@ import {
TwitterOutlined,
UsergroupAddOutlined,
ZhihuOutlined,
YuqueFilled,
} from '@ant-design/icons';
import { css } from '@emotion/react';
import { TinyColor } from '@ctrl/tinycolor';
Expand Down Expand Up @@ -154,7 +153,7 @@ const Footer = () => {
},
{
title: <FormattedMessage id="app.footer.chinamirror" />,
url: 'https://ant-design.gitee.io/',
url: 'https://ant-design.antgroup.com',
},
],
};
Expand All @@ -181,19 +180,24 @@ const Footer = () => {
openExternal: true,
},
{
icon: <YuqueFilled style={{ color: '#00b96b' }} />,
icon: (
<img
src="https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg"
alt="yuque"
/>
),
title: <FormattedMessage id="app.footer.yuque.repo" />,
url: 'https://yuque.com/ant-design/ant-design',
openExternal: true,
},
{
icon: <ZhihuOutlined style={{ color: '#0084ff' }} />,
icon: <ZhihuOutlined style={{ color: '#056de8' }} />,
title: <FormattedMessage id="app.footer.zhihu" />,
url: 'https://www.zhihu.com/column/c_1564262000561106944',
openExternal: true,
},
{
icon: <ZhihuOutlined style={{ color: '#0084ff' }} />,
icon: <ZhihuOutlined style={{ color: '#056de8' }} />,
title: <FormattedMessage id="app.footer.zhihu.xtech" />,
url: 'http://zhuanlan.zhihu.com/xtech',
openExternal: true,
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.en-US.md
Expand Up @@ -15,6 +15,26 @@ timeline: true

---

## 5.0.4

`2022-12-05`

- Modal
- 🐞 Fix Modal with long content exceed the panel. [#39249](https://github.com/ant-design/ant-design/pull/39249) [@MuxinFeng](https://github.com/MuxinFeng)
- 🐞 Fix Modal.info content width when without icon. [#39047](https://github.com/ant-design/ant-design/pull/39047) [@owjs3901](https://github.com/owjs3901)
- 🐞 Fix Tree config `checkable` and `blockNode` not makes `title` stretch issue. [#39209](https://github.com/ant-design/ant-design/pull/39209) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 Fix Dropdown sub menu missing motion. [#39235](https://github.com/ant-design/ant-design/pull/39235)
- 💄 Fix RangePicker time panel padding style. [#39228](https://github.com/ant-design/ant-design/pull/39228)
- 🐞 Fix Card action button round style. [#39210](https://github.com/ant-design/ant-design/pull/39210) [@muxin](https://github.com/muxin)
- 🐞 Fix Badge wave effect color not follow `color`. [#39182](https://github.com/ant-design/ant-design/pull/39182) [@li-jia-nan](https://github.com/li-jia-nan)
- 🐞 Fix Radio disabled status check style. [#39165](https://github.com/ant-design/ant-design/pull/39165) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 Fixed TextArea count style when `resize` is not `none`. [#39121](https://github.com/ant-design/ant-design/pull/39121) [@51wangping](https://github.com/51wangping)
- 🐞 Fix Transfer clicking the checkbox position cannot be unchecked and onSelectChange is triggered twice. [#39078](https://github.com/ant-design/ant-design/pull/39078) [@edc-hui](https://github.com/edc-hui)
- 🐞 Fix Steps set `size="small"` with progress not fully display. [#39100](https://github.com/ant-design/ant-design/pull/39100) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 Fix Form horizontal layout with `xs` responsive config not work. [#39130](https://github.com/ant-design/ant-design/pull/39130)
- 🐞 Fix message position not correct in RTL. [#39248](https://github.com/ant-design/ant-design/pull/39248) [@Yuiai01](https://github.com/Yuiai01)
- 🐞 Fix Switch only set with `checkedChildren` or `unCheckedChildren` content not display. [#39262](https://github.com/ant-design/ant-design/pull/39262)

## 5.0.3

`2022-11-30`
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.zh-CN.md
Expand Up @@ -15,6 +15,26 @@ timeline: true

---

## 5.0.4

`2022-12-05`

- Modal
- 🐞 修复 Modal 文字内容过多会超出框体的样式问题。[#39249](https://github.com/ant-design/ant-design/pull/39249) [@MuxinFeng](https://github.com/MuxinFeng)
- 🐞 修复 Modal.info 没有图标时,内容宽度不正确的问题。[#39047](https://github.com/ant-design/ant-design/pull/39047) [@owjs3901](https://github.com/owjs3901)
- 🐞 修复 Tree `checkable``blockNode` 配合时,`title` 元素不拉伸的问题。[#39209](https://github.com/ant-design/ant-design/pull/39209) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 修复 Dropdown 二级菜单丢失动画的问题。[#39235](https://github.com/ant-design/ant-design/pull/39235)
- 💄 修复 RangePicker 内时间面板的 padding 样式。[#39228](https://github.com/ant-design/ant-design/pull/39228)
- 🐞 修复 Card 的按钮组圆角样式。[#39210](https://github.com/ant-design/ant-design/pull/39210) [@muxin](https://github.com/muxin)
- 🐞 修复了 Badge 自定义颜色的时候,波纹的颜色不会跟着小圆点颜色发生变化的问题。[#39182](https://github.com/ant-design/ant-design/pull/39182) [@li-jia-nan](https://github.com/li-jia-nan)
- 🐞 修复 Radio 禁用状态选中样式。[#39165](https://github.com/ant-design/ant-design/pull/39165) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 修复 TextArea `resize` 不是 `none` 时计数文字的样式问题。[#39121](https://github.com/ant-design/ant-design/pull/39121) [@51wangping](https://github.com/51wangping)
- 🐞 修复 Transfer 组件 点击复选框位置不可以取消选中,并触发了两次 onSelectChange 问题。[#39078](https://github.com/ant-design/ant-design/pull/39078) [@edc-hui](https://github.com/edc-hui)
- 🐞 修复 Steps `size="small"` 第一项带有进度时,进度条显示不全的问题。[#39100](https://github.com/ant-design/ant-design/pull/39100) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 修复 Form 水平布局下 `xs` 的响应式布局不生效的问题。[#39130](https://github.com/ant-design/ant-design/pull/39130)
- 🐞 修复 message 在 RTL 下位置不正确的问题。[#39248](https://github.com/ant-design/ant-design/pull/39248) [@Yuiai01](https://github.com/Yuiai01)
- 🐞 修复 Switch 在只设置 `checkedChildren``unCheckedChildren` 时,其内容不会显示的问题。[#39262](https://github.com/ant-design/ant-design/pull/39262)

## 5.0.3

`2022-11-30`
Expand Down
2 changes: 1 addition & 1 deletion components/button/index.zh-CN.md
Expand Up @@ -59,7 +59,7 @@ group:
| --- | --- | --- | --- | --- |
| block | 将按钮宽度调整为其父宽度的选项 | boolean | false | |
| danger | 设置危险按钮 | boolean | false | |
| disabled | 按钮失效状态 | boolean | false | |
| disabled | 设置按钮失效状态 | boolean | false | |
| ghost | 幽灵属性,使按钮背景透明 | boolean | false | |
| href | 点击跳转的地址,指定此属性 button 的行为和 a 链接一致 | string | - | |
| htmlType | 设置 `button` 原生的 `type` 值,可选值请参考 [HTML 标准](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type) | string | `button` | |
Expand Down
4 changes: 2 additions & 2 deletions components/button/style/index.tsx
Expand Up @@ -62,7 +62,7 @@ const genSharedButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token): CSS
'&:not([disabled]) + &:not([disabled])': {
position: 'relative',

'&:after': {
'&:before': {
position: 'absolute',
top: -token.lineWidth,
insetInlineStart: -token.lineWidth,
Expand All @@ -80,7 +80,7 @@ const genSharedButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token): CSS
'&:not([disabled]) + &:not([disabled])': {
position: 'relative',

'&:after': {
'&:before': {
position: 'absolute',
top: -token.lineWidth,
insetInlineStart: -token.lineWidth,
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/style/index.tsx
Expand Up @@ -531,14 +531,14 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
[`&-date-panel
${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-start
${pickerCellInnerCls}::after`]: {
insetInlineEnd: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
insetInlineEnd: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
insetInlineStart: 0,
},

[`&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-end ${pickerCellInnerCls}::after`]:
{
insetInlineEnd: 0,
insetInlineStart: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
insetInlineStart: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
},

// Hover with range start & end
Expand Down
57 changes: 27 additions & 30 deletions components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap
Expand Up @@ -380,8 +380,8 @@ exports[`renders ./components/layout/demo/custom-trigger.tsx extend context corr
class="ant-layout site-layout"
>
<header
class="ant-layout-header site-layout-background"
style="padding:0"
class="ant-layout-header"
style="padding:0;background:#ffffff"
>
<span
aria-label="menu-fold"
Expand All @@ -405,8 +405,8 @@ exports[`renders ./components/layout/demo/custom-trigger.tsx extend context corr
</span>
</header>
<main
class="ant-layout-content site-layout-background"
style="margin:24px 16px;padding:24px;min-height:280px"
class="ant-layout-content"
style="margin:24px 16px;padding:24px;min-height:280px;background:#ffffff"
>
Content
</main>
Expand All @@ -423,7 +423,7 @@ exports[`renders ./components/layout/demo/fixed.tsx extend context correctly 1`]
style="position:sticky;top:0;z-index:1;width:100%"
>
<div
class="logo"
style="float:left;width:120px;height:31px;margin:16px 24px 16px 0;background:rgba(255, 255, 255, 0.2)"
/>
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-dark"
Expand Down Expand Up @@ -656,7 +656,7 @@ exports[`renders ./components/layout/demo/fixed.tsx extend context correctly 1`]
</header>
<main
class="ant-layout-content site-layout"
style="padding:0 50px;margin-top:64px"
style="padding:0 50px"
>
<nav
class="ant-breadcrumb"
Expand Down Expand Up @@ -702,8 +702,7 @@ exports[`renders ./components/layout/demo/fixed.tsx extend context correctly 1`]
</ol>
</nav>
<div
class="site-layout-background"
style="padding:24px;min-height:380px"
style="padding:24px;min-height:380px;background:#ffffff"
>
Content
</div>
Expand All @@ -729,7 +728,7 @@ exports[`renders ./components/layout/demo/fixed-sider.tsx extend context correct
class="ant-layout-sider-children"
>
<div
class="logo"
style="height:32px;margin:16px;background:rgba(255, 255, 255, 0.2)"
/>
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-dark"
Expand Down Expand Up @@ -1350,16 +1349,15 @@ exports[`renders ./components/layout/demo/fixed-sider.tsx extend context correct
style="margin-left:200px"
>
<header
class="ant-layout-header site-layout-background"
style="padding:0"
class="ant-layout-header"
style="padding:0;background:#ffffff"
/>
<main
class="ant-layout-content"
style="margin:24px 16px 0;overflow:initial"
>
<div
class="site-layout-background"
style="padding:24px;text-align:center"
style="padding:24px;text-align:center;background:#ffffff"
>
<p>
long content
Expand Down Expand Up @@ -1908,16 +1906,15 @@ exports[`renders ./components/layout/demo/responsive.tsx extend context correctl
class="ant-layout"
>
<header
class="ant-layout-header site-layout-sub-header-background"
style="padding:0"
class="ant-layout-header"
style="padding:0;background:#ffffff"
/>
<main
class="ant-layout-content"
style="margin:24px 16px 0"
>
<div
class="site-layout-background"
style="padding:24px;min-height:360px"
style="padding:24px;min-height:360px;background:#ffffff"
>
content
</div>
Expand Down Expand Up @@ -1945,7 +1942,7 @@ exports[`renders ./components/layout/demo/side.tsx extend context correctly 1`]
class="ant-layout-sider-children"
>
<div
class="logo"
style="height:32px;margin:16px;background:rgba(255, 255, 255, 0.2)"
/>
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-dark"
Expand Down Expand Up @@ -2600,8 +2597,8 @@ exports[`renders ./components/layout/demo/side.tsx extend context correctly 1`]
class="ant-layout site-layout"
>
<header
class="ant-layout-header site-layout-background"
style="padding:0"
class="ant-layout-header"
style="padding:0;background:#ffffff"
/>
<main
class="ant-layout-content"
Expand Down Expand Up @@ -2639,8 +2636,7 @@ exports[`renders ./components/layout/demo/side.tsx extend context correctly 1`]
</ol>
</nav>
<div
class="site-layout-background"
style="padding:24px;min-height:360px"
style="padding:24px;min-height:360px;background:#ffffff"
>
Bill is a cat.
</div>
Expand Down Expand Up @@ -3615,6 +3611,7 @@ exports[`renders ./components/layout/demo/top.tsx extend context correctly 1`] =
</nav>
<div
class="site-layout-content"
style="background:#ffffff"
>
Content
</div>
Expand Down Expand Up @@ -3915,12 +3912,12 @@ exports[`renders ./components/layout/demo/top-side.tsx extend context correctly
</ol>
</nav>
<section
class="ant-layout site-layout-background"
style="padding:24px 0"
class="ant-layout"
style="padding:24px 0;background:#ffffff"
>
<aside
class="ant-layout-sider ant-layout-sider-dark site-layout-background"
style="flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
class="ant-layout-sider ant-layout-sider-dark"
style="background:#ffffff;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
>
<div
class="ant-layout-sider-children"
Expand Down Expand Up @@ -5172,8 +5169,8 @@ exports[`renders ./components/layout/demo/top-side-2.tsx extend context correctl
class="ant-layout"
>
<aside
class="ant-layout-sider ant-layout-sider-dark site-layout-background"
style="flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
class="ant-layout-sider ant-layout-sider-dark"
style="background:#ffffff;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
>
<div
class="ant-layout-sider-children"
Expand Down Expand Up @@ -6213,8 +6210,8 @@ exports[`renders ./components/layout/demo/top-side-2.tsx extend context correctl
</ol>
</nav>
<main
class="ant-layout-content site-layout-background"
style="padding:24px;margin:0;min-height:280px"
class="ant-layout-content"
style="padding:24px;margin:0;min-height:280px;background:#ffffff"
>
Content
</main>
Expand Down

0 comments on commit 187c9ce

Please sign in to comment.