]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix vertical bar in tables (#976)
authorYingci <59400654+fz6m@users.noreply.github.com>
Mon, 31 May 2021 18:25:12 +0000 (02:25 +0800)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 18:25:12 +0000 (20:25 +0200)
* docs: fix vertical bar in tables

* docs: clear div tag

* docs: revert import css

docs/api/index.md
docs/zh/api/index.md

index c699f1bf11e3a061b7d04cf5257af722126317e1..aabde24e46fff3baadbdae9a3392b8559cfb7109 100644 (file)
@@ -366,9 +366,9 @@ export declare function useLink(props: RouterLinkOptions): {
 
 #### Parameters
 
-| Parameter | Type              | Description                                                                           |
-| --------- | ----------------- | ------------------------------------------------------------------------------------- |
-| props     | RouterLinkOptions | props object that can be passed to `<router-link>`. Accepts `Ref`s and `ComputedRef`s |
+| Parameter | Type                | Description                                                                           |
+| --------- | ------------------- | ------------------------------------------------------------------------------------- |
+| props     | `RouterLinkOptions` | props object that can be passed to `<router-link>`. Accepts `Ref`s and `ComputedRef`s |
 
 ### useRoute
 
@@ -461,9 +461,9 @@ afterEach(guard: NavigationHookAfter): () => void
 
 _Parameters_
 
-| Parameter | Type                | Description            |
-| --------- | ------------------- | ---------------------- |
-| guard     | NavigationHookAfter | navigation hook to add |
+| Parameter | Type                  | Description            |
+| --------- | --------------------- | ---------------------- |
+| guard     | `NavigationHookAfter` | navigation hook to add |
 
 #### Examples
 
@@ -573,9 +573,9 @@ hasRoute(name: string | symbol): boolean
 
 _Parameters_
 
-| Parameter | Type    | Description |
-| --------- | ------- | ----------- |
-| name      | `string | symbol`     | Name of the route to check |
+| Parameter | Type                                              | Description                |
+| --------- | ------------------------------------------------- | -------------------------- |
+| name      | `string \| symbol`                                | Name of the route to check |
 
 ### isReady
 
@@ -631,9 +631,9 @@ removeRoute(name: string | symbol): void
 
 _Parameters_
 
-| Parameter | Type    | Description |
-| --------- | ------- | ----------- |
-| name      | `string | symbol`     | Name of the route to remove |
+| Parameter | Type                                          | Description                 |
+| --------- | --------------------------------------------- | --------------------------- |
+| name      | `string \| symbol`                            | Name of the route to remove |
 
 ### replace
 
index d65ebd14f37d96203ca591132739f63c5d46dfb3..b2b620750f0d49c7e818bde5f7a84fc166bee1ae 100644 (file)
@@ -368,7 +368,7 @@ export declare function useLink(props: RouterLinkOptions): {
 
 | 参数  | 类型              | 描述                                                             |
 | ----- | ----------------- | ---------------------------------------------------------------- |
-| props | RouterLinkOptions | props 对象可以传递给`<router-link>`。接收 `Ref` 和 `ComputedRef` |
+| props | `RouterLinkOptions` | props 对象可以传递给`<router-link>`。接收 `Ref` 和 `ComputedRef` |
 
 ### useRoute
 
@@ -425,8 +425,8 @@ addRoute(parentName: string | symbol, route: RouteRecordRaw): () => void
 _参数_
 
 | 参数       | 类型                                 | 描述             |
-| ---------- | ----------------------------------- | ---------------- | -------------------------------------- |
-| parentName | `string| symbol`                    | 父路由记录,`route` 应该被添加到的位置 |
+| ---------- | ----------------------------------- | ---------------- |
+| parentName | `string \| symbol`                  | 父路由记录,`route` 应该被添加到的位置 |
 | route      | [`RouteRecordRaw`](#routerecordraw) | 要添加的路由记录 |
 
 ### addRoute
@@ -463,7 +463,7 @@ _参数_
 
 | 参数  | 类型                | 描述             |
 | ----- | ------------------- | ---------------- |
-| guard | NavigationHookAfter | 要添加的导航钩子 |
+| guard | `NavigationHookAfter` | 要添加的导航钩子 |
 
 #### 示例
 
@@ -574,8 +574,8 @@ hasRoute(name: string | symbol): boolean
 _参数_
 
 | 参数 | 类型    | 描述    |
-| ---- | ------- | ------- | ---------------- |
-| name | `string | symbol` | 要确认的路由名称 |
+| ---- | ------- | ------- | 
+| name | `string \| symbol` | 要确认的路由名称 |
 
 ### isReady
 
@@ -632,8 +632,8 @@ removeRoute(name: string | symbol): void
 _参数_
 
 | 参数 | 类型    | 描述    |
-| ---- | ------- | ------- | ---------------- |
-| name | `string | symbol` | 要删除的路由名称 |
+| ---- | ------- | ------- |
+| name | `string \| symbol` | 要删除的路由名称 |
 
 ### replace