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

24 lines
576 B
Vue
Raw Normal View History

2019-11-19 12:23:01 +00:00
<template>
<tbody class="p-datatable-tbody">
<tr v-for="n in rows" :key="n">
2020-09-23 17:55:00 +00:00
<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" />
2019-11-19 12:23:01 +00:00
</td>
</tr>
</tbody>
</template>
<script>
export default {
props: {
columns: {
type: null,
default: null
},
rows: {
type: null,
default: null
}
}
}
</script>