Skip to content

Commit c7050bc

Browse files
committed
docs: fix type of props option in RouteConfig api
Closes #2453
1 parent 10e3f33 commit c7050bc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: docs/api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Since it's just a component, it works with `<transition>` and `<keep-alive>`. Wh
173173
name?: string; // for named routes
174174
components?: { [name: string]: Component }; // for named views
175175
redirect?: string | Location | Function;
176-
props?: boolean | string | Function;
176+
props?: boolean | Object | Function;
177177
alias?: string | Array<string>;
178178
children?: Array<RouteConfig>; // for nested routes
179179
beforeEnter?: (to: Route, from: Route, next: Function) => void;

Diff for: docs/ja/api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ name ではないプロパティも描画されるコンポーネントに渡さ
171171
name?: string; // 名前付きルート用
172172
components?: { [name: string]: Component }; // 名前付き view 用
173173
redirect?: string | Location | Function;
174-
props?: boolean | string | Function;
174+
props?: boolean | Object | Function;
175175
alias?: string | Array<string>;
176176
children?: Array<RouteConfig>; // ネストされたルート用
177177
beforeEnter?: (to: Route, from: Route, next: Function) => void;

Diff for: docs/ru/api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ sidebar: auto
173173
name?: string; // для именованных маршрутов
174174
components?: { [name: string]: Component }; // для именованных представлений
175175
redirect?: string | Location | Function;
176-
props?: boolean | string | Function;
176+
props?: boolean | Object | Function;
177177
alias?: string | Array<string>;
178178
children?: Array<RouteConfig>; // для вложенных маршрутов
179179
beforeEnter?: (to: Route, from: Route, next: Function) => void;

Diff for: docs/zh/api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ sidebar: auto
177177
name?: string; // 命名路由
178178
components?: { [name: string]: Component }; // 命名视图组件
179179
redirect?: string | Location | Function;
180-
props?: boolean | string | Function;
180+
props?: boolean | Object | Function;
181181
alias?: string | Array<string>;
182182
children?: Array<RouteConfig>; // 嵌套路由
183183
beforeEnter?: (to: Route, from: Route, next: Function) => void;

0 commit comments

Comments
 (0)