Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
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
rendaoer
ad9e2d9a0e
fix: Upload interface generic type ( #35158 )
* fix:Uplooad组件UploadChangeParam fileList不使用范型
* feat:upload component interface generic test
3 years ago
Hyunseok.Kim
62b221269d
feat: crossorigin attribute of Upload ( #34981 )
* feat: Add crossOrigin prop to thumbnail image
* feat: Add test cases about crossOrigin prop of Upload component
* doc: Add a description about crossOrigin prop to Upload component manual
* Update components/upload/interface.tsx
Update type definition using React.ImgHTMLAttributes
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: hyunseok.kim <hyunseok.kim@42dot.ai>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 ( #34937 )
* chore: bump types def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: free --legacy-peer-deps
* chore: ignore peer
* chore: fix ts logic
* chore: use fork docsearch
* chore: fix demo ts
3 years ago
Dave
780da54c3b
fix(upload): onChange params type err ( #34161 )
* fix(upload): onChange params type err
* test(upload): check onChange params type
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
uchanlee
8ebb4a3d23
fix: Upload types for pass generic ( #33543 )
* fix: Upload types for pass generic
* fix: Upload type
* refactor: Upload type
* feat: add Upload type test case
3 years ago
Michał Podeszwa
0f8fc6f2d2
Add Capture prop to Upload Component Typescript Definition ( #33370 )
Co-authored-by: Michał Podeszwa <178679-michalpodeszwa@users.noreply.gitlab.com>
3 years ago
afc163
2df7cc6f30
fix: Upload `data` type ( #33193 )
* fix: Upload `data` type
* fix eslint errors
3 years ago
huanganqi
9d1e0efca1
feat: Upload adds `showUploadList.previewIcon` ( #32059 )
* fix: add upload.showUploadList 'previewIcon'
* Update componentsformat/upload/index.zh-CN.md
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
陈帅
0d1b1c40a6
merge featrue into master ( #30636 )
* feat: add Table expandable fixed (#29959 )
* fix: Use flex gap of space (#30023 )
* fix: use flex gap when supported
* test: update snapshot
* refactor: Use single hooks
* feat: Allow breadcrumb component in PageHeader (#30019 )
* Allow breadcrumb component in PageHeader
* Allow breadcrumb component in PageHeader
* Allow breadcrumb component in PageHeader
* Rename variable
rename var from _breadcrumbRender to breadcrumbRenderDomFromProps
* feat: add onChange for Statistic.Countdown (#30265 )
* feat: add onChange for countdown
* update the demo
* feat(upload): add onDrop (#30319 )
* feat(upload): Add onDrop
* Replace "if prop" logic with existential operator
* Remove redundant conditional
* feat(upload): itemRender add actions params (#30236 )
* feat(upload): itemRender add actions params
* chore: optimize type definition
* chore: update doc
* chore: rename actions
* chore: trigger ci
* chore: rename method name of actions
* feat: Add missing dutch translations (#30389 )
* feat: Add missing dutch translations
* fix: Translate remaining english values
* fix: Update snapshot for ui tests
* test: increase code coverage to 100% (#30415 )
* test: fix Space code coverage
* test: should use nl_BE locale for DatePicker
* fix: Switch tabIndex type (#30416 )
* feat: updated Romanian internationalization (#30419 )
* feat: updated Romanian internationalization
* fixed lint error
* feat: Menu support accessibility & keyboard access (#30382 )
* chore: Use focus style
* fix: prefixCls
* fix: prefixCls
* fix: inline tooltip
* fix: inlineCollapse logic
* fix: ts definition
* test: Update snapshot
* test: Update snapshot
* fix: dropdown logic
* test: Update snapshot
* test: Fix some test case
* bump rc-menu
* test: More test case
* fix test finder
* test: fix test case
* test: Update snapshot
* test: Update snapshot
* chore: Update ssr effect
* test: Update ConfigProvider snapshot
* test: Fix Table Filter test case
* test: Fix table test case
* chore: Update style
* chore: beauti css
* bump rc-menu
* test: update snapshot
* test: update snapshot
* test: Fix menu test
* test: Fix test case
* test: Coverage
* chore: clean up
* bump rc-menu
* ehance accessibility style
* feat(radioGroup): support data-* and aria-* props (#30507 )
close #30501
* feat: Typography add italic type (#30458 )
* Typography增加斜体字支持
* update snapshot
* 文档添加版本号
Co-authored-by: lidahao <lidahao@sisyphe.com.cn>
* chore: alpha Menu fix merge (#30546 )
* chore: Update script
* bump alpha version
* chore: Update script desc
* chore: bump rc-tabs & rc-mentions
* chore: Adjust style
* chore: 4.16.0-alpha.1
* test: Fix mention test case
* fix: sider of layout width style
* chore: bump 4.16.0-alpha.2
* fix: Tabs tabBarGutter should work as expected (#30545 )
close #30526
* feat: Table summary support sticky mode (#30631 )
* chore: Bump rc-table
* feat: Patch summary fixed color
* fix: style className
* test: Update snapshot
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: gepd <guillermoepd@hotmail.com>
Co-authored-by: appleshell <appleshell@outlook.com>
Co-authored-by: Eric Bonow <ebonow@hotmail.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: Kermit <kermitlx@outlook.com>
Co-authored-by: Lewis <lewisfidlers@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Ștefan Filip <stefy.filip@gmail.com>
Co-authored-by: vldh <alwaysloseall@sina.com>
Co-authored-by: lidahao <lidahao@sisyphe.com.cn>
4 years ago
Kermit
3ee634ba4c
feat(upload): itemRender add actions params ( #30236 )
* feat(upload): itemRender add actions params
* chore: optimize type definition
* chore: update doc
* chore: rename actions
* chore: trigger ci
* chore: rename method name of actions
4 years ago
Eric Bonow
32040fb996
feat(upload): add onDrop ( #30319 )
* feat(upload): Add onDrop
* Replace "if prop" logic with existential operator
* Remove redundant conditional
4 years ago
Kermit
dd88e30586
fix(upload): beforeUpload type definition ( #30351 )
* fix(upload): beforeUpload type definition
* chore: optimize test case
* chore: update test
4 years ago
Kermit
4ccbf1fd0f
fix(upload): UploadFile type definition ( #30343 )
4 years ago
hello-chinese
a836b582ab
fix(upload): type definition of beforeUpload ( #30213 )
4 years ago
Kermit
7fdfa4e64d
fix(upload): beforeUpload type declaration ( #29766 )
* fix(upload): beforeUpload type declaration
* chore: update doc
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
二货机器人
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
二货机器人
55e0d13234
chore: Add demo tsx check ( #28389 )
* chore: Add demo tsx check
* chore: Prettier
* chore: Fix lint
* fix: Upload ts definition
* chore: Demo onlt
* docs: Fix demo
* chore: Add CI action
* chore: Use real name
* chore: fix ts define
* chore: fix more ts
* chore: fix more ts
* chore: More ts
* chore: More ts
* chore: More ts
* chore: More ts
* chore: More ts
* chore: More ts
* chore: More ts
* chore: Update all rest TS demo
* fix test case
4 years ago
二货机器人
d18e9b99d0
feat: Upload support `maxCount` ( #28367 )
* feat: Support maxCount
* docs: Add demo
* test: Add test case
4 years ago
二货机器人
e63856ba9c
docs: Remove Upload `transformFile` prop ( #28365 )
* chore: Remove `transformFile` in doc
* clean up
* update snapshot
4 years ago
CodingYingYingYing
e0c19e4a3d
fix: 修改beforeUpload ts定义 ( #27946 )
Co-authored-by: zhoubingling.00 <zhoubingling.00@bytedance.com>
4 years ago
二货机器人
388edca10b
refactor: UploadList use `rc-motion` instead of `rc-animate` ( #27923 )
* chore: Update rc-motion version
* refactor: Move item into single file
* refactor: Use CSSMotion of progress bar
* chore: part style it
* chore: slit style of pic card
* chore: RM count-x
* support appendAction back
* chore: Style smooth
* fix progress makes shaking
* docs: clean up demo
* test: Update snapshot
* test: fix test case
* fix: lint
* test: Update snapshot
* test: coverage
* clean up
4 years ago
Kermit Xuan
7f7fe176e1
feat(upload): support itemRender ( #26333 )
4 years ago
Michael Waddell
add02767f0
Feat: Support callbacks for removeIcon and downloadIcon in Upload ( #26684 )
* updated to support callback function
* fixing compilation errors
* feat: add support for per-file callbacks in Upload removeIcon and downloadIcon
* Update components/upload/index.en-US.md
Added version
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
* docs: Changed `React.ReactNode` to `ReactNode`
* docs: Added version in CN documentation
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
4 years ago
Pengsha Ying
b4c0978068
fix(upload): adjust type declaration for the onError of customRequest ( #26601 )
4 years ago
Ben Callaway
852fad9e3b
fix: Add missing properties to ShowUploadListInterface ( #26406 )
4 years ago
偏右
24a86df257
style: 💄 fix Upload picture-card button style ( #26367 )
* style: fix Upload picture-card button style
close https://github.com/ant-design/ant-design/issues/26317
close #23339
* style: tweak Upload list animation
close #22386
* fix snapshot change
* docs: update Upload demos
* add test case
* update form demo
* fix test case
4 years ago
Albert Zhang
cf9c08aca4
fix: customRequest file interface ( #25598 )
4 years ago
Miclle Zheng
3d51c801e6
Upload support patch method ( #24936 )
5 years ago
Teng YANG
ac50fa147c
feat: resolve #24213 customize progress bar in upload ( #24319 )
* feat #24213 : customize progress bar in upload
* update doc for customize progress bar in upload
5 years ago
nick
87da7bfe67
feat: add custom isImgurl prop to Upload Component ( #23248 )
* feat: customize isImageUrl support
* docs: Update Upload doc
* docs: Add isImgUrl default implement link
* docs: update default link address
5 years ago
dpyzo0o
69daa6fea7
fix: improve typing of upload component ( #22921 )
5 years ago
Clair Duan
a875bfd28c
feat: custom Upload action icons removeIcon and downloadIcon ( #21363 )
* feat: add removeIcon and uploadIcon in API showUploadList
* test: test for removeIcon and downloadIcon
* docs: Upload docs and demo of downloadIcon and removeIcon
* test: update snapshot of uploadlist
* test: update Upload demo test snapshots
* fix: remove className of Upload custom action icons
* test: upldate Upload snapshot
* test: add trailing comma in upload-custom-action-icon.md
* fix: render Upload custom action icons with React.cloneElement
* test: update Uploadlist tests
* test: use string in Upload custom icon test
* fix: remove unused-var SmileOutlined in Upload demo
* fix: fix mouseEvent param missing in Upload ActionIconRender
* fix: fix mouseEvent type in Upload ActionIconRender
* fix: test mouseEvent in upload-custom-action-icon demo
* fix: fix the missing props spread in Upload custom icon
* test: add test for custom onClick in custom Upload icon
* fix: add remove test for custom Upload icon
5 years ago
叶枫
6c3d6e7247
feat: upload add icon ( #20034 )
* feat: add custom icon
* chore: test
* fix: eye style
* fix: anticon style
* fix: stylelint
* Update Form.tsx
* Update Form.tsx
* feat: 26
* feat: fiie-type
* Update basic.md
* Update debug.md
* Update target.md
* Update Steps.tsx
* Update element.md
* chore: clearn up
* chore: clearn up
* chore: clearn up
* fix: handleIconRender
* fix: iconNode
5 years ago
Hossein Ahmadian-Yazdi
214458931d
Gets the XMLHttpRequest Object in Onchange function ( #19539 )
5 years ago
afc163
53efaa89a5
⚡ support Upload method
5 years ago
Ender Lee
593cfe8950
fix(Upload): add interface field ( #19485 ) ( #19496 )
5 years ago
Sagar Jain
25927c6a41
Improve typing of `UploadFile` interface
UploadFile interface made generic type so that a user can define a strongly typed response object if needed
5 years ago
David Broder-Rodgers
3f037b6d71
Improve types for customRequest prop on Upload component
5 years ago
叶枫
f659d23d22
feat: upload add download icon ( #18664 )
* feat: upload add download icon
* feat: clear up
* feat: log
* empty
* feat: 理解错误
* feat: test
* test
* feat: clean up
* Update components.test.js.snap
* Update demo.test.js.snap
* Update demo.test.js.snap
* Update demo.test.js.snap
* Update demo.test.js.snap
* Update work-with-us.zh-CN.md
* feat: clean up
* fix: showDownloadIcon=false 24px
* fix: More rigorous
* fix: test
* fix: test
* fix: [] key
* fix: hover css
* fix: test
5 years ago
kanweiwei
7ad1068006
fix transformFileHandler ts def
5 years ago
Jinke Li
0240d126ec
feat(Upload): add transformFile option for transform file before request ( #18009 )
* feat: add transformFile optionfor transform file before request
* feat: bump rc-upload 2.7.0
* feat(Upload): optimize doc
5 years ago
zombieJ
b5143df1a4
fix: Upload preview should work with Blob ( #17392 )
* fix: Upload preview should work with Blob
* rm only
5 years ago
Zzzen
f1ee189bd2
eliminate `any` type in exported interfaces.#14044
6 years ago
ztplz
bd0479b30b
Remove useless type
6 years ago
DiamondYuan
c7bc6b743c
fix: fix type of action in UploadProps
6 years ago