<template>
<a-table :columns="columns" :data-source="dataSource">
<template #bodyCell="{ column, text }">
<template v-if="column.dataIndex === 'name'">
<a>{
{
text }}</a>
</template>
<template v-if="column.dataIndex === 'time'">
<a>{
{
getCountdownStr(text) }}</a>
</template>
</template>
</a-table>
</template>
<script>
import {
defineComponent ,ref} from 'vue';
const dataSource =
vue3表格倒计时
最新推荐文章于 2024-05-03 11:47:20 发布