kiner-tang(文辉)
378b54281b
refactor(Modal): refactor closeIcon ( #43017 )
* refactor: refactor closeIcon
* docs: update docs
* refactor(Drawer): refactor drawer closeIcon (#42993 )
* feat: optimize closeIcon
* refactor: refactor closeIcon
* docs: update docs
* feat: optimize code
* feat: update test case
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* docs: update docs
* ✨ feat: migrate less to token for Slider (#42428 )
* ✨ feat: migrate less to token for Slider
* ✨ feat: update snap
* ✨ feat: update style
* ✨ feat: update style
* ✨ feat: test ci
* ✨ feat: test ci
* ✨ feat: test ci
* ✨ feat: test ci
* ✨ feat: update
* ✨ feat: update snap
* ✨ feat: update
* ✨ feat: update
* ✨ feat: 删除未使用token
* ✨ feat: update doc
* ✨ feat: update dome
* ✨ feat: update
* ✨ feat: test ci
* 📝 doc: update doc
* ✨ feat: update
* ✨ feat: update
* ✨ feat: update
* ✨ feat: update
* ✨ feat: add demo
* ✨ feat: add demo
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* ✨ feat: update for reviewer
* Apply suggestions from code review
---------
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* docs: update docs
---------
Co-authored-by: 黑雨 <wangning4567@163.com>
Co-authored-by: MadCcc <1075746765@qq.com>
1 year ago
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest ( #42506 )" ( #42900 )
This reverts commit 6759887c44
.
1 year ago
Dunqing
6759887c44
chore: migrate to vitest ( #42506 )
* chore: migrate to vitest
* chore: update ci
* fix: test correctly
* test: support puppeteer
* chore: update coverage
* chore: update include/exclude
* chore: update config
* test: update incorrect tests
* chore: update script
* chore: update
* fix: should close browser at the ended
* chore: improve
* fix: test cause tsc error
* fix: eslint error
* chore: exclude correctly
* test: update snap and fix some tests
* chore: update test config
* fix: countup.js
* fix: incorrect test
* chore: update reference
* test: update
* fix: countup.js
* fix: timeout
* chore: update site test
* fix: fixed countup version
* chore: remove unsed code
* test: update
* test: update demo timeout
* test: update timeout
* chore: update image test
* chore: update threads
* fix: image/svg+xml test failed
* chore: limits threads
* test: update test coverage include
* chore: remove jest files
* chore: rename jest to vi
* chore: update document
* chore: fix missing @types/jsdom
* chore: update coverage
* chore: update snap
* fix:watermark test cases are incorrect
* feat: update ignore comment
* test: fix test case
* test: reset body scrollTop
* test: clean up
* test: use vi
* test: update snapshot
* test: update snapshot
* test: fix dropdown test failed
* fix: toHaveStyle cause test fail
* test: improve test case
* test: fix
* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560
* test: fix
* test: fix
* test: fix circular import
* test: revert
* ci: coverage failed
* test: fix c8 ignore comment
* chore: incorrect config
* chore: fix ignore ci
* test: revert svg+xml
* test: fix realTimers
* feat: rc-trigger should be remove
* test: fix some failed test
* chore: remove unused deps and configure eslint-plugin-vitest
* test: update snap
* chore: remove jest
* test: fix lint error
---------
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
1 year ago
yiwwhl
46acb65806
type: update any with void ( #42690 )
2 years ago
afc163
6e52b6f0f9
refactor: use rc-util/lib/pickAttrs and upgrade rc-rate and rc-pagination ( #42688 )
* refactor: use rc-util/lib/pickAttrs
* chore: upgrade rc-pagination
* chore: upgrade rc-rate
* type: fix ref type
* test: update pagination snapshot
* Update package.json
2 years ago
二货爱吃白萝卜
49549ae210
fix: Use visible first ( #42394 )
2 years ago
lijianan
9d1854763d
refactor: add useSize replace React.useContext ( #42282 )
* refactor: add useSize
* fix
* fix
* fix
* fix
* fix
2 years ago
lijianan
e03639691c
feat: add useSize hook ( #42252 )
2 years ago
lijianan
ac5a06027e
revert: "chore: unified import method ( #42149 )" ( #42180 )
This reverts commit ea8ed28209
.
2 years ago
lijianan
ea8ed28209
chore: unified import method ( #42149 )
* chore: unified import method
* fix lint
2 years ago
MadCcc
e18400a554
chore: bump rc-dropdown ( #42013 )
* chore: update snapshot
* chore: update placement
* chore: postProps
* chore: update snapshot
* test: update table test case
* chore: update pure-panel style
* chore: update snap
2 years ago
lijianan
6612e5c617
style: code optimization ( #41935 )
2 years ago
二货爱吃白萝卜
5ea9ea8e6a
fix: DatePicker PurePanel placement ( #41901 )
* fix: DatePicker PurePanel placement
* chore: fix type
2 years ago
二货爱吃白萝卜
87f13b3ddc
fix: Popconfirm loading should finish ( #41121 )
* fix: Popconfirm loading should finish
* chore: update bug version
2 years ago
Rafael Martins
14dd2cdcdb
fix: confirm modal firing onOk event twice ( #40719 )
* fix: confirm modal firing onOk event twice (#40272 )
* fix: use loading state instead using disabled
* test: update test to use mock timer
---------
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
二货爱吃白萝卜
86b5c50cb4
refactor: Tooltip support auto arrow & auto shift ( #40632 )
* chore: adjust doc
* chore: simplify arrow offset
* chore: auto adjust shift
* docs: adjust demo
* chore: update snapshot
* chore: provide ref
* test: prepare
* chore: update deps
* test: fix part test
* test: fix part test
* test: fix part test
* test: fix part test
* test: fix part test
* test: update snapshot
* fix: missing pure render
* fix: Popover pure panel
* test: update snapshot
* test: update tour snapshot
* chore: bump trigger ver
* test: fix render ssr logic
* test: skip unnecessary case
* test: fix test case
* test: update snapshot
* test: update snapshot
* test: update snapshot
* test: update snapshot
* test: update snapshot
* test: fix test case
* test: fix test case
* chore: clean up useless warning
* test: add check for placement
* chore: ignore default
2 years ago
luo3house
98cf6b582e
fix(wave): validate detached dom node's wave style ( #40307 )
2 years ago
kiner-tang(文辉)
8b3868ac63
feat(tooltip): tooltip support arrow prop ( #40234 )
* feat: tooltip support arrow props
* docs: update docs
* chore: update rc-tooltip version
* feat: update snapshots
* feat: update snapshots
* style: format code
* Update components/tooltip/index.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* Update components/tooltip/index.zh-CN.md
Co-authored-by: MadCcc <1075746765@qq.com>
* Update components/tooltip/demo/arrow.md
Co-authored-by: MadCcc <1075746765@qq.com>
* Update components/tooltip/demo/arrow.md
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: code optimize
* docs: update docs
* feat: code optimize
* feat: del doc
* feat: update snapshots
* feat: update snapshots
* feat: update snapshots
* feat: refactor dropdown arrow style
* feat: comment
* Update components/tooltip/demo/arrow.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: popover support arrow prop
* feat: tour arrow style optimize
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: update test case
* feat: update test case
* feat: update test case
* Update components/popover/index.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* Update components/tooltip/index.zh-CN.md
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
Co-authored-by: MadCcc <1075746765@qq.com>
2 years ago
lijianan
28d1157d6b
type: optimization undefined type ( #40241 )
* type: optimization undefined type
* fix type
* fix type
* add
* revert
* revert
* revert
2 years ago
二货爱吃白萝卜
96c0c21139
chore: adjust wave pos ( #40192 )
* chore: adjust wave pos
* chore: patch check
* chore: update post
2 years ago
lijianan
8501adbd84
fix: add displayName ( #40092 )
* fix: add displayName
* rerun ci
* rerun ci
2 years ago
lijianan
130c22ab03
style: Code style optimization ( #40083 )
* style: Code style optimization
* add
* rename
* rename
* revert
* revert
* revert
* add
2 years ago
Peter Gassner
25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback ( #40018 )
* fix: Allow users to handle promise rejections in onOk callback
Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them.
* polish: Fix linting problems
* polish: Return rejected promise instead of throwing
* refact: Remove test for unhandled promise rejection
This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events.
See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259
* test: hack for rejection
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
Wuxh
7f189d56e5
refactor: merge preset colors ( #39742 )
* style: remove redundant code
* feat(style): add preset colour style generation method
(cherry picked from commit 1266e42ba27accb48a6544e3eddaa4a94daef00c)
* feat: uniform preset colour generation css selector method
(cherry picked from commit 5af87e8d5ffcfd23e755946167f200c0565f8222)
* chore: merge preset colors
(cherry picked from commit 05040dfb703f60a3ea1715326748c508acbf41a6)
* chore: update
(cherry picked from commit 241b40a1361469487a6a3e8f1ad07a25d250463d)
* chore: remove Badge preset inverse colors
* chore: remove fix
删除的这部分其实一个 Bug,但是为了给 PR 减负(尽可能单一, 后面新开一个 PR 来修复这个问题
* suggestions accepted
Update components/style/presetColor.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2 years ago
二货爱吃白萝卜
99b32a3c37
fix: wave target position switch ( #39966 )
* fix: Node delay for wave pos
* test: test case update
* test: test case update
* chore: update ignore
* test: test case update
* chore: resize check for size changing
* test: coverage
* chore: save code
2 years ago
二货爱吃白萝卜
9f7b129c41
fix: Button wave follow issue ( #39954 )
* fix: Button wave follow issue
* test: update test case
* chore: fix lint
2 years ago
lijianan
3ed7ec906e
chore: remove useless tsx support ( #39890 )
* chore: remove useless tsx support
* add
* add
* style
* fix lint
* fix lint
* fix lint
* update locale entry
* update locale entry
* update locale entry
* delete useless style
2 years ago
lijianan
dedbbda5f2
type: LiteralUnion optimization ( #39871 )
2 years ago
lijianan
4f16966e28
refactor[Wave]: CC => FC ( #39705 )
* fix
* refactor[Wave]: CC => FC
* fix lint
* fix
* fix
* fix
* add test case
* add test case
* fix test
* fix test
* test case
* add test case
* fix
* fix
* fix
* fix
* raname
* fix
* test case
* test case
* test case
* fix test
* test case
* refactor: Use React way
* test: coverage
* chore: clean up
* rerun fail ci
* fix: React 17 error
* test: fix test case
* test: fix test case
* fix borderRadius
* test: fix test case
* chore: clean up
* chore: clean up
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
lijianan
9aec72c395
chore: remove useless tsx support ( #39890 )
* chore: remove useless tsx support
* add
* add
* style
* fix lint
* fix lint
* fix lint
* update locale entry
* update locale entry
* update locale entry
* delete useless style
2 years ago
lijianan
d55d39b811
type: LiteralUnion optimization ( #39871 )
2 years ago
lijianan
4e45276c4e
refactor[Wave]: CC => FC ( #39705 )
* fix
* refactor[Wave]: CC => FC
* fix lint
* fix
* fix
* fix
* add test case
* add test case
* fix test
* fix test
* test case
* add test case
* fix
* fix
* fix
* fix
* raname
* fix
* test case
* test case
* test case
* fix test
* test case
* refactor: Use React way
* test: coverage
* chore: clean up
* rerun fail ci
* fix: React 17 error
* test: fix test case
* test: fix test case
* fix borderRadius
* test: fix test case
* chore: clean up
* chore: clean up
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
sea、lucky
f488cb871b
fix(antd/transfer): transfer performance optimization while dataSourc… ( #39465 )
* fix(antd/transfer): transfer performance optimization while dataSource is large
* fix(antd/transfer): unified function format of transKeys util file
* fix(antd/transfer): transKeys Map Structure Adjustment
2 years ago
Wuxh
951e0e2c79
fix(list): fix error reported due to incorrect paginator parameters ( #39681 )
* fix(list): fix pagination parameter error
* test: add case
* test: update snapshot
* chore: update case
* feat(util): add mergeProps
ref: 3c87f1c5b1/src/utils/with-default-props.tsx (L5)
* chore: replace method
* chore: rename
2 years ago
azro352
328a800132
test: add test cases for breakpoints customize ( #39697 )
Rename useResponsiveObserve to useResponsiveObserver. Add validation of breakpoints values and test
2 years ago
lijianan
120db80c25
type: Button type optimization ( #39533 )
* type: type optimization
* fix type
* fix type
* fix type
* update docs
2 years ago
azro352
18400fbdee
Make breakpoints use the token feature ( #39105 )
* Add XXXL size
* Update index.zh-CN.md
* Update components/list/index.zh-CN.md
Co-authored-by: Amumu <yoyo837@hotmail.com>
* Try to use `useToken` for building responsiveMap
* Try useResponsiveObserve
* Fix useResponsiveObserve
* Some try
* Some try
* Some try
* Remove impossible test
* Remove impossible test
* Fix token.screenXSMax
* Try to put test back as token.screenXSMax is fixed
* Remove impossible test now
* Subscribers, subuid and screen are no longer static
* reorganize def
* chore: not affect no-related file
* chore: not affect no-related file
* test: update test case
* chore: adjust memo logic
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
lijianan
12543277b7
type: remove tuple、tupleNum、ElementOf ( #39478 )
* type: remove tuple
* type: remove tuple
* type: remove tuple
* fix
* fix
* fix type
* fix type
* fix type
* fix type
* fix type
* Update ColorPicker.tsx
* Update components/badge/utils.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* fix type
* fix type
* fix type
* fix
* fix
* fix type
* fix type
* fix type
* update snap
* update snap
Co-authored-by: MadCcc <1075746765@qq.com>
2 years ago
lijianan
4efa3b2896
test: `console.error` should nullable in Console ( #39050 )
2 years ago
MadCcc
5d9cb2e50d
refactor: Optimize theme export and add docs ( #38902 )
* refactor: Optimize theme export and add docs
* chore: fix lint
* chore: fix lint
* chore: fix lint
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
lijianan
52cb37f487
chore: remove throttleByAnimationFrameDecorator ( #38693 )
* chore: remove throttleByAnimationFrameDecorator
* fix
* fix
2 years ago
二货机器人
a33e344546
fix: lint
2 years ago
lijianan
d52b8c6afb
type: type optimization ( #38510 )
2 years ago
lijianan
d292257e47
chore: type optimization ( #38460 )
2 years ago
lijianan
038c9d0763
type: optimization React.useRef type ( #38388 )
2 years ago
lijianan
de1ab2c7f1
fix: add white color ( #38291 )
2 years ago
lijianan
3d33c34010
chore: use includes instead indexOf ( #38139 )
* chore: use includes instead indexOf
* fix: fix
2 years ago
lijianan
769cb3c79a
style: remove repeate method ( #38133 )
* style: remove repeate method
* fix: del break
2 years ago
Zheeeng
e91d25622b
chore: signatures for tests ( #37949 )
* fix: signatures for tests
* fix: remove unused
* fix: test cases
* fix: test cases
2 years ago