Commit Graph

985 Commits

Author SHA1 Message Date
vagusX
1c16788dfb
chore: remove useless disabled style in Upload (#45446) 2023-10-20 16:28:42 +08:00
Amumu
bfc5728ef5
docs: add faq (#45050)
* docs: add faq

* link

* fix docs

* Update components/upload/index.zh-CN.md

Co-authored-by: 红 <wxh1220@gmail.com>
Signed-off-by: Amumu <yoyo837@hotmail.com>

* Update components/upload/index.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Amumu <yoyo837@hotmail.com>

* Update components/upload/index.zh-CN.md

Signed-off-by: Amumu <yoyo837@hotmail.com>

* Update components/upload/index.en-US.md

Signed-off-by: Amumu <yoyo837@hotmail.com>

---------

Signed-off-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 红 <wxh1220@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-09-25 16:58:04 +08:00
李勇
7eb93ad657
type: to put the ts type into useMemo generics (#44904) 2023-09-16 02:16:53 +08:00
afc163
64b649eaee
docs: fix Upload mocky api in demo and test (#44883) 2023-09-15 13:48:23 +08:00
kiner-tang(文辉)
d5abbad8f1
refactor: deprecatedWarning (#44791)
* refactor: deprecatedWraning

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code
2023-09-13 22:07:33 +08:00
二货爱吃白萝卜
5cc338e177
refactor: All the warning set the warning type for future filter (#44613)
* feat: add warningContext

* refactor: part refactor

* chore: fix compile

* chore: part of it

* chore: part of it

* chore: part of it

* chore: fix lint

* chore: fix test

* chore: clean uo

* chore: hide warning def tmp

* chore: comment test

* chore: fix lint

* chore: refactor select icons

* chore: fix warning message

* test: update test

* chore: rm dead code
2023-09-11 17:28:04 +08:00
MadCcc
114ff39f8c Merge branch 'master' into feature-merge-master 2023-09-05 13:41:06 +08:00
lijianan
6a5e7ded43
refactor: remove Space & Grid IE compatible logic (#44620)
* refactor: remove IE compatible logic

* fix: fix

* fix: fix

* fix: fix
2023-09-05 10:17:56 +08:00
Dunqing
f0c105d262
feat: insert use client automatically at compilations instead of hardcode (#44608)
* feat: remove the hardcode of `use client`

* chore: update `@ant-design/tools`

* test: update

* fix: incorrect dictionary

* chore: update dep

* ci: check use client

* chore: update ci

* fix: should be LIB_DIR

* ci: should only run in dist

* chore: update check tsx files
2023-09-04 19:27:20 +08:00
Kyriewen
56724cde28
fix(Upload): action buttons focus style leave after click it (#44594)
* fix(upload): actions_btn_focus_styles

* fix(upload): download button is still in focus state after being clicked

* fix(upload): use focus-visible instead focus

---------

Co-authored-by: zbw01218944 <zbw01218944@alibaba-inc.com>
2023-09-04 14:45:03 +08:00
yoyo837
ad46da1697 Merge branch 'master' into feature-merge-master 2023-09-03 00:22:34 +08:00
Konv Suu
41ef050cb5
chore: typo (#44579)
update
2023-09-01 23:39:56 +08:00
栗嘉男
b12d69cf42 chore: merge master into feature 2023-09-01 00:02:50 +08:00
afc163
3f148d9112 docs: add help text for token customization 2023-08-30 23:02:35 +08:00
二货机器人
620e168cfc chore: feature merge master 2023-08-29 19:51:31 +08:00
二货爱吃白萝卜
8d7dd80120
docs: Update batch of docs & demos (#44509)
* docs: update select opt

* docs: update form deps demo

* docs: upload onChange

* docs: update form nest Form.List demo
2023-08-29 18:47:41 +08:00
二货机器人
16f8228249 chore: merge master 2023-08-28 21:56:37 +08:00
二货爱吃白萝卜
97b03dc938
fix: rm useless ts def of upload (#44468) 2023-08-28 19:38:03 +08:00
MadCcc
68ee32268b Merge branch 'master' into feature-merge-master 2023-08-24 21:04:48 +08:00
MadCcc
9312b0059e
chore: update icon snapshot (#44414) 2023-08-24 21:01:10 +08:00
栗嘉男
39ca9d89f4 chore: merge master into feature 2023-08-18 15:01:08 +08:00
Wing
4fb448ffac
doc: upload doc line break (#44234) 2023-08-15 15:13:04 +08:00
MadCcc
ba90af13c0 Merge branch 'master' into feature-merge-master 2023-08-10 22:17:15 +08:00
daisy
baa24a6ef9
fix(Upload): gif thumb url base64 type should be corrected (#44083)
* fix(Upload): gif thumb url base64 type should be corrected

* fix: add revokeObjectURL

* case: update

* case: remove comment

* fix: addEventListener -> onload

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-08-09 15:19:25 +08:00
kiner-tang(文辉)
2f8fa45df3
docs: Add rootClassName in doc (#44061)
* docs: update rootClassName description

* docs: update rootClassName description

* docs: update docs
2023-08-08 18:27:48 +08:00
kiner-tang(文辉)
9436ece6e3
feat: upload support rootClassName (#44060)
* feat: upload support rootClassName

* feat: optimize code

* feat: optimize code
2023-08-07 18:04:44 +08:00
二货爱吃白萝卜
5d3b45551d
test: snapshot of demo warning message (#43947)
* test: init of test

* test: update snapshot

* test: update snapshot

* chore: adjust size limit

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update snapshot

---------

Co-authored-by: lijianan <574980606@qq.com>
2023-08-02 14:20:13 +08:00
二货爱吃白萝卜
2cdf586291
chore: fix lint (#43873)
* chore: fix lint

* chore: fix lint

* test: fix 16

* fix: lint
2023-07-28 16:17:43 +08:00
Fly me to the moon
9faee0fbca
chore: code style optimization (#43722)
* code style optimization

* fix

* fix

* Update components.test.tsx.snap

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: 我们去月球漫步 <13105694+flymetothemoon-wj@user.noreply.gitee.com>
Co-authored-by: lijianan <574980606@qq.com>
2023-07-22 19:07:57 +08:00
daisy
9bc006c125
demo: remove emotion (#43682)
* demo: remove emotion

* Apply suggestions from code review

Signed-off-by: MadCcc <1075746765@qq.com>

---------

Signed-off-by: MadCcc <1075746765@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-07-20 19:27:11 +08:00
lijianan
f438c133ff
type: React.forwardRef type optimization (#43610)
* type: React.forwardRef type optimization

* fix

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint
2023-07-18 12:18:51 +08:00
lijianan
38474628fd
feat: prepend use-client directive for with Next.js App Router (#43573)
* fix: prepend use-client directive for with Next.js App Router

* Update components/affix/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/badge/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/divider/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/cascader/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/list/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/qrcode/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/steps/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/time-picker/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/transfer/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/tree-select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-07-15 12:57:03 +08:00
thinkasany
82e5555ff3
chore: code style optimization (#43497)
* chore: code style optimization

* revert: 直接解构, 不用 props

* chore: fix classNames useless boolean

* fix: remove classname useless boolean

* fix: revert delete progress classnames boolean
2023-07-13 01:46:56 +08:00
afc163
39151c612b
fix: Upload progress bar fade motion (#43471)
close #43229
2023-07-11 10:06:09 +08:00
github-actions[bot]
1ad266f7bf
chore: auto merge branches (#43378)
chore: merge master into feature
2023-07-05 10:16:04 +00:00
MadCcc
b64a57d5d0
docs: component token meta (#43337)
* docs: component token meta

* docs: more

* docs: complete
2023-07-05 17:49:59 +08:00
lijianan
62dd62f43c
feat: CP support Upload className and style (#43325)
* feat: CP support Tabs className and style

* revert

* test: update snap

* fix

* test: fix test case
2023-07-03 16:38:56 +08:00
二货爱吃白萝卜
1765c49cdc
fix: Upload with maxCount not trigger onChange (#43193)
* test: test driven

* fix: Upload maxCount not trigger onChange
2023-06-26 19:09:17 +08:00
daisy
feb8c569e1
refactor: Upload ListItem timeout optimization (#42915) 2023-06-19 14:36:24 +08:00
lijianan
3b0352178d
type: update unknow with UploadListRef (#43054) 2023-06-16 18:34:25 +08:00
二货爱吃白萝卜
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
2023-06-16 00:47:55 +08:00
lijianan
1d1f4efcf4
type: update type unknown with UploadRef (#42985)
* type: update type unknown with UploadRef

* type: fix type
2023-06-13 11:48:01 +08:00
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest (#42506)" (#42900)
This reverts commit 6759887c44.
2023-06-07 21:59:21 +08:00
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>
2023-06-07 11:54:50 +08:00
kiner-tang(文辉)
2de151da7a Merge branch 'master' into feature-merge-master 2023-06-04 11:10:56 +08:00
Mehmet Yarar
f6dc5f39e0
enhance: Improve the a11y of the upload progress bar (#42704)
* improve the a11y of the upload progress

* add a11y test, update snapshots

* pass aria props as part of restProps

* use kebab-case instead of camelCase for aria attributes

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-05-31 20:36:29 +08:00
Zack Chang
ccb7251384
feat: migrate less to token for Upload (#42042)
* feat: migrate less to token for Upload

* feat: recover less variables

* feat: add debug demo

* feat: rename token

* chore: update snapshot

* chore: update snap

---------

Co-authored-by: zhangjianxiong <zhangjx@tsintergy.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-05-19 11:11:31 +08:00
afc163
d90c1c62c0
fix: upgrade @ant-design/icons to 5.1.0 (#42443)
* Update package.json

* Update package.json

* chore: update snapshot

* style: #1890ff => #1677ff

* style: fix Upload icon color

* style: fix Upload icon color

* revert menu v4 demo
2023-05-18 09:40:09 +08:00
Nikhil Mishra
bb6e0f5ab9
docs: fixed some grammatical errors in index.en-US.md (#42438)
I corrected some spelling and added some articles.
2023-05-17 18:30:01 +08:00
二货机器人
4e311f0d95 test: update snapshot 2023-05-08 23:47:41 +08:00