二货机器人
a67c0d28d3
fix: react 18 test fixing ( #34787 )
* fix: try fix
* chore: ci
* test: recover
* test: more test case
* test: more and mote
* test: btn test
* fix: react 18 compitable
* chore: more test
* test: all confirm test
* chore: tmp
* chore: test lib
* chore: tmp
* chore: tmp
* test: back of part
* test: back of menu index test
* test: more test
* test: form test
* test: rm IE11 test case
* chore: fix compatible
* chore: clean up
* chore: back of all test case
* test: ignore 18 lines
* chore: remove render test of enzyme in upload
* test: back of IE11 test case to fit 100% coverage
* chore: fix pkg deps
3 years ago
MadCcc
6776bb8916
docs: demo support react18 ( #34843 )
* docs: update demo
* chore: add script
* test: fix demo test
* docs: convert demos
* chore: move script
* test: remove react-dom import
* chore: update deps
* docs: update riddle js
* test: fix image test
* docs: fix riddle demo
3 years ago
CommanderRoot
7c34addf57
refactor: replace deprecated String.prototype.substr() ( #34498 )
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with functions which aren't.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
3 years ago
Dave
780da54c3b
fix(upload): onChange params type err ( #34161 )
* fix(upload): onChange params type err
* test(upload): check onChange params type
3 years ago
二货机器人
31fb55adf3
chore: btn default provide default cls ( #34013 )
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
Eliot Sanford
a65ba8aa8a
docs: update sentence structure in the FAQ section ( #33816 )
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
7caa03e2ef
docs: fix update demo
3 years ago
Ryan Lee
a29154e67a
docs: update upload-png-only demo ( #33544 )
[[English Template / 英文模板](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE.md )]
### 🤔 这个变动的性质是?
- [ ] 新特性提交
- [ ] 日常 bug 修复
- [ ] 站点、文档改进
- [x] 演示代码改进
- [ ] 组件样式/交互改进
- [ ] TypeScript 定义更新
- [ ] 包体积优化
- [ ] 性能优化
- [ ] 功能增强
- [ ] 国际化改进
- [ ] 重构
- [ ] 代码风格优化
- [ ] 测试用例
- [ ] 分支合并
- [ ] 其他改动(是关于什么的改动?)
### 🔗 相关 Issue
无
### 💡 需求背景和解决方案
无
### 📝 更新日志
| 语言 | 更新描述 |
| ------- | -------- |
| 🇺🇸 英文 | |
| 🇨🇳 中文 | |
### ☑️ 请求合并前的自查清单
⚠️ 请自检并全部**勾选全部选项**。⚠️
- [x] 文档已补充或无须补充
- [x] 代码演示已提供或无须提供
- [x] TypeScript 定义已补充或无须补充
- [x] Changelog 已提供或无须提供
3 years ago
二货机器人
2df11184f4
test: Demo check popup content ( #33378 )
* auto demo
* chore: update demo snapshot
* fix: trigger mock ref logic
* chore: try 2 test case
* chore: more snapshot
* chore: update snapshot
* chore: fix ts
* chore: split test
* test: Update test case
* chore: fix test order
3 years ago
Michał Podeszwa
0f8fc6f2d2
Add Capture prop to Upload Component Typescript Definition ( #33370 )
Co-authored-by: Michał Podeszwa <178679-michalpodeszwa@users.noreply.gitlab.com>
3 years ago
afc163
2df7cc6f30
fix: Upload `data` type ( #33193 )
* fix: Upload `data` type
* fix eslint errors
3 years ago
afc163
b34f72b1b6
test: fix ci warnings ( #33160 )
3 years ago
afc163
ef8179e6b5
chore: remove react-virtualized from demo
3 years ago
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 ( #32824 )
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0
Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript ) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases )
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0 )
---
updated-dependencies:
- dependency-name: eslint-config-airbnb
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* chore: code style
* memoize-one
* add comment
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* improve useMemo deps
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
afc163
7065e03493
style: fix Upload picture loading style ( #32664 )
3 years ago
dependabot[bot]
b445baa001
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 ( #32451 )
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2
Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier ) from 8.0.2 to 9.0.2.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases )
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2 )
---
updated-dependencies:
- dependency-name: stylelint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: autofix stylelint errors
* chore: autofix stylelint errors
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
afc163
ff8c95540c
test: add test for Upload previewIcon ( #32457 )
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
xrkffgg
4af66fbc9f
fix: Upload icon error background ( #32051 )
3 years ago
FJHou
7eb9c89933
docs: 修复upload-sorting.md在jsx语法中使用了ts类型 ( #31906 )
修复upload-sorting.md在jsx语法中使用了ts类型
3 years ago
afc163
9f0dbf2b4d
chore: upgrade to jest 27 ( #30783 )
* chore: upgrade devDeps
* upgrade @ant-design/tools
* support CSS Minification
* test: jsdom as testEnvironment
* fix setImmediate
* update snapshot
* fix test
* fix test
* fix test
* fix test
4 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
Kermit
3ee634ba4c
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
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
Kermit
dd88e30586
fix(upload): beforeUpload type definition ( #30351 )
* fix(upload): beforeUpload type definition
* chore: optimize test case
* chore: update test
4 years ago
afc163
ab83346a5a
Update avatar.md
4 years ago
Kermit
4ccbf1fd0f
fix(upload): UploadFile type definition ( #30343 )
4 years ago
叶枫
d50a8e66fb
fix: Upload drag demo ( #30259 )
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
a836b582ab
fix(upload): type definition of beforeUpload ( #30213 )
4 years ago
Kermit
1f1aa86441
fix(upload): should work correctly when url of file is null ( #30215 )
* fix(upload): should work correctly when url of file is null
* fix: lint
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
zombiej
a1baecbd2f
test: Always wait for motion ended
4 years ago
einq7
4f52d7f964
docs: fix typography mistake in Upload section ( #29912 )
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
Kermit
7fdfa4e64d
fix(upload): beforeUpload type declaration ( #29766 )
* fix(upload): beforeUpload type declaration
* chore: update doc
4 years ago
xrkffgg
135f39ddd4
Update components/upload/index.zh-CN.md
4 years ago
xrkffgg
d05112427a
Update components/upload/index.en-US.md
4 years ago
Eric Lee
55aa0f457b
code review
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
Eric Lee
02e0611412
docs: Update Upload Docs
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
二货机器人
a4a009cb62
fix: Lodash can clone FileProxy ( #29718 )
* fix: Lodash can clone FileProxy
* fix: Proxy content
* clean up
* fix lint
* test: get keys
* test: Update coverage
* back of demo
4 years ago
afc163
547f87ebfe
chore( 🆙 ): upgrade react-dnd in table and upload demo ( #29724 )
4 years ago