<template>
  <a-table
    :columns="props.columns"
    :data="props.data"
    v-bind="$attrs"
    @pageChange="handlePageChange"
  />
</template>

<script setup>
/* @Author: 邓威 ilovede@163.com
 * @Date: 2024-11-19 14:26:01
 * @LastEditors: 邓威
 * @LastEditTime:
 * @Description:
 */
let props = defineProps({
  columns: {
    type: Array,
    default: () => []
  },
  data: {
    type: Array,
    default: () => []
  }
})

let emits = defineEmits(['pageChange'])

let handlePageChange = (current) => {
  emits('pageChange', current)
}
</script>
<style scoped>
::v-deep(.arco-btn) {
  border-radius: 4px;
  margin-right: 5px;
}
</style>
