Refactored DataTable header-footer tokens

This commit is contained in:
Cagatay Civici 2024-05-25 18:09:39 +03:00
parent bd90fbb4e2
commit ace2811b76
6 changed files with 48 additions and 27 deletions

View file

@ -1,7 +1,7 @@
<template>
<td :style="containerStyle" :class="containerClass" role="cell" :colspan="columnProp('colspan')" :rowspan="columnProp('rowspan')" v-bind="{ ...getColumnPT('root'), ...getColumnPT('footerCell') }" :data-p-frozen-column="columnProp('frozen')">
<component v-if="column.children && column.children.footer" :is="column.children.footer" :column="column" />
{{ columnProp('footer') }}
<span v-if="columnProp('footer')" :class="cx('columnFooter')" v-bind="getColumnPT('columnFooter')">{{ columnProp('footer') }}</span>
</td>
</template>