fix: fix internal components render signature
This commit is contained in:
parent
70947771dc
commit
8024f058cc
@ -77,7 +77,7 @@ export function createAsyncComponent(
|
||||
}
|
||||
}
|
||||
|
||||
render(props: any, slots: Slots) {
|
||||
render(_: any, { props, slots }: { props: any; slots: Slots }) {
|
||||
if (this.err || (this.timedOut && !this.comp)) {
|
||||
const error =
|
||||
this.err || new Error(`Async component timed out after ${timeout}ms.`)
|
||||
|
@ -31,7 +31,7 @@ export class Provide extends Component {
|
||||
beforeUpdate() {
|
||||
this.updateValue()
|
||||
}
|
||||
render(_: any, slots: Slots) {
|
||||
render(_: any, { slots }: { slots: Slots }) {
|
||||
return slots.default && slots.default()
|
||||
}
|
||||
}
|
||||
@ -49,7 +49,7 @@ Provide.options = {
|
||||
}
|
||||
|
||||
export class Inject extends Component {
|
||||
render(props: any, slots: Slots) {
|
||||
render(_: any, { props, slots }: { props: any; slots: Slots }) {
|
||||
return slots.default && slots.default(contextStore[props.id])
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ export class KeepAlive extends Component<{}, KeepAliveProps> {
|
||||
this.keys.delete(key)
|
||||
}
|
||||
|
||||
render(props: any, slots: Slots) {
|
||||
render(_: any, { props, slots }: { props: any; slots: Slots }) {
|
||||
if (!slots.default) {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user