feat: vSlots

This commit is contained in:
Amour1688
2020-07-11 23:14:18 +08:00
parent e8861330ad
commit 17a0e56342
6 changed files with 91 additions and 16 deletions

View File

@ -157,7 +157,17 @@ const App = {
### Slot
Why Not props ?
```jsx
const App = {
setup() {
const slots = {
a: () => <div>A</div>,
b: () => <span>B</span>
}
return () => <A vSlots={slots} />
}
}
```
## Who is using