Skip to content

Commit

Permalink
docs(vue): add sloped slot usage description (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayy-li authored Sep 5, 2021
1 parent 9427f38 commit 5b915d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vue/docs/questions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ sidebar: auto
:::

<dumi-previewer demoPath="questions/named-slot" />

## 如何使用作用域插槽?

`x-content` 使用函数式组件时, 渲染函数增加第二个参数,通过其 `props` 成员访问作用域插槽传入属性。

<dumi-previewer demoPath="questions/scoped-slot" />

0 comments on commit 5b915d5

Please sign in to comment.