二货机器人
8453cb7b2d
fix: Upload onChange immutable ( #22322 )
...
* refactor tree dir
* Upload onChange immutable
* update test case
* fix lint
2020-03-18 00:02:23 +08:00
zombiej
9eab33e09b
merge master
2020-02-19 13:20:43 +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
Saeed Rahimi
676de29eb4
feat: added rtl direction to all of ant-design components ( #19380 )
...
* rtl demo change en-us description
* change bundlesize css limit
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* fix select component arrow issue
* RTL: form component
* add pagination rtl test
* fix test lint error
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* some fixes to RTL components
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* fix switch component text rtl issue
* fix table grouped header text-align
* add rtl support to whole demo with RTL button
* Update rtl demo responsive
* RTL: page-header component
* RTL: typography component
* RTL: Dropdown (Partial)
* update config-provider doc
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* fix lost changes after rebase
* fix lint errors
* RTL: Transfer Component
* RTL: upload component
* RTL: update avatar demo
* RTL: comment component
* RTL: collapse component
* RTL: carousel component
* update snapshots
* RTL: Card component
* RTL: descriptions component
* RTL: Empty component
* RTL: list component
* RTL: slider component
* slider component import/order
* add shared rtlTest
* RTL: Statistic component
* RTL: tooltip components
* RTL: popover component
* RTL: timeline component
* RTL: tag component
* RTL: alert component
* RTL: drawer component
* RTL: Tab component
* change direction definition
* RTL: progress component
* input.tsx, remove duplicate after rebase
* fix demo.less after rebase
* fix ant-row-rtl after rebase
* fix upload issues in rtl
* badge rtl demo margin fix
* fix: tabs with icon margin
* fix: radio-wrapper margin
* fix: table component after rebase
* fix: centered modal text-align
* update slider snapshot
* RTL: popconfirm component
* RTL: back-top component
* RTL: spin component
* RTL: result component
* RTL: skeleton component
* RTL: menu component
* RTL: time-picker component
* RTL: calendar component
* RTL: date-picker component
* RTL: home page
* update snapshots
* test: add auto-complete rtl test
* test: add avatar component rtl tests
* test: add badge component rtl tests
* test: add breadcrumb component rtl tests
* test: add button components rtl tests
* test: add card component rtl tests
* test: add carousel component rtl tests
* test: add cascader component rtl tests
* test: add checkbox component rtl tests
* test: add collapse component rtl tests
* test: add comment component rtl tests
* test: add dropdown component rtl tests
* test: add empty component rtl tests
* test: add form component rtl tests
* test: add grid component rtl tests
* test: add input component rtl tests
* test: add search component rtl tests
* test: add input-number component rtl tests
* test: add layout component rtl tests
* test: add list component rtl tests
* test: add mentions component rtl tests
* test: add modal component rtl tests
* test: add page-header component rtl tests
* test: add pagination component rtl tests
* test: add radio component rtl tests
* test: add rate component rtl tests
* test: add select component rtl tests
* test: add slider component rtl tests
* test: add steps component rtl tests
* test: add switch component rtl tests
* test: add table component rtl tests
* test: add transfer component rtl tests
* test: add tree component rtl tests
* test: add tree-select component rtl tests
* test: add typography component rtl tests
* test: add upload component rtl tests
* test: add affix component rtl tests
* update calendar tests
* increase css file maxSize
* update snapshots
* remove workflows to allow push
* remove duplicate reverse prop from slider
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* Added direction property to ConfigProvider
* cascader rtl tests added
* update config-provider doc
* RTL: grid system
* RTL: input component
* RTL: switch component
* fix rtl demo lint
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* RTL: form component
* add pagination rtl test
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* input.tsx, remove duplicate after rebase
* fix ant-row-rtl after rebase
* update snapshots
* test: add cascader component rtl tests
* test: add pagination component rtl tests
* update calendar tests
* update snapshots
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* update direction.md icons
* dropdown and cascader default placement in rtl
* update snapshots
* fix lint errors
* remove duplicate import
* update snapshots
* update snapshot
* update calendar snapshot
* update snapshots
* integrate with new rc-picker
* update snapshots
* fix lint errors
* update snapshot
* update snapshots
* update snapshots
* update snapshots :|
* update snapshots
* fix compile error.
* fix typo after rebase
* update snapshots
* remove workflows to allow push
* update snapshots
* update snapshots
* fix dist error
* front-page css fix
* update snapshots
* fix lint and test issues
* restore cascader index.less
* update snapshots
* fix logo in rtl and demo controls
* ci errors
* resolve steps/index.tsx conflicts
* tooltip family demo remove inline style
* resolve table/Table.tsx conflicts
* resolve modal/Modal.tsx conflicts
* resolve cascader/index.tsx conflicts
* add workflows from upstream
* update snapshots
* revert logo to default
* fix codebox demo direction of placements
* resolve tooltip overlayClassName conflicts
* update snapshots
* update popover test
* fix: cascader miss popupClassName
* fix: fix select missing dropdownClassName
* chore: Update snapshot
* chore: Adjust menu use rtl logic
* docs: Update demo line color
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
偏右
7dea548551
refactor: 🗑 remove deprecated or compatibility css code ( #20547 )
...
* 🗑️ remove deprecated or compatibility css code
* ✅ update snapshots
* ✅ fix test case and compile error
* ✅ fix stylelint
2019-12-31 11:54:39 +08:00
偏右
8501b708ea
refactor: 📦 smaller bundlesize limit ( #20356 )
...
* 📦 samller bundlesize limit
* 🗑️ remove React static PropTypes
* 🗑️ remove react-lifecycles-compat
* 🗑️ remove matchMedia polyfill
* 🗑️ remove Transfer buggy lazy prop
* 🗑️ remove enquire.js dep
* 🗑️ remove Transfer lazy related code and fix ci
* 🗑️ remove used dom-closest
* ⚡ replace dom-scroll-into-view to scroll-into-view for bundle size
* ✅ fix eslint
* 🆙 upgrade browserslist
* ✅ fix test cases
* 🗑️ remove @ant-design/create-react-context
* 🆙 upgrade @ant-design/bisheng-plugin
* 🆙 upgrade rc-slider
* ✅ fix ci
* 🆙 upgrade rc-tabs and rc-mentions
* 📦 scroll-into-view -> scroll-into-view-if-needed
* remove unused devDep
* docs: 📝 update instruction about IE9/10
* 📦 reduce css bundle size by drop IE9/10 support
* 🆙 upgrade rc-upload
* 🗑️ drop unused swing motion css
* ✅ update upload snapshots
* 📦 lift css bundlesize limit to 55kb
2019-12-23 18:33:08 +08:00
Amumu
c824569ea0
move className and style to ant-upload-drag ( #19987 )
2019-11-28 18:00:59 +08:00
Hossein Ahmadian-Yazdi
214458931d
Gets the XMLHttpRequest Object in Onchange function ( #19539 )
2019-11-04 10:44:43 +08:00
啸生
71b53b7175
master to feature ( #19062 )
...
* ✅ increase upload test cov
* chore: replace resizeObserver with `rc-resize-observer` (#19057 )
* replace resizeObserver with rc-resize-observer
* fix affix lint
* fix es lint
* changelog (#19056 )
* Release 3.23.5
2019-09-30 10:31:36 +08:00
Zhuo Chen
17816b963e
feat: upload should not be aborted until handleRemove is resolved as true ( #18937 )
2019-09-23 10:16:09 +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
二货机器人
e5d644f71a
Revert "fix: Drapper mulitple should work" ( #18626 )
...
This reverts commit 06d7f0deec
.
2019-09-03 12:35:55 +08:00
zombiej
06d7f0deec
fix: Drapper mulitple should work
2019-08-30 17:29:20 +08:00
二货机器人
19cc7e7cee
chore: Add warning when use value
of Switch, Checkbox, Upload ( #18497 )
...
* chore: Add warning when use `value` of Switch, Checkbox, Upload
* clean up
2019-08-27 18:29:20 +08:00
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
2019-08-06 15:36:12 +08:00
zombieJ
81d8eb8afe
feat: ConfigProvider support locale ( #17816 )
...
* ConfigProvider support locale
* update docs
* update category
* clean up
* moving locale
* update check script
* update related code
* add test case
* demo link
* update doc
* hide one rule of md with eslint
* update error link
2019-07-24 10:34:55 +08:00
afc163
5742ae221c
⚡ improve upload list layout style
2019-07-22 19:22:51 +08:00
veveue
59e2f072c2
upload disabled remove
2019-05-25 16:34:38 +08:00
偏右
2d8396bad7
🐛 Avoid disabled Upload being triggered by label ( #16483 )
...
close #16478
2019-05-08 20:26:19 +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
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
偏右
779ba73528
🐛 fix upload instance cannot exposed in TypeScript ( #15090 )
...
close #14439
2019-02-27 18:37:44 +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
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
Hal-pan
4ac517d610
fix upload remove
2019-01-17 00:43:26 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
ztplz
6ad23c370e
Fix CI
2018-11-10 22:09:29 +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
张聪
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
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
Junbin Huang
e1ba74e5fc
fix: still keep order when upload fails ( #10794 )
2018-06-06 12:13:06 +08:00
afc163
89ed0dcb35
fix autoUpdateProgress percent and add test case
2018-05-22 23:29:09 +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
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
afc163
e071002fae
use lodash
2018-03-08 14:46:47 +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
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
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