<template>
  <div>
    <el-table :data="data" style="width: 100%" v-bind="$attrs">
      <el-table-column prop="prop" label="完成时间">
        <template #default="{ row }">
          {{ previewTime(row.frequencyType, row.duration)?.label }}
        </template>
      </el-table-column>
      <el-table-column prop="prop" label="完成时间">
        <template #default="{ row }">
          {{ previewTime(row.frequencyType, row.duration)?.label }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script lang="ts" setup>
import { previewTime } from "@/utils/index";
const props = defineProps({
  data: {
    type: Array
  }
});
</script>
