Skip to content

Commit

Permalink
Synchronize antd updates to infrad (#20)
Browse files Browse the repository at this point in the history
* feat(Alert): Custom closeIcon (ant-design#32345)

Co-authored-by: chenjingjie <chenjingjie@coding.net>

* docs: react-infinite-scroller => react-infinite-scroll-component (ant-design#32469)

* docs: react-infinite-scroller => react-infinite-scroll-component

close ant-design#32388

* update

* replace recommendataion

* update snapshot

* chore: fix divider stylelint errors (ant-design#32473)

* chore: replace demo image to public avatar resources (ant-design#32479)

* docs: replace avatar image to joeschmoe placeholder

* docs: usage randomme avatar url

* fix: selected text weight depend hx tag (ant-design#32486)

* fix: selected text weight depend hx tag

* fix: selected text weight depend hx tag

* fix: selected text weight depend hx tag

* fix: selected text weight depend hx tag

* fix: selected text weight depend hx tag

Co-authored-by: liuxulian.lxl <liuxulian.lxl@antgroup.com>

* docs: improve alert loop demo (ant-design#32488)

* docs: improve alert loop demo

- react-text-loop => react-text-loop-next
- adding demo of react-fast-marquee

* update snapshot

* docs: correct content for 4.17.0-alpha.6 changelog (ant-design#32491)

* chore: Adjust Collapse header style (ant-design#32492)

* chore: Adjust collapse header style for align

* chore: replace variable

* test: Update snapshot

* chore: Configure Renovate (ant-design#32494)

* Add renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Create renovate.json

* Delete renovate.json

* Delete renovate.json

* Create renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

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

* chore(🛡): update badges

* chore(deps): update cirrus-actions/rebase action to v1.5 (ant-design#32507)

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

* chore(deps): update dependency @typescript-eslint/eslint-plugin to v5 (ant-design#32499)

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

* chore(deps): update buildkite/puppeteer docker tag to v10 (ant-design#32509)

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

* chore(deps): update dependency @typescript-eslint/parser to v5 (ant-design#32500)

* chore(deps): update dependency @typescript-eslint/parser to v5

* fix md lint

* fix eslint errors

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

* chore(deps): update dependency eslint to v8 (ant-design#32501)

* chore(deps): update dependency eslint to v8

* fix eslint errors

* fix eslint errors

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

* feat: input support show count (ant-design#32522)

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

* fix(Message): typescript type error (ant-design#32524)

Co-authored-by: chenjingjie <chenjingjie@coding.net>

* docs: add 4.17.0-alpha.7 changelog (ant-design#32534)

* docs: add 4.17.0-alpha.7 changelog

* Update package.json

* up changelog

* fix(pagination): `simple-pager input` no box-shadow (ant-design#32528)

Co-authored-by: chenjingjie <chenjingjie@coding.net>

* fix: DirectoryTree keyboard error (ant-design#32551)

* Fix bug in keyboard navigation

When selecting a node using the keyboard (spacebar), the event received by onSelect has an undefined MouseEvent. Keyboard navigation was not possible because an error was thrown when trying to access properties from the undefined nativeEvent. We are now testing if nativeEvent is defined before accessing its properties.

* fix: DirectoryTree throws error during keyboard navigation

* chore: table support rowSpan hover (ant-design#32557)

* ci: unite action version (ant-design#32537)

* ci: unite action version

* Update verify-package-version.yml

* Update issue-open-check.yml

* Update preview-start.yml

* Update preview-deploy.yml

* Update pr-open-check.yml

* Update issue-remove-inactive.yml

* chore: upgrade peaceiris/actions-gh-pages to v3

* ci: update version (ant-design#32563)

* Update pr-check-ci.yml

* Update verify-files-modify.yml

* chore(deps): update dependency http-server to v14 (ant-design#32568)

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

* docs: add doc (ant-design#32570)

* feat: add doc

* fix: Transfer menu item key warning (ant-design#32578)

* fix: Transfer menu item key warning

close ant-design#32574

* chore: skip tree demo in UI test

* fix: Typography ellipsis height error (ant-design#32496)

* feat: add `loading` prop for Dropdown.Button (ant-design#32467)

close ant-design#24017

* chore(deps): update dependency stylelint-order to v5 (ant-design#32611)

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

* chore(deps): update dependency stylelint to v14 (ant-design#32609)

* chore(deps): update dependency stylelint to v14

* Update package.json

* fix some stylelint

* fix some stylelint

* fix some stylelint errors

* fix some stylelint errors

* fix some stylelint errors

* fix some stylelint errors

* fix some stylelint errors

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

* docs: use light theme for codesandbox demo

* docs: release 4.17.0-alpha.8 (ant-design#32632)

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

* chore: document and typescript definition update (ant-design#32625)

* refactor: Use getKeyThenIncreaseKey in message notice function (ant-design#32642)

* fix: Avoid selecting the placeholder of input control on Chrome browser, keep consistent of selection behavior with Firefox browser (ant-design#32639)

* feat: add showCancel prop for popconfirm (ant-design#32620)

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

* fix: Collapse style issue when expandIconPosition is right (ant-design#32648)

Co-authored-by: ext.zhangtianyi3 <ext.zhangtianyi3@360buyad.local>

* style: fix Upload picture loading style (ant-design#32664)

* docs: form register demo add textarea item (ant-design#32669)

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

* feat: Modal.xxx support wrapClassName prop (ant-design#32676)

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

* chore(ci): update release workflow (ant-design#32668)

* chore(ci): update release workflow

* chore(ci): update release-helper workflow

Co-authored-by: zwlafk <zwlafk@users.noreply.github.com>

* docs: add Version (ant-design#32678)

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

* docs: fix List demo

close ant-design#32685

* feat: Form.Item no longer need `fieldKey` anymore (ant-design#32689)

* chore:Update Form to remove fieldKey

* fix: fieldKey cache logic

* test: Update snapshot

* chore: clean up

* style: fix Card tabs of left position (ant-design#32695)

close ant-design#32673

* feat: input number support prefix (ant-design#32600)

* docs(:sparkles:): release 4.17.0-alpha.9 (ant-design#32705)

* fix: table loading css error when sticky is true (ant-design#32703)

* Table loading css error when sticky is true

* [CodeFactor] Apply fixes to commit dc1a930

[ci skip] [skip ci]

* fix Table loading css error when sticky is true

* Fix table loading css error when sticky is true bug

* Update index.less

Co-authored-by: Miloud Belaabed <m.belabed@itihad.me>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: afc163 <afc163@gmail.com>

* chore: improve overview card style

* chore: Create bug-report.yml (ant-design#32716)

* Create bug-report.yml

* Update bug-report.yml

* Rename bug-report.yml to 1-bug-report.yml

* Rename 1-bug-report.yml to template-1-bug-report.yml

* chore: add ISSUE_TEMPLATE

* chore: add ISSUE_TEMPLATE

* chore: update ISSUE_TEMPLATE

* chore: update ISSUE_TEMPLATE

* fix: Typography ellipsis with 1 row doesn't wrap (ant-design#32735)

Co-authored-by: ext.zhangtianyi3 <ext.zhangtianyi3@360buyad.local>

* fix: Input disabled should not keep focus style (ant-design#32739)

* fix: tweak Steps vertical progressDot style (ant-design#32742)

close ant-design#32737

* chore: update issue template (ant-design#32749)

* Update template-1-bug-report.yml

* Update template-2-feature-request.yml

* Update template-2-feature-request.yml

* Update template-1-bug-report.yml

* Update template-1-bug-report.yml

* Update template-2-feature-request.yml

* chore(💄): fix issue template

* chore: update form demo

* refactor: Move part mixins less to theme instead (ant-design#32763)

* refactor: Move theme related variables

* chore: move rest motion

* chore: trigger CI

* chore: steps by steps

* chore: back order

* docs: Update docs

* chore(deps-dev): bump @types/gtag.js from 0.0.7 to 0.0.8 (ant-design#32746)

Bumps [@types/gtag.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gtag.js) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gtag.js)

---
updated-dependencies:
- dependency-name: "@types/gtag.js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

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

* fix: Spin tip can be react node (ant-design#32733)

Though this may be opposed to the design. It may be useful to people who want to have complicated tip content.

* fix: opening animation of the bottom drawer (ant-design#32761)

Co-authored-by: Korra <1178115756@qq.com>

close ant-design#32621

* chore(deps-dev): bump eslint-plugin-unicorn from 37.0.1 to 38.0.0 (ant-design#32765)

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 37.0.1 to 38.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v37.0.1...v38.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

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

* docs: add 4.17.0-alpha.10 changelog (ant-design#32775)

* fix: codepen  demo error using hooks (ant-design#32766)

* docs: Fix the link in Table's API doc (ant-design#32779)

- Fix FilterDropdownProps link in table/index.en-US.md
- Fix FilterDropdownProps link in table/index.zh-CN.md

* fix: Form horizontal broken style when select item is too long (ant-design#32778)

close ant-design#32777

* docs: fix Spin API ts description (ant-design#32786)

Co-authored-by: DanielLeefu <you@2228429150@qq.com>

* chore(Tag): update tween-one (ant-design#32800)

close ant-design#32731

* fix: tag animation demo (ant-design#32804)

* fix: if breadcrumbRender return false, breadcrumb will hidden (ant-design#32738)

* fix: if breadcrumbRender return false, breadcrumb will hidden

* add testd

* chore: extends limit (ant-design#32814)

* feat: ConfigProvider add form colon (ant-design#32818)

* feat: ConfigProvider add form colon

* add: test for ant-design#32799

* fix: Modify FormItemLabel get ConfigColon from From

* refactor: Simplify the code

* style: fix Tree icon align bug (ant-design#32822)

* docs: update customize-theme-variable.zh-CN.md

* chore: Upgrade react router v6 (ant-design#32821)

* chore: upgrade react-router to v6

close ant-design#32809
close ant-design#32774

* fix test

* fix test

* fix test

* fix test

* docs: Version Robin (ant-design#32830)

* docs: add demo for Input.Group (ant-design#32837)

https://weibo.com/2259174311/L0gtIjb3Z

* fix: borderLeftRadius error for Input.Search ant-design#32808 (ant-design#32812)

close ant-design#32808

* chore(.gitignore):add ignore for pnpm (ant-design#32860)

* chore(deps-dev): bump stylelint-config-standard from 23.0.0 to 24.0.0 (ant-design#32866)

Bumps [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard) from 23.0.0 to 24.0.0.
- [Release notes](https://github.com/stylelint/stylelint-config-standard/releases)
- [Changelog](https://github.com/stylelint/stylelint-config-standard/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint-config-standard@23.0.0...24.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-standard
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

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

* docs: 4.17.0 changelog (ant-design#32859)

* docs: 4.17.0 changelog

* test: Update snapshot

* docs: Update desc

* docs: merge changelog

* style: use @height-base in PageHeader (ant-design#32883)

close ant-design#32871

* chore: fix site in IE11 (ant-design#32868)

* chore: fix site in IE11

* chore: fix site in IE11

* chore: fix site in IE11

* chore: fix site in IE11

* fix: Move variable related code to theme file (ant-design#32887)

* chore: 4.17.1-alpha.0

* test: Patch test case of mixins (ant-design#32889)

* docs: Update Cascader changeOnSelect desc
close ant-design#32886

* feat: Expand pl_PL translations to latest translation spec (ant-design#32896)

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

* style: fix placholder color missing (ant-design#32915)

* chore(deps-dev): bump eslint-plugin-compat from 3.13.0 to 4.0.0 (ant-design#32917)

Bumps [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat) from 3.13.0 to 4.0.0.
- [Release notes](https://github.com/amilajack/eslint-plugin-compat/releases)
- [Changelog](https://github.com/amilajack/eslint-plugin-compat/blob/main/CHANGELOG.md)
- [Commits](amilajack/eslint-plugin-compat@v3.13.0...v4.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-compat
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

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

* fix: Tabs editable missing remove icon style in dropdown (ant-design#32919)

* refatcor: Move mixins back (ant-design#32920)

* chore: bump 4.17.1-alpha.1

* fix: `Submit` typo (ant-design#32933)

close ant-design#32928

* fix: inherit `itemRender` typing from `rc-pagination` (ant-design#32931)

fix ant-design#32878

* chore: fix types declaration (ant-design#32935)

* chore: remove unused css code

* fix: Modal.method bodyStyle not working (ant-design#32934)

* fix: Modal.method bodyStyle失效

* test: Modal.method bodyStyle失效

* Apply suggestions from code review

Co-authored-by: 晋文涛 <jinwentao@zhaojiafang.com>
Co-authored-by: afc163 <afc163@gmail.com>

* chore(deps-dev): bump typescript from 4.4.4 to 4.5.2 (ant-design#32940)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.4 to 4.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.4.4...v4.5.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>

* docs: Update customize-theme-variable document (ant-design#32930)

* Update customize-theme-variable.zh-CN.md

* Update customize-theme-variable.en-US.md

* Update customize-theme-variable.zh-CN.md

* Update customize-theme-variable.en-US.md

* refactor: Remove unnecessary div containers (ant-design#31492)

* feat: Add km_KH locale to component (ant-design#32853)

* Add km_KH locale to component

* Add test and docs

* Fix typo

* Add test snapshot

* style: fix menu link color in collapsed tooltip (ant-design#32956)

close ant-design#32950

* docs: 4.17.1 changelog (ant-design#32968)

* docs: 4.17.1 changelog

* chore: bump version to 4.7.1

* docs: use flag for intl changelog

* docs: remove useless changelog

* docs: remove useless changelog

* fix: remove space (ant-design#32974)

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

* chore(deps-dev): bump eslint-plugin-unicorn from 38.0.1 to 39.0.0 (ant-design#32975)

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 38.0.1 to 39.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v38.0.1...v39.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

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

* fix: Form layout span 24 usage (ant-design#32981)

close ant-design#32980

* docs: site build script update (ant-design#32984)

* chore: rm color-less

* refactor: MV theme to variable

* docs: fix header

* chore: clean up

* chore: enable esbuild

* refactor: Tree support generic (ant-design#32992)

* chore: bump rc-tree

* test: add test case

* test: Add ts check

* fix: Input.Search enterButton don't trigger click event (ant-design#32999)

close ant-design#32993

* test: Update snapshot

* fix: Cascader typescript (ant-design#33008)

* chore: Cascsader add missing suffixIcon

* chore: export CascaderRef

* chore: Casacer type

* fix: Updated translations in et_EE.tsx (ant-design#33005)

* Updated translations in et_EE.tsx

Added missing Estonian translations.

* Updated et_EE.tsx

Defined typeTemplate

* chore: fix eslint

* docs: fix Drawer closable description (ant-design#33018)

关闭按钮移至左上角了

* fix: Modal centered not centered (ant-design#33022)

close ant-design#33021

* chore: use https://new-issue.ant.design back (ant-design#33029)

* Rename template-1-bug-report.yml to template-1-bug-report.yml.close

* Update config.yml

* Rename template-2-feature-request.yml to template-2-feature-request.yml.close

* docs: fix Drawer onClose description (ant-design#33031)

Drawer 抽屉现在关闭按钮都在左上角了,描述不对

* fix: en-US#docs-fix Drawer closable description  (ant-design#33035)

* Update index.en-US.md

* Update index.en-US.md

* Update index.en-US.md

* chore: upgrade @ant-design/bisheng-plugin

* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 (ant-design#32824)

* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0

Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](airbnb/javascript@eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-airbnb
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* chore: code style

* memoize-one

* add comment

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* improve useMemo deps

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

* chore: opt of theme gen

* chore: speed up site build mode

* test: Update snapshot

* chore: fix lint

* docs(✨): release 4.17.2  (ant-design#33051)

* docs(:sparkles:): release 4.17.2

* docs(:sparkles:): release 4.17.2

* feat: Support Table.EXPAND_COLUMN & Table.SELECTION_COLUMN (ant-design#33026)

* feat: Table support Table.EXPAND_COLUMN & Table.SELECTION_COLUMN

* docs: Update docs

* feat: support Form labelWrap (ant-design#33048)

* feat: form label can be wrap

* fix api doc

* fix ts

* fix: TextArea height bug (ant-design#33055)

* fix: TextArea height bug when has `showCount`

close ant-design#33049

* fix snapshot

* revert form demo

* ci: fix site deploy

* fix: Back of relative (ant-design#33070)

* docs: Cascader displayRender data (ant-design#33087)

* docs: Cascader displayRender data

* ts: clean up

* test: Update rc-resize-observer version

* test: fix resize related test case

* chore: fix ts error

* test: Fix resize logic

* docs: update demo

* docs: clarify select option title doc

close ant-design#33105

* fix(locale): Add missing zh-TW translation for Form.optional, fix ant-design#30361 (ant-design#33108)

Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>

* fix: carousel type declaration (ant-design#33109)

fix: CarouselRef["autoPlay"] is a method instead of a boolean value

* chore: refactor some code (ant-design#33034)

* Refactor some code

* Apply suggestions from code review

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

* [CodeFactor] Apply fixes

[ci skip] [skip ci]

* rename abbr to sizeClassNameMap

* refactor: Button size class name

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

* refactor: Move Table `rowSpan` & `colSpan` demo to `onCell` instead (ant-design#33114)

* docs: change doc of span demo

* docs: clear render props

* fix: Radio dot offset when zooming (ant-design#33086)

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

* chore: bump version (ant-design#33124)

* fix: Select width bug when searching (ant-design#32988)

* fix: select placeholder should take place when searching

close ant-design#27688

* fix snapshot

* test: add test helper for accessibility

As proposed in ant-design#22343, the components can be automatically validated
for accessibility. This adds a test helper that runs Axe to check
for accessibility violations.

* chore(deps-dev): bump react-helmet-async from 1.1.2 to 1.2.0 (ant-design#33133)

Bumps [react-helmet-async](https://github.com/staylor/react-helmet-async) from 1.1.2 to 1.2.0.
- [Release notes](https://github.com/staylor/react-helmet-async/releases)
- [Commits](https://github.com/staylor/react-helmet-async/commits)

---
updated-dependencies:
- dependency-name: react-helmet-async
  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>

* chore: fix ci in npm 8

* chore: remove react-virtualized from demo

* refactor: replace let with const (ant-design#33134)

* refactor: replace let with const

* refactor: replace let with const

* refactor: replace let with const

* refactor: replace let with const new

* Update components/affix/index.tsx

* Apply suggestions from code review

* Apply suggestions from code review

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

* chore(deps-dev): bump jsdom from 18.1.1 to 19.0.0 (ant-design#33156)

Bumps [jsdom](https://github.com/jsdom/jsdom) from 18.1.1 to 19.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](jsdom/jsdom@18.1.1...19.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

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

* test: fix ci warnings (ant-design#33160)

* fix: anchor add prefixCls (ant-design#33085)

Co-authored-by: undefined <undefined>

* docs: update badge

* ci: fix checkout version (ant-design#33164)

* ci: fix checkout version

* chore: add more

* test: fix test error

* Revert "test: fix test error"

This reverts commit 3881e5d.

* fix: fix badge animation end not trigger when parent is display:none (ant-design#33083)

Co-authored-by: songlin.chen <songlin.chen@leyantech.com>

* test: fix Alert test (ant-design#33167)

* text: fix Alert test

* test: style

* test: up snap

* test: up

* docs: Update index.zh-CN.md (ant-design#33184)

修复文档中 FormInstance 的 scrollToField方法 第二个参数 options 错误的类型

* fix: Upload `data` type (ant-design#33193)

* fix: Upload `data` type

* fix eslint errors

* fix: radio cursor style (ant-design#33198)

* fix: radio cursor style

* [CodeFactor] Apply fixes to commit 38721bb

[ci skip] [skip ci]

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

* fix: Drawer title position (ant-design#33205)

* fix(locale): Add missing zh-TW translation for Transfer (ant-design#33209)

Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>

* fix: Button loading style missing in Firefox (ant-design#33199)

* docs(:sparkles:): release 4.17.3 (ant-design#33213)

* ci: fix footer click (ant-design#33214)

* New Pull Request for README-sp_MX.md (ant-design#33226)

* Create README-sp_MX.md

Translation of README to Spanish.

* Update README.md

* Update README-zh_CN.md

* Update README-uk_UA.md

* Update README-pt_BR.md

* fix: Form.Item的name属性改为parentNode,dom-align 死循环,内存溢出的bug (ant-design#31846)

* Form.Item的name属性改为parentNode,dom-align 死循环,内存溢出的bug

* Form.Item的name属性改为parentNode,dom-align 死循环,内存溢出的bug

* fixed lint issues.

* change: add black list for form item name

* keep the definition the same as before

* update snapshot

* change formItemNameBlackList type to array

* add test case for form item is in black list

* add test condition

* prettier it

* change: add black list for form item name

* keep the definition the same as before

* merege from upstream

* rebase this branch

* change formItemNameBlackList type to array

* add test case for form item is in black list

* add test condition

* prettier it

* fix test case that casing by rebase

* docs: update customize-theme-variable.md (ant-design#33272)

* fix: Revert "fix: TextArea missing maxLength attr." (ant-design#33312)

* Revert "fix: TextArea missing maxLength attribute (ant-design#32448)"

This reverts commit ee703c1.

* fix: snapshot

* test: fix initial test case (ant-design#33313)

* test: fix initial test case

* chore: replace with exist fn

* chore: rm dep conflict

* chore: fix dev jest env

* test: Update snapshot

* docs(faq): correct 'Ant Design Mobile' (ant-design#33341)

* chore(deps): update dependency antd-img-crop to v4 (ant-design#33352)

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

* docs: add 4.17.4 changelog (ant-design#33354)

* docs: add 4.17.4 changelog

* update changelog

* chore: remove whitespace

* fix(slider):  disabled rail background-color error (ant-design#33369)

Co-authored-by: chenjingjie <chenjingjie@coding.net>

* docs: improve changelog

* Add Capture prop to Upload Component Typescript Definition (ant-design#33370)

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

* chore: add sorting translations for fi_FI (ant-design#33372)

* chore: Bump Select related deps (ant-design#33364)

* chore: bump select related version

* test: Fix test case

* chore: bump rc-select version

* test: Update snapshot

* chore: Update Select ts

* test: Update snapshot

* test: Update snapshot

* test: Update snapshot

* chore: Update ts definition

* chore: fix internal ts def

* test: update auto complete snapshot

* chore: update snapshot

* chore: bump version

* chore: fix demo ts

* chore: Move ValueType to the first place

* test: Update test case

* 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)

* 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.

* test: 更新测试用例快照

* fix: 同步feedback的样式改动

* doc: 补充changelog

Co-authored-by: chen-jingjie <2383844893@qq.com>
Co-authored-by: chenjingjie <chenjingjie@coding.net>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: liuxulian <35675025+liuxulian@users.noreply.github.com>
Co-authored-by: liuxulian.lxl <liuxulian.lxl@antgroup.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
Co-authored-by: 二货机器人 <smith3816@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: WeijieChen <cwjTerrace@163.com>
Co-authored-by: machixian <machixian@myweimai.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: D-to-the-K <D-to-the-K@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 叶枫 <7971419+crazyair@users.noreply.github.com>
Co-authored-by: hydraZty <670688667@qq.com>
Co-authored-by: Kayson Wu <772663139@qq.com>
Co-authored-by: vagusX <vagusX@users.noreply.github.com>
Co-authored-by: Steven.zhong <953665604@qq.com>
Co-authored-by: Jtree03 <wowns0903@gmail.com>
Co-authored-by: Chang Wei <867597730@qq.com>
Co-authored-by: ext.zhangtianyi3 <ext.zhangtianyi3@360buyad.local>
Co-authored-by: zwlafk <24400915+zwlafk@users.noreply.github.com>
Co-authored-by: zwlafk <zwlafk@users.noreply.github.com>
Co-authored-by: Austaras <austaras@outlook.com>
Co-authored-by: Miloud Belaabed <60562443+miloudbelaabed@users.noreply.github.com>
Co-authored-by: Miloud Belaabed <m.belabed@itihad.me>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiajun Chen <tychenjiajun@live.cn>
Co-authored-by: solitia7125 <39177579+solitia7125@users.noreply.github.com>
Co-authored-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: X-Jagger <xl.jagger@gmail.com>
Co-authored-by: Pob Ch <590650@gmail.com>
Co-authored-by: 九思⚡⚡⚡ <2228429150@qq.com>
Co-authored-by: DanielLeefu <you@2228429150@qq.com>
Co-authored-by: jiang <liangjun.jiang@alipay.com>
Co-authored-by: seaSuper <90687224+seaSuper@users.noreply.github.com>
Co-authored-by: Karott Schu <karott7@gmail.com>
Co-authored-by: Sepush <sepush@outlook.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: JounQin <admin@1stg.me>
Co-authored-by: huangkairan <56213366+huangkairan@users.noreply.github.com>
Co-authored-by: benben <jinwentao0914@dingtalk.com>
Co-authored-by: 晋文涛 <jinwentao@zhaojiafang.com>
Co-authored-by: Sunny Luo <sunnylqm@gmail.com>
Co-authored-by: ppbl <33046279+ppbl@users.noreply.github.com>
Co-authored-by: VIREAK KEOSOKVIBOL <46261326+vireakkeosokvibol@users.noreply.github.com>
Co-authored-by: wedeso <35111662+wedeso@users.noreply.github.com>
Co-authored-by: GannonSun <GannonSun@gmail.com>
Co-authored-by: shuchang <44997670+dreampasss@users.noreply.github.com>
Co-authored-by: Gabriel Mendez Reyes <gabriel.mendez0@hotmail.com>
Co-authored-by: 诸岳 <fuping.dfp@antfin.com>
Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>
Co-authored-by: Qiuxu <76635711+q1uxu@users.noreply.github.com>
Co-authored-by: Frank Fang <FrankFang1990@gmail.com>
Co-authored-by: hydraZty <hydra_zty@163.com>
Co-authored-by: Stef Schenkelaars <stef.schenkelaars@gmail.com>
Co-authored-by: Tom And Jerry <45513363+sunkuangdong@users.noreply.github.com>
Co-authored-by: tangjinzhou <415800467@qq.com>
Co-authored-by: songlinn <17741492+songlinn@users.noreply.github.com>
Co-authored-by: songlin.chen <songlin.chen@leyantech.com>
Co-authored-by: zhichenshaw <37165714+zhichenshaw@users.noreply.github.com>
Co-authored-by: mursulis <49298354+mursulis@users.noreply.github.com>
Co-authored-by: James <daoxingyue@live.cn>
Co-authored-by: 谭真 <736420282@qq.com>
Co-authored-by: Curly Brackets <76864176+curly210102@users.noreply.github.com>
Co-authored-by: Sami Mäkinen <zakarfin@gmail.com>
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: Nmaxwiver <9283555+hxmwr@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: 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>
  • Loading branch information
Show file tree
Hide file tree
Showing 852 changed files with 313,663 additions and 22,241 deletions.
67 changes: 65 additions & 2 deletions .antd-tools.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ function finalizeCompile() {
fs.readdir(componentsPath, (err, files) => {
files.forEach(file => {
if (fs.existsSync(path.join(componentsPath, file, 'style', 'index.less'))) {
componentsLessContent += `@import "../${path.posix.join(file, 'style', 'index.less')}";\n`;
componentsLessContent += `@import "../${path.posix.join(
file,
'style',
'index-pure.less',
)}";\n`;
}
});
fs.writeFileSync(
Expand Down Expand Up @@ -74,7 +78,7 @@ function finalizeDist() {
// Build less entry file: dist/antd.less
fs.writeFileSync(
path.join(process.cwd(), 'dist', 'antd.less'),
'@import "../lib/style/index.less";\n@import "../lib/style/components.less";',
'@import "../lib/style/default.less";\n@import "../lib/style/components.less";',
);
// eslint-disable-next-line no-console
fs.writeFileSync(
Expand All @@ -86,6 +90,7 @@ function finalizeDist() {
buildThemeFile('default', defaultVars);
buildThemeFile('dark', darkVars);
buildThemeFile('compact', compactVars);
buildThemeFile('variable', {});
fs.writeFileSync(
path.join(process.cwd(), 'dist', `theme.js`),
`
Expand Down Expand Up @@ -121,12 +126,70 @@ module.exports = {
}
}

function isComponentStyleEntry(file) {
return file.path.match(/style(\/|\\)index\.tsx/);
}

function needTransformStyle(content) {
return content.includes('../../style/index.less') || content.includes('./index.less');
}

module.exports = {
compile: {
includeLessFile: [/(\/|\\)components(\/|\\)style(\/|\\)default.less$/],
transformTSFile(file) {
if (isComponentStyleEntry(file)) {
let content = file.contents.toString();

if (needTransformStyle(content)) {
const cloneFile = file.clone();

// Origin
content = content.replace('../../style/index.less', '../../style/default.less');
cloneFile.contents = Buffer.from(content);

return cloneFile;
}
}
},
transformFile(file) {
if (isComponentStyleEntry(file)) {
const indexLessFilePath = file.path.replace('index.tsx', 'index.less');

if (fs.existsSync(indexLessFilePath)) {
// We put origin `index.less` file to `index-pure.less`
const pureFile = file.clone();
pureFile.contents = Buffer.from(fs.readFileSync(indexLessFilePath, 'utf8'));
pureFile.path = pureFile.path.replace('index.tsx', 'index-pure.less');

// Rewrite `index.less` file with `root-entry-name`
const indexLessFile = file.clone();
indexLessFile.contents = Buffer.from(
[
// Inject variable
'@root-entry-name: default;',
// Point to origin file
"@import './index-pure.less';",
].join('\n\n'),
);
indexLessFile.path = indexLessFile.path.replace('index.tsx', 'index.less');

return [indexLessFile, pureFile];
}
}

return [];
},
lessConfig: {
modifyVars: {
'root-entry-name': 'default',
},
},
finalize: finalizeCompile,
},
dist: {
finalize: finalizeDist,
},
generateThemeFileContent,
bail: true,
};
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,16 @@ module.exports = {
'no-script-url': 0,
'prefer-rest-params': 0,
'compat/compat': 0,
'class-methods-use-this': 0,
'react/no-access-state-in-setstate': 0,
'react/destructuring-assignment': 0,
'react/no-multi-comp': 0,
'react/no-array-index-key': 0,
'jsx-a11y/href-no-hash': 0,
'jsx-a11y/control-has-associated-label': 0,
'import/no-extraneous-dependencies': 0,
'react/jsx-no-constructed-context-values': 0,
'react/no-unstable-nested-components': 0,
},
},
],
Expand All @@ -99,11 +102,13 @@ module.exports = {
'react/sort-comp': 0,
'react/display-name': 0,
'react/static-property-placement': 0,
'react/jsx-no-bind': 0, // Should not check test file
'react/no-find-dom-node': 0,
'react/no-unused-prop-types': 0,
'react/default-props-match-prop-types': 0,
'react-hooks/rules-of-hooks': 2, // Checks rules of Hooks

'react/function-component-definition': 0,
'react/no-unused-class-component-methods': 0,
'import/extensions': 0,
'import/no-cycle': 0,
'import/no-extraneous-dependencies': [
Expand Down
5 changes: 4 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Create new issue
- 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 -->
11 changes: 6 additions & 5 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 📦 Compressed Size

on: [pull_request]
on:
pull_request:
types: [opened, synchronize]

jobs:
build:

compressed-size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
Expand All @@ -15,5 +16,5 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/**/*.min.{js,css}"
build-script: "dist:esbuild"
clean-script: "clean-lockfiles"
build-script: "dist:esbuild-no-dup-check"
clean-script: "clean-lockfiles"
4 changes: 2 additions & 2 deletions .github/workflows/issue-check-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
- cron: "0 0 */15 * *"

jobs:
check-inactive:
issue-check-inactive:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v2
with:
actions: 'check-inactive'
inactive-label: 'Inactive'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:
- cron: "0 0 * * *"

jobs:
close-issues:
issue-close-require:
runs-on: ubuntu-latest
steps:
- name: need reproduce
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v2
with:
actions: 'close-issues'
labels: '🤔 Need Reproduce'
inactive-day: 3

- name: needs more info
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v2
with:
actions: 'close-issues'
labels: 'needs-more-info'
Expand Down
Loading

0 comments on commit 7c1928c

Please sign in to comment.