Commit Graph

272 Commits

Author SHA1 Message Date
陈帅
785c132262
meger feature to master (#16421)
* use ul in list

* update snapshot

* update comment

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

* update rc-tree-select

* typo

* update desc & snapshot

* update desc & snapshot

* check default showSearch

* feat: table customizing variable (#15971)

* feat: added table selected row color variable

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

* feat: Upload support customize previewFile (#15984)

* 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 (#15954)

* 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 (#16118)

* 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 (#16078) (#16128)

* 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 (#16258)

* Added Croatian locale

* fixed lint error

*  Add test cases for hr_HR

* 📝 update i18n documentation

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

* add htmlFor in Form.Item

* update doc

* feat: Button support `link` type (#16289)

close #15892

* feat: Add Timeline.Item.position (#16148) (#16193)

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

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

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

* refactor: Update Tree & TreeSelect deps (#16330)

* use CSSMotion

* update snapshot

* feat: Collapse support `expandIconPosition` (#16365)

* update doc

* support expandIconPosition

* update snapshot

* feat: Breadcrumb  support DropDown (#16315)

* 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 (#16186) (#16225)

* 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 (#16402)

* upgrade `rc-tree-select`

* update snapshot

* 3.17.0 changelog

* fix warning

* fix review warning
2019-05-06 12:04:39 +08:00
afc163
a2a9831abb
💄 Fix less code style 2019-04-15 11:05:06 +08:00
Hsuan Lee
baa5a7971f refactor(form-item): move ant-form-item-no-colon selector position (#15592)
* refactor(form-item): better `ant-form-item-no-colon` selector position

fix: fix lint

close #15585

* chore: update snap
2019-03-24 17:03:52 +08:00
willc001
3a2e1abfa7 refector: add @form-explain-font-size (#15488) 2019-03-18 18:44:08 +08:00
偏右
71440a218b
Update components/form/style/index.less
Co-Authored-By: jinxin0112 <m18508218948@163.com>
2019-03-08 15:53:27 +08:00
JinXin
7ccf6855c6
fix: appear two colons
If the label attribute of the component Form.Item is a ReactNode and the same label tag exists inside the ReactNode, two colons will appear.
2019-03-08 15:31:46 +08:00
yoyo837
5281d7b7f2 add labelAlign for Form and FormItem 2019-03-07 15:14:27 +08:00
zombiej
e94ce11bd9 update form item css 2019-02-20 19:38:09 +08:00
zombieJ
c29323b448
Revert to remove FormItem explain-holder (#14937)
* Revert "Adjust style to be similar with origin (#14886)"

This reverts commit 735175e3cf.

* Revert "sync form item (#14778)"

This reverts commit 5ac674e698.
2019-02-19 23:24:07 +08:00
zombieJ
735175e3cf
Adjust style to be similar with origin (#14886)
* adjust style to be similar with origin

* update snapshot

* add missing extra logic

* adjust tiny

* fix margin

* use element to keep the place

* update snapshot
2019-02-18 16:42:02 +08:00
米老朱
6936599aef Enhance stylelint rules (#14803)
* rename .stylelintrc to .stylelintrc.json for explicit file type

* add new npm script lint-fix:style

* fix pseudo-element with double colon

* function name should be lower except ignored functions

* support stylelint declaration-block-no-ignored-properties rule

* support sorted CSS properties order for readability and consistency

* autofix order of all styles by lint-fix:style script

* remove double slash comments after selector

* replace .stylelintignore with ignoreFiles in .stylelintrc.json
2019-02-15 10:48:07 +08:00
zombieJ
5ac674e698
sync form item (#14778)
* sync form item

* update snapshot

* use before
2019-02-13 21:45:47 +08:00
afc163
3fcb8fa0b3 💄 Fix stylelint errors 2019-01-28 19:06:38 +08:00
Ran Byron
4a5e681627 Allow vertical form labels to break line 2019-01-06 17:39:01 +02:00
afc163
c29daf952a
🔨 Merge master into feature 2018-12-22 18:02:10 +08:00
afc163
d78d0de36c
💄 Fix extra margin of nested form item
close #13748
2018-12-22 16:44:10 +08:00
zombiej
cdf4c1e6b8 merge origin/master 2018-12-18 19:18:08 +08:00
Teng YANG
c2d1d72675 Fix #13529 input group compact border color issues (#13550)
fix #13529
2018-12-18 16:53:45 +08:00
陈帅
8e11f0bdb9 merge support prettier 2018-12-07 20:02:01 +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
8a912e5426 add transfer form error style
fix #13273
2018-11-29 14:37:54 +08:00
afc163
595de71315
💄 tweak form control margin, close #13183 2018-11-27 00:36:01 +08:00
afc163
a616f89a1b 🔥 update less code style 2018-11-12 12:02:30 +08:00
afc163
b1f9d36881 Fix different height of FormItem with help info
windows 7

close #12803
2018-10-27 17:40:05 +08:00
afc163
df5bf38bdc Fix Form[inline] help and extra overlapped
close #12725
2018-10-26 23:53:57 +08:00
Benedikt Franke
ac2d094a4a Inherit @form-feedback-icon-size from @font-size-base; 2018-09-04 11:01:46 +08:00
HeskeyBaozi
af11401d33 upgrade svg 2018-08-24 17:36:22 +08:00
HeskeyBaozi
c3816d2859 align validating icon with input suffix icon 2018-08-14 18:20:45 +08:00
HeskeyBaozi
b9a9c308c9 [breaking] remove iconfont-font class helper 2018-08-14 15:31:20 +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
HeskeyBaozi
2f469a3404 use svg icon in form feedback 2018-07-25 11:42:26 +08:00
afc163
101fdc7241 Fix InputNumber overlap in fixed columns table
close #11408

ref #6289
2018-07-23 15:10:43 +08:00
jiang
9e01b24272 fix 10445 (#10457)
* fix 10445

* re help anim timing

* refactor

* use this.helpShow

* is show no set state

* remove state.helpShow
2018-05-10 21:48:11 +08:00
afc163
d95379cfa5 Fix broken style of Input with addons, close #10371 2018-05-05 19:50:48 +08:00
afc163
3d079af7cd Fix Input.Group align issue in Form, close #10281 2018-04-27 15:57:27 +08:00
ddcat1115
a402fdd8b3 fix #9907 (#9908)
* fix #9907

* update snapshot
2018-04-04 15:29:59 +08:00
jiang
76994bd772 Remove Form Item help transition, fix #8831 (#9675)
* fix #8831

* remove help transition
2018-03-14 17:43:02 +08:00
VTHINKXIE
0070628fa8 style(module:form): narrow css selector (#9648) 2018-03-14 11:08:07 +08:00
afc163
1ae7da3878 Fix hasFeedback icon position in vertical form layout
close #9153 and #9309
2018-02-11 11:44:49 +08:00
afc163
9f2b4905f0 Fix AutoComplete border color in form 2018-01-31 10:47:25 +08:00
afc163
d4844bbaf8 tweak input group align in form item 2018-01-12 15:54:10 +08:00
afc163
314345cf8c Fix Form[layout=vertical] style 2018-01-12 14:55:04 +08:00
afc163
3973d245b9 remove unused form control font-size reset 2018-01-05 22:44:39 +08:00
afc163
e1cea9e4e4 Tweak form feedback icon position 2017-12-22 17:35:55 +08:00
afc163
24f0359e2d Fix some form components align 2017-12-22 15:22:22 +08:00
afc163
525efb8c76 Fix form item height problem
close #8701

revert fix of #6097 cause it does not exist in 3.x
2017-12-22 11:48:07 +08:00
ddcat1115
f780759f91 fix large size formItem vertical align (#8495)
* - fix large size input with prefix/suffix vertical align
- fix large size button vertical align

* use large size for formItem default line-height

* improve
2017-12-08 20:57:30 +08:00
ddcat1115
1f0ee08574 Form item vertical align (#8415)
* fix formItem vertical align

* fix formItem vertical align

* rebase master
2017-12-04 14:00:15 +08:00
Wei Zhu
01f4b4e713 Merge branch 'master' into antd-3.0 2017-12-01 11:50:07 +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
ddcat1115
91fc059c9d fix input with addon(in form) vertical align issue (#8325) 2017-11-29 11:20:38 +08:00
afc163
72741db902 Fix margin of nested FormItem, close #8320 2017-11-27 22:14:15 +08:00
Wei Zhu
4f1da98045 Merge branch 'master' into antd-3.0 2017-11-17 14:39:53 +08:00
afc163
b77e7ed554 Fix extra 0.5px height in chrome
close #8220
2017-11-17 12:13:07 +08:00
afc163
58e3743c6d Tweak cascader arrow style 2017-11-10 17:15:02 +08:00
afc163
2e126c1323 Fix Rate style under form item 2017-11-10 17:09:35 +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
ef443ad047 Merge branch 'master' into antd-3.0 2017-10-20 15:47:42 +08:00
syssam
f8b7aad53d less variable @form-vertical-label-padding, @form-vertical-label-margin, @input-padding-horizontal-base, @input-padding-horizontal-sm, @input-padding-horizontal-lg (#7886) (#7919) 2017-10-20 15:11:44 +08:00
afc163
3bc8f1ce5a Tweak form nested form style 2017-10-20 11:35:05 +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
afc163
b0381a6ce4 fix icons, ref #7854 2017-10-11 10:44:26 +08:00
afc163
b174331be4 Fix hasFeedback icon overlap
close #7854
2017-10-11 10:44:26 +08:00
afc163
43659752d2 Fix hasFeedback icon overlap
close #7854
2017-10-11 10:37:45 +08:00
afc163
9c3c88d3cc Fix focused cascader error style 2017-10-09 13:47:24 +08:00
afc163
73a4873e78 Fix focused cascader error style 2017-10-09 13:46:56 +08:00
afc163
c9768e1099 tweak form item margin 2017-10-09 11:09:25 +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
afc163
f9754c8a25 Merge branch 'master' into antd-3.0 2017-09-25 23:10:42 +08:00
afc163
9f017bc5ae Fix mention error style 2017-09-25 22:53:11 +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
5724a55c7b Merge branch 'master' into antd-3.0 2017-09-06 20:22:55 +08:00
afc163
94283b730f Fix validateStatus styles of some Form Controls, close #7498 2017-09-06 20:17:20 +08:00
偏右
2dedc5ec7f Upgrade grid break points (#7230)
close #5122
2017-08-16 20:19:41 +08:00
jiang
22ef7d1147 add form explain animate (#7172) 2017-08-11 17:05:25 +08:00
afc163
9bcde59001 Add @form-feedback-icon-size 2017-08-10 11:34:08 +08:00
afc163
0ad85e2987 Fix #4431 again 2017-07-21 10:07:18 +08:00
afc163
4419d4c94c Fix select extra padding, close #6723 2017-07-11 12:14:35 +08:00
afc163
384803528f Fix extra error outline of select in input addon 2017-07-08 16:20:01 +08:00
afc163
e188036606 remove unused code 2017-06-27 14:33:35 +08:00
afc163
dbd6f29c29 Fix form item extra content line height, close #6618 2017-06-27 12:08:16 +08:00
afc163
6e583325ea Don't impact select inside input group 2017-06-26 21:44:38 +08:00
afc163
e24a8cb5d8 Tweak inline form item margin 2017-06-26 17:05:42 +08:00
afc163
5964e42a9b tweak form label style 2017-06-26 11:51:41 +08:00
afc163
9f78e71c65 Fix select vertical issue inside input addon 2017-06-25 17:22:07 +08:00
afc163
7dafa985c5 remove colon block of vertical form 2017-06-25 16:48:01 +08:00
afc163
9089674a6f Fix form item layout bug when zoom out, close #6097 2017-05-11 21:10:30 +08:00
Graeme Yeates
297412b57c Add a less variable to opt out of form item colons 2017-04-21 14:34:56 -04:00
William Yang
6b8eeb79d1 fix: #5456(Cannot display feed back icon and prefix icon together) (#5457)
* fix #5456

* remove demo and set z-index to 1
2017-03-24 09:59:31 +08:00
afc163
240a93cee2 Fix mention active style 2017-03-19 01:29:21 +08:00
Benjy Cui
aa4606cd9f feat: make Form.Item work with responsive layout, ref: #5296 (#5306) 2017-03-15 11:25:58 +08:00
Benjy Cui
228e9c0747 fix: remove Form auto-responsive layout (#5253)
* fix: remove Form auto-responsive layout

* test: update snapshot
2017-03-10 19:19:36 +08:00
afc163
a7a4d672f5 update form login demo, close #5172 2017-03-06 15:15:50 +08:00
Benjy Cui
fb8f90c102 feat: form (#5063)
* feat: support Form[layout], close: #5056

* feat: Form should be responsive, close: #5055

* test: update snapshot

* fix: resolve conflict betwen layout defaultValue and inline & vertical
2017-03-02 10:49:06 +08:00
afc163
a9599b802c when labelCol is 24, it is a vertical form 2017-02-26 18:09:41 +08:00
afc163
c86d9f1abc Make form control height follow large input height 2017-02-15 11:19:16 +08:00
zhenzong
fdaf15d16c fix issue #4783 (#4788) 2017-02-09 11:09:22 +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
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
afc163
fd6fc86b21 improve form validating style 2017-01-14 20:59:37 +08:00
偏右
6e3565b983 Add Form[hideRequiredMark] (#4500)
* Add Form[hideRequiredMark]

* omit hideRequiredMark

* Add test case for Form[hideRequiredMark]
2017-01-13 21:52:48 +08:00
afc163
4654db312f Fix some lesshint problems 2017-01-11 21:45:09 +08:00
afc163
657c707a79 Hide useless prop Form[horizontal] 2017-01-05 16:57:41 +08:00
afc163
9df1eb91db Add form layout demo and fix vertical form style 2017-01-05 16:32:50 +08:00
afc163
fb6858c3cc Fix hasFeedback and Select style detail for #4436 2017-01-01 17:39:27 +08:00
Jesper We
d258ace146 Fix #4431 Overlapping graphics with<Select> in <Form.Item ... hasFeedback={true} (#4436) 2017-01-01 17:20:08 +08:00
afc163
48de73b721 Fix a FormItem mis-align bug, close #4271 2016-12-16 20:24:50 +08:00
Pierre
827aa2f94c style: remove hardcoded inputs height (#4175)
* remove hardcoded inputs height

* revert pagination input height

* revert pagination input heights bis
2016-12-15 11:17:09 +08:00
Benjy Cui
01dbcbe4af css: should not reset fieldset style, close: #4090 2016-12-01 16:46:05 +08:00
afc163
7d75f6e3de Fix focus style of Form Controls, close #4035 2016-11-28 19:01:14 +08:00
afc163
33ad640b0f feedback icon should not affect user operation (#3891) 2016-11-17 17:33:00 +08:00
afc163
4f7eff39fd fix error controls style 2016-11-16 20:13:00 +08:00
afc163
0d63e5f6b5 Fix select[combobox] vertical align, close #3855 2016-11-15 21:54:22 +08:00
afc163
be9ed0388c Fix form controls focused error style 2016-11-11 15:08:02 +08:00
afc163
88d470220b Fix wrong error style for Form Validation 2016-11-09 22:25:39 +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
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
1ed434a695 fix: should support Input[addon] in Form[inline], close: #3524 2016-10-21 15:04:55 +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
fd76b0cc6c fix long label overflow style 2016-10-07 14:34:25 +08:00
afc163
1bd39692e9 adjust error message margin style in FormItem 2016-09-21 22:26:53 +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
afc163
9e5061acdc Merge branch "1.x-stable" 2016-09-15 01:25:28 +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
ddcat1115
e19a0d500c fix: time-picker style, close #2973 (#3028) 2016-09-13 17:06:11 +08:00
afc163
bab669d17d Merge branch "1.x-stable" 2016-09-08 15:17:39 +08:00
afc163
7c99d5fb9e fix selector order, close #2916 2016-09-01 16:48:22 +08:00
afc163
b798a228e6 Add less variables about outline 2016-08-31 17:04:24 +08:00
afc163
da6b65f7f0 Merge 1.x-stable 2016-08-12 14:47:01 +08:00
afc163
8ae2936342 Fix nested Forms style 2016-08-10 14:38:35 +08:00
Benjy Cui
7d9585377e feat: Form[vertical], close: #2449 2016-08-04 17:45:15 +08:00
afc163
71d74c30c1 Merge 1.x-stable 2016-07-29 13:57:54 +08:00
yeliex
14d6bd80da fix: label should align left when it occupy the whole line (#2517) 2016-07-28 08:39:03 +08:00
afc163
0eeca99f02 Merge 1.x-stable 2016-07-26 22:20:33 +08:00
afc163
ca57794ae7 better implement for a2804cb 2016-07-25 14:03:56 +08:00
afc163
32ab285886 Merge branch '1.x-stable' 2016-07-24 13:49:42 +08:00
afc163
a2804cbff5 Make clear icon more clear 2016-07-21 20:57:44 +08:00
afc163
497cc1f65a improve FormItem colon (#2311) 2016-07-21 15:51:37 +08:00
afc163
1138b69c6d Merge branch 'master' of github.com:ant-design/ant-design 2016-07-21 14:40:11 +08:00
afc163
42d34a5db3 Merge branch '1.x-stable' 2016-07-21 14:34:37 +08:00
RaoHai
1ccfad13f7 Mention Component fix
- 现在只输入一个 @ 符号,dropdown 也会弹出。
 - 输入框失去焦点后,dropdown 会消失。
 - 添加受控模式示例
 - 添加 `getMentions(editorState: EditorState): Array<String>` Api,
   可以获取当前提到的人。
 - 添加了校验样式
 - 其他样式修正
2016-07-20 19:01:11 +08:00
afc163
e2cc2838fd Fix lesshint 2016-07-18 22:24:53 +08:00
afc163
6dad2b2987 Merge branch '1.x-stable' 2016-07-11 14:57:38 +08:00
afc163
8e9768fb4a Fix form button align 2016-07-10 17:04:03 +08:00
afc163
158b594526 Merge branch '1.x-stable' 2016-07-09 17:46:11 +08:00
Benjy Cui
4a6ff6f053 fix: Form.Item should support responsive layout, close: #2305 (#2313) 2016-07-09 17:44:28 +08:00
yeliex
147e06a837 Add colon props to Form (#2311) 2016-07-09 15:10:07 +08:00