From 2000629f6ec34f597ca0190ce866aab410ae616f Mon Sep 17 00:00:00 2001 From: Jacek Karczmarczyk Date: Thu, 25 Oct 2018 13:23:42 +0700 Subject: [PATCH] feat: set current date in pickers fixes #292 --- src/examples/date-pickers/dateColorable.vue | 4 ++-- src/examples/date-pickers/dateCurrent.vue | 2 +- src/examples/date-pickers/dateDialogAndMenu.vue | 7 ++----- src/examples/date-pickers/dateEvents.vue | 4 ++-- src/examples/date-pickers/dateFormatting.vue | 6 +++--- src/examples/date-pickers/dateIcons.vue | 2 +- src/examples/date-pickers/dateInternationalization.vue | 2 +- src/examples/date-pickers/dateLight.vue | 2 +- src/examples/date-pickers/datePickerDate.vue | 2 +- src/examples/date-pickers/dateReadonly.vue | 2 +- src/examples/date-pickers/dateWidth.vue | 2 +- src/examples/date-pickers/monthColorable.vue | 4 ++-- src/examples/date-pickers/monthCurrent.vue | 2 +- src/examples/date-pickers/monthDialogAndMenu.vue | 2 +- src/examples/date-pickers/monthIcons.vue | 2 +- src/examples/date-pickers/monthInternationalization.vue | 2 +- src/examples/date-pickers/monthLight.vue | 2 +- src/examples/date-pickers/monthReadonly.vue | 2 +- src/examples/date-pickers/monthWidth.vue | 2 +- 19 files changed, 25 insertions(+), 28 deletions(-) diff --git a/src/examples/date-pickers/dateColorable.vue b/src/examples/date-pickers/dateColorable.vue index 315980273..c4c1ac81e 100644 --- a/src/examples/date-pickers/dateColorable.vue +++ b/src/examples/date-pickers/dateColorable.vue @@ -13,8 +13,8 @@ export default { data () { return { - picker: null, - picker2: null + picker: new Date().toISOString().substr(0, 10), + picker2: new Date().toISOString().substr(0, 10) } } } diff --git a/src/examples/date-pickers/dateCurrent.vue b/src/examples/date-pickers/dateCurrent.vue index 09daad729..60541d7ad 100644 --- a/src/examples/date-pickers/dateCurrent.vue +++ b/src/examples/date-pickers/dateCurrent.vue @@ -13,7 +13,7 @@ export default { data () { return { - date1: null, + date1: new Date().toISOString().substr(0, 10), date2: '2013-07-29' } } diff --git a/src/examples/date-pickers/dateDialogAndMenu.vue b/src/examples/date-pickers/dateDialogAndMenu.vue index b9f07e7ed..cadec401c 100644 --- a/src/examples/date-pickers/dateDialogAndMenu.vue +++ b/src/examples/date-pickers/dateDialogAndMenu.vue @@ -54,11 +54,9 @@ - - + @@ -83,7 +80,7 @@ diff --git a/src/examples/date-pickers/monthColorable.vue b/src/examples/date-pickers/monthColorable.vue index 64752c0e7..da462e791 100644 --- a/src/examples/date-pickers/monthColorable.vue +++ b/src/examples/date-pickers/monthColorable.vue @@ -13,8 +13,8 @@ export default { data () { return { - picker: null, - picker2: null + picker: new Date().toISOString().substr(0, 7), + picker2: new Date().toISOString().substr(0, 7) } } } diff --git a/src/examples/date-pickers/monthCurrent.vue b/src/examples/date-pickers/monthCurrent.vue index 8f638d8a4..167bf301e 100644 --- a/src/examples/date-pickers/monthCurrent.vue +++ b/src/examples/date-pickers/monthCurrent.vue @@ -13,7 +13,7 @@ export default { data () { return { - month1: null, + month1: new Date().toISOString().substr(0, 7), month2: '2013-09' } } diff --git a/src/examples/date-pickers/monthDialogAndMenu.vue b/src/examples/date-pickers/monthDialogAndMenu.vue index 7dfe7a86e..7c3062c28 100644 --- a/src/examples/date-pickers/monthDialogAndMenu.vue +++ b/src/examples/date-pickers/monthDialogAndMenu.vue @@ -64,7 +64,7 @@