<template>
  <section class="ose-card-table-actions">
    <el-button size="default" @click="$emit('preview')">預覽</el-button>
    <el-button size="default" @click="$emit('edit')">編輯</el-button>
    <el-button size="default" @click="$emit('copy')">複製</el-button>
    <el-button size="default" @click="$emit('delete')">刪除</el-button>
  </section>
</template>

<script setup>
defineEmits(["preview", "edit", "copy", "delete"]);
</script>

<style scoped>
.ose-card-table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
</style>
