@@ -59,6 +59,7 @@ export const VTimePickerControls = genericComponent()({
59
59
< VBtn
60
60
active = { props . selecting === 1 }
61
61
color = { props . selecting === 1 ? props . color : undefined }
62
+ disabled = { props . disabled }
62
63
variant = "tonal"
63
64
class = { {
64
65
'v-time-picker-controls__time__btn' : true ,
@@ -85,6 +86,7 @@ export const VTimePickerControls = genericComponent()({
85
86
'v-time-picker-controls__time--with-ampm__btn' : props . ampm ,
86
87
'v-time-picker-controls__time--with-seconds__btn' : props . useSeconds ,
87
88
} }
89
+ disabled = { props . disabled }
88
90
variant = "tonal"
89
91
text = { props . minute == null ? '--' : pad ( props . minute ) }
90
92
onClick = { ( ) => emit ( 'update:selecting' , SelectingTimes . Minute ) }
@@ -113,6 +115,7 @@ export const VTimePickerControls = genericComponent()({
113
115
'v-time-picker-controls__time__btn__active' : props . selecting === 3 ,
114
116
'v-time-picker-controls__time--with-seconds__btn' : props . useSeconds ,
115
117
} }
118
+ disabled = { props . disabled }
116
119
text = { props . second == null ? '--' : pad ( props . second ) }
117
120
/>
118
121
)
@@ -133,8 +136,9 @@ export const VTimePickerControls = genericComponent()({
133
136
'v-time-picker-controls__ampm__btn' : true ,
134
137
'v-time-picker-controls__ampm__btn__active' : props . period === 'am' ,
135
138
} }
139
+ disabled = { props . disabled }
136
140
text = { t ( '$vuetify.timePicker.am' ) }
137
- variant = " tonal"
141
+ variant = { props . disabled && props . period === 'am' ? 'elevated' : ' tonal' }
138
142
onClick = { ( ) => props . period !== 'am' ? emit ( 'update:period' , 'am' ) : null }
139
143
/>
140
144
@@ -146,8 +150,9 @@ export const VTimePickerControls = genericComponent()({
146
150
'v-time-picker-controls__ampm__btn' : true ,
147
151
'v-time-picker-controls__ampm__btn__active' : props . period === 'pm' ,
148
152
} }
153
+ disabled = { props . disabled }
149
154
text = { t ( '$vuetify.timePicker.pm' ) }
150
- variant = " tonal"
155
+ variant = { props . disabled && props . period === 'pm' ? 'elevated' : ' tonal' }
151
156
onClick = { ( ) => props . period !== 'pm' ? emit ( 'update:period' , 'pm' ) : null }
152
157
/>
153
158
</ div >
0 commit comments