File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ function (slotProps) {
321
321
}
322
322
```
323
323
324
- 这意味着 ` v-slot ` 的值实际上可以是任何能够作为函数定义中的参数的 JavaScript 表达式。所以在支持的环境下 ([ 单文件组建 ] ( 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,如下:
324
+ 这意味着 ` v-slot ` 的值实际上可以是任何能够作为函数定义中的参数的 JavaScript 表达式。所以在支持的环境下 ([ 单文件组件 ] ( 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,如下:
325
325
326
326
``` html
327
327
<current-user v-slot =" { user }" >
@@ -538,7 +538,7 @@ function (slotProps) {
538
538
</slot-example >
539
539
```
540
540
541
- ` slot-scope ` 的值可以接收任何有效的可以出现在函数定义的参数位置上的 JavaScript 表达式。这意味着在支持的环境下 ([ 单文件组建 ] ( 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#解构对象 ) ,如下:
541
+ ` slot-scope ` 的值可以接收任何有效的可以出现在函数定义的参数位置上的 JavaScript 表达式。这意味着在支持的环境下 ([ 单文件组件 ] ( 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#解构对象 ) ,如下:
542
542
543
543
``` html
544
544
<slot-example >
You can’t perform that action at this time.
0 commit comments