Commit Graph

583 Commits

Author SHA1 Message Date
Min
6cd05d8be5 fix: the breaking change #5877 (#5886)
* Fix the bug
When tabPostition = 'left' | | 'right, slideButton should be on the up and down, but the actual in left and right

Signed-off-by: Min <dicklwm@163.com>

* fix the break change #5877

Signed-off-by: Min <dicklwm@163.com>
2017-04-25 16:39:37 +08:00
afc163
cfae24084b Fix table content layout, close #5888 2017-04-25 12:52:59 +08:00
Hugo LEHMANN
6d627a9295 Add transition for the ant-tabs-ink-bar width
Currently when Tabs titles have very different width, the ink-bar width change without transition.
2017-04-22 17:59:04 +02:00
Benjy Cui
0a2fb1817f fix: vertical tab bar height should follow tabs height (#5809)
* fix: vertical tab bar height should follow tabs height

* docs: update demo for Tabs
2017-04-22 09:43:32 +08:00
Min
dfad1f887c fix: pre/next's style of Tabs' vertical mode (#5784)
When tabPostition = 'left' | | 'right, slideButton should be on the up and down, but the actual in left and right

Signed-off-by: Min <dicklwm@163.com>
2017-04-19 11:42:32 +08:00
afc163
73ca5a9d0e Fix tabs snapshots 2017-04-17 12:01:21 +08:00
afc163
6e147b7a3d card type Tab should not have any animation 2017-04-15 15:26:35 +08:00
Mitchell Demler
0e806bbec5 Fixed muckup (#5621) 2017-04-05 10:14:03 +08:00
mitchell.demler
1febbbc2c9 Added type for click event 2017-04-04 16:36:40 +12:00
Benjy Cui
8409cff8db style: update code style to please lint 2017-03-27 11:00:11 +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
Xie Guanglei
b054a0c2b8 feat: allow disable tabs inkBar animation (#5450)
* fix issue [5089](https://github.com/ant-design/ant-design/issues/5089)

* tabs doc
2017-03-24 14:28:11 +08:00
Benjy Cui
d24a647392 feat: Tabs[onNextClick] Tabs[onPrevClick], close: #4395 (#5412) 2017-03-21 23:42:16 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
afc163
d0353eeb1b tweak docs style 2017-03-13 11:13:12 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
afc163
34cfe5fd06 tweak less code 2017-03-02 16:11:58 +08:00
Wei Zhu
3d3abe8662 Add Tabs tests 2017-03-02 00:16:37 +08:00
偏右
0120008cbd Add tabBarStyle, close #4966 (#4970) 2017-02-21 14:43:48 +08:00
afc163
a9a564779e Merge from "master" 2017-02-20 12:18:41 +08:00
bang
b90237ee6f fix: Tabs snapshot tests 2017-02-19 21:23:31 +07:00
bang
6bcd88f5c0 docs: Rewrite Tabs demos to ES6 component 2017-02-19 21:07:45 +07:00
Benjy Cui
63476d0bc0 Merge branch 'master' into feature-2.8 2017-02-14 10:56:33 +08:00
lixiaoyang
b88c07f1d5 feat: support Tabs.TabPane[closable] (#4807)
* 为antd的editable-card类型的TabPane增加不可删除属性

* 在tab内部控制样式

* className={} 前后不加空格
2017-02-13 15:43:54 +08:00
Benjy Cui
200b88246f docs: update docs format 2017-02-13 10:55:53 +08:00
afc163
948edb227f fix tabs border radius 2017-02-10 13:24:24 +08:00
afc163
ac23cca8b3 Fix missing ts types for TabPane, close #4776 2017-02-09 16:25:16 +08:00
afc163
637c479c4c Fix Tabs in IE9, close #4795 2017-02-08 17:16:48 +08:00
afc163
0eb5c689a3 remove type="ghost" from demo 2017-02-04 22:35:33 +08:00
afc163
1a5f0f9fa7 remove whitespaces 2017-02-04 01:13:35 +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
5b9d8f0e5a Fix style of Tabs[tabPosition&type="card"], close #4669 2017-01-23 14:11:14 +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
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
afc163
215c2fd7af Fix nested Tabs style, close #4317 2016-12-21 12:00:42 +08:00
Benjy Cui
ba0dce98f5 chore: add warning for invalid usage, ref: #4274 2016-12-16 17:12:48 +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
c48d7b557e fix: container component should not use transform, close: #3943 2016-12-07 10:39:26 +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
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
Wei Zhu
ccbebe60cc style: Fix jsx alignment, #3966 (#3967) 2016-11-23 17:53:10 +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
afc163
ebe2379a95 fix radio-button doc link 2016-11-06 15:45:39 +08:00
afc163
8c68e8f64b improve tabs switch animation 2016-11-01 11:58:43 +08:00
feng zhi hao
edb41f4420 update types in Tabs and FormItem (#3653)
* update types in Tabs and FormItem

* remove children prop in FormItem and Tabs
2016-10-31 13:15:13 +08:00
Benjy Cui
a3ec948dcd css: the style should follow design 2016-10-28 15:18:29 +08:00
Wei Zhu
a62c958a15 Hide inactive pane by set opacity to 0, fix #3304 (#3604) 2016-10-26 18:24:53 +08:00
Benjy Cui
08e21e0a2f refactor: close: #3490 2016-10-24 16:30:38 +08:00
Albert Zheng
23dd825afd 【Please review】Fixes for supporting TypeScript 2.0.3 (#3439)
* Fixes for supporting TypeScript 2.0.3

* Fixes for supporting TypeScript 2.0.3. Issue is #3358
2016-10-18 11:55:00 +08:00
afc163
db4e50308f fix demo typo 2016-10-15 15:34:09 +08:00
Wei Zhu
0e013fe485 Set height of inavtive TabPane to zero fix #3377 (#3437) 2016-10-15 15:33:41 +08:00
Catalin Miron
0b38ced351 Update card-top (#3356)
Fix typo
2016-10-10 16:21:41 +08:00
Catalin Miron
114d78a1a6 Update card.md (#3355)
Fix typo
2016-10-10 16:21:04 +08:00
Benjy Cui
dd844b0347 feat: supports Tabs[animated], close: #3324 (#3326) 2016-10-09 14:26:41 +08:00
kvetoslavnovak
dded174ece Tabs - Card - Typo correction (#3289) 2016-10-06 18:57:40 +08:00
kvetoslavnovak
fc0b8e5431 Tabs - Custom Trigger - Typo correction (#3290) 2016-10-06 18:57:34 +08:00
kvetoslavnovak
70fa956301 Tabs - Container of Card - Typo trigger (#3291) 2016-10-06 18:57:25 +08:00
kvetoslavnovak
e5fab55d6b Tabs - Basic - Typo correction (#3292) 2016-10-06 18:56:57 +08:00
feng zhi hao
c0527f8b66 chore: complete declaration in Tabs and Select (#3183) 2016-09-28 16:58:14 +08:00
Benjy Cui
3f67fd3f9f docs: update docs details 2016-09-21 11:28:38 +08:00
ddcat1115
3958eb4771 fix #3076 (#3086)
fix demolint
2016-09-20 13:49:38 +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
偏右
354759cb17 Redesigned icons (#3041)
* redesigned icons

* change iconfont content

* use same icons

* fix missing icons

* improve icon size
2016-09-18 09:54:47 +08:00
Marius Ileana
691a4d5766 docs: English translation of tab's position demo (#3050)
Just a small update of a label.
2016-09-18 09:26:39 +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
Shawn Sit
374328bca9 docs: fix misspelled (#2990) 2016-09-10 14:17:11 +08:00
afc163
0e6f677ff9 Fix doc headings 2016-09-10 13:43:30 +08:00
Andrew Murray
0d00c5fb6c docs: Fixed typos (#2921) 2016-09-01 18:12:12 +08:00
afc163
363f610d8b Fix tsc errors beside DatePicker 2016-08-24 16:09:55 +08:00
Benjy Cui
0ec8c7ba86 docs: fix demoe' format, close: #2822 2016-08-24 10:33:25 +08:00
Shawn Sit
2e0424d3b2 Translation tab title (#2815)
* translated doc of tab title

* fixs: misspell

* fixs: misspell

* remove full stop
2016-08-23 14:15:34 +08:00
Benjy Cui
e6280a7ea6 Merge branch '1.x-stable' 2016-08-22 17:05:37 +08:00
afc163
1f670b84a9 fix Tabs children again (#2559) 2016-08-16 23:13:31 +08:00
afc163
471743f4c7 Fix editable Tabs key error
close #2721 & #2725
2016-08-17 15:17:10 +08:00
afc163
10e1b8b269 Fix some ts errors 2016-08-16 18:07:37 +08:00
afc163
24d2973c32 Merge branch "1.x-stable" 2016-08-16 17:54:59 +08:00
afc163
da6b65f7f0 Merge 1.x-stable 2016-08-12 14:47:01 +08:00
afc163
42298b60d4 Fix editable-card Tabs children map bug, close #2658 2016-08-11 16:36:12 +08:00
Shawn Sit
c04ba5b39b docs: Traslation tabs (#2587) 2016-08-03 10:39:20 +08:00
afc163
da6d511567 Merge branch '1.x-stable' 2016-08-02 12:03:11 +08:00
陆离
4fbc909ac1 fix: children should be an array, close #2559 (#2563) 2016-08-01 13:53:11 +08:00
afc163
2e41e35cc6 Fix more tslint problems 2016-07-13 17:22:23 +08:00
bang
817bfe9681 update tabs 2016-07-09 10:50:51 +08:00
afc163
487b40815f Merge 1.x-stable 2016-07-07 15:13:01 +08:00
afc163
b38f4368b3 Fix new Tab demo 2016-07-06 17:41:04 +08:00
yiminghe
9a0d751f94 refactor to typescript 2016-06-22 13:19:48 +08:00
afc163
696233ca07 fix link jump in Firefox 2016-06-17 15:56:00 +08:00
afc163
a9887ad7db update Tabs card demo 2016-06-17 15:45:48 +08:00
afc163
9f132f63aa Fix left & right Tabs, close #2046 2016-06-15 11:19:23 +08:00
afc163
ec21b8bb39 change way to fix #2013, without use table-layout:fixed
also fix #2025
2016-06-13 15:28:35 +08:00
afc163
23e5d18e7c Fix tabs scroll animation 2016-06-12 14:34:33 +08:00
Benjy Cui
2144349741 style: enable react/jsx-closing-bracket-location 2016-06-06 13:54:10 +08:00
ddcat1115
bed556e900 fix #1750 2016-05-24 14:35:21 +08:00
afc163
a56817349e fix vertical tabs style, close #1737 2016-05-18 14:27:18 +08:00
afc163
f7ed1ce38a update tabs demo 2016-05-18 11:04:25 +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
afc163
98998984fe Fix tabs nested style, close #1617 2016-05-10 11:26:48 +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
adc89d4809 Merge branch master into develop-1.0.0 2016-04-17 18:00:46 +08:00
afc163
05299036b4 improve tabBarExtraContent render 2016-04-17 17:47:08 +08:00
afc163
e5c8179189 Merge branch master into develop-1.0.0 2016-04-06 11:57:17 +08:00
afc163
b9b4e30ac1 fix tabs demo 2016-04-06 11:49:02 +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
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
Bruce Mitchener
11c0a6a203 Name classes without Ant* prefix.
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.

The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
2016-03-21 20:16:38 +07:00
afc163
d7f46a05b3 update docs 2016-03-16 22:06:02 +08:00
afc163
079f2a657d Allow close last tab, fix #1071 2016-03-02 20:25:19 +08:00
Benjy Cui
c1659c2ce3 style: update code style to please lint 2016-02-22 10:52:30 +08:00
Benjy Cui
29825f20c8 style: update code style to please lint 2016-02-17 18:04:42 +08:00
Benjy Cui
9d022ff84c style: update code style to please lint 2016-02-17 15:57:33 +08:00
Benjy Cui
cd1391e6a2 style: update code style for object-curly-spacing 2016-01-27 17:00:58 +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
b72d18fd44 style: update code style to please the fucking lint 2016-01-11 09:49:30 +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
c45c6877f8 fix lint problems 2015-12-27 16:20:59 +08:00
afc163
2ab49d7b3c update demo text 2015-12-17 13:44:04 +08:00
afc163
6f3bbce39b update tabs demo 2015-12-17 12:39:26 +08:00
afc163
54087d7488 update tabs doc 2015-12-17 12:36:10 +08:00
afc163
a334065edb Add card tabs on container top 2015-12-17 12:33:34 +08:00
Benjy Cui
7ed1d78150 docs: add doc for tabPosition 2015-12-17 10:04:07 +08:00
afc163
7eb3c04a1e Add tabPostion bottom 2015-12-16 11:53:52 +08:00
afc163
734dcc142a update tabs document 2015-12-15 17:30:06 +08:00
afc163
c43d59dbb4 update editable-card.md 2015-12-15 16:38:53 +08:00
afc163
12c1272354 rewrite editable card 2015-12-15 16:34:02 +08:00
afc163
b115f000f9 Fix some style and react key problems 2015-12-15 11:38:27 +08:00
afc163
349d03e384 update tabs document 2015-12-14 22:20:29 +08:00
afc163
257d90fce1 Add editable tabs example 2015-12-14 22:16:25 +08:00
afc163
6f04d7c1a7 Add type=card tabs 2015-12-14 16:30:15 +08:00
afc163
759baedadd update tabs demo 2015-12-13 20:08:58 +08:00
afc163
23e1ad362b update tabs document 2015-12-10 17:47:51 +08:00
jljsj
ad1a97d0aa add tabs default animation,remove Api animation 2015-12-02 18:06:16 +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
b5e40560bf update demo style 2015-10-31 17:35:50 +08:00
afc163
3a68e2fe1f update tabs demo 2015-10-29 15:27:43 +08:00
afc163
d375942e4b update tabs demo 2015-10-29 15:23:58 +08:00
afc163
753c01ae18 ES6 syntax for demo code
fix antd.notification
2015-10-28 20:55:49 +08:00
yiminghe
17b1ec14f8 add tabs add demo 2015-10-26 10:56:09 +08:00
afc163
6757dc8199 Hide unfinish demo 2015-10-22 23:54:56 +08:00
afc163
415fa383e3 unify all size prop to: large default small 2015-10-22 21:01:52 +08:00
yiminghe
fdee139459 add className for table 2015-10-22 17:28:12 +08:00
afc163
b6cdeb157d Add vertical tabs, fix #398 2015-10-21 20:00:02 +08:00
yiminghe
1e43c9ddc5 upgrade tabs 2015-10-21 14:53:48 +08:00
yiminghe
76b0f673ec beta2 2015-10-20 16:47:55 +08:00
elrrrrrrr
b7a922a895 chore: 迁移 tabs iconfont 2015-10-02 16:36:48 +08:00
afc163
691b0147b1 update eslintrc and fix code 2015-09-01 16:19:39 +08:00
afc163
fdf19520d6 Add component type 2015-08-22 20:16:24 +08:00
afc163
c2933a8e52 update tabs style 2015-08-06 16:47:01 +08:00
jljsj
0673ba9d16 更新转场新增按钮交互与更新motion里的select 2015-08-03 16:04:24 +08:00
ustccjw
b34269a6b1 use es6 module import/export
convert var to const

fix bug

fix bug

fix for jshint

fix import
2015-07-24 11:22:49 +08:00
ustccjw
41c35903a4 remove use strict 2015-07-23 21:36:34 +08:00
afc163
fa9914f34a components order 2015-07-20 12:28:36 +08:00
afc163
66c645d4ab update select combobox demo 2015-06-19 17:52:50 +08:00
afc163
b0bbbdd245 add tab mini size demo 2015-06-19 17:26:34 +08:00
afc163
e8fd51f593 fix tabs style 2015-06-19 16:21:59 +08:00
afc163
b6561a9942 fix tabs style 2015-06-19 15:45:40 +08:00
afc163
757a1b3f8b update tabs demos 2015-06-17 20:28:02 +08:00
afc163
d868a30661 prefixClassName ant-tab -> ant-tabs 2015-06-15 20:04:32 +08:00
yiminghe
1316b07cfd rename tab to tabs 2015-06-15 19:56:58 +08:00
afc163
120687c314 tabs -> tab 2015-06-15 16:20:06 +08:00
Yuwei Ba
4c1014d905 添加带有 icon 的样式 2015-06-15 16:11:28 +08:00
afc163
737ef1167d Add info for components 2015-06-14 17:54:08 +08:00
Yuwei Ba
3a4817b236 添加更多 Demo 2015-06-12 20:21:13 +08:00
Yuwei Ba
b870935c91 Tabs -> Tab 2015-06-12 20:03:38 +08:00
afc163
b9b6cd33d0 components order 2015-06-12 17:49:30 +08:00
yiminghe
90241a7efe fix prefixCls 2015-06-12 12:01:02 +08:00