首页
vue
TypeScript
JavaScript
scss
css3
html5
php
MySQL
redis
jQuery
位置:
vue 中文手册
->
vue API文档
->
vue 内置组件 API
<slot>
Props:
name
-
string
,用于具名插槽
用法:
<slot>
元素作为组件模板之中的内容分发插槽。
<slot>
元素自身将被替换。
上篇:
<keep-alive>
下篇:
<teleport>