mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(ts): Add missing loading
property to Component options (#4786)
This commit is contained in:
parent
6694cf706b
commit
db4001dae1
1
packages/vue-app/types/vue.d.ts
vendored
1
packages/vue-app/types/vue.d.ts
vendored
@ -14,6 +14,7 @@ declare module "vue/types/options" {
|
||||
head?: MetaInfo | (() => MetaInfo);
|
||||
key?: string | ((to: Route) => string);
|
||||
layout?: string | ((ctx: Context) => string);
|
||||
loading?: boolean;
|
||||
middleware?: Middleware | Middleware[];
|
||||
scrollToTop?: boolean;
|
||||
transition?: string | Transition | ((to: Route, from: Route) => string);
|
||||
|
@ -48,6 +48,10 @@ options.head = () => metaInfo
|
||||
options.layout = 'foo'
|
||||
options.layout = (context) => 'foo'
|
||||
|
||||
// loading
|
||||
|
||||
options.loading = true
|
||||
|
||||
// middleware
|
||||
|
||||
const middlewares: types.Middleware[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user