orzyyyy
63b33d4020
fix: unexpected changes of snapshots
5 years ago
DiamondYuan
6b7ad105c6
fix: fix type of SwitchProps
5 years ago
zombieJ
a5f495692e
fix: Tooltip not work correctly on disabled Switch ( #17372 )
* add tooltip of Switch
* clean up
* updat snapshot
5 years ago
Meck Zhu
87afda5623
Extract SwitchChangeEventHandler and SwitchSize
With this change, we can define change handler more convenience:
Before:
```javascript
const handleChange = (checked: boolean, event: MouseEvent) => {
...
}
```
After:
```javascript
const handleChange: SwitchChangeEventHandler = (checked, event) => {
...
}
```
5 years ago
Zzzen
f1ee189bd2
eliminate `any` type in exported interfaces.#14044
6 years ago
Sebastian Busch
4af2b62cb5
fix: Add some missing TypeScript prop definititions and clean up date-picker definitions ( #16342 )
* Add some missing TypeScript prop definitition, clean up date-picker definitions
* use DatePickerMode instead of redundant enumeration of modes
* decade was missing from the list of modes
See https://codesandbox.io/s/388xplj646
- activate DatePicker
- click on year in header
- click on years in header
- "decade" is printed on footer as mode for renderExtraFooter()
* add decade as possible value for mode prop
6 years ago
何乐
99eeefc25d
correct type in Switch ( #14727 )
6 years ago
frezc
5f9b376456
[type] make type of components compatible with ComponentType<P>
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
Basic support prefixCls.
6 years ago
frezc
1a76a8ec21
add style to SwitchProps
6 years ago
jojoLockLock
171e36680f
fix(switch):set disabled for loading status & set cursor as not-allowed ( #13219 )
6 years ago
Ilan
3d76e49592
✏️ update switch types and docs
6 years ago
afc163
3cbb5da6c2
tweak icons size
6 years ago
HeskeyBaozi
e91aa112bf
remove svgClassName
6 years ago
HeskeyBaozi
43e6621fb7
use correct icon
6 years ago
afc163
9cf6ae6010
Refactor and apply wave click animation to more components
now support Button, Tag, Radio.Button and switch
6 years ago
Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
HeskeyBaozi
4afd19ef5f
use svg loading icon in Switch component
6 years ago
Wei Zhu
44b529b0d5
Omit loading for Switch
7 years ago
afc163
f26261de31
Support Switch[loading]
7 years ago
Wei Zhu
b647078baa
Fix implicit any for Select Slider Spin Switch
7 years ago
Wei Zhu
9678d3fcfd
Focus && blur support ( #8204 )
* Add test for select
* Add focus() and blur() for AutoComplete
* Add focus() and blur() to Cascader
* Add focus test for input
* Add focus() and blur() for Checkbox
* Add focus() and blur() for Radio
* Add focus() and blur() for Switch
* Add blur() for TimePicker
* Add focus() and blur() to TreeSelect
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
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
8 years ago
Benjy Cui
36a7ffc0d6
fix: Switch should not warning with size=large, close : #5368
8 years ago
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
8 years ago
Benjy Cui
08e21e0a2f
refactor: close : #3490
8 years ago
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
8 years ago
Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
Benjy Cui
77e47c5807
refactor: add interface ( #2638 )
8 years ago
偏右
de359d2cf7
fix tslint problems ( #2360 )
8 years ago
yiminghe
94706f1d2c
fix ts
9 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
Bruce Mitchener
273e527201
Use static class members for propTypes and friends.
9 years ago
Bruce Mitchener
eaae43abdd
More ES2015 classes.
This covers Carousel, InputNumber, Select, Slider, Switch, TreeSelect
and Tree.
9 years ago
Benjy Cui
d06935528e
feat: customized size first
9 years ago
afc163
7c9820baeb
Add small size switch, ref #413
9 years ago
ustccjw
b34269a6b1
use es6 module import/export
convert var to const
fix bug
fix bug
fix for jshint
fix import
9 years ago
yiminghe
c85e10083d
add switch
10 years ago
afc163
dd0e7a94b6
挖坑
10 years ago
afc163
51ac1b3617
二期组件挖坑
10 years ago
afc163
515ce029f3
rename theme to site
10 years ago
afc163
c5e67da18f
first commit
10 years ago