Wei Zhu
1b3118e1dc
Use week year
Fix #9463
7 years ago
Wei Zhu
6ea33da9f8
Don't use ISO week ( #9025 )
https://en.wikipedia.org/wiki/ISO_week_date
fix #9021
7 years ago
Wei Zhu
0bb531aca6
Refactor DatePicker types
7 years ago
ascoders
9bf76ff76a
fix: add props define - onPanelChange in DatePicker.RangePicker
7 years ago
ziyi.hzy
3ce9188056
fix: add props define - mode in DatePicker.RangePicker
7 years ago
Flynn
071149cfbb
feature:add onCalendarChange for RangePicker ( #8355 )
* feature:add onCalendarChange for RangePicker
The event trigger when start time or end time is changing, which is useful for districting range user can select.
* Update index.zh-CN.md
update doc
* Update index.zh-CN.md
* Update index.zh-CN.md
7 years ago
Wei Zhu
4aeb811b72
Remove deprecations ( #8351 )
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
778758944
4e726fdfd7
修复disabledTime interface定义错误 ( #7740 )
7 years ago
Henri Normak
36a54a8a8c
Expose renderDate function for DatePicker ( #7710 )
* Expose renderDate function for Calendar dates
* Use the original prop name
7 years ago
偏右
f3911b3707
Feat week picker ( #7404 )
* New Component WeekPicker
close #212
* Add WeexPicker in API doc
* update snapshot
* Add test cases
* update snapshot
7 years ago
柚子男
6d06f2f4b4
fix lint
7 years ago
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
8 years ago
newraina
e560cb26c3
fix dataPicker onOk type definition ( #6619 )
8 years ago
Benjy Cui
1920d9af46
chore: update details for #6584
8 years ago
Alexander
9131a79377
chore: add className prop to DatePicker ( #6584 )
* Add className to DatePicker
* Add className to MonthPicker and RangePicker
8 years ago
afc163
6790e80f3e
Add renderExtraFooter for DatePicker
close #6122 , close #5188
8 years ago
HJin.me
47589ba92c
fix get(Popup|Calendar|Suggestion|Tooltip)Container ts type ( #5528 )
8 years ago
afc163
849c5fbf75
Fix getPopupContainer ts type
8 years ago
afc163
322e9efdc9
Fix getPopupContainer ts type
8 years ago
Benjy Cui
174c3b7d62
docs: MonthPicker doesn't support onOk, close : #5350
8 years ago
afc163
5068343b0c
fix tslint
8 years ago
afc163
a7c6c027ce
Fix ts definition of Table & RangePicker
close https://segmentfault.com/q/1010000008423156
8 years ago
Benjy Cui
38fd7f6feb
chore: improve detail
8 years ago
Benjy Cui
f499a026ce
feat: basic impl of RangePicker[ranges], ref: #1418
8 years ago
RaoHai
d4269f8f30
fix `format` props of RangePicker
+ close #3808
8 years ago
Benjy Cui
bbef274aae
feat: expose DatePicker[showToday], ref: #3793
8 years ago
feng zhi hao
b6fbc266c5
add declaration in DatePicker ( #3829 )
8 years ago
Benjy Cui
f7e480ad53
feat: add DatePicker[allowClear], close : #3618
8 years ago
feng zhi hao
0257e02e65
optimize declaration ( #3531 )
8 years ago
feng zhi hao
6bcd489c50
chore: optimize DatePicker`s declaration ( #3468 )
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
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
8 years ago
马斯特
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
8 years ago
Benjy Cui
8db2b79505
chore: fix compile errors
8 years ago
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
Benjy Cui
a6d7cc0035
style: update code style to please lint
8 years ago
Benjy Cui
3411765ce9
Refactor ts ( #2760 )
* refactor: add interface form Calendar
* refactor: add interface for layout
* refactor: add interface for DatePicker
* refactor: add interface for Icon
* refactor: add interface for InputNumber
* refactor: add interface for Input
8 years ago
RaoHai
7dd4a019d5
DatePicker 组件优化
+ DatePicker showTime: 面板上的日期展示输入框统一为一个,格式和外面的输入框同步,并且支持手动修改。
面板上的 TimePicker
+ DatePicker showTime: 输入框不再展示,改造为『选择时间』,点击后不再展开浮层,直接盖住日期区域。
+ RangePicker showTime : 只选中开始日期,“确定”和“选择时间”灰置。 如未选择日期直接选择时间,开始日期和结束日期默认选中当天。
+ RangePicker showTime : 点击框外和确定均为确定操作。
+ RangePicker showTime : 在时间页面,开始时间的默认状态为当前时间,结束时间的默认状态跟随开始时间。
+ RangePicker showTime : 开始时间的选择范围没有限制,结束时间的选择范围必须大于等于开始时间。
+ RangePicker showTime : 当开始时间选择了结束时间之后的时间(发生冲突),结束时间则自动切换到与开始时间相同的时间。
8 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
afc163
455d3654b8
Fix dateInput format of DatePicker, close #1403
9 years ago
afc163
f726979af9
fix(DatePicker): showTime locale problem
close #1356
9 years ago
Benjy Cui
2e86463a6a
refactor: remove mixin
9 years ago
Benjy Cui
6157d21089
refactor: DatePicker
9 years ago
Benjy Cui
193ba74bff
style: update code style
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
Bruce Mitchener
11c0a6a203
Name classes without Ant* prefix.
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.
The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
9 years ago
afc163
56fb20b76d
Fix date-picker style prop
9 years ago
Benjy Cui
c1659c2ce3
style: update code style to please lint
9 years ago