面板 Panel

普通

  1. <za-panel>
  2. <za-panel-body>
  3. <za-cell>body</za-cell>
  4. </za-panel-body>
  5. </za-panel>

标题

  1. <za-panel>
  2. <za-panel-header title="标题">
  3. <a slot="more" @click="handleClick">更多</a>
  4. </za-panel-header>
  5. <za-panel-body>
  6. <za-cell>body</za-cell>
  7. </za-panel-body>
  8. </za-panel>

带底部

<za-panel>
  <za-panel-body>
    <za-cell>body</za-cell>
  </za-panel-body>
  <za-panel-footer title="左侧文案" more="右侧文案">
</za-panel-footer></za-panel>

Vue Script

<script name="vue">
export default {
  data() {
    return {

    }
  },
  methods: {
    handleClick() {
      alert('click me')
    }
  },
};
</script>

API

panel Attributes

属性类型默认值可选值/参数说明
titleString标题,也可以用 slot
moreString更多,也可以用 slot

Panel 面板 - 图1