Skip to content

Commit 3e6a332

Browse files
committed
Add new example
1 parent 4814039 commit 3e6a332

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/Example.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,18 @@ export default {
7171
value: [new Date(), new Date(new Date().getTime() + ( 9 * 24 * 60 * 60 * 1000))],
7272
firstDayOfWeek: 'monday'
7373
},
74-
{ title: 'Custom lang, First day of week',
74+
{ title: 'Custom lang',
7575
inputClass: 'exampleDatePicker',
7676
lang: 'en',
7777
position: 'right',
7878
range: true,
79+
value: [new Date(), new Date(new Date().getTime() + ( 9 * 24 * 60 * 60 * 1000))]
80+
},
81+
{ title: 'First Day Of Week',
82+
inputClass: 'exampleDatePicker',
83+
lang: 'en',
84+
position: 'left',
85+
range: true,
7986
value: [new Date(), new Date(new Date().getTime() + ( 9 * 24 * 60 * 60 * 1000))],
8087
firstDayOfWeek: 'sunday'
8188
},
@@ -92,14 +99,14 @@ export default {
9299
{ title: 'Date Options String',
93100
inputClass: 'exampleDatePicker',
94101
lang: 'en',
95-
position: 'left',
102+
position: 'right',
96103
textFormat: 'long',
97104
value: new Date()
98105
},
99106
{ title: 'Showed Date Format',
100107
inputClass: 'exampleDatePicker',
101108
lang: 'en',
102-
position: 'right',
109+
position: 'left',
103110
value: new Date(),
104111
dateFormat: {day: '2-digit', month: '2-digit', year: 'numeric'}
105112
},
@@ -123,6 +130,7 @@ export default {
123130
padding-right: 2vw;
124131
padding-top: 50px;
125132
padding-bottom: 200px;
133+
background: #b1b8be73;
126134
}
127135
.titles {
128136
width: 98vw;
@@ -180,7 +188,7 @@ export default {
180188
.examples {
181189
display: grid;
182190
width: 100%;
183-
grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
191+
grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
184192
}
185193
.example {
186194
padding: 3vw;

0 commit comments

Comments
 (0)