Skip to content

Commit ce43e74

Browse files
committed
Improve the design and experience
1 parent aa6bf7c commit ce43e74

File tree

4 files changed

+340
-286
lines changed

4 files changed

+340
-286
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "A style-uninstallable datepicker component for Vue.js",
9-
"version": "2.2.2",
9+
"version": "2.2.4",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/Demo.vue

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
<template>
22
<div>
33
<functional-calendar class="demo-calendar"
4+
v-model="calendarData2"
5+
:sunday-start="true"
6+
:is-modal="false"
7+
:date-format="'dd.mm.yyyy'"
8+
:change-month-function="true"
9+
:change-year-function="true"
10+
:is-date-range="true"
11+
:is-multiple="false"
12+
:calendars-count="2"
13+
:marked-date-range="{start: '22.4.2019', end: '24.4.2019'}"
14+
:left-and-right-days="true"
15+
></functional-calendar>
16+
17+
<functional-calendar class="demo-calendar2"
418
v-model="calendarData"
519
:sunday-start="true"
620
:is-modal="false"
721
:date-format="'dd.mm.yyyy'"
822
:change-month-function="true"
923
:change-year-function="true"
1024
:is-date-range="true"
11-
:is-multiple="true"
25+
:is-multiple="false"
1226
:calendars-count="2"
1327
:marked-date-range="{start: '22.4.2019', end: '24.4.2019'}"
14-
:left-and-right-days="false"
15-
ref="calendar"
28+
:left-and-right-days="true"
1629
></functional-calendar>
30+
31+
1732
<!--:disabledDates="['27.4.2019','29.4.2019']"-->
1833
<!--:disabledDayNames="['Su']"-->
1934
<blockquote>
@@ -40,6 +55,7 @@
4055
data() {
4156
return {
4257
calendarData: {},
58+
calendarData2: {},
4359
calendar: {
4460
dateRange: {
4561
@@ -77,13 +93,18 @@
7793
</script>
7894

7995
<style>
80-
body {
96+
html, body {
8197
background-color: #fec928;
98+
padding: 0;
99+
margin: 0;
82100
}
83101
84102
.demo-calendar {
85-
margin: 80px 50px;
86-
width: 735px
103+
width: 20%
104+
}
105+
106+
.demo-calendar2 {
107+
width: 635px
87108
}
88109
89110
pre {

0 commit comments

Comments
 (0)