MadCcc
5c72d04b10
Merge branch 'feature' into next-merge-feature
2022-10-19 17:46:21 +08:00
Zheeeng
e91d25622b
chore: signatures for tests ( #37949 )
...
* fix: signatures for tests
* fix: remove unused
* fix: test cases
* fix: test cases
2022-10-19 11:50:18 +08:00
MadCcc
1c16888d43
Merge branch 'master' into next-merge-master
2022-10-14 15:55:31 +08:00
lijianan
71cfa31728
test: add test case ( #38015 )
2022-10-14 12:05:58 +08:00
MadCcc
4490d9dbdc
Merge branch 'master' into next-merge-master
2022-10-14 11:35:18 +08:00
hms181231
7709970d81
test: Update util test case sleep to useFakeTimers and deprecated HTMLDocument, use Document instead ( #37984 )
...
* test: Update util test case sleep to useFakeTimers and deprecated HTMLDocument, use Document instead
* test: Update util test case sleep to useFakeTimers
2022-10-12 22:46:16 +08:00
MadCcc
eb9179464b
Merge branch 'master' into next-merge-master
2022-09-22 11:47:05 +08:00
二货爱吃白萝卜
d9b6bc7539
fix: In shadow root inject style logic ( #37677 )
2022-09-21 17:43:07 +08:00
MadCcc
0d50767aa8
Merge branch 'master' into next-merge-master
2022-08-30 13:05:50 +08:00
dependabot[bot]
7e7c47509f
chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1 ( #37291 )
...
* chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 26.9.0 to 27.0.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.9.0...v27.0.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: fix eslint errors in test files
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-08-30 10:57:13 +08:00
二货机器人
aa00b93ab8
test: force clean up
2022-08-23 23:50:33 +08:00
二货机器人
2b38025710
chore: resolve dayjs conflict
2022-08-23 18:00:20 +08:00
二货机器人
d9a9fdc509
chore: merge next
2022-08-23 17:48:00 +08:00
lijianan
dd31d7775a
test: migrate part of utils tests ( #37155 )
...
* test: migrate part of utils tests
* test: migrate part of utils tests
* test: migrate part of utils tests
2022-08-21 23:25:00 +08:00
MadCcc
2c7a8af2f4
refactor: wave css variables ( #36263 )
...
* refactor: wave use css variables
* fix: get wave color
* chore: code clean
* test: update test case
* test: add test case
* chore: code clean
* test: update test case
2022-06-28 15:20:09 +08:00
github-actions[bot]
17cc8dddda
chore: auto merge branches ( #36258 )
...
chore: merge master into next
2022-06-27 14:16:49 +00:00
MadCcc
483c8d39bd
refactor: wrap Wave with FC ( #36248 )
...
* refactor: wrap Wave with FC
* test: update test case
2022-06-27 16:57:34 +08:00
zombiej
8749c1ae04
chore: merge master
2022-06-22 15:18:03 +08:00
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2022-06-22 14:57:09 +08:00
afc163
84a969e5e0
chore: sync master into next branch
2022-05-11 15:36:22 +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
zombiej
1a84acb3fb
chore: merge master
2022-04-22 18:21:45 +08:00
二货机器人
f8e7cba353
refactor: Simplify Button Group Style ( #35175 )
...
* chore: refactor grp with context
* test: Update snapshot
* chore: clean up
* test: fix test case
* chore: clean up
* test: fix test
2022-04-22 17:40:52 +08:00
afc163
756f06c2fe
chore: sync master into next branch
2022-04-20 11:30:55 +08:00
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases ( #35026 )
...
* test: React StrictMode
* test: fix Spin test
* chore: wrapper enzyme
* test: fix setState
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: disable part of it
* test: fix test & add placeholder
* test: Use orign enzyme mount
Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-18 21:02:11 +08:00
vagusX
11ffb1ba6f
refactor: cssinjs for tag ( #34422 )
...
* feat: basic implements
* feat: add rtl
* feat: reorganize types
* test: add test cases for capitalize
* test: improve coverage
* chore: improve types
* chore: update
* chore: update
2022-03-15 15:33:50 +08:00
二货机器人
b51c900847
refactor: rm useDestroy hook ( #34418 )
2022-03-10 18:54:32 +08:00
MadCcc
3effa51572
refactor: refactor useMounted to useDestroyed
2021-12-29 17:10:16 +08:00
MadCcc
285e2bd9ea
refactor: refactor useMountedRef to useMounted
2021-12-29 14:42:00 +08:00
MadCcc
727e394d75
feat: add useMountedRef hook
2021-12-28 17:21:00 +08:00
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 ( #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](https://github.com/airbnb/javascript/compare/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>
2021-11-26 12:18:21 +08:00
renovate[bot]
14fa342da3
chore(deps): update dependency eslint to v8 ( #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>
2021-10-15 11:19:14 +08:00
undefined
ba9323decb
Fix Button Wave Effect in shadow root ( #29897 )
...
* fix wave effect for shadow dom
fix
* fix: wave tests
components are inside shadow dom, test fail because they are looking for a style element outside of the shadow dom, they fail because style is now placed (as expected) inside the shadow dom
* fix: typeguard
* fix: use updateCSS api
2021-03-25 11:57:49 +08:00
二货机器人
9914ceb6be
fix: Grid flexGap lazy check ( #29202 )
...
* fix: get flex gap support before render
* chore: patch unit
* chore: rename
* test: fix test case
2021-02-03 15:39:51 +08:00
Hossein Mohammadi
04bfa3c54f
chore: add prettier-plugin-jsdoc ( #28551 )
2020-12-28 15:30:18 +08:00
Amumu
9b7da8640d
chore: replace raf with rc-util/lib/raf ( #27864 )
2020-11-20 12:11:50 +08:00
Tom Xu
44e41b5ced
refactor(trans-button): rewrite with hook ( #27743 )
...
* refactor(trans-button): rewrite with hook
* Update Base.tsx
* Update util.test.js
* Update transButton.tsx
* Update transButton.tsx
* Update transButton.tsx
* Update util.test.js
2020-11-18 11:20:31 +08:00
偏右
fc5e0a9155
test: ✅ 100% coverage ( #26839 )
...
* test: isStyleSupport
* test: 100% test coverage
2020-09-21 18:32:24 +08:00
偏右
c979850a5b
test: ✅ Motion for Collpase and Menu ( #26828 )
...
* test: ✅ test menu and collapse motion
* chore: move openAnimation into collapse
* add test case
* rm extra openAnimation.tsx
* remove unused code
2020-09-20 21:13:43 +08:00
Kermit Xuan
f98e3eee25
refactor: optimize code stle ( #26270 )
2020-08-19 09:50:04 +08:00
zhangchen
26fa36083e
fix: ResponsiveObserve unsubscribe ( #25309 ) ( #25319 )
...
* fix: ResponsiveObserve unsubscribe (#25309 )
* fix: ResponsiveObserve unsubscribe (#25309 )
* fix: ResponsiveObserve unsubscribe
* test: add responsiveObserve.test.js
2020-07-02 10:46:47 +08:00
zombiej
508401cca4
add transBtn coverage
2020-05-23 15:19:24 +08:00
偏右
02dccd9643
Merge pull request #24185 from ant-design/master
...
chore: merge master into feature
2020-05-15 17:40:05 +08:00
Tom Xu
9f633bc002
chore: getScroll add more test ( #24180 )
...
* chore: getScroll add more test
* Update getScroll.test.js
2020-05-15 16:14:38 +08:00
Tom Xu
159d42fda8
chore: scrollTo add more test ( #24177 )
2020-05-15 14:57:12 +08:00
afc163
53d7a20939
merge feature into master-to-merge-feature
2020-05-13 16:16:16 +08:00
Jinke Li
f250b2fa29
Feature: support custom cell ellipsis tooltip ( #24056 )
...
* feat: add transformFile optionfor transform file before request
* feat: bump rc-upload 2.7.0
* feat(Upload): optimize doc
* feat: support custom cell ellipsis tooltip
* tests: update snapshots
* docs: update table ellipsis demo
* tests: update snap
2020-05-12 12:44:49 +08:00
偏右
c6a1c3f743
✅ test TransButton focus and blur ( #22979 )
2020-04-07 15:41:05 +08:00
Eric Wang
316b925f94
chore: Use unreachable exception in favor of type safety ( #22933 )
...
* Use unreachable exception in favor of type safety
* Add tests
* add test
2020-04-05 21:18:28 +08:00
偏右
aca2656721
fix: ⬆️ BackTop not working in iframe ( #22788 )
...
* docs: 🎬 improve BackTop demo
* fix Backtop not working in iframe
* fix lint
* fix ci
* fix ci
* ✅ add more test case
* ✅ add more test cases
* fix ci
2020-04-01 17:38:21 +08:00
偏右
66f67051af
test: ✅ improve test for requestAnimationFrame ( #22433 )
...
* test: improve test for requestAnimationFrame
* ✅ fix test coverage
* fix test case
* fix test case
2020-03-20 15:07:47 +08:00
偏右
813a93ab24
test: ✅ Add test cases for wave ( #22393 )
...
* ✅ Add test cases for wave
* refactor code
2020-03-19 19:27:02 +08:00
偏右
7dea548551
refactor: 🗑 remove deprecated or compatibility css code ( #20547 )
...
* 🗑️ remove deprecated or compatibility css code
* ✅ update snapshots
* ✅ fix test case and compile error
* ✅ fix stylelint
2019-12-31 11:54:39 +08:00
zombiej
867910e6f4
merge master
2019-09-29 18:11:24 +08:00
二货机器人
e07bba91fa
chore: replace resizeObserver with rc-resize-observer
( #19057 )
...
* replace resizeObserver with rc-resize-observer
* fix affix lint
* fix es lint
2019-09-29 04:56:56 -05:00
zombiej
3d8a4f3612
merge master
2019-08-29 23:41:46 +08:00
偏右
8345554cd7
Merge pull request #18324 from ant-design/master
...
chore: Merge master into feature
2019-08-17 22:39:04 +08:00
shaodahong
83022a4cff
test: try mock Date.now to reduce test time
2019-08-16 17:59:28 +08:00
shaodahong
b277a963f0
fix: eslint fail
2019-08-16 17:59:27 +08:00
shaodahong
b1cd8e32d9
test: add easings.ts test suite
2019-08-16 17:59:26 +08:00
shaodahong
3b692bc8b6
test: fix test fail
2019-08-16 17:59:24 +08:00
shao
3ab3b014e0
test: use jest.useFakeTimers replace sleep
2019-08-16 17:59:22 +08:00
shao
d45dc1b347
feat(Anchor): fix test fail
2019-08-16 17:58:41 +08:00
shao
a266f45395
feat(Anchor): remove scrollTo option
2019-08-16 17:58:40 +08:00
shao
32b09fc8f3
feat(Anchor): perf easings export
2019-08-16 17:58:39 +08:00
shao
06abd9503c
fix: some bad writing
2019-08-16 17:58:35 +08:00
shao
ccef30885a
perf: optimization BackTop and Anchor components scrollTo func
2019-08-16 17:58:34 +08:00
zombieJ
fd284ecc47
fix: ResizeObserver should ignore shaking ( #18289 )
...
* fix: ResizeObserver should ignore shaking
* fix lint
* fix domHook
2019-08-15 15:52:36 +08:00
afc163
2bddeef1e5
🆙 upgrade eslint-config-airbnb
2019-08-12 19:04:30 +08:00
zombieJ
4cdf37bedb
feat: New Form ( #17327 )
...
* init form
* first demo
* add normal login
* add style
* webit
* support nest errors
* beauti form errors
* use onReset
* modal demo
* add list demo
* match key of errors logic
* date demo
* customize component
* moving style
* add status style
* without form create
* add demos
* add inline style
* clean up legacy
* fix drawer demo
* mention
* fix edit-row
* editable table cell
* update mentions demo
* fix some test case
* fix upload test
* fix lint
* part of doc
* fix ts
* doc update
* rm react 15
* rm config
* enhance test coverage
* clean up
* fix FormItem context pass logic
* add more demo
* en to build
* update demo
* update demo & snapshot
* more doc
* update list doc
* update doc
* update demo to display condition render
* update snapshot
* add provider doc
* support configProvider
* more doc about validateMessages
* more description
* more and more doc
* fix typo
* en doc
* Form.List doc
* m v3 -> v4
* add skip
2019-07-03 20:14:39 +08:00
陈帅
82b85709be
style: run lint-fix ( #17172 )
2019-06-19 19:09:08 +08:00
偏右
eb9be9ef56
Update util.test.js
2019-05-27 20:24:53 +08:00
afc163
17ab75b8d9
✅ Add test case for TransButton
2019-05-27 19:13:49 +08:00
zombieJ
fee6b61c19
fix: raf should keep same id ( #16370 )
2019-04-28 23:52:35 +08:00
偏右
ad99b4322d
test: ✅ Add eslint-plugin-jest ( #15825 )
2019-04-03 15:54:26 +08:00
zy410419243
d17a5c49e5
test: update cases for Wave
2019-03-25 21:47:24 +08:00
陈帅
dca9715186
support prettier
2018-12-07 18:27:30 +08:00
ycjcl868
9300cd88ba
✅ util test
2018-12-02 15:52:07 +08:00
zombieJ
dbbeec8dd9
add listener for start transition ( #13094 )
...
fix #12942
2018-11-12 20:31:58 +08:00
Matt Lein
f0b684de6a
get data-*, aria-*, and role attributes
2018-06-25 16:53:04 +08:00
Matt Lein
20348614d5
Alert - pass data-* attributes to alert div
2018-06-25 16:53:04 +08:00
Wei Zhu
645be586f3
Run jest.useFakeTimers in beforeAll
2017-11-13 10:46:54 +08:00
afc163
54188b8e97
Reset timer in test
2017-11-09 20:33:25 +08:00
陆离
3789e0cbbb
Affix listener bug fix ( #4756 )
...
* Affix listener bug fix
+ close #4755
+ close #4760
+ clearScrollEventListeners before setTargetEventListeners
+ add tests for throttle
+ append affix test case
* genMockFn -> fn()
2017-02-08 14:44:43 +08:00