Tom Xu
db7c425663
Merge pull request #28381 from ant-design/master
...
chore: merge master into feature
2020-12-16 15:24:20 +08:00
二货机器人
d18e9b99d0
feat: Upload support maxCount
( #28367 )
...
* feat: Support maxCount
* docs: Add demo
* test: Add test case
2020-12-15 17:09:52 +08:00
二货机器人
e63856ba9c
docs: Remove Upload transformFile
prop ( #28365 )
...
* chore: Remove `transformFile` in doc
* clean up
* update snapshot
2020-12-15 15:56:35 +08:00
CodingYingYingYing
e0c19e4a3d
fix: 修改beforeUpload ts定义 ( #27946 )
...
Co-authored-by: zhoubingling.00 <zhoubingling.00@bytedance.com>
2020-11-23 13:14:54 +08:00
二货机器人
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
2020-11-21 19:00:11 +08:00
Kermit Xuan
7f7fe176e1
feat(upload): support itemRender ( #26333 )
2020-09-17 16:14:42 +08:00
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>
2020-09-13 08:31:18 +08:00
Pengsha Ying
b4c0978068
fix(upload): adjust type declaration for the onError of customRequest ( #26601 )
2020-09-05 17:13:20 +08:00
Ben Callaway
852fad9e3b
fix: Add missing properties to ShowUploadListInterface ( #26406 )
2020-08-26 18:43:34 +08:00
偏右
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
2020-08-24 16:33:24 +08:00
Albert Zhang
cf9c08aca4
fix: customRequest file interface ( #25598 )
2020-07-13 14:11:55 +08:00
Miclle Zheng
3d51c801e6
Upload support patch method ( #24936 )
2020-06-12 10:31:07 +08:00
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
2020-05-20 22:29:45 +08:00
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
2020-04-14 19:32:16 +08:00
dpyzo0o
69daa6fea7
fix: improve typing of upload component ( #22921 )
2020-04-05 22:26:13 +08:00
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
2020-02-17 14:55:16 +08:00
叶枫
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
2020-01-03 17:48:10 +08:00
zombiej
5bf96bbb51
merge master
2019-11-04 10:49:45 +08:00
Hossein Ahmadian-Yazdi
214458931d
Gets the XMLHttpRequest Object in Onchange function ( #19539 )
2019-11-04 10:44:43 +08:00
afc163
53efaa89a5
⚡ support Upload method
2019-11-03 12:37:48 +08:00
Ender Lee
593cfe8950
fix(Upload): add interface field ( #19485 ) ( #19496 )
2019-10-30 20:40:57 +08:00
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
2019-10-21 20:11:46 +08:00
David Broder-Rodgers
3f037b6d71
Improve types for customRequest prop on Upload component
2019-10-18 11:04:15 +08:00
叶枫
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
2019-09-11 21:46:56 +08:00
kanweiwei
7ad1068006
fix transformFileHandler ts def
2019-09-05 12:21:34 +08:00
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
2019-08-04 12:18:46 +08:00
zombieJ
b5143df1a4
fix: Upload preview should work with Blob ( #17392 )
...
* fix: Upload preview should work with Blob
* rm only
2019-07-01 17:52:37 +08:00
Zzzen
f1ee189bd2
eliminate any
type in exported interfaces.#14044
2019-06-16 20:51:47 +08:00
ztplz
bd0479b30b
Remove useless type
2019-06-02 20:16:02 +08:00
DiamondYuan
c7bc6b743c
fix: fix type of action in UploadProps
2019-05-29 13:53:33 +08:00
DiamondYuan
fa5d5e0a96
fix: fix type of RcFile
2019-05-29 13:52:35 +08:00
DiamondYuan
81da6e90d4
fix: add webkitRelativePath ( #16850 )
2019-05-29 10:56:04 +08:00
偏右
55bd82d6b9
Merge pull request #16716 from christophehurpeau/patch-2
...
fix: Upload prop action: fix typings
2019-05-22 00:13:24 +08:00
Christophe Hurpeau
acaae5c850
Upload prop onRemove: fix action
...
d0cf0eecee (api)
2019-05-21 16:00:25 +02:00
Christophe Hurpeau
2d986ba2c2
Upload prop onRemove: allow Promise as return type
2019-05-13 17:59:40 +02:00
陈帅
785c132262
meger feature to master ( #16421 )
...
* use ul in list
* update snapshot
* update comment
* feat: TreeSelect support `showSearch` in multiple mode (#15933 )
* update rc-tree-select
* typo
* update desc & snapshot
* update desc & snapshot
* check default showSearch
* feat: table customizing variable (#15971 )
* feat: added table selected row color variable
* fix: @table-selected-row-color default is inherit
* feat: Upload support customize previewFile (#15984 )
* support preview file
* use promise
* dealy load
* use canvas of render
* use domHook of test
* update demo
* add snapshot
* update types
* update testcase
* feat: form customizing variables (#15954 )
* fix: added styling form input background-color
* feat: added '@form-warning-input-bg' variable
* feat: added '@form-error-input-bg' variable
* use li wrap with comment
* feat: Support append theme less file with less-variable (#16118 )
* add override
* add override support
* update doc
* feat: dropdown support set right icon
* docs: update doc of dropdown component
* style: format dropdown-button.md
* test: update updateSnapshot
* style: format dropdown-button.md
* test: update updateSnapshot
* test: update updateSnapshot
* style: change style of dropdown-button demo
* fix: fix document table order
* feat: Support SkeletonAvatarProps.size accept number (#16078 ) (#16128 )
* chore:update style of demo
* feat: Notification functions accept top, bottom and getContainer as arguments
* drawer: add afterVisibleChange
* rm onVisibleChange
* update
* feat: 🇭🇷 hr_HR locale (#16258 )
* Added Croatian locale
* fixed lint error
* ✅ Add test cases for hr_HR
* 📝 update i18n documentation
* feat: add `htmlFor` in Form.Item (#16278 )
* add htmlFor in Form.Item
* update doc
* feat: Button support `link` type (#16289 )
close #15892
* feat: Add Timeline.Item.position (#16148 ) (#16193 )
* fix: Timeline.pendingDot interface documentation there is a small problem (#16177 )
* feat: Add Timeline.Item.position (#16148 )
* doc: add version infomation for Timeline.Item.position
* refactor: Update Tree & TreeSelect deps (#16330 )
* use CSSMotion
* update snapshot
* feat: Collapse support `expandIconPosition` (#16365 )
* update doc
* support expandIconPosition
* update snapshot
* feat: Breadcrumb support DropDown (#16315 )
* breadcrumbs support drop down menu
* update doc
* add require less
* fix test
* fix md doc
* less code
* fix style warning
* update snap
* add children render test
* feat: TreeNode support checkable
* feat: add optional to support top and left slick dots (#16186 ) (#16225 )
* add optional to support top and left slick dots
* update carousel snapshot
* Update doc, add placement demo
* update carousel placement demo snapshots
* rename dots placement to position
* update vertical as deprecated
* rename dotsPosition to dotPosition
* refine code
* add warning testcase for vertical
* remove unused warning
* update expression
* Additional test case for dotPosition
* refactor: Upgrade `rc-tree-select` to support pure React motion (#16402 )
* upgrade `rc-tree-select`
* update snapshot
* 3.17.0 changelog
* fix warning
* fix review warning
2019-05-06 12:04:39 +08:00
信鑫-King
59856a093b
fix: Upload types ( #16360 )
...
* fix: Upload types
* fix: ci
* fix: ci
* fix: ci
* fix: ci
2019-04-28 20:49:57 +08:00
afc163
8fc3cb8d24
🐛 Fix always uploading if upload button is hidden during
...
close #14779
caused by the previous fix in #14298
reverted and change another way to fix #14299
2019-02-11 23:08:27 +08:00
Tom Xu
0b9d00a0ad
Upload add props openFileDialogOnClick
2018-09-21 15:56:18 +08:00
苏秦
3ffc7f6ac2
Upload: remove necessary signatures
2018-08-22 20:00:42 +08:00
董天成
6203298f32
Fix typescript compile error ( #11709 )
2018-08-10 22:03:59 +08:00
afc163
aa2b1a4352
Merge branch 'master' into feature-3.8.0
2018-08-03 23:16:08 +08:00
Wu Haotian
57646f24db
fix: correct typing of RcFile. close #10331
2018-08-02 18:05:31 +08:00
afc163
2f81349c21
fix error in typescript@3.x
2018-08-01 15:43:47 +08:00
afc163
fd96967c87
upgrade rc-upload to 2.5
...
- support `directory` close #7315
- action can be a function return Promise
2018-06-12 16:07:06 +08:00
Daniel Gomez
3a5fce7256
Fix UploadFile's lastModifiedDate property name ( #10315 )
2018-05-01 00:11:18 +08:00
afc163
e97977b891
Fix upload onChange arg type when beforeUpload return false, close #10293
2018-04-28 11:06:32 +08:00
Wu Haotian
7eb2792072
fix typing for Upload.beforeUpload
( #10059 )
...
* fix typing for `Upload.beforeUpload`
fix #9775
* add RcFile interface, fix tests
* fix typing of `Upload.onStart`
2018-04-19 11:54:28 +08:00
Ed Moore
31e50e50b6
Fix types ( #10063 )
...
* Fix types
Fix https://github.com/ant-design/ant-design/issues/8796
* Fix exported types
2018-04-16 10:58:17 +08:00
偏右
a9376ef1ca
Fix image url display with non-image extention in Upload ( #9936 )
...
now we treat url following below rules:
1. `data:image..` => image
2. `http://xxx.com/xxxx .(webp|svg|png|gif|jpg|jpeg)` => image
3. `http://xxx.com/xxx.zip ` other extensions => non-image
4. `data:application..` other minetypes in base64 text => non-image
5. `http://xxx.com/xxx ` without any extensions => image
close #9835
close #9681
ref #9621
2018-04-04 17:17:01 +08:00