From 971a2714fb0956c27bba6f8dc7930b8853013e5e Mon Sep 17 00:00:00 2001 From: Yingci <59400654+fz6m@users.noreply.github.com> Date: Tue, 1 Jun 2021 02:25:12 +0800 Subject: [PATCH] docs: fix vertical bar in tables (#976) * docs: fix vertical bar in tables * docs: clear div tag * docs: revert import css --- docs/api/index.md | 24 ++++++++++++------------ docs/zh/api/index.md | 16 ++++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/api/index.md b/docs/api/index.md index c699f1bf..aabde24e 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -366,9 +366,9 @@ export declare function useLink(props: RouterLinkOptions): { #### Parameters -| Parameter | Type | Description | -| --------- | ----------------- | ------------------------------------------------------------------------------------- | -| props | RouterLinkOptions | props object that can be passed to ``. Accepts `Ref`s and `ComputedRef`s | +| Parameter | Type | Description | +| --------- | ------------------- | ------------------------------------------------------------------------------------- | +| props | `RouterLinkOptions` | props object that can be passed to ``. 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 diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md index d65ebd14..b2b62075 100644 --- a/docs/zh/api/index.md +++ b/docs/zh/api/index.md @@ -368,7 +368,7 @@ export declare function useLink(props: RouterLinkOptions): { | 参数 | 类型 | 描述 | | ----- | ----------------- | ---------------------------------------------------------------- | -| props | RouterLinkOptions | props 对象可以传递给``。接收 `Ref` 和 `ComputedRef` | +| props | `RouterLinkOptions` | props 对象可以传递给``。接收 `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 -- 2.39.5