File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
export default {
11
11
name: ' MdTableCell' ,
12
12
props: {
13
+ mdId: [String , Number ],
13
14
mdLabel: String ,
14
15
mdNumeric: Boolean ,
15
16
mdTooltip: String ,
44
45
methods: {
45
46
setCellData ($vm = this ) {
46
47
this .$set (this .MdTable .items , $vm .index , {
48
+ id: $vm .mdId ,
47
49
label: $vm .mdLabel ,
48
50
numeric: $vm .mdNumeric ,
49
51
tooltip: $vm .mdTooltip ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <th class =" md-table-head" :class =" headClasses" :style =" headStyles" @click =" changeSort" >
2
+ <th class =" md-table-head" :id = " id " : class =" headClasses" :style =" headStyles" @click =" changeSort" >
3
3
<div class =" md-table-head-container" v-if =" $slots.default" >
4
4
<div class =" md-table-head-label" >
5
5
<slot />
30
30
props: {
31
31
mdNumeric: Boolean ,
32
32
numeric: Boolean ,
33
+ id: [String , Number ],
33
34
label: String ,
34
35
tooltip: String ,
35
36
sortBy: String
You can’t perform that action at this time.
0 commit comments