Commit Graph

296 Commits

Author SHA1 Message Date
Benjy Cui
829b5f87bf feat: make default locale to enUS (#7553)
* feat: make default locale to enUS

* test: fix CI

* docs: update getting started
2017-09-26 23:12:47 +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
偏右
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
2feef3358c Fix transfer lazy doc, close #7520 2017-09-09 00:00:24 +08:00
Yiming
a22a011c49 修改错别字 (#7110)
反应 应为 反映
2017-08-07 10:44:47 +08:00
Benjy Cui
8173007402 fix: filterOption of Transfer should be optional, close: #6856 2017-07-17 16:01:18 +08:00
偏右
b653a2c055 Merge branch 'master' into feature-2.12 2017-07-07 19:41:37 +08:00
Benjy Cui
fe33e76479 refactor: extract Input.TextArea 2017-07-03 17:26:29 +08:00
paranoidjk
ba168b826f refactor: use spread operator replace object-assign (#6677) 2017-07-03 16:57:11 +08:00
afc163
448a3ff4dd Fix operations typo of Transfer, close #6401 2017-06-08 10:37:08 +08:00
Benjy Cui
0e5431d21b deps: upgrade antd-tools and code style 2017-05-25 16:54:15 +08:00
Benjy Cui
12a6060304 docs: fix code style 2017-05-15 14:37:22 +08:00
Benjy Cui
a081100cdc refactor: simplify code 2017-05-11 11:38:32 +08:00
wangtao0101
58922a34c6 fix bug #6075 (#6088)
* fix bug #6075

* add test for PR #6088

* remove test.only
2017-05-11 10:41:14 +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
wangtao0101
0d070d3763 refactor: improve performance of Transfer #5997 (#6001)
* fix bug #5997

* change order for review
2017-05-08 16:40:12 +08:00
偏右
1a775b1d3b Merge pull request #5964 from megawac/active-item-bg
Add @active-item-bg to control hover and active states
2017-05-04 12:02:55 +08:00
Graeme Yeates
d8d17a6401 Seperate @active-item-bg into 2 variables 2017-05-03 10:57:14 -04:00
afc163
c8d9e64809 Fix Transfer selection when searching text, close #5993 2017-05-03 19:05:31 +08:00
Graeme Yeates
4eb2855871 Add @active-item-bg to control hover and active states 2017-05-02 11:05:28 -04:00
afc163
ac660d9f3c Fix transfer search bug, close #5631 2017-05-02 15:47:51 +08:00
afc163
f4413a6758 Fix Transfor moving item background 2017-04-15 14:57:20 +08:00
afc163
fc199e47b8 fix snap 2017-04-13 11:18:31 +08:00
Wei Zhu
1a8e738142 Set snapshotSerializers 2017-04-02 18:09:23 +08:00
William Yang
8c8a1797e9 docs:fix api table (#5524) 2017-03-28 10:41:14 +08:00
偏右
674255bd14 [WIP] upgrade deps (#5455)
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-23 21:15:49 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
Benjy Cui
8f81594f91 Refactor: introduce injectLocale (#5289)
* refactor: extract injectLocale and refactor Pagination, ref: #5103

* refactor: use injectLocale in Popconfirm, ref: #5103

* refactor: use injectLocale in TimePicker

* refactor: use injectLocale in Transfer

* refactor: use injectLocale in TreeSelect

* refactor: remove useless code in AutoComplete

* test: update snapshot
2017-03-17 15:23:25 +08:00
afc163
a0cdce4d00 fix test case 2017-03-10 19:22:18 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
Benjy Cui
00cdb7d888 feat: support Transfer[onScroll], close: #4188 (#5084) 2017-03-01 11:07:19 +08:00
Benjy Cui
758559f718 test: update snapshots 2017-02-28 16:14:53 +08:00
tianli.zhao
85ca5ed5ea [WIP] filter the disabled options (#4981)
filter the disabled options
2017-02-24 19:08:02 +08:00
bang
fcf9bafb18 docs: Rewrite Transfer demos to ES6 component 2017-02-19 19:51:40 +07:00
afc163
18ec5933b7 fix old react documentation links 2017-02-19 17:02:58 +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
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
paranoidjk
f2e19c16be fix(transfer): checkall should response to filter result; fix #4654 (#4665) 2017-01-27 17:08:12 +08:00
Wei Zhu
77b78a9389 docs: Unify type naming (#4636)
* Unify name of ReactNode type in document

* Lowser all string type name

* Lowercase all number type name

* Lowercase all boolean type name

* Unify array type

* Lowercase all object type name

* Unify mutilple types
2017-01-20 20:10:50 +08:00
afc163
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
Benjy Cui
3e17551b7e site: improve build speed 2017-01-19 15:22:53 +08:00
陆离
f54e822930 feat: Transfer on search change (#4464)
*  add `onSearchChange(direction: 'left'|'right') => void ` of Transfer

* typo
2017-01-08 19:14:02 +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
1b8a280614 support suffix (#4283)
* support suffix

* optimize prefix and suffix

* 1. Optimize prefix and suffix implementation
2. Improve the api document
3. Optimize `Input.Search` implementation

* update snapshots
2017-01-01 01:06:19 +08:00
Benjy Cui
d7498c0af6 Test transfer (#4191)
* refactor: use Checkbox directly

* test: add test case for Transfer
2016-12-16 17:59:52 +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
Benjy Cui
000085eb36 style: update code style for Transfer 2016-12-07 18:08:52 +08:00
afc163
4ac50c660c improve transfer style 2016-12-04 17:08:29 +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
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
afc163
6b0c34bb24 fix tslint 2016-11-28 19:14:43 +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
afc163
9183ef0ede Fix Transfer notFound, close #3996 2016-11-24 17:22:54 +08:00
Wei Zhu
52f6f992b3 style: Fix jsx self close, #3966 (#3968) 2016-11-24 14:09:43 +08:00
Wei Zhu
ccbebe60cc style: Fix jsx alignment, #3966 (#3967) 2016-11-23 17:53:10 +08:00
Wei Zhu
d20572bdab test: demo snapshot testing (#3916)
* Run snapshot testing against all demos

* Split demo tests

* ignore coverage folder

* Upgrade antd-demo-jest

* enable cache

* intergate with coveralls.io

* Add node test

* Set worker to 2

https://github.com/facebook/jest/issues/1742

* config coverage

* Set default supportServerRender to true
2016-11-22 13:43:53 +08:00
afc163
b69fd4bf9f fix lints 2016-11-15 15:21:13 +08:00
afc163
1903990315 update transfer doc 2016-11-09 20:37:10 +08:00
afc163
733a4cdc40 remove default chinese text in Transfer (#3768) 2016-11-09 20:30:31 +08:00
ddcat1115
0baef0627e docs: 调整组件导航结构 (#3758)
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00
afc163
0ec4276eab @font-size-lg (#1752) 2016-11-08 21:07:01 +08:00
afc163
e4974ac72a use @font-size-base (#1752) 2016-11-08 20:57:07 +08:00
afc163
0a48c62dcb use @text-color 2016-11-08 20:50:59 +08:00
afc163
9b81fe86d9 clear less variables and add @text-color-secondary 2016-11-08 20:48:03 +08:00
Benjy Cui
7042e09a99 feat: add controlled property Transfer[selectedKeys], close: #3729 2016-11-07 13:52:24 +08:00
Benjy Cui
b39d96ec75 refactor: make variables' name meaningful 2016-11-07 12:11:11 +08:00
afc163
afb49f95d0 separate item component 2016-11-04 16:52:57 +08:00
afc163
e253cce993 change react-lazy-load default props 2016-11-04 15:16:16 +08:00
afc163
7373ce0758 Add react-lazy-load for Transfer perfermance, close #2860 2016-11-04 15:08:39 +08:00
afc163
6a1b1476be improve transfer style 2016-11-04 15:08:39 +08:00
afc163
20bbf43ccd Fix Transfer ssr bug, close #3686 2016-11-02 11:14:21 +08:00
Wei Zhu
f8d2aeefc3 refactor: Replace react-addons-pure-render-mixin with rc-util/lib/PureRenderMixin (#3627) 2016-10-28 13:56:23 +08:00
Benjy Cui
e9111a855f refactor: remove propTypes in private components 2016-10-24 16:51:53 +08:00
Benjy Cui
08e21e0a2f refactor: close: #3490 2016-10-24 16:30:38 +08:00
afc163
84b70ac140 fix key={0} in demo, close #3546 2016-10-24 11:06:31 +08:00
yiminghe
8afe3965c1 upgrade ts 2.0 2016-10-19 17:52:23 +08:00
kvetoslavnovak
9ed9fb053a docs: Transfer - heading not wide enough for English (#3466) 2016-10-18 09:45:37 +08:00
Benjy Cui
358308ce87 docs: fix docs 2016-10-08 15:20:37 +08:00
kvetoslavnovak
2aba5ea582 docs: Transfer[title] should follow LocaleProvider (#3264)
* Transfer - lists labels - English Translation

* Update index.en-US.md

* Update index.en-US.md

* Update index.en-US.md
2016-10-08 15:05:07 +08:00
Benjy Cui
a987e34f6f fix: Transfer[title] should follow LocaleProvider, ref: #3264 (#3318) 2016-10-08 10:42:13 +08:00
afc163
f15d62e189 adjust transfer button style 2016-10-06 19:10:01 +08:00
Benjy Cui
9c83538621 fix: should work with getFieldDecorator (#3251) 2016-09-30 17:45:58 +08:00
Benjy Cui
4663995f69 fix: should follow the targetKeys' order, close: #3152 2016-09-26 10:24:18 +08:00
Benjy Cui
bd7e9f00c0 style: update code style 2016-09-21 11:54:53 +08:00
Benjy Cui
3f67fd3f9f docs: update docs details 2016-09-21 11:28:38 +08:00
Benjy Cui
31615c9793 feat: support disabled item for Transfer, close: #3038 (#3044)
* feat: support disabled item for Transfer, close: #3038

* refactor: Transfer
2016-09-19 17:52:20 +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
Benjy Cui
d644a01f89 feat: add Transfer[onSelectChange], close: #2968 (#2984) 2016-09-18 10:44:22 +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
afc163
da6b65f7f0 Merge 1.x-stable 2016-08-12 14:47:01 +08:00
afc163
cd98aab871 Fix transfer list item overflow style, close #2674 2016-08-10 17:46:36 +08:00
afc163
47311313ab Fix transfer line-height inside FormItem 2016-08-09 11:48:27 +08:00
afc163
175438ec8c fix tslint 2016-08-08 15:00:35 +08:00
afc163
7e77489c8e Fix ts errors in Transfer 2016-08-08 14:42:29 +08:00
afc163
b200f8a2d8 Merge 1.x-stable 2016-08-08 14:12:02 +08:00
Benjy Cui
6687c12b82 feat: support Transfer[filterOption], close: #2324 2016-08-05 10:49:54 +08:00
Benjy Cui
37a3861c65 docs: sync, ref: #2607 2016-08-04 09:45:50 +08:00
Marius Ileana
c8f2793ec3 docs: Review of transfer / index.en-US.md (#2607) 2016-08-04 09:33:04 +08:00
Marius Ileana
05ba63bccc docs: Review of transfer / demo / advanced.md (#2608) 2016-08-04 09:25:07 +08:00
Benjy Cui
95c353de63 docs: sync, ref: #2609 2016-08-04 09:23:10 +08:00
Marius Ileana
77940b77f0 docs: Review of transfer / demo / basic.md (#2609) 2016-08-04 09:13:36 +08:00
lixiaochou077
6f620b0e91 docs: translate transfer (#2586) 2016-08-03 10:10:13 +08:00
afc163
f0995bd1e3 Merge 1.x-stable 2016-07-15 16:42:58 +08:00
afc163
e7f6f4b869 Fix Transfer search and check all behavious, close #2396 2016-07-15 15:07:31 +08:00
afc163
138a7a9c54 fix code style 2016-07-15 14:01:51 +08:00
afc163
2e4d09c68e Fix types 2016-07-13 18:04:38 +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
94fe25f1b3 Merge 1.x-stable 2016-07-08 17:31:03 +08:00
afc163
45db4cab50 improve props passing 2016-07-08 17:17:57 +08:00
afc163
f675b636cd Merge 1.x-stable 2016-07-08 16:34:02 +08:00
ddcat1115
47230e4a32 fix #2258 for transfer 2016-07-08 10:16:58 +08:00
yiminghe
94706f1d2c fix ts 2016-07-07 20:25:03 +08:00
afc163
4ecb639863 Improve transfer clear icon style 2016-07-07 18:45:14 +08:00
afc163
08311314ee Fix a Transfer perfermance issue of repeat render (#2112) 2016-07-07 18:42:59 +08:00
afc163
2b9c07a741 simplify Transfer search logic and fix search bugs (#2260) 2016-07-07 18:36:53 +08:00
afc163
8bf0a7e7f7 update demo 2016-07-07 18:09:17 +08:00
afc163
90f499f0a9 do not clear selected item when search in Transfer
close #2290
2016-07-07 18:07:48 +08:00
Gray Choi
3a36d65c5e rewrite in typescript
#1846

- [x] Carousel
- [x] Cascader
- [x] Transfer
- [x] Tree

-Tree
-checkable is boolean type, instead of assigning a ReactElement to it,
I use Ternary Operators.
2016-07-01 22:03:51 +09:00
Gray Choi
fb9a6963a3 rewrite in typescript
#1846

- [x] Carousel
- [x] Cascader
- [x] Transfer
- [x] Tree

-Tree
 -checkable is boolean type, instead of assigning a ReactElement to it,
I use Ternary Operators.
2016-07-01 21:52:17 +09:00
Mr.Tone
8324a2c3c1 Transfer 组件在render后,马上unmount会报setState错误 (#2206)
* Transfer 组件在render后,马上unmount会报setState错误

如题

* _t => timer
2016-06-28 20:01:44 +08:00
Mr.Tone
85141db724 Transfer 组件在render后,马上unmount会报setState错误 (#2206)
* Transfer 组件在render后,马上unmount会报setState错误

如题

* _t => timer
2016-06-28 20:01:02 +08:00
afc163
95351bfffa Merge branch '1.x-stable' 2016-06-27 19:31:38 +08:00
afc163
089f1ae512 update components category name 2016-06-27 18:21:12 +08:00
afc163
ef4c1a4749 Merge branch '1.x-stable' 2016-06-27 17:58:16 +08:00
afc163
cc2b65c815 update transfer demo 2016-06-27 14:53:42 +08:00
yiminghe
9a0d751f94 refactor to typescript 2016-06-22 13:19:48 +08:00
afc163
3c408e0d22 Improve transfer perfermance, close #2112 2016-06-21 17:41:39 +08:00
Benjy Cui
2144349741 style: enable react/jsx-closing-bracket-location 2016-06-06 13:54:10 +08:00
RaoHai
a243d32dff remove typeof props.rowKey 2016-06-02 16:15:19 +08:00
RaoHai
d0532db3d7 add rowKey props to Transfer
+ close #1900
2016-05-30 17:02:08 +08:00
Leon Shi
6a0c21f202 Add demo of custom render for Transfer item 2016-05-18 15:57:09 +08:00
jasonslyvia
f4a3b64e14 feat(transfer): add custom render support 2016-05-17 20:23:33 +08:00
Benjy Cui
8842d9342a site: update components' type 2016-05-16 15:41:55 +08:00
Benjy Cui
ecaa6c56c3 style: enable comma-dangle 2016-05-11 09:32:33 +08:00
RaoHai
190aba24ee Transfer Datasource 和 CheckedKeys 逻辑修改 (#1590)
*  Transfer Datasource 和 CheckedKeys 逻辑修改

 + close #1587
 + 当 Transfer 的 Datasource 变化时,会移除组件的 CheckedKeys 中已不在
 Datasource 中的 key

* remove leftDataSource and rightDatasource from this.state
2016-05-06 12:09:26 +08:00
afc163
03cb74ead5 upgrade eslint-config-airbnb version and fix some problems 2016-04-29 12:13:27 +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
8a9a1d2334 fix checkbox style 2016-04-15 23:34:40 +08:00
Benjy Cui
9d95313d03 chore: suppress warning 2016-04-14 11:22:53 +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
Benjy Cui
fd3406bd03 style: enable react/jsx-no-bind 2016-03-30 17:06:19 +08:00
afc163
590692d101 Merge branch 'develop-1.0.0' of github.com:ant-design/ant-design into develop-1.0.0 2016-03-29 17:37:31 +08:00
afc163
ba8d9b7dc3 Merge branch 'master' into develop-1.0.0 2016-03-29 17:36:58 +08:00