Panel组件
说明
- Panel组件对应了所有带边框的块状元素,通过slot插槽,可以插入
- Panel组件已经默认全局引入,使用前无需再次声明
<Panel>
这是Panel常见的用法,body内容直接写在标签里面
<template #header>#header</template>
<template #headerRight>#headerRight</template>
</Panel>
Props
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| blank | body区域使用padding | boolean | true |
Slots
| 名称 | 说明 |
|---|---|
| default | body内容插槽。传入blank:false时,body插槽padding将设为0 |
| header | 头部内容插槽,默认居左。header类插槽全部不启用时,header将被隐藏 |
| headerCenter | 头部内容居中的插槽 |
| headerRight | 头部内容居右的插槽 |
| footer | 底部插槽,居左对齐。不传入则不会显示footer |