Skip to content

Commit

Permalink
Zl/v4.18.9 sync antd (#57)
Browse files Browse the repository at this point in the history
* fix: Missing Catalan (ca_ES) translation key: Form.optional ant-design#33280 (ant-design#33377)

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* docs: fixing document issues (ant-design#33259)

* test: Demo check popup content (ant-design#33378)

* auto demo

* chore: update demo snapshot

* fix: trigger mock ref logic

* chore: try 2 test case

* chore: more snapshot

* chore: update snapshot

* chore: fix ts

* chore: split test

* test: Update test case

* chore: fix test order

* fix: Descriptions default overflow value (ant-design#33392)

close ant-design#33316

* chore: Internal Menu interface for ProLayout usage (ant-design#33399)

* test: Update snapshot

* chore: disable tooltip

* chore: rename

* fix: Skeleton missing style (ant-design#33405)

* chore(deps): update dependency scrollama to v3 (ant-design#33418)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: Update practical-projects.zh-CN.md (ant-design#33419)

* test: update snapshot

* chore: 4.18.0 changelog (ant-design#33424)

* fix: not allow setState in Popconfirm if unmounted

* Docs: fix fieldNames options typo (ant-design#33241)

* docs: tree-select fieldNames error

* docs: fix docs error

* fix: docs typo

* docs: fix fieldNames

* fix: The current change of pagination triggers onChange  (ant-design#33411)

* fix: table pagination onChange error (ant-design#33374)

* test: add  test case for this (ant-design#33374)

* docs: Update use-in-typescript.zh-CN.md (ant-design#33434)

这里有点不对
/* src/App.ts */
应该是
/* src/App.tsx */
执行npx create-react-app my-project-name --template typescript后也只有App.tsx文件

* docs: fix version error (ant-design#33443)

Co-authored-by: machixian <machixian@myweimai.com>

* fix: Dropdown button destroyPopupOnHide prop not working ant-design#33433 (ant-design#33442)

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* docs: update changelog

* test: Update snapshot

* feat: add useMountedRef hook

* chore: revert import order change

* fix(Divider): with text dashed border color error (ant-design#33452)

* test: add test for react memory leak warning in Popconfirm

* fix: input not support number value (ant-design#33462)

* docs: Update index.en-US.md (ant-design#33464)

provide correct hash link for row selection docs to selection config anchor tag

* refactor: refactor useMountedRef to useMounted

* refactor: refactor useMounted to useDestroyed

* docs: 4.18.1 changelog (ant-design#33476)

* docs: 4.18.1 changelog

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>

* docs: improve Cascader API documentation (ant-design#33484)

close ant-design#33477

* docs: improve changelog

* Revert "fix: The current change of pagination triggers onChange  (ant-design#33411)" (ant-design#33489)

This reverts commit 629cacc.

* docs: release 4.18.2 (ant-design#33491)

* test: add test case for ant-design#33487 (ant-design#33492)

* feat: Merge TimePicker disabledXXX into disabledTime (ant-design#33503)

* feat: merge disabledXXX into disabledTime

* chore: fix ts

* chore: remove whitespace

* fix: Form should have default validateMessages in en locale (ant-design#33511)

* fix missing words in commets (ant-design#33514)

Lol

* chore(deps): update dependency eslint-plugin-unicorn to v40 (ant-design#33520)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: image demo test in argo-ci (ant-design#33523)

close ant-design#33512

* Update README-sp_MX.md (ant-design#33535)

The other title doesn't make sense. "Medio ambiente" is the environment, as in environmental pollution, nothing to do with computers.

* fix: Select tag margin issue when using tagRender (ant-design#33539)

close ant-design#33531

* docs: update upload-png-only demo (ant-design#33544)

[[English Template / 英文模板](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE.md)]

### 🤔 这个变动的性质是?

- [ ] 新特性提交
- [ ] 日常 bug 修复
- [ ] 站点、文档改进
- [x] 演示代码改进
- [ ] 组件样式/交互改进
- [ ] TypeScript 定义更新
- [ ] 包体积优化
- [ ] 性能优化
- [ ] 功能增强
- [ ] 国际化改进
- [ ] 重构
- [ ] 代码风格优化
- [ ] 测试用例
- [ ] 分支合并
- [ ] 其他改动(是关于什么的改动?)

### 🔗 相关 Issue

无

### 💡 需求背景和解决方案

无

### 📝 更新日志

| 语言    | 更新描述 |
| ------- | -------- |
| 🇺🇸 英文 |          |
| 🇨🇳 中文 |          |

### ☑️ 请求合并前的自查清单

⚠️ 请自检并全部**勾选全部选项**。⚠️

- [x] 文档已补充或无须补充
- [x] 代码演示已提供或无须提供
- [x] TypeScript 定义已补充或无须补充
- [x] Changelog 已提供或无须提供

* docs: fix update demo

* docs: correct react-router usage for breadcrumb (ant-design#33551)

* ci: update verify-files-modify (ant-design#33552)

* docs: correct semicolon in upload demo (ant-design#33544) (ant-design#33553)

* fix: PageHeader state update error (ant-design#33546)

* fix: Avoid mutating Event properties that are supposed to be getters (ant-design#33536)

* Avoid mutating Event properties that are supposed to be getters

React's synthetic Event objects have mutable `target` and `currentTarget` properties. These are an incorrect emulation of the corresponding DOM Event properties, which are _getters_ and cannot be assigned-to. AntD's input handling attempts to assign to these getters, which fails in Preact because it uses native Event objects. The solution is to replace the simple property assignments with property definitions, which is likely smaller anyway due to the existing use of `Object.create()` to construct a prototypal facade of Event objects.

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>

* perf: upgrade rc-table (ant-design#33554)

* fix: Upload types for pass generic (ant-design#33543)

* fix: Upload types for pass generic

* fix: Upload type

* refactor: Upload type

* feat: add Upload type test case

* fix: CardGridProps should expose Div Properties like onClick ant-design#33264 (ant-design#33563)

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* style: remove svg reset styles (ant-design#33579)

see reason: necolas/normalize.css@004d58b

close ant-design#33573

* chore: classnames now provides its own type definitions, so we do not need a stub types definition (ant-design#33612)

* chore(deps): update dependency concurrently to v7 (ant-design#33630)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: Table emptynode fixed display (ant-design#33610)

* docs(TreeSelect): add one missing field (ant-design#33619)

* fix: table tree hover error ant-design#33453 (ant-design#33638)

* fix: fix the table tree hover error ant-design#33453

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: afc163 <afc163@gmail.com>

* feat: menu support home & end key (ant-design#33642)

* fix: Form.Item shaking when `help` is empty string (ant-design#33644)

* fix: empty help takes the line

* test: test case

* docs: add changelog 4.18.3 (ant-design#33639)

* docs: add changelog 4.18.3

* docs: add

* docs: add

* docs: add user

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

* docs: add

Co-authored-by: afc163 <afc163@gmail.com>

* feat: support custom Space children key (ant-design#33607)

close ant-design#33331

Co-authored-by: 秦缘斌 <qinyuanbin@corp.netease.com>

* docs: add ProComponents cards (ant-design#33647)

* merge

* merge

* docs: add ProComponents cards

Co-authored-by: 期贤 <qixian.cs@antgroup.com>

* docs: fix changelog page build issue

* docs: improve changelog of 4.18.3 (ant-design#33668)

* refactor: opt for typography Tooltip perf (ant-design#33669)

* fix: Warning: Encountered two children with the same key, 'seperator' (ant-design#33649)

* fix: Warning: Encountered two children with the same key, 'seperator' ant-design#33183

* eslint-disable-next-line react/no-array-index-key

Co-authored-by: dimbslmh <dimsbslmh@gmail.com>

* feat: resolves issue 33572 re aria-sort on tables (ant-design#33603)

* feat: resolves issue 33572 re aria-sort on tables

* fixing snapshots

* removing code that can't be hit anyway

* feat: add skeleton input block (ant-design#33672)

* feat: add skeleton input block

* update: skeleton shapshot

* test: improve layout demo (ant-design#33653)

* test: improve layout demo

* test: improve layout demo

* update snapshot

* fix: checkbox group support options other than string (ant-design#33678)

* fix: checkbox group support options other than string

* docs: update checkbox docs

* fix: radio group support value other than string

* fix: only support number and string

* docs: update group options type

* fix: Image 图片底部空白 ant-design#30825 (ant-design#33631)

* fix: remove input showCount attribute from parent component (ant-design#33686)

* ci: simple files check actions

* ci: preview-deploy download add run_id (ant-design#33680)

* feat: dropdown support arrow pointing at center (ant-design#33658)

* feat: add pointAtCenter prop for dropdown

* feat: dropdown support arrow pointing at center

* chore: code clean

* chore: use getPlacements in tooltip

* feat: dropdown support 'top' and 'bottom'

* chore: update snapshot

* chore: move placements to util folder

* feat: make 'topCenter' and 'bottomCenter' in Dropdown deprecated

* test: update snapshot

* test: add test for topCenter and bottomCenter

* fix: Form validateMessages in nested ConfigProvider (ant-design#33705)

close ant-design#33691

* fix: Input can not be hidden when prefix is set (ant-design#33706)

* fix: Input can not be hidden when prefix is set

* test: jest case for ant-design#33692

Co-authored-by: hydraZty <hydra_zty@163.com>

* fix: <Icon component={HomeOutlined} /> align issue (ant-design#33709)

* fix: <Icon component={HomeOutlined} /> align issue

close ant-design#33703

* update snapshot

* fix: Steps tail shouldn't show when type is navigation and labelPlacement is vertical (fix ant-design#33681) (ant-design#33716)

* Steps tail shouldn't show when type is navigation and labelPlacement is vertical (fix ant-design#33681)

* fix: Steps tail shouldn't show when type is navigation and labelPlacement is vertical
close ant-design#33681

* fix: Steps tail shouldn't show when type is navigation and labelPlacement is vertical
close ant-design#33681

* fix: <Icon component={SyncOutlined} spin /> shake issue. (ant-design#33726)

* docs: add controlled preview demo for Image (ant-design#33727)

* docs: add controlled preview demo for Image

* test: update snapshot

* test: fix lint error

* fix: Invalid memoized context value in LocaleProvider (ant-design#33723)

* fix: Invalid memoized context value in LocaleProvider

* Add button type in test case.

* fix: Invalid memoized context value in Anchor

* docs(table): upgrade react-sortable-hoc usage (ant-design#33729)

Co-authored-by: 亦逊 <eason.ym@alibaba-inc.com>

* fix Input及相关组件设置 hidden 时展示问题 (ant-design#33735)

* fix: Image 图片底部空白 ant-design#30825

* feat: Input、Input.search、Input.Textarea、Input.password 设置 hidden 时 所有 prefix or suffix or showCount or allowClear or addonBefore or addonAfter 都应该隐藏

* fix: lint

* fix: test

* fix: test ui

* fix: some incorrect translation for km_KH (ant-design#33738)

* Add km_KH locale to component

* Add test and docs

* Fix typo

* Add test snapshot

* Fix translation

* Add test

* docs: remove v4 release qrcode

* test: fix lint

* fix: Typography error on context ellipsis (ant-design#33725)

* chore: init measure

* chore: out of space

* refactor: Multiple render

* chore: auto cut

* feat: render split

* fix: ellipsis logic of suffix

* fix: ref missing

* fix: Tooltip missing

* test: snapshot

* chore: opt for textarea

* test: back part of ellipsis

* chore: back of ellipsis logic

* ellipsis logic

* fix: init ellipsis measure

* fix: ellipsis event

* chore: clean up

* test: Update snapshot

* fix: test

* test: Update snapshot

* chore: lazy ellipsis

* fix: check css ellipsis logic

* test: Update snapshot

* test: back of coverage

* chore: clean up

* test: ignore else

* test: clean up

* feat: border color with transparency (ant-design#33506)

* feat: border color with transparency

* feat: update progess remain color with rgba(0, 0, 0, 0.06)

* feat: progress remaining color

* fix: TreeSelect not show hightlight with keyboard (ant-design#33755)

* docs: add changelog 4.18.4 (ant-design#33748)

Co-authored-by: afc163 <afc163@gmail.com>

* docs: guide of theme dev (ant-design#33756)

* chore: update Cacasder demo and remove array-tree-filter (ant-design#33754)

* chore: upgrade rc-cacasder

* update snapshot

* chore: Add DingDing release bot

* chore: conch script (ant-design#33766)

* fix: Tag color in dark theme (ant-design#33751)

* docs: update dark theme doc

* fix: dark tag theme

* docs: ✏️ add note comment (ant-design#33771)

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>

* fix: update prevValue of checkbox if value changed (ant-design#33753)

* fix: Cascader auto placement & scroll (ant-design#33777)

* fix: Cascader auto placement & scroll

* chore: bump rc-tree-select

* chore: try to find safe version (ant-design#33783)

* feat: Select/DatePicker/TimePicker/TreeSelect support placement (ant-design#33541)

* feat: select components add placement api

* feat: select components add placement api

* fix: delete placement

* fix: change md demo and delete export

* feat: cascader and tree-select add placement

* feat: datapicker add placement api

* fix: change repeat static declaration to single

* test: updata test units

* doc: change doc

* fix: delete merge message & delete decalare ts

* test: fix unit test

* fix: add transName in select & treeSelect & cascader

* fix: change common api in utils

* fix: change useless if block to only

* fix: change placement string to enum

* fix: lint done

Co-authored-by: 礼检 <ljj337009@antgroup.com>

* fix: Get ref of Card component ant-design#33730 (ant-design#33784)

* fix: Get ref of Card component ant-design#33730

* add test to the card ref

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* fix(checkbox): disabled checkbox should works well with tooltip (ant-design#33772)

Co-authored-by: wanghao <wanghao.wong@bytedance.com>

* style: Cascader loading icon (ant-design#33799)

* test: fix cascader test coverage (ant-design#33802)

* chore: i18n contributing docs improve (ant-design#33760)

* chore: i18n contributing docs improve

* update

* Update docs/react/i18n.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update

* update

* fix name

* 空格

* fix name

* update

* Update docs/react/i18n.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update

* update

* update

* 添加英文版本

* update

* the

* update

* update

* fix list

* Revert "fix list"

This reverts commit c6f3e2c.

* fix list

* 指向源文件

Co-authored-by: afc163 <afc163@gmail.com>

* fix: Invalid hook dependency array in Sider and Row (ant-design#33804)

* chore(deps): update dependency simple-git to v3 (ant-design#33817)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: update sentence structure in the FAQ section (ant-design#33816)

* docs: add Plasmic for Ant (ant-design#33758)

* Add Plasmic for Ant

* Point Plasmic link to dedicated Ant page

* test: fix lint

* docs(:sparkles:): release 4.18.5 (ant-design#33822)

* docs(:sparkles:): release 4.18.5

* update changelog

* fix: upload button position flashes when it changes from hidden to displayed (ant-design#33820)

* fix: fix upload button position flashes when it changes from hidden to displayed (ant-design#33819)

* fix: typo in upload

Co-authored-by: chenqiufan <chenqiufan@shiqiao.com>

* fix: Clear timer of delayed loading after Button is unmounted (ant-design#33858)

* fix: Clear delay loading timer after Button is unmounted

* [CodeFactor] Apply fixes to commit 16cfb89

[ci skip] [skip ci]

* Change arrow function style in test case

Co-authored-by: codefactor-io <support@codefactor.io>

* feat: notification placement support 'top'/'bottom' (ant-design#33871)

* fix: tooltip should work with loading switch (ant-design#33860)

* fix: tooltip should work with loading switch

* fix: only works for switch

* chore: code clean

* fix: block not work when small size (ant-design#33878)

vueComponent/ant-design-vue#5219

* fix: ellipsis should display tooltip if rows larger than 1 (ant-design#33875)

* fix: ellipsis should display tooltip if rows larger than 1

* test: add test case

* fix: update dropdown version to 3.2.5 (ant-design#33895)

* fix: update dropdown version to 3.2.5

* test: update snapshot

* revert: Revert "Merge branch 'feature' into master" (ant-design#33903)

This reverts commit 40433f3, reversing
changes made to 27a498e.

* Revert "revert: Revert "Merge branch 'feature' into master" (ant-design#33903)"

This reverts commit 6b1a48d.

* chore(deps): update dependency eslint-plugin-jest to v26 (ant-design#33899)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency @types/jest-environment-puppeteer to v5 (ant-design#33898)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* types: export DatePickRef and RangePickerRef (close ant-design#33417) (ant-design#33901)

* fix(popover): fix the problem that popover display when the props'content is empty (ant-design#33835)

* fix(popover): fix the problem that popover display when the props'content is empty

* refactor(popover): 更新代码判断逻辑

* test(popover): 添加popover的test

* feat(popover): 更新snapshot

* feat(popover): 更新剩余的snapshot

* feat: optimize dropdown accessbility (ant-design#33893)

* feat: optimize dropdown accessbility

* chore: bump rc-dropdown version

* docs(✨): release 4.18.6 (ant-design#33948)

* docs(✨): release 4.18.6

* chore: update version

* docs: add date

* fix: custom color should work on antd icons (ant-design#33951)

* feat: tooltip round arrow (ant-design#33710)

* feat: tooltip round arrow

* chore: update demo

* docs: update docs

* feat: rounded arrow in Tooltip/Popover/Popconfirm/Dropdown/RangePicker

* chore: code clean

* fix: fill gap

* chore: code clean

* chore: raise css bundle size

* fix: arrow style

* feat: use full path

* test: update snapshot

* perf: hack firefox

* perf: more magic position

* perf: RangePicker's arrow position

* chore: bump rc-picker version

* fix: arrow position

* chore(deps): update dependency react-dnd-html5-backend to v15 (ant-design#33941)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* feat: inputNumber controls support customize upIcon/downIcon (ant-design#33914)

* feat: inputNumber controls support customize upIcon/downIcon

* feat: 修改代码格式问题

* feat: 更新snapshot,修改代码开启prettier

* feat: 更新snapshot,order 属性修改

* feat: upIcon/downIcon写法调整

* feat: 更新snapshot

* fix: Exception in enter key callback on editable or copyable Paragraph (ant-design#33976)

* fix: Exception on enter key callback

* Move spyOn position

* docs: 4.18.6 changelog optimization (ant-design#33990)

* fix: class names of Row and Col components when using custom prefix (ant-design#33969)

* feat: Exposes additional props for pagination component on transfer (ant-design#33954)

* Exposes additional props for pagination component on transfer

* feat: Improve transfer pagination customization

* feat: Improve transfer pagination customization

* fix: Typography copyable add stopPropagation (ant-design#33998)

* fix: Typography copyable add stopPropagation

* add test

* chore(deps): update dependency react-dnd to v15 (ant-design#33940)

* chore(deps): update dependency react-dnd to v15

* fix: Tabs demo

* fix: demo

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>

* fix: Pagination and Rate style bug in Safari (ant-design#34002)

* fix: Pagination and Rate style bug in safari

close ant-design#33965

* fix style

* docs: fix missing @/services/product (ant-design#34003)

* docs: fix missing @/services/product

close ant-design#33952

* update data

* docs: improve Select dropdownRender demo style (ant-design#34004)

* chore: remove unused interface file (ant-design#34011)

* style: improve Menu :focus-visible style (ant-design#34008)

* style: improve Menu :focus-visible style

ref ant-design#34005

* style: darken :focus-visible style

* fix: typography ellipsis check in transform (ant-design#34007)

* fix: typography ellipsis check in transform

* test: Update snapshot

* chore: btn default provide default cls (ant-design#34013)

* fix: cascader's onChange ts adapts to single and multiple (ant-design#33947)

* fix to: cascader's multiple determines the declaration of onChange

* fix: cascader's onChange ts adapts to single and multiple

* test: fix

* docs: more acurrate description about Menu overflowedIndicator prop (ant-design#34022)

* docs: add info about Menu overflowedIndicator prop

close ant-design#34016

* fix doc

* fix textarea maxlength issue (ant-design#33910)

* fix: textarea maxlength

* refactor: delete some useless code

* refactor: fix ci

* refactor and fix test case fall

* update snapshot

* add testcase

* refactor type defined

* fix: min/max validators in pl_PL locale returning undefined (ant-design#34024)

Co-authored-by: Michał Podeszwa <178679-michalpodeszwa@users.noreply.gitlab.com>

* fix: useLayoutEffect to useIsomorphicLayoutEffect (ant-design#33818)

* fix: useLayoutEffect to useIsomorphicLayoutEffect

* chore: change to rc-util/lib/hooks/useLayoutEffect

* ci: files modify cancel failed

* feat: Add ability to overwrite Menu theme at Menu.SubMenu level. (ant-design#33971)

* Add theme support to Menu.SubMenu

* Tidy up docs

* Tidy up docs

* Update components/menu/index.en-US.md

* Update components/menu/index.en-US.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Add Chinese lang docs

* Extend menu theme demo to additionally demonstrate Sub-menu theming

* Add submenu theme demo

* Revert "Extend menu theme demo to additionally demonstrate Sub-menu theming"

This reverts commit 642a2b5.

* Add tests

* Correct typo

* Make demo vertical so absolutely positioned popover doesn't overflow

* Make demo functional component

* Update components/menu/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update components/menu/index.zh-CN.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Update components/menu/demo/submenu-theme.md

Co-authored-by: MadCcc <1075746765@qq.com>

Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>

* docs: 4.18.7 changelog (ant-design#34041)

* feat: Input support status (ant-design#33995)

* feat: remove form status style && input support status

* test: update snapshot

* feat: update status prop in config provider

* fix: form item validateStatus support

* chore: code clean

* feat: status classname change

* test: update snapshot

* refactor: move formItemStatusContext to form folder

* refactor: merge utils

* refactor: rename statusUtils

* chore: code clean

* test: fix coverage

* chore: remove status prop of Form.Item

* chore: code clean

* docs: update demo

* test: fix lint

* feat: status only success and warning

* test: fix lint

* docs: update deamo

* test: Udpate test for rc-util@latest

* docs: Patch adjust changelog desc

* chore: update snapshot

* chore: script update (ant-design#34060)

* chore(deps): update dependency stylelint-config-standard to v25 (ant-design#34028)

* chore(deps): update dependency stylelint-config-standard to v25

* fix stylelint lint

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: tanghui <yoyo837@hotmail.com>

* chore: Update sk_SK locales (ant-design#34061)

* chore: Update sk_SK locales

* Disable eslint rule, based on defaults (EN)

* feat: inputNumber support status (ant-design#34042)

* feat: inputNumber support status

* test: fix test

* feat: custom status first

* refactor: getMergedStatus pass status in params

* ci: add MadCcc assign

* perf: OPT table render perf (ant-design#34075)

* fix: Typography copyable in clipboard incorrect (ant-design#34034)

Co-authored-by: chenxq <chenxq@neocrm.com>

* docs: fix procomponents links

* test: skip layout demo which failed a lot in argoci

* docs: improve Umi documentation

* feat: mentions support status (ant-design#34071)

* test: skip form deps-lint

* perf: remove useless has-feedback classname

* test: raise test coverage

* style: recover import arrangement

* feat: DatePicker and TimePicker support status (ant-design#34073)

* feat: DatePicker and TimePicker support status

* docs: demo add version

* chore: code clean

* feat: select support status (ant-design#34084)

* feat: select support status

* test: fix lint

* fix: update quarter picker placeholder for RangePicker (ant-design#34089)

* feat: cascader support status (ant-design#34086)

* feat: cascader support status

* chore: code clean

* chore: raise bundle size limitation

* chore: code clean

* feat: TreeSelect support status (ant-design#34093)

* feat: TreeSelect support status

* chore: code clean

* docs: add demo version

* feat: AutoComplete support status (ant-design#34096)

* feat: AutoComplete support status

* test: update snapshot

* feat: transfer support status (ant-design#34098)

* feat: transfer support status

* docs: update demo

* fix: Table render twice on first mount (ant-design#34106)

* fix: Table render twice

* chore: clean up

* test: Fix test case

* fix: remove duplicated style (ant-design#34101)

* fix: remove duplicated style

* chore: reduce bundle size limitation

* chore: raise bundle size

* docs: Multiple displayRender support (ant-design#34116)

* fix: Form layout when Select has long text (ant-design#34117)

* fix: Form layout when Select has long text

close ant-design#33773

* chore: update snapshot

* fix: not crash ConfigProvider.config on server side (ant-design#34118)

* fix: Invalid memoized context value in Menu (ant-design#34121)

* chore(deps): update dependency eslint-plugin-unicorn to v41 (ant-design#34133)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update actions-cool/issues-helper action to v3 (ant-design#34132)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: fix grammar error (ant-design#34138)

in customize-theme-variable.zh-CN.md

* fix: del messageInstance when configuring getContainer (ant-design#34123)

* fix: del messageInstance when configuring getContainer

* test: move the new test to the bottom of the test lists

* fix: Layout component SiderProps type not exported (ant-design#34137)

* perf: Improve Components render perfermance when it's not reponsive (ant-design#34122)

* perf: Improve List render perfermance when grid is undefined

https://github.com/ant-design/ant-design/pull/34106/files#diff-9e016ea02fe7dd0ea42d8774d29d45e1a10b8dd108de9c89d50c828c74b993b8R146-R151

* chore: do not export useBreakpoint param

Co-authored-by: zombiej <smith3816@gmail.com>

* docs: 4.18.8 changelog (ant-design#34146)

* chore: bump version to 4.18.8

* docs: 4.18.8 changelog

* docs: update changelog

* docs: update changelog

* docs: update changelog

* fix: form initial values get modified (ant-design#34153)

* chore: fix ts error in site

* chore: fix Chinese expression about "的地得" (ant-design#34173)

close ant-design#34167

* fix(upload): onChange params type err (ant-design#34161)

* fix(upload): onChange params type err

* test(upload): check onChange params type

* fix: Dropdown item style when text is long (ant-design#34177)

close ant-design#34176

* fix: issue ant-design#34015 cascader document of option less isleaf param (ant-design#34174)

* fix: issue ant-design#34015 cascader document of option less isleaf param

* fix: add comment

* fix: comment change

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* fix: Overview page EditableProTable link error (ant-design#34181)

* docs: add MasterGo to design assets (ant-design#34055)

* docs: add MasterGo to design assets

* chore: update mastergo links

* feat: table FilterDropdown support `clearFilters({ confirm: false, closeDropdown: false })` (ant-design#34120)

* feat: table FilterDropdown support `clearFilters({ confirm: boolean })`

* feat: update `clearFilters` and `confirm`

* feat: add FilterRestProps,update document

* feat: update onReset params order

* feat: add test case

* feat: table filterSearch supports function (ant-design#34085)

* feat: table filterSearch supports function

* feat: update for test

* feat: update document

* test: disabled react/jsx-key

* chore: lock eslint-plugin-react (ant-design#34214)

* Revert "test: disabled react/jsx-key"

This reverts commit 7d64967.

* chore: lock eslint-plugin-react@7.28.0

* feat: add variable for aliyun theme of drawer (ant-design#34188)

Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>

* feat: add variable for aliyun theme of dropdown (ant-design#34189)

Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>

* fix: remove lock for eslint-plugin-react (ant-design#34220)

* feat: add variable for aliyun theme of modal (ant-design#34191)

Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>

* feat: add variable for aliyun theme of divider (ant-design#34187)

Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>

* feat: add variable for aliyun theme of radio (ant-design#34194)

Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>

* docs: update maintainer for changelog script

* docs: add changelog 4.18.9 (ant-design#34236)

* docs: add changelog 4.18.9

* docs: update

* docs: update

* Update CHANGELOG.zh-CN.md

* feat: introduce rc-input (ant-design#34206)

* feat: introduce rc-input

* fix: export InputRef alias

* docs: fix demo

* chore: code clean

* test: fix lint

* test: test coverage

* chore: code clean

* chore: code clean

* test: update snapshot

* refactor: Update rc-slider (ant-design#34234)

* chore: Update rc-slider version

* chore: bump

* chore: update sty;e

* fix: style

* test: update snapshot

* test: all fixed

* fix lint

* docs: update links of mastergo (ant-design#34242)

* feat: add utm to mastergo's links (ant-design#34248)

* chore(deps-dev): bump typescript from 4.5.5 to 4.6.2 (ant-design#34249)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.5 to 4.6.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.5.5...v4.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refactor: change usecontext of divider prepare for v5 (ant-design#34246)

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* refactor: Wrap affix with FC (ant-design#34254)

* test: fix

* chore: ts fix

* chore: update ts def

* test: fix test

* fix: Form doc "resetFields" args type (ant-design#34262)

* style: remove overriding !important from input border right width styles (ant-design#34178)

* docs: add description about onClear prop in AutoComplete doc (ant-design#34292)

* fix: editable Typography.Title should match font size while editing (ant-design#34169)

* feat: editable Typography.Title should match font size while editing

* feat: update style

* feat: update style

* feat: update style

* feat: style lint

* feat: update style

* Update components/typography/style/index.less

* Update components/typography/Editable.tsx

* feat: reorganize css

* feat: style lint

* feat: update snap

Co-authored-by: afc163 <afc163@gmail.com>

* fix: limit input class due to rc-input won't override input class (ant-design#34294)

* fix: limit input class due to rc-input won't override input class

* fix: add feedback into affix judgement

* fix: Tree filter select all behavior (ant-design#34295)

ref ant-design#34280

* fix: typography title margin issue (ant-design#34302)

* fix: modify README.md

Co-authored-by: guhao.zeng <45565100+ZzGGitter@users.noreply.github.com>
Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
Co-authored-by: binyellow <571704908@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nmaxwiver <9283555+hxmwr@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: dengqing <1247748612@qq.com>
Co-authored-by: 2724635499 <2724635499@qq.com>
Co-authored-by: 麦谷 <1141453778@qq.com>
Co-authored-by: WeijieChen <cwjTerrace@163.com>
Co-authored-by: machixian <machixian@myweimai.com>
Co-authored-by: chen-jingjie <35401187+chen-jingjie@users.noreply.github.com>
Co-authored-by: Garrick Crouch <garrickcrouch@gmail.com>
Co-authored-by: Xi Ming <46511237+seki2020@users.noreply.github.com>
Co-authored-by: Pablo Recalde <me@pablorecalde.com>
Co-authored-by: Ryan Lee <yigexbl@gmail.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: Wuif <5678318+wuifdesign@users.noreply.github.com>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: uchanlee <uchanlee.dev@gmail.com>
Co-authored-by: Long Hao (龙濠) <45565100+LongHaoo@users.noreply.github.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: NothingToDo <49073282+hemengke1997@users.noreply.github.com>
Co-authored-by: Shanjie Chen <cnzxcsj@outlook.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: qin20 <10720918+qin20@users.noreply.github.com>
Co-authored-by: 秦缘斌 <qinyuanbin@corp.netease.com>
Co-authored-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: 期贤 <qixian.cs@antgroup.com>
Co-authored-by: dimbslmh <745635+dimbslmh@users.noreply.github.com>
Co-authored-by: dimbslmh <dimsbslmh@gmail.com>
Co-authored-by: Dan Greene <14020024+dgreene1@users.noreply.github.com>
Co-authored-by: zhenfan.yu <fanerge@qq.com>
Co-authored-by: whwangms <whwangms@outlook.com>
Co-authored-by: ZhouZhen <503633021@qq.com>
Co-authored-by: hydraZty <670688667@qq.com>
Co-authored-by: hydraZty <hydra_zty@163.com>
Co-authored-by: toSayNothing <91143836+toSayNothing@users.noreply.github.com>
Co-authored-by: PlayerWho <who.zhuang@gmail.com>
Co-authored-by: Di Wu <di@gridx.cn>
Co-authored-by: yanm1ng <644169721@qq.com>
Co-authored-by: 亦逊 <eason.ym@alibaba-inc.com>
Co-authored-by: VIREAK KEOSOKVIBOL <46261326+vireakkeosokvibol@users.noreply.github.com>
Co-authored-by: vagusX <vagusX@users.noreply.github.com>
Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
Co-authored-by: Cat-XHS <1349021570@qq.com>
Co-authored-by: 礼检 <ljj337009@antgroup.com>
Co-authored-by: 王浩 <boomler@hotmail.com>
Co-authored-by: wanghao <wanghao.wong@bytedance.com>
Co-authored-by: Eliot Sanford <eliot587@gmail.com>
Co-authored-by: Yang Zhang <7129+yang@users.noreply.github.com>
Co-authored-by: Cole <cqiufan@outlook.com>
Co-authored-by: chenqiufan <chenqiufan@shiqiao.com>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: 黑雨 <wangning4567@163.com>
Co-authored-by: tangjinzhou <415800467@qq.com>
Co-authored-by: Amour1688 <lcz_1996@foxmail.com>
Co-authored-by: Dawnlck <chaokai.lck@antgroup.com>
Co-authored-by: mic-web <4804412+mic-web@users.noreply.github.com>
Co-authored-by: Jase Owens <jaseowens197@gmail.com>
Co-authored-by: linxianxi <47104575+linxianxi@users.noreply.github.com>
Co-authored-by: babycannotsay <335658202@qq.com>
Co-authored-by: chenyizhongx <31769726+chenyizhongx@users.noreply.github.com>
Co-authored-by: Michał Podeszwa <MichalPodeszwa@users.noreply.github.com>
Co-authored-by: Michał Podeszwa <178679-michalpodeszwa@users.noreply.gitlab.com>
Co-authored-by: soso <ethdud1@gmail.com>
Co-authored-by: David <97387061+david-cord@users.noreply.github.com>
Co-authored-by: Filip Seman <filip.seman@protonmail.com>
Co-authored-by: opopeieie <opopeieie@users.noreply.github.com>
Co-authored-by: chenxq <chenxq@neocrm.com>
Co-authored-by: stefango <nankongyinan@gmail.com>
Co-authored-by: TrickyPi <33021497+TrickyPi@users.noreply.github.com>
Co-authored-by: Picsong <312465087@qq.com>
Co-authored-by: Dave <wangcch.cc@gmail.com>
Co-authored-by: 李瀚 <44010674+lihansir@users.noreply.github.com>
Co-authored-by: KaKaHuoLuoTe <99702968+KaKaHuoLuoTe@users.noreply.github.com>
Co-authored-by: qdzhaoxiaodao <32627250+qdzhaoxiaodao@users.noreply.github.com>
Co-authored-by: zhaohonghai <wb-zhh767523@alibaba-inc.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zach Bird <546439325@qq.com>
Co-authored-by: aghArdeshir <ardeshireo@gmail.com>
Co-authored-by: Karott Schu <karott7@gmail.com>
Co-authored-by: zhang lay <lay.zhang@shopee.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 380 changed files with 32,020 additions and 10,268 deletions.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 🆕 Create new issue
url: http://new-issue.ant.design
about: The issue which is not created via http://new-issue.ant.design will be closed immediately.
- name: 🆕 创建一个新 Issue
url: http://new-issue.ant.design
about: 不是用 http://new-issue.ant.design 创建的 issue 会被机器人自动关闭。另外『如何使用...』类问题建议使用讨论区 https://github.com/ant-design/ant-design/discussions
99 changes: 99 additions & 0 deletions .github/ISSUE_TEMPLATE/template-1-bug-report.yml.close
@@ -0,0 +1,99 @@
name: 🇨🇳 报告缺陷(beta)
description: 使用中文 Bug 报告模板提交一个缺陷,当然你也可以用 https://new-issue.ant.design
title: "[Bug] 请替换成合适的标题"
labels: ["🐛+Bug"]
body:
- type: markdown
attributes:
value: |
除了此表单,你也可以使用 [Ant Design Issue Helper](https://new-issue.ant.design/) 来新建 issue。

Ant Design 的 issue 列表只接受 [Bug 报告](https://github.com/ant-design/ant-design/issues/new?assignees=&labels=%F0%9F%90%9B+Bug&template=template-1-bug-report.yml&title=%5BBug%5D+) 或是 [新功能请求](https://github.com/ant-design/ant-design/issues/new?assignees=&labels=%F0%9F%92%A1%2BFeature%2BRequest&template=template-2-feature-request.yml&title=%5BFeature+Request%5D+) (Feature Request)。这意味着我们不接受用法问题(How to 类问题)。如果你开的 issue 不符合规定,它将会被立刻关闭。[为什么要这么严格?](https://github.com/ant-design/antd-issue-helper/blob/master/src/locales/zh/introModal.md)

对于使用中遇到的问题,请使用以下资源:

- 将用法类问题发到 [GitHub 讨论区](https://github.com/ant-design/ant-design/discussions) 而不是 Issue。
- 仔细阅读 [使用文档](https://ant.design/docs/react/introduce-cn) 和 [组件文档](https://ant.design/components/overview-cn/)。
- 提问前确保你在 [常见问题](https://ant.design/docs/react/faq-cn) 和 [更新日志](https://ant.design/changelog-cn) 中搜索过。
- 在 [StackOverflow](https://stackoverflow.com/questions/tagged/antd) (英文) 或是 [SegmentFault](https://segmentfault.com/t/antd)(中文)搜索和提问。

最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。

---
- type: input
id: reproduce
attributes:
label: 重现链接
description: 请提供一个尽可能精简的 [codesandbox](https://u.ant.design/codesandbox-repro) 或 [GitHub 仓库](https://github.com/ant-design/create-react-app-antd/) 的链接。[什么是最小化重现,为什么这是必需的?](https://github.com/ant-design/antd-issue-helper/blob/master/src/locales/zh/reproModal.md)
validations:
required: true
- type: input
id: version
attributes:
label: antd 版本
description: 你正在使用的 antd 版本是多少?(注意不是 package.json 里的版本,而是 node_modules/antd 里实际安装的版本)
placeholder: 如 4.16.13
validations:
required: true
- type: textarea
id: reproduce-steps
attributes:
label: 重现步骤
description: 请提供一个傻瓜式的操作步骤,方便我们无脑重现问题。
placeholder: |
比如:
1. 点击重现链接里的主按钮
2. 等待五秒钟
3. 观察按钮的边框
validations:
required: true
- type: textarea
id: expected
attributes:
label: 期望的结果是什么?
placeholder: 比如:按钮样式正常,边框一直存在
validations:
required: true
- type: textarea
id: reality
attributes:
label: 实际的结果是什么?
placeholder: 比如:按钮样式异常,边框突然丢失
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: 浏览器
description: 在哪些浏览器上能重现这个问题?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Edge
- Internet Explorer
- Others
- type: input
id: browsers-version
attributes:
label: 浏览器版本
placeholder: 如:版本 95.0.4638.69(正式版本) (x86_64)
- type: dropdown
id: os
attributes:
label: 操作系统
description: 使用的操作系统是?
options:
- Windows
- MacOS
- iOS
- Android
- Others
- type: input
id: hidden-tag
attributes:
label: 其他
description: 不要删除预填内容,否则 issue 会被自动关闭。
value: <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/template-2-feature-request.yml.close
@@ -0,0 +1,50 @@
name: 🇨🇳 功能需求(beta)
description: 使用中文 Bug 报告模板提交一个功能需求,当然你也可以用 https://new-issue.ant.design
title: "[Feature Request] 请替换成合适的标题"
labels: ["💡+Feature+Request"]
body:
- type: markdown
attributes:
value: |
除了此表单,你也可以使用 [Ant Design Issue Helper](https://new-issue.ant.design/) 来新建 issue。

Ant Design 的 issue 列表只接受 [Bug 报告](https://github.com/ant-design/ant-design/issues/new?assignees=&labels=%F0%9F%90%9B+Bug&template=template-1-bug-report.yml&title=%5BBug%5D+) 或是 [新功能请求](https://github.com/ant-design/ant-design/issues/new?assignees=&labels=%F0%9F%92%A1%2BFeature%2BRequest&template=template-2-feature-request.yml&title=%5BFeature+Request%5D+) (Feature Request)。这意味着我们不接受用法问题(How to 类问题)。如果你开的 issue 不符合规定,它将会被立刻关闭。[为什么要这么严格?](https://github.com/ant-design/antd-issue-helper/blob/master/src/locales/zh/introModal.md)

对于使用中遇到的问题,请使用以下资源:

- 将用法类问题发到 [GitHub 讨论区](https://github.com/ant-design/ant-design/discussions) 而不是 Issue。
- 仔细阅读 [使用文档](https://ant.design/docs/react/introduce-cn) 和 [组件文档](https://ant.design/components/overview-cn/)。
- 提问前确保你在 [常见问题](https://ant.design/docs/react/faq-cn) 和 [更新日志](https://ant.design/changelog-cn) 中搜索过。
- 在 [StackOverflow](https://stackoverflow.com/questions/tagged/antd) (英文) 或是 [SegmentFault](https://segmentfault.com/t/antd)(中文)搜索和提问。

最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。

---
- type: textarea
id: needs
attributes:
label: 这个功能解决了什么问题?
description: |
请尽可能详尽地说明这个需求的用例和场景。最重要的是:解释清楚是怎样的用户体验需求催生了这个功能上的需求。
Ant Design 的一个重要设计原则是保持 API 的简洁和直接。通常来说,我们只考虑添加在现有的 API 下无法轻松实现的功能。新功能的用例也应当足够常见。
validations:
required: true
- type: textarea
id: api
attributes:
label: 你期望的 API 是怎样的?
description: |
描述一下你期望这个新功能的 API 是如何使用的,并提供一些代码示例。请用 Markdown 格式化你的代码片段。
如果有新的 UI 界面,最好截图展示你期望的界面是什么样的?
placeholder: |
```jsx
<Drawer extra={<Button />} {...props} />
```
validations:
required: true
- type: input
id: hidden-tag
attributes:
label: 其他
description: 不要删除预填内容,否则 issue 会被自动关闭。
value: <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
2 changes: 1 addition & 1 deletion .github/workflows/issue-check-inactive.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'check-inactive'
inactive-label: 'Inactive'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-close-require.yml
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: need reproduce
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
labels: '🤔 Need Reproduce'
inactive-day: 3

- name: needs more info
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
labels: 'needs-more-info'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/issue-labeled.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: help wanted
if: github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -26,7 +26,7 @@ jobs:
- name: 🤔 Need Reproduce
if: github.event.label.name == '🤔 Need Reproduce'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Usage
if: github.event.label.name == 'Usage' || github.event.label.name == 'Question'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,7 +52,7 @@ jobs:
- name: 3.x
if: github.event.label.name == '3.x'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -64,7 +64,7 @@ jobs:
- name: invalid
if: github.event.label.name == 'Invalid'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -76,7 +76,7 @@ jobs:
- name: rtl
if: github.event.label.name == 'rtl'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'add-assignees'
assignees: 'xrkffgg'
14 changes: 7 additions & 7 deletions .github/workflows/issue-open-check.yml
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: check invalid
if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false')
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,add-labels,close-issue'
issue-number: ${{ github.event.issue.number }}
Expand All @@ -27,7 +27,7 @@ jobs:
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合!
- name: check website
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
id: checkid
with:
actions: 'check-issue'
Expand All @@ -37,7 +37,7 @@ jobs:

- name: deal website
if: steps.checkid.outputs.check-result == 'true'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
issue-number: ${{ github.event.issue.number }}
Expand All @@ -59,19 +59,19 @@ jobs:
* Infra Design Pro: http://ant-design-pro.gitee.io
* Infra Design Mobile: http://antd-mobile.gitee.io
* Ant Motion: http://ant-motion.gitee.io
* Infra Design Pro Preview : https://prosite.z23.web.core.windows.net
* Ant Design Pro Preview : https://prosite.z23.web.core.windows.net
- name: check ie
if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.title, 'IE11') == true || contains(github.event.issue.title, 'IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true || contains(github.event.issue.body, 'IE11') == true || contains(github.event.issue.body, 'IE 11') == true || contains(github.event.issue.body, 'Internet Explorer') == true
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
issue-number: ${{ github.event.issue.number }}
labels: 'IE | Firefox | Safari,Internet Explorer'

- name: check ie
if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.title, 'IE11') == true || contains(github.event.issue.title, 'IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment, close-issue'
issue-number: ${{ github.event.issue.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-remove-inactive.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: remove inactive
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
issue-number: ${{ github.event.issue.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check-ci.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
filter-label: 'BranchAutoMerge'
filter-creator-authority: 'write'
filter-head-ref: 'master, feature, master-merge-feature, feature-merge-master'
filter-head-ref: 'master, feature, next, master-merge-feature, feature-merge-master, next-merge-master'
filter-support-fork: false
skip-run-names: 'deploy preview, pr-check-ci, build preview failed, suggest-related-links'
conflict-review-body: '😅 This branch has conflicts that must be resolved!'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check-merge.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
if: (github.event.pull_request.head.ref == 'feature' || github.event.pull_request.head.ref == 'master') && github.event.pull_request.head.user.login == 'ant-design'
steps:
- uses: actions-cool/issues-helper@v2
- uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
issue-number: ${{ github.event.number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-helper.yml
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: make release
uses: actions-cool/release-helper@v1
uses: actions-cool/release-helper@v2
with:
triger: 'tag'
changelogs: 'CHANGELOG.en-US.md, CHANGELOG.zh-CN.md'
branch: 'master'
dingding-token: ${{ secrets.DINGDING_BOT_TOKEN }}
dingding-token: ${{ secrets.DINGDING_BOT_TOKEN }} ${{ secrets.DINGDING_BOT_BIGFISH_TOKEN }}
dingding-msg: 'CHANGELOG.zh-CN.md'
msg-poster: 'https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*zx7LTI_ECSAAAAAAAAAAAABkARQnAQ'
msg-footer: '💬 前往 [**Ant Design Releases**]({{url}}) 查看更新日志'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/verify-files-modify.yml
Expand Up @@ -14,10 +14,11 @@ jobs:
forbid-paths: '.github/, scripts/'
forbid-files: 'CHANGELOG.zh-CN.md, CHANGELOG.en-US.md, LICENSE'
skip-verify-authority: 'write'
assignees: 'afc163, zombieJ, xrkffgg'
assignees: 'afc163, zombieJ, xrkffgg, MadCcc'
comment: |
Hi @${{ github.event.pull_request.user.login }}. Thanks for your contribution. The path `.github/` or `scripts/` and `CHANGELOG` `package.json` is only maintained by team members. This current PR will be closed and team members will help on this.
close: true
set-failed: false

- name: verify-less
uses: actions-cool/verify-files-modify@v1
Expand Down
19 changes: 19 additions & 0 deletions .stylelintrc.json
Expand Up @@ -8,6 +8,25 @@
"plugins": ["stylelint-declaration-block-no-ignored-properties"],
"rules": {
"function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }],
"function-no-unknown": [
true,
{
"ignoreFunctions": [
"fade",
"tint",
"darken",
"ceil",
"fadein",
"floor",
"unit",
"shade",
"lighten",
"percentage",
"-",
"~`colorPalette"
]
}
],
"no-descending-specificity": null,
"no-invalid-position-at-import-rule": null,
"declaration-empty-line-before": null,
Expand Down

0 comments on commit b0b4352

Please sign in to comment.