diff --git a/docs/site/desktop/main.js b/docs/site/desktop/main.js
index 962a78d2f..9cfd68c53 100644
--- a/docs/site/desktop/main.js
+++ b/docs/site/desktop/main.js
@@ -21,16 +21,16 @@ importAll(docs, docsFromPackages);
const router = new VueRouter({
mode: 'hash',
routes: routes({ componentMap: docs }),
- scrollBehavior(to, from, savedPosition) {
+ scrollBehavior(to) {
if (to.hash) {
return { selector: to.hash };
}
- return savedPosition || { x: 0, y: 0 };
+ return { x: 0, y: 0 };
}
});
-router.afterEach(path => {
+router.afterEach(() => {
Vue.nextTick(() => window.syncPath());
});
diff --git a/src/button/README.zh-CN.md b/src/button/README.zh-CN.md
index 905216b36..adde2f431 100644
--- a/src/button/README.zh-CN.md
+++ b/src/button/README.zh-CN.md
@@ -118,7 +118,7 @@ Vue.use(Button);
| size | 尺寸,可选值为 `large` `small` `mini` | *string* | `normal` | - |
| text | 按钮文字 | *string* | - | - |
| color | 按钮颜色,支持传入`linear-gradient`渐变色 | *string* | - | 2.1.3 |
-| icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| tag | HTML 标签 | *string* | `button` | - |
| native-type | 原生 button 标签 type 属性 | *string* | - | - |
| block | 是否为块级元素 | *boolean* | `false` | - |
@@ -132,7 +132,7 @@ Vue.use(Button);
| loading-type | 加载图标类型,可选值为`spinner` | *string* | `circular` | - |
| loading-size | 加载图标大小 | *string* | `20px` | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### Events
diff --git a/src/cell/README.zh-CN.md b/src/cell/README.zh-CN.md
index 29bc21081..75e5e1191 100644
--- a/src/cell/README.zh-CN.md
+++ b/src/cell/README.zh-CN.md
@@ -115,13 +115,13 @@ Vue.use(Cell).use(CellGroup);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
-| icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| title | 左侧标题 | *string \| number* | - | - |
| value | 右侧内容 | *string \| number* | - | - |
| label | 标题下方的描述信息 | *string* | - | - |
| size | 单元格大小,可选值为 `large` | *string* | - | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| border | 是否显示内边框 | *boolean* | `true` | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
| clickable | 是否开启点击反馈 | *boolean* | `false` | - |
diff --git a/src/collapse/README.zh-CN.md b/src/collapse/README.zh-CN.md
index aed18f027..02cd4202e 100644
--- a/src/collapse/README.zh-CN.md
+++ b/src/collapse/README.zh-CN.md
@@ -105,7 +105,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| name | 唯一标识符,默认为索引值 | *string \| number* | `index` | - |
-| icon | 标题栏左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| icon | 标题栏左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| size | 标题栏大小,可选值为 `large` | *string* | - | - |
| title | 标题栏左侧内容 | *string \| number* | - | - |
| value | 标题栏右侧内容 | *string \| number* | - | - |
diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md
index c30adc591..3aabe9e1f 100644
--- a/src/dropdown-menu/README.zh-CN.md
+++ b/src/dropdown-menu/README.zh-CN.md
@@ -157,4 +157,4 @@ export default {
|------|------|------|
| text | 文字 | *string* |
| value | 标识符 | *string \| number* |
-| icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* |
+| icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* |
diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md
index 256a13578..5d9126130 100644
--- a/src/field/README.zh-CN.md
+++ b/src/field/README.zh-CN.md
@@ -148,8 +148,8 @@ Vue.use(Field);
| input-align | 输入框内容对齐方式,可选值为 `center` `right` | *string* | `left` | - |
| error-message-align | 错误提示文案对齐方式,可选值为 `center` `right` | *string* | `left` | - |
| autosize | 自适应内容高度,只对 textarea 有效,可传入对象,
如 { maxHeight: 100, minHeight: 50 },单位为`px` | *boolean \| object* | `false` | - |
-| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
-| right-icon | 右侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| left-icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
+| right-icon | 右侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
### Events
diff --git a/src/goods-action/README.zh-CN.md b/src/goods-action/README.zh-CN.md
index c24b57ffe..3ed158098 100644
--- a/src/goods-action/README.zh-CN.md
+++ b/src/goods-action/README.zh-CN.md
@@ -86,7 +86,7 @@ export default {
| icon-class | 图标额外类名 | *any* | - | - |
| info | 图标右上角提示信息 | *string \| number* | - | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### GoodsActionButton Props
@@ -99,7 +99,7 @@ export default {
| disabled | 是否禁用按钮 | *boolean* | `false` | - | - |
| loading | 是否显示为加载状态 | *boolean* | `false` | - | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### GoodsActionIcon Slots
diff --git a/src/grid/README.zh-CN.md b/src/grid/README.zh-CN.md
index ed087192f..c3c59ebfd 100644
--- a/src/grid/README.zh-CN.md
+++ b/src/grid/README.zh-CN.md
@@ -130,9 +130,9 @@ Vue.use(Grid).use(GridItem);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| text | 文字 | *string* | - | - |
-| icon | 图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| icon | 图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### GridItem Events
diff --git a/src/notice-bar/README.zh-CN.md b/src/notice-bar/README.zh-CN.md
index 7a1e34ea9..02f403ac6 100644
--- a/src/notice-bar/README.zh-CN.md
+++ b/src/notice-bar/README.zh-CN.md
@@ -80,7 +80,7 @@ Vue.use(NoticeBar);
| speed | 滚动速率 (px/s) | *number* | `50` | - |
| scrollable | 是否在长度溢出时滚动播放 | *boolean* | `true` | - |
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | *boolean* | `false` | - |
-| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| left-icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| color | 文本颜色 | *string* | `#f60` | - |
| background | 滚动条背景 | *string* | `#fff7cc` | - |
diff --git a/src/panel/README.zh-CN.md b/src/panel/README.zh-CN.md
index d428d68b2..a6965778d 100644
--- a/src/panel/README.zh-CN.md
+++ b/src/panel/README.zh-CN.md
@@ -44,7 +44,7 @@ Vue.use(Panel);
| title | 标题 | *string* | - | - |
| desc | 描述 | *string* | - | - |
| status | 状态 | *string* | - | - |
-| icon | 标题左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| icon | 标题左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
### Slots
diff --git a/src/rate/README.zh-CN.md b/src/rate/README.zh-CN.md
index 67d7bcf99..7d319271c 100644
--- a/src/rate/README.zh-CN.md
+++ b/src/rate/README.zh-CN.md
@@ -101,8 +101,8 @@ export default {
| color | 选中时的颜色 | *string* | `#ffd21e` | - |
| void-color | 未选中时的颜色 | *string* | `#c7c7c7` | - |
| disabled-color | 禁用时的颜色 | *string* | `#bdbdbd` | - |
-| icon | 选中时的图标名称或图片链接,可选值见 Icon 组件 | *string* | `star` | - |
-| void-icon | 未选中时的图标名称或图片链接,可选值见 Icon 组件 | *string* | `star-o` | - |
+| icon | 选中时的图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | `star` | - |
+| void-icon | 未选中时的图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | `star-o` | - |
| allow-half | 是否允许半选 | *boolean* | `false` | - |
| readonly | 是否为只读状态 | *boolean* | `false` | - |
| disabled | 是否禁用评分 | *boolean* | `false` | - |
diff --git a/src/search/README.zh-CN.md b/src/search/README.zh-CN.md
index c1a7894b6..55c8cea1e 100644
--- a/src/search/README.zh-CN.md
+++ b/src/search/README.zh-CN.md
@@ -70,8 +70,8 @@ Search 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`pl
| readonly | 是否将输入框设为只读 | *boolean* | `false` | - |
| error | 是否将输入内容标红 | *boolean* | `false` | - |
| input-align | 输入框内容对齐方式,可选值为 `center` `right` | *string* | `left` | - |
-| left-icon | 输入框左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | `search` | - |
-| right-icon | 输入框右侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| left-icon | 输入框左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | `search` | - |
+| right-icon | 输入框右侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
### Events
diff --git a/src/sidebar/README.zh-CN.md b/src/sidebar/README.zh-CN.md
index 70466008d..d0020d46e 100644
--- a/src/sidebar/README.zh-CN.md
+++ b/src/sidebar/README.zh-CN.md
@@ -68,7 +68,7 @@ export default {
| info | 提示消息 | *string \| number* | `''` | - |
| disabled | 是否禁用该项 | *boolean* | `false` | 2.2.0 |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | 2.0.4 |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | 2.0.4 |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | 2.0.4 |
### SidebarItem Events
diff --git a/src/steps/README.zh-CN.md b/src/steps/README.zh-CN.md
index 10eb844f0..fa30f6c86 100644
--- a/src/steps/README.zh-CN.md
+++ b/src/steps/README.zh-CN.md
@@ -79,8 +79,8 @@ export default {
| active | 当前步骤 | *number* | 0 | - |
| direction | 显示方向,可选值为 `vertical` | *string* | `horizontal` | - |
| active-color | 激活状态颜色 | *string* | `#07c160` | - |
-| active-icon | 激活状态底部图标,可选值见 Icon 组件 | *string* | `checked` | - |
-| inactive-icon | 未激活状态底部图标,可选值见 Icon 组件 | *string* | - | - |
+| active-icon | 激活状态底部图标,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | `checked` | - |
+| inactive-icon | 未激活状态底部图标,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
### Step Slots
diff --git a/src/submit-bar/README.zh-CN.md b/src/submit-bar/README.zh-CN.md
index 2852592d0..c510567eb 100644
--- a/src/submit-bar/README.zh-CN.md
+++ b/src/submit-bar/README.zh-CN.md
@@ -78,7 +78,7 @@ Vue.use(SubmitBar);
| button-text | 按钮文字 | *string* | - | - |
| button-type | 按钮类型 | *string* | `danger` | - |
| tip | 提示文案 | *string* | - | - |
-| tip-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
+| tip-icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | - |
| disabled | 是否禁用按钮 | *boolean* | `false` | - |
| loading | 是否显示加载中的按钮 | *boolean* | `false` | - |
| currency | 货币符号 | *string* | `¥` | - |
diff --git a/src/tabbar/README.zh-CN.md b/src/tabbar/README.zh-CN.md
index e60eb8a20..7af90f64c 100644
--- a/src/tabbar/README.zh-CN.md
+++ b/src/tabbar/README.zh-CN.md
@@ -167,11 +167,11 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| name | 标签名称,作为匹配的标识符 | *string \| number* | 当前标签的索引值 | - |
-| icon | 图标名称或图片链接,可选值见 Icon 组件| *string* | - | - |
+| icon | 图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon)| *string* | - | - |
| dot | 是否显示小红点 | *boolean* | - | - |
| info | 图标右上角提示信息 | *string \| number* | - | - |
| url | 跳转链接 | *string* | - | - |
-| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
+| to | 路由跳转对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### TabbarItem Slots
diff --git a/src/toast/README.zh-CN.md b/src/toast/README.zh-CN.md
index 70adc3495..003b5b158 100644
--- a/src/toast/README.zh-CN.md
+++ b/src/toast/README.zh-CN.md
@@ -117,7 +117,7 @@ toast2.clear();
| type | 提示类型,可选值为 `loading` `success`
`fail` `html` | *string* | `text` | - |
| position | 位置,可选值为 `top` `bottom` | *string* | `middle` | - |
| message | 文本内容,支持通过`\n`换行 | *string* | `''` | - | - |
-| icon | 自定义图标,支持传入图标名称或图片链接,可选值见 Icon 组件 | *string* | - | 2.0.1 |
+| icon | 自定义图标,支持传入图标名称或图片链接,可选值见 [Icon 组件](/#/zh-CN/icon) | *string* | - | 2.0.1 |
| iconPrefix | 图标类名前缀 | *string* | `van-icon` | 2.0.9 |
| mask | 是否显示背景遮罩层 | *boolean* | `false` | - |
| forbidClick | 是否禁止背景点击 | *boolean* | `false` | - |