From cd293490ca62a2e753e313994171915fe6813827 Mon Sep 17 00:00:00 2001 From: anne-lxm <54163582+anne-lxm@users.noreply.github.com> Date: Wed, 13 Jan 2021 17:46:43 +0800 Subject: [PATCH] update link --- docs/vue-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/vue-components.md b/docs/vue-components.md index d6bbf22f7..3e93362f7 100644 --- a/docs/vue-components.md +++ b/docs/vue-components.md @@ -794,7 +794,7 @@ Vue 实现了一套内容分发的 API,将 `slot` 元素作为承载分发内 ``` 这意味着 `v-slot` 的值实际上可以是任何能够作为函数定义中的参数的 `JavaScript` 表达式。 -所以在支持的环境下 ( [单文件组件](https://cn.vuejs.org/v2/guide/single-file-components.html) 或 [现代浏览器](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%85%BC%E5%AE%B9)),你也可以使用 [ES2015 解构](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#%E8%A7%A3%E6%9E%84%E5%AF%B9%E8%B1%A1) 来传入具体的插槽 `prop`,如下: +所以在支持的环境下 ( [单文件组件](https://cn.vuejs.org/v2/guide/single-file-components.html) 或 [现代浏览器](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)),你也可以使用 [ES2015 解构](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) 来传入具体的插槽 `prop`,如下: ```html -- GitLab