Commit graph

95 commits

Author SHA1 Message Date
梁灏
7bafe9d94c fixes #4453 #4480 #4462 2018-09-10 16:10:35 +08:00
oyv1cent
3881f820de fix 2018-08-25 13:20:15 +08:00
SergioCrisostomo
6f8160270d Don't parse multiple dates
Correct change added in https://github.com/iview/iview/pull/4253
2018-08-10 14:58:31 +02:00
SergioCrisostomo
ce2d2b7235 Parse dates to be sure we consume correct format 2018-08-10 09:47:05 +02:00
梁灏
fe5ffd7f3f fixed #4196 #4165 2018-08-07 16:35:27 +08:00
梁灏
20cfa1b6da DatePicker support global setting 2018-06-28 14:35:49 +08:00
梁灏
0f512d6a73 update Date Icons 2018-06-25 13:27:14 +08:00
Sergio Crisostomo
9e375e6712 Focus only if component has input (3769) 2018-06-04 09:52:20 +02:00
Graham Fairweather
26369639b6 Update v-click-outside-x and use project wide directive 2018-05-30 15:29:46 +02:00
Sergio Crisostomo
75c9806430 Don't use undefined 2018-05-23 08:21:27 +02:00
Graham Fairweather
8624560f9a Fix: Webpack is not configured to handle transpiling raw module, use pre-transpiled
This was breaking ie <= 11

https://github.com/iview/iview/issues/3325
2018-05-21 14:47:12 +02:00
Sergio Crisostomo
9a7a0e7557 take into account possible startDate in props 2018-05-21 08:26:28 +02:00
Sergio Crisostomo
939a162ad7 Prevent selecting disabled dates 2018-05-21 08:24:56 +02:00
Sergio Crisostomo
75cb299868 Add keyboard navigation to date|time picker 2018-05-18 13:06:43 +02:00
Sergio Crisostomo
90ebd5a72c Expose changed date component 2018-04-11 14:31:14 +02:00
Sergio Crisostomo
524dc2a5f6 Fix date parsing
Fixes #3232
2018-04-06 23:16:44 +02:00
Sergio Crisostomo
94790b84e7 Fix type passed when no value is given for timerange 2018-03-16 11:49:55 +01:00
huanghong
e09b07b79c 解决drop弹出动画异常 2018-03-16 00:43:11 +08:00
Sergio Crisostomo
02859de9b1 Use the last picked date as reference for the date panel 2018-03-05 08:59:25 +01:00
Sergio Crisostomo
2332ac9bff Fix error in formater for multiple values 2018-03-05 08:48:25 +01:00
Sergio Crisostomo
79ac2457fd Allow DatePicker to receive TimePicker options 2018-03-03 12:51:53 +01:00
Sergio Crisostomo
b42322fe06 Pass Strings to @on-change and Dates to v-model 2018-02-27 11:01:06 +01:00
Sergio Crisostomo
57f0582b71 Pass correct arguments to on-change callback 2018-02-11 20:46:22 +01:00
Sergio Crisostomo
65ce6cedcb keep this.$refs.drop.update(); because of transfer 2018-02-08 11:45:08 +01:00
Sergio Crisostomo
6017ed7509 update scroll when panel opens 2018-02-05 07:50:23 +01:00
Sergio Crisostomo
8878e4a351 Remove validator function (because:)
We have too many use cases and we cannot access props inside validator
function, so we cannot do proper checking anyway
2018-02-02 14:35:55 +01:00
Sergio Crisostomo
4a1734b77e fix time and time-range parsers 2018-02-02 14:26:44 +01:00
Sergio Crisostomo
88d24200e8 Fix date toggle in "multiple mode" 2018-02-02 11:36:11 +01:00
Sergio Crisostomo
34867ff9a9 normalise empty initial values 2018-02-02 11:21:12 +01:00
Sergio Crisostomo
8c16b30149 return empty strings for invalid dates instead of null 2018-01-24 15:07:09 +01:00
Sergio Crisostomo
72f225e938 Fix date manual input so it falls back to old value when parser don't parse the input 2018-01-24 14:54:03 +01:00
Sergio Crisostomo
46726afdf4 Fix panels reset on blur and 2018-01-24 13:33:48 +01:00
Sergio Crisostomo
283b90aa38 Fix daterange manual date insertion 2018-01-24 11:15:20 +01:00
Sergio Crisostomo
b5ca23f5ef Use same API for on-change, but add Date object(s) also 2018-01-24 11:01:25 +01:00
Sergio Crisostomo
c2b7fed05f Reset panel selectionMode and positioning on blur 2018-01-24 10:55:42 +01:00
Sergio Crisostomo
b52e02e436 Fix month|year preselection/shortcut when picking a date 2018-01-24 09:46:07 +01:00
Sergio Crisostomo
d9ff845f63 Emit input event in mounted if parsed value diffs 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
2fb29faeb1 export utilities and fix multiple dates bugs 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
4863a75d92 Correct logic when manually inputing disabledDates 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
8f6aeda4be Fix parser and formater 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
e55ba7a249 Add week numbers 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
435bf7814a add split panel props 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
63bd0f7d3f Add start-date prop to force placing of date picker in date 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
d07b4f3301 fix logic for multiple picker 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
95eae081bc refactor Datepicker
refactor Datepicker  to render subcomponents in template instead of
creating new Vue instances
2018-01-22 14:20:20 +01:00
梁灏
22c27b7962 fixed #2215 2017-11-08 20:44:35 +08:00
Sergio Crisostomo
65255c9637 fix date formatting when strings are supplied to DatePicker 2017-10-23 15:53:12 +02:00
Sergio Crisostomo
5d1c24c7f4 correct behaviour when initialising date-picker with a empty string 2017-10-17 15:13:42 +02:00
Aresn
5bd5dd5918 Merge pull request #2002 from SergioCrisostomo/avoid-throw-if-wrong-input
Return empty string if the date input doesn't parse
2017-09-27 02:10:38 -05:00
Sergio Crisostomo
77883b8c69 Return empty string if the date input doesn't parse 2017-09-27 08:42:28 +02:00