Commit Graph

369 Commits

Author SHA1 Message Date
张聪
8a9fbcb5e4 Migrate lifecycle method: Upload, CheckboxGroup, Layout.Sider, Tooltip, Popconfirm (#11682)
* Upload lifecycle method migrate

* CheckboxGroup lifecycle method migrate

* Layout.Sider lifecycle method migrate

* Tooltip lifecycle method migrate

* Popconfirm lifecycle method migrate

* test Spin as a controlled component
2018-08-10 17:04:40 +08:00
Wei Zhu
064bfaf554 Add @types/prop-types 2018-08-07 21:09:05 +08:00
HeskeyBaozi
4a553a2006 upgrade test cases 2018-07-19 20:37:47 +08:00
HeskeyBaozi
9338f33c1c update test cases 2018-07-18 10:33:54 +08:00
afc163
56020cda39 Merge branch 'master' into feature-3.7.0 2018-06-27 16:14:14 +08:00
afc163
009ed08580 upgrade eslint-config-airbnb 2018-06-27 16:09:58 +08:00
afc163
e7fa6ca7eb Merge branch 'master' into feature-3.7.0 2018-06-19 15:31:53 +08:00
afc163
c540ceb8eb Fix fixed element in spin
close #10196
2018-06-15 14:09:51 +08:00
afc163
99d6e4c96c Merge branch 'master' into feature-3.7.0 2018-06-12 15:34:51 +08:00
bLue
8e26b6823a Fix spin delay issue if mounts with spinning=true (#10727)
* Fix spin delay issue if mounts with spinning=true

* Add test for spin delay issue

* Update spin lifecycle method
2018-06-08 23:13:47 +08:00
jim
e51b043737 Merge branch 'master' into feature-3.7.0 2018-06-06 21:22:39 +08:00
zombiej
8444ad209d close #10786, spin icon css for adjust font size 2018-06-06 19:53:50 +08:00
zombieJ
4b360b5139
Spin support setDefaultIndicator (#10815)
* Add `setDefaultIndicator` in Spin
* Update doc

ref: https://github.com/ant-design/ant-design/issues/10787
2018-06-06 19:32:30 +08:00
Winter Zhong
33b604f7a8 Fix issue #10635 Parent element set text-align break Spin (#10643)
* fix the issue when settingthe  parent ele text-align center, the spin is on the right

* put the display in the proper place
2018-05-25 20:40:17 +08:00
偏右
a2e0e40caa
[WIP] Use raf to replace getRequestAnimationFrame (#10614)
* use raf to replace getRequestAnimationFrame

* remove isCssAnimationSupported
2018-05-22 13:01:28 +08:00
afc163
4b1857d587 fix spin loading 2018-04-26 16:06:18 +08:00
afc163
c85758fd01 Fix spin container interaction, close #10227 2018-04-25 14:55:16 +08:00
Wei Zhu
1a26268bd5 Remove duplicate SpinSize 2018-04-16 15:02:03 +08:00
诸岳
265770b4e3 Fix incompatible type error for Spin[size] prop, close #10053 (#10055) 2018-04-16 14:44:42 +08:00
Ed Moore
31e50e50b6 Fix types (#10063)
* Fix types

Fix https://github.com/ant-design/ant-design/issues/8796

* Fix exported types
2018-04-16 10:58:17 +08:00
Wei Zhu
a438b9b33f Add spin dot className to custom indicator 2018-02-14 12:56:22 +08:00
Jing Ma
dab43f4c7a Removed unnecessary section (#9067) 2018-01-22 09:18:09 -06:00
afc163
f4abc8c14d Fix extra scrollbar in table or list cause by spin
close #8799

change a better way to fix #8602
2018-01-09 16:27:40 +08:00
Joe Hsu
a1fafb5b72 fix ant-spin-container overflow resizing (#8602) 2017-12-23 15:00:47 +08:00
偏右
b531de3fee
Upgrade dev deps and fix lints (#8358)
* upgrade devDeps and fix lint

* Fix stylelint problems
2017-11-29 21:00:16 +08:00
afc163
c23e24b0f0 Merge branch 'master' into antd-3.0 2017-11-22 17:30:31 +08:00
潘晓升
8b2d7e3982 Update index.tsx (#8280)
add the “style” property for declare file
2017-11-22 14:46:40 +08:00
Wei Zhu
b647078baa Fix implicit any for Select Slider Spin Switch 2017-11-21 14:58:08 +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
kossel
92aa34c1b5 Feature antd 3.0/spinning indicator (#7977)
* Added indicator props to Spin component

* Added indicator props to Spin component

* update snapshots

* fix defautl props

* revert some snapshot files
2017-11-04 12:05:25 +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
3c1b4da51e Fix autoprefix warning 2017-10-23 20:53:59 +08:00
afc163
9181db8a01 Fix autoprefix warning 2017-10-23 20:52:41 +08:00
Benjy Cui
d0b08cd2ea test: fix CI 2017-10-18 16:55:12 +08:00
afc163
a9073988ec Merge branch 'master' into antd-3.0 2017-10-18 14:07:53 +08:00
afc163
c2e91d3b22 update some demo 2017-10-17 21:03:23 +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
偏右
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
afc163
b24483545c Merge branch 'master' into antd-3.0 2017-09-12 09:41:51 +08:00
Khalifa Lame
b475ac55f6 Update Spin English doc (#7542)
Fixed some typos.
2017-09-10 21:49:37 +08:00
Benjy Cui
070b2696ba chore: remove hacks for IE8-, close: #7447 (#7512) 2017-09-08 13:08:46 +08:00
afc163
f2fe374a18 Improve spin transition delay 2017-08-29 16:40:28 +08:00
afc163
2bedd6b0e6 Improve spin transition delay 2017-08-29 16:39:29 +08:00
afc163
d84452e8b8 Fix snapshot generate, close #7318 2017-08-27 16:07:07 +08:00
neekey
7e522291c8 add unit px to all less value, make them explicit 2017-07-17 17:44:40 +10:00
afc163
ed070c94ad Fix spin blur z-index, close #6759 2017-07-07 16:34:47 +08:00
afc163
81be11534c fix lint 2017-06-14 13:48:00 +08:00
afc163
64466a79cb update spin demo 2017-06-14 13:31:21 +08:00
afc163
b991137628 fix spin timer, close #6383 2017-06-06 20:38:44 +08:00
afc163
5b4adeb339 tweak spin style 2017-05-23 17:48:13 +08:00
Tyler
919cb22eb7 Use the prop-types package from npm instead of React.PropTypes (#6057)
* Use the prop-types package from npm instead of React.PropTypes

* Remove using of PropTypes from React in docs and site
2017-05-09 13:40:33 +08:00
afc163
4951df182b Fix loading Table paginaition style, close #5937 2017-04-27 20:58:47 +08:00
Aaron Planell López
45b0693bae Feat spin wrapper className. (#5425) 2017-03-21 17:12:43 +08:00
afc163
432e5c615b Update spin API documatation 2017-03-18 14:30:51 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
afc163
ee6f7c4563 Tweak spin blur style 2017-03-15 18:25:26 +08:00
afc163
fa1e031a73 Tweak spin animation 2017-03-14 15:32:24 +08:00
afc163
e008214f56 Make <Spin></Spin> loading inside viewport, close #4722 2017-02-27 15:53:36 +08:00
afc163
7f404f1e20 Fix styoe of spin inside spin, close #4971 2017-02-21 15:15:30 +08:00
afc163
68f3641a90 update less code style 2017-02-21 15:15:29 +08:00
afc163
580389ac15 rewrite Spin demos to es6 component, #4878 2017-02-20 22:16:57 +08:00
afc163
bed59cf658 fix lint 2017-02-17 13:58:24 +08:00
afc163
bc988f486b fix css rule should not be prefixed, close #4915 2017-02-17 11:32:02 +08:00
afc163
94e8138639 adjust spin style 2017-02-16 21:55:03 +08:00
Benjy Cui
200b88246f docs: update docs format 2017-02-13 10:55:53 +08:00
Benjy Cui
d2b8d65c87 style: update code style to please lint, close: #2179 2017-02-06 12:09:58 +08:00
afc163
1a3ea43ebe Fix style prop of spin 2017-01-27 14:27:18 +08:00
afc163
5203cabb8f update comment 2017-01-19 17:36:02 +08:00
Benjy Cui
3e17551b7e site: improve build speed 2017-01-19 15:22:53 +08:00
afc163
df0426b2c9 workaround for table loading style in safari, close #4622 2017-01-19 15:08:28 +08:00
afc163
4654db312f Fix some lesshint problems 2017-01-11 21:45:09 +08:00
afc163
237871da32 update spin document 2017-01-07 22:07:09 +08:00
afc163
31d6aca303 move spin variables to default.less 2017-01-07 22:04:52 +08:00
afc163
92c3bef888 Adjust spin style 2017-01-07 22:03:40 +08:00
ddcat1115
c5b154294e add attribute compact for InputGroup (#4309)
* add attribute `compact` for InputGroup

* improve
2017-01-02 00:12:41 +08:00
afc163
793a2d284e Add spin demo test snapshot 2017-01-01 15:42:54 +08:00
陆离
7f7d94068a add delay props of Spin (#4424)
*  add `delay` props of Spin

 + close 4306
 + Specifies a delay for loading state. If `spinning` ends during delay, loading state won't appear.

* improves
2017-01-01 01:13:34 +08:00
Benjy Cui
1351b5da5d refactor: remove splitObject 2016-12-19 15:19:15 +08:00
Wei Zhu
07103b9fb6 Don't ignore test files. 2016-12-14 14:48:09 +08:00
Wei Zhu
17a0a33283 Restructure tests. 2016-12-14 14:41:39 +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
Benjy Cui
932443099a css: use @component-background, ref: #4040 2016-11-29 11:56:10 +08:00
cathayandy
addb6e44dc Fix #4039. Replace background-color: #fff with background: @body-background (#4040) 2016-11-29 09:54:54 +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
afc163
985d20ad80 Fix spin compatibility, close #3755 2016-11-07 17:53:12 +08:00
jiang
33a30ae927 update spin animation style (#3722)
* update spin animation style

* update spin animation

* update code
2016-11-04 13:50:32 +08:00
ddcat1115
96e71a4147 fix: 修复 Spin 垂直居中问题 close #3097 (#3214) 2016-09-30 17:44:55 +08:00
Benjy Cui
9b99c3886d fix: spin should mask content, close: #3091 2016-09-20 14:51:43 +08:00
Marius Ileana
837ec0cb07 docs: Spin, Progress - demos - english translation (#3051)
* spin demos translation

* Progress demo translation
2016-09-18 09:24:49 +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
58745edecf docs: update 2016-09-13 11:51:34 +08:00
Benjy Cui
1dac1370de deps: replace obejct.omit with omit.js, close: #2988 (#2994) 2016-09-10 17:17:55 +08:00
afc163
0e6f677ff9 Fix doc headings 2016-09-10 13:43:30 +08:00
Benjy Cui
14fb2c78ba chore: remove deprecated code (#2920)
* chore: remove deprecated code

* chore: add warning for Breadcrumb
2016-09-09 13:55:46 +08:00
Andrew Murray
0d00c5fb6c docs: Fixed typos (#2921) 2016-09-01 18:12:12 +08:00
Jerry Bendy
cb56defea3 Spin animate with tips (#2801)
* Spin 组件在显示 tip 时同时显示动画

* remove tip text when not exists
2016-08-23 16:17:32 +08:00
afc163
24d2973c32 Merge branch "1.x-stable" 2016-08-16 17:54:59 +08:00
afc163
7bbb26d441 Fix spin overflow, close #2652 2016-08-12 16:36:47 +08:00
Benjy Cui
77e47c5807 refactor: add interface (#2638) 2016-08-10 09:46:56 +08:00
afc163
0eeca99f02 Merge 1.x-stable 2016-07-26 22:20:33 +08:00
陆离
ac32dd5811 feat: debounce before spinning => debounce after spinning (#2486) 2016-07-25 16:35:00 +08:00
Benjy Cui
5bee7d2088 docs: fix translation 2016-07-21 10:15:00 +08:00
陆离
49e164d09d docs: translation of Spin and Slider (#2378) 2016-07-21 09:51:04 +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
afc163
f675b636cd Merge 1.x-stable 2016-07-08 16:34:02 +08:00
ddcat1115
fe4dfa05b0 fix #2258 for Badge Spin 2016-07-08 10:14:45 +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
afc163
14edd75486 New Spin design 2016-06-18 15:43:42 +08:00
Benjy Cui
2144349741 style: enable react/jsx-closing-bracket-location 2016-06-06 13:54:10 +08:00
yiminghe
777692a207 fix index 2016-06-01 12:09:32 +08:00
afc163
fb1e1cc8fc Make spined element not handlable 2016-05-27 21:12:13 +08:00
yiminghe
56f4f0688d clean deps 2016-05-26 12:52:07 +08:00
afc163
a8fd9fc1ba code style 2016-05-20 14:26:44 +08:00
afc163
800b6801e8 support other props like style in Spin 2016-05-20 14:25:02 +08:00
Benjy Cui
8842d9342a site: update components' type 2016-05-16 15:41:55 +08:00
RaoHai
26c92a1ec2 clearTimeout while umounting Spin Component
close #1658
2016-05-11 20:49:18 +08:00
Benjy Cui
ecaa6c56c3 style: enable comma-dangle 2016-05-11 09:32:33 +08:00
afc163
e7e1f52648 improve code style 2016-05-09 16:20:46 +08:00
afc163
d84b92926c fix table spin debounce 2016-05-09 16:11:54 +08:00
RaoHai
1547dc5e31 spining backward support 2016-05-09 15:17:09 +08:00
RaoHai
895c52b3b9 remove debounce from props 2016-05-09 13:10:43 +08:00
RaoHai
6467bc7a73 Add debounce props to Spin
close #1273
2016-05-09 10:49:14 +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
5100fed2bd Add warning console for spinning change 2016-04-15 11:52:15 +08:00
wizawu
577663d185 Replace property spining with spinning 2016-04-14 15:26:55 +08:00
Benjy Cui
df3ba36720 docs: remove useless newline in documentation 2016-04-01 10:08:19 +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
afc163
f13e40b887 Fix: isomorphic badge & spin
close #1300 again
2016-03-30 23:02:11 +08:00
afc163
7d700b01cc Fix server render difference
close #1300

ref #215
2016-03-30 19:39:20 +08:00
Bruce Mitchener
273e527201 Use static class members for propTypes and friends. 2016-03-29 13:01:10 +07:00
Bruce Mitchener
1b81aa8c75 Convert Popover & Spin to ES2015 classes. 2016-03-20 19:41:34 +07:00
Benjy Cui
cc0bad9ef9 chore: update UI 2016-03-10 10:50:39 +08:00
afc163
d83e046327 remove useless wrapper 2016-03-09 17:36:36 +08:00
afc163
f7ba2969f6 Make tip replace dot 2016-02-21 15:03:41 +08:00
swindme
3068ec357b feat: Spin add tip 2016-02-21 15:03:41 +08:00
Benjy Cui
29825f20c8 style: update code style to please lint 2016-02-17 18:04:42 +08:00
Benjy Cui
d06935528e feat: customized size first 2016-01-27 12:00:27 +08:00
Benjy Cui
aa5c4f9595 style: update code style to please lint 2016-01-11 09:49:31 +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
91bd7f22c0 use mountNode replace the long getElementById 2015-12-29 12:08:58 +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
afc163
9268a0befd Fix eslint 2015-11-20 14:15:33 +08:00
afc163
f18cc4dac9 fix spin type to empty 2015-11-16 17:45:58 +08:00
afc163
e9ffa37a9f update spin type 2015-11-16 11:10:15 +08:00
afc163
159b5b28e4 Add spin prefixCls, ref #435 2015-11-06 23:49:37 +08:00
afc163
2c523d7246 Add spining for better transition effect, ref #315 2015-11-06 23:43:23 +08:00
afc163
2b54004b7e update spin 2015-11-03 22:41:57 +08:00
afc163
30a719f936 update document 2015-10-31 02:21:43 +08:00
afc163
dde31cfa1b update spin component 2015-10-31 02:00:03 +08:00
KgTong
fa55d3a442 delete the loading attribute in spin/index.md 2015-10-30 13:16:51 +08:00
KgTong
ed91ce0931 use animation judge function, and remove the loading attribute 2015-10-30 11:56:23 +08:00
KgTong
852377b6b3 ES6 syntax for spin demo code 2015-10-28 21:40:05 +08:00
KgTong
7ad9db3eb3 fix IE version logic 2015-10-28 19:39:36 +08:00
KgTong
89517f6e45 support align center and fix compatibility for IE 2015-10-28 19:33:25 +08:00
KgTong
686a21df78 remove type attribute of spin 2015-10-27 14:58:04 +08:00
KgTong
ea0e9b7d6a fix for code review 2015-10-27 14:01:55 +08:00
KgTong
103104b256 fix conflict 2015-10-27 11:06:15 +08:00
KgTong
b9ce4c7ddf replace the table loading with spin 2015-10-27 10:34:05 +08:00
KgTong
5c1a11710d add spin component 2015-10-27 10:10:27 +08:00