fix(ts): Add missing loading property to Component options (#4786)

This commit is contained in:
Kevin Marrec 2019-01-17 18:29:41 +01:00 committed by Sébastien Chopin
parent 6694cf706b
commit db4001dae1
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -48,6 +48,10 @@ options.head = () => metaInfo
options.layout = 'foo'
options.layout = (context) => 'foo'
// loading
options.loading = true
// middleware
const middlewares: types.Middleware[] = [