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
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
偏右
a4d7593ef2
Merge pull request #17120 from Zzzen/master
...
refactor: eliminate `any` type in exported interfaces.#14044
2019-06-21 17:38:56 +08:00
陈帅
82b85709be
style: run lint-fix ( #17172 )
2019-06-19 19:09:08 +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
mingyan.yu
1eb46ebaac
feat: add disable style to upload component
2019-05-26 13:12:28 +08:00
veveue
59e2f072c2
upload disabled remove
2019-05-25 16:34:38 +08:00
zombiej
a9b5acfba9
update preview demo
2019-05-24 16:36:09 +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
偏右
2d8396bad7
🐛 Avoid disabled Upload being triggered by label ( #16483 )
...
close #16478
2019-05-08 20:26:19 +08:00
afc163
b780070351
💄 prittier all files
2019-05-07 14:57:32 +08: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
afc163
bde2eb36b3
🎬 use new file upload mock API
...
https://www.mocky.io/
2019-04-30 16:10:00 +08:00
afc163
8082b4c2cf
⚡ Improve upload demo
...
close #16375
2019-04-30 15:52:58 +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
a2a9831abb
💄 Fix less code style
2019-04-15 11:05:06 +08:00
zombieJ
41316e69e8
update snapshot ( #16017 )
2019-04-11 12:48:36 +08:00
偏右
ad99b4322d
test: ✅ Add eslint-plugin-jest ( #15825 )
2019-04-03 15:54:26 +08:00
zy410419243
1e3efc4069
chore: remove unexpected mock restore
2019-03-25 21:48:18 +08:00
zy410419243
d1ed127030
pref: add missing mockRestore
2019-03-25 21:48:18 +08:00
zy410419243
acaff8dea2
pref: clearInterval should not be called before unmount
2019-03-25 21:48:18 +08:00
zy410419243
2ee56a9c4a
pref: spy on clearInterval for Upload & check actions for Card
2019-03-25 21:48:18 +08:00
zy410419243
337e0285ec
chore: remove useless test cases
2019-03-25 21:48:18 +08:00
zy410419243
c289be6a8a
test: update cases for Upload
2019-03-25 21:48:18 +08:00
afc163
14c1e68088
🐛 Fix Upload border jumping issue in Chrome
...
close #15634
2019-03-25 19:15:48 +08:00
afc163
bd27b6b836
📝 Optimize some docs
2019-03-19 11:44:00 +08:00
Aleksandr Chernokondratenko
357e79cf48
Fix checking if file is image or not in the UploadList ( #15412 )
...
* Fix checking if file is image or not in the UploadList
* Fix type
* Add correct checking if file is image or not
* Change startWith to indexOf, update test
* Increase delay in test to pass CI
* Update test
2019-03-18 10:47:17 +08:00
zy410419243
f38323aeca
refactor: remove unexpected export
2019-03-07 14:43:25 +08:00
zy410419243
e6c1fd3385
test: update cases for UploadList
2019-03-07 14:43:25 +08:00
偏右
779ba73528
🐛 fix upload instance cannot exposed in TypeScript ( #15090 )
...
close #14439
2019-02-27 18:37:44 +08:00
米老朱
6936599aef
Enhance stylelint rules ( #14803 )
...
* rename .stylelintrc to .stylelintrc.json for explicit file type
* add new npm script lint-fix:style
* fix pseudo-element with double colon
* function name should be lower except ignored functions
* support stylelint declaration-block-no-ignored-properties rule
* support sorted CSS properties order for readability and consistency
* autofix order of all styles by lint-fix:style script
* remove double slash comments after selector
* replace .stylelintignore with ignoreFiles in .stylelintrc.json
2019-02-15 10:48:07 +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
zy410419243
bf4560cf37
docs: fix wrong usage of comma
2019-02-07 13:59:32 +08:00
afc163
d3e16b2dc6
🐛 Remove upload control if there is no trigger
...
in case of upload control triggered by label in some situations
close #14298
2019-01-29 15:31:39 +08:00
Subroto
7b8a39772b
Fix fileIndex
not found TypeError (IE 11)
...
fileIndex is not present in IE 11 Array.prototype
2019-01-29 10:53:35 +08:00
afc163
d3d5a3e18d
Merge branch 'master' into feature-for-resolve-conflict
...
* master: (45 commits)
Add type definitions for Steps.Step (#14468 )
add select check to fix edge wave issue (#14469 )
Fix for Pagination ellipsis misalignment (#14473 )
change sentry id
✅ Add sentry in ant.design
💄 New Sketch resources!
fix transfer ref (#14441 )
Add onMouseEnter and onMouseLeave for Menu Item (#14454 )
update snapshot (#14467 )
📝 beautify code style in documentation (#14457 )
Updating type: TreeSelectProps.getPopupContainer (#14443 )
change error version
3.12.4 changelog (#14436 )
Format
Fix the bug that radio onchange will be ovrride by radioGroup onchange (#14364 )
docs: updated doc for create-react-app
fix prefixCls of empty go to div (#14404 )
update snapshot (#14406 )
add radius on table-placeholder to fix table small size border clip (#14398 )
fix style of Input.Search with enterButton (#14397 )
...
2019-01-22 17:34:10 +08:00
Hal-pan
692392d320
fix test case
2019-01-17 00:43:26 +08:00
Hal-pan
7c5083f4fa
add test case
2019-01-17 00:43:26 +08:00
Hal-pan
4ac517d610
fix upload remove
2019-01-17 00:43:26 +08:00
zombiej
0a67272ae4
add locale update
2019-01-10 21:55:21 +08:00
zombiej
12af9a9dca
icon add aria-label support
2019-01-10 21:55:21 +08:00
Junbin Huang
d78c0f2707
Chore/fix master conflict ( #14126 )
...
* adjust table fixed column z-index (#14036 )
fix #13930
* 📝 Add instruction for one column without width left in fixed table
* Add full PR template link in template (#14061 )
* add full tmpl link
* adjust
* simplify it
* add cn link
* Fix Affix flickering when scrolling
* update
* fix: top border disappeared under some ie9
* fix calendar month range display (#14049 )
* Fix tslint warning
* Correct typescript usage (#14074 )
* 🐛 Fix steps style under IE9
close #14001
* 🐛 tweak style for not affecting vertical steps
* 📝 enhance upload documentation
* Input.Group with TimePicker disappear icon: https://codepen.io/mraiguo/pen/QzvvvE?editors=0010
* 🐛 Fix disabled button style in DatePicker panel
https://user-images.githubusercontent.com/507615/50693143-17505400-1071-11e9-9114-b150bef8f7f6.png
* 📝 site: fix BackTop been covered by footer
close #14093
* Update PULL_REQUEST_TEMPLATE.md
* Update pr_cn.md
* 🐛 Fix nested Timeline last item missing line (#14110 )
close #14108
* init Spin should also support delay trigger (#14105 )
fix #14100
* Update table docs
* bugfix
* Format
* update snapshot
* test: fix spin test
2019-01-06 13:25:59 +08:00
zombiej
874ed98e31
merge master
2019-01-02 17:12:34 +08:00
Barry
f3e6140c0d
Support JD image type dpg
2018-12-29 17:41:46 +08:00
afc163
8b5e78f174
Merge branch 'master' into feature
...
* master:
Fixed Modal width when screen size smaller than 768px
🚨 coverage precision to 1
🚨 update .codecov.yml
💄 Fix Badge animation jump when count is ReactNode
fix Popover arrow narrow line at top
fix Popover arrow border in different directions
fix popover arrow top shadow
Change render of + & - icon fix #13924
🐛 loose button type propTypes for custom usage
fix input has min size close #3699
fix: fix-picture-spell-error
2018-12-26 20:47:12 +08:00
alexchen
42d0b7a179
fix: fix-picture-spell-error
2018-12-26 16:49:44 +08:00
zombiej
b5fc19632b
merge master
2018-12-26 14:23:40 +08:00
alexchen
9763c15db4
refactor: add upload-picture-card-border-style
2018-12-26 13:12:38 +08:00
陈帅
daca08b6f1
merge master
2018-12-13 22:03:12 +08:00
afc163
8d2a42fa91
📝 fix outdated link
2018-12-10 00:23:50 +08:00
Ali Zhdanov
4c6244bd0c
Outdated url to file input accept prop ( #13531 )
...
Looks like outdated URL to file input `accept` prop. I've added the proper one.
2018-12-10 00:21:48 +08:00
bukas
814980d9c6
fix: upload blob preview && upload beforeUpload doc ( #13528 )
...
* fix: upload not preview blob
* fix: test && readme
* fix: upload promise
2018-12-10 00:16:51 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
陈帅
df356a586c
Merge branch 'master' into feature
2018-12-07 18:52:13 +08:00
陈帅
dca9715186
support prettier
2018-12-07 18:27:30 +08:00
zy410419243
1faf4c621d
fix: change wrong return value of filter
2018-12-06 08:09:52 +08:00
amedora
0aeb9a356b
use color definitions insted of numbers
2018-12-05 19:45:22 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
ycjcl868
44812cf5e8
✅ upload utils test
2018-12-01 22:44:00 +08:00
afc163
6b2c0a59b3
🐛 Fix upload thumbnail icon broken styles
...
close #13333
2018-11-28 20:33:32 +08:00
afc163
83c192ea3e
💄 fix eslint problems
2018-11-28 15:11:02 +08:00
afc163
ddb331a6a9
💚 Fix snapshot
2018-11-20 11:20:14 +08:00
afc163
13c25adc6d
📝 Upload action is not required prop
2018-11-19 18:52:47 +08:00
ztplz
6ad23c370e
Fix CI
2018-11-10 22:09:29 +08:00
ycjcl868
b2e2607521
fix: upload list preview file check
2018-11-07 12:02:06 +08:00
ycjcl868
ada43adc65
🐛 fix uploadList thumbUrl image type check
2018-11-07 12:02:06 +08:00
afc163
213693e333
🌐 site: transition component category, close #11629
2018-11-04 16:20:35 +08:00
偏右
a4c1bccd2a
Fix upload and mention test cases ( #12586 )
2018-10-11 15:11:44 +08:00
Amumu
bc54db2185
fix typo
2018-10-07 00:30:13 +08:00
Wei Zhu
4ce3800de7
Merge branch 'master' into feature
2018-09-29 16:27:07 +08:00
Amumu
ef4e699f1d
Update avatar.md ( #12458 )
2018-09-28 22:14:04 +08:00
Tom Xu
0b9d00a0ad
Upload add props openFileDialogOnClick
2018-09-21 15:56:18 +08:00
包子熊
db9e30047c
fix upload close icon style error ( #12330 )
2018-09-20 15:31:23 +08:00
zombiej
1883996943
no need to use let
2018-09-20 10:11:04 +08:00
zombiej
273fd2ea1b
fix #10953 . Dedup of file onStart upload
2018-09-19 22:37:35 +08:00
afc163
efb23c1525
Fix linkProps in upload fileList
...
1. should support json string format
2. should be able to override props like rel, target, title and etc
2018-09-14 11:43:02 +08:00
afc163
9d5920b39d
doc: remove old usage instruction
2018-09-14 11:31:53 +08:00
HeskeyBaozi
976f6969f4
update test snapshot
2018-09-07 14:14:23 +08:00
包子熊
67024893ce
Hotfix/icon issue ( #12016 )
...
* fix progress icon
* remove IconDisplay fields.js
* update progress test snapshot
* fix form item circle filled
* update form-item test snapshot
* fix close icon in upload item list
* fix alert icon theme
* update alert test snapshot
* fix time picker clear icon
* fix test snapshot
* fix rotate icon in the header
* update test snapshot
* update new tree test snapshot
* fix icon position
* fix old icon and new icon both display
* fix card actions icon position
2018-09-03 19:29:27 +08:00
HeskeyBaozi
24568f61ff
use the whole svg icons
2018-09-02 23:39:58 +08:00
HeskeyBaozi
2f8a56fa78
fix test case & update test snapshot
2018-09-02 20:59:37 +08:00
HeskeyBaozi
74798b8911
upgdate test snapshot
2018-09-02 20:59:37 +08:00
HeskeyBaozi
d6131fe18d
update test snapshot
2018-09-02 20:59:37 +08:00
afc163
207bad7b47
Merge branch 'master' into feature-3.9.0
2018-09-01 13:22:06 +08:00
偏右
6bf42db2ed
Fix abnormal picture card position of Upload list, close #11183 ( #11931 )
2018-08-29 00:21:46 +08:00
HeskeyBaozi
0c9465aaf9
upgrade icons library
2018-08-27 20:40:11 +08:00
afc163
be78706364
Merge branch 'master' into feature-3.9.0
2018-08-25 18:55:32 +08:00
HeskeyBaozi
d9b38aee4b
Merge branch 'feature-3.9.0' of https://github.com/ant-design/ant-design into feature/svg-icon
...
# Conflicts:
# package.json
2018-08-25 13:24:44 +08:00
afc163
612c5d5c55
Fix Upload.Dragger drag area, close #11869
2018-08-24 20:44:43 +08:00
HeskeyBaozi
ee1d2469a8
upgrade test snapshot
2018-08-24 18:36:08 +08:00
苏秦
3ffc7f6ac2
Upload: remove necessary signatures
2018-08-22 20:00:42 +08:00
HeskeyBaozi
65600c8a95
upgrade to 3.8.2
2018-08-20 14:00:51 +08:00
HeskeyBaozi
f275f3090a
update Icon api
2018-08-16 11:41:37 +08:00
HeskeyBaozi
796de6390b
update test snapshot
2018-08-14 15:32:29 +08:00
HeskeyBaozi
35974d67b2
update test snap shot
2018-08-13 20:51:01 +08:00
HeskeyBaozi
0a8f964935
update test snap shot
2018-08-13 14:46:55 +08:00
HeskeyBaozi
3baec95628
Merge branch 'feature-3.9.0' of https://github.com/ant-design/ant-design into feature/svg-icon
2018-08-13 09:26:33 +08:00
董天成
6203298f32
Fix typescript compile error ( #11709 )
2018-08-10 22:03:59 +08:00
张聪
8a9fbcb5e4
Migrate lifecycle method: Upload, CheckboxGroup, Layout.Sider, Tooltip, Popconfirm ( #11682 )
...
* Upload lifecycle method migrate
* CheckboxGroup lifecycle method migrate
* Layout.Sider lifecycle method migrate
* Tooltip lifecycle method migrate
* Popconfirm lifecycle method migrate
* test Spin as a controlled component
2018-08-10 17:04:40 +08:00
afc163
f2ce60cb6c
fix test case failed often
2018-08-09 21:03:14 +08:00
JamesYin
583abe8dbb
compatible with thumbnail which url has no extension ( #11684 )
...
* compatible with thumbnail which url has no extension
* restore newline #11684
2018-08-09 20:30:02 +08:00
afc163
7f78cc9753
Fix detete x missing in Upload, close #10454
2018-08-08 20:00:26 +08:00
Dmitriy Mironov
a270597d63
Fix a typo
2018-08-08 10:36:07 +08:00
HeskeyBaozi
b2ab727c89
resolve conflicts
2018-08-06 15:06:06 +08:00
Benoît Latinier
2b72149a50
Add strokeLinecap attribute to progress component
2018-08-04 16:58:50 +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
HeskeyBaozi
cc180e2605
resolve conflict.
2018-08-02 18:02:31 +08:00
afc163
2f81349c21
fix error in typescript@3.x
2018-08-01 15:43:47 +08:00
HeskeyBaozi
6c42d711e8
Merge branch 'feature-3.8.0' of https://github.com/ant-design/ant-design into feature/svg-icon
2018-07-31 15:36:23 +08:00
Ilan Hasanov
6cecc9a0ea
💬 fixing upload component typos and capitalization consistency for en-US
2018-07-29 01:15:02 +08:00
HeskeyBaozi
ee16585b6d
update test cases
2018-07-25 11:51:19 +08:00
HeskeyBaozi
4a553a2006
upgrade test cases
2018-07-19 20:37:47 +08:00
HeskeyBaozi
8df086f022
update test cases
2018-07-18 13:39:02 +08:00
HeskeyBaozi
9338f33c1c
update test cases
2018-07-18 10:33:54 +08:00
afc163
0c4d356e54
Merge branch 'master' into feature-3.7.0
2018-07-03 19:54:48 +08:00
afc163
7d038d1aee
revert 4d5d3c142e
2018-06-30 19:05:09 +08:00
afc163
763d32ac68
Fix tslint
2018-06-30 18:49:43 +08:00
afc163
4d5d3c142e
fix fileList in onChange when uid is 0, close #11089
2018-06-29 13:57:47 +08:00
zelongc
27c3093487
Typo fix in the upload component demo.
...
Change 'reponse' to 'response'.
2018-06-29 12:47:01 +08:00
afc163
0981ef06a4
fix demo lint
2018-06-27 16:14:47 +08:00
afc163
56020cda39
Merge branch 'master' into feature-3.7.0
2018-06-27 16:14:14 +08:00
afc163
009ed08580
upgrade eslint-config-airbnb
2018-06-27 16:09:58 +08:00
Wei Zhu
b374297ca6
Merge branch 'master' into feature-3.7.0
2018-06-25 11:44:35 +08:00
愚道
653ec40b30
update test snapshot
2018-06-23 11:31:42 +08:00
afc163
9f16d066af
Fix lint problems from eslint-config-airbnb@17
2018-06-22 21:05:13 +08:00
afc163
e7fa6ca7eb
Merge branch 'master' into feature-3.7.0
2018-06-19 15:31:53 +08:00
sliwey
450a497412
fix: upload preview can't show image when the image file use uppercase extension
...
1.fix: upload preview can't show image when the image file use uppercase extension.
2.improve: remove unnecessary escape character.
2018-06-15 13:52:14 +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
Junbin Huang
e1ba74e5fc
fix: still keep order when upload fails ( #10794 )
2018-06-06 12:13:06 +08:00
Wei Zhu
87163dfcd6
tests: mock xhr request
...
Close #10342
2018-05-31 22:37:09 +08:00
afc163
89ed0dcb35
fix autoUpdateProgress percent and add test case
2018-05-22 23:29:09 +08:00
afc163
0fc5a0ece5
site: add alt to images
2018-05-21 23:47:22 +08:00
afc163
70a42545e3
fix fileToObject, close #10319
2018-05-02 13:56:54 +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
刘红
ee4f788ae0
添加BMP的支持 ( #10110 )
2018-04-17 14:44:43 +08:00
afc163
3b00cf8971
Fix image when file.url has query or hash
...
close #10102
2018-04-17 13:49:03 +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
afc163
e1a5063daf
test: fix ci warning
2018-04-15 15:10:25 +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
afc163
e6b3490a8e
fix test case
2018-04-04 15:50:08 +08:00
Wei Zhu
5336bd688f
Fix type error
2018-04-04 14:49:14 +08:00
Wei Zhu
5ab1c4ce53
Revert "Convert file object"
...
This reverts commit ee0bf41672
.
2018-03-25 11:40:51 +08:00
Wei Zhu
ee0bf41672
Convert file object
...
Close #9775
2018-03-23 11:23:47 +08:00
王集鹄
decb6d8390
Compatible with non-image format file preview in UploadList ( #9621 )
...
* Compatible with non-image format file preview in UploadList
* Add unit test about Upload List should non-image format file preview
2018-03-11 22:24:09 +08:00
afc163
e071002fae
use lodash
2018-03-08 14:46:47 +08:00
afc163
15e69d09ca
Fix test cases
2018-03-06 21:47:05 +08:00
偏右
8226ede38e
Fix test case for new jsdom ( #9527 )
...
* Fix test case for new jsdom
* use setTimeout as raf in jest jsdom
* Fix cancelAnimationFrame
* Add comment for facebook/jest#5147
* longer timeout
* fix snap
* upgrade antd-tools
2018-03-06 21:21:01 +08:00
afc163
626ebf2063
Fix upload list update logic when beforeUpload return false
...
close #8020 #8779 #9248 #9191
ref #8036
2018-02-11 16:11:13 +08:00
afc163
c9b2efc9e8
Add more test cases for Upload
2017-12-04 15:59:39 +08:00
Wei Zhu
01f4b4e713
Merge branch 'master' into antd-3.0
2017-12-01 11:50:07 +08:00
Wei Zhu
179528af50
Don't change fileList when beforeUpload returns false ( #8299 )
...
Close #8036
2017-11-29 20:28:19 +08:00
Wei Zhu
cbaf54415e
style: Use single quote
2017-11-20 16:53:56 +08:00
Wei Zhu
03e4411589
Improve upload type definition
2017-11-20 16:43:25 +08:00
Wei Zhu
45135e4ec8
Improve upload type definition.
2017-11-20 16:31:41 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
2017-11-17 14:38:54 +08:00
afc163
a4faaad810
Merge branch 'master' into antd-3.0
2017-11-13 10:24:58 +08:00
Wei Zhu
0c7ce9db17
Use props
...
Related #7706
2017-11-10 09:48:07 +08:00
afc163
856ecd4ae3
Merge branch 'master' into antd-3.0
2017-11-09 19:45:06 +08:00
afc163
d30e398859
Fix upload.test.js
2017-11-09 19:34:48 +08:00
afc163
e2bff100bd
Fix upload style
2017-10-26 11:59:18 +08:00
Benjy Cui
e5699aff68
fix: should not import moment while useless, close : #8013
2017-10-26 10:50:18 +08:00
Wei Zhu
bbb1a3a828
Merge branch 'master' into antd-3.0
2017-10-25 10:27:38 +08:00
Wei Zhu
36227a10db
docs: sort api table
2017-10-25 10:25:44 +08:00
afc163
3f57d5f56d
Merge branch 'master' into antd-3.0
2017-10-23 10:41:51 +08:00
ddcat1115
c9bc8d7095
fix Upload ci
2017-10-22 23:36:27 +08:00
Benjy Cui
7ea572bfc8
refactor: extract common locale logic ( #7915 )
2017-10-20 14:54:38 +08:00
afc163
4ab7c648ce
Fix upload loading
2017-10-18 21:30:48 +08:00
niko
70491fe4ad
fixed https://github.com/ant-design/ant-design/pull/7733 ( #7914 )
2017-10-18 00:05:10 +08:00
afc163
ad4d5ce18a
Fix dragger background
2017-10-17 20:56:29 +08:00
afc163
c5ffc3b4f0
Fix upload and badge styles
2017-10-17 15:01:21 +08:00
afc163
dfb3b4136b
Fix snap
2017-10-16 21:15:53 +08:00
afc163
00bfa49031
Merge branch 'master' into antd-3.0
2017-10-16 20:45:25 +08:00
afc163
26e416c364
Tweak style
2017-10-16 19:56:04 +08:00
Wei Zhu
e6b1ba6a28
Mock requests
2017-10-15 17:34:03 +08:00
afc163
94c6c910ff
Merge branch 'master' into antd-3.0
2017-10-12 20:07:31 +08:00
偏右
43362de756
Fix beforeUpload will stop uploading when return ( #7870 )
...
value is undefined
it should be same as rc-upload
2017-10-12 14:48:35 +08:00
偏右
b77cc6392e
Improve upload status test case ( #7869 )
...
* Add some companies
* test: generate snapshot in upload onChange
* change action
* upgrade travis node version
* fix ci
2017-10-12 14:09:17 +08:00
偏右
9053192ae9
Fix component style ( #7848 )
...
* fix components style
* fix snapshot
* update travis node version
* change upload action in ci
2017-10-11 12:01:27 +08:00
afc163
278ae9b9c7
Fix upload ci
2017-10-11 10:18:02 +08:00
afc163
064afd9b85
fix upload ci
2017-10-11 09:54:13 +08:00
afc163
163366deeb
Merge branch 'master' into antd-3.0
2017-10-10 21:52:48 +08:00
偏右
2b7a60224b
Fix upload ci ( #7849 )
...
* Fix upload test case
* update delay time for uploading status
2017-10-10 21:48:21 +08:00
afc163
fd7c90fb5a
update upload snap file
2017-10-10 20:02:35 +08:00
afc163
8feaf83003
fix upload test
2017-10-10 19:54:52 +08:00
afc163
190bebd65f
Fix upload snapshot
2017-10-10 19:54:38 +08:00
afc163
5a5bb9c3a0
Fix upload snapshot
2017-10-10 19:54:05 +08:00
afc163
87ec78ce2e
Merge branch 'master' into antd-3.0
2017-10-10 17:11:26 +08:00
afc163
b437233467
Fix upload picture loading style
2017-10-10 16:23:25 +08:00
afc163
c3f1d0bba6
Add test case for upload
2017-10-10 15:59:13 +08:00
Wei Zhu
0d572c72a9
Add test for 9a5894c
...
9a5894c46e
2017-10-10 14:45:18 +08:00
afc163
d3b98d311a
Merge branch 'master' into antd-3.0
2017-10-10 14:09:03 +08:00
afc163
9a5894c46e
data should be call when beforeUpload promise resolved, close #7833
2017-10-09 19:41:52 +08:00
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
2017-10-09 19:18:04 +08:00
afc163
4eb9d5ef56
Merge branch 'master' into antd-3.0
2017-10-09 13:33:59 +08:00
afc163
475e4ff23d
upgrade eslint-config-airbnb
2017-10-09 13:27:35 +08:00
afc163
7a8a1a8ee3
Merge branch 'master' into antd-3.0
2017-09-30 21:31:29 +08:00
niko
9dc4102cdd
fix: should trigger onChange before beforeUpload
2017-09-29 03:52:16 -05:00
偏右
2bced36f0c
New component styles ( #7731 )
...
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
2017-09-27 22:32:49 +08:00
Benjy Cui
829b5f87bf
feat: make default locale to enUS ( #7553 )
...
* feat: make default locale to enUS
* test: fix CI
* docs: update getting started
2017-09-26 23:12:47 +08:00
ChaXinyu
14e2a56b75
export components interface ( #7654 )
...
* export components interface
* export specific props
* fix formItem missed import
2017-09-25 22:14:49 +08:00
afc163
2ebf70013b
Merge branch 'master' into antd-3.0
2017-09-25 20:03:40 +08:00
thegatheringstorm
10f6907da4
Fix: Upload Use object destructuring instead of creating temporary references for onRemove. ( #7726 )
2017-09-25 18:15:36 +08:00
偏右
759b0bb821
seperate reset styles ( #7682 )
...
* seperate reset styles
* not reset ul/ol/p/heading
* revert reset.less idea
* move label style into ant-form-item, #5851
* revert reset.less idea
* update base.less
* Better typography from bootstrap@4
use reboot replace normalize
ref:
b4d84b9cdf/scss/_reboot.scss
close #6162
2017-09-22 18:33:29 +08:00
Wei Zhu
047f62e9b4
Mark refs to private ( #7600 )
2017-09-17 15:48:44 +08:00
Wei Zhu
250c7a9c68
Revert "Mock rc-trigger"
...
This reverts commit 9d2c91598b
.
2017-09-15 16:42:25 +08:00
Wei Zhu
9d2c91598b
Mock rc-trigger
...
Ref #5522
2017-09-15 16:14:26 +08:00
afc163
7bee69a9df
Merge from master
2017-09-08 16:49:58 +08:00
Wei Zhu
8c0c6ecf6e
refactor: upload string refs to callback ( #7496 )
2017-09-08 09:46:22 +08:00
WingGao
ace985afce
Update upload/interface.tsx ( #7507 )
...
`response` should be `any`
2017-09-07 15:12:13 +08:00
afc163
0d26b4c972
doc: update Upload API description
2017-08-24 18:37:26 +08:00
afc163
84e561b237
Fix removing wrong item when uid is 0, close #7269
2017-08-20 15:39:25 +08:00
Zheeeng
754966991b
Rename File interface to UploadFile ( #7183 )
...
* Fix doc missing info
* Rename File interface to UploadFile
2017-08-12 13:56:57 +08:00
Xiaohan Lee
c23c0a6b16
Update docs for Table.render and Upload.onChange ( #7180 )
...
* Docs: fix invalid link in docs of Table.render
* Docs: add link for "onChange" in docs of Upload.onChange
2017-08-11 17:05:58 +08:00
Zheeeng
fdc8d357ef
Fix doc missing info ( #7175 )
2017-08-11 12:39:26 +08:00
afc163
a329d3d39b
Fix file.response type checking, ref #6818
2017-08-08 17:18:55 +08:00
afc163
d339e628ed
Fix upload default error message, close #6818
2017-08-08 13:34:24 +08:00
Ruslan P
0cdcdfba7b
Update picture-style.md ( #7051 )
2017-08-01 18:22:55 +08:00
afc163
98faa4378c
Make action of Upload optional, close #6890
2017-07-19 20:28:18 +08:00
Benjy Cui
2413c6af61
fix: make loading work with icon only button in button group, close : #6822
2017-07-14 15:26:55 +08:00
Wei Zhu
4960f711c3
docs: Add manual upload demo ( #6823 )
2017-07-14 15:00:14 +08:00
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
2017-07-03 16:57:11 +08:00
peiming
426a35c248
docs: fix Upload[beforeUpload]
2017-06-06 21:51:27 +08:00
Graeme Yeates
d8d17a6401
Seperate @active-item-bg into 2 variables
2017-05-03 10:57:14 -04:00
Graeme Yeates
4eb2855871
Add @active-item-bg to control hover and active states
2017-05-02 11:05:28 -04:00
shlice
38a7a87690
feat: enhance handleRemove in Upload ( #5974 )
...
onRemove will be executed when removing file button is clicked, remove event will be prevented when return value is false.
But, if we want't to popup a confirm dialog, it can't block the execution of onRemove.
So, I add Promise support for onRemove. The return value of onRemove now can be a Promise, and the handleRemove function in Upload can wait for the non-blocking confirm dialog.
2017-05-02 16:31:39 +08:00
afc163
224c46ded9
fix typo
2017-04-30 18:47:15 +08:00
afc163
dbbf09ae95
fix createClass in test
2017-04-27 21:12:23 +08:00
afc163
335eb0c246
Fix style prop of Upload.Dragger
2017-04-13 17:33:08 +08:00
Manjit Kumar
4e055ed5d0
use PropTypes from 'prop-types' mdoule instead of React
...
- as React.PropTypes is being deprecated
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-04-12 02:22:05 +05:30
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
...
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
2017-03-23 21:15:49 +08:00
jiang
1be1d41cc9
update upload ( #5401 )
2017-03-20 16:44:29 +08:00
natergj
c2cb111f7b
fix: Upload should work with LocaleProvider ( #5388 )
2017-03-20 15:20:15 +08:00
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
...
* Upgeade to jest 19
* Use jest.spyOn
2017-03-17 18:56:30 +08:00
Benjy Cui
983474f81c
fix: rename uploadList to UploadList
2017-03-17 12:07:26 +08:00
Benjy Cui
be13831d92
Fix upload ( #5358 )
...
* docs: add demo to re-produce bug
* fix: dragger should work with form decorator, close : #5334
* test: update snapshot
2017-03-17 11:47:05 +08:00
afc163
b271a94e0a
Fix Upload progress not showing, close #5323
2017-03-16 13:30:09 +08:00
afc163
89ace33480
Upload onChang(file) argument should be immutable, close #5280
2017-03-14 14:21:01 +08:00
afc163
7290e1070b
update code style
2017-03-14 14:04:40 +08:00
afc163
f44220d91b
Fix upload mask style, close #5275
2017-03-13 11:16:22 +08:00
Minwe LUO
bbe294e96c
feat: allow override onProgress on Upload ( #5260 )
...
@see https://github.com/react-component/upload/issues/33#issuecomment-284644039
2017-03-10 19:18:05 +08:00
afc163
23415a062f
fix upload progressTimer
2017-03-10 15:14:37 +08:00
jiang
8ca2bfd12a
upload ( #5210 )
...
* fix upload firefox delete anim, update list animate
* update picture cssName
* remove note
* update animate Name
* refactor upload animation code
* refactor upload dom structure
* update upload demo snapshots
2017-03-08 18:02:15 +08:00
afc163
35642ec2a9
update upload demo
2017-03-08 14:42:34 +08:00
afc163
29adc0a85e
fix upload snapshot
2017-03-08 12:20:16 +08:00
afc163
d502f089dd
use jsonplaceholder, close #5202
2017-03-08 12:17:46 +08:00
afc163
0a35197a35
Fix long name of upload item style
2017-03-08 12:11:31 +08:00
Wei Zhu
67bbae9ea8
Merge branch 'feature-2.8'
2017-03-05 21:34:57 +08:00
afc163
a82ab5fc4b
Fix setState on unmounted Upload, close #5162
2017-03-03 20:19:56 +08:00
Wei Zhu
6eca8b4ad1
Add locale support to Upload ( #5094 )
2017-02-28 18:43:22 +08:00
afc163
c64cf9f086
fix upload error item name color
2017-02-27 14:18:00 +08:00
feng zhi hao
88100a29a3
chore: fix ts definition of Upload ( #5041 )
2017-02-24 16:06:57 +08:00
afc163
61a3d66a02
Add test case for upload
2017-02-22 16:07:31 +08:00
bang
a4acf1f66e
docs: Rewrite Upload demos to ES6 component
2017-02-19 20:50:06 +07:00
afc163
90daeb9a2b
Adjust upload demo
2017-02-19 01:39:41 +08:00
afc163
5603fa0088
Fix upload error file style, close #4810
2017-02-15 20:58:40 +08:00
Benjy Cui
200b88246f
docs: update docs format
2017-02-13 10:55:53 +08:00
偏右
75a4b06e44
Unified border radius, close #4772 ( #4773 )
2017-02-08 14:21:29 +08:00
afc163
0eb5c689a3
remove type="ghost" from demo
2017-02-04 22:35:33 +08:00
Graeme Yeates
1006015ef0
Add border customization variables ( #4734 )
...
* Add border customization variables (#4712 )
* Make border styles customizable (fixes #4712 )
2017-01-31 16:05:10 +08:00
afc163
f2bb4afd4d
Merge from master
2017-01-27 17:23:51 +08:00
afc163
f4021d5255
Fix default locale in Upload, close #4697
2017-01-24 15:02:54 +08:00
afc163
a81bf8f73e
use file.thumbUrl for <img /> in priority, close #4653
2017-01-24 14:59:39 +08:00
Wei Zhu
77b78a9389
docs: Unify type naming ( #4636 )
...
* Unify name of ReactNode type in document
* Lowser all string type name
* Lowercase all number type name
* Lowercase all boolean type name
* Unify array type
* Lowercase all object type name
* Unify mutilple types
2017-01-20 20:10:50 +08:00
afc163
35523be6e9
Merge from master
2017-01-20 18:28:09 +08:00
Benjy Cui
3e17551b7e
site: improve build speed
2017-01-19 15:22:53 +08:00
偏右
aa89addcc2
Improve upload list ( #4516 )
...
* support prevent removing when return value is false, close #4456
* Add showRemoveIcon & showPreviewIcon into showUploadList
close #4384 & #4351
* fix typo
2017-01-10 20:15:02 +08:00
afc163
024e398ad0
Fix lint for latest eslint-config-airbnb
2017-01-09 11:51:56 +08:00
偏右
d811ebee5c
New color system ( #4426 )
...
* Add new color patterns algorithm
* Add color palettes
* update other colors
* fix gray color
* update more tint/shade to colorPalette
* new font color
* Update doc for new color system
* improve doc style
2017-01-01 22:20:06 +08:00
Wei Zhu
07103b9fb6
Don't ignore test files.
2016-12-14 14:48:09 +08:00
Wei Zhu
17a0a33283
Restructure tests.
2016-12-14 14:41:39 +08:00
afc163
dba6b70e38
update upload API, #863
2016-12-13 18:48:11 +08:00
Benjy Cui
a985c15872
deps: upgrade rc-upload
2016-12-12 12:08:15 +08:00
Zack Craig
f62fa38ebd
Re-word description of upload component ( #4085 )
...
Just a little bit of rewording for english speakers, same stuff, just sounds better.
2016-11-30 22:31:30 +08:00
Andrey G
a307a7acf7
refactor: remove unnecessary computed props for classNames ( #4055 )
...
* remove unnecessary computed props for classNames
* rollback autocomplete optimization for possible css style order issue
* update snapshots
* remove more unnecessary computed props at Input
2016-11-30 10:20:23 +08:00
Benjy Cui
59e0c6a4c1
docs: update demo for upload
2016-11-25 15:00:28 +08:00
Wei Zhu
bd55d21f83
style: Fix jsx-no-multiline-js ( #3994 )
...
* Fix jsx-no-multiline-js
* TimePicker addon test
* Transfer search test
2016-11-25 12:03:39 +08:00
Benjy Cui
f5cc937c8f
fix: Upload should work without children
2016-11-24 17:44:40 +08:00
Wei Zhu
ccbebe60cc
style: Fix jsx alignment, #3966 ( #3967 )
2016-11-23 17:53:10 +08:00
afc163
e62dc08d2c
improve preview icon display logic, #3644
2016-11-22 14:44:16 +08:00
afc163
e552880c32
update upload detail
2016-11-22 14:29:07 +08:00
afc163
f77d568322
fix upload prefixCls
2016-11-22 14:29:07 +08:00
Wei Zhu
d20572bdab
test: demo snapshot testing ( #3916 )
...
* Run snapshot testing against all demos
* Split demo tests
* ignore coverage folder
* Upgrade antd-demo-jest
* enable cache
* intergate with coveralls.io
* Add node test
* Set worker to 2
https://github.com/facebook/jest/issues/1742
* config coverage
* Set default supportServerRender to true
2016-11-22 13:43:53 +08:00
Bruce Mitchener
36508ffabd
Typo fixes.
2016-11-16 20:33:37 +07:00
ddcat1115
0baef0627e
docs: 调整组件导航结构 ( #3758 )
...
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00
afc163
0ec4276eab
@font-size-lg ( #1752 )
2016-11-08 21:07:01 +08:00
afc163
e4974ac72a
use @font-size-base ( #1752 )
2016-11-08 20:57:07 +08:00
afc163
0a48c62dcb
use @text-color
2016-11-08 20:50:59 +08:00
afc163
9b81fe86d9
clear less variables and add @text-color-secondary
2016-11-08 20:48:03 +08:00
denzw
5fb01c8300
修复上传组件卡片样式时,新增加上传图片不能预览的问题 ( #3706 )
2016-11-03 13:43:34 +08:00
Benjy Cui
27708b702c
docs: update docs for upload, ref: #3651
2016-10-31 13:44:13 +08:00
edgji
ea4e98d5f7
docs: add documentation and reference for customRequest ( #3651 )
2016-10-31 13:36:40 +08:00
Benjy Cui
08e21e0a2f
refactor: close : #3490
2016-10-24 16:30:38 +08:00
afc163
1e5264bad7
fix tslint
2016-10-20 22:10:46 +08:00
yiminghe
c2d3f16dfb
update tslint
2016-10-20 19:19:16 +08:00
Benjy Cui
3112b0d7ca
site: support debug mode for demo, close : #3506
2016-10-20 17:45:38 +08:00
Benjy Cui
9ac21d010b
docs: add demo for show image in-place, close : #3319
2016-10-18 15:16:25 +08:00
Albert Zheng
23dd825afd
【Please review】Fixes for supporting TypeScript 2.0.3 ( #3439 )
...
* Fixes for supporting TypeScript 2.0.3
* Fixes for supporting TypeScript 2.0.3. Issue is #3358
2016-10-18 11:55:00 +08:00
afc163
e0a986ed71
Update upload document
2016-10-11 15:23:18 +08:00
偏右
8bf99b7773
Fix Upload onRemove and style ( #3331 )
...
* fix onRemove prevent origin behavious, close #3317
* remove onPreview if
* improve upload render props code style
* Fix upload trigger click area, close #3316
2016-10-10 22:38:11 +08:00
Benjy Cui
a40a8e914f
docs: add ref for upload, close : #3171
2016-09-29 15:37:32 +08:00
Benjy Cui
50e978de53
fix: should show all the uploaded files, close : #3113 ( #3117 )
2016-09-22 11:54:36 +08:00
Benjy Cui
bd7e9f00c0
style: update code style
2016-09-21 11:54:53 +08:00
Benjy Cui
3f67fd3f9f
docs: update docs details
2016-09-21 11:28:38 +08:00
Benjy Cui
f04b65b25e
fix: should pass style to upload correctly, close : #3072
2016-09-20 15:11:30 +08:00
Benjy Cui
d1b9db9f97
fix: should use rc-calendar@7.1.0
2016-09-19 15:23:49 +08:00
afc163
3d8c63b821
Merge branch 'master' of github.com:ant-design/ant-design
2016-09-19 11:08:00 +08:00
afc163
701425250f
fix demo markdown
2016-09-19 11:01:58 +08:00
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
...
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
2016-09-19 10:17:07 +08:00
afc163
697b6c7b19
update upload demos
2016-09-18 11:08:54 +08:00
afc163
9e5061acdc
Merge branch "1.x-stable"
2016-09-15 01:25:28 +08:00
马斯特
a25ec29fb8
refactor: 保证所有的tsx和less都正确使用prefix ( #3024 )
...
* refactor: extract prefix cls as less variable
* refactor: apply ant icon prefix cls in less files
* refactor: all components support prefixCls props
2016-09-14 16:18:33 +08:00
Benjy Cui
cbfc181fa4
fix: should not wrap upload list
2016-09-14 10:21:26 +08:00
Marius Ileana
39a11f00a0
docs: upload, alert, tooltip - translations of remaining demos ( #3035 )
...
* upload - translations of two remaining demos
* alert & tooltip - remaining demo translations
* Prompt typo
2016-09-14 09:52:14 +08:00
Benjy Cui
8db2b79505
chore: fix compile errors
2016-09-13 15:31:29 +08:00
afc163
c897243d33
Fix upload beforeUpload, close #3001
2016-09-12 15:19:44 +08:00
afc163
0e6f677ff9
Fix doc headings
2016-09-10 13:43:30 +08:00
ddcat1115
41a7f51e12
docs: update Upload
en doc ( #2982 )
...
refer to https://github.com/ant-design/ant-design/issues/2892
2016-09-09 14:45:07 +08:00
afc163
bab669d17d
Merge branch "1.x-stable"
2016-09-08 15:17:39 +08:00
ddcat1115
dcd4477bb8
docs: Upload 修正老旧文档 close #2892 ( #2941 )
2016-09-07 10:19:51 +08:00
Andrew Murray
0d00c5fb6c
docs: Fixed typos ( #2921 )
2016-09-01 18:12:12 +08:00
hellowenqi
a25b8b0658
docs: Translation upload ( #2770 )
2016-08-25 09:46:19 +08:00
afc163
363f610d8b
Fix tsc errors beside DatePicker
2016-08-24 16:09:55 +08:00
afc163
77949bb9e3
upgrade eslint-config, close #2811
2016-08-23 21:00:35 +08:00
afc163
10e1b8b269
Fix some ts errors
2016-08-16 18:07:37 +08:00
afc163
24d2973c32
Merge branch "1.x-stable"
2016-08-16 17:54:59 +08:00
ddcat1115
a5585bff77
fix #2571 #2518 #2645 增加disabled属性及取消上传时cancel请求 ( #2690 )
...
* fix #2571 #2518 use rc-upload@2.x abort
fix #2645 add `disabled`
* fix
2016-08-14 15:20:00 +08:00
Eddie Xie
dc62976b39
docs: Fix typos ( #2694 )
2016-08-12 14:16:59 +08:00
afc163
77fa03240b
Merge branch '1.x-stable'
2016-08-03 11:43:43 +08:00
afc163
4bbe2291ef
Fix uploading picture style
2016-08-02 15:05:25 +08:00
afc163
25b3517cc3
Add types for tree-select and upload ( #1846 )
2016-08-01 16:35:01 +08:00
afc163
10a0709b3a
update dragger demo
2016-07-29 14:40:19 +08:00
afc163
ea61aa3cab
upload code style
2016-07-19 20:28:56 +08:00
yiminghe
b140856836
add class
2016-07-19 19:08:59 +08:00
yiminghe
3342aae9f3
upgrade
2016-07-19 15:46:00 +08:00
偏右
de359d2cf7
fix tslint problems ( #2360 )
2016-07-13 11:14:24 +08:00
afc163
4954f5d733
Merge branch '1.x-stable'
2016-07-12 13:59:58 +08:00
afc163
129df7dc2a
Fix removed upload item bug, close #2342
2016-07-12 12:09:12 +08:00
afc163
64b2381759
Merge 1.x-stable
2016-07-09 17:43:31 +08:00
afc163
0977a656aa
Fix default upload item link, close #2331
2016-07-09 17:22:48 +08:00
afc163
28c470cb37
Merge 1.x-stable
2016-07-09 16:03:47 +08:00
afc163
ec8a0821cd
Fix controlled fileList prop, close #2236
2016-07-09 15:08:39 +08:00
yiminghe
94706f1d2c
fix ts
2016-07-07 20:25:03 +08:00
afc163
95351bfffa
Merge branch '1.x-stable'
2016-06-27 19:31:38 +08:00
afc163
089f1ae512
update components category name
2016-06-27 18:21:12 +08:00
afc163
2ffa087aa1
Merge branch '1.x-stable'
2016-06-24 14:33:37 +08:00
afc163
dc191a321b
fix for onPreview works only when file.url existed
...
close #2163
2016-06-24 13:35:11 +08:00
yiminghe
9a0d751f94
refactor to typescript
2016-06-22 13:19:48 +08:00
afc163
069857a476
update upload style
2016-06-15 19:48:42 +08:00
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
2016-06-06 13:54:10 +08:00
afc163
6f11e1fda0
update upload demo doc
2016-05-25 17:32:59 +08:00
afc163
6c3d00368c
improve upload code style
2016-05-24 17:57:31 +08:00
Benjy Cui
8842d9342a
site: update components' type
2016-05-16 15:41:55 +08:00
afc163
664bb8ea08
hide upload button when no children in <Upload />
...
close
https://github.com/ant-design/ant-design/issues/1610#issuecomment-218075160
2016-05-12 17:02:34 +08:00
Benjy Cui
ecaa6c56c3
style: enable comma-dangle
2016-05-11 09:32:33 +08:00
afc163
45921c55e0
upgrade Upload
2016-05-10 17:31:15 +08:00
afc163
4378089b36
Merge branch master into develop-1.0.0
2016-05-05 15:15:59 +08:00
afc163
05b1e5d964
revert update API ( #1543 )
2016-05-05 15:09:53 +08:00
afc163
93faa0d7b8
update ( #1543 )
2016-04-29 15:00:41 +08:00
afc163
03cb74ead5
upgrade eslint-config-airbnb version and fix some problems
2016-04-29 12:13:27 +08:00
afc163
0ca6a1c24a
css modularize ( #1448 )
...
* css modularize
* Add alert style
* Move more component style
* Move iconfont to common style
* Move layout style
* Move more component style
* Move all components
* Fix lots of mixin deps
* remove css-prefix from less
* fix a button icon style bug
* restructure
* fix index
* add dist
* fix jest
* fix some components style
* clean webpack config
* check more components style
* update tabs
* update scripts
* update scripts
* fix form style
* fix more style
* Fix select width
* Fix form and tabs style
2016-04-27 20:44:36 +08:00
Benjy Cui
20e5146657
docs: add missing detail
2016-04-20 10:55:02 +08:00
afc163
8116e775ff
upgrade devDeps and fix some eslint problems
2016-04-18 14:58:38 +08:00
afc163
db0c909ccd
Merge branch master into develop-1.0.0
2016-04-11 14:34:18 +08:00
afc163
d4cfd369b7
update demo
2016-04-11 14:20:05 +08:00
afc163
95fabf0c00
update demo
2016-04-11 14:03:31 +08:00
Benjy Cui
d9f7a57439
docs: update docs
2016-04-11 11:52:17 +08:00
tom
6614fb9746
fix bug
2016-04-07 11:39:23 +08:00
tom
353f2cb004
this未绑定
2016-04-07 11:18:32 +08:00
afc163
1fd31771b3
fix hidden demo
2016-04-05 13:34:44 +08:00
afc163
b27c6ccc24
rebase and add demo & docs
2016-04-05 12:30:14 +08:00
Benjy Cui
df3ba36720
docs: remove useless newline in documentation
2016-04-01 10:08:19 +08:00
Benjy Cui
794783d1c2
style: enable react/no-multi-comp
2016-03-31 17:46:35 +08:00
Benjy Cui
d5a6932c15
docs: update documentation format
2016-03-31 14:17:09 +08:00
Benjy Cui
03d09b66e8
docs: update demo format
2016-03-31 09:40:55 +08:00
Benjy Cui
fd3406bd03
style: enable react/jsx-no-bind
2016-03-30 17:06:19 +08:00
Bruce Mitchener
0acce38f08
Convert more createClass over to extending Component.
2016-03-29 16:33:37 +07:00
Wei Zhu
4f541794e9
Update rc-upload to 1.9.0
2016-03-28 01:47:39 +08:00
Benjy Cui
5e4786440d
deps: remove object-assign
2016-03-25 18:16:48 +08:00
afc163
66179b2760
Merge master into develop-1.0.0
2016-03-23 18:41:58 +08:00
afc163
fff4e01f14
remove JSON format limit, close #1248
2016-03-23 18:36:27 +08:00
Bruce Mitchener
11c0a6a203
Name classes without Ant* prefix.
...
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.
The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
2016-03-21 20:16:38 +07:00
Qiaosen Huang
d584b20dd8
add onPreview onRemove override on upload.
2016-03-21 14:16:22 +08:00
afc163
f66a257ab9
update upload chinese name
2016-03-16 20:17:35 +08:00
z
598a3615e1
修复上传时的状态传递
...
onstart 时设置的是被封装后的对象的属性,这里直接传 file 的话没有 status/percent 属性.
2016-03-09 17:37:56 +08:00
Benjy Cui
c1659c2ce3
style: update code style to please lint
2016-02-22 10:52:30 +08:00
afc163
5c22e32db8
Add link for uploadItem when file.url is existed, close #1013
2016-02-18 11:43:24 +08:00
Benjy Cui
29825f20c8
style: update code style to please lint
2016-02-17 18:04:42 +08:00
Benjy Cui
9d022ff84c
style: update code style to please lint
2016-02-17 15:57:33 +08:00
yiminghe
798d15b4f0
update form
2016-01-30 19:00:56 +08:00
Benjy Cui
68b51e298d
style: update code style for space-before-function-paren
2016-01-27 17:00:58 +08:00
Benjy Cui
cd1391e6a2
style: update code style for object-curly-spacing
2016-01-27 17:00:58 +08:00
yiminghe
9c36b900bf
fix(upload): fix default name value
...
do not set value to ''
2016-01-27 16:25:05 +08:00
yiminghe
65b338de2b
fix(upload): fix upload when edit
...
instanceof check error
2016-01-26 19:55:19 +08:00
afc163
66b7ee81ad
fix eslint problems, eslint-config-airbnb@4.x
2016-01-23 15:22:16 +08:00
afc163
64d96f071f
update picture card upload list style for more expansibility
2016-01-16 16:39:52 +08:00
kasinooya
98627f6d46
Merge branch 'develop-0.12.0' into feature-upload
2016-01-15 16:45:40 +08:00
kasinooya
17ebf07ad3
Add picture-card demo
2016-01-15 16:44:07 +08:00
afc163
5d2d5b2604
Merge branch 'master' into develop-0.12.0
2016-01-15 16:12:40 +08:00
kasinooya
12c792147e
Merge develop-0.12.0 into HEAD
2016-01-15 16:11:31 +08:00
kasinooya
a6f68b2d37
fix eslint error
2016-01-15 15:57:41 +08:00
kasinooya
4d0e873c88
Add upload listType: picture-card
2016-01-15 15:56:06 +08:00
afc163
a681ea9eb9
fix fileList demo
2016-01-15 15:41:47 +08:00
afc163
229b0de3c6
upgrade rc-upload to 1.8.0, close #677
2016-01-14 21:15:25 +08:00
Benjy Cui
41ed04e977
style: update code style to please lint
2016-01-14 16:46:38 +08:00
afc163
2e3ccfb345
Merge branch 'master' into develop-0.12.0
2016-01-13 22:48:54 +08:00
afc163
63476680bd
Add upload inline item demo, ref #859
2016-01-13 22:44:45 +08:00
afc163
fdcc665c80
merge drag upload demo
2016-01-13 22:39:02 +08:00
afc163
027a69b0f0
hide multiple upload demo
2016-01-13 22:32:42 +08:00
Benjy Cui
632cd36e63
chore: suppress warning
2016-01-11 09:49:31 +08:00
Benjy Cui
b72d18fd44
style: update code style to please the fucking lint
2016-01-11 09:49:30 +08:00
Benjy Cui
209170e813
style: update demo code style to please lint
2016-01-11 09:49:30 +08:00
Benjy Cui
711d2d7413
style: update code style to please lint
2016-01-11 09:49:30 +08:00
afc163
91bd7f22c0
use mountNode replace the long getElementById
2015-12-29 12:08:58 +08:00
Benjy Cui
5699e61fd0
fix: uploadList should under the controll of beforeUpload #757
2015-12-28 14:16:34 +08:00
afc163
5476bf1afe
fix previewFile error in uploadList
2015-12-28 13:07:47 +08:00
afc163
b1a136d208
improve uploadList previewFile
2015-12-27 16:00:40 +08:00
afc163
6f42cceb4a
use file.url after thumbUrl
2015-12-27 15:43:49 +08:00
afc163
c2cb6ea1b1
fix previewFile, ref #750
2015-12-27 15:37:17 +08:00
afc163
1f98c85e8a
support preview picture in upload list, close #750
2015-12-27 15:32:37 +08:00
afc163
0bd2ed9378
update upload style
2015-12-14 11:56:00 +08:00
afc163
721c00e925
fix className
2015-12-14 11:45:35 +08:00
afc163
7288dfbaf9
Add picture style upload list
2015-12-13 17:46:06 +08:00
afc163
6b4d7b3622
remove ref in Icon
2015-12-04 15:06:36 +08:00
afc163
16abf46071
Fix markdown eslint errors, update .eslintrc
2015-11-25 18:10:34 +08:00
xiaosheng.lj
871be19528
fix upload multiple #579
2015-11-24 17:00:34 +08:00
afc163
e058e67cb4
fix iconfont
2015-11-20 11:05:34 +08:00
afc163
3797f1adb3
update upload
2015-11-13 16:10:27 +08:00
afc163
b6ff796e71
update upload
2015-11-13 16:09:39 +08:00
xiaosheng.lj
3ea0225d61
feat add hover style
2015-11-11 00:28:05 +08:00
afc163
c044f62374
update upload style
2015-11-04 12:00:49 +08:00
xiaosheng.lj
851da67f48
style uploadList to showUploadList
2015-11-03 16:59:04 +08:00
xiaosheng.lj
9cb8bef1ad
feat add uploadlist config and fix color
2015-11-03 16:59:04 +08:00
xiaosheng.lj
440f69a800
style color with tint
2015-11-03 16:59:04 +08:00
xiaosheng.lj
0cc8035678
feat add upload progress effect
2015-11-03 16:59:04 +08:00
Haibin Yu
0d2c6b2505
remove state items in uploadList.jsx
2015-10-29 00:06:39 +08:00
afc163
753c01ae18
ES6 syntax for demo code
...
fix antd.notification
2015-10-28 20:55:49 +08:00
Pyiner
776238eda9
fix _target
to target
2015-10-24 15:14:53 +08:00
yiminghe
76b0f673ec
beta2
2015-10-20 16:47:55 +08:00
Benjy Cui
5b86a4be1d
refactor: replace button
tag with Button
component
2015-10-08 15:13:04 +08:00
elrrrrrrr
c540d124a5
chore: 迁移 upload iconfont
2015-10-02 16:52:34 +08:00
afc163
094ae9bbbf
update upload document
2015-09-24 19:43:02 +08:00
afc163
961b990f07
upgrade rc-upload to 1.6.x
2015-09-21 11:34:14 +08:00
afc163
6854a83989
get filename
2015-09-20 13:56:14 +08:00
afc163
7d82eccb41
update upload list logic
2015-09-19 17:05:41 +08:00
afc163
6474cb378b
Fix upload try logic
2015-09-18 23:31:07 +08:00
afc163
f266298553
update upload
2015-09-16 20:02:29 +08:00
afc163
74d8ecb1fd
Fix IE9 file.status problem
2015-09-16 18:48:22 +08:00
afc163
fcc8c26166
Add error status for upload file item
2015-09-14 00:28:39 +08:00
afc163
d2fac30c7f
update upload index.md
2015-09-09 22:41:51 +08:00
afc163
ea1a9f0a3d
Fix multiple upload onChange event
2015-09-09 14:58:17 +08:00
afc163
897315784d
Fix info.fileList in multiple upload
2015-09-08 18:26:18 +08:00
afc163
346337936a
update multiple upload demo
2015-09-08 18:05:55 +08:00
afc163
f229f86a75
Fix multiple upload
2015-09-08 17:47:07 +08:00
afc163
f0a7167a49
use button[type="button"] to prevent default submit behavior
2015-09-08 16:02:43 +08:00
afc163
ff6697b951
Remove build-in message display in Upload component
2015-09-08 15:38:28 +08:00
afc163
691b0147b1
update eslintrc and fix code
2015-09-01 16:19:39 +08:00
yiminghe
af30f55e7a
optimize
2015-09-01 11:26:33 +08:00
afc163
42708fe45d
Refractor upload API
...
1. Remove limit urlResolver and onRemove
2. Remove onSuccess onProgress onError
3. Add onChange
4. Add fileList and defaultFileList props
2015-09-01 00:55:49 +08:00
afc163
f50342b2ba
use onChange
2015-09-01 00:55:49 +08:00
afc163
03cc7cbffa
Change variable name
2015-09-01 00:55:48 +08:00
afc163
e77cca572b
Add limit prop for upload
2015-08-31 12:13:55 +08:00
afc163
f101c3231e
Add urlResolver, support display remote file url in list
...
拿到请求回调数据里的远程文件地址,展示在文件列表中方便下载
2015-08-28 16:12:19 +08:00
yiminghe
065c16a95f
fix download
2015-08-28 10:45:54 +08:00
yiminghe
30efa794d7
fix download
2015-08-27 17:51:21 +08:00
yiminghe
f9450f14df
remove file on file failture
2015-08-27 17:35:10 +08:00
yiminghe
97ac458507
add res for upload
2015-08-27 16:53:53 +08:00
yiminghe
3cc4a374db
update docs
2015-08-27 15:57:25 +08:00
yiminghe
c2b4b60267
add onRemove for upload
2015-08-27 15:46:23 +08:00
yiminghe
61bd8abab0
add onRemove for upload
2015-08-27 15:45:38 +08:00
陈三
97f7be1832
fixed typo
2015-08-26 22:00:48 +08:00
afc163
bdf13797cb
update documentation
2015-08-25 20:29:34 +08:00
afc163
f97e0c6c03
beta7
2015-08-24 21:16:00 +08:00
afc163
fdf19520d6
Add component type
2015-08-22 20:16:24 +08:00
afc163
7ae4b4ad76
use global index as upload item key
2015-08-22 14:45:03 +08:00
afc163
e23372b6e8
update upload animation code style
2015-08-21 17:37:54 +08:00
jljsj
ab09f9e537
add tag and uploadlist motion
2015-08-21 17:12:42 +08:00
afc163
1fd8703767
remove file.uid
2015-08-21 16:43:18 +08:00
afc163
727710c1eb
Fix upload close file item bug
2015-08-21 16:19:28 +08:00
afc163
10284a997c
Fix upload bug in safari and ie8/9, ref #138
2015-08-21 14:46:12 +08:00
翰文
c1b409662d
chore: 更新upload文档和依赖版本
2015-08-18 17:31:37 +08:00
afc163
322e09210e
close button should be visible at downloading status
2015-08-18 17:06:23 +08:00
afc163
1e7cf6d364
button should inside children
2015-08-18 17:05:56 +08:00
afc163
f9b7482b91
customize upload button children by user
2015-08-18 15:33:48 +08:00
afc163
ce5d7b9d9c
update rc-upload to 1.3.0, modify onError arguments
2015-08-14 14:17:22 +08:00
afc163
9f1b188f87
fix remove logic in upload
2015-08-09 18:23:18 +08:00
afc163
f9157ab8c4
code style
2015-08-09 18:13:46 +08:00
afc163
dae05a55c4
merge
2015-08-09 18:05:50 +08:00
afc163
b68ec83e36
优化 upload 实现
...
1. 使用 Upload.dragger 代替 type
2. 将拖拽上传的内容区域交给用户自己实现
3. 改进 uploadList 的实现方式, 尽量避免使用 Dom 操作
4. 优化样式展现
2015-08-09 18:00:20 +08:00
玄寂
63cf7bb742
feat: add upload component
2015-08-08 23:37:35 +08:00
afc163
9a200ec782
update text
2015-08-05 21:18:34 +08:00
afc163
f62aa38ee8
Add components index.md
2015-08-01 14:08:04 +08:00
yiminghe
19e2c2700a
stable
2015-07-30 21:55:16 +08:00
afc163
27353ca9b9
三期组件挖坑
2015-07-22 11:06:55 +08:00