primevue-mirror/components/datatable/TableLoadingBody.vue

26 lines
607 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
<tbody class="p-datatable-tbody">
<tr v-for="n in rows" :key="n">
<td v-for="(col,i) of columns" :key="col.props.columnKey||col.props.field||i">
<component :is="col.children.loading" :column="col" :index="i" v-if="col.children && col.children.loading" />
</td>
</tr>
</tbody>
</template>
<script>
export default {
name: 'TableLoadingBody',
props: {
columns: {
type: null,
default: null
},
rows: {
type: null,
default: null
}
}
}
</script>