Refactor #3965 - For DataTable & Column & ColumnGroup & Row

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-02 09:52:13 +03:00
parent ea9062ae3a
commit 2669fd5925
16 changed files with 1127 additions and 920 deletions

View file

@ -1,5 +1,5 @@
<template>
<tfoot v-if="hasFooter" class="p-datatable-tfoot" role="rowgroup" v-bind="{ ...ptm('tfoot'), ...getColumnGroupPTOptions('root') }">
<tfoot v-if="hasFooter" :class="cx('tfoot')" role="rowgroup" v-bind="columnGroup ? { ...ptm('tfoot'), ...getColumnGroupPTOptions('root') } : ptm('tfoot')" data-pc-section="tfoot">
<tr v-if="!columnGroup" role="row" v-bind="ptm('footerRow')">
<template v-for="(col, i) of columns" :key="columnProp(col, 'columnKey') || columnProp(col, 'field') || i">
<DTFooterCell v-if="!columnProp(col, 'hidden')" :column="col" :pt="pt" />