mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: fix broken demo url (#9752)
This commit is contained in:
parent
1c630fb87b
commit
b6603a4804
@ -92,7 +92,7 @@ app.use(Button);
|
|||||||
### Route
|
### Route
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-button type="primary" url="/vant/mobile.html">URL</van-button>
|
<van-button type="primary" url="https://github.com">URL</van-button>
|
||||||
<van-button type="primary" to="index">Vue Router</van-button>
|
<van-button type="primary" to="index">Vue Router</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ app.use(Button);
|
|||||||
可以通过 `url` 属性进行 URL 跳转,或通过 `to` 属性进行路由跳转。
|
可以通过 `url` 属性进行 URL 跳转,或通过 `to` 属性进行路由跳转。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-button type="primary" url="/vant/mobile.html">URL 跳转</van-button>
|
<van-button type="primary" url="https://github.com">URL 跳转</van-button>
|
||||||
<van-button type="primary" to="index">路由跳转</van-button>
|
<van-button type="primary" to="index">路由跳转</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -124,7 +124,11 @@ const t = useTranslate({
|
|||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block :title="t('router')">
|
<demo-block :title="t('router')">
|
||||||
<van-button :text="t('urlRoute')" type="primary" url="/vant/mobile.html" />
|
<van-button
|
||||||
|
:text="t('urlRoute')"
|
||||||
|
type="primary"
|
||||||
|
url="https://github.com/youzan/vant"
|
||||||
|
/>
|
||||||
<van-button :text="t('vueRoute')" type="primary" to="index" />
|
<van-button :text="t('vueRoute')" type="primary" to="index" />
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ app.use(CellGroup);
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell title="URL" is-link url="/vant/mobile.html" />
|
<van-cell title="URL" is-link url="https://github.com" />
|
||||||
<van-cell title="Vue Router" is-link to="index" />
|
<van-cell title="Vue Router" is-link to="index" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
@ -81,7 +81,7 @@ app.use(CellGroup);
|
|||||||
可以通过 `url` 属性进行 URL 跳转,或通过 `to` 属性进行路由跳转。
|
可以通过 `url` 属性进行 URL 跳转,或通过 `to` 属性进行路由跳转。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-cell title="URL 跳转" is-link url="/vant/mobile.html" />
|
<van-cell title="URL 跳转" is-link url="https://github.com" />
|
||||||
<van-cell title="路由跳转" is-link to="index" />
|
<van-cell title="路由跳转" is-link to="index" />
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -84,7 +84,11 @@ const t = useTranslate({
|
|||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block :title="t('router')">
|
<demo-block :title="t('router')">
|
||||||
<van-cell :title="t('urlRoute')" is-link url="/vant/mobile.html" />
|
<van-cell
|
||||||
|
:title="t('urlRoute')"
|
||||||
|
is-link
|
||||||
|
url="https://github.com/youzan/vant"
|
||||||
|
/>
|
||||||
<van-cell :title="t('vueRoute')" is-link to="index" />
|
<van-cell :title="t('vueRoute')" is-link to="index" />
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ app.use(GridItem);
|
|||||||
```html
|
```html
|
||||||
<van-grid clickable :column-num="2">
|
<van-grid clickable :column-num="2">
|
||||||
<van-grid-item icon="home-o" text="Vue Router" to="/" />
|
<van-grid-item icon="home-o" text="Vue Router" to="/" />
|
||||||
<van-grid-item icon="search" text="URL" url="/vant/mobile.html" />
|
<van-grid-item icon="search" text="URL" url="https://github.com" />
|
||||||
</van-grid>
|
</van-grid>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ app.use(GridItem);
|
|||||||
```html
|
```html
|
||||||
<van-grid clickable :column-num="2">
|
<van-grid clickable :column-num="2">
|
||||||
<van-grid-item icon="home-o" text="路由跳转" to="/" />
|
<van-grid-item icon="home-o" text="路由跳转" to="/" />
|
||||||
<van-grid-item icon="search" text="URL 跳转" url="/vant/mobile.html" />
|
<van-grid-item icon="search" text="URL 跳转" url="https://github.com" />
|
||||||
</van-grid>
|
</van-grid>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ const t = useTranslate({
|
|||||||
<van-grid-item
|
<van-grid-item
|
||||||
icon="search"
|
icon="search"
|
||||||
:text="t('urlRoute')"
|
:text="t('urlRoute')"
|
||||||
url="/vant/mobile.html"
|
url="https://github.com/youzan/vant"
|
||||||
/>
|
/>
|
||||||
</van-grid>
|
</van-grid>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user