docs: update Vue document URLs (#11989)

This commit is contained in:
neverland
2023-06-17 09:46:38 +08:00
committed by GitHub
parent d42adccfb0
commit 8320eb1e16
37 changed files with 52 additions and 52 deletions
@@ -37,7 +37,7 @@ export default {
};
```
> For more information, please refer to [Vue.js - Component Registration](https://v3.vuejs.org/guide/component-registration.html#component-registration)。
> For more information, please refer to [Vue.js - Component Registration](https://vuejs.org/guide/components/registration.html)。
#### \<script setup\>
@@ -43,7 +43,7 @@ export default {
};
```
> 对于组件注册更详细的介绍,请参考 [Vue 官方文档 - 组件注册](https://v3.cn.vuejs.org/guide/component-registration.html#%E7%BB%84%E4%BB%B6%E6%B3%A8%E5%86%8C)。
> 对于组件注册更详细的介绍,请参考 [Vue 官方文档 - 组件注册](https://cn.vuejs.org/guide/components/registration.html)。
#### \<script setup\>
@@ -75,7 +75,7 @@ export default {
### 组件插槽
Vant 提供了丰富的组件插槽,通过插槽可以对组件的某一部分进行个性化定制。如果你对 Vue 的插槽不太熟悉,可以阅读 Vue 官方文档中的[插槽章节](https://v3.cn.vuejs.org/guide/component-slots.html)。下面是通过插槽来定制 Checkbox 图标的示例:
Vant 提供了丰富的组件插槽,通过插槽可以对组件的某一部分进行个性化定制。如果你对 Vue 的插槽不太熟悉,可以阅读 Vue 官方文档中的[插槽章节](https://cn.vuejs.org/guide/components/slots.html)。下面是通过插槽来定制 Checkbox 图标的示例:
```html
<van-checkbox v-model="checked">
@@ -103,7 +103,7 @@ export default {
### 组件实例方法
Vant 中的许多组件提供了实例方法,调用实例方法时,我们需要通过 [ref](https://v3.cn.vuejs.org/guide/component-template-refs.html) 来注册组件引用信息,引用信息将会注册在父组件的`$refs`对象上。注册完成后,我们可以通过`this.$refs.xxx`访问到对应的组件实例,并调用上面的实例方法。
Vant 中的许多组件提供了实例方法,调用实例方法时,我们需要通过 [ref](https://cn.vuejs.org/guide/essentials/template-refs.html) 来注册组件引用信息,引用信息将会注册在父组件的`$refs`对象上。注册完成后,我们可以通过`this.$refs.xxx`访问到对应的组件实例,并调用上面的实例方法。
```html
<!-- 通过 ref 属性将组件绑定到 this.$refs.checkbox 上 -->