Commit Graph

9267 Commits

Author SHA1 Message Date
zombieJ
e1a1cdaa4d
docs: Add TreeSelect get parent in FAQ (#15834)
* add faq

* adjust url
2019-04-03 18:20:01 +08:00
偏右
ad99b4322d test: Add eslint-plugin-jest (#15825) 2019-04-03 15:54:26 +08:00
偏右
fc8977b627
Merge pull request #15808 from liaoyinglong/master
Update dynamic-form-item.md
2019-04-03 14:25:09 +08:00
zombiej
f206a923be rm only in test 2019-04-03 13:45:32 +08:00
zombieJ
87a9c421a2
fix: Fix Table filter display issue when use non-string type (#15817)
* fix filter display logic

* update test case
2019-04-02 22:06:51 +08:00
zombieJ
6b2d72e2c1
fix: badge should accept negative number (#15810)
* fix badge negative number

* support negative as count
2019-04-02 19:01:12 +08:00
zombiej
30b3fcdc18 update demo of dynamic form 2019-04-02 17:40:50 +08:00
廖应龙
065896f53b
Update dynamic-form-item.md
delete unnecessary props
2019-04-02 14:33:47 +08:00
afc163
0bf222c664
📝 Improve Empty doc 2019-04-02 10:26:45 +08:00
Andrés
615ea0cb2e
Fix Documentation 2019-04-01 15:05:50 +02:00
Pierre
1ff849ce4d
Avoid react doesn't have default export 2019-04-01 13:50:54 +02:00
zombieJ
0f49dd2ebf
Merge pull request #15784 from ant-design/merge-feature
Master merge feature
2019-04-01 15:24:10 +08:00
偏右
9d06bec8dd 🐛 Fix components covered by Table fixed columns (#15782)
Reset @zindex-table-fixed to auto

close #15780
close #15499
2019-04-01 15:05:40 +08:00
zombiej
41f2316370 Merge branch 'feature' into merge-feature 2019-04-01 14:51:18 +08:00
alex89lj
e3b252b527 Fixed an issue about the component(RangePicker) could not select the … (#15427)
close #13302
2019-04-01 14:49:40 +08:00
zombieJ
550ff72e1e
Merge pull request #15775 from ant-design/merge-feature
Merge feature
2019-04-01 11:07:45 +08:00
zombiej
2c693ee95b merge feature 2019-04-01 10:22:43 +08:00
Ben Callaway
a49caabe00 Add name attribute support to Checkbox.Group (#15760)
* Update Checkbox documentation
2019-04-01 10:16:18 +08:00
afc163
1f2375deca
🎬 Remove useless badge demo 2019-04-01 10:15:15 +08:00
zombieJ
0fd0faa8a7
Update Card & PageHeader style (#15755)
* rm Card auto padding

* rm related test case

* adjust pageHeader to 24px

* use less variable

* adjust style
2019-03-31 22:39:26 +08:00
偏右
2cec053187
Merge pull request #15766 from ant-design/fix-missing-col-className
Fix col element missing relative style
2019-03-31 22:18:08 +08:00
afc163
95bd4d6903
🐛 Fix col element missing relative style
close #15626
2019-03-31 20:25:41 +08:00
zombieJ
75cd91a966
Badge support customize color (#15764)
* popout

* update snapshot

* update doc

* update def
2019-03-31 20:21:20 +08:00
zombieJ
aebb781000
Table style update. Move sort button after title (#15758)
* update style of sort icon

* update snapshot

* micro adjust

* little offset of arrow
2019-03-31 14:01:24 +08:00
Benjamin Amelot
f55ccfe81e Remove underlines from focused links (#15759) 2019-03-31 13:46:38 +08:00
ztplz
298a86f601 Add separator prop for RangePicker (#15765)
* Add `separator` prop for RangePicker

* Update
2019-03-31 12:59:37 +08:00
afc163
b56d6516da
💄 Fix Drawer demo extra styles
close #14202
2019-03-30 21:21:22 +08:00
jiang
e2495fafe0 Rm tag anim (#15233)
* rm tag default anim, add animate demo

* rm InnerTag

* rm animate

* rm afterClose test

* update warning

* update animation demo

* fix typo

* update wraning

* fix tag test

* rebase master, test tag

* update tag to Tag

* update animation explanation

* update en-us
2019-03-30 20:36:35 +08:00
zombiej
b83a80c99c Merge branch 'master' into merge-master 2019-03-30 16:05:49 +08:00
偏右
25fb4a2353
Merge pull request #15705 from zy410419243/issue-15625
fix: MenuItem should not render Tooltip when inlineCollapsed is false
2019-03-30 13:08:08 +08:00
偏右
ddf9dd5bef
Merge pull request #15753 from ztplz/checkbutton
Add name prop for checkbox group
2019-03-30 12:59:11 +08:00
ztplz
2a875ee149 Add name prop for checkbox group 2019-03-30 10:47:03 +08:00
Andrés
a46f6df572
Update documentation
Universalize the default props
2019-03-29 13:43:33 +01:00
ztplz
55c1be3b54
Merge pull request #15720 from wx1322/check-className
Layout.Sider of collapsible type throws error
2019-03-29 15:57:02 +08:00
偏右
1a68d4e11a
Merge pull request #15719 from DJanoskova/master
Button: add default html type + fix switch
2019-03-29 10:22:20 +08:00
wangxing
27445c6722 Merge branch 'master' into check-className 2019-03-29 08:38:18 +08:00
wangxing
1f60f37907 check SVGAnimatedString 2019-03-29 08:37:25 +08:00
陈帅
8a4857d91f better ts type 2019-03-28 18:57:13 +08:00
陈帅
e9df687df5 better ts type 2019-03-28 18:55:52 +08:00
wangxing
44ad6b0c07 fix-15699 2019-03-28 17:04:26 +08:00
Dana Janoskova
a543c7db6a add default html type + fix switch 2019-03-28 09:58:37 +01:00
babycannotsay
c3a6e47cc3
fix prop 'onLoaded' of TreeProps
set onLoaded to onLoad in order to be same as rc-tree
2019-03-28 16:20:59 +08:00
afc163
47084696b9
Fix snapshot 2019-03-28 12:25:44 +08:00
afc163
acd1123df9
🐛 Fix Spin style when indicator is Icon
close #15693
2019-03-28 12:20:12 +08:00
zy410419243
ae8b52c290 fix: MenuItem should not render Tooltip when inlineCollapsed is false 2019-03-28 10:55:26 +08:00
Ferdi Koomen
c6d044f744 - Fix for changes in @types/react (see issue #15700) 2019-03-27 22:28:59 +01:00
偏右
f5746ae8ba
Merge pull request #15690 from ant-design/fix-tag-wrap
Revert tag wrap style
2019-03-27 18:39:02 +08:00
afc163
7105cbb552
🐛 revert tag wrap style
revert for https://github.com/ant-design/ant-design/pull/15526#issuecomment-477043058
2019-03-27 17:46:54 +08:00
jljsj33
eecf0a61bf support level 2 breadcrumb 2019-03-27 17:46:51 +08:00
偏右
bebbbe20f1
Merge pull request #15671 from levkovich2806/patch-1
Update index.en-US.md
2019-03-27 10:37:11 +08:00
Sergey Levkovich
0975eac8bf
Update index.en-US.md 2019-03-27 00:44:29 +03:00
afc163
e3559ffb32
🐛 Fix clear icon style in Input/Input.Search
close #15237
2019-03-26 22:40:10 +08:00
afc163
9f3ef09717
Fix demo snapshot 2019-03-26 22:40:10 +08:00
afc163
3a26573394
📝 Optimize prefix/suffix demo 2019-03-26 22:40:10 +08:00
偏右
a3cfbb1a94
Merge pull request #15654 from ant-design/test-focus-auto-complete
Add test case for AutoComplete
2019-03-26 22:38:30 +08:00
Sergey Levkovich
ae16e4df61
Update index.en-US.md
Add commas in object
2019-03-26 16:56:42 +03:00
Andrés
fa69687733
Fix minor misspelling in less template comment 2019-03-26 10:39:16 +01:00
afc163
94db815765
Add test case for AutoComplete 2019-03-26 15:33:33 +08:00
偏右
e752ec3414
Merge pull request #15638 from ant-design/master
Merge master to feature
2019-03-26 14:34:17 +08:00
偏右
f4a92d0997
Merge pull request #15541 from easyops-cn/add-radio-button-checked-bg
refactor: add @radio-button-checked-bg
2019-03-26 13:41:29 +08:00
afc163
f486c4e7e0
📝 Optimize Form TypeScript usage, #15642 2019-03-26 12:27:49 +08:00
afc163
a462c2ddf4
Fix react-dnd demo broken in react 15 2019-03-26 12:27:32 +08:00
zy410419243
c1bfa0d901 fix: conflicts 2019-03-25 21:48:18 +08:00
zy410419243
1e3efc4069 chore: remove unexpected mock restore 2019-03-25 21:48:18 +08:00
zy410419243
d1ed127030 pref: add missing mockRestore 2019-03-25 21:48:18 +08:00
zy410419243
355d58b0fa chore: update description 2019-03-25 21:48:18 +08:00
zy410419243
cdfdb2fa50 Revert "chore: remove unreachable code"
This reverts commit b438566fe315c424665a6d498cc60a6517ea238a.
2019-03-25 21:48:18 +08:00
zy410419243
acaff8dea2 pref: clearInterval should not be called before unmount 2019-03-25 21:48:18 +08:00
zy410419243
2ee56a9c4a pref: spy on clearInterval for Upload & check actions for Card 2019-03-25 21:48:18 +08:00
zy410419243
337e0285ec chore: remove useless test cases 2019-03-25 21:48:18 +08:00
zy410419243
86f5255c3e chore(Mention): skip react 15 2019-03-25 21:48:18 +08:00
zy410419243
af6716a2c7 pref(Mention): check Mention.Nav 2019-03-25 21:48:18 +08:00
zy410419243
2aca6fc51a pref(Menu): instance() => simulate 2019-03-25 21:48:18 +08:00
zy410419243
6571a29a55 pref: instance() => simulate, for Card 2019-03-25 21:48:18 +08:00
zy410419243
0c8e12661d chore: remove unreachable code for Card 2019-03-25 21:48:18 +08:00
zy410419243
a20536f850 chore: update type of Header 2019-03-25 21:48:18 +08:00
zy410419243
19dc14af5c refactor: abstract common method for comparison 2019-03-25 21:48:18 +08:00
zy410419243
cfe531a54a pref: use simulate function to replace calling functions in class 2019-03-25 21:48:18 +08:00
zy410419243
0d932f79b8 chore: remove any 2019-03-25 21:48:18 +08:00
zy410419243
cc8d8b05aa pref: call setProps rathor than componentDidUpdate 2019-03-25 21:48:18 +08:00
zy410419243
64b6197441 test: update cases for Mention 2019-03-25 21:48:18 +08:00
zy410419243
8eec4a801a chore: remove eslint-disable => add function name 2019-03-25 21:48:18 +08:00
zy410419243
316250936c test: update cases for Transfer 2019-03-25 21:48:18 +08:00
zy410419243
a5016a2a1f test: update cases for Affix 2019-03-25 21:48:18 +08:00
zy410419243
c289be6a8a test: update cases for Upload 2019-03-25 21:48:18 +08:00
zy410419243
53b9fd5204 test: update cases for Card 2019-03-25 21:48:17 +08:00
zy410419243
5e1531e50d test: update cases for Menu 2019-03-25 21:48:17 +08:00
zy410419243
ebbf07e233 chore: remove unreachable code 2019-03-25 21:47:25 +08:00
zy410419243
d17a5c49e5 test: update cases for Wave 2019-03-25 21:47:24 +08:00
zy410419243
375135b3fd test: update cases for Calendar.Header 2019-03-25 21:47:24 +08:00
偏右
788292ce51
Merge pull request #15625 from zy410419243/issue-15614
fix(Menu): remove unexpected re-render, which causes flash and shake when collapsed
2019-03-25 21:41:47 +08:00
afc163
14c1e68088
🐛 Fix Upload border jumping issue in Chrome
close #15634
2019-03-25 19:15:48 +08:00
zy410419243
5362d57265 test: update case 2019-03-25 19:07:22 +08:00
zy410419243
9dec5ecedc chore: remove useless context from Menu.Item 2019-03-25 18:37:15 +08:00
zy410419243
ad54d23a44 fix(Menu): remove unexpected re-render, which causes flash and shake when collapsed 2019-03-25 13:58:57 +08:00
krokofant
637b2e326d 👌 IMPROVE: Scoping styles for themeing 2019-03-24 17:52:14 +01:00
偏右
f3a07ac7ad
🐛 Fix disabled and selected date cell style of DatePicker (#15608)
close #15580
2019-03-24 19:50:58 +08:00
orzorzorzorz
1e8d3ce40d feat: support gradient line for Progress (#15524)
* try: init gradient line demo

* demo(Progress): update instructions

* chore: adjust default color

* test: update case and snapshots

* docs: update description for strokeColor

* docs: update for more in written

* test: correct type of Progress

* pref: support percent for strokeColor

* test: update snapshots

* test: update case

* pref: sort key for gradients

* fix: lgtm problem

* refactor: update output of sortGradient to string

* chore: make traversal more elegant
2019-03-24 17:05:24 +08:00
Hsuan Lee
baa5a7971f refactor(form-item): move ant-form-item-no-colon selector position (#15592)
* refactor(form-item): better `ant-form-item-no-colon` selector position

fix: fix lint

close #15585

* chore: update snap
2019-03-24 17:03:52 +08:00
杨小事er
a6a5e068eb fix(Input): fix password prop action (#15598)
* fix(Input): fix password prop action

* fix(InputPassword): add assert action is non-null
2019-03-24 16:21:48 +08:00
诸岳
6ae2ee4e31 Merge branch 'master' into feature 2019-03-24 08:41:22 +08:00
zefeng
d0a1196e63 remove useless param in tree doc (#15591) 2019-03-23 12:19:36 +08:00
偏右
9e0aa5cb94 🐛 Fix empty missing when Table is loading (#15583)
close #15582
2019-03-22 16:21:58 +08:00
偏右
7c7c61976a 🐛 Fix Select notFound align issue (#15570)
close #15567

close #14422 again
2019-03-22 11:35:40 +08:00
Bestie
267ad3402c modify interface ListLocale.emptyText from text to ReactNode (#15571) 2019-03-21 22:18:58 +08:00
DiamondYuan
4eb33eb149 fix: set min-width instead of width (#15547)
* fix: set min-width instead of width

* test: updte snapshots
2019-03-21 11:31:58 +08:00
Marcio Pamplona
4ad71cb3af Included pt_PT table sort title description (#15551) 2019-03-21 10:12:57 +08:00
偏右
4da56cd06c Refactor Avatar scale calculate logic (#15503)
* 🐛 Refactor Avatar scale calculate logic

close #15351

close #15468

*  Fix infinite loop

* 🐛 Fix avatar size change logic

*  Fix snapshot

*  Add test cases for Avatar setScale

* 🐛 getBoundingClientRect => offsetWidth

*  Fix snapshot
2019-03-21 10:07:56 +08:00
偏右
06745a6548 🐛 Fix notification icon color (#15530)
close #15512
2019-03-20 18:37:56 +08:00
afc163
f95d8e616d
Remove core-js from devDeps 2019-03-20 18:32:39 +08:00
DiamondYuan
addc7bd266 feat: Improve Empty component again (#15487)
* feat: rewrite component empty

* refactor: use static variable

* refactor: extraction function for component empty

* docs: update docs and demo

* feature: image add image style prop

* docs: update doc of component empty

* docs: add since comment to imageStyle prop

* test: update snapshots

* style: use number in style

* docs: update docs of component empty

* docs: update doc of component empty

* test: fix test broken

* docs: update docs for empty component

* refactor: rewrite empty component

* docs: update doc of component empty

* doc: change image size
2019-03-20 17:45:35 +08:00
William Cai
57c20e3622 refactor: add @radio-button-checked-bg 2019-03-20 16:46:23 +08:00
kapiroska
73c4bd6c3d Long Tag component is wrapped if it is longer than screen size 2019-03-19 17:15:55 +02:00
偏右
f5f81820cd
Merge pull request #15515 from easyops-cn/add-select-dropdown-menu-item-selected-font-weight
refactor: add @select-item-selected-font-weight
2019-03-19 18:38:01 +08:00
zombieJ
0dadee3233
revert input (#15516) 2019-03-19 18:33:31 +08:00
William Cai
15781d706a refactor: add @select-item-selected-font-weight 2019-03-19 18:09:11 +08:00
Cong Zhang
bc4303b98a Allow font-feature-settings to be customizable 2019-03-19 15:03:52 +08:00
偏右
810f2b21f0
Merge pull request #15502 from ant-design/fix-doc
Optimize some docs
2019-03-19 11:56:21 +08:00
afc163
bd27b6b836
📝 Optimize some docs 2019-03-19 11:44:00 +08:00
偏右
ac39baf4f1
Update index.en-US.md 2019-03-19 10:50:36 +08:00
Denis
eacf35dbad Modal footer bg (#15469)
* Add less variable @modal-footer-bg

* Fix less variable @modal-footer-bg

* Update components/style/themes/default.less

Co-Authored-By: shumkovdenis <shumkovdenis@gmail.com>
2019-03-18 23:56:40 +08:00
willc001
3a2e1abfa7 refector: add @form-explain-font-size (#15488) 2019-03-18 18:44:08 +08:00
afc163
18d070d2d4
🆙 upgrade es6-shim version 2019-03-18 15:34:33 +08:00
zombieJ
96206ade58
adjust table editable row demo (#15475)
* adjust demo

* rm only
2019-03-18 15:28:42 +08:00
Denis
360eefc7d5 Add less variable @modal-body-padding (#15476) 2019-03-18 15:07:14 +08:00
DiamondYuan
972840e74d feat: Improve Empty component (#15444)
* feat: empty support imageSize prop

* docs: update demo for empty component

* docs: update docs for empty component

* test: update snapshot of empty component demo

* feat: empty component support use simple image

* docs: update demo for component empty

* docs: update doc for empyt component

* docs: add absence of a space for demo of empty component
2019-03-18 12:01:38 +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
ZYSzys
554fdd4a3c script: cleanup & reduce useless prettier files (#15467) 2019-03-18 10:46:17 +08:00
Rick Zhou
b1ec61a2da another try of fixing tab style (#15458)
* another try of fixing tab style

* fix card mode tab bottom line animation

#15299
#15297
#15234
2019-03-18 10:41:44 +08:00
DiamondYuan
3387ba181d fix: Typescript definition update for List component (#15462) 2019-03-17 14:25:34 +08:00
杨小事er
68c6982d89 feat(Menu): add overflowedIndicator prop (#15459) 2019-03-17 14:21:03 +08:00
whinc
115db9df70 docs: add 'sortDirections' description to Table component (#15461) 2019-03-17 14:20:13 +08:00
Sam Kirkland
5d96ba6400 English translation for notFoundContent (#15453) 2019-03-16 14:27:23 +08:00
ztplz
b40c0d3db3 Update DatePicker docs (#15092) 2019-03-16 14:00:44 +08:00
DiamondYuan
c99b2a7720 fix: export ConfigProviderProps interface 2019-03-16 09:48:21 +08:00
偏右
1bb7d6c301
Merge pull request #15409 from zy410419243/issue-15321
fix: bad position of collapsible submenu in sider when collapsed
2019-03-15 19:01:49 +08:00
偏右
785820e1a8
Merge pull request #15420 from akaguny/patch-1
docs(tabs): onTabClick description
2019-03-15 19:01:30 +08:00
偏右
59a6d49332
Update index.en-US.md 2019-03-15 19:01:20 +08:00
偏右
e0520318c8
Merge pull request #15428 from DiamondYuan/fix#15384
fix: change type of PaginationProps.itemRender originalElement param
2019-03-15 19:00:49 +08:00
yuezk
9673128ddf docs: Correct the default value of mouseEnterDelay 2019-03-15 16:58:47 +08:00
DiamondYuan
eecc29da5e fix: change type of PaginationProps.itemRender originalElement param 2019-03-15 13:20:56 +08:00
Marek Łuszczki
7b2c878d71
fix Skeleton browser applied padding
Fix to issue #15413, caused by `padding-inline-start` rule in browser default styles
2019-03-14 19:30:41 +01:00
zy410419243
f9d01eeb99 test: update cases for using Menu with Layout.Sider 2019-03-14 21:04:13 +08:00
Alexey
ef1fc4a4e2
docs(tabs): onTabClick description
* onTabClick collback description provided by rc-tabs
* link to rc-tabs docs (for read more)
2019-03-14 15:59:05 +03:00
zy410419243
a2eee8843d revert: remove dev code 2019-03-14 20:45:05 +08:00
偏右
4f0e6e6523
Merge pull request #15396 from SoraYama/sorayama
fix(Layout): disable `hasSider` when specifically declared
2019-03-14 20:39:16 +08:00
偏右
771b2c426a
Merge pull request #15395 from ant-design/fix-badge-height
Fix Badge dot a litter higher
2019-03-14 20:39:03 +08:00
偏右
167f54bd86
Merge pull request #15393 from DiamondYuan/fix#15358
fix:add style prop for Steps.Step component
2019-03-14 20:38:39 +08:00
偏右
c1ef989866
Merge pull request #15354 from ant-design/deps-lint
Deps lint
2019-03-14 20:34:10 +08:00
zy410419243
198c01d454 fix: bad position of collapsible submenu in sider when collapsed 2019-03-14 16:35:05 +08:00
偏右
1e028ec91e
Merge pull request #15406 from cemremengu/cemremengu-menu-us
Specify type for defaultOpenKeys
2019-03-14 16:21:54 +08:00
Cemre Mengu
946ef767e6
Specify type for defaultOpenKeys 2019-03-14 11:13:01 +03:00
偏右
f79b23805c
Merge pull request #15404 from cemremengu/cemremengu-submenu
Specify type for defaultOpenKeys
2019-03-14 16:09:46 +08:00
偏右
da504da223
Merge pull request #15402 from ant-design/icon-doc
icon doc add webpack plugin link
2019-03-14 16:07:16 +08:00
DiamondYuan
59d996b4f3 fix: should color style works on Badge (#15356)
fix ##15349
2019-03-14 15:53:51 +08:00
zombiej
752d64715b add webpack plugin link 2019-03-14 15:39:51 +08:00
melchior voidwolf
906f722ea8 Correct suffix icon in Input.Password (#15381)
fix #15369
2019-03-14 15:34:09 +08:00
afc163
64259e167f
🐛 Fix Divider align in PageHeader
close #15336
2019-03-14 14:23:10 +08:00
afc163
5a33f8ced1
🐛 Fix Badge dot a litter higher
close #15367
2019-03-14 12:20:44 +08:00
SoraYama
2b7fce3ce2 fix(Layout): disable hasSider when specifically declared
In some situation `Sider` is deeply rendered in Children of `Layout`,
and if we don't want to judge whether `Layout` has sider, the attr `hasSider`
set to `false` should properly work. However `hasSider || this.state.siders.length > 0`
will ignore `hasSider` when it is `false`.
2019-03-14 12:11:57 +08:00
Bill Searle
ffc5321c18
Add vars to theme for btn border width and style 2019-03-14 15:03:29 +11:00
Bill Searle
d60f64c040
Add independent variables for btn width and style 2019-03-14 15:00:55 +11:00
DiamondYuan
1ff0be57e0 fix:add style prop for Steps.Step component 2019-03-14 09:57:30 +08:00
ppbl
98b10a7cf8 🐛 Fix: avatar cannot calculate the offset when display: none (#15351) 2019-03-13 19:30:47 +08:00
zombiej
f9d8e50a1f rm input from datePicker 2019-03-13 16:04:42 +08:00
zombiej
65dd36a466 rm useless 2019-03-13 15:57:42 +08:00
zombiej
0b96daa1a0 rm button from drawer 2019-03-13 15:41:57 +08:00
zombiej
cc19eadc1b rm input in pagination 2019-03-13 12:16:05 +08:00
zombiej
cb3a372b3b rm input style from select 2019-03-13 12:12:07 +08:00
zombiej
04226e36eb add missing style of card 2019-03-13 12:01:44 +08:00
zombiej
f8baa3787c update tree-select 2019-03-13 11:33:42 +08:00
zombiej
1e5e16cf69 add affix style 2019-03-13 11:24:00 +08:00
zombiej
3e110b8244 update auto style 2019-03-13 11:19:05 +08:00
zombiej
73d96f4c22 adjust import style of grid 2019-03-13 10:50:59 +08:00
偏右
91025841ba
Merge pull request #15355 from ant-design/form-generic-values
Add generic type to form values
2019-03-13 10:37:00 +08:00
偏右
22abba8aa9
Merge pull request #15346 from easyops-cn/add-modal-footer-vertical-horizontal-padding
refactor: add @modal-footer-{vertical,horizontal}-padding
2019-03-13 10:31:28 +08:00
William Cai
ab55bc5636 refactor: add @modal-footer-padding-{vertical,horizontal} 2019-03-13 09:51:29 +08:00
adam
77c431b180 support { icon: null } to hide default Icon 2019-03-13 08:38:10 +08:00
偏右
3ad1eea59c
Merge pull request #15338 from zy410419243/calendar
fix: Calendar select can't switch
2019-03-12 23:07:25 +08:00
偏右
43392bfaa4
Merge pull request #15345 from ant-design/add-icon-color
Add less variable @icon-color
2019-03-12 23:05:06 +08:00
Wei Zhu
d1f64b1bc9 Add generic type to form values 2019-03-12 22:59:27 +08:00
ztplz
97880a9b47 Formate (#15347) 2019-03-12 19:52:43 +08:00
afc163
74ea064319
Add less variable @icon-color 2019-03-12 18:46:54 +08:00
zy410419243
5c1c4e7502 test: remove snapshots to fix ci problem in react 15 2019-03-12 17:01:11 +08:00
zy410419243
c1d58f43bf refactor: unify type => mode 2019-03-12 16:55:39 +08:00
zy410419243
b8a19180aa try: to fix stackoverflow in react 15 2019-03-12 16:31:29 +08:00
Cemre Mengu
3f6f1c1f00
Specify type for defaultOpenKeys 2019-03-12 11:30:38 +03:00
zy410419243
e3da847f53 pref: update date using UTC 2019-03-12 15:46:12 +08:00
zy410419243
5b5008420f pref: update selector for more acurrate 2019-03-12 15:06:41 +08:00
zy410419243
0d4828059a test: leaving snapshots before and after changes 2019-03-12 15:03:04 +08:00
zy410419243
c5290d2ee8 test: assign value for snapshot 2019-03-12 14:59:41 +08:00
zy410419243
4f7ee02ad4 test: update snapshot for making sure to switch correct panel 2019-03-12 14:51:49 +08:00
zy410419243
81cb4a2407 test: update cases for Header 2019-03-12 14:38:53 +08:00
zy410419243
222c744f6d test: update snapshots 2019-03-12 13:44:38 +08:00
zy410419243
d53e003b62 fix: Calendar select can't switch 2019-03-12 13:35:39 +08:00
偏右
43b13f6f73
Merge pull request #15320 from ant-design/fix-editable-layout
Fix Typography editable inconsistent style
2019-03-12 12:04:02 +08:00
偏右
753cb421c0
Merge pull request #15331 from tgxpuisb/fix-add-click-props-for-BreadcrumbItem
fix add click prop for BreadcrumbItem
2019-03-12 10:41:17 +08:00
萧琚
34a9da638c fix add click prop for BreadcrumbItem 2019-03-11 23:48:37 +08:00
偏右
9e82879760
Merge pull request #15330 from crudo/c-table-edit-cell-demo
Fixed Table's Editable cells demo
2019-03-11 23:34:42 +08:00
偏右
5f4f8b0dee
Fix list item style (#15328)
* 🐛 Fix List Item layout style problems

* 🐛 horizontal list should align center

*  Add test cases

*  Add test cases for List.Item

* 🐛 Fix vertical list item with extra
2019-03-11 23:34:05 +08:00
Martin Cermak
46ca311294 Fixed Table's Editable cells demo 2019-03-11 14:39:58 +01:00
vthinkxie
057d58ebce style(module:input): add disabled selector style in ant input 2019-03-11 18:09:14 +08:00
afc163
d9ca0d8381
Optimize badge code again 2019-03-11 17:13:59 +08:00
afc163
f694a1bbb8
Opatimize badge code 2019-03-11 16:54:29 +08:00
afc163
a8ad9ecce5
🐛 Fix Typography editable inconsist style
close #15249
2019-03-11 16:00:12 +08:00
afc163
0590c056c1
🐛 Reserve ant-typography className 2019-03-11 15:45:07 +08:00
zombiej
96a95e65d3 update deps lint 2019-03-11 11:48:17 +08:00
zombiej
d17a67175d add pattern match 2019-03-11 11:00:25 +08:00
zombiej
05564e00ff add style dep lint ignore 2019-03-10 21:04:38 +08:00
偏右
c4473e3389
Merge pull request #15301 from ant-design/fix-list-content-color
Keep same content color of List like previous version
2019-03-10 14:39:24 +08:00
偏右
369a3cdd60
Merge pull request #15308 from newswim/patch-1
Add 'code' to list of Typography props
2019-03-10 14:38:25 +08:00
Dan Minshew
9197db2445
add 'code' to list of Typography props 2019-03-09 21:50:39 -06:00
afc163
56570aa539
💄 Add @pagination-item-bg-active
close #14739
2019-03-09 19:43:19 +08:00
afc163
4275430094
🐛 Keep same content color of List like previous version
close #15296
2019-03-09 19:27:13 +08:00
zombiej
ee14f8e5d5 add skip test 2019-03-09 18:25:22 +08:00
Rick Zhou
a0bfe4cc65 fix tabs style in card mode 2019-03-08 22:08:48 -08:00
Inian
c443909bca
Typo 2019-03-08 21:29:58 +08:00
愚道
e3a2c38e67 Merge branch 'master' into chore/mergem 2019-03-08 16:32:40 +08:00
偏右
194dedd013
Merge pull request #15286 from ant-design/improve-code
Refactor some code after #15254
2019-03-08 16:20:42 +08:00
afc163
bd0eb34487
make sure count compare as number 2019-03-08 15:57:07 +08:00
偏右
71440a218b
Update components/form/style/index.less
Co-Authored-By: jinxin0112 <m18508218948@163.com>
2019-03-08 15:53:27 +08:00
afc163
da6662562b
refactor some code after #15254 2019-03-08 15:43:46 +08:00
JinXin
7ccf6855c6
fix: appear two colons
If the label attribute of the component Form.Item is a ReactNode and the same label tag exists inside the ReactNode, two colons will appear.
2019-03-08 15:31:46 +08:00
愚道
a4f73ff64e chore: sync master to feature 2019-03-08 15:21:36 +08:00
偏右
120ea3a38d
Merge pull request #15252 from yoyo837/add-label-align
add labelAlign for Form and FormItem
2019-03-08 14:50:13 +08:00
偏右
94cd2ac3f4
Merge pull request #15210 from ant-design/fix-list-item-text-margin
Refactor List Item dom structure
2019-03-08 14:44:06 +08:00
偏右
5415b81f63
Merge pull request #15254 from zy410419243/migrate
refactor: migrate lifecycle method
2019-03-08 14:13:24 +08:00
偏右
ee65a2d8de
Merge branch 'feature' into form-prop 2019-03-08 14:10:07 +08:00
DiamondYuan
c8ba4da309 docs: add since comment for FormProps 2019-03-08 13:03:29 +08:00
偏右
952d2ec06a
Merge branch 'feature' into master 2019-03-08 12:38:04 +08:00
Cheng
c882a4b918 Style tree content to full width (#14858)
*  (tree) new blockNode props

* 💄 (tree) style for blockNode

* 📝 (tree) update draggable demo

* 🐛 (tree) fix custom switcherIcon class

*  (tree) update snapshots

* 📝 (tree) update docs

* 👌 opt trans
2019-03-08 12:36:46 +08:00
ztplz
2e0a85324b Fix type (#15266)
* Fix type

* Update index.tsx
2019-03-08 12:26:01 +08:00
偏右
d4140713ab
Merge pull request #15241 from zy410419243/issue-14775
pref: lift up coverage rate
2019-03-08 12:23:56 +08:00
DiamondYuan
5b162897a8 feat: support props colon of Form 2019-03-08 11:25:37 +08:00
afc163
f44ff94dec
Fix test fails in React 15 2019-03-08 11:00:33 +08:00
陈小聪
85a293eacb
change badge text types
```jsx
<Badge status="default" text={<span style={{ color: 'rgba(0, 0, 0, 0.45)' }}>未响应</span>} />
```
2019-03-08 00:21:53 +08:00
Amumu
9549ed308d fix doc (#15259) 2019-03-07 20:40:06 +08:00
偏右
65b69b7265
Merge pull request #15256 from yoyo837/fix-steps-label-align
fix when size is small and label is vertical the label text not align center
2019-03-07 18:01:50 +08:00
偏右
93820ba90e
Merge pull request #15150 from ant-design/affox
Fix Affix updatePosition logic.
2019-03-07 17:59:40 +08:00
yoyo837
6b84c079dd fix when size is small and label is vertical the label text not align center 2019-03-07 17:04:31 +08:00
zy410419243
7642cbf18d refactor: update lifecycle method for Menu 2019-03-07 16:58:53 +08:00
zy410419243
555af0a40d Revert "refactor: update lifecycle method for Affix"
revert: related to #15150
2019-03-07 16:49:36 +08:00
zy410419243
4601144f3f refactor: update lifecycle method for Calendar 2019-03-07 16:33:59 +08:00
zy410419243
4dc533c202 refactor: update lifecycle method for Badge 2019-03-07 16:03:02 +08:00
zy410419243
ad30c02710 refactor: update lifecycle method for Affix 2019-03-07 15:50:07 +08:00
zombieJ
dd435afadb
fix warning check logic (#15251) 2019-03-07 15:47:43 +08:00
zy410419243
774cbf92e0 chore: export with polyfill 2019-03-07 15:39:34 +08:00
yoyo837
0b1410a710 don't disclose some props define in doc 2019-03-07 15:34:11 +08:00
偏右
01cf2114cc
Merge pull request #15245 from ant-design/update-demo
update Collapse demo adding stopPropagation sample
2019-03-07 15:24:32 +08:00
zy410419243
63616479ec refactor: update lifecycle method for Transfer 2019-03-07 15:18:57 +08:00
yoyo837
5281d7b7f2 add labelAlign for Form and FormItem 2019-03-07 15:14:27 +08:00
zy410419243
8d43f4b032 test: update cases for Modal 2019-03-07 14:43:25 +08:00
zy410419243
f38323aeca refactor: remove unexpected export 2019-03-07 14:43:25 +08:00
zy410419243
39d648e3b8 test: update cases for TimePicker 2019-03-07 14:43:25 +08:00
zy410419243
be22c9148b pref: remove unreachable code 2019-03-07 14:43:25 +08:00
zy410419243
e6c1fd3385 test: update cases for UploadList 2019-03-07 14:43:25 +08:00
zombieJ
0f356fb151
update snapshot (#15247)
* update snapshot

* downgrade to node 10
2019-03-07 14:41:17 +08:00
zombiej
091ec45662 add comment 2019-03-07 12:03:14 +08:00
zombiej
82c4b52496 updat demo 2019-03-07 11:50:13 +08:00
Yangzhedi
bfbadabd52 fix(Input): fix search style with allowClear or suffix/prefix 2019-03-07 10:06:18 +08:00
Yunus EŞ
01b8c2f0c3
Turkish translations of new components
Global placeholder,  Icon, Text objects added.
2019-03-06 17:10:15 +03:00
afc163
b03d9ad4b2
Update test snapshots 2019-03-06 16:52:57 +08:00
zombieJ
3fbeff3fcc
add warning when use getCheckboxProps (#15231) 2019-03-06 16:48:14 +08:00
afc163
7a217c625c
🐛 Fix space lost when inline element in List.Item, close #15186 2019-03-06 16:31:07 +08:00
afc163
575796cb92
clean up code 2019-03-06 15:23:51 +08:00
afc163
0fe82ed936
refactor list item dom structure 2019-03-06 14:20:51 +08:00
afc163
1c7e0d0b4b
🐛 Fix space lost when inline element in List.Item
close #15186

use `display: contents`:

- https://www.zcfy.cc/article/vanishing-boxes-with-display-contents
- https://css-tricks.com/get-ready-for-display-contents/
2019-03-06 14:20:51 +08:00
chenlong
fc88005c9c Add fault-tolerant processing for rowSelection.getCheckboxProps 2019-03-06 13:58:04 +08:00
afc163
881dce9a3e
💄 prettier codes 2019-03-06 13:45:40 +08:00
偏右
b9cef22d21
Merge pull request #15219 from Frezc/master
[doc]remove misleading content
2019-03-06 12:09:28 +08:00
afc163
5d450d2a23
💄 unified DatePicker and TimePicker cursor style 2019-03-06 11:01:56 +08:00
afc163
f55d2bbf32
🐛 Text ellipsis should be optional, close #15189 2019-03-05 21:19:22 +08:00
wanli
fdc8a1b458 [doc]remove misleading content 2019-03-05 20:51:32 +08:00
ngolin
cb5fe6cbf8 Fix: TypeScript <Layout> requires a tagName property (#15181)
* fix #15162

* force safe type casting

* get rid of non-null assertion

* get rid of non-null assertion
2019-03-05 14:39:43 +08:00
zombiej
26cde5813f update ts def 2019-03-05 13:48:38 +08:00
偏右
5dec4960df
Merge pull request #15184 from ant-design/fix-input-focus-state
Fix Input Password focus state
2019-03-05 11:32:05 +08:00
afc163
216c85211b
Add test cases 2019-03-05 11:16:13 +08:00
偏右
53a35adbd5
Merge pull request #15153 from zy410419243/issue-14775
pref: lift up coverage rate
2019-03-04 22:26:38 +08:00
afc163
1b713c94e6
🐛 Focus input after clear input content 2019-03-04 22:19:40 +08:00
afc163
5cd5d1ff00
📝 Opatimize Input demo 2019-03-04 21:57:30 +08:00
afc163
eaadf94861
🐛 Fix Input.Password lost focused state issue
close #15173
2019-03-04 21:54:51 +08:00
afc163
6f22eaa2c4
🎨 Improve code style of Input.Password 2019-03-04 21:54:10 +08:00
afc163
74aee564ed
🐛 Fix Collapse extra node style missing
close #15174
2019-03-04 19:15:02 +08:00
偏右
19d916fd20
Merge pull request #15156 from ant-design/date-picker-popup
fix configProvider getPopupContainer not work with DatePicker
2019-03-04 19:04:27 +08:00
liuchuzhang
9058588fe6 fix document 2019-03-04 17:35:03 +08:00
陈帅
f73a0e238d feat: PageHeader support classname (#15159) 2019-03-04 14:54:28 +08:00
zombieJ
2f6b367137
fix form warning (#15160)
* fix form warning

* update snapshot
2019-03-04 14:51:40 +08:00
zy410419243
28a82f8f09 test: update cases for Grid.Row 2019-03-04 11:49:29 +08:00
zy410419243
0a78070b08 test: upadte cases for Transfer.List 2019-03-04 11:35:08 +08:00
zy410419243
74a5a10bee test: update aria-label for TextArea, to fix accesslint problems 2019-03-04 11:35:08 +08:00
zy410419243
9867e6f4cc test: update cases for TextArea 2019-03-04 11:34:01 +08:00
zy410419243
b4146854d6 test: update cases for calculateNodeHeight 2019-03-04 11:29:15 +08:00
zombiej
0af6bded1d fix configProvider getPopupContainer not work with DatePicker 2019-03-04 11:11:50 +08:00
陈帅
2996d8e625
Merge pull request #15154 from ant-design/feature
up to 3.14.0
2019-03-04 10:59:41 +08:00
afc163
71a774b16b 🐛 Fix closable Drawer hiding without transition 2019-03-04 10:54:48 +08:00
Frezc
c5b98c27c7 add export to MenuItemProps 2019-03-04 10:54:34 +08:00
陈帅
5e298dba51
3.14.0 Changelog (#15145)
* add responsive property to carousel (#15071)

* add responsive property to carousel #15065

* extend carousel props from Slick type definitions #15065

* rm key in OptionProps (#15104)

* update doc

* fix cascader should tab twice to exist (#15117)

* fix cascader should tab twice to exist

* update snapshot

* Drawer Body padding should be variable

* fix DatePicker to support an array of formats (#15116)

ref #13148

* table reader mobile friendly

* up

* up

* doc: add 3.14.0 changelog

* doc: fix ci warning

* doc: fix ci warning

* doc: fix typo

* doc: fix ci warning

* doc: fix ci warning

* doc: fix cr warring

* doc: fix cr warring

* doc: fix cr warring

* doc: fix cr warring

* doc: fix cr warring

* doc: fix cr warring

* doc: fix cr warring

* -m

* -m

* doc: fix cr warning
2019-03-04 10:45:15 +08:00
zombiej
fd0bea7332 fix size 2019-03-03 23:25:52 +08:00
zombiej
439053e4f7 update snapshot 2019-03-03 23:19:07 +08:00
zombiej
d0c2f8b05f remove debug 2019-03-03 11:40:10 +08:00
zombiej
2eb4ecfedd refactory 2019-03-03 10:04:21 +08:00
DiamondYuan
e392605230 up 2019-03-02 19:59:45 +08:00
DiamondYuan
4e331a5049 up 2019-03-02 19:59:45 +08:00
陈帅
dee8f93fe7
New Component PageHeader (#13637)
* add api dock

* add a simple demo

* add content demos

* fix style warning

* Replace content with children

* add all demo

* add demo test

* add backNode props

* Adjust the divider style

* fix icon do no show

* fix test ci

* fix md code style

* remove fragment use

* add test script

* Missing newline character at end of file

* optimize the demo display

* text becomes longer

* text becomes longer

* fix css code style

* fix test snapshot

* fix css code style

* fix codereivew waring

* fix codereivew waring

* update snapshots

* use ant-page-header-have-footer

* use englist

* fix typo

* updated snapshot

* line-height set to 100%

* remove subtitle

* Specification less

* fix less style error

* Sort by alphabet

* Rebuild code

* use english

* number use Statistic

* snapshot updated

* rm onBack in breadcrumb

* remove unuse return

* add a click wave

* remove unuse css

* add icon hover

* newline character

* new description

* warm descriptive text

* add dot

* remove async

* feat: use Typography.Paragraph

* test: snapshots updated

* style: fix  style lint

* import typography style
2019-03-02 15:51:08 +08:00
Yann Normand
e26c5133a5 fix DatePicker to support an array of formats (#15116)
ref #13148
2019-03-01 13:50:28 +08:00
yoyo837
29647f073a Drawer Body padding should be variable 2019-03-01 11:20:18 +08:00
zombieJ
66786c7c4b
fix cascader should tab twice to exist (#15117)
* fix cascader should tab twice to exist

* update snapshot
2019-03-01 11:19:35 +08:00
zombieJ
5ce7e71007
RangePicker support customize separator (#15055)
* support separator

* add version

* fix css
2019-02-28 16:11:10 +08:00
zombieJ
3a16708765
update snapshot (#15108) 2019-02-28 14:42:11 +08:00
zombieJ
acd06e9cb5
Select multiple mode support showArrow (#15091)
* support showArrow

* fix rc-select version

* update snapshot
2019-02-28 12:26:43 +08:00
zombieJ
c5f9ed1d4f
rm key in OptionProps (#15104) 2019-02-28 11:05:47 +08:00
Vitaliy Mazurenko
4878992400 add responsive property to carousel (#15071)
* add responsive property to carousel #15065

* extend carousel props from Slick type definitions #15065
2019-02-27 23:28:48 +08:00
zombiej
6f95995faa merge master 2019-02-27 19:57:48 +08:00
偏右
779ba73528 🐛 fix upload instance cannot exposed in TypeScript (#15090)
close #14439
2019-02-27 18:37:44 +08:00
zombieJ
70046f782d
update doc about customize form item component (#15088)
* update doc

* rm test code

* update doc
2019-02-27 18:34:47 +08:00
zombieJ
b69f0e5e97
canel when page change (#15082) 2019-02-27 15:55:37 +08:00
zombieJ
4d1a998246
add component param in warning (#15078)
* add component param in warning

* update snapshot
2019-02-27 15:32:29 +08:00
ycjcl868
cc30a2d4eb 💄 fix dropdown trigger align type def 2019-02-27 14:58:01 +08:00
zombieJ
ed1872fe08
fix calendar-onPanelChange some time not trigger (#15063) 2019-02-26 19:56:55 +08:00
Amumu
9e8bddd864 fix #13648 (#15056)
* fix #13648

* style lint

* lint

* revert and fix again
2019-02-26 17:10:40 +08:00
zombiej
8bf08cdf81 adjust css 2019-02-26 15:45:08 +08:00
afc163
98b41e0e9c Add handler definite for Drawer
close #15051
2019-02-26 15:36:23 +08:00
zombieJ
a802a72d56
Fix Table filter can not support other type of value (#15046)
* use new life cycle

* filter support inner value maps

* update snapshot

* update test case

* simple code
2019-02-26 14:26:08 +08:00
Jason Yin
b30e90ba31 fix #15037 (#15042) 2019-02-26 10:37:00 +08:00
yinjs
f602a9b153 fix #15035 datepicker onPanelChange ts declaration missing 2019-02-26 10:35:27 +08:00
afc163
447a8df724 🐛 Fix horizontal submenu wider then menu title in most case
https://codesandbox.io/s/qvpwm6mk66
2019-02-26 10:35:08 +08:00
zombieJ
1fc8dd3042
Form support labelCol & wrapperCol props. (#15038)
* use context

* update doc

* update doc

* not pass context if nest

* update snapshot

* update doc

* update doc
2019-02-25 19:04:09 +08:00
zombieJ
fb6a493f11
support name prop (#15029) 2019-02-25 11:28:31 +08:00
ztplz
94814d955f Format (#15027) 2019-02-24 15:49:12 +08:00
afc163
efafa6346d Fix lint problems 2019-02-23 16:58:22 +08:00
afc163
f665554080 🐛 Fix arrow style of Select selected item 2019-02-23 16:58:22 +08:00
afc163
924e8e4b83 🐛 should not print warning for not generating help and validateStatus automatically when help or validateStatus is specified
close #14911
2019-02-23 16:35:52 +08:00
Kamal Mahmudi
9559a12be9 🇮🇩 Update locale to be more natural for Indonesian (#15013)
* Update locale to be more natural for Indonesian

* consistently use lowercase and uppercase

* updating snapshot
2019-02-23 12:29:10 +08:00
afc163
5d46fa9679
📝 site: fix document punctuation 2019-02-22 17:15:48 +08:00
Aobo Yang
1f0166c156 Fix rowKey usages in List (#14437)
* correct rowKey usages in List

* fix item type in renderItem in List
2019-02-22 10:40:30 +08:00
Wei Zhu
8f7d4970a5
Merge pull request #14986 from liuchuzhang/table-doc
update table demo
2019-02-21 20:58:05 +08:00
杨小事er
668c330cae fix(radio): delete unnecessary onChange (#14984)
* fix(radio): delete unnecessary onChange

* fix(radio): fix multi trigger
2019-02-21 20:53:19 +08:00
orzorzorzorz
642307481a fix: unexpected return (#14982) 2019-02-21 20:49:04 +08:00
liuchuzhang
dfa6080d39 update table demo 2019-02-21 20:23:00 +08:00
zombiej
440408a1dd update style 2019-02-21 12:13:47 +08:00
afc163
7bbeaff3ed 🆙 Upgrade rc-input-number@4.4.0 to fix 13896 2019-02-21 12:12:52 +08:00
杨小事er
0f91fb07e9 fix(tree): fix growing space (#14964)
* fix(tree): fix growing space

* fix(tree): remove last child 4px padding bottom and keep others

* Update index.less
2019-02-21 11:17:52 +08:00
zombieJ
f483c4e604
Not show aria-label when Icon type is empty (#14972)
* remove aria-label if type is not defined

* update snapshot
2019-02-21 11:13:03 +08:00
zombiej
e94ce11bd9 update form item css 2019-02-20 19:38:09 +08:00
ztplz
5de03a5c18 Fix assert usage (#14957)
* Fix assert usage

* Update
2019-02-20 18:27:35 +08:00
afc163
671410d0be 🐛 Fix disabled sub menu style
close #14952
2019-02-20 16:59:05 +08:00
ztplz
e3eec8f2b6 Update snapshots 2019-02-20 16:58:30 +08:00
ztplz
45dc160701 Update 2019-02-20 16:58:30 +08:00
ztplz
f2ac516c87 Update 2019-02-20 16:58:30 +08:00
ztplz
b74038a4da Correct Input demo style 2019-02-20 16:58:30 +08:00
zombieJ
48900955f8
Warning Input by: add or remove prefix / suffix when Input is focused (#14948)
* todo

* add warning

* add FAQ

* fix typo
2019-02-20 15:12:29 +08:00
偏右
fd89e0f8b4 🐛 Fix extra space at the bottom of table th in chrome (#14950)
close #14926
2019-02-20 15:11:04 +08:00
zombiej
8389b94cf5 search input sticky 2019-02-20 11:52:06 +08:00
Michał Jurkowski
c0f49c782c Fix hardcoded heading color 2019-02-19 23:24:31 +08:00
zombieJ
c29323b448
Revert to remove FormItem explain-holder (#14937)
* Revert "Adjust style to be similar with origin (#14886)"

This reverts commit 735175e3cf.

* Revert "sync form item (#14778)"

This reverts commit 5ac674e698.
2019-02-19 23:24:07 +08:00
Amumu
1552955b12 修复: bordered的固定高、非空表格在隐藏头部时,丢失顶部边框的问题 2019-02-19 16:16:50 +08:00
zy410419243
7f1dea0ab1 fix: wrong usage of polyfill 2019-02-19 15:52:19 +08:00
zy410419243
9d5454c7b7 pref: add missing polyfill 2019-02-19 15:52:19 +08:00
zy410419243
14945cb7a7 chore(DirectoryTree): migrate to new lifecycle method 2019-02-19 15:52:19 +08:00
ztplz
b0ca03cba3 Update 2019-02-19 15:50:38 +08:00
ztplz
025bad6981 Update 2019-02-19 15:50:38 +08:00
ztplz
f26788c26e Revert "update snapshot"
This reverts commit 3e8f99a4a5.
2019-02-19 15:50:38 +08:00
ztplz
29cabea52a update snapshot 2019-02-19 15:50:38 +08:00
ztplz
c24d737546 Fix incorrect collapse icon position when sider in the right 2019-02-19 15:50:38 +08:00
Jason Chen
4c5f3d2b0a Enhance <Grid>&<Meta> props type definition (#14857) 2019-02-19 13:37:38 +08:00
zombieJ
c80136a9a7
New Component: Typography (#14250)
* text with prefix

* add edit style

* support editable

* enhance accessibility & type experience

* optimize IME case

* support copy

* add locale

* add secondary & disabled

* add ellipsis shadow text

* split to 3 components

* update snapshot

* update desc

* change lines also need update ellipsis

* skip aria when is in ellipsis

* add ResizeObserver in _util

* update snapshot

* move TestBase into test file

* update test case

* update doc

* fix typo

* important => level

* use rows

* update demo cols to 1

* fix cssText not work in firefox

* update doc

* add miss point

* support extendable

* update snapshot

* fix doc

* copyable support string

* update snapshot

* update doc

* update doc desc

* adjust style

* full test

* reset after test

* rename

* update snapshot

* fix compile

* adjust style

* update desc

* update prefixCls

* update margin

* adjust

* nest wrap of tag content

* adjust style

* update comment

* rm %

* one more thing

* tmp of measure

* merge string as children

* update snapshot

* update testcase

* remove comment

* use internal variable for configProvider passing

* update snapshot

* use expandable instead of extendable

* less variable it

* update demo

* update less

* adjust code & mark style

* remove mark padding

* update measure logic

* support nest element style

* use childNode.textContent to fix react 15 error

* update css

* popout Typography

* add link style

* adjust doc

* use ellipsis instead of rows & expandable

* update doc

* update doc

* update doc & style

* fix typo

* add css ellipsis support

* client render

* update snapshot

* enhance copyable

* support onExpand

* update test case

* add test of css ellipsis

* fix logic in react 15

* rename onChange -> onSave

* use tagName of article

* fix lint
2019-02-19 11:42:05 +08:00
zombiej
eddfbd5f51 only affect addon & suffix 2019-02-19 11:38:26 +08:00
zombiej
fcc3820545 adjust input style 2019-02-19 11:38:26 +08:00
ilanus
8eddf15fd1 update steps types 2019-02-18 13:23:04 +01:00
zombieJ
a3bd55b79a
revert #14608 (#14898)
* revert #14608

* add test case
2019-02-18 18:05:27 +08:00
zombieJ
735175e3cf
Adjust style to be similar with origin (#14886)
* adjust style to be similar with origin

* update snapshot

* add missing extra logic

* adjust tiny

* fix margin

* use element to keep the place

* update snapshot
2019-02-18 16:42:02 +08:00
zombiej
271d201fbc merge master 2019-02-18 11:17:24 +08:00
zombieJ
1d75725369
update snapshot (#14880) 2019-02-18 11:04:45 +08:00
Wei Zhu
07ec7d9f53 test: use mockReset
According to the document of jest, mockRestore only works when mock was
created with `jestSpyOn`.

https://jestjs.io/docs/en/mock-function-api#mockfnmockrestore
2019-02-18 00:26:19 +08:00
afc163
c30b06d5db
📝 add stop in document 2019-02-17 23:07:02 +08:00
afc163
25404ee6cf
💄 Tweak select width in Calendar 2019-02-17 22:47:27 +08:00
zombieJ
d2c17cd747
only set getPopupContainer when scroll provides (#14864)
* only set getPopupContainer when scroll provides

* adjust
2019-02-16 11:49:15 +08:00
杨小事er
2f81d000f8 fix(time-picker): fix icon style (#14861) 2019-02-15 22:45:41 +08:00
Gabe Medrash
6dce9aff3a Add onTitleMouseEnter and onTitleMouseLeave to public interface 2019-02-15 14:50:58 +08:00
LT246-VINHNPH\vinhnph
bf135c1ceb ReactNode has already included string 2019-02-15 10:15:43 +07:00
LT246-VINHNPH\vinhnph
c39d8b0b11 Merge remote-tracking branch 'upstream/feature' into ts_table 2019-02-15 10:01:57 +07:00
米老朱
6936599aef Enhance stylelint rules (#14803)
* rename .stylelintrc to .stylelintrc.json for explicit file type

* add new npm script lint-fix:style

* fix pseudo-element with double colon

* function name should be lower except ignored functions

* support stylelint declaration-block-no-ignored-properties rule

* support sorted CSS properties order for readability and consistency

* autofix order of all styles by lint-fix:style script

* remove double slash comments after selector

* replace .stylelintignore with ignoreFiles in .stylelintrc.json
2019-02-15 10:48:07 +08:00
偏右
2eddc2a1d4 🌟 support goto button in Pagination (#14819)
close #14798
close #14535
close #10201
close #7328
2019-02-14 22:39:11 +08:00
vinhnph-ibl
01f1c367e1
Merge branch 'feature' into ts_table 2019-02-14 17:52:18 +07:00
偏右
2bacd0614c
Use semantic tag names in Layout (#14806)
close #14801
2019-02-14 17:51:52 +08:00
Rick Zhou
80e6204803 remove the lambda used in input-number render() function 2019-02-14 17:51:18 +08:00
afc163
6ef24cf833 🐛 Fix Card loading style when there is actions
close #14832
2019-02-14 17:50:58 +08:00
mraiguo
86f0f97376 rangePicker clear when controlled (#14796) 2019-02-14 17:50:37 +08:00
afc163
62e65d9550 🌟 support extra for Collapse.Panel
close #11626
2019-02-14 17:49:18 +08:00
Wei Zhu
32a61d8596 fix: handle true for Table[pagination] properly
`pagination` is not designed to accept `true` value,
but in practice, many people assign `true` to `pagination`,
since they thought `pagination` accepts boolean value.
2019-02-14 17:48:35 +08:00
afc163
a287f1bcb8
🐛 Fix missing border top of empty Table without header
close #14834
2019-02-14 17:47:20 +08:00
vinhnph-ibl
e0de950edb
Merge branch 'feature' into ts_table 2019-02-14 13:53:08 +07:00
+v
bf2a240ba7 fix: clear both 2019-02-13 22:22:30 +08:00
zombieJ
5ac674e698
sync form item (#14778)
* sync form item

* update snapshot

* use before
2019-02-13 21:45:47 +08:00
zombieJ
41470e0c68
clean css (#14797)
* clean css

* move to horizontal
2019-02-12 22:41:41 +08:00
zombieJ
47e53ab0fe
Fix Input.Search not support addonAfter (#14799)
* fix addonAfter

* update snapshot
2019-02-12 21:39:36 +08:00
zombieJ
5ad9469434
Countdown support onFinish (#14791)
* support onFinish

* clean up

* update test case
2019-02-12 17:16:49 +08:00
zombiej
d919e20f10 merge master 2019-02-12 16:00:29 +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
ztplz
b46b79c771 Remove useless asign 2019-02-11 21:42:07 +08:00
LT246-VINHNPH\vinhnph
c20acfb9b3 Table column filter could be ReactNode 2019-02-11 13:52:56 +07:00
Wei Zhu
de212266c4
Merge pull request #14742 from zy410419243/comma
docs: fix wrong usage of comma
2019-02-11 11:17:17 +08:00
Wei Zhu
499a3e2ad5
Merge pull request #14757 from zlljqn/patch-2
Optimized Drag & Drop Table Demo performance
2019-02-11 11:14:03 +08:00
zombieJ
67ad35bc26
fix additional className (#14770) 2019-02-11 01:00:33 +08:00
Subroto
57f4c62368 Revert "fix IE 11 bug" (#14765)
This reverts commit 7d7de2a599.
2019-02-10 23:25:35 +08:00
何乐
3c4a7318d6 fix: Progress shows the success status while successPercent={0} and percent={100} (#14769) 2019-02-10 23:06:45 +08:00
偏右
6550ddd545 🐛 Fix Switch disabled cursor style, close #14764 (#14767) 2019-02-10 22:20:09 +08:00
imhele
952510e040 add header for table 2019-02-10 19:45:17 +08:00
wanli
6c259808e1 type: add onClick to AbstractCheckboxProps 2019-02-10 16:04:31 +08:00
zlljqn
bdb81d12a5
Update according to suggestion
Update according to suggestion and try to repair CI
2019-02-08 21:08:40 +08:00
zlljqn
bf972a9afa
Optimized Drag & Drop Table Demo performance
Optimized Drag & Drop Table Demo performance when the number of row is large. Mainly remove unnecessary event mornitor and use another way to implement the method to show the insert indicate rule on the page.
2019-02-08 16:42:05 +08:00
zy410419243
9236844f0a Revert "test: update snapshots"
This reverts commit 9ea218d0ad5b42cd119087e855c8ab8223aaa4e3.
2019-02-07 13:59:33 +08:00
zy410419243
6a68619559 test: update snapshots 2019-02-07 13:59:32 +08:00
zy410419243
bf4560cf37 docs: fix wrong usage of comma 2019-02-07 13:59:32 +08:00
thilo-behnke
a9a6da47ed Input: Clear icon doesn't disappear if value is null (vs undefined or empy string) (#14733)
* fixed issue with allowClear if value is null

* added test cases for allowClear fix
2019-02-07 11:39:16 +08:00
Gabe Medrash
dfc9b24c98 Properly type onMouseEnter and onMouseLeave events 2019-02-06 12:23:07 +08:00
何乐
b3834e48b1 Table: fix showing only first page (#14724)
* Table: fix showing only first page

* correct condition of pagination in Table

* correct test file

* handle changes

* improve test case
2019-02-05 23:11:08 +08:00
zombieJ
2b558af960
update silder snapshot (#14732) 2019-02-05 21:25:40 +08:00
何乐
99eeefc25d correct type in Switch (#14727) 2019-02-05 11:01:36 +08:00
ycjcl868
52b99ceee9 Merge master into merge-master 2019-02-04 23:41:43 +08:00
信鑫-King
6cdc203a2f
Merge pull request #14725 from ant-design/fix-form-test
Fix CI build failed of test
2019-02-04 23:07:25 +08:00
ycjcl868
6f040b6c40 fix: strict check input 2019-02-04 22:55:00 +08:00
zombiej
777c56a515 mock test 2019-02-04 22:02:46 +08:00
Andrew Shearer
163140189f Fix quote rendering (#14708)
Use curly quotes from the current font, removing an override that
switched to a Chinese font for those 4 characters. On all platforms,
this caused the quotes to differ in size and weight from the
surrounding text. On Linux, it also caused text to fall back to a
serif font rather than the intended sans-serif font. On Windows,
it used a full-width Chinese character, making it look like there
were extra spaces in the text. Typographic apostrophes, in
particular, appeared to have two or more extra spaces after them.

fix #13095
2019-02-04 11:36:03 +08:00
gyh9457
c895c809f9 improve tabs demo (#14701) 2019-02-04 11:29:28 +08:00
zombieJ
ee97cfe6cc
update doc (#14712) 2019-02-03 13:35:10 +08:00
zombieJ
3bd784cec6
force opacity of 0 (#14703) 2019-02-03 09:02:46 +08:00
afc163
c563bc1d10 🐛 Table should pick pageSize over defaultPageSize in priority
close #14320
2019-02-02 22:44:46 +08:00
偏右
1daec4eacb 🐛 Statistic should support negetive numbers (#14695)
close #14692
2019-02-02 21:55:46 +08:00
信鑫-King
12f6d8ada4
Merge pull request #14684 from RunningCoderLee/master
add ValidateFieldsOptions typing for validateFields
2019-02-02 19:03:29 +08:00
zombieJ
4668bf6ddd
update code (#14700)
close  #12749
2019-02-02 18:30:40 +08:00
zeroslope
ff41bfe2fb 修改FAQ的描述
FAQ中,标题‘如何移除 2 个汉字时字间的空格’,“汉字‘时’字间”中的时多余,且“汉字字间”不容易断句,在不改变原来意思的情况下改为
“如何移除 2 个汉字之间的空格”
2019-02-02 12:00:16 +08:00
RunningCoderLee
86e0431f9b fix: make all the properties in the ValidateFieldsOptions typing optional 2019-02-02 11:50:44 +08:00
RunningCoderLee
71503751a2 add ValidateFieldsOptions typing for validateFields 2019-02-02 11:30:11 +08:00
zombieJ
0cb00e47b8
fix icon miss viewBox (#14686) 2019-02-01 23:04:41 +08:00
Amumu
6668c12c46 remove placeholder border override (#14533)
* remove placeholder boder override

* adjust radius when bordered
2019-02-01 16:22:10 +08:00
Cheng
27f926fe93 Feat timepicker clearicon (#14556)
*  custom clearIcon for time-picker

* 📝 update readme
2019-02-01 15:55:03 +08:00
kristof0425
ad363570c3 fix(Modal): rm remaining unnecessary string type 2019-02-01 01:20:39 +08:00
kristof0425
5b2a5398cf fix(Modal): correct type in comment 2019-02-01 01:20:39 +08:00
kristof0425
0a6642e595 refactor(Modal): rm unnecessary string 2019-02-01 01:20:39 +08:00
kristof0425
c97bd20faf docs(Modal): change type of okText and cancelText props 2019-02-01 01:20:39 +08:00
kristof0425
e0edd82a76 fix(Modal): allow ReactNode for okText and cancelText props 2019-02-01 01:20:39 +08:00
Florian Orpelière
031876bbf3 Update tree select documentation
According to https://github.com/react-component/tree-select documentation
2019-01-31 22:29:28 +08:00
sylvanasGone
05df3aa552 fix: add missing typing for style prop 2019-01-31 17:42:35 +08:00
tangjinzhou
8832be1fc7 fix: auto-complete placeholder not display when disabled 2019-01-31 17:31:08 +08:00
afc163
3b40bfb058 🐛 Tweak calendar select width for IE9
close #14464
2019-01-31 17:19:55 +08:00
afc163
b8fd449f84 🐛 Fix margin in calendar select
close #14636
2019-01-31 17:19:55 +08:00
zombieJ
aa5ed8c237
Continue works on #12667 (#14668)
* Update index.tsx

* add limitation on checking labelPlacement

* add type checking of 'mode' in DatePickerProps
2019-01-31 16:52:29 +08:00
杨小事er
1b57dff9bb 🐛 fix(tootip):fix when title is too short arrow appears outside of tooltip
close #14667
2019-01-31 16:42:33 +08:00
ycjcl868
28986d00e0 📝 fix className ts definition 2019-01-31 16:14:54 +08:00
kuitos
fc56fe9ce5 typing fix 2019-01-31 14:45:45 +08:00
Ahmed AlSammany
52846791b5 fix for https://github.com/ant-design/ant-design/issues/14650 2019-01-31 11:00:14 +08:00
Alvin Abia
9368753605
Fixed typo in Skeleton component doc 2019-01-30 14:07:51 -05:00
afc163
56ac01610f
💄 font-feature-settings to enable monospaced for OpenType font
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
2019-01-30 21:54:43 +08:00
afc163
22dbe4f5b3 :typo: @dawer-prefix-cls => @drawer-prefix-cls 2019-01-30 11:38:53 +08:00
郑旭
b3df86a74f fix destroyFns not reduce when instance.destroy() (#14600)
* fix destroyFns not reduce when instance.destroy()

* Use object destructuring  prefer-destructuring
2019-01-30 10:46:30 +08:00
Ahmed AlSammany
5ed909c9c8 🐛 Fixed src prop for Avatar not effective after image load error
* fix for https://github.com/ant-design/ant-design/issues/14605, reset isImgExist state on src prop update

* add TC for https://github.com/ant-design/ant-design/issues/14605
2019-01-29 21:11:46 +08:00
afc163
305041a79d
💄 update table demo 2019-01-29 18:26:21 +08:00
afc163
a68a1aec63
💄 Tweak checkbox style 2019-01-29 15:39:56 +08:00
afc163
b31e10a458
💄 Tweak Checkbox check align style
close #14271
2019-01-29 15:31:40 +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
afc163
579a868f15
🐛 Fix Table selection checkbox label wrap style
close #14316
2019-01-29 15:31:39 +08:00
afc163
a29806f895
📝 upgrade some documentations for progress and skeleton 2019-01-29 15:23:23 +08:00
zombieJ
9a70b92ab2
Merge pull request #14615 from ant-design/fix-DemoDynamic-undefine
fix: site demo, dynamic form firstItem undefined
2019-01-29 14:32:56 +08:00
zombiej
34370e69eb update doc 2019-01-29 12:30:21 +08:00
zombiej
6807b70b04 update doc 2019-01-29 12:00:23 +08:00
ycjcl868
89653d2e89 📝 fix site demo, dynamic form firstItem undefined 2019-01-29 11:50:43 +08:00
zombieJ
6560697c09
Merge pull request #14608 from sdli/fastFix
fix #14557
2019-01-29 11:44:28 +08:00
zombieJ
92817e28ea
Merge pull request #13380 from ant-design/doc-tree-select
Docs: tree-select open custom icon
2019-01-29 11:36:33 +08:00
zombiej
cd6071e04d update ts def 2019-01-29 11:21:07 +08:00
zombiej
c61c9e5ae3 Merge branch 'master' into doc-tree-select 2019-01-29 11:16:32 +08:00
zombiej
fc6f7336be update style 2019-01-29 11:04:22 +08:00
shawtung
b6f8365d53 为before pseudo增加负index, 避免其挡住自定义overlay的点击
如果overlay没有设置position也没有transform样式, 其层级会低于这个伪元素, 导致无法被点击到.
2019-01-29 10:58:42 +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
afc163
0b3d7d62fa
📝 fix typo 2019-01-29 10:46:42 +08:00
sdli
18262297da fix table.pagination bug - when pageSize is larger than data source length 2019-01-28 22:43:03 +08:00
afc163
3fcb8fa0b3 💄 Fix stylelint errors 2019-01-28 19:06:38 +08:00
Subroto
7d7de2a599 fix IE 11 bug
If `flex-basis` is not set, it is taken as `0px` as default, breaking the ui in IE 11.
2019-01-28 18:46:47 +08:00
zombieJ
a379c47162
add missing defaultFormat (#14593) 2019-01-28 14:07:26 +08:00
afc163
5de5f4c458 🐛 Fix errors in lgtm.com
https://lgtm.com/projects/g/ant-design/ant-design/alerts/?mode=list
2019-01-28 14:02:32 +08:00
zombieJ
8838bd602d
update (#14591) 2019-01-28 13:29:20 +08:00
Bora Ikizoglu
3e85e51b58 Fixed Form.create missing type (#14584) 2019-01-28 12:35:57 +08:00
zombieJ
6240871c6b
update css hack (#14588) 2019-01-28 11:46:57 +08:00
zombieJ
b4050d3d52
fix typescript (#14587) 2019-01-28 11:10:56 +08:00
zombiej
ff8ef180e8 add hide icon sample on showLine 2019-01-26 19:46:30 +08:00
zombiej
b835110f79 merge master 2019-01-26 12:02:56 +08:00
zombieJ
bfec344de5
Not show spining mask in ie <= 10 (#14511)
* not show spining mask in ie <= 10
fix #14365

* revert, let's use css check for this

* add styleChecker

* add pointer-events check

* delay check spin not support when did mount

* use css hack replace style check
2019-01-26 11:55:53 +08:00
zombieJ
633c3aeb25
update rc-switch (#14560)
close #7181
2019-01-26 01:26:48 +08:00
zombiej
f5cbf0f9f1 update getFieldsValue types 2019-01-25 16:01:21 +08:00
zombieJ
318dff9feb
not show overflow content when in elastic (#14550) 2019-01-25 15:35:48 +08:00
zombieJ
5ac80c8e55
Use addonAfter instead of suffix when use enterButton in Input.Search (#14461)
fix #14450
2019-01-25 11:06:05 +08:00
ztplz
18332d8e76 FIx RadioButton cause RadioGroup onChange event trigger twice (#14523)
fix #14485
2019-01-25 10:32:30 +08:00
zombieJ
d1fde3670c
Time picker allow clear (#14490)
close #14472
2019-01-25 10:31:09 +08:00
Gautier
8bb3b10c01 Add a new less variable to override the list header background (#14519)
* Add a new less variable to override the list header background

* Add a new less variable to override the list footer background
2019-01-24 19:52:47 +08:00
krokofant
de8ec0152e #14510 Set small table header to transparent to remove uncolored margin 2019-01-24 17:58:12 +08:00
iojichervo
e5a1e30055 Add MenuItem style type 2019-01-24 15:39:16 +08:00
ztplz
d30fdf11d7 Fix changing the count of a badge with border-color raises an error (#14525)
fix #14516
2019-01-24 12:17:38 +08:00
Michael Salaverry
18dc2c2743 Documentation: fixed typos and grammar (#14518) 2019-01-24 10:51:47 +08:00
偏右
47e23d4137 Add expandIcon for Collapse (#14060)
close #14058 #12212
2019-01-23 10:41:07 +08:00
afc163
909b3b5235 🐛 Fix col span type to number | string
close #14324
2019-01-23 10:40:47 +08:00