File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 4
4
<!-- Calendar Button -->
5
5
<span
6
6
v-if =" calendarButton"
7
- :class =" {'input-group-prepend' : bootstrapStyling}"
8
- :style =" {'cursor:not-allowed;' : disabled}"
7
+ :class =" {'input-group-prepend' : bootstrapStyling, 'calendar-btn-disabled': disabled}"
9
8
class =" vdp-datepicker__calendar-button"
10
9
@click =" showCalendar(true)"
11
10
>
Original file line number Diff line number Diff line change 52
52
<template v-if =" isOpen " >
53
53
<div
54
54
ref =" datepicker"
55
- :class =" [calendarClass, 'vdp-datepicker__calendar']"
56
- :style =" calendarStyle"
55
+ :class =" [calendarClass, 'vdp-datepicker__calendar', isInline && 'inline']"
57
56
@mousedown.prevent
58
57
>
59
58
<slot name =" beforeCalendarHeader" />
@@ -278,11 +277,6 @@ export default {
278
277
return this .language
279
278
},
280
279
281
- calendarStyle () {
282
- return {
283
- position: this .isInline ? ' static' : undefined ,
284
- }
285
- },
286
280
isOpen () {
287
281
return this .currentPicker !== ' '
288
282
},
Original file line number Diff line number Diff line change 9
9
* {
10
10
box-sizing : border-box ;
11
11
}
12
+
13
+ .calendar-btn-disabled {
14
+ cursor :not-allowed ;
15
+ }
12
16
}
13
17
14
18
.vdp-datepicker__calendar {
18
22
width : 300px ;
19
23
border : 1px solid #ccc ;
20
24
25
+ & .inline {
26
+ position : static ;
27
+ }
28
+
21
29
header {
22
30
display : block ;
23
31
line-height : 40px ;
You can’t perform that action at this time.
0 commit comments