2016-10-27 05:52:58 +00:00
|
|
|
<template>
|
|
|
|
|
<td class="md-table-cell" :class="classes">
|
|
|
|
|
<div class="md-table-cell-container">
|
|
|
|
|
<slot></slot>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
mdNumeric: Boolean
|
|
|
|
|
},
|
2016-11-23 06:21:40 +00:00
|
|
|
data: () => ({
|
|
|
|
|
hasAction: false
|
|
|
|
|
}),
|
2016-10-27 05:52:58 +00:00
|
|
|
computed: {
|
|
|
|
|
classes() {
|
|
|
|
|
return {
|
2016-11-23 06:21:40 +00:00
|
|
|
'md-numeric': this.mdNumeric,
|
|
|
|
|
'md-has-action': this.hasAction
|
2016-10-27 05:52:58 +00:00
|
|
|
};
|
|
|
|
|
}
|
2016-11-23 06:21:40 +00:00
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
if (this.$children.length > 0) {
|
|
|
|
|
this.hasAction = true;
|
|
|
|
|
}
|
2016-10-27 05:52:58 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|