Commit Graph

156 Commits

Author SHA1 Message Date
二货机器人
64b905e9bd
chore: Update @ant-design/icons deps ()
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00
ycjcl868
ab15b3a84c fix: remove danger warning 2019-11-25 07:02:24 +00:00
ycjcl868
37a85366f3 feat: add Button danger 2019-11-25 07:02:24 +00:00
ycjcl868
3a6c76ecc3 feat: Button add danger-default type 2019-11-25 07:02:24 +00:00
ycjcl868
0e1998f643 feat: Button danger-link 2019-11-25 07:02:24 +00:00
zombiej
fa8ddb4104 merge master 2019-09-16 11:23:26 +08:00
zombiej
3d8a4f3612 merge master 2019-08-29 23:41:46 +08:00
Qhan W
cde78c8981 修复纯图标按钮在默认形状下不同大小均显示为正方形 () 2019-08-25 21:04:10 +08:00
vagusX
149729e524
use ant design icons 4.0 ()
* feat: use @ant-design/icons@4.0

* feat: use createFromIconfontCN to make site works

* feat: update doc for Icon

* feat: use icon in component Alert

* feat: use icon in component Avatar

* feat: use icon in component Breadcrumb

* feat: use icon in component Button

* feat: use icon in component Cascader

* feat: use icon in component Collapse

* feat: use icon in component Datepicker

* feat: use icon in component Dropdown

* feat: use icon in component Form

* feat: use icon in component Input

* feat: use icon in component InputNumber

* feat: use icon in component Layout

* feat: use icon in component Mention

* feat: use icon in component Message

* feat: use icon in component Modal

* feat: use icon in component Notification

* feat: use icon in component PageHeader

* feat: use icon in component Pagination

* feat: use icon in component Popconfirm

* feat: use icon in component Progress

* feat: use icon in component Rate

* feat: use icon in component Result

* feat: use icon in component Select

* feat: use icon in component Step

* feat: use icon in component Switch

* feat: use icon in component Table

* feat: use icon in component Tab

* feat: use icon in component Tag

* feat: handle rest component which using Icon

* fix: remove unused vars

* feat: use latest alpha ant design icons

* fix: failed test in uploadlist.test.js

* test: update snapshot for icons

* doc: add Icon for site

* doc: use @ant-design/icons in site

* chore: use latest icons

* fix: tslint issue

* fix: test cases

* fix: types for react

* fix: lint rules for import orders

* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render

* fix: eslint error in demo/**.md

* inject antd icons

* update snapshot

* fix site

* doc: update docs

* fix: code snippets icon in site

* feat: use latest @ant-design/icons

* fix: icon props in message
2019-08-13 14:07:17 +08:00
偏右
aa2ed79770
🐛 Fix Button loading prop warning ()
close 
2019-08-11 16:32:55 +08:00
Amumu
187f8f8372 fix: button should accept title prop ()
* pass title to button

* update

* update
2019-08-08 11:11:46 +08:00
orzyyyy
44d110c0db feat: add extend from prettier/react 2019-08-06 15:36:13 +08:00
orzyyyy
47fd80c8ad fix: disable next line instead of the whole file 2019-08-06 15:36:13 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
afc163
57c28def68
revert unknown to any 2019-06-24 11:29:58 +08:00
Zzzen
f1ee189bd2 eliminate any type in exported interfaces.#14044 2019-06-16 20:51:47 +08:00
zombieJ
1517fcbbd6
fix space missing in button () 2019-05-17 12:04:47 +08:00
陈帅
785c132262
meger feature to master ()
* use ul in list

* update snapshot

* update comment

* feat: TreeSelect support `showSearch` in multiple mode ()

* update rc-tree-select

* typo

* update desc & snapshot

* update desc & snapshot

* check default showSearch

* feat: table customizing variable ()

* feat: added table selected row color variable

* fix: @table-selected-row-color default is inherit

* feat: Upload support customize previewFile ()

* support preview file

* use promise

* dealy load

* use canvas of render

* use domHook of test

* update demo

* add snapshot

* update types

* update testcase

* feat: form customizing variables ()

* fix: added styling form input background-color

* feat: added '@form-warning-input-bg' variable

* feat: added '@form-error-input-bg' variable

* use li wrap with comment

* feat: Support append theme less file with less-variable ()

* add override

* add override support

* update doc

* feat: dropdown support set right icon

* docs: update doc of dropdown component

* style: format dropdown-button.md

* test: update updateSnapshot

* style: format dropdown-button.md

* test: update updateSnapshot

* test: update updateSnapshot

* style: change style of dropdown-button demo

* fix: fix document table order

* feat: Support SkeletonAvatarProps.size accept number () ()

* chore:update style of demo

* feat: Notification functions accept top, bottom and getContainer as arguments

* drawer: add afterVisibleChange

* rm onVisibleChange

* update

* feat: 🇭🇷 hr_HR locale ()

* Added Croatian locale

* fixed lint error

*  Add test cases for hr_HR

* 📝 update i18n documentation

* feat:  add `htmlFor` in Form.Item ()

* add htmlFor in Form.Item

* update doc

* feat: Button support `link` type ()

close 

* feat: Add Timeline.Item.position () ()

* fix: Timeline.pendingDot interface documentation there is a small problem ()

* feat: Add Timeline.Item.position ()

* doc: add version infomation for Timeline.Item.position

* refactor: Update Tree & TreeSelect deps ()

* use CSSMotion

* update snapshot

* feat: Collapse support `expandIconPosition` ()

* update doc

* support expandIconPosition

* update snapshot

* feat: Breadcrumb  support DropDown ()

* breadcrumbs support drop down menu

* update doc

* add require less

* fix test

* fix md doc

* less code

* fix  style warning

* update snap

* add children render test

* feat: TreeNode support checkable

* feat: add optional to support top and left slick dots () ()

* add optional to support top and left slick dots

* update carousel snapshot

* Update doc, add placement demo

* update carousel placement demo snapshots

* rename dots placement to position

* update vertical as deprecated

* rename dotsPosition to dotPosition

* refine code

* add warning testcase for vertical

* remove unused warning

* update expression

* Additional test case for dotPosition

* refactor: Upgrade `rc-tree-select` to support pure React motion ()

* upgrade `rc-tree-select`

* update snapshot

* 3.17.0 changelog

* fix warning

* fix review warning
2019-05-06 12:04:39 +08:00
zombieJ
9190245b52
update ts def () 2019-04-08 18:04:46 +08:00
Dana Janoskova
a543c7db6a add default html type + fix switch 2019-03-28 09:58:37 +01:00
Ferdi Koomen
c6d044f744 - Fix for changes in @types/react (see issue ) 2019-03-27 22:28:59 +01:00
zombieJ
b4050d3d52
fix typescript () 2019-01-28 11:10:56 +08:00
zombieJ
4e54aa8a46
ConfigProvider support autoInsertSpaceInButton ()
close 
2019-01-10 11:47:11 +08:00
zombieJ
f524b693ed
Button support round shape ()
close 
2019-01-10 11:15:43 +08:00
afc163
3f1be96866
Merge branch 'master' into feature
* master: (23 commits)
   fix snapshots
  Add docs for the List rowKey prop
  💄 don't reset font-family in each component
  💄 chore card less variable
  Remove classNames from custom-typing file
  add collapsed faq ref: 
  feat: support define card border radius
  Fix dateRender not supported at WeekPicker
  📝 Add links in Home Page
  📝 Fix site responsive interaction, close 
  💄 chore Steps[labelPlacement="vertical"] style
   fix warning in test case
  📝 update tech antfin cases
  🐛 site menu open bug
  🐛 fix site defaultOpenKeys
  Correct docs
  💄 chore button code style
  fix spaces in curly brackets
  fix two more code style issues
  Fix method argument name
  ...
2018-12-28 12:11:18 +08:00
afc163
f65f3af928
💄 chore button code style 2018-12-26 23:57:33 +08:00
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 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 
  🐛 loose button type propTypes for custom usage
  fix input has min size close 
  fix: fix-picture-spell-error
2018-12-26 20:47:12 +08:00
afc163
380416e92a
🐛 loose button type propTypes for custom usage
close 

ref 
2018-12-26 18:13:35 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
* master:
  📝 Add bodyStyle and style of Drawer in documentation, 
  🐛 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
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
陈帅
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
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ()
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
afc163
35585a6d07
🐛 should render as normal button when href is assigned undefined
close 
2018-12-03 10:39:00 +08:00
afc163
087f7efd10 findDOMNode to refs, close 2018-10-30 16:17:24 +08:00
snail
6b22ae3b6c [fixed]button can also trigger the click event when loading is true in ie9 () 2018-09-29 14:41:55 +08:00
afc163
00aebeb975 add christmas easter egg 2018-09-10 11:23:49 +08:00
zombiej
b076b52756 fix . Add children type validate in button.tsx 2018-08-30 17:59:09 +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
Ilan
b5ed207902 🚚 fitContainer -> block name conversion 2018-07-31 18:42:12 +08:00
Ilan
623cf1eaff introducing fitContainer prop for button 2018-07-31 18:42:12 +08:00
Zheeeng
980e2b1427 Update button signature () 2018-06-14 10:53:14 +08:00
Junbin Huang
bbf5cb75c3
chore: update typescript@~2.9.1 () 2018-06-02 20:12:09 +08:00
Wei Zhu
1ed9fed2cf Improve Button and Tag types 2018-05-18 18:22:33 +08:00
Christopher Deutsch
dd0d4214d1 Omit 'ref' from ButtonProps otherwise typing conflicts occur. ()
Fixes 
2018-05-10 11:21:07 +08:00
Wu Haotian
6019245365 fix(button): use React.HTMLProps for button's props () 2018-05-04 14:48:41 +08:00
afc163
c7471a4653 tweak insert space logic of loading button 2018-05-01 19:33:38 +08:00
Zheeeng
05a522c343 Update ButtonType () 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
Christopher Deutsch
97b09b393b onKeyPress and onKeyDown got the wrong type in () 2018-02-15 13:10:35 -06:00
Yury Kozyrev
1e92ff8efd onKeyPress and onKeyDown typings ()
* Update Checkbox.tsx

* Update button.tsx
2018-02-08 20:35:54 -06:00
Yury Kozyrev
693e734a82 Update button.tsx () 2018-01-10 22:57:11 +08:00
崔宏森
eac76df671 Fix the bug<Button>{0}</Button> display abnormal ()
* 修复了<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
6959119573 Fix HOC in Button not inserted space bettween chinese words 2018-01-02 16:27:59 +08:00
偏右
250eed0fc9
Link button ()
* support link button

* Fix type
2017-11-29 11:20:22 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports () 2017-11-17 14:38:54 +08:00
偏右
bdceb5f083
Review fix ()
* Fix style

* Fix style

* fix lint

* Fix more styles

* Fix more styles

* update snap
2017-11-06 21:28:51 +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 ()
* remove unnecessary default value of 'size' prop

* `clicked` should be a state
2017-10-19 21:52:06 -05:00
Wei Zhu
a3c3ec8070 Fix types and lint 2017-10-09 21:03:00 +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 2017-09-23 16:08:30 +08:00
偏右
dab6f43c02 Feat search enter button ()
* Add enterButton for Input.Search

close 

* update snapshot
2017-09-15 17:03:43 +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 () 2017-08-11 15:06:35 +08:00
Benjy Cui
2413c6af61 fix: make loading work with icon only button in button group, close: 2017-07-14 15:26:55 +08:00
Benjy Cui
2feb3d42e6 chore: add definition for Button[onMouseDown], close: 2017-05-16 11:55:17 +08:00
afc163
5d6439f15b When there is icon, should not insert space in button children, 2017-05-02 20:16:37 +08:00
bang
ae631c7190 refactor(button): enable noImplicitAny 2017-04-26 23:30:51 +07: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
Kenaniah Cerny
8ec86a6b1f buttons should not blur after click 2017-04-01 02:57:01 -07:00
偏右
66cafb95b0 Refactor button loading default delay ()
* Remove delay loading button demo

* Button loading support like { delay: number }, close 

* update loading delay
2017-03-28 15:50:46 +08:00
Sebastian Blade
041bbee2c0 Fix button render with null or undefined child. ()
* Fix button render with null or undefined child.

Fix bug 

* Add missing semicolon

* Make if statement braced.

......
2017-03-27 10:09:38 +08:00
偏右
0308138974 [WIP] upgrade deps ()
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-27 10:09:38 +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
陆离
21a0779692 Better loading of Button ()
*  Better loading of Button

 + close 
 + add a default delay timer (200ms)

* update snapshot

* escape
2017-02-21 14:44:08 +08:00
偏右
f5d697988a fix: Tooltip should work with disabled button ()
* Fix Tooltip won't hide at disabled button

close 

* change button text in test case

* Add comments for display attribute

* correct test case
2017-02-16 14:03:05 +08:00
偏右
f850993fda More types of Button ()
* Add Button[ghost] property, close 

* Add danger button

close 

* update API doc about ghost and danger property
2017-01-23 22:24:36 +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
Andrey G
a307a7acf7 refactor: remove unnecessary computed props for classNames ()
* 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
Wei Zhu
ccbebe60cc style: Fix jsx alignment, () 2016-11-23 17:53:10 +08:00
Benjy Cui
4878258f6c refactor: ref: 2016-10-24 12:04:26 +08:00
yiminghe
8afe3965c1 upgrade ts 2.0 2016-10-19 17:52:23 +08:00
Benjy Cui
9b99c3886d fix: spin should mask content, close: 2016-09-20 14:51:43 +08:00
feng zhi hao
cad2d19be2 fix: complete loss declaration ()
* complete loss declaration

* fix error in ts-lint

* fix Icon name error
2016-09-19 10:17:07 +08:00