Commit Graph

39 Commits

Author SHA1 Message Date
Wei Zhu
1c2385de98 Add polyfill 2018-06-15 11:14:15 +08:00
Wei Zhu
4ac0277813 Add Tag[visible] 2018-06-15 11:14:15 +08:00
Wei Zhu
1ed9fed2cf Improve Button and Tag types 2018-05-18 18:22:33 +08:00
Zheeeng
24e373a812 Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055)
* Remove span.ant-tag-text

Warp React.ReactNode with span element is not suggested. It may cause anti-specification problem: `<span><span>I'm spec breaker</span></span>`. span is not a general tags container.
Another benefit from this change is keeping the same structure with CheckableTag.
After inspecting the removing of the style of .ant-tag-text, seems bringing no problems. The old example employeed this css class has gone long long time ago. See: 0635877a51

* Use React.Children.only api to supress type casting

By codes, the children and the overlay of Dropdown must be **single** and **valid React.ReactElement**. React.Children.only takes it and report more friendly React internal built error messages.

* Revert hack CSS styles: filling .ant-tag's block area with orphan child anchor
2018-02-04 01:29:56 -06:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
afc163
e2c4ad3ba7 More preseted colors of tag 2017-10-16 15:38:34 +08:00
ChaXinyu
14e2a56b75 export components interface (#7654)
* export components interface

* export specific props

* fix formItem missed import
2017-09-25 22:14:49 +08:00
Randy
35ae41f618 remove any type in Tag (#7015) 2017-07-31 00:42:25 +08:00
paranoidjk
ba168b826f refactor: use spread operator replace object-assign (#6677) 2017-07-03 16:57:11 +08:00
afc163
fd625ef1a0 upgrade and fix tslint problems 2017-05-31 15:48:35 +08:00
Benjy Cui
0e5431d21b deps: upgrade antd-tools and code style 2017-05-25 16:54:15 +08:00
偏右
10396419b5 Add preset color Tag (#4571)
* Add preset color Tag, close #4528

* Use color back over presetColor

* fix snap

* simplify isPresetColor
2017-01-13 21:25:55 +08:00
Benjy Cui
77801ff436 fix: CI failed and ts null check 2016-12-20 10:23:25 +08:00
Benjy Cui
1351b5da5d refactor: remove splitObject 2016-12-19 15:19:15 +08:00
Andrey G
a307a7acf7 refactor: remove unnecessary computed props for classNames (#4055)
* remove unnecessary computed props for classNames

* rollback autocomplete optimization for possible css style order issue

* update snapshots

* remove more unnecessary computed props at Input
2016-11-30 10:20:23 +08:00
Wei Zhu
bd55d21f83 style: Fix jsx-no-multiline-js (#3994)
* Fix jsx-no-multiline-js

* TimePicker addon test

* Transfer search test
2016-11-25 12:03:39 +08:00
Benjy Cui
e64f04cee5 feat: CheckableTag, close: #3560 2016-11-10 11:20:52 +08:00
Benjy Cui
8dcdd12bef feat: bring Tag[color] back, close: #3773 2016-11-10 11:12:09 +08:00
afc163
5aafe0d8de Fix tag[style] not working (#3773) 2016-11-09 17:10:05 +08:00
Benjy Cui
60ecb3c628 refactor: each message should warn just once 2016-11-01 11:10:11 +08:00
Benjy Cui
b2e6bdcf94 feat: deprecate Tag[color], ref: #3560 2016-10-31 17:58:12 +08:00
Benjy Cui
08e21e0a2f refactor: close: #3490 2016-10-24 16:30:38 +08:00
afc163
1e5264bad7 fix tslint 2016-10-20 22:10:46 +08:00
yiminghe
c2d3f16dfb update tslint 2016-10-20 19:19:16 +08:00
afc163
466aea3ea5 fix some components style detail 2016-09-30 11:30:51 +08:00
Benjy Cui
672ebecf47 deps: upgrade dependencies (#3017)
* deps: upgrade dependencies

* fix: backward compatibility

* fix: replace cross with close
2016-09-18 10:12:21 +08:00
Benjy Cui
1dac1370de deps: replace obejct.omit with omit.js, close: #2988 (#2994) 2016-09-10 17:17:55 +08:00
afc163
363f610d8b Fix tsc errors beside DatePicker 2016-08-24 16:09:55 +08:00
Benjy Cui
5dcce12c2c fix: some tsc errors (#2804) 2016-08-22 17:26:14 +08:00
afc163
77fa03240b Merge branch '1.x-stable' 2016-08-03 11:43:43 +08:00
afc163
2e41e35cc6 Fix more tslint problems 2016-07-13 17:22:23 +08:00
偏右
de359d2cf7 fix tslint problems (#2360) 2016-07-13 11:14:24 +08:00
yiminghe
d855460eee merge 2016-07-11 13:03:22 +08:00
afc163
64b2381759 Merge 1.x-stable 2016-07-09 17:43:31 +08:00
bang
c36cf9e07e update tag 2016-07-09 10:52:16 +08:00
afc163
f675b636cd Merge 1.x-stable 2016-07-08 16:34:02 +08:00
yiminghe
94706f1d2c fix ts 2016-07-07 20:25:03 +08:00
afc163
21fb73d4f2 Merge branch '1.x-stable' 2016-06-28 18:46:23 +08:00
yiminghe
9a0d751f94 refactor to typescript 2016-06-22 13:19:48 +08:00