Maciej Czekaj
bc59ebb0d8
fix spaces in curly brackets
2018-12-26 23:53:10 +08:00
Maciej Czekaj
ed593ef138
fix two more code style issues
2018-12-26 23:53:10 +08:00
Maciej Czekaj
72ee25aa4f
Fix method argument name
2018-12-26 23:53:10 +08:00
Maciej Czekaj
465c8075dd
#9792 Migrate Button to new lifecycle methods
...
Signed-off-by: Maciej Czekaj <natanielcz@gmail.com>
2018-12-26 23:53:10 +08:00
afc163
8b5e78f174
Merge branch 'master' into feature
...
* master:
Fixed Modal width when screen size smaller than 768px
🚨 coverage precision to 1
🚨 update .codecov.yml
💄 Fix Badge animation jump when count is ReactNode
fix Popover arrow narrow line at top
fix Popover arrow border in different directions
fix popover arrow top shadow
Change render of + & - icon fix #13924
🐛 loose button type propTypes for custom usage
fix input has min size close #3699
fix: fix-picture-spell-error
2018-12-26 20:47:12 +08:00
zombiej
15524df941
Change render of + & - icon
...
fix #13924
2018-12-26 18:48:47 +08:00
afc163
380416e92a
🐛 loose button type propTypes for custom usage
...
close #13915
ref #1308
2018-12-26 18:13:35 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
...
* master:
📝 Add bodyStyle and style of Drawer in documentation, #13850
🐛 Fix Drawer style not working
🐛 fix markStyle affset style
Update Santa.jsx
update changelog
bump 3.11.6
revert Christmas egg
[type] make type of components compatible with ComponentType<P>
bump 3.11.5
✨ site: make document side bar sticky
2018-12-25 16:28:50 +08:00
zombiej
d648b822a6
revert Christmas egg
2018-12-25 10:40:18 +08:00
frezc
5f9b376456
[type] make type of components compatible with ComponentType<P>
2018-12-25 01:10:00 +08:00
afc163
748ddcaa5a
💄 fix dropdown button warning
2018-12-24 14:00:51 +08:00
Jeffrey Carl Faden
9ff20ba09a
Fix primary color usage in .button-variant-other
...
Instead of using @primary-5 and @primary-7, use colorPalette mixin to modify @btn-primary-bg
2018-12-22 11:05:41 +08:00
afc163
879784c665
Merge branch "master" into "feature"
2018-12-20 17:43:00 +08:00
afc163
ecf83c0438
💄 Fix one tslint problem
2018-12-20 17:34:30 +08:00
小哈husky
f5bf79d2d8
修复当值为0时样式不对问题
...
修复当值为0时样式不对问题 ,bug demo.https://codesandbox.io/s/0146v1lxkl
2018-12-20 17:17:05 +08:00
陈帅
2c79d2a7c1
Revert "Use less @plugin" ( #13613 )
2018-12-13 18:07:49 +08:00
zombiej
2029762297
replace components colors
2018-12-11 22:45:03 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
陈帅
df356a586c
Merge branch 'master' into feature
2018-12-07 18:52:13 +08:00
陈帅
dca9715186
support prettier
2018-12-07 18:27:30 +08:00
amedora
0aeb9a356b
use color definitions insted of numbers
2018-12-05 19:45:22 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
afc163
35585a6d07
🐛 should render as normal button when href is assigned undefined
...
close #13337
2018-12-03 10:39:00 +08:00
afc163
83c192ea3e
💄 fix eslint problems
2018-11-28 15:11:02 +08:00
afc163
0e99b6ea72
💄 fix loading button's icon style
...
close #13300
2018-11-27 16:01:27 +08:00
afc163
233f1891d1
✅ Add test case for wave
2018-11-12 13:59:34 +08:00
afc163
a616f89a1b
🔥 update less code style
2018-11-12 12:02:30 +08:00
afc163
74aeaceaa8
🐛 Fix typo, #12978
2018-11-11 18:52:24 +08:00
afc163
664089ecf6
🚑 Fix Button[href] 1px align bug in another way
...
revert adee2f3
close #12978
2018-11-11 18:11:19 +08:00
afc163
464286be12
tweak style
2018-11-11 14:22:13 +08:00
afc163
9ba892b02d
💄 tweak button style
2018-11-10 22:21:27 +08:00
afc163
adee2f3329
Fix Button[href] 1px align bug
...
close #12978
2018-11-06 15:41:50 +08:00
afc163
95ac6bf673
Fix Button[icon] vertical align issue
...
close #12972
test codesandbox url: https://codesandbox.io/s/2p8k935jjp
2018-11-06 15:05:23 +08:00
afc163
213693e333
🌐 site: transition component category, close #11629
2018-11-04 16:20:35 +08:00
afc163
546c59a4c1
Fix button icon margin style bug
...
```jsx
<Button loading>
<TwoChineseWords />
</Button>
```
2018-10-30 19:13:29 +08:00
afc163
087f7efd10
findDOMNode to refs, close #12843
2018-10-30 16:17:24 +08:00
afc163
fe3f110085
does: update button api documentation
2018-10-28 20:57:23 +08:00
dazbo
f24917bb5f
Add display rule to fix Edge ignoring pointer-events ( #12712 )
2018-10-19 11:17:23 +08:00
afc163
86c11e5eb5
Fix vertical align issue of empty button
...
close #12681
2018-10-17 11:07:25 +08:00
Wei Zhu
a3ce6678cb
Update snapshot
2018-10-01 23:57:45 +08:00
snail
6b22ae3b6c
[fixed]button can also trigger the click event when loading is true in ie9 ( #12466 )
2018-09-29 14:41:55 +08:00
afc163
d03f4bc8db
test: fix warning message in jest log
2018-09-19 15:05:55 +08:00
afc163
00aebeb975
add christmas easter egg
2018-09-10 11:23:49 +08:00
afc163
800a7c6acd
tweak button design
2018-09-08 13:49:48 +08:00
afc163
318737584a
tweak button design
2018-09-08 13:49:02 +08:00
HeskeyBaozi
976f6969f4
update test snapshot
2018-09-07 14:14:23 +08:00
HeskeyBaozi
24568f61ff
use the whole svg icons
2018-09-02 23:39:58 +08:00
HeskeyBaozi
2f8a56fa78
fix test case & update test snapshot
2018-09-02 20:59:37 +08:00
HeskeyBaozi
74798b8911
upgdate test snapshot
2018-09-02 20:59:37 +08:00
HeskeyBaozi
d6131fe18d
update test snapshot
2018-09-02 20:59:37 +08:00
afc163
207bad7b47
Merge branch 'master' into feature-3.9.0
2018-09-01 13:22:06 +08:00
zombiej
b076b52756
fix #11967 . Add children type validate in button.tsx
2018-08-30 17:59:09 +08:00
HeskeyBaozi
0c9465aaf9
upgrade icons library
2018-08-27 20:40:11 +08:00
HeskeyBaozi
d9b38aee4b
Merge branch 'feature-3.9.0' of https://github.com/ant-design/ant-design into feature/svg-icon
...
# Conflicts:
# package.json
2018-08-25 13:24:44 +08:00
HeskeyBaozi
ee1d2469a8
upgrade test snapshot
2018-08-24 18:36:08 +08:00
afc163
a54d06eb6f
fix test case in react 15
2018-08-24 15:12:31 +08:00
afc163
62bacb09bf
Fix wave render error in jest, close #11868
2018-08-24 12:11:44 +08:00
Bradley Xu
f20a1e4e5d
docs: update button demo doc
2018-08-22 16:22:30 +08:00
HeskeyBaozi
65600c8a95
upgrade to 3.8.2
2018-08-20 14:00:51 +08:00
HeskeyBaozi
796de6390b
update test snapshot
2018-08-14 15:32:29 +08:00
HeskeyBaozi
35974d67b2
update test snap shot
2018-08-13 20:51:01 +08:00
HeskeyBaozi
3baec95628
Merge branch 'feature-3.9.0' of https://github.com/ant-design/ant-design into feature/svg-icon
2018-08-13 09:26:33 +08:00
afc163
9cf6ae6010
Refactor and apply wave click animation to more components
...
now support Button, Tag, Radio.Button and switch
2018-08-11 15:14:34 +08:00
afc163
b4d95f7e20
Refactor button click effect implementation
...
for better perfermance
2018-08-08 16:18:45 +08:00
Wei Zhu
064bfaf554
Add @types/prop-types
2018-08-07 21:09:05 +08:00
HeskeyBaozi
cc180e2605
resolve conflict.
2018-08-02 18:02:31 +08:00
Ilan
d7a9783299
✅ update button snapshots
2018-07-31 18:42:12 +08:00
Ilan
b5ed207902
🚚 fitContainer -> block name conversion
2018-07-31 18:42:12 +08:00
Ilan
8fab1e1d1b
🐛 update fitContainer order
2018-07-31 18:42:12 +08:00
Ilan
5536a4ca3b
📝 update chinese button api doc
2018-07-31 18:42:12 +08:00
Ilan
9742be40a7
📝 update button api docs
2018-07-31 18:42:12 +08:00
Ilan
623cf1eaff
✨ introducing fitContainer prop for button
2018-07-31 18:42:12 +08:00
HeskeyBaozi
768af40c4c
Merge branch 'feature-3.8.0' of https://github.com/ant-design/ant-design into feature/svg-icon
...
# Conflicts:
# components/drawer/__tests__/__snapshots__/Drawer.test.js.snap
# components/drawer/__tests__/__snapshots__/DrawerEvent.test.js.snap
# components/drawer/index.tsx
2018-07-25 12:03:00 +08:00
tangjinzhou
430381f28f
fix: ButtonGroup style bug when have disabled button #9296 ( #11321 )
...
* fix: ButtonGroup style bug when have disabled button #9296
* Update mixin.less
2018-07-21 22:11:57 +08:00
HeskeyBaozi
4a553a2006
upgrade test cases
2018-07-19 20:37:47 +08:00
HeskeyBaozi
8df086f022
update test cases
2018-07-18 13:39:02 +08:00
HeskeyBaozi
9338f33c1c
update test cases
2018-07-18 10:33:54 +08:00
陈帅
1f15df4f14
Merge branch 'feature-3.7.0'
2018-07-15 09:27:34 +08:00
david.lv
6fe9ca201e
Update index.less
...
spell check 'compatibile'->'compatible'
2018-07-14 23:45:35 +08:00
zombiej
11dba9c305
update snapshot
2018-06-28 17:12:16 +08:00
afc163
009ed08580
upgrade eslint-config-airbnb
2018-06-27 16:09:58 +08:00
Wei Zhu
aa580beb8b
docs: sort api table
2018-06-24 17:09:18 +08:00
afc163
9f16d066af
Fix lint problems from eslint-config-airbnb@17
2018-06-22 21:05:13 +08:00
Zheeeng
980e2b1427
Update button signature ( #10877 )
2018-06-14 10:53:14 +08:00
Zheeeng
f36c6195b8
Fix typo ( #10878 )
...
First of all, thank you for your contribution! :-)
Please makes sure that these checkboxes are checked before submitting your PR, thank you!
* [x] Make sure that you propose PR to right branch: bugfix for `master`, feature for latest active branch `feature-x.x`.
* [x] Make sure that you follow antd's [code convention](https://github.com/ant-design/ant-design/wiki/Code-convention-for-antd ).
* [x] Run `npm run lint` and fix those errors before submitting in order to keep consistent code style.
* [x] Rebase before creating a PR to keep commit history clear.
* [ ] Add some descriptions and refer relative issues for you PR.
Extra checklist:
**if** *isBugFix* **:**
* [ ] Make sure that you add at least one unit test for the bug which you had fixed.
**elif** *isNewFeature* **:**
* [ ] Update API docs for the component.
* [ ] Update/Add demo to demonstrate new feature.
* [ ] Update TypeScript definition for the component.
* [ ] Add unit tests for the feature.
2018-06-12 14:36:08 +08:00
afc163
71d3af310a
Fix missing border in Button.Group
...
https://gw.alipayobjects.com/zos/rmsportal/hKuBQeoCgjruYXCGnrDt.png
2018-06-08 15:08:04 +08:00
afc163
6602df16e6
Fix extra border style in Button.Group
2018-06-06 11:33:13 +08:00
Junbin Huang
bbf5cb75c3
chore: update typescript@~2.9.1 ( #10748 )
2018-06-02 20:12:09 +08:00
Wei Zhu
1ed9fed2cf
Improve Button and Tag types
2018-05-18 18:22:33 +08:00
afc163
cafeb8e3eb
fix button group split border color
2018-05-17 21:36:05 +08:00
afc163
99dca86904
update button disable demo
2018-05-17 21:23:36 +08:00
Christopher Deutsch
dd0d4214d1
Omit 'ref' from ButtonProps otherwise typing conflicts occur. ( #10426 )
...
Fixes #10405
2018-05-10 11:21:07 +08:00
afc163
dbde26e560
docs: add disabled prop doc for Button, close #10373
2018-05-05 13:18:50 +08:00
Wu Haotian
6019245365
fix(button): use React.HTMLProps for button's props ( #10229 )
2018-05-04 14:48:41 +08:00
afc163
fb38e55cc0
more test about button text
2018-05-01 19:36:11 +08:00
afc163
c7471a4653
tweak insert space logic of loading button
2018-05-01 19:33:38 +08:00
afc163
649d733048
fix snapshot ci
2018-04-19 11:54:44 +08:00
Zen
d7f9270a6f
fix button/demo/disabled.md ( #10009 )
...
add `ghost` property to ghost buttons
2018-04-19 11:43:22 +08:00
Zheeeng
05a522c343
Update ButtonType ( #10129 )
2018-04-17 23:54:55 +08:00
afc163
4502ad8376
Fix button two-chinese-words update bug
2018-03-23 22:23:03 +08:00
afc163
caf497d08f
Fix underline of Button[href], close #9755
2018-03-23 14:45:08 +08:00
afc163
8b1d0224cb
Tweak danger button focus style
2018-03-13 18:20:12 +08:00
afc163
2fe64d429a
Fix button group align issue in chrome, close #1019
2018-03-02 15:25:31 +08:00
Ivan Kravets
86ab00fbbd
Use default background for button states ( #9411 )
2018-02-24 22:25:50 +08:00
Christopher Deutsch
97b09b393b
onKeyPress and onKeyDown got the wrong type in #9316 ( #9365 )
2018-02-15 13:10:35 -06:00
Yury Kozyrev
1e92ff8efd
onKeyPress and onKeyDown typings ( #9316 )
...
* Update Checkbox.tsx
* Update button.tsx
2018-02-08 20:35:54 -06:00
afc163
dc7d9de4cd
revert demo code
2018-02-08 15:52:24 +08:00
afc163
70f3afeda0
Fix ButtonGroup style bug when have disabled button, close #9296
2018-02-08 15:51:53 +08:00
afc163
6577616be2
fix demo
2018-02-08 14:26:33 +08:00
afc163
875024cd1e
update onRow usage
2018-02-08 14:25:49 +08:00
George Gray
03c180ff08
Use @btn-primary-bg for primary ghost btn ( #9236 )
2018-02-02 03:23:14 -06:00
niko
f2ba99978d
upgrade snapshots ( #9127 )
2018-01-25 18:24:59 +08:00
afc163
1d9afb6510
Fix button group z-index, close #9014
2018-01-18 17:22:30 +08:00
Yury Kozyrev
693e734a82
Update button.tsx ( #8918 )
2018-01-10 22:57:11 +08:00
崔宏森
eac76df671
Fix the bug<Button>{0}</Button> display abnormal ( #8733 )
...
* 修复了<Button>{0}</Button> 显示异常的bug
* Fix the bug<Button>{0}</Button> display abnormal
* Fix the bug<Button>{0}</Button> display abnormal
* Unit test writing error
* Unit tests were added to test the rendering of {0}, 0, {false} respectively
2018-01-09 16:18:20 +08:00
afc163
d6d701976f
Fix button line-height broken by 455b9e4
, close #8836
2018-01-05 21:34:58 +08:00
afc163
455b9e40e0
Remove unneccessary reset style of button
2018-01-04 10:09:13 +08:00
afc163
6959119573
Fix HOC in Button not inserted space bettween chinese words
2018-01-02 16:27:59 +08:00
Wei Zhu
999d6184ad
docs: Sort api table
2017-12-29 20:22:58 +08:00
afc163
8ba0b87dcd
Fix button align in chrome
2017-12-22 16:47:12 +08:00
偏右
250eed0fc9
Link button ( #8343 )
...
* support link button
* Fix type
2017-11-29 11:20:22 +08:00
afc163
c0b7bdb9f3
Tweak components style detail
2017-11-27 14:51:46 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
2017-11-17 14:38:54 +08:00
偏右
bdceb5f083
Review fix ( #8125 )
...
* Fix style
* Fix style
* fix lint
* Fix more styles
* Fix more styles
* update snap
2017-11-06 21:28:51 +08:00
afc163
2f0197599f
Merge branch 'master' into antd-3.0
2017-11-06 21:19:44 +08:00
afc163
ac96bad478
Improve demo details and update snapshot
2017-11-06 21:14:40 +08:00
Wei Zhu
bbb1a3a828
Merge branch 'master' into antd-3.0
2017-10-25 10:27:38 +08:00
Wei Zhu
36227a10db
docs: sort api table
2017-10-25 10:25:44 +08:00
afc163
ef443ad047
Merge branch 'master' into antd-3.0
2017-10-20 15:47:42 +08:00
Zhang Zhi
7bc6aad1fd
Update button code to make it more clearer ( #7929 )
...
* remove unnecessary default value of 'size' prop
* `clicked` should be a state
2017-10-19 21:52:06 -05:00
afc163
274985d320
fix button margin inside
2017-10-17 15:01:21 +08:00
偏右
9053192ae9
Fix component style ( #7848 )
...
* fix components style
* fix snapshot
* update travis node version
* change upload action in ci
2017-10-11 12:01:27 +08:00
Wei Zhu
a3c3ec8070
Fix types and lint
2017-10-09 21:03:00 +08:00
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
2017-10-09 19:18:04 +08:00
afc163
054444f619
Merge branch 'master' into antd-3.0
2017-10-07 15:34:19 +08:00
OuYancey
88220df0fb
docs: update render result in Button ( #7802 )
2017-10-03 11:02:35 +08:00
偏右
2bced36f0c
New component styles ( #7731 )
...
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
2017-09-27 22:32:49 +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
afc163
c9069dfdf6
Merge branch 'master' into antd-3.0
2017-09-23 16:50:14 +08:00
afc163
dd22bae0fc
Fix button loading style with icon, close #7709
2017-09-23 16:08:30 +08:00
偏右
759b0bb821
seperate reset styles ( #7682 )
...
* seperate reset styles
* not reset ul/ol/p/heading
* revert reset.less idea
* move label style into ant-form-item, #5851
* revert reset.less idea
* update base.less
* Better typography from bootstrap@4
use reboot replace normalize
ref:
b4d84b9cdf/scss/_reboot.scss
close #6162
2017-09-22 18:33:29 +08:00
偏右
dab6f43c02
Feat search enter button ( #7620 )
...
* Add enterButton for Input.Search
close #7596
* update snapshot
2017-09-15 17:03:43 +08:00
Wei Zhu
250c7a9c68
Revert "Mock rc-trigger"
...
This reverts commit 9d2c91598b
.
2017-09-15 16:42:25 +08:00
Wei Zhu
9d2c91598b
Mock rc-trigger
...
Ref #5522
2017-09-15 16:14:26 +08:00
afc163
bb2c2036ba
update button size demo
2017-09-11 15:29:23 +08:00
Khalifa Lame
8271b5d069
docs: update Button English doc ( #7438 )
...
Fixed some typos. Added ghost button type.
2017-09-04 15:23:42 +08:00
Benjy Cui
1f652bfe4c
fix: event.target of Button's click event, close : #7034
2017-08-16 17:43:56 +08:00
afc163
59b11f3b48
Tweak button insert space logic
2017-08-15 20:08:00 +08:00
Zhang Zhi
30e4fa8a8d
Remove Button's redundent code ( #7176 )
2017-08-11 15:06:35 +08:00
afc163
6a17efcbf1
upgrade some devDeps and fix stylelint
2017-08-04 18:01:40 +08:00
afc163
a0026a5923
Fix dropdown button mis-align, close #7070
2017-08-03 16:16:37 +08:00
afc163
a6037d66c0
Fix button align issue, close #7001
2017-07-30 14:00:32 +08:00
newraina
aa6afd81b5
fix Button.Group type definition
2017-07-18 16:46:19 +08:00
neekey
7e522291c8
add unit px
to all less value, make them explicit
2017-07-17 17:44:40 +10:00
Benjy Cui
2413c6af61
fix: make loading work with icon only button in button group, close : #6822
2017-07-14 15:26:55 +08:00
Benjy Cui
2feb3d42e6
chore: add definition for Button[onMouseDown], close : #6054
2017-05-16 11:55:17 +08:00
afc163
5d6439f15b
When there is icon, should not insert space in button children, #5977
2017-05-02 20:16:37 +08:00
bang
ae631c7190
refactor(button): enable noImplicitAny #5627
2017-04-26 23:30:51 +07:00
ddcat1115
75e9e44a2f
new style of danger button ( #5815 )
...
* new style for danger button
* improve
2017-04-22 10:44:17 +08:00
afc163
6b1cec2bf6
Use height over padding for button size, close #5256
2017-04-16 19:01:46 +08:00
afc163
fbdebd7692
Fix button loading transition
2017-04-15 14:57:20 +08:00
afc163
8605e84150
update button demo
2017-04-15 14:57:20 +08:00
afc163
1083f82c5d
Fix icon transtion delay problem in Chrome
2017-04-12 15:30:35 +08:00
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
2017-04-12 02:22:05 +05:30
偏右
accb6cbfeb
Merge pull request #5597 from kenaniah/accessibility
...
Improves link + button focusing
2017-04-05 14:56:33 +08:00
Wei Zhu
1a8e738142
Set snapshotSerializers
2017-04-02 18:09:23 +08:00
Kenaniah Cerny
8ec86a6b1f
buttons should not blur after click
2017-04-01 02:57:01 -07:00
偏右
66cafb95b0
Refactor button loading default delay ( #5530 )
...
* Remove delay loading button demo
* Button loading support like { delay: number }, close #5365
* update loading delay
2017-03-28 15:50:46 +08:00
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.
......
2017-03-27 10:09:38 +08:00
偏右
0308138974
[WIP] upgrade deps ( #5455 )
...
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
2017-03-27 10:09:38 +08:00
afc163
69dff0fa2d
Fix danger button ghost style
2017-03-18 16:33:55 +08:00
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
...
* Upgeade to jest 19
* Use jest.spyOn
2017-03-17 18:56:30 +08:00
afc163
a16636cafd
Fix Button text shifts when click it
2017-03-05 20:13:54 +08:00
Benjy Cui
758559f718
test: update snapshots
2017-02-28 16:14:53 +08:00
afc163
d4036d3cae
fix button unknown prop
2017-02-27 11:18:48 +08:00
afc163
d99778b605
Fix clicked effect when switch loading state
2017-02-26 19:21:22 +08:00
afc163
00fac07d9e
refactor requestAnimationFrame
2017-02-26 19:08:36 +08:00
afc163
14d380f0f9
use old button animation
2017-02-26 02:18:20 +08:00
陆离
21a0779692
Better loading of Button ( #4964 )
...
* Better loading of Button
+ close #4925
+ add a default delay timer (200ms)
* update snapshot
* escape
2017-02-21 14:44:08 +08:00
Wei Zhu
a69a52f8b8
docs: Rewrite Button demos to ES6 component
2017-02-19 21:03:44 +08:00
afc163
8dc73f4601
Fix shake bug fo Button loading with icon, close #4913
2017-02-18 00:22:38 +08:00
afc163
49b050ccc1
Improve button and badge[status] with pulse animation
2017-02-16 17:08:15 +08:00
偏右
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
2017-02-16 14:03:05 +08:00
afc163
5327a49161
Fix Button[shape="circle"] loading style, close #4875
2017-02-15 11:55:08 +08:00
afc163
e18a330fbd
Fix danger button click effect
2017-02-14 18:01:36 +08:00
Benjy Cui
200b88246f
docs: update docs format
2017-02-13 10:55:53 +08:00
afc163
0eb5c689a3
remove type="ghost" from demo
2017-02-04 22:35:33 +08:00
afc163
5f8988a266
fix ghost primary button hover border color
2017-01-31 21:27:23 +08:00
Graeme Yeates
1006015ef0
Add border customization variables ( #4734 )
...
* Add border customization variables (#4712 )
* Make border styles customizable (fixes #4712 )
2017-01-31 16:05:10 +08:00
afc163
f2bb4afd4d
Merge from master
2017-01-27 17:23:51 +08:00
偏右
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
2017-01-23 22:24:36 +08:00
Wei Zhu
c681e8acf2
docs: Add backquote to default value
2017-01-21 22:35:42 +08:00
Benjy Cui
3e17551b7e
site: improve build speed
2017-01-19 15:22:53 +08:00
偏右
d811ebee5c
New color system ( #4426 )
...
* Add new color patterns algorithm
* Add color palettes
* update other colors
* fix gray color
* update more tint/shade to colorPalette
* new font color
* Update doc for new color system
* improve doc style
2017-01-01 22:20:06 +08:00
Rex
c8a16b10bd
fix the blue border in some scenes ( #4382 )
2016-12-30 14:27:23 +08:00
afc163
9b8a26ba17
upgrade code style
2016-12-26 19:46:01 +08:00
Benjy Cui
1351b5da5d
refactor: remove splitObject
2016-12-19 15:19:15 +08:00
Wei Zhu
587b874fc8
tests: Add button tests
2016-12-14 15:44:38 +08:00
Wei Zhu
17a0a33283
Restructure tests.
2016-12-14 14:41:39 +08:00
Benjy Cui
60da9909d3
site: improve loading performance ( #4112 )
...
* site: should generate html file for both of en and cn, ref: #3934
* site: remove loading animation
* site: fix header menu highlight
* site: improve detail
* deps: update
2016-12-09 13:02:16 +08:00
afc163
0e97fae3f5
fix vertical-align of ButtonGroup
2016-12-03 17:15:06 +08:00
afc163
cf11a4f809
remove button-nested-icon font-size setting
2016-12-03 17:11:28 +08:00
Benjy Cui
f3ffae9e54
css: fix icon size in button, close : #4023 ( #4080 )
...
* css: fix icon size in button, close : #4023
* test: update snapshot for Button demo
2016-12-02 15:06:59 +08:00
Benjy Cui
04269ecb40
docs: hide Button[shape=circle-outline], close : #4077
2016-12-01 11:13:38 +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
Will Chen
6b774a1343
docs: improve docs' detail ( #4050 )
2016-11-29 17:13:24 +08:00
Wei Zhu
ccbebe60cc
style: Fix jsx alignment, #3966 ( #3967 )
2016-11-23 17:53:10 +08:00
Bruce Mitchener
b875a6104b
docs: Button: Add dashed
to type property description.
2016-11-15 13:30:17 +07:00
afc163
de64779546
speed up loading icon
2016-11-13 18:19:23 +08:00
ddcat1115
0baef0627e
docs: 调整组件导航结构 ( #3758 )
...
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00
afc163
9b81fe86d9
clear less variables and add @text-color-secondary
2016-11-08 20:48:03 +08:00
ddcat1115
ad9cfe8914
Button add Multiple Buttons
demo ( #3660 )
2016-10-31 19:31:43 +08:00
Benjy Cui
a7d335ec7a
docs: update docs detail
2016-10-30 12:43:59 +08:00
afc163
527949df04
Fix Button and Input vertical-align bug
2016-10-26 16:27:01 +08:00
Benjy Cui
4878258f6c
refactor: ref: #3490
2016-10-24 12:04:26 +08:00
yiminghe
8afe3965c1
upgrade ts 2.0
2016-10-19 17:52:23 +08:00
偏右
62a53e75b8
refactor: Downsize some style code ( #3421 )
...
* remove fieldset disabled style
* improve button style mixins
2016-10-14 09:12:10 +08:00
afc163
28765d4811
Fix large and small button's border-radius less vars
2016-10-13 21:12:05 +08:00
afc163
1a9fef5d2a
reinforcement button clicked animation
2016-09-28 00:13:00 +08:00
afc163
c0c00fbcd0
Fix strange button style bug in chrome 53, close #3031
2016-09-22 15:47:19 +08:00
Benjy Cui
bd7e9f00c0
style: update code style
2016-09-21 11:54:53 +08:00
Benjy Cui
9b99c3886d
fix: spin should mask content, close : #3091
2016-09-20 14:51:43 +08:00
afc163
4a756405d4
Add two less variables
2016-09-19 17:42:47 +08:00
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
...
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
2016-09-19 10:17:07 +08:00
马斯特
a25ec29fb8
refactor: 保证所有的tsx和less都正确使用prefix ( #3024 )
...
* refactor: extract prefix cls as less variable
* refactor: apply ant icon prefix cls in less files
* refactor: all components support prefixCls props
2016-09-14 16:18:33 +08:00
Benjy Cui
8db2b79505
chore: fix compile errors
2016-09-13 15:31:29 +08:00
kvetoslavnovak
10709251ec
#1471 ( #3000 )
...
#1471
2016-09-11 00:30:08 +08:00
Benjy Cui
5dcce12c2c
fix: some tsc errors ( #2804 )
2016-08-22 17:26:14 +08:00
afc163
730dbc72f7
Add typings
2016-07-14 18:15:59 +08:00
偏右
de359d2cf7
fix tslint problems ( #2360 )
2016-07-13 11:14:24 +08:00
yiminghe
94706f1d2c
fix ts
2016-07-07 20:25:03 +08:00
yiminghe
9a0d751f94
refactor to typescript
2016-06-22 13:19:48 +08:00
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
2016-06-06 13:54:10 +08:00
afc163
7cb1fb02b8
color fix inside button #1882
2016-05-28 15:47:02 +08:00
afc163
4b00e05cfb
fix for button ummount
2016-05-28 15:31:39 +08:00
Benjy Cui
f22e682217
docs: update translation
2016-05-25 09:43:26 +08:00
afc163
62e55e2080
update button demo
2016-05-18 14:40:09 +08:00
afc163
8bd421efc7
fix loading button clicked effect
2016-05-18 13:15:42 +08:00
Benjy Cui
8842d9342a
site: update components' type
2016-05-16 15:41:55 +08:00
Benjy Cui
be2bac4b25
site: resolve rebase errors
2016-05-16 15:41:55 +08:00
Benjy Cui
d2a4dcf1eb
docs: hide style
2016-05-16 15:41:55 +08:00
Benjy Cui
518495a948
docs: update translation
2016-05-16 15:41:55 +08:00
Benjy Cui
5909438ed3
docs: update translation
2016-05-16 15:41:55 +08:00
Benjy Cui
2fe4a49182
docs: translate the documentation of Button to English
2016-05-16 15:41:55 +08:00
Benjy Cui
8971074b3d
site: add i18n for common md file
2016-05-16 15:41:55 +08:00
Benjy Cui
b9a550c0fe
site: i18n for demo
2016-05-16 15:41:55 +08:00
Benjy Cui
ecaa6c56c3
style: enable comma-dangle
2016-05-11 09:32:33 +08:00
afc163
8b894f908d
upgrade antd-tools and fix typo
2016-04-29 22:24:20 +08:00
afc163
c66a226004
Fix lesshint problems
2016-04-29 17:03:28 +08:00
afc163
03cb74ead5
upgrade eslint-config-airbnb version and fix some problems
2016-04-29 12:13:27 +08:00
afc163
e071fc4aa9
Fix disabled button event bubble
...
close #1541
ref http://stackoverflow.com/a/17877723
2016-04-29 00:43:03 +08:00
afc163
0ca6a1c24a
css modularize ( #1448 )
...
* css modularize
* Add alert style
* Move more component style
* Move iconfont to common style
* Move layout style
* Move more component style
* Move all components
* Fix lots of mixin deps
* remove css-prefix from less
* fix a button icon style bug
* restructure
* fix index
* add dist
* fix jest
* fix some components style
* clean webpack config
* check more components style
* update tabs
* update scripts
* update scripts
* fix form style
* fix more style
* Fix select width
* Fix form and tabs style
2016-04-27 20:44:36 +08:00
afc163
7e3b52f0fb
Merge branch master into develop-1.0.0
2016-04-20 12:18:59 +08:00
afc163
6dc187e5f4
Not focus it when click button
...
91117c0faa (diff-39f43a348016e3a62dc9c315917c402bR108)
2016-04-20 12:14:57 +08:00
afc163
07ea8ff323
Merge branch master into develop-1.0.0
2016-04-18 17:24:51 +08:00
afc163
63e110fbc6
fix #1442
2016-04-18 17:02:05 +08:00
afc163
cc2f93a4e1
loading button should not be transparent
2016-04-15 16:21:08 +08:00
Benjy Cui
047bfc2574
style: enable react/prefer-stateless-function
2016-04-13 17:38:53 +08:00
afc163
b4be06f816
improve button loading animation
2016-04-12 12:17:03 +08:00
afc163
5f0b1ef006
Fix button text span wrap
2016-04-12 11:56:14 +08:00
afc163
e4c3faeabc
fix size propTypes
2016-04-06 15:52:38 +08:00
afc163
41182f5619
fix prefixCls
2016-04-06 15:50:58 +08:00
afc163
611665fa6d
button contains icon only should has smaller padding
2016-04-06 15:43:50 +08:00
afc163
5b1ccce554
fix button demo
2016-04-05 19:33:26 +08:00
Benjy Cui
df3ba36720
docs: remove useless newline in documentation
2016-04-01 10:08:19 +08:00
afc163
d75c0d0b24
Merge pull request #1307 from ant-design/docs-format
...
Update docs format
2016-03-31 15:48:38 +08:00
afc163
5c884a64c4
Remove Button type PropTypes limit, close #1308
2016-03-31 14:57:29 +08:00
afc163
9f342a0568
update button group demo
2016-03-31 14:55:12 +08:00
Benjy Cui
d5a6932c15
docs: update documentation format
2016-03-31 14:17:09 +08:00
Benjy Cui
03d09b66e8
docs: update demo format
2016-03-31 09:40:55 +08:00
Bruce Mitchener
273e527201
Use static class members for propTypes and friends.
2016-03-29 13:01:10 +07:00
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.
2016-03-28 20:36:11 +07:00
afc163
72db02ef04
Add icon prop for Button, close #1199
2016-03-25 18:13:51 +08:00
闲耘™
8d817e6eee
update(propTypes): more restrictions on propTypes
2016-03-16 11:27:27 +08:00
闲耘™
1c35bd3d9d
refact(regexp): better regexp
2016-03-15 21:39:23 +08:00
afc163
ed3cda06a2
update button docs
2016-03-13 13:19:43 +08:00
afc163
f7fb5b29f9
Fix click effect in Popconfirm button
2016-03-03 21:33:02 +08:00
afc163
4446e73fda
remove button border-radius fallback
2016-02-23 16:24:07 +08:00
afc163
c3014c26a1
Fix button click arguments
2016-02-23 00:05:26 +08:00
afc163
be3a90fbc6
Add click effect for primary button, close #942
2016-02-22 13:52:52 +08:00
Benjy Cui
29825f20c8
style: update code style to please lint
2016-02-17 18:04:42 +08:00
afc163
78d3653620
update button group demo
2016-01-28 14:23:09 +08:00
afc163
fcbd6015bd
fix button-group disable button border, close #926
2016-01-25 21:06:32 +08:00
afc163
d271e92b8e
Merge master
2016-01-14 15:35:21 +08:00
afc163
413e816c98
update button doc
2016-01-14 15:24:54 +08:00
Benjy Cui
209170e813
style: update demo code style to please lint
2016-01-11 09:49:30 +08:00
Benjy Cui
711d2d7413
style: update code style to please lint
2016-01-11 09:49:30 +08:00
afc163
1e001d2d82
upgrade eslint-config-airbnb
2016-01-11 09:48:29 +08:00
afc163
91bd7f22c0
use mountNode replace the long getElementById
2015-12-29 12:08:58 +08:00
afc163
c5df2c0fac
update button demo text
2015-12-28 13:57:02 +08:00
afc163
2699f5075c
update button loading
2015-12-28 13:49:58 +08:00
afc163
5e1f611863
Add dashed button, ref #413
2015-11-30 18:26:44 +08:00
afc163
d1d3329674
fix boolean attribute lint errors
2015-11-25 18:10:35 +08:00
afc163
16abf46071
Fix markdown eslint errors, update .eslintrc
2015-11-25 18:10:34 +08:00
afc163
ce76ebfe9b
replace rcUtil.classSet by classnames, ref react-component/util#1
2015-11-24 20:03:57 +08:00
Benjy Cui
5fd6999866
feat: make Button
easy to use
2015-11-03 14:25:36 +08:00
afc163
25368de60b
update button demo style
2015-10-30 17:04:22 +08:00
afc163
f526703bf8
update disabled button demo
2015-10-30 17:00:06 +08:00
偏右
4eef432425
Update index.md
2015-10-29 23:17:25 +08:00
afc163
753c01ae18
ES6 syntax for demo code
...
fix antd.notification
2015-10-28 20:55:49 +08:00
afc163
7c9892a9c7
Add Button propsType
2015-10-28 15:45:31 +08:00
afc163
602c2d1f9d
support border radius in ie8 via css3pie
2015-10-27 16:26:56 +08:00
afc163
5a50df6b78
use ghost button to match primary button
2015-10-26 11:08:36 +08:00
afc163
cad3fdff45
lg => large, sm => small
2015-10-26 11:02:48 +08:00
afc163
415fa383e3
unify all size prop to: large default small
2015-10-22 21:01:52 +08:00
yiminghe
76b0f673ec
beta2
2015-10-20 16:47:55 +08:00
Benjy Cui
1e45e02e8a
feat: add support for htmlType
2015-10-09 16:55:07 +08:00
Benjy Cui
f4ca0798de
refactor: generate className with rcUtil.classSet
2015-10-09 16:42:08 +08:00
Benjy Cui
5b86a4be1d
refactor: replace button
tag with Button
component
2015-10-08 15:13:04 +08:00
afc163
93c181677a
Merge branch develop-0.10.0
2015-10-06 12:55:01 +08:00
Benjy Cui
2f771b0482
feat: button should be a component
2015-10-05 15:19:07 +08:00
elrrrrrrr
bcc4265201
chore: 迁移 button iconfont
...
- 手动加上 margin-right 8px
2015-10-02 15:04:28 +08:00
afc163
47bb3d620d
update button/index.md
2015-08-25 16:49:27 +08:00
afc163
fdf19520d6
Add component type
2015-08-22 20:16:24 +08:00
afc163
6313d98349
update button demo
2015-08-21 15:58:04 +08:00
afc163
43c53f1d8d
loading button should be unhandlable
2015-07-30 11:15:03 +08:00
afc163
b8ef693afc
button loading animation effect
2015-07-29 22:23:55 +08:00
afc163
9acba5d4ae
change category
2015-07-29 16:30:26 +08:00
afc163
a83b90decc
button
2015-07-05 17:42:56 +08:00
afc163
0110b82ad9
update
2015-07-05 17:40:52 +08:00
afc163
219675cba7
icon button 文案
2015-06-25 17:39:24 +08:00
afc163
3a3233111e
update button demos
2015-06-17 21:29:58 +08:00
simaQ
a66d7724ef
Merge branch 'master' of https://github.com/ant-design/ant-design
2015-06-17 18:25:29 +08:00
simaQ
5294fd6b82
update button page
2015-06-17 18:22:20 +08:00
afc163
418ff724d9
update button text
2015-06-17 17:46:01 +08:00
afc163
edb4d3a9fa
adjust button demo order
2015-06-17 14:48:41 +08:00
afc163
b74f6edacd
adjust button demo
2015-06-17 14:42:49 +08:00
simaQ
6ade8a5a82
tiny correction for buttons
2015-06-15 22:14:15 +08:00
simaQ
c6a2901bc3
update the style of button page
2015-06-15 19:33:39 +08:00
afc163
737ef1167d
Add info for components
2015-06-14 17:54:08 +08:00
afc163
10ff912e86
remove sketch link
2015-06-14 17:17:09 +08:00
simaQ
b493f6f06c
add angle icon
2015-06-12 15:31:41 +08:00
simaQ
b3d5e31d26
optimize button
2015-06-11 17:20:24 +08:00
simaQ
b95b3b3386
rename some icons
2015-06-11 09:17:02 +08:00
simaQ
656d0ca2e8
adjust button page style
2015-06-09 15:21:07 +08:00
simaQ
2897bedc18
update button page
2015-06-09 12:05:59 +08:00
simaQ
5e71bbf6c2
format the sample codes of button page
2015-06-08 16:15:03 +08:00
afc163
c29f0214b5
button-group style fix
2015-06-08 12:32:09 +08:00
simaQ
61b4dddae9
update buttons
2015-06-07 14:03:00 +08:00
simaQ
d6a5d43225
add the introduction of iconfont and button
2015-06-05 20:26:41 +08:00
afc163
5651c402a5
update layout
2015-06-02 12:11:49 +08:00
afc163
49cfaae7f2
sketch download link
2015-05-29 16:12:49 +08:00
afc163
43ef2dccd3
挖坑
2015-05-27 15:43:29 +08:00
afc163
306d106a08
import rc-style
2015-05-26 17:35:24 +08:00
afc163
d08d510f96
components name
2015-05-21 22:24:19 +08:00
afc163
14a2a433d5
update disabled button
2015-05-18 19:54:33 +08:00
afc163
456f796f86
use nico-jsx, allow code type jsx
2015-05-18 18:13:16 +08:00
afc163
9591702f14
update code box template
2015-05-18 17:45:08 +08:00
afc163
2d1187c9ac
update code template
2015-05-18 17:33:42 +08:00
afc163
7e05877c13
Add another demo for example
2015-05-16 17:12:22 +08:00