Commit Graph

11387 Commits

Author SHA1 Message Date
Eric Wang
64cb9584ce
fix: include tests in type check (#23452)
* fix: include tests in type check

* Do lint *.md

* Improve types in tests
2020-04-22 13:37:23 +08:00
Eric Wang
55265ac4ef
chore: Replace domhook with jest.spyon (#23469)
* chore: Replace domhook with jest.spyon

* use mockreturn value when possible

* Update tests/shared/focusTest.js
2020-04-22 11:59:56 +08:00
xrkffgg
677168b007
style: optimize tabs rtl style (#23471) 2020-04-22 11:57:06 +08:00
偏右
7935651899
style: select arrow won't rotate now (#23468)
* style: 💄 Select arrow won't rotate when open

* Update index.less
2020-04-22 11:54:13 +08:00
Tom Xu
cf3d611f59
refactor(tag): rewrite with hook (#23466)
* refactor(tag): rewrite with hook

* fix lint
2020-04-22 10:59:24 +08:00
偏右
a4c07fc0af
Merge pull request #23465 from ant-design/master
chore: merge master into feature
2020-04-22 10:42:00 +08:00
二货机器人
a1e0c41c8b
feat: ConfigProvider support config Input autoComplete (#23455)
* support autoComplete

* update doc

* fix lint
2020-04-22 10:38:43 +08:00
xrkffgg
d7e97aa996
style: optimize tag rtl style (#23464) 2020-04-22 10:00:59 +08:00
Tom Xu
4a3e01ff0b
refactor(input-number): rewrite with hook (#23461) 2020-04-22 09:48:10 +08:00
pdeva
3e22b505a3
fix: proper react import (#23381)
* proper react import

fix for #22708

* update iconutil in select

* update in tree component
2020-04-22 09:37:46 +08:00
偏右
db97c5788e
chore: add remark lint (#23457)
* 💄 Add remark lint for markdown files

* 💄 Add remark lint for markdown files

* 💄 Add remark lint for markdown files
2020-04-21 23:40:41 +08:00
二货机器人
1163d8e23d
docs: Update demo (#23451) 2020-04-21 23:26:41 +08:00
xrkffgg
5e09660a3e
fix: collapse default position in rtl (#23445)
* fix: collapse default position in rtl

* update snap

* up

* fix

* fix

* fix var

* fix
2020-04-21 23:23:37 +08:00
偏右
428b07625c
fix: Select arrow cannot trigger open (#23448)
close #23447
2020-04-21 18:03:47 +08:00
Amumu
17c63e52bf
chore: improve less variable @form-item-margin-bottom (#23436)
* improve @formItemMarginBottom

* Revert "improve @formItemMarginBottom"

This reverts commit 6d8da5bdb9.

* update style
2020-04-21 17:48:15 +08:00
偏右
02faa4bcf1
💄 tweak Table selected row hover background (#23313) 2020-04-21 16:53:06 +08:00
偏右
4902c5a4f0
docs: 📖 update Form ts demo for createRef (#23440)
close #23417
2020-04-21 16:42:56 +08:00
偏右
8bd8eee573
fix: first Divider render bug (#23438)
close #23432
2020-04-21 16:16:13 +08:00
xrkffgg
f467df5fe2
feat: add rtl calendar (#23394) 2020-04-21 15:29:36 +08:00
偏右
1dab17eef0
feat: 💄 Divider support plain for lighter style (#23405)
* 💄 Divider support `asHeading` for lighter style

*  fix demo snapshot

* docs: 📖 Divider asHeading documentation

* fix tsd

*  fix demo snapshot

* asHeading to plain

*  fix demo snapshot

* fix css
2020-04-21 14:16:33 +08:00
偏右
c3e263f2f2
chore: 🚮 remove console (#23431) 2020-04-21 11:47:09 +08:00
xrkffgg
6d238a734d
feat: search rtl (#23424) 2020-04-21 11:25:53 +08:00
偏右
2c86aebfa3
Merge pull request #23426 from ant-design/master
chore: merge master into feature
2020-04-21 11:24:57 +08:00
二货机器人
5a10d29796
fix: ConfigProvider with nest prefixCls (#23423)
* fix: ConfigProvider with nest prefixCls

* update

* update

* update
2020-04-21 11:16:33 +08:00
xrkffgg
3d76859bbc
style: add dropdown group title rtl style (#23404)
* style: add dropdown group title rtl style

* fix margin

* fix lint
2020-04-21 10:49:59 +08:00
二货机器人
1d50004644
feat: Typography support onEllipsis (#23414)
* feat: support onEllipsis

* add test case

* update doc
2020-04-21 10:13:57 +08:00
二货机器人
ac7865a6fc
chore: Adjust search style (#23406)
* chore: Adjust search style

* fix lint

* Update demo.test.js.snap

* update style

* update cover area

* area it
2020-04-21 09:41:09 +08:00
偏右
fc98ab7222
test: increase test cov for Layout and Typography (#23407) 2020-04-20 19:18:53 +08:00
xrkffgg
089591ac34
style: add steps disabled style (#23402) 2020-04-20 17:05:41 +08:00
xrkffgg
f748c4ef17
style: optimize pageheader rtl style (#23401) 2020-04-20 16:50:38 +08:00
xrkffgg
0b6d34d474
style: optimize statistic rtl style (#23397) 2020-04-20 16:29:30 +08:00
xrkffgg
e2dacde754
style: fix button loading rtl (#23399) 2020-04-20 16:25:43 +08:00
xrkffgg
757c57622b
feat: add rate direction (#23321)
* feat: add rate direction

* fix: remove css

* remove classname
2020-04-20 11:05:27 +08:00
偏右
54d050324a
🐛 Fix Carousel tabindex in non-active slide (#23380)
close #23294
2020-04-19 01:28:54 +08:00
偏右
76ee9668ef
docs: 📖 update react-slick API link (#23379)
* Update index.en-US.md

* Update index.zh-CN.md
2020-04-19 00:51:56 +08:00
偏右
fabec4831c
Merge pull request #23377 from ant-design/master
chore: Merge master into feature
2020-04-18 23:54:51 +08:00
Tom Xu
6e1ffb96ca
fix: Input.Search ConfigProvider size (#23331)
* fix: Input.Search ConfigProvider size

* Update Search.tsx

* add test

* Update size.md
2020-04-18 18:31:03 +08:00
Tom Xu
50416b3a7b
improvement: Form default locale (#23165)
* improve: Form default locale

* fix lint

* fix lint

* improve form doc

* add test case

* improve form validate messages
2020-04-18 13:18:51 +08:00
Tom Xu
09e69c385e
refactor(button): rewrite with hook (#23367) 2020-04-18 13:06:04 +08:00
偏右
f4c489553f
fix: Modal.info onOk execute times (#23360)
* refactor: modal confirm onOk code

* fix: Modal.xxx onOk execute time when has close argument

close #23358

* Add test case

* fix lint
2020-04-18 01:09:14 +08:00
Eric Wang
95f6f0f14a
Chore: Refactor affix test to typescript (#23364) 2020-04-18 00:31:31 +08:00
Amumu
c70b49a709
fix: fix tree key ts type (#23348)
* fix tree key ts type

* revert snap
2020-04-17 23:31:39 +08:00
Amumu
5e7f3cc67e
firstActiveValue has been deprecated, remove it (#23354) 2020-04-17 18:10:10 +08:00
kenve
edcd1b2609
docs(components): improve link (#23355) 2020-04-17 17:56:42 +08:00
偏右
8ab146220e
💄 Fix Input[type=color] height (#23351)
close #23334
2020-04-17 16:04:20 +08:00
xrkffgg
6c451865eb
site: add title upload picture-card (#23312)
* style: fix modal body padding without header

* change demo

* add url
2020-04-17 14:28:18 +08:00
xrkffgg
7d5910faf0
style: fix menu rtl style (#23319) 2020-04-16 17:40:13 +08:00
二货机器人
7e9fe271ed
feat: Space support align (#23306)
* support align

* update demo & snapshot

* update comment

* update docs

* Update components/space/index.en-US.md

Co-Authored-By: 骗你是小猫咪 <darryshaw@gmail.com>

* update doc

Co-authored-by: 骗你是小猫咪 <darryshaw@gmail.com>
2020-04-16 12:28:04 +08:00
Misha Kav
cff24d5dcb
add missings translations in he_IL (#23302) 2020-04-16 10:08:37 +08:00
Misha Kav
f9cb1522f3
add missing translations in ru_IL (#23303) 2020-04-16 10:07:38 +08:00
偏右
0716d1498f
fix: Dropdown submenu background (#23296)
* 🐛 Fix Dropdown submenu background

close #23293

* remove unused code
2020-04-15 23:00:51 +08:00
二货机器人
f7d1d41220
fix: multiple selector disabled remove icon (#23295)
* fix: Select remove icon

* revert demo
2020-04-15 22:54:59 +08:00
偏右
ff509bccd0
fix: optimize PageHeader responsive behavior (#23277)
* 💄 optimize PageHeader responsive behavior

close #23260

*  add test case

* remove console
2020-04-15 12:44:35 +08:00
偏右
c7cc8d40c8
🐛 Select custom suffixIcon could be operated (#23274)
close #23263
2020-04-15 11:29:38 +08:00
二货机器人
c2a1fe5b1f
docs: Update Table edit row example (#23270) 2020-04-15 10:39:16 +08:00
二货机器人
9c08bb2482
docs: Add listHeight desc (#23268) 2020-04-15 10:04:01 +08:00
二货机器人
02d7292576
fix: Input inline allowClear style (#23259)
* fix: Input allow clear icon

* update test case

* update snapshot
2020-04-14 23:04:23 +08:00
Dongcheng Wang
ac5050f4ed
doc(slider): value & defaultValue not consistent with definition (#23252) 2020-04-14 19:33:49 +08:00
nick
87da7bfe67
feat: add custom isImgurl prop to Upload Component (#23248)
* feat: customize isImageUrl support

* docs: Update Upload doc

* docs: Add isImgUrl default implement link

* docs: update default link address
2020-04-14 19:32:16 +08:00
zefeng
efd25100a5
fix: tree-select render blank in compact mode (#23231) 2020-04-14 19:17:42 +08:00
偏右
4ad5830eec
fix: Select caret missing in Collapse (#23250)
close #23059
close #23175
2020-04-14 18:20:24 +08:00
Christian Fleschhut
54b11b2ae3
docs(Empty component): 📖 Fix typo in image prop description (#23251) 2020-04-14 18:20:14 +08:00
Tanmoy Bhowmik
e3d2754b1d
fix: Fix popupClassName prop in timepicker (#23214)
* fix(time-picker): combine dropdownClassName and popupClassName prop

* test(time-picker): add test for popupClassName and dropdownClassName prop

* chore(time-picker): add demo for popupClassName prop

* test(time-picker): remove rc-picker dependency

* doc(time-picker): change default prop of popupClassName to undefined

* fix(time-picker): remove the use of dropdownClassName

* Apply suggestions from code review

Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-14 16:49:58 +08:00
Evan Charlton
58c6900175
chore: Fix console warning typo (validate -> valid) (#23240)
Clean up the typos in the helpful console warning messages which get
emitted if the incorrect prop is passed to certain components.
2020-04-14 16:48:23 +08:00
xrkffgg
1855fef437
fix: fix select rtl (#23235)
* fix: fix select rtl

* fix lint

Co-Authored-By: Amumu <yoyo837@hotmail.com>

Co-authored-by: Amumu <yoyo837@hotmail.com>
2020-04-14 16:42:39 +08:00
二货机器人
c338569cff
docs: Update Form required desc (#23238)
* Update index.zh-CN.md

* Update index.en-US.md
2020-04-14 15:41:15 +08:00
Rustin
13fda44fb1
refactor(skeleton): rewrite with hook (#23206)
* refactor(skeleton): rewrite with hook

* fix(skeleton): refine lint and compile issues

* fix(skeleton): refine compile issues

* chore: ignore eslint warning
2020-04-14 10:30:14 +08:00
二货机器人
8c11676afa
fix: Table selection childrenColumnName not work (#23205)
* fix childrenPropName

* test case

* update test case
2020-04-13 22:56:26 +08:00
Eric Wang
436d4b1be5
improvement: Fix types in form item (#22962)
* Fix types in form item

* use jsx.element
2020-04-13 21:30:55 +08:00
afc163
3f4f5864fe fix test case which fails a lot 2020-04-13 20:38:31 +08:00
afc163
59c0cdf3a2 fix test case which fails a lot 2020-04-13 20:21:30 +08:00
HouXiancheng
8c3081788c
fix: table fixed bug (#23181) 2020-04-13 19:32:50 +08:00
二货机器人
ca93757747
fix: vertial from label height (#23192) 2020-04-13 16:59:05 +08:00
xrkffgg
fca1367085
feat: add notification rtl config (#23185)
* feat: add notification rtl config

* test: add test
2020-04-13 15:45:49 +08:00
xrkffgg
d160016959
style: fix steps rtl (#23183) 2020-04-13 13:53:42 +08:00
Eric Wang
7bc3d4f222
chore: Refactor the button test to use typescript (#22953)
* Refactor the button test to use typescript

* update tsconfig.json

* Change file name as a workaround

* update antd-tools
2020-04-13 13:36:23 +08:00
HouXiancheng
653724b79e
fix: tabs_animation_bug (#23151)
* fix: tabs_animation_bug

* fix: fix lint error

Co-authored-by: 侯先诚 <houxiancheng@houxianchengdeMacBook-Pro.local>
2020-04-13 12:19:06 +08:00
二货机器人
de68e37da2
fix @tabs-card-height (#23168) 2020-04-12 21:01:14 +08:00
二货机器人
12ce6aba06
fix: Safari12 fixed column (#23161)
* fix: Safari12 fixed column

* fix lint
2020-04-12 17:55:30 +08:00
二货机器人
6bb6c4c243
small size (#23160) 2020-04-12 15:33:43 +08:00
afc163
78ec790311 resolve merge conflict 2020-04-12 14:44:29 +08:00
afc163
89ce33f5d8 update snapshot 2020-04-12 12:55:42 +08:00
Chiciuc Nicușor
eb90c5b0a0
fix: Use ElementOf<T> instead of array indexing (#23132) 2020-04-11 20:46:09 +08:00
二货机器人
deafd3fcce
fix: compact group style (#23149)
* fix: compact group style

* updat snapshot
2020-04-11 20:33:08 +08:00
Joker Wang
f93f86123e
fix: Pagination missing showTitle (#23134) (#23144)
* fix: Pagination missing showTitle (#23134)

* Update Chinese description of showTitle

Co-Authored-By: 偏右 <afc163@gmail.com>

Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-11 16:36:12 +08:00
Chris Young
ca616647ce
modify table size.less to accomodate size prop for footer padding (#23140) 2020-04-11 16:11:28 +08:00
二货机器人
50d908662e
docs: Update Form FAQ (#23138)
* docs: Update Form FAQ

* Update index.en-US.md
2020-04-11 10:30:05 +08:00
偏右
bfd5d7c910
fix: PageHeader style breaks when title is too long (#23133)
* fix: PageHeader style breaks when title is too long

close #15664

*  update snapshot

* 💄 Improve PageHeader responsive design
2020-04-10 19:25:31 +08:00
二货机器人
49acc871b9
chore: Fix compile error (#23131) 2020-04-10 18:47:08 +08:00
afc163
b5dd56611b test: fix form test case 2020-04-10 17:05:24 +08:00
二货机器人
410de6112f
fix: Button loading switch animation (#23102)
* init

* motion it

* update snapshot

* adjust speed

* update snapshot

* Update index.less

* fix opacity mask

Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-10 15:39:07 +08:00
二货机器人
d968fce4dc
chore: Add warning for async (#23118) 2020-04-10 14:13:14 +08:00
二货机器人
f3df9ec894
fix: Input background with dark mode (#23115) 2020-04-10 13:13:30 +08:00
偏右
8e56354de2
💄 Tweak Table hover background color (#23113) 2020-04-10 13:04:53 +08:00
二货机器人
a106319934
fix: Table selection style (#23110) 2020-04-10 12:08:10 +08:00
二货机器人
9b9839d4d9
docs: Update Form normalize desc (#23108)
* docs: Update Form normalize desc

* Update index.en-US.md
2020-04-10 11:38:02 +08:00
xrkffgg
2cbad48ace
style: optimize select dropdown style in rtl (#23097) 2020-04-09 21:03:14 +08:00
二货机器人
37ad43bc9f
fix: Tabs bottom style (#23087)
* fix: Tabs bottom style

* fix lint
2020-04-09 17:31:13 +08:00
偏右
a8b976b802
docs: update Radio.Button (#23078)
* Update index.zh-CN.md

* Update index.en-US.md
2020-04-09 16:12:47 +08:00
二货机器人
4794bae529
fix: Calendar missing style (#23081) 2020-04-09 15:44:22 +08:00
xrkffgg
192146d2a2
style: optimize mentions dropdown in RTL (#23076) 2020-04-09 13:18:49 +08:00
二货机器人
ecf025548b
chore: adjust RangePicker style (#23074)
* adjust range color

* fix lint

* update color

* update dark logic

* adjust little of arrow

* use icon

* update font size

* update snashot
2020-04-09 13:18:13 +08:00
xrkffgg
e652eef04c
style: add rtl base (#22857)
* style: add rtl base

* fix: add test snap
2020-04-09 12:39:10 +08:00
xrkffgg
4d31ed8994
style: optimize datepicker rtl style (#22595)
* style: optimization datepicker rtl style

* fix icon in rtl

* fix: opt rtl
2020-04-09 12:38:53 +08:00
二货机器人
3c7626ede2
docs: update pagination related doc (#23046)
* update pagination related doc

* Update components/pagination/index.en-US.md

Co-Authored-By: 偏右 <afc163@gmail.com>

Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-09 10:52:02 +08:00
xiaofine1122
0b8cc13a07
docs: update tree->draggable demo forEach (#23055) 2020-04-08 23:33:42 +08:00
偏右
28c4f7f137
🐛 Fix menu dark theme not working in submenu (#23054)
close #23031
2020-04-08 22:44:26 +08:00
Nikita Bystrov
0a91df226f
fix(pagination): array support for position in types (#23048) 2020-04-08 22:18:44 +08:00
二货机器人
f42cdca081
chore: adjust RangePicker style (#23025)
* adjust range color

* fix lint

* update color

* update dark logic

* adjust little of arrow
2020-04-08 20:41:57 +08:00
二货机器人
70eaea6978
clean up when field reset removed (#23041) 2020-04-08 18:47:59 +08:00
二货机器人
f9713bf988
chore: Remove uesless event handler (#23036) 2020-04-08 16:52:37 +08:00
二货机器人
a582da3d3d
docs: Update tag demo to support edit (#23032)
* support edit

* update snapshot
2020-04-08 16:23:12 +08:00
Jehu
de38c681cf
fix: long submenu title display (#23028)
* fix: long submenu title display

* fix: long submenu title display (rtl)
2020-04-08 16:18:18 +08:00
zombiej
1ca45ac8fe chore: Update snapshot 2020-04-08 16:11:01 +08:00
Jay Fong
9c72b34671
chore(Badge): improve Badge color types (#23026) 2020-04-08 13:41:32 +08:00
二货机器人
5840b92326
fix: IE11 Select flex (#23020)
* fix: IE11 flex

* align issue
2020-04-08 12:31:37 +08:00
afc163
b8af3de2a0 docs: 📖 virtual default value 2020-04-08 10:52:55 +08:00
Jay Fong
ed5abc246c
chore(Input): improve type types (#23006) 2020-04-08 10:43:37 +08:00
二货机器人
4e3c58f2ba
fix form status (#23004) 2020-04-07 22:51:54 +08:00
Jay Fong
b41301b168
chore(Tag): improve color types (#22999) 2020-04-07 22:10:07 +08:00
二货机器人
77d45690c0
feat: Form.Item support initialValue & getValueProps (#22993)
* add getValueProps

* field initialValue

* add faq
2020-04-07 21:57:27 +08:00
zombiej
b0f0a32865 docs: Form doc add version column 2020-04-07 20:43:19 +08:00
偏右
763f7a8a73
style: 💄 tweak Select cuosor position (#22978)
close #22906
2020-04-07 15:41:16 +08:00
偏右
c6a1c3f743
test TransButton focus and blur (#22979) 2020-04-07 15:41:05 +08:00
xrkffgg
de86bf7bd4
style: optimize select dropdown show in rtl (#22984) 2020-04-07 15:40:13 +08:00
zefeng
4bfc2790cb
fix(menu): fix submenu style in dark mode (#22981)
fix #22949
2020-04-07 13:32:29 +08:00
二货机器人
7571372781
fix: Not break input group style (#22975) 2020-04-07 11:25:48 +08:00
xrkffgg
934fe16690
style: add anchor rtl (#22875) 2020-04-07 10:55:36 +08:00
偏右
8dbaf66c2b
fix: confirm button should only trigger once (#22963)
close #22861
2020-04-06 21:57:51 +08:00
Chiciuc Nicușor
1321d90e8b
Replace NativeButtonProps with ButtonProps for okButtonProps and cancelButtonProps. (#21165) (#22913) 2020-04-06 13:00:41 +08:00
afc163
e1b567d3cf fix lint 2020-04-06 12:15:28 +08:00
Eric Wang
095e21220f
chore: Introduce customer jest match to support matchRenderedSnapshot (#22947)
* Introduce customer jest match to support matchRenderedSnapshot

* lint:tsc stop emiting
2020-04-06 12:05:38 +08:00
骗你是小猫咪
c4fb9edfe0
chore: export form value type (#22755) 2020-04-06 11:32:59 +08:00
二货机器人
5c4db907c5
fix: Statistic show -0 (#22950) 2020-04-06 11:19:44 +08:00
dpyzo0o
69daa6fea7
fix: improve typing of upload component (#22921) 2020-04-05 22:26:13 +08:00
Calin Vlad
4ed2d6a44d
docs: update DatePicker docs to specify correct monthCellRender prop insted of monthCellContentRender (#22946) 2020-04-05 22:18:14 +08:00
偏右
6fc0ca089e
Update index.en-US.md 2020-04-05 21:49:28 +08:00
Eric Wang
316b925f94
chore: Use unreachable exception in favor of type safety (#22933)
* Use unreachable exception in favor of type safety

* Add tests

* add test
2020-04-05 21:18:28 +08:00
偏右
d634184b58
🐛 Fix Notification invalid padding-top css (#22941)
close #22935
2020-04-05 20:57:08 +08:00
zefeng
d0f81decbb
fix: fix menu and spin style in compact mode (#22908)
* fix: fix menu and spin style in compact mode

* patch
2020-04-05 12:04:22 +08:00
zefeng
4e20ed2b41
fix(rtl): fix radio rtl overrided by theme (#22926) 2020-04-04 22:27:11 +08:00
xrkffgg
18d424e5f6
style: add message rtl (#22513)
* style: add message rtl

* fix: change config

* fix: add rtl test
2020-04-04 13:35:36 +08:00
Chiciuc Nicușor
f67d09b28e
fix: Extract type of the element of a tuple without indexing. (#22916)
* Extract type of the element of a tuple without indexing.

* Amend ElementOf<T> to also support readonly arrays.
2020-04-04 12:32:56 +08:00
偏右
b317b7cd67
style: 🐛 Fix multiple Select large size (#22904)
close #22900
2020-04-03 23:11:14 +08:00
Rohan Bagchi
d45d4bbd28
Updating document to correct few typos (#22902) 2020-04-03 22:45:39 +08:00
Yu
e852433ef3
fix: FilterDropdownProps TypeScript definition update (#22895) 2020-04-03 20:15:27 +08:00
二货机器人
75524df190
fix jsx filter not work (#22888) 2020-04-03 16:32:50 +08:00
二货机器人
89abacac31
fix: Input affix prevent dropdown focus (#22887)
* adjust focus logic

* update logic
2020-04-03 16:11:41 +08:00
偏右
b369717181
chore: 🦄 Add eslint-plugin-unicorn (#22883)
* 🦄 Add eslint-plugin-unicorn

* fix eslint errors

* fix eslint errors

* fix lint demo

* fix lint demo
2020-04-03 15:02:11 +08:00
二货机器人
1e5c527146
fix: Table header columns size with filter or sorter (#22872)
* fix size columns

* update snapshot

* more test code

* patch

* force ci

* fix hover small style

* adjust less
2020-04-03 13:42:57 +08:00