Commit Graph

257 Commits

Author SHA1 Message Date
YuCheng Lin
904e60ef1d date-time-picker: add selectableRange in pickerOptions 2019-01-14 23:25:46 +08:00
Sean
5f181c31e3 date-picker: fix week highlight on year boundary (#13883)
When the selected week spans across two years (e.g. 2018-12-30 2019-01-05),
they should be highlighted in both month tables.
2019-01-03 14:43:37 +08:00
Ende93
0e7a7d345f DatePicker: add key prop to 'v-for' (#13547) 2018-11-26 15:17:46 +08:00
Jiewei Qian
e2c5573c1f Input: simplify el-input implementation (#13471)
* input: simplify internal implementation

remove currentValue, strictly follow one-way data flow
hack for MSIE input event when placeholder is set
remove isKorean hack (#11665, #10648)

* input-number: fix for new el-input

* test: input, fix vue warning

* date-time-range: fix for new el-input

* pagination: fix for new el-input, simplify internals

* input: fix input event on compositionend

* input-number: fix for new el-input

* input-number: nuke userInput on change
2018-11-26 15:05:46 +08:00
hetech
d8d4dfedd5
DatePicker: add validate-event attribute (#13531) 2018-11-22 18:29:16 +08:00
Jiewei Qian
9738054dd4 DatePicker: optimize code, fix #12980, follow up #8156 (#13374)
* date-table: simplify implementation, fix #12980

* date-table: remove rangeState's row and column

* date-table: fix disabled cell highlight

this is a regression introduced in pr #8156, which allows disabled date to be
highlighted.

Also simplifies handleClick's implementation to avoid DOM operations.
2018-11-12 19:19:58 +08:00
Ruslan P
1f592944d6 DatePicker: allowed to customize range-seprator with a slot (#13272)
* DatePicker: Allowed to customize range-seprator with a slot

Currently, the only possible option for "range-selector" is a string, would be nice to use a slot, so we could have custom svg-icon there.

* update doc
2018-11-07 12:30:47 +08:00
Harlan
edb3c9b785 TimePicker: selectable range will affect to column minutes in spinner (#12312) 2018-10-12 22:40:41 +08:00
Jiewei Qian
6cb92acc34 DatePicker: validate input date (#12898)
* date-picker: fix confirm() ignoring date validity

make date-range panel's confirm validate date before confirming.

1. disable confirm button if picked date is invalid
2. reset highlight date on picker open (resetView)

* test: date-time-range confirm honors disabledDate
2018-09-27 16:03:11 +08:00
Jiewei Qian
e7725797c4 chore: update date-picker comment notes (#12899) 2018-09-27 15:37:58 +08:00
Abdalla Nayer
c782b0dc8e DatePicker: turn off autocomplete for date picker range (#12521) 2018-08-27 23:04:28 +08:00
rang-ali
3009999c5a TimePicker: dynamic scroll position of time-spinner items (#12415)
Makes it possible to style the height of ".el-time-spinner__item". 
Removed the fixed values associated to a height and line-height: 32px. It's now possible to set whichever height a user wants and the scrollbar will adjust itself accordingly.
2018-08-22 11:18:44 +08:00
Jiewei Qian
b70da53f15 DatePicker: improve form change validation (#12348)
watch.value will keep firing during time picker selection
it now detects whether panel is closed before firing el.form.change
2018-08-15 11:38:37 +08:00
Jiewei Qian
02176e26f4 Date picker refactor dates selection: fix 12323 (#12347)
* date-picker: refactor type='dates'

fix issue #12323
{month, year} table highlights all selected dates
nuke selectedDates to provide cleaner data flow

* doc: correct date-picker's array usage

empty value must be falsy (empty array should not be used)
2018-08-14 16:19:51 +08:00
Jiewei Qian
9f80cf91da date-picker: fix form change validation (#12328) 2018-08-13 12:26:36 +08:00
Jiewei Qian
69dd5399aa date-picker: fix #11152 (#12114) 2018-07-25 13:07:46 +08:00
Dwight Watson
e003b1460a Use methods instead of inline expressions (#12059) 2018-07-20 14:38:03 +08:00
Jikkai Xiao
e4de2b46bf
TimeSelect: fix fieldReset when initialValue is empty string (#12010) 2018-07-16 19:18:29 +08:00
k-okina
1f8c7ba598 Chore: provide a key with v-for (#11891) 2018-07-11 15:17:20 +08:00
Jiewei Qian
5c44539de1 DatePicker: guards common but incorrect usage (#11673) 2018-06-25 16:47:45 +08:00
Jiewei Qian
ecec908da8 DateTimePicker: fix incorrect date on time pick (#11474)
* date-time-picker: fix incorrect date on time pick

* date-time-picker: fix incorrect date on confirm
2018-06-04 20:22:38 +08:00
Jiewei Qian
71a66ae21d DatePicker: fix valueEquals for array (#11017) 2018-05-07 14:28:54 +08:00
Jiewei Qian
31b65b8e51 DatePicker: fix dates selection date jump (#10973)
see issue #10890
2018-05-03 10:26:25 +08:00
Jiewei Qian
d8f861e929 DatePicker: nuke invalid input on close (#10749) 2018-04-17 14:15:47 +08:00
杨奕
1f4adb7c08
DatePicker: support multiple dates selection (#10650)
* DatePicker: add multiselect feature

* DatePicker: add multiselect feature

* DatePicker: add multiselect feature

* DatePicker: add multiselect feature

* DatePicker: add multiselect feature

* Datepicker: fix can't clear bug

*  Datepicker: add unit test

* Datepicker: add unit test

* Datepicker: add unit test

* Datepicker: add unit test

* Datepicker: add unit test

* Datepicker: add unit test

* DatePicker: support multiple dates selection

* reflect review comments
2018-04-17 14:09:43 +08:00
Jiewei Qian
7c3cadba5c DatePicker: fix week selection range highlight (#10712) 2018-04-15 14:30:14 +08:00
RickMacTurk
528bce4479 DateTimePicker: enable default-time attribute in date picker (#10321) 2018-04-02 11:55:49 +08:00
Cyril Su
a8abe07f3e Input: bind id only when given (#10360) 2018-03-26 16:58:22 +08:00
remizovvv
bfa44e8b4f DatePicker: extract time and date format from format prop (#10174) 2018-03-20 14:04:44 +08:00
Harlan
b24a9ce729 TimeSelect: fix resetField not working when user inputs an invalid value (#10176) 2018-03-15 11:54:02 +08:00
Cyril Su
2d1251975c DatePicker: fix unexpected blur for time panel (#10141) 2018-03-13 17:53:04 +08:00
Jason Zoo
9d6d0d69c1 DateRange: support reversed selection in range mode (#8156) 2018-03-06 19:21:56 +08:00
Jiewei Qian
cacb0aeaec DatePicker: fix change event on clear (#9986) 2018-03-05 16:42:42 +08:00
Eng Philippe
b54ed0a62f DatePicker: prefix icon of input clickable for non-range pickers (#9966) 2018-03-02 14:52:40 +08:00
Jiewei Qian
6dd3d38393 DatePicker: fix date-time panel user input (#9913)
* date-picker: fix date-time panel user input

* test: add test for date-time-picker change event
2018-03-01 10:22:44 +08:00
阿林
ad07722aab Chore: replace var with let and const (#9774) 2018-02-11 16:37:58 +08:00
Jiewei Qian
5b0b1e7e92 DatePicker: fix date clamping during navigation (#9577) 2018-01-31 14:20:07 +08:00
Leopoldthecoder
56dc51bc85 Form: add disabled 2018-01-29 18:14:58 +08:00
wacky6.AriesMBP
1f58f4f8d5 date-picker: add timestamp format 2018-01-29 12:14:40 +08:00
Hi-Linlin
e40c17f68b DatePicker: panels should display different months (#9471) 2018-01-28 16:16:15 +08:00
c0hb1rd
3d7d4980a9 DateTimePicker: fix invalid month value bug for Firefox 37 (#9501)
* DateTimePicker: fix invalid month value for Firefox 37

* Update date-range.vue
2018-01-28 15:20:22 +08:00
Jiewei Qian
1b59561e3f DateTimePicker: changeToNow cheks disabledDate (#9470) 2018-01-25 19:16:10 +08:00
Hi-Linlin
bd47ee7d6e DatePicker: fixed range type can not focus (#9437) 2018-01-24 12:55:20 +08:00
Jiewei Qian
aaf7a87848 DatePicker: support clearing value using delete (#9409)
* date-picker: fix #9276

https://github.com/ElemeFE/element/issues/9276

* test: fix broken test for form/date-picker
2018-01-23 11:41:38 +08:00
Leopoldthecoder
98bdee26b1 Popper: fix arrow position 2018-01-21 10:35:04 +08:00
nighca
2880132de8 DatePicker: fix incorrect interaction on range change when defaultTime provided 2018-01-18 11:48:57 +08:00
Hanxing Yang
94f18ab9a6 DatePicker: add attribute defaultTime (#9094)
* DatePicker: add attribute defaultTime

* use createVue instead of createTest & update docs for defaultTime

* update defaultTime type
2018-01-16 19:39:28 +08:00
AdamSGit
cf3490cfea DatePicker: added prefix-icon and clear-icon (#9237)
* [DatePicker] Added the possibilitie to pass custom prefix and suffix icon class with same props as usual (prefix-icon and suffix-icon)

* [DatePicker] Fixed error in previous commit and updated english documentation according to icon changes

* Renamed suffix-icon to clear-icon, and updated english doc

* Cleaned unnecessary lines
2018-01-15 21:50:04 +08:00
cinwell.li
be3dcbfc4c chore: update ESLint (#9124)
* chore: update ESLint

* chore: update eslint ignore
2018-01-05 16:53:02 +08:00
Jordan Pickwell
e86cb785b3 Fix #9121 (#9122) 2018-01-04 10:28:25 +08:00