update:2024-07-06 9:50:52 AutoCommit
This commit is contained in:
1 parent
0a56f8b5d5
commit
222b0ac434
7 files changed
+201
-6
No files matched your search
+2
-2
@@ -3,7 +3,6 @@
|
||||
---
|
||||
## 具名作用域插槽
|
||||
* 具名作用域插槽的工作方式也是类似的,插槽 props 可以作为 v-slot 指令的值被访问到
|
||||
|
||||
```
|
||||
<MyComponent>
|
||||
<template #header="headerProps">
|
||||
@@ -24,4 +23,5 @@
|
||||
<slot name="header" message="hello"></slot>
|
||||
```
|
||||
* 是由插件传回父组件,如上面的message会被headerProps收到,可以根据此进行进一步的处理。
|
||||
---
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user