Skip to content

Commit 8d7eac3

Browse files
authored
feat(VPicker): add hide-title prop (#21657)
resolves #21545
1 parent 71377a6 commit 8d7eac3

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

packages/api-generator/src/locale/en/VPicker.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"props": {
33
"divided": "Adds a divider between the header and controls.",
44
"landscape": "Puts the picker into landscape mode.",
5-
"hideHeader": "Hide the picker header."
5+
"hideHeader": "Hide the picker header.",
6+
"hideTitle": "Hide the picker title."
67
},
78
"slots": {
89
"actions": "Slot for customizing the content in the actions area",

packages/docs/src/data/new-in.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
},
4646
"VColorPicker": {
4747
"props": {
48-
"eyeDropperIcon": "3.10.0"
48+
"eyeDropperIcon": "3.10.0",
49+
"hideTitle": "3.10.0"
4950
}
5051
},
5152
"VCombobox": {
@@ -62,7 +63,8 @@
6263
"VDatePicker": {
6364
"props": {
6465
"controlHeight": "3.8.0",
65-
"headerColor": "3.8.0"
66+
"headerColor": "3.8.0",
67+
"hideTitle": "3.10.0"
6668
}
6769
},
6870
"VDataTable": {
@@ -138,6 +140,11 @@
138140
"stickToTarget": "3.10.0"
139141
}
140142
},
143+
"VPicker": {
144+
"props": {
145+
"hideTitle": "3.10.0"
146+
}
147+
},
141148
"VProgressLinear": {
142149
"props": {
143150
"chunkCount": "3.10.0",
@@ -180,6 +187,11 @@
180187
"text": "3.2.0"
181188
}
182189
},
190+
"VTimePicker": {
191+
"props": {
192+
"hideTitle": "3.10.0"
193+
}
194+
},
183195
"VTreeview": {
184196
"props": {
185197
"hideActions": "3.9.0",

packages/vuetify/src/labs/VPicker/VPicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const makeVPickerProps = propsFactory({
2626
landscape: Boolean,
2727
title: String,
2828
hideHeader: Boolean,
29+
hideTitle: Boolean,
2930

3031
...makeVSheetProps(),
3132
}, 'VPicker')
@@ -39,7 +40,7 @@ export const VPicker = genericComponent<VPickerSlots>()({
3940
const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(() => props.color)
4041
useRender(() => {
4142
const sheetProps = VSheet.filterProps(props)
42-
const hasTitle = !!(props.title || slots.title)
43+
const hasTitle = !props.hideTitle && !!(props.title || slots.title)
4344

4445
return (
4546
<VSheet

0 commit comments

Comments
 (0)