mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-09 16:04:45 +00:00
22 lines
445 B
Vue
22 lines
445 B
Vue
|
|
<template>
|
||
|
|
<div class="md-card-header-text">
|
||
|
|
<slot></slot>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
mounted() {
|
||
|
|
this.parentClasses = this.$parent.$el.classList;
|
||
|
|
|
||
|
|
if (this.parentClasses.contains('md-card-header')) {
|
||
|
|
this.insideParent = true;
|
||
|
|
this.parentClasses.add('md-card-header-flex');
|
||
|
|
}
|
||
|
|
},
|
||
|
|
destroyed() {
|
||
|
|
this.parentClasses.remove('md-card-header-flex');
|
||
|
|
}
|
||
|
|
};
|
||
|
|
</script>
|