Files
Situation-Awareness-Platfor…/src/components/Panel
2025-03-12 18:41:20 +08:00
..
2025-03-12 18:41:20 +08:00
2025-03-12 18:41:20 +08:00

Panel组件

说明

  1. Panel组件对应了所有带边框的块状元素通过slot插槽可以插入
  2. 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