二货爱吃白萝卜
1765c49cdc
fix: Upload with maxCount not trigger onChange ( #43193 )
* test: test driven
* fix: Upload maxCount not trigger onChange
1 year ago
二货爱吃白萝卜
b037433d2b
fix: upload event should not trigger the file out of maxCount ( #43034 )
* fix: upload event should not trigger the file out of maxCount
* chore: opt match logic
* chore: refactor use some
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
dependabot[bot]
faffd45d57
chore(deps-dev): bump immer from 9.0.21 to 10.0.1 ( #41857 )
* chore(deps-dev): bump immer from 9.0.21 to 10.0.1
Bumps [immer](https://github.com/immerjs/immer ) from 9.0.21 to 10.0.1.
- [Release notes](https://github.com/immerjs/immer/releases )
- [Commits](https://github.com/immerjs/immer/compare/v9.0.21...v10.0.1 )
---
updated-dependencies:
- dependency-name: immer
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 栗嘉男 <574980606@qq.com>
2 years ago
lijianan
c38108a63c
fix: Upload in React 18 sync problem ( #41082 )
* fix: Upload in React 18 sync problem
* test: add test case
2 years ago
lijianan
80498afea6
test: refactor test case CC => FC ( #40068 )
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
hms181231
00e5ca5ee9
test: Update upload test case ( #38282 )
2 years ago
MadCcc
5174024561
test: fix test
2 years ago
lijianan
c34caad24c
test: js => ts ( #37392 )
* test: js => ts
* test: add test
* fix: fix eslint error
* test: add test case
* fix: fix test error
* fix: fix eslint error
* fix: fix eslint error
* fix: eslint error fix
* fix: fallback eslint config & add test case
* test: add all test case
* fix: bugfix
* fix: bugFix
* fix: bugFix
* fix: bugFix
* fix: lint
* fix: add React.createRef
* fix: add breadcrumbName in Routes
* fix: any commit for restart ci/cd
* fix: remove type
* fix: test fix
* fix: test fix
* fix: add ts-ignore for id
* test: add Icon test case
* test: remove ts-ignore
* test: add Icon test case
2 years ago
二货爱吃白萝卜
ad312b23a2
fix: Upload in React 18 sync problem ( #36968 )
* fix: sync flush
* test: test case
* test: fix deps
2 years ago
clean99
1239910f66
test: change act import from utils use act wrap timer and not wrap fireEvent ( #36921 )
Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2 years ago
clean99
20a2bb3374
fix: testing act error ( #36915 )
* test: switch act from react-dom/test-utils to testing-library/react
* test: fix jest.runAllTimers usage with act
Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2 years ago
afc163
80114d62c7
Revert "fix: Upload item removed should keep status className ( #36439 )" ( #36682 )
This reverts commit cebbe23393
.
2 years ago
afc163
cebbe23393
fix: Upload item removed should keep status className ( #36439 )
* fix: Upload item removed should keep status className
* add test case
* test: fix act warning
* revert act test
* test: update snapshot
2 years ago
afc163
f7cc14c0e2
fix: upload test case
2 years ago
afc163
7357f55d52
fix: Upload listType="picture-card" select button when children is empty ( #36196 )
* fix: Upload listType="picture-card" select button should be hidden when children is empty
close #36183
* test: fix test case
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
zombiej
257d648274
fix: test case
2 years ago
yykoypj
83eb5e5a35
test: move test cases to @testing/library for Upload ( #36024 )
* test: move test cases to @testing/library for Upload
* refactor: use jest.fn to replace done logic
* test: sample of moving test to testing lib
* test: check for 17
* refactor: manual control timer for React18
* refactor: animateEnd for useless middle state snapshot for 'handle error'
Co-authored-by: zombiej <smith3816@gmail.com>
2 years ago
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
3 years ago
afc163
08d1a71ff4
refactor: Move Upload from less to css in js ( #34528 )
* refactor: Upload to CSS-in-JS
* chore: clean up outdated code
* chore: add FIXME
* revert useless change of UploadList
* fix: upload animation
3 years ago
二货机器人
b8eaecb898
fix: Form in React 18 StrictMode ( #35096 )
* test: fix with react 18
* fix: Form in StrictMode
* test: clean up
* test: clean up
* chore: bump rc-motion version
* chore: fix test case logic
* test: back of it
* test: back missing test case
3 years ago
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>
3 years ago
chensw
9902c21042
fix: Upload pass UploadList prefixCls ( #34944 )
* fix: pass UploadList prefixCls
* test: <Upload /> should pass <UploadList /> prefixCls
Co-authored-by: chenshanwang <chenshanwang@lianfan.com>
3 years ago
二货机器人
67ccf39bd3
fix: Notification & message throw `createRoot` warning in React 18 ( #35030 )
* chore: bump notification version
* test: notification test case
* test: more test case
* test: part message test
* test: rest message test
* test: notification config test
3 years ago
二货机器人
a67c0d28d3
fix: react 18 test fixing ( #34787 )
* fix: try fix
* chore: ci
* test: recover
* test: more test case
* test: more and mote
* test: btn test
* fix: react 18 compitable
* chore: more test
* test: all confirm test
* chore: tmp
* chore: test lib
* chore: tmp
* chore: tmp
* test: back of part
* test: back of menu index test
* test: more test
* test: form test
* test: rm IE11 test case
* chore: fix compatible
* chore: clean up
* chore: back of all test case
* test: ignore 18 lines
* chore: remove render test of enzyme in upload
* test: back of IE11 test case to fit 100% coverage
* chore: fix pkg deps
3 years ago
Cole
dc019dca56
fix: upload button position flashes when it changes from hidden to displayed ( #33820 )
* fix: fix upload button position flashes when it changes from hidden to displayed (#33819 )
* fix: typo in upload
Co-authored-by: chenqiufan <chenqiufan@shiqiao.com>
3 years ago
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>
3 years ago
afc163
9f0dbf2b4d
chore: upgrade to jest 27 ( #30783 )
* chore: upgrade devDeps
* upgrade @ant-design/tools
* support CSS Minification
* test: jsdom as testEnvironment
* fix setImmediate
* update snapshot
* fix test
* fix test
* fix test
* fix test
4 years ago
OleksandrAntonenko1
e433c5fdeb
fix: File constructor in Upload component. ( #30391 )
Co-authored-by: ansun <oanteneko@fishfacts.com>
4 years ago
Kermit
1f1aa86441
fix(upload): should work correctly when url of file is null ( #30215 )
* fix(upload): should work correctly when url of file is null
* fix: lint
4 years ago
wangao
e4e5cc66e9
fix(upload): `file` in `fileList` should get `uid` at first ( #30087 )
* docs: delete info log in tree examples
* fix: make check-ts-demo work
* fix(upload): fileList should add uid at first
* revert(docs): revert delete log(info)
* style: delete unused test utils
4 years ago
二货机器人
8e885a7e08
fix: Not try to modify lock file ( #29944 )
4 years ago
陈帅
c673cde7de
merge Feature into master ( #29758 )
* feat: add onCancel and onEnd option for editable (#29615 )
* feature: add onCancel and onEnd option for editable
* doc: editable
* doc: add EN doc
* optimize: code
Co-authored-by: chenliang <chenliang9@xiaomi.com>
* feat: add parent class for different notification types (#29634 )
close #29417
* refactor: Upload use origin behavior (#29737 )
* refactor: Fallback of events
* test: Fix test case
* fix: Start file update logic
* fix: remove status update
* test: Remove wrapTest
* test: Fix test case
* chore: bump rc-upload
* docs: About desc
* feat: tab support moreIcon (#29744 )
* feat: Tabs support moreIcon
* docs: Tabs support moreIcon
* style: lint
* docs: add english document
* Update components/tabs/index.zh-CN.md
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
* Update components/tabs/index.en-US.md
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
* Update components/tabs/index.zh-CN.md
* Update components/tabs/index.en-US.md
Co-authored-by: zty <zty.dev@outlook.com>
Co-authored-by: zty <zty.dev@icloud.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jueinin <1014397160@qq.com>
Co-authored-by: chenliang <chenliang9@xiaomi.com>
Co-authored-by: 不吃猫的鱼 <michael2ib1989@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: Tianyuan Zhang <tianyuan233.zhang@gmail.com>
Co-authored-by: zty <zty.dev@outlook.com>
Co-authored-by: zty <zty.dev@icloud.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
4 years ago
二货机器人
37bff5d5fd
refactor: Upload use origin behavior ( #29737 )
* refactor: Fallback of events
* test: Fix test case
* fix: Start file update logic
* fix: remove status update
* test: Remove wrapTest
* test: Fix test case
* chore: bump rc-upload
* docs: About desc
4 years ago
二货机器人
a4a009cb62
fix: Lodash can clone FileProxy ( #29718 )
* fix: Lodash can clone FileProxy
* fix: Proxy content
* clean up
* fix lint
* test: get keys
* test: Update coverage
* back of demo
4 years ago
afc163
9973228fe1
chore: remove console.log
4 years ago
二货机器人
ef4b67d4c4
fix: onChange should always return proxy file ( #29627 )
4 years ago
二货机器人
79f8fece4b
refactor: Upload use batch start ( #29474 )
* chore: Update Upload version
* useMergedStatus
* fix file list parser
* fix list replacement
* bump rc-upload
* add Upload.LIST_IGNORE
* support LIST_IGNORE
* fix uploadList batch test
* test: fix batch case test case changed
* test: Finish test case
* fix: Not change uid if exist
* use proxy
* fix proxy
* fix ts
* part test case check
* more test back
* back of test all
* update test case
* more unmount
* adjust test cae
* add unmount
4 years ago
偏右
9daf50f3a9
test: fix codecov 100% ( #28892 )
4 years ago
二货机器人
38bead8724
chore: Auto fill uid ( #28832 )
* chore: Auto fill uid
* docs: More desc
4 years ago
mumiao
2f5d3f0418
fix: upload fileList with immuable data ( #28636 )
* fix: upload fileList with immuable data
* perf: optimize code
* ci: fix lint error
* feat: reduce cycles counts
* feat: reduce cycles counts
* ci: fix lint error
* ci: fix lint error
4 years ago
二货机器人
d18e9b99d0
feat: Upload support `maxCount` ( #28367 )
* feat: Support maxCount
* docs: Add demo
* test: Add test case
4 years ago
afc163
0de1358924
test: ✅ fix eslint jest rules
4 years ago
二货机器人
c58135fd46
fix: Align motion match ( #26628 )
* fix: Align motion match
* bump rc-motion
* lock rc-trigger version
* update snapshot
4 years ago
二货机器人
a26517f9ab
fix: Controlled multiple files upload list sync ( #26612 )
* init hooks
* Use raf to sync list
* clean up
4 years ago
二货机器人
88ae028321
fix: Upload controlled issue ( #26481 )
* fix upload sync
* add test case
* rm only
* update snapshot
* fix test case
4 years ago
Kermit Xuan
ee50fe7952
refactor(upload): rewrite with hooks ( #26196 )
* refactor(upload): rewrite with hooks
* refactor: optimize code style;
chore(dragger): add forwardRef;
* fix: lint
* fix: trigger ci
* fix: lint
* chore: add test case
4 years ago