[Doc] use relative path for links (#4093)

This commit is contained in:
neverland
2019-08-12 10:18:37 +08:00
committed by GitHub
parent 26aac6037b
commit f4125bceb8
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ Vue.use(Button);
### Route
```html
<van-button type="primary" url="//youzan.github.io/vant/mobile.html">URL</van-button>
<van-button type="primary" url="/vant/mobile.html">URL</van-button>
<van-button type="primary" to="index">Vue Router</van-button>
```
+1 -1
View File
@@ -95,7 +95,7 @@ Vue.use(Button);
可以通过`url`属性进行 URL 跳转,或通过`to`属性进行路由跳转
```html
<van-button type="primary" url="//youzan.github.io/vant/mobile.html">URL 跳转</van-button>
<van-button type="primary" url="/vant/mobile.html">URL 跳转</van-button>
<van-button type="primary" to="index">路由跳转</van-button>
```
+1 -1
View File
@@ -130,7 +130,7 @@
<van-button
:text="$t('urlRoute')"
type="primary"
url="//youzan.github.io/vant/mobile.html"
url="/vant/mobile.html"
/>
<van-button
:text="$t('vueRoute')"
+1 -1
View File
@@ -59,7 +59,7 @@ Vue.use(Cell).use(CellGroup);
```html
<van-cell-group>
<van-cell title="URL" is-link url="//youzan.github.io/vant/mobile.html" />
<van-cell title="URL" is-link url="/vant/mobile.html" />
<van-cell title="Vue Router" is-link to="index" />
</van-cell-group>
```
+1 -1
View File
@@ -62,7 +62,7 @@ Vue.use(Cell).use(CellGroup);
可以通过`url`属性进行 URL 跳转,或通过`to`属性进行路由跳转
```html
<van-cell title="URL 跳转" is-link url="//youzan.github.io/vant/mobile.html" />
<van-cell title="URL 跳转" is-link url="/vant/mobile.html" />
<van-cell title="路由跳转" is-link to="index" />
```
+1 -1
View File
@@ -62,7 +62,7 @@
<van-cell
:title="$t('urlRoute')"
is-link
url="//youzan.github.io/vant/mobile.html"
url="/vant/mobile.html"
/>
<van-cell
:title="$t('vueRoute')"