Danial Soheili
6ff094efba
Feat/upload list shape ( #40134 )
* 💄 STYLE: add **picture-circle** to `listType`
* 📖 DOC: update API table
* Update components/upload/index.en-US.md
Co-authored-by: lijianan <574980606@qq.com>
* Update components/upload/index.zh-CN.md
Co-authored-by: lijianan <574980606@qq.com>
* Update components/upload/Upload.tsx
Co-authored-by: Amumu <yoyo837@hotmail.com>
* 👌 IMPROVE: classNames
* 👌 IMPROVE: add missing className
* 📖 DOC: update Upload demo for icons
* 👌 IMPROVE: classNames order
* 🧪 TEST: update snapshots
* 👌 IMPROVE: Upload list classNames & snapshots
* 📖 DOC: add new demo & revert previous ones
* Update components/upload/index.zh-CN.md
Co-authored-by: Amumu <yoyo837@hotmail.com>
* Update components/upload/index.en-US.md
Co-authored-by: Amumu <yoyo837@hotmail.com>
* Update components/upload/index.zh-CN.md
Co-authored-by: Amumu <yoyo837@hotmail.com>
---------
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
2 years ago
Amumu
d689c7b855
feat: Remove locale-provider ( #39373 )
* feat: remove locale-provider
* chore: fix lint
* Empty-Commit
* test: remove test
* Revert "test: remove test"
This reverts commit 4f6b59883f6bf078f21a10898ef913c9e2adb913.
* chore: 阶段性兼容
* fix lint
* fix: fix lint
* fix: add index
* docs: update docs
* docs: update
* docs: update
* docs: update
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
lijianan
038c9d0763
type: optimization React.useRef type ( #38388 )
2 years ago
Chuns Chen
cc5c4fed51
refactor: locale files reference path ( #38194 )
* chore: add locale files to npm pkg
* docs: locale files reference path
* docs: fix locale path
* chore: bump @ant-design/tools
* refactor: default locale file
* chore: add site wepack alias
* chore: bump @ant-design/tools
* fix: site theme locale reference path
* chore: add locale files to eslint ignore
* fix: markdown demo unable to resolve path to module antd/locale
2 years ago
二货机器人
c376464329
fix: Upload disabled logic
2 years ago
lijianan
09570f511f
refactor: delete defaultprops ( #37853 )
* refactor: delete defaultprops
* fix: update snap
* fix: update snap
* fix: fix
* fix: fix
* fix: fix
* fix: fix
2 years ago
Zheeeng
ea9b013bb1
refactor(locale): refine signature ( #37824 )
* chore: prefer using @internal annotation over other markups
* fix: typo
* fix: locale types
2 years ago
kiner-tang(文辉)
92a3c719dc
feat: Components under Form support custom disabled to override disabled of Form ( #37628 )
* feat: 当表单组件处于一个禁用的表单时, 该表单组件的禁用状态应该优先取决于表单组件本身的禁用状态
* Update components/checkbox/Checkbox.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: reset mergedSize change
* feat: reset mergedSize change
* Update components/checkbox/Checkbox.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: 优化 Checkbox 组件 disabled 逻辑判断
* Update components/switch/index.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: remove upload default value
Co-authored-by: tangwenhui <tangwenhui@rd.netease.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2 years ago
二货爱吃白萝卜
ad312b23a2
fix: Upload in React 18 sync problem ( #36968 )
* fix: sync flush
* test: test case
* test: fix deps
2 years ago
afc163
80114d62c7
Revert "fix: Upload item removed should keep status className ( #36439 )" ( #36682 )
This reverts commit cebbe23393
.
2 years ago
fairyland
8c9ad9b1b6
fix: form disabeld support Upload ( #36573 )
Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2 years ago
afc163
cebbe23393
fix: Upload item removed should keep status className ( #36439 )
* fix: Upload item removed should keep status className
* add test case
* test: fix act warning
* revert act test
* test: update snapshot
2 years ago
afc163
7357f55d52
fix: Upload listType="picture-card" select button when children is empty ( #36196 )
* fix: Upload listType="picture-card" select button should be hidden when children is empty
close #36183
* test: fix test case
2 years ago
龙风
1cec18e8eb
fix: component.displayName To distinguish the environment ( #36126 )
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
Karott
338ec7dad7
perf: refactor devWarning for production code size ( #35411 )
* pref: better code style for production
* refactor `devWarning`
* don't use `useEffect` only wrap `devWarning`
* chore: add 'noop' to coverage
* chore: add test cases for devWarning
* chore: add test case
* chore: update test cases for devWarning
* chore: restore test script command
* fix: remove 'throw new Error'
* should not use `throw` for browser
* chore: update test case for AutoComplete
* perf: add prefix for `devWarning`
* update RegExp for UMD
* add prefix for ES and CJS
* chore: better code style
* perf:
* upgrade antd-tools
* remove `injectWarningCondition`
* rename `devWarning` to `warning`
* chore: better code style
* chore: better code style
* chore: restore hasValidName
3 years ago
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
Camol
6a08a46ecc
fix: upload circle ref ( #34379 )
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
3 years ago
chensw
9902c21042
fix: Upload pass UploadList prefixCls ( #34944 )
* fix: pass UploadList prefixCls
* test: <Upload /> should pass <UploadList /> prefixCls
Co-authored-by: chenshanwang <chenshanwang@lianfan.com>
3 years ago
afc163
9ed31930e7
chore: remove unused Upload in form styles ( #35033 )
* chore: remove unused Upload in form styles
* Update Upload.tsx
* Update Upload.tsx
* test: update snapshot
3 years ago
MadCcc
0de1e66ff1
refactor: move override code in form ( #34694 )
* refactor: move override code in form
* refactor: radio and checkbox
* chore: code clean
* test: fix lint
* test: fix lint
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
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
OleksandrAntonenko1
e433c5fdeb
fix: File constructor in Upload component. ( #30391 )
Co-authored-by: ansun <oanteneko@fishfacts.com>
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
二货机器人
2140e8105b
Revert "chore: Upload BugContext ( #30250 )" ( #30273 )
This reverts commit c82eea7114
.
4 years ago
二货机器人
c82eea7114
chore: Upload BugContext ( #30250 )
* chore: BugContext
* update comment
* only inject uploading fileList
4 years ago
hello-chinese
7be721b663
fix(types): Update Typescript definition Upload ( #30188 )
4 years ago
wangao
e4e5cc66e9
fix(upload): `file` in `fileList` should get `uid` at first ( #30087 )
* docs: delete info log in tree examples
* fix: make check-ts-demo work
* fix(upload): fileList should add uid at first
* revert(docs): revert delete log(info)
* style: delete unused test utils
4 years ago
二货机器人
8e885a7e08
fix: Not try to modify lock file ( #29944 )
4 years ago
Jojo Narte
a98e4fc907
fix: (Upload) stopPropagation on file drop ( #29832 )
Call e.stopPropagation on file drop to support nested drag and drop upload use-cases
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
二货机器人
ca52defcbf
fix: Internal upload list should always keep ( #29702 )
4 years ago
二货机器人
ef4b67d4c4
fix: onChange should always return proxy file ( #29627 )
4 years ago
二货机器人
3c7030acb9
fix: Upload `originFileObj` not correct ( #29614 )
* fix: Upload should always return new file proxy
* test: Test case
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
偏右
9daf50f3a9
test: fix codecov 100% ( #28892 )
4 years ago
二货机器人
38bead8724
chore: Auto fill uid ( #28832 )
* chore: Auto fill uid
* docs: More desc
4 years ago
mumiao
2f5d3f0418
fix: upload fileList with immuable data ( #28636 )
* fix: upload fileList with immuable data
* perf: optimize code
* ci: fix lint error
* feat: reduce cycles counts
* feat: reduce cycles counts
* ci: fix lint error
* ci: fix lint error
4 years ago
YanYuan
0721ef3cfb
fix: fix warning of transformFile prop for upload ( #28455 )
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
Kermit Xuan
7f7fe176e1
feat(upload): support itemRender ( #26333 )
4 years ago
二货机器人
a26517f9ab
fix: Controlled multiple files upload list sync ( #26612 )
* init hooks
* Use raf to sync list
* clean up
4 years ago