Commit Graph

8732 Commits

Author SHA1 Message Date
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
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