TreeTable column header cell content added
parent
4219709a1c
commit
5e9fe6c22e
|
@ -13,13 +13,15 @@
|
||||||
:data-p-highlight="isColumnSorted()"
|
:data-p-highlight="isColumnSorted()"
|
||||||
:data-p-frozen-column="columnProp('frozen')"
|
:data-p-frozen-column="columnProp('frozen')"
|
||||||
>
|
>
|
||||||
<span v-if="resizableColumns && !columnProp('frozen')" :class="cx('columnResizer')" @mousedown="onResizeStart" v-bind="getColumnPT('columnResizer')"></span>
|
<div :class="cx('columnHeaderContent')" v-bind="getColumnPT('columnHeaderContent')">
|
||||||
<component v-if="column.children && column.children.header" :is="column.children.header" :column="column" />
|
<span v-if="resizableColumns && !columnProp('frozen')" :class="cx('columnResizer')" @mousedown="onResizeStart" v-bind="getColumnPT('columnResizer')"></span>
|
||||||
<span v-if="columnProp('header')" :class="cx('columnTitle')" v-bind="getColumnPT('columnTitle')">{{ columnProp('header') }}</span>
|
<component v-if="column.children && column.children.header" :is="column.children.header" :column="column" />
|
||||||
<span v-if="columnProp('sortable')" v-bind="getColumnPT('sort')">
|
<span v-if="columnProp('header')" :class="cx('columnTitle')" v-bind="getColumnPT('columnTitle')">{{ columnProp('header') }}</span>
|
||||||
<component :is="(column.children && column.children.sorticon) || sortableColumnIcon" :sorted="sortState.sorted" :sortOrder="sortState.sortOrder" :class="cx('sortIcon')" v-bind="getColumnPT('sortIcon')" />
|
<span v-if="columnProp('sortable')" v-bind="getColumnPT('sort')">
|
||||||
</span>
|
<component :is="(column.children && column.children.sorticon) || sortableColumnIcon" :sorted="sortState.sorted" :sortOrder="sortState.sortOrder" :class="cx('sortIcon')" v-bind="getColumnPT('sortIcon')" />
|
||||||
<span v-if="isMultiSorted()" :class="cx('sortBadge')" v-bind="getColumnPT('sortBadge')">{{ getMultiSortMetaIndex() + 1 }}</span>
|
</span>
|
||||||
|
<span v-if="isMultiSorted()" :class="cx('sortBadge')" v-bind="getColumnPT('sortBadge')">{{ getMultiSortMetaIndex() + 1 }}</span>
|
||||||
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -462,6 +462,7 @@ const classes = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columnResizer: 'p-treetable-column-resizer',
|
columnResizer: 'p-treetable-column-resizer',
|
||||||
|
columnHeaderContent: 'p-treetable-column-header-content',
|
||||||
columnTitle: 'p-treetable-column-title',
|
columnTitle: 'p-treetable-column-title',
|
||||||
sortIcon: 'p-treetable-sort-icon',
|
sortIcon: 'p-treetable-sort-icon',
|
||||||
sortBadge: 'p-treetable-sort-badge',
|
sortBadge: 'p-treetable-sort-badge',
|
||||||
|
|
Loading…
Reference in New Issue