Benjy Cui
4026221d45
deps: hello moment ( #2887 )
* deps: upgrade TimePicker
* deps: upgrade DatePicker
* deps: upgrade Calendar
* fix: moment should work with LocaleProvider
* feat: update API of TimePicker
* feat: update Calendar's APIs
* feat: update DatePicker's APIs
* doc: update demo
* revert: add dateString and timeString and so on
* feat: add Calendar[defaultValue]
* feat: add defaultPickerValue
* docs: update docs about date picker
* feat: set moment locale to zh-cn automatically
8 years ago
afc163
87e6ec8940
fix date-picker demo
8 years ago
ddcat1115
6289d1202b
docs: LocaleProvider, DatePicker 补充时区说明 ( #2761 )
8 years ago
RaoHai
7dd4a019d5
DatePicker 组件优化
+ DatePicker showTime: 面板上的日期展示输入框统一为一个,格式和外面的输入框同步,并且支持手动修改。
面板上的 TimePicker
+ DatePicker showTime: 输入框不再展示,改造为『选择时间』,点击后不再展开浮层,直接盖住日期区域。
+ RangePicker showTime : 只选中开始日期,“确定”和“选择时间”灰置。 如未选择日期直接选择时间,开始日期和结束日期默认选中当天。
+ RangePicker showTime : 点击框外和确定均为确定操作。
+ RangePicker showTime : 在时间页面,开始时间的默认状态为当前时间,结束时间的默认状态跟随开始时间。
+ RangePicker showTime : 开始时间的选择范围没有限制,结束时间的选择范围必须大于等于开始时间。
+ RangePicker showTime : 当开始时间选择了结束时间之后的时间(发生冲突),结束时间则自动切换到与开始时间相同的时间。
8 years ago
afc163
43d8c0a4a2
Fix DatePicker onChange and onOk when showTime
onChange should be triggered at clicking ok button
when showTime is true. You can use onChange replace onOk
anytime.
This commit revert a05b4e6, which break the behavious above.
close #2399 , also fix #2120
8 years ago
ddcat1115
88f77f85ca
docs: translation-DatePicker ( #1932 )
9 years ago
afc163
bec5d311a0
Improve DatePicker start-end demo expierence
9 years ago
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
9 years ago
Benjy Cui
ecaa6c56c3
style: enable comma-dangle
9 years ago
afc163
03cb74ead5
upgrade eslint-config-airbnb version and fix some problems
9 years ago
Leon Shi
baac12d1c4
fix lint ( #1513 )
* fix lint `prefer-stateless-function`
* fix lint `arrow-body-style`
9 years ago
afc163
0805d4365d
update locale demo
9 years ago
afc163
8a422ba2cd
update demo
9 years ago
qubaoming
fc66d27042
change timepicker options to rctimepicker options
9 years ago
qubaoming
6b3a97b902
change timepicker options to rctimepicker options
9 years ago
Benjy Cui
df3ba36720
docs: remove useless newline in documentation
9 years ago
Benjy Cui
2a3febfe4c
deps: remove useless dependencies
9 years ago
Benjy Cui
03d09b66e8
docs: update demo format
9 years ago
Benjy Cui
fd3406bd03
style: enable react/jsx-no-bind
9 years ago
afc163
703cf31868
Add dateString to DatePicker & TimePicker onChange
close #1104
9 years ago
afc163
20211d448c
Add default width for showTime DatePicker
9 years ago
afc163
8070e05de1
update demo
9 years ago
afc163
893248dec7
some style and doc
9 years ago
afc163
21eac259b6
fix dateInput format when contains time-picker, close #953
9 years ago
Benjy Cui
68b51e298d
style: update code style for space-before-function-paren
9 years ago
Benjy Cui
cd1391e6a2
style: update code style for object-curly-spacing
9 years ago
Benjy Cui
61df1eb1dc
fix: should pass formatter to rc-calendar #917
9 years ago
Benjy Cui
aa5c4f9595
style: update code style to please lint
9 years ago
Benjy Cui
209170e813
style: update demo code style to please lint
9 years ago
afc163
91bd7f22c0
use mountNode replace the long getElementById
9 years ago
afc163
c45c6877f8
fix lint problems
9 years ago
afc163
8dea7fbe15
Rollback with-time-picker demo but do not show
9 years ago
afc163
69faeb9145
Fix button text whitespace
9 years ago
afc163
cbf7d27664
improve rangepicker and add showTime prop
9 years ago
Benjy Cui
afa40dd919
feat: add RangePicker
9 years ago
afc163
d759d1f489
Datepicker => DatePicker, Timepicker => TimePicker
9 years ago