Commit Graph

152 Commits

Author SHA1 Message Date
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
二货机器人
d5cfd195dd chore: merge master 2022-11-07 23:32:46 +08:00
lijianan
038c9d0763
type: optimization React.useRef type (#38388) 2022-11-04 18:36:54 +08:00
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
2022-10-26 14:38:54 +08:00
MadCcc
03a1ae427d Merge branch 'feature' into next-merge-feature 2022-10-11 20:29:55 +08:00
二货机器人
c376464329 fix: Upload disabled logic 2022-10-11 15:31:16 +08:00
二货机器人
5f28b2e5a4 chore: merge maaster 2022-10-11 14:54:30 +08:00
lijianan
09570f511f
refactor: delete defaultprops (#37853)
* refactor: delete defaultprops

* fix: update snap

* fix: update snap

* fix: fix

* fix: fix

* fix: fix

* fix: fix
2022-10-05 00:04:29 +08:00
Zheeeng
ea9b013bb1
refactor(locale): refine signature (#37824)
* chore: prefer using @internal annotation over other markups

* fix: typo

* fix: locale types
2022-10-01 22:17:14 +08:00
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>
2022-09-20 16:48:59 +08:00
MadCcc
e6335e233c Merge branch 'master' into next-merge-master 2022-08-15 15:20:39 +08:00
二货爱吃白萝卜
ad312b23a2
fix: Upload in React 18 sync problem (#36968)
* fix: sync flush

* test: test case

* test: fix deps
2022-08-09 16:29:48 +08:00
二货机器人
394aba4afe chore: merge master 2022-07-29 15:56:11 +08:00
afc163
80114d62c7
Revert "fix: Upload item removed should keep status className (#36439)" (#36682)
This reverts commit cebbe23393.
2022-07-25 17:38:28 +08:00
zombiej
c71ce67e14 chore: next merge feature 2022-07-19 17:51:35 +08:00
fairyland
8c9ad9b1b6
fix: form disabeld support Upload (#36573)
Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2022-07-18 14:21:52 +08:00
zombiej
5bd221ad39 chore: merge master 2022-07-12 17:09:43 +08:00
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
2022-07-08 22:41:58 +08:00
afc163
a5fe576d48 chore: merge master to next 2022-06-24 11:32:42 +08:00
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
2022-06-23 16:45:24 +08:00
zombiej
91245c16ad chore: merge master 2022-06-21 19:40:22 +08:00
龙风
1cec18e8eb
fix: component.displayName To distinguish the environment (#36126)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:24:52 +08:00
afc163
84a969e5e0 chore: sync master into next branch 2022-05-11 15:36:22 +08:00
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
2022-05-10 15:43:29 +08:00
MadCcc
1f5e271eb6 Merge branch 'master' into next-merge-master 2022-05-09 21:26:25 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
github-actions[bot]
ebd86abdd3
chore: auto merge branchs (#35230)
chore: merge master into next
2022-04-25 14:09:05 +00:00
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
2022-04-25 18:46:53 +08:00
Camol
6a08a46ecc
fix: upload circle ref (#34379)
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
2022-04-24 20:55:18 +08:00
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>
2022-04-15 19:36:38 +08:00
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
2022-04-14 16:45:00 +08:00
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
2022-03-24 21:54:20 +08:00
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>
2022-01-25 11:20:46 +08:00
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
2022-01-05 19:15:28 +08:00
github-actions[bot]
1f22ebb9d9
chore: auto merge branchs (#33200)
chore: sync master into feature
2021-12-08 03:35:46 +00:00
afc163
2df7cc6f30
fix: Upload data type (#33193)
* fix: Upload `data` type

* fix eslint errors
2021-12-07 21:45:11 +08:00
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>
2021-09-08 09:30:09 +08:00
陈帅
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>
2021-05-24 16:24:00 +08:00
github-actions[bot]
1bcb123035
chore: auto merge branchs (#30450)
chore: merge master into feature
2021-05-09 10:49:57 +00:00
OleksandrAntonenko1
e433c5fdeb
fix: File constructor in Upload component. (#30391)
Co-authored-by: ansun <oanteneko@fishfacts.com>
2021-05-08 18:14:57 +08:00
Eric Bonow
32040fb996
feat(upload): add onDrop (#30319)
* feat(upload): Add onDrop

* Replace "if prop" logic with existential operator

* Remove redundant conditional
2021-04-30 22:11:31 +08:00
二货机器人
2140e8105b
Revert "chore: Upload BugContext (#30250)" (#30273)
This reverts commit c82eea7114.
2021-04-22 22:34:58 +08:00
二货机器人
c82eea7114
chore: Upload BugContext (#30250)
* chore: BugContext

* update comment

* only inject uploading fileList
2021-04-21 18:55:52 +08:00
hello-chinese
7be721b663
fix(types): Update Typescript definition Upload (#30188) 2021-04-18 20:28:01 +08:00
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
2021-04-13 09:49:58 +08:00
二货机器人
8e885a7e08
fix: Not try to modify lock file (#29944) 2021-03-30 11:59:30 +08:00
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
2021-03-24 12:23:47 +08:00
陈帅
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>
2021-03-13 23:46:32 +08:00
二货机器人
ca52defcbf
fix: Internal upload list should always keep (#29702) 2021-03-10 17:32:32 +08:00
二货机器人
ef4b67d4c4
fix: onChange should always return proxy file (#29627) 2021-03-05 16:57:21 +08:00