Skip to content

Commit f130496

Browse files
committed
feat: CDataTable: add thead-top slot
1 parent df938ef commit f130496

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/table/CDataTable.vue

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<div :class="`position-relative ${responsive ? 'table-responsive' : '' }`">
4848
<table :class="tableClasses">
4949
<thead>
50+
<slot name="thead-top"/>
5051
<tr v-if="header">
5152
<template v-for="(name, index) in columnNames">
5253
<th

src/components/table/tests/__snapshots__/CDataTable.spec.js.snap

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports[`CDataTable renders correctly 1`] = `
1111
class="table"
1212
>
1313
<thead>
14+
1415
<tr />
1516
1617
<!---->
@@ -146,6 +147,7 @@ exports[`CDataTable renders correctly 2`] = `
146147
class="table additional-table-class table-dark table-striped table-hover table-bordered border"
147148
>
148149
<thead>
150+
149151
<tr>
150152
<th
151153
class="user-custom-class position-relative pr-4"

0 commit comments

Comments
 (0)