primevue-mirror/components/lib/datatable/TableLoadingBody.vue

26 lines
624 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
<tbody class="p-datatable-tbody">
2022-12-08 11:04:25 +00:00
<tr v-for="n in rows" :key="n" role="row">
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>