forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQTr.js
More file actions
30 lines (23 loc) · 600 Bytes
/
QTr.js
File metadata and controls
30 lines (23 loc) · 600 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import Vue from 'vue'
import ListenersMixin from '../../mixins/listeners.js'
import { slot } from '../../utils/slot.js'
export default Vue.extend({
name: 'QTr',
mixins: [ ListenersMixin ],
props: {
props: Object,
noHover: Boolean
},
computed: {
classes () {
return 'q-tr' + (this.props === void 0 || this.props.header === true ? '' : ' ' + this.props.__trClass) +
(this.noHover === true ? ' q-tr--no-hover' : '')
}
},
render (h) {
return h('tr', {
on: { ...this.qListeners },
class: this.classes
}, slot(this, 'default'))
}
})