primevue-mirror/components/datatable/TableLoadingBody.vue

26 lines
613 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">
2022-09-14 11:26:01 +00:00
<td v-for="(col, i) of columns" :key="col.props.columnKey || col.props.field || i">
<component v-if="col.children && col.children.loading" :is="col.children.loading" :column="col" :index="i" />
2022-09-06 12:03:37 +00:00
</td>
</tr>
</tbody>
</template>
<script>
export default {
name: 'TableLoadingBody',
props: {
columns: {
type: null,
default: null
},
rows: {
type: null,
default: null
}
}
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
</script>