Zhang Zhi
30e4fa8a8d
Remove Button's redundent code ( #7176 )
7 years ago
Benjy Cui
2413c6af61
fix: make loading work with icon only button in button group, close : #6822
7 years ago
Benjy Cui
2feb3d42e6
chore: add definition for Button[onMouseDown], close : #6054
8 years ago
afc163
5d6439f15b
When there is icon, should not insert space in button children, #5977
8 years ago
bang
ae631c7190
refactor(button): enable noImplicitAny #5627
8 years ago
Manjit Kumar
4e055ed5d0
use PropTypes from 'prop-types' mdoule instead of React
- as React.PropTypes is being deprecated
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
8 years ago
Kenaniah Cerny
8ec86a6b1f
buttons should not blur after click
8 years ago
偏右
66cafb95b0
Refactor button loading default delay ( #5530 )
* Remove delay loading button demo
* Button loading support like { delay: number }, close #5365
* update loading delay
8 years ago
Sebastian Blade
041bbee2c0
Fix button render with null or undefined child. ( #5473 )
* Fix button render with null or undefined child.
Fix bug #5472
* Add missing semicolon
* Make if statement braced.
......
8 years ago
偏右
0308138974
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
Sebastian Blade
83f85a371a
Fix button render with null or undefined child. ( #5473 )
* Fix button render with null or undefined child.
Fix bug #5472
* Add missing semicolon
* Make if statement braced.
......
8 years ago
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
afc163
d4036d3cae
fix button unknown prop
8 years ago
afc163
d99778b605
Fix clicked effect when switch loading state
8 years ago
afc163
00fac07d9e
refactor requestAnimationFrame
8 years ago
陆离
21a0779692
Better loading of Button ( #4964 )
* Better loading of Button
+ close #4925
+ add a default delay timer (200ms)
* update snapshot
* escape
8 years ago
偏右
f5d697988a
fix: Tooltip should work with disabled button ( #4865 )
* Fix Tooltip won't hide at disabled button
close react-component/tooltip#18
* change button text in test case
* Add comments for display attribute
* correct test case
8 years ago
偏右
f850993fda
More types of Button ( #4679 )
* Add Button[ghost] property, close #4625
* Add danger button
close #1308
* update API doc about ghost and danger property
8 years ago
afc163
9b8a26ba17
upgrade code style
8 years ago
Benjy Cui
1351b5da5d
refactor: remove splitObject
8 years ago
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
8 years ago
Wei Zhu
ccbebe60cc
style: Fix jsx alignment, #3966 ( #3967 )
8 years ago
Benjy Cui
4878258f6c
refactor: ref: #3490
8 years ago
yiminghe
8afe3965c1
upgrade ts 2.0
8 years ago
Benjy Cui
9b99c3886d
fix: spin should mask content, close : #3091
8 years ago
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
8 years ago
Benjy Cui
8db2b79505
chore: fix compile errors
8 years ago
Benjy Cui
5dcce12c2c
fix: some tsc errors ( #2804 )
8 years ago
afc163
730dbc72f7
Add typings
8 years ago
偏右
de359d2cf7
fix tslint problems ( #2360 )
8 years ago
yiminghe
94706f1d2c
fix ts
9 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
9 years ago
afc163
4b00e05cfb
fix for button ummount
9 years ago
afc163
affda966e5
fix #1528
9 years ago
afc163
6dc187e5f4
Not focus it when click button
91117c0faa (diff-39f43a348016e3a62dc9c315917c402bR108)
9 years ago
afc163
63e110fbc6
fix #1442
9 years ago
afc163
b4be06f816
improve button loading animation
9 years ago
afc163
5f0b1ef006
Fix button text span wrap
9 years ago
afc163
e4c3faeabc
fix size propTypes
9 years ago
afc163
41182f5619
fix prefixCls
9 years ago
afc163
611665fa6d
button contains icon only should has smaller padding
9 years ago
afc163
5c884a64c4
Remove Button type PropTypes limit, close #1308
9 years ago
Bruce Mitchener
273e527201
Use static class members for propTypes and friends.
9 years ago
Bruce Mitchener
71594b0e5c
Remove manual binding for 'this'.
Use ES7 style class members for event handlers so that 'this' is
automatically bound and each definition site doesn't need to manually
invoke 'bind'.
This makes all existing ES2015 class usages in components use the
same mechanism for binding.
9 years ago
afc163
72db02ef04
Add icon prop for Button, close #1199
9 years ago
闲耘™
8d817e6eee
update(propTypes): more restrictions on propTypes
9 years ago
闲耘™
1c35bd3d9d
refact(regexp): better regexp
9 years ago
afc163
f7fb5b29f9
Fix click effect in Popconfirm button
9 years ago
afc163
4446e73fda
remove button border-radius fallback
9 years ago