diff --git a/packages/vant/src/action-bar/README.md b/packages/vant/src/action-bar/README.md index 7422bee60..488d676fb 100644 --- a/packages/vant/src/action-bar/README.md +++ b/packages/vant/src/action-bar/README.md @@ -105,7 +105,7 @@ Use `badge` prop to show badge in icon. | badge | Content of the badge | _number \| string_ | - | | badge-props | Props of Badge, see [Badge - props](#/en-US/badge#props) | _BadgeProps_ | - | | url | Link URL | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### ActionBarButton Props @@ -119,7 +119,7 @@ Use `badge` prop to show badge in icon. | disabled | Whether to disable button | _boolean_ | `false` | | loading | Whether to show loading status | _boolean_ | `false` | | url | Link | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### ActionBarIcon Slots diff --git a/packages/vant/src/action-bar/README.zh-CN.md b/packages/vant/src/action-bar/README.zh-CN.md index 17a26e004..e2e38ac76 100644 --- a/packages/vant/src/action-bar/README.zh-CN.md +++ b/packages/vant/src/action-bar/README.zh-CN.md @@ -109,7 +109,7 @@ export default { | badge | 图标右上角徽标的内容 | _number \| string_ | - | | badge-props | 自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props) | _BadgeProps_ | - | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### ActionBarButton Props @@ -123,7 +123,7 @@ export default { | disabled | 是否禁用按钮 | _boolean_ | `false` | | loading | 是否显示为加载状态 | _boolean_ | `false` | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### ActionBarIcon Slots diff --git a/packages/vant/src/button/README.md b/packages/vant/src/button/README.md index 8af1334c0..638d72c31 100644 --- a/packages/vant/src/button/README.md +++ b/packages/vant/src/button/README.md @@ -158,7 +158,7 @@ app.use(Button); | loading-type | Loading type, can be set to `spinner` | _string_ | `circular` | | loading-size | Loading icon size | _number \| string_ | `20px` | | url | Link URL | _string_ | - | -| to | Target route of the link, same as using vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### Events diff --git a/packages/vant/src/button/README.zh-CN.md b/packages/vant/src/button/README.zh-CN.md index d2ec6f619..4d657c147 100644 --- a/packages/vant/src/button/README.zh-CN.md +++ b/packages/vant/src/button/README.zh-CN.md @@ -183,7 +183,7 @@ app.use(Button); | loading-type | [加载图标类型](#/zh-CN/loading),可选值为 `spinner` | _string_ | `circular` | | loading-size | 加载图标大小,默认单位为 `px` | _number \| string_ | `20px` | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### Events diff --git a/packages/vant/src/cell/README.md b/packages/vant/src/cell/README.md index 9ff4d651a..830ecc473 100644 --- a/packages/vant/src/cell/README.md +++ b/packages/vant/src/cell/README.md @@ -148,7 +148,7 @@ app.use(CellGroup); | icon-prefix | Icon className prefix | _string_ | `van-icon` | | tag | Custom element tag | _string_ | `div` | | url | Link URL | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | | border | Whether to show inner border | _boolean_ | `true` | | center | Whether to center content vertically | _boolean_ | `false` | diff --git a/packages/vant/src/cell/README.zh-CN.md b/packages/vant/src/cell/README.zh-CN.md index e333fcae4..5505179db 100644 --- a/packages/vant/src/cell/README.zh-CN.md +++ b/packages/vant/src/cell/README.zh-CN.md @@ -153,7 +153,7 @@ app.use(CellGroup); | icon-prefix | 图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props) | _string_ | `van-icon` | | tag | 根节点对应的 HTML 标签名 | _string_ | `div` | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | border | 是否显示内边框 | _boolean_ | `true` | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | | clickable | 是否开启点击反馈 | _boolean_ | `null` | diff --git a/packages/vant/src/grid/README.md b/packages/vant/src/grid/README.md index 7f07cf2ea..cc69e1e4d 100644 --- a/packages/vant/src/grid/README.md +++ b/packages/vant/src/grid/README.md @@ -132,7 +132,7 @@ app.use(GridItem); | badge | Content of the badge | _number \| string_ | - | | badge-props | Props of Badge, see [Badge - props](#/en-US/badge#props) | _BadgeProps_ | - | | url | Link URL | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### GridItem Events diff --git a/packages/vant/src/grid/README.zh-CN.md b/packages/vant/src/grid/README.zh-CN.md index 2c11f6d05..3e9df431e 100644 --- a/packages/vant/src/grid/README.zh-CN.md +++ b/packages/vant/src/grid/README.zh-CN.md @@ -100,7 +100,7 @@ app.use(GridItem); ### 页面导航 -通过 `to` 属性设置 `vue-router` 跳转链接,通过 `url` 属性设置 URL 跳转链接。 +通过 `to` 属性设置 Vue Router 跳转链接,通过 `url` 属性设置 URL 跳转链接。 ```html @@ -148,7 +148,7 @@ app.use(GridItem); | badge | 图标右上角徽标的内容 | _number \| string_ | - | | badge-props | 自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props) | _BadgeProps_ | - | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### GridItem Events diff --git a/packages/vant/src/sidebar/README.md b/packages/vant/src/sidebar/README.md index 4d362be9e..1a2653d5b 100644 --- a/packages/vant/src/sidebar/README.md +++ b/packages/vant/src/sidebar/README.md @@ -110,7 +110,7 @@ export default { | badge-props | Props of Badge, see [Badge - props](#/en-US/badge#props) | _BadgeProps_ | - | | disabled | Whether to be disabled | _boolean_ | `false` | | url | Link | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### SidebarItem Events diff --git a/packages/vant/src/sidebar/README.zh-CN.md b/packages/vant/src/sidebar/README.zh-CN.md index 9dfcb0150..58965bcaf 100644 --- a/packages/vant/src/sidebar/README.zh-CN.md +++ b/packages/vant/src/sidebar/README.zh-CN.md @@ -118,7 +118,7 @@ export default { | badge-props | 自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props) | _BadgeProps_ | - | | disabled | 是否禁用该项 | _boolean_ | `false` | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### SidebarItem Events diff --git a/packages/vant/src/tab/README.md b/packages/vant/src/tab/README.md index 08a658413..9cc5f5a57 100644 --- a/packages/vant/src/tab/README.md +++ b/packages/vant/src/tab/README.md @@ -268,7 +268,7 @@ export default { | badge | Content of the badge on the title | _number \| string_ | - | | name | Identifier | _number \| string_ | Index of tab | | url | Link | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | | title-style | Custom title style | _string \| Array \| object_ | - | | title-class | Custom title class name | _string \| Array \| object_ | - | diff --git a/packages/vant/src/tab/README.zh-CN.md b/packages/vant/src/tab/README.zh-CN.md index 3862323ec..89e0dae1c 100644 --- a/packages/vant/src/tab/README.zh-CN.md +++ b/packages/vant/src/tab/README.zh-CN.md @@ -281,7 +281,7 @@ export default { | badge | 图标右上角徽标的内容 | _number \| string_ | - | | name | 标签名称,作为匹配的标识符 | _number \| string_ | 标签的索引值 | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | | title-style | 自定义标题样式 | _string \| Array \| object_ | - | | title-class | 自定义标题类名 | _string \| Array \| object_ | - | diff --git a/packages/vant/src/tabbar/README.md b/packages/vant/src/tabbar/README.md index 309463512..05de1eb18 100644 --- a/packages/vant/src/tabbar/README.md +++ b/packages/vant/src/tabbar/README.md @@ -193,7 +193,7 @@ export default { | badge | Content of the badge | _number \| string_ | `''` | | badge-props | Props of Badge, see [Badge - props](#/en-US/badge#props) | _BadgeProps_ | - | | url | Link | _string_ | - | -| to | Target route of the link, same as to of vue-router | _string \| object_ | - | +| to | The target route should navigate to when clicked on, same as the [to prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-to) of Vue Router | _string \| object_ | - | | replace | If true, the navigation will not leave a history record | _boolean_ | `false` | ### TabbarItem Slots diff --git a/packages/vant/src/tabbar/README.zh-CN.md b/packages/vant/src/tabbar/README.zh-CN.md index a166b03b8..48da6cf05 100644 --- a/packages/vant/src/tabbar/README.zh-CN.md +++ b/packages/vant/src/tabbar/README.zh-CN.md @@ -160,7 +160,7 @@ export default { ### 路由模式 -标签栏支持路由模式,用于搭配 `vue-router` 使用。路由模式下会匹配页面路径和标签的 `to` 属性,并自动选中对应的标签。 +标签栏支持路由模式,用于搭配 Vue Router 使用。路由模式下会匹配页面路径和标签的 `to` 属性,并自动选中对应的标签。 ```html @@ -205,7 +205,7 @@ export default { | badge | 图标右上角徽标的内容 | _number \| string_ | - | | badge-props | 自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props) | _BadgeProps_ | - | | url | 点击后跳转的链接地址 | _string_ | - | -| to | 点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | +| to | 点击后跳转的目标路由对象,等同于 Vue Router 的 [to 属性](https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html#Properties-to) | _string \| object_ | - | | replace | 是否在跳转时替换当前页面历史 | _boolean_ | `false` | ### TabbarItem Slots