Commit Graph

14014 Commits

Author SHA1 Message Date
dingkang
40e3d7a053
docs: Convert part demo to ts version (#35641)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks

* docs(pagination): replace class component with hooks

* docs(popconfirm): replace class component with hooks

* docs(popover): replace class component with hooks

* docs(progress): replace class component with hooks

* docs(rate): replace class component with hooks

* docs(radio): replace class component with hooks

* docs: jsx to TS demo
2022-05-19 20:02:56 +08:00
黑雨
370960ed6d
feat: add-testing-lib (#35626) 2022-05-19 16:27:24 +08:00
yykoypj
10964f158c
fix: incorrect position of picker popup (#35620)
Co-authored-by: yangpj17 <yangpj17@chianunicom.com>

close #35590
2022-05-19 11:15:07 +08:00
vagusX
dd0b9d91ed
test: move test cases to @testing/library for Result (#35621) 2022-05-19 10:18:17 +08:00
Bart Piotrowski
4bccb9985a
fix: Remove Grid row and cell aria roles (#35616)
close https://github.com/ant-design/ant-design/issues/35549
2022-05-19 10:05:40 +08:00
章鱼
7fd093bd0a
docs: feat components TS demo (#34742)
* docs: add general components TS demo

* docs: add layout components TS demo

* docs: add navigation components TS demo

* docs: add data entry components TS demo

* chore(deps): add types for qs

* docs: add data display TS demo

* docs: add feedback components TS demo

* docs: add other components TS demo

* chore(deps): add types

* docs: unified demo code style

* docs: fix lint error

* docs: add demo TS type

* docs: fix demo TS type

* test: update snapshot

* docs: fix TS demo

* feat: update Rate character type

* docs: fix lint error

* feat: update Rate character type

* feat: update Rate character type
2022-05-19 09:46:26 +08:00
dingkang
e5b09aa879
docs: replace class component with hooks (#35613)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks
2022-05-18 19:29:01 +08:00
joson
c52f19ac46
style: anchor text is overwritten (#35612)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-05-18 18:21:22 +08:00
zombiej
5e910e74c1 docs: Fix DatePicker throw demo 2022-05-18 17:25:40 +08:00
afc163
f9f3a0e604
style: fix Table header border when has rowSpan (#35591)
close #35577
2022-05-17 18:19:17 +08:00
dingkang
196a4351e3
docs: replace class component with hooks (#35580)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue
2022-05-17 10:19:38 +08:00
joson
bcc3274260
chore: delete extra spaces (#35582)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-05-16 21:10:20 +08:00
叶枫
644e4bfc6a
fix: drawer close speed (#35339)
* fix: drawer close speed

* chroe: snap

* chroe: test

* chroe: test

* feat: remove file

* feat: 重新整理

* feat: forceRender

* feat: snap

* chroe: test

* chroe: test

* chroe: test

* feat: create event

* feat: diff code

* feat: forceRender

* chore: test (#35364)

* Update components/drawer/index.tsx

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

* feat: remove load state

* feat: test

* fix: destroyOnClose

* feat: add load

* fix: update snap

* fix: update snap

* feat: reset test

* feat: docs

* feat: test

* feat: test

Co-authored-by: afc163 <afc163@gmail.com>
2022-05-16 10:14:26 +08:00
afc163
46df154ce4
chore: deprecated rowSelection.onSelectNone and onSelectMultiple (#35545) 2022-05-14 16:41:34 +08:00
dingkang
58df74c38e
docs: replace class component with hooks (#35519)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error
2022-05-14 16:40:42 +08:00
vagusX
e629b39c20
test: moving to testing-library in Segmented (#35538)
* test(Segmented): moving to testing-library

* chore: cleanup

* fix: test

* test: use click instead of change to fire event

* Update index.test.tsx
2022-05-13 22:00:01 +08:00
二货机器人
d7cdd88e3a
test: Update snapshot (#35529) 2022-05-13 10:57:10 +08:00
zombiej
e8d9c42565 test: Update snapshot 2022-05-13 10:14:09 +08:00
ty888
debd7f3496
fix(statistic): ignore the decimal part when the precision is negative (#35520) 2022-05-13 00:47:20 +08:00
dingkang
be2b0d8a6e
docs: replace class component with hooks (#35500)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks
2022-05-11 19:43:54 +08:00
limingxin
765bc1effc
docs: Table QA about rowSelection renderCell (#35494)
* Update index.zh-CN.md

之前需要在 可选列的勾选框 中增加 Tooltip,没有在文档中找到相关的文档,通过搜索 issue,以为暂时不支持,看了源码才发现已经支持了。

所以想要完善一下文档,可以方便其他用户找到此内容。

* docs: Table QA about rowSelection renderCell

update US doc
2022-05-11 17:58:26 +08:00
miracles1919
19f55145c8
fix: tree checkbox margin in rtl mode (#35491) 2022-05-11 16:57:21 +08:00
afc163
089dc7e36a docs: remove editable in table documentation
close
https://github.com/ant-design/ant-design/pull/35471#issuecomment-1123239879
2022-05-11 14:35:43 +08:00
Tony Wu
68a2f8b2ac
docs: indicate that menu items require keys (#35474) 2022-05-11 14:29:26 +08:00
dingkang
5cf579c37a
docs: replace class component with hooks (#35472)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks
2022-05-10 20:49:42 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size (#35411)
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
lalalazero
17cd13fe53
refactor: remove cascader displayRender warning (#35417)
* refactor: remove useless warning (#35291)

* refactor: remove useless test case

* docs: remove cascader tagRender
2022-05-10 13:57:38 +08:00
dingkang
f5831f121d
docs: replace class component with hooks (#35461)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies
2022-05-10 13:00:31 +08:00
Ron Šmeral
1d3fd70dbf
fix: bad List.Item type (#35454) (#35455)
Co-authored-by: Ron Smeral <ron.smeral@merck.com>
2022-05-10 10:01:11 +08:00
MadCcc
01ebb6a563
test: update snapshot (#35452) 2022-05-09 20:25:55 +08:00
Yanming Deng
36ded1a741
docs: fix typo (#35439)
* chore: fixed typo

* chore: fixed typo+1
2022-05-09 18:09:02 +08:00
Mykyta Velykanov
fcf2afd3fa
fix: add missing localizations (#35430)
* Add missing localizations

* Update snapshot
2022-05-08 22:35:46 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
00fb82276f
Merge pull request #35396 from zpc7/test/transfer-tooltip-to-testing-library
Replace Tooltip test case with testing library
2022-05-07 14:04:15 +08:00
Tom Xu
d1f85d94e5
fix: List.Item typescript (#35418) 2022-05-07 14:03:41 +08:00
Tom Xu
5d2475a2a1
fix: List.Item ref (#35321)
* fix: list item ref

* add test

* improve
2022-05-07 13:34:40 +08:00
zpc7
bd31a6a46a Revert "test: replace some slepp with jest.runAllTimers"
This reverts commit ad886d1f65.
2022-05-07 13:05:11 +08:00
zpc7
ad886d1f65 test: replace some slepp with jest.runAllTimers 2022-05-07 12:09:25 +08:00
MadCcc
7873bf7f1c
fix: arrow style (#35401)
* fix: arrow style

* fix: raise arrow z-index

* fix: fix defualt arrow color

* fix: mix shadow

* chore: code clean

* chore: code clean

* fix: use fadeout instead

* test: fix style lint
2022-05-07 12:04:46 +08:00
parabolazz
9b56ad86fb
docs: explain Avatar fallback strategy (#35415)
The original description was unclear, incomplete, and confusing, requiring a look at the code to understand it, so I revised it to a more understandable version.
2022-05-07 11:56:03 +08:00
Karott Schu
d07dcd46b7
fix(<Row/>): wipe out unnecessary prop (#35409)
* fix: wipe out unnecessary prop

* wipe out unnecessary prop(`row-gap: 0px`) on <Row />

* add test case

* chore: remove unnecessary import

* chore: add  prop to Row and Col

* chore: update snapshot (Form/Grid/Card)

* chore: update snapshot

* chore: move  location
2022-05-07 11:44:48 +08:00
zpc7
22b89eea5a test: foreach all placement 2022-05-07 10:43:59 +08:00
zpc7
55f9e29360 test: remove some test case 2022-05-07 09:35:12 +08:00
zpc7
8ade7ab323 test: try to fix the pr check 2022-05-07 09:35:12 +08:00
zpc7
d9ce1ad14c ci: trigger the pr check 2022-05-07 09:35:12 +08:00
zpc7
8545647313 test: transfer tooltip test case to testing library 2022-05-07 09:35:12 +08:00
zombiej
c75e59faf1 chore: rm useless console 2022-05-06 18:52:01 +08:00
二货机器人
7511b9e8ac
test: replace textarea some test case with testing lib (#35398)
* test: replace textarea some test case with testing lib

* test: full process

* test: mv input test to input scope

* test: fix lint
2022-05-06 11:48:18 +08:00
vagusX
ce1fc29bd7
fix: use less variables for Segmented (#35387) 2022-05-05 14:09:27 +08:00
Cooper Veysey
d8ab5a5771
Resolve Ant Design Notification component TypeScript error via adding maxCount as an ArgsProps property (#35369) 2022-05-05 14:06:57 +08:00