Skip to content

Commit ab9dc3f

Browse files
fix: ts errors
1 parent fd11c59 commit ab9dc3f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/vuetify/src/components/VBadge/VBadge.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ export default mixins(
5353
name: 'show',
5454
value: this.isActive
5555
}]
56-
}), this.$slots.badge)] : null
56+
}), this.$slots.badge)] : undefined
5757

5858
return h('span', {
5959
staticClass: 'v-badge',
6060
'class': this.classes
6161
}, [
62-
this.$slots.default,
62+
this.$slots.default!,
6363
h('transition', {
6464
props: {
6565
name: this.transition,

packages/vuetify/src/components/VBtn/VBtn.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default baseMixins.extend<options>().extend({
119119
return this.$createElement(
120120
'div',
121121
{ 'class': 'v-btn__content' },
122-
[this.$slots.default]
122+
[this.$slots.default!]
123123
)
124124
},
125125
genLoader (): VNode {

packages/vuetify/src/components/VChip/VChip.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default mixins(Colorable, Themeable, Toggleable).extend({
6363
])
6464
},
6565
genContent (h: CreateElement): VNode {
66-
const children: VNodeChildren = [this.$slots.default]
66+
const children: VNodeChildren = [this.$slots.default!]
6767

6868
this.close && children.push(this.genClose(h))
6969

packages/vuetify/src/components/VHover/VHover.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default mixins(
4747

4848
if (this.$scopedSlots.default) {
4949
element = this.$scopedSlots.default({ hover: this.isActive })
50-
} else if (this.$slots.default.length === 1) {
50+
} else if (this.$slots.default && this.$slots.default.length === 1) {
5151
element = this.$slots.default[0]
5252
}
5353

packages/vuetify/src/components/VProgressCircular/VProgressCircular.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default mixins(Colorable).extend({
131131
},
132132

133133
render (h): VNode {
134-
const info = h('div', { staticClass: 'v-progress-circular__info' }, [this.$slots.default])
134+
const info = h('div', { staticClass: 'v-progress-circular__info' }, [this.$slots.default!])
135135
const svg = this.genSvg(h)
136136

137137
return h('div', this.setTextColor(this.color, {

packages/vuetify/src/components/VTimeline/VTimelineItem.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default mixins(
8080
genOpposite () {
8181
return this.$createElement('div', {
8282
staticClass: 'v-timeline-item__opposite'
83-
}, [this.$slots.opposite])
83+
}, [this.$slots.opposite!])
8484
}
8585
},
8686

0 commit comments

Comments
 (0)