From 95f00c75d4a462c9f194ea43f2d858f6db797727 Mon Sep 17 00:00:00 2001 From: Mazel Date: Fri, 19 Apr 2019 13:39:54 +0200 Subject: [PATCH] fix padding label & refacto css & change prop name --- src/App.vue | 19 ++++++-------- .../_subs/CustomInput.vue | 26 +++++++------------ src/VueCtkDateTimePicker/index.vue | 4 +-- 3 files changed, 19 insertions(+), 30 deletions(-) diff --git a/src/App.vue b/src/App.vue index d561a63a..7034755e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -183,7 +183,7 @@ :button-color="demo.options.buttonColor" :no-header="demo.options.noHeader" :label="demo.options.label" - :label-show="demo.options.labelShow" + :no-label="demo.options.noLabel" :auto-close="demo.options.autoClose" :error="demo.options.error" :hint="demo.options.hint" @@ -248,7 +248,7 @@ booleanOptions: [ 'noHeader', 'autoClose', 'error', 'dark', 'overlay', 'noWeekendDays', 'noShortcuts', 'noButton', 'onlyDate', 'range', 'onlyTime', 'inline', 'persistent', 'disabled', 'noButtonNow', 'noValueToCustomElem', - 'noKeyboard', 'right', 'noClearButton', 'labelShow' + 'noKeyboard', 'right', 'noClearButton', 'noLabel' ], stringOptions: [ 'id', 'label', 'hint', 'color', 'buttonColor', 'position', 'format', 'formatted', 'outputFormat', @@ -272,8 +272,7 @@ format: 'YYYY-MM-DD HH:mm', id: 'DateTimePicker', minDate: '2018-04-05', - maxDate: '2018-04-24', - labelShow: true + maxDate: '2018-04-24' } }, { @@ -298,14 +297,13 @@ format: 'YYYY-MM-DD', color: 'purple', label: 'Select date range', - id: 'RangeDatePicker', - labelShow: true + id: 'RangeDatePicker' } }, { id: '3', title: 'Date Picker', - description: 'Date selector - right position - labelShow false - With large input (input-size="lg") - format: "MM-DD-YYYY" - formatted: "ll"', + description: 'Date selector - right position - noLabel true - With large input (input-size="lg") - format: "MM-DD-YYYY" - formatted: "ll"', editOption: false, initial: '14-01-2019', value: '14-01-2019', @@ -319,7 +317,7 @@ format: 'DD-MM-YYYY', formatted: 'll', right: true, - labelShow: false + noLabel: true } }, { @@ -338,7 +336,7 @@ label: 'Select time', inputSize: 'sm', id: 'TimePicker', - labelShow: true + noLabel: true } }, { @@ -361,8 +359,7 @@ range: true, id: 'InlinePicker', disabledWeekly: [0, 4, 6], - noKeyboard: true, - labelShow: true + noKeyboard: true } }, { diff --git a/src/VueCtkDateTimePicker/_subs/CustomInput.vue b/src/VueCtkDateTimePicker/_subs/CustomInput.vue index df59e2c6..3122edc7 100644 --- a/src/VueCtkDateTimePicker/_subs/CustomInput.vue +++ b/src/VueCtkDateTimePicker/_subs/CustomInput.vue @@ -7,7 +7,7 @@ 'has-error': errorHint, 'is-disabled': disabled, 'is-dark': dark, - 'label-not-show': !labelShow + 'no-label': noLabel }, inputSize]" class="field flex align-center" @click="focusInput" @@ -28,7 +28,7 @@ @click="$emit('click')" >