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 #237

Closed
wants to merge 170 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 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
c614e81
chore: update README (#45707)
li-jia-nan Nov 8, 2023
b3cb6b3
fix: update tag default background (#45711)
kiner-tang Nov 8, 2023
5ac3f57
feat(modal): PureRender support custom footer callback (#44985)
Wxh16144 Nov 8, 2023
299592d
fix(popConfirm): visible prop compatible (#45702)
linhf123 Nov 8, 2023
b99902a
docs:(Tree): Parameter type repair (#45715)
KiligFei Nov 8, 2023
c3a63a9
fix: component token should work (#45721)
MadCcc Nov 8, 2023
261ba8f
docs: fix TreeSelect demo onChange log (#45722)
haolic Nov 8, 2023
39a5d2b
docs: Fix typo in Drawer documentation (#45726)
MattisAbrahamsson Nov 8, 2023
406e4ae
docs: add Upload disabled demo for debug usage (#45723)
vagusX Nov 8, 2023
6edc1d1
chore(deps-dev): bump @types/isomorphic-fetch from 0.0.38 to 0.0.39 (…
dependabot[bot] Nov 8, 2023
7fda232
chore(deps-dev): bump @dnd-kit/sortable from 7.0.2 to 8.0.0 (#45729)
dependabot[bot] Nov 8, 2023
8dc11ee
chore(deps-dev): bump @dnd-kit/modifiers from 6.0.1 to 7.0.0 (#45728)
dependabot[bot] Nov 8, 2023
e5a213d
docs: Update recommendation (#45749)
cc20140820 Nov 9, 2023
5261f1e
fix: Description children missing key (#45757)
zombieJ Nov 9, 2023
c2ef52b
fix: Upload should show remove icon when showRemoveIcon is true (#45752)
afc163 Nov 9, 2023
5727ce0
demo: add tooltip disabled demo (#45748)
JarvisArt Nov 9, 2023
c31fc76
fix: Dropdown with nest menu zIndex error (#45761)
zombieJ Nov 9, 2023
dea8dea
chore(deps-dev): bump @types/gtag.js from 0.0.17 to 0.0.18 (#45767)
dependabot[bot] Nov 9, 2023
9d57f6f
docs: 5.11.1 changelog (#45768)
zombieJ Nov 9, 2023
f22f61d
test: update snapshot (#45770)
zombieJ Nov 9, 2023
6098906
chore: upgrade deps (#45772)
github-actions[bot] Nov 9, 2023
de3a08f
chore: header use d2tech (#45756)
Zaynex Nov 10, 2023
3719f85
docs: Update CHANGELOG of 5.11.1 (#45774)
afc163 Nov 10, 2023
d2e9453
docs: Update issue-labeled.yml (#45780)
afc163 Nov 10, 2023
4091164
chore: addd unit case (#45781)
Wxh16144 Nov 10, 2023
9ae02f7
chore(deps-dev): bump tsx from 3.14.0 to 4.1.0 (#45790)
dependabot[bot] Nov 10, 2023
c73f56e
refactor(list): improve grid gutter type (#45791)
Asanio06 Nov 10, 2023
9db3dc2
docs: add some commonly used props of react-slick to antd documentati…
afc163 Nov 11, 2023
6ba626b
docs: update Next.js docs (#45811)
li-jia-nan Nov 12, 2023
f0424f3
docs: Update pr-open-check.yml (#45816)
afc163 Nov 12, 2023
abd73e0
style: update carousel dots radius (#45817)
afc163 Nov 13, 2023
496ac33
feat: support popupBg and darkPopupBg (#45826)
chenshuai2144 Nov 13, 2023
aa348dc
chore: remove unuse file
chenshuai2144 Nov 13, 2023
cb8f709
fix: QRCode style.padding should work (#45815)
afc163 Nov 13, 2023
ac39eab
chore: upgrade deps (#45851)
github-actions[bot] Nov 13, 2023
a5649f1
chore: bump table (#45857)
zombieJ Nov 14, 2023
2777d2c
fix: Fixed an issue where the z-index setting of the pop-up component…
kiner-tang Nov 14, 2023
3831352
docs(📖): update tabs component docs (#45875)
yufamg Nov 14, 2023
ab4863c
chore(deps-dev): bump size-limit from 10.0.3 to 11.0.0 (#45877)
dependabot[bot] Nov 14, 2023
f0a2695
site(Header): increase z-index (#45890)
zbw-zbw Nov 15, 2023
2dda417
fix: disabled btn with link should not be focused (#45910)
MadCcc Nov 16, 2023
efbaf8d
chore: update Next.js docs (#45907)
li-jia-nan Nov 16, 2023
dd05e18
chore: add image to Next.js doc (#45929)
li-jia-nan Nov 17, 2023
29126fe
chore: script update (#45937)
zombieJ Nov 17, 2023
9078b2b
feat: export sider context from layout (#45916)
PeachScript Nov 17, 2023
dc25579
fix: zIndex miss of message (#45911)
zombieJ Nov 17, 2023
6cfbace
revert: menu token (#45939)
MadCcc Nov 17, 2023
d13aad6
docs: changelog for 5.11.2 (#45946)
PeachScript Nov 17, 2023
aec6a80
chore: correct type error in theme file (#45949)
PeachScript Nov 17, 2023
a308dcf
docs: update Modal.method docs (#45948)
nanwy Nov 17, 2023
370dab7
chore(deps): update npm to v10.2.4 (#45956)
renovate[bot] Nov 19, 2023
48e9bca
chore(deps): update cimg/node docker tag to v21.2 (#45957)
renovate[bot] Nov 19, 2023
d8d53f1
chore: Delete the rate useless css (#45927)
JarvisArt Nov 20, 2023
cb56ddd
fix: code ellipsis broken under Layout (#45962)
afc163 Nov 20, 2023
aee10c8
improve eu_ES language (#45928)
ionlizarazu Nov 20, 2023
4baef31
fix: color-picker not support form disabled (#45978)
RedJue Nov 21, 2023
e778066
chore: use npm ci instead of yarn in ci (#45980)
kiner-tang Nov 21, 2023
ef9971c
fix: Fixed image preview in a nested modal where z-index Settings did…
kiner-tang Nov 21, 2023
26df461
docs: css var blog (#45990)
MadCcc Nov 21, 2023
37f6d43
style: fix Collapse cursor style (#45994)
afc163 Nov 21, 2023
b533996
chore: warning for rsc (#45992)
MadCcc Nov 21, 2023
98e45b3
chore: update contributors list (#45971)
li-jia-nan Nov 21, 2023
b7e3cf7
chore: Update release-tweet.yml (#46000)
afc163 Nov 22, 2023
5829120
feat: added mobile touch event Interaction for Images (#45989)
JarvisArt Nov 22, 2023
0cb771d
fix: mixed Chinese and English in Blog (#46002)
li-jia-nan Nov 22, 2023
e5a6966
docs: update demo (#46006)
zombieJ Nov 22, 2023
3233ac4
chore: umd version will try to reuse global `@ant-design/cssinjs` fir…
zombieJ Nov 22, 2023
5aafe6d
site: use vanilla-tilt.js for banner motion
afc163 Nov 22, 2023
6aff196
fix: Static method provides wrong zIndex context (#46012)
zombieJ Nov 22, 2023
b0efed9
style: fix Select search input appearance (#46008)
afc163 Nov 22, 2023
ce9041b
docs: 5.11.3 changelog (#46018)
zombieJ Nov 22, 2023
08a85d2
fix: disabled link button should not have navigate when right click (…
MadCcc Nov 22, 2023
110e1b3
fix: rollup warning (#46024)
zombieJ Nov 22, 2023
36768c4
chore: adjust skip script (#46027)
zombieJ Nov 22, 2023
ea56970
refactor: rewrite getAction function to FC (#46032)
li-jia-nan Nov 23, 2023
b34259c
chore: fix release-tweet action (#46036)
afc163 Nov 23, 2023
d85c37b
chore: add intro to Galacean Effects (#46026)
zheeeng Nov 23, 2023
6b18c85
fix: xtech logo (#46043)
zheeeng Nov 23, 2023
5b5087d
chore: migrate to webpack@5 (#45926)
MadCcc Nov 23, 2023
9f9f64e
demo: remove form ref usage from demo (#46046)
afc163 Nov 23, 2023
bb5dd4d
fix(Radio, Checkbox): export `required` prop type (#46028)
nnmax Nov 23, 2023
1c3b0b5
chore: update size-limit workflow (#46049)
MadCcc Nov 23, 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: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ version: 2.1
jobs:
test-argos-ci:
docker:
- image: cimg/node:21.1-browsers
environment:
NODE_OPTIONS: --openssl-legacy-provider
- image: cimg/node:21.2-browsers
steps:
- checkout
- run:
Expand Down
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"
}
11 changes: 8 additions & 3 deletions .dumi/pages/index/components/PreviewBanner/ComponentsBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
import { createStyles } from 'antd-style';
import classNames from 'classnames';

import Tilt from './Tilt';
import useLocale from '../../../../hooks/useLocale';

const { _InternalPanelDoNotUseOrYouWillBeFired: ModalPanel } = Modal;
Expand Down Expand Up @@ -79,7 +80,7 @@ const useStyle = createStyles(({ token, css }) => {
display: flex;
flex-direction: column;
row-gap: ${gap}px;
opacity: 0.65;
opacity: 0.8;
`,

flex: css`
Expand Down Expand Up @@ -117,7 +118,11 @@ const ComponentsBlock: React.FC<ComponentsBlockProps> = (props) => {
const { styles } = useStyle();

return (
<div className={classNames(className, styles.holder)} style={style}>
<Tilt
options={{ max: 20, glare: true, scale: 1 }}
className={classNames(className, styles.holder)}
style={style}
>
<ModalPanel title="Ant Design 5.0" width="100%">
{locale.text}
</ModalPanel>
Expand Down Expand Up @@ -252,7 +257,7 @@ const ComponentsBlock: React.FC<ComponentsBlockProps> = (props) => {
<InternalTooltip title={locale.hello} placement="topLeft" className={styles.noMargin} />

<Alert message="Ant Design love you!" type="success" />
</div>
</Tilt>
);
};

Expand Down
33 changes: 33 additions & 0 deletions .dumi/pages/index/components/PreviewBanner/Tilt.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React, { useEffect, useRef } from 'react';
import VanillaTilt, { type TiltOptions } from 'vanilla-tilt';

interface TiltProps extends React.HTMLAttributes<HTMLDivElement> {
options?: TiltOptions;
}

// https://micku7zu.github.io/vanilla-tilt.js/index.html
const defaultTiltOptions = {
scale: 1.02,
max: 8,
speed: 1500,
glare: true,
'max-glare': 0.8,
};

const Tilt: React.FC<TiltProps> = ({ options, ...props }) => {
const node = useRef<HTMLDivElement>(null);
useEffect(() => {
if (node.current) {
VanillaTilt.init(node.current, {
...defaultTiltOptions,
...options,
});
}
return () => {
(node.current as any)?.vanillaTilt.destroy();
};
}, []);
return <div ref={node} {...props} />;
};

export default Tilt;
16 changes: 9 additions & 7 deletions .dumi/pages/index/components/PreviewBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import useLocale from '../../../../hooks/useLocale';
import SiteContext from '../../../../theme/slots/SiteContext';
import * as utils from '../../../../theme/utils';
import { GroupMask } from '../Group';
import useMouseTransform from './useMouseTransform';

const ComponentsBlock = React.lazy(() => import('./ComponentsBlock'));

Expand All @@ -28,7 +27,6 @@ const locales = {
const useStyle = () => {
const { direction } = React.useContext(ConfigProvider.ConfigContext);
const isRTL = direction === 'rtl';

return createStyles(({ token, css, cx }) => {
const textShadow = `0 0 3px ${token.colorBgContainer}`;

Expand All @@ -37,7 +35,9 @@ const useStyle = () => {
inset: 0;
backdrop-filter: blur(4px);
opacity: 1;
transition: opacity 1s ease;
background: rgba(255, 255, 255, 0.2);
transition: all 1s ease;
pointer-events: none;
`);

return {
Expand Down Expand Up @@ -114,10 +114,8 @@ const PreviewBanner: React.FC<PreviewBannerProps> = (props) => {
const { pathname, search } = useLocation();
const isZhCN = utils.isZhCN(pathname);

const [componentsBlockStyle, mouseEvents] = useMouseTransform();

return (
<GroupMask {...mouseEvents}>
<GroupMask>
{/* Image Left Top */}
<img
style={{ position: 'absolute', left: isMobile ? -120 : 0, top: 0, width: 240 }}
Expand All @@ -134,7 +132,11 @@ const PreviewBanner: React.FC<PreviewBannerProps> = (props) => {
<div className={styles.holder}>
{/* Mobile not show the component preview */}
<Suspense fallback={null}>
{!isMobile && <ComponentsBlock className={styles.block} style={componentsBlockStyle} />}
{isMobile ? null : (
<div className={styles.block}>
<ComponentsBlock />
</div>
)}
</Suspense>
<div className={styles.mask} />

Expand Down
73 changes: 0 additions & 73 deletions .dumi/pages/index/components/PreviewBanner/useMouseTransform.tsx

This file was deleted.

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
2 changes: 2 additions & 0 deletions .dumi/theme/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
"app.footer.seeconf": "Experience Tech Conference",
"app.footer.xtech": "Ant Financial Experience Tech",
"app.footer.xtech.slogan": "Experience The Beauty",
"app.footer.galacean": "Galacean",
"app.footer.galacean.slogan": "Interactive Graphics Solution",
"app.docs.color.pick-primary": "Pick your primary color",
"app.docs.color.pick-background": "Pick your background color",
"app.docs.components.icon.search.placeholder": "Search icons here, click icon to copy code",
Expand Down
2 changes: 2 additions & 0 deletions .dumi/theme/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
"app.footer.seeconf": "蚂蚁体验科技大会",
"app.footer.xtech": "蚂蚁体验科技",
"app.footer.xtech.slogan": "让用户体验美好",
"app.footer.galacean": "Galacean",
"app.footer.galacean.slogan": "互动图形解决方案",
"app.docs.color.pick-primary": "选择你的主色",
"app.docs.color.pick-background": "选择你的背景色",
"app.docs.components.icon.search.placeholder": "在此搜索图标,点击图标可复制代码",
Expand Down
14 changes: 14 additions & 0 deletions .dumi/theme/slots/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,20 @@ const Footer: React.FC = () => {
url: 'https://kitchen.alipay.com',
openExternal: true,
},
{
icon: (
<img
src="https://mdn.alipayobjects.com/huamei_j9rjmc/afts/img/A*3ittT5OEo2gAAAAAAAAAAAAADvGmAQ/original"
width={16}
height={16}
alt="Galacean"
/>
),
title: <FormattedMessage id="app.footer.galacean" />,
description: <FormattedMessage id="app.footer.galacean.slogan" />,
url: 'https://galacean.antgroup.com/',
openExternal: true,
},
{
icon: (
<img
Expand Down
20 changes: 8 additions & 12 deletions .dumi/theme/slots/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ const RESPONSIVE_SM = 1200;

const locales = {
cn: {
message:
'语雀公益计划:大学生认证教育邮箱,即可免费获得语雀会员。语雀,支付宝匠心打造的在线文档平台。',
shortMessage: '支付宝语雀 · 大学生公益计划火热进行中!',
more: '了解更多',
message: 'Galacean Effects · 所见即所得的动效新方案。',
shortMessage: 'Galacean Effects · 所见即所得的动效新方案。',
more: '前往了解',
link: 'https://galacean.antgroup.com/effects/',
},
en: {
message: '',
shortMessage: '',
more: '',
link: '',
},
};

Expand Down Expand Up @@ -366,26 +367,21 @@ const Header: React.FC = () => {
</Popover>
)}
{isZhCN && bannerVisible && (
<ConfigProvider theme={{ token: { colorInfoBg: '#daf5eb', colorTextBase: '#000' } }}>
<ConfigProvider theme={{ token: { colorInfoBg: '#ceebf9', colorTextBase: '#000' } }}>
<Alert
className={styles.banner}
message={
<>
<img
className={styles.icon}
src="https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg"
alt="yuque"
/>
<span>{isMobile ? locale.shortMessage : locale.message}</span>
<a
className={styles.link}
href="https://www.yuque.com/yuque/blog/welfare-edu?source=antd"
href={locale.link}
target="_blank"
rel="noreferrer"
onClick={() => {
window.gtag?.('event', '点击', {
event_category: 'top_banner',
event_label: 'https://www.yuque.com/yuque/blog/welfare-edu?source=antd',
event_label: locale.link,
});
}}
>
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.

4 changes: 3 additions & 1 deletion .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
body: |
Hello @${{ github.event.issue.user.login }}. Please provide a online reproduction by forking codesandbox of [antd@5.x](https://u.ant.design/codesandbox-repro) or [antd@4.x](https://u.ant.design/codesandbox-repro-4x), or provide a minimal GitHub repository. Issues labeled by `Need Reproduce` will be closed if no activities in 3 days.

你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [antd@5.x](https://u.ant.design/codesandbox-repro) 或 [antd@4.x](https://u.ant.design/codesandbox-repro-4x) 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
你好 @${{ github.event.issue.user.login }},我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [antd@5.x](https://u.ant.design/codesandbox-repro) 或 [antd@4.x](https://u.ant.design/codesandbox-repro-4x) 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

> [什么是最小化重现,为什么这是必需的?](https://github.com/ant-design/ant-design/wiki/%E4%BB%80%E4%B9%88%E6%98%AF%E6%9C%80%E5%B0%8F%E5%8C%96%E9%87%8D%E7%8E%B0%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%E8%BF%99%E6%98%AF%E5%BF%85%E9%9C%80%E7%9A%84%EF%BC%9F)

![](https://gw.alipayobjects.com/zos/antfincdn/y9kwg7DVCd/reproduce.gif)

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pr-open-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
refuse-issue-label: '🎱 Collaborate PR only'
need-creator-authority: 'write'
comment: |
Hi @${{ github.event.pull_request.user.login }}. The issue mentioned in this PR needs to be confirmed with the designer or core team. This PR is temporarily not accepted. Thank you again for your contribution! 😊
Hi @${{ github.event.pull_request.user.login }}. The issue mentioned in this PR needs to be confirmed with the designer or core team. Thank you for your contribution! 😊

你好 @${{ github.event.pull_request.user.login }}。这个 PR 提及的 issue 需要和设计师或核心团队进行确认,暂时不接受 PR,再次感谢你的贡献!😊
close: true
你好 @${{ github.event.pull_request.user.login }}。这个 PR 提及的 issue 需要和设计师或核心团队进行确认!感谢您的贡献!😊
close: false
reviewers: |
MadCcc
zombieJ

check-changelog:
permissions:
Expand Down
Loading
Loading