afc163
37ec04b21a
Fix InputNumber style when zoom to 90% or below
close #10562
7 years ago
Walter Barbagallo
4077ffb58c
Enhanced InputNumber props with HTMLInputElement attributes. ( #10608 )
* Enhanced InputNumber props with HTMLInputElement attributes.
It is possibile to use additional props supported by the inner input
element:
```
const inputEl = <InputNumber autoFocus />
```
Before this commit the type checker did not recognize the `autoFocus`
prop.
Some attributes must be omitted because they conflict with props
defined on `InputNumberProps` interface
* Renamed type
Probably they conflicts with a reserved name?
@see https://travis-ci.org/ant-design/ant-design/jobs/381668406
> components/input-number/index.tsx(9,93): error TS4022: 'extends' clause of exported interface 'InputNumberProps' has or is using private name 'OmitAttributes'.
* Replace InputNumber onKeyDown typing with the typed one.
Extending HTMLInputElement attributes the `onKeyDown` props now have a
better typing.
For example before this commit accessing to the event `key` attribute resulted
in a type error.
@see https://reactjs.org/docs/events.html#keyboard-events
* Exporting type OmitAttrs on InputNumber component.
This is an attempt to solve the ci error:
> components/input-number/index.tsx(9,93): error TS4022: 'extends' clause of exported
> interface 'InputNumberProps' has or is using private name 'OmitAttrs'.
@see https://travis-ci.org/ant-design/ant-design/jobs/381678316
7 years ago
afc163
07d6988f0d
Add some tests
7 years ago
Yury Kozyrev
88e0c9b436
More tabIndex properties ( #8936 )
* Update Checkbox.tsx
* Update Input.tsx
* Update index.tsx
7 years ago
Wei Zhu
999d6184ad
docs: Sort api table
7 years ago
afc163
abf9717eab
Large component should has larger font size
14px => 16px
7 years ago
afc163
7baa81ced1
Fix input number handler disabled style
7 years ago
Wei Zhu
d2dc88c470
Add focus() and blur() document
Close #3790
7 years ago
偏右
b531de3fee
Upgrade dev deps and fix lints ( #8358 )
* upgrade devDeps and fix lint
* Fix stylelint problems
7 years ago
Wei Zhu
05c702838d
Fix implicit any error for Input
7 years ago
Nokecy
08d27b92ee
inputNumber 添加onKeyDown属性声明 ( #8253 )
7 years ago
Wei Zhu
09aaa56243
Update snapshot
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Wei Zhu
36227a10db
docs: sort api table
7 years ago
monkindey
0bc5936b23
resolve conflicted files
7 years ago
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
7 years ago
偏右
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 👻
7 years ago
偏右
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
7 years ago
delesseps
174c98cdca
Add focus and blur support to InputNumber ( #7615 )
* Add focus support to InputNumber
* Convert string ref to private ref
* Added blur method and fixed linting
7 years ago
afc163
f56e1a7de7
Fix InputNumber id ts type, close #7257
7 years ago
afc163
f77c38bddf
fix snap
7 years ago
afc163
e3b6430a4b
Fix InputNumber border, close #7117
7 years ago
tim-soft
fdb943e887
Fix formatter ( #7098 )
The replace function can only work on a string, this little tweak will make the formatter not crash the page when the value is changed.
7 years ago
afc163
6a17efcbf1
upgrade some devDeps and fix stylelint
7 years ago
afc163
5ad194143f
Fix InputNumber[precision] ts definites, close #6715
8 years ago
Benjy Cui
00932da89b
test: update snapshot for rc-calendar and rc-input-number
8 years ago
afc163
709c750c2b
Fix InputNumber feedback z-index issue, close #6289
8 years ago
Panjie Setiawan Wicaksono
1abbc1c31b
chore: add name props to input-related interfaces ( #6276 )
8 years ago
afc163
861c5b33d1
support precision of InputNumber, close #5998
8 years ago
Graeme Yeates
e69f03a323
Fix input-number not setting the child input elements background
8 years ago
Graeme Yeates
5841746ec9
Decompose @background-color-base into several variables
8 years ago
Graeme Yeates
ede77a8aa7
Consistently use @background-color-base for disabled states
8 years ago
乐仪
5dfe86e891
fix snap
8 years ago
whtang906
851f8a8756
Add missing props(parser) into InputNumberProps
8 years ago
afc163
9daccc468a
update input number snapshots
8 years ago
Benjy Cui
07e2c5e9c5
docs: update docs for InputNumber, close : #5683
8 years ago
afc163
37744a073d
Fix InputNumber cursor style in safari
8 years ago
ddcat1115
c004001a5f
fix InputNumber plcaeholder style ( #5508 )
8 years ago
afc163
f5350fcd7e
Add InputNumber[parser] which works with formatter
8 years ago
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
* Upgeade to jest 19
* Use jest.spyOn
8 years ago
Benjy Cui
bb16e5fe32
docs: improve docs for InputNumber
8 years ago
afc163
928126e3b3
fix formatter types
8 years ago
Hugo LEHMANN
a73d7d6f22
Add InputNumber typings for props formatter ( #5241 )
* Add InputNumber typings for props formatter
https://github.com/ant-design/ant-design/issues/5240
* InputNumber: Correct typings for formatter prop
8 years ago
Wei Zhu
d4a52b14ce
docs: fix InputNumber api table
close #5251
8 years ago
偏右
43280ea790
Add formatter prop for InputNumber ( #5178 )
8 years ago
Graeme Yeates
9827b74156
Use @input-color to set InputNumber's color ( #5148 )
8 years ago
afc163
d2e178d215
update doc
8 years ago
feng zhi hao
47dc4a81e4
docs: rewrite InputNumber demos to ES6 component ( #4950 )
8 years ago
afc163
94ec19570e
Make InputNumber & RadioButton height style more flexible
8 years ago
Benjy Cui
200b88246f
docs: update docs format
8 years ago