<template>
  <div>
    <Button
      v-if="slotProps.item.name=='保存'"
      style="height:32px"
      type="primary"
      icon="md-return-left"
    >
      {{ slotProps.item.name }}
    </Button>
    <Button
      v-else
      style="height:32px"
      type="primary"
    >
      {{ slotProps.item.name }}
    </Button>
  </div>
</template>
<script>
  export default {
    props: {
      slotProps: { // 用来接收子表的按钮数据
        type: Object
      }
    },
  };
</script>
<style lang="less">
 .detail-buttons {
     a{
        display: inline-block;
        padding: 8px 10px;
    }
 }
</style>
