Skip to content

Commit bea4f84

Browse files
committed
fix: Data Table: Make Table Headers Within <q-data-table> Show Title By Default quasarframework#559
1 parent 9b01682 commit bea4f84

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

dev/components/components/data-table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default {
237237
width: '120px'
238238
},
239239
{
240-
label: 'Log Number',
240+
label: 'Log Number <i>Wow</i>',
241241
field: 'log_number',
242242
sort: true,
243243
width: '100px'

src/components/data-table/TableContent.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:sorting="sorting"
2020
></sort-icon>
2121
<span v-html="col.label"></span>
22+
<q-tooltip v-html="col.label"></q-tooltip>
2223
</th>
2324
<th v-if="head && scroll.horiz"></th>
2425
</tr>
@@ -31,11 +32,13 @@
3132

3233
<script>
3334
import SortIcon from './plugins/sort/SortIcon.vue'
35+
import { QTooltip } from '../tooltip'
3436
3537
export default {
3638
name: 'q-table-content',
3739
components: {
38-
SortIcon
40+
SortIcon,
41+
QTooltip
3942
},
4043
props: {
4144
cols: Array,

src/components/data-table/plugins/sticky-cols/TableSticky.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:sorting="sorting"
2020
></sort-icon>
2121
<span v-html="col.label"></span>
22+
<q-tooltip v-html="col.label"></q-tooltip>
2223
</template>
2324
</th>
2425
</tr>
@@ -32,11 +33,13 @@
3233

3334
<script>
3435
import SortIcon from '../sort/SortIcon.vue'
36+
import { QTooltip } from '../../../tooltip'
3537
3638
export default {
3739
name: 'q-table-sticky',
3840
components: {
39-
SortIcon
41+
SortIcon,
42+
QTooltip
4043
},
4144
props: {
4245
stickyCols: Number,

0 commit comments

Comments
 (0)