DialogHeading: smarter about close button - simplify dialogs

This commit is contained in:
2020-01-16 13:54:40 -08:00
parent 8b39b37770
commit dda53e7b56
9 changed files with 19 additions and 43 deletions

View File

@ -3,7 +3,11 @@
<v-card-title class="subtitle-1 ma-0 pa-0 pl-1">
<span class="px-2 py-0">{{ title }}</span>
<v-spacer/>
<slot/>
<slot>
<v-btn icon class="ma-0 pa-0" @click="hide()">
<v-icon color="white">mdi-close</v-icon>
</v-btn>
</slot>
</v-card-title>
</v-card>
</template>
@ -14,7 +18,12 @@ export default {
title: {
type: String,
default: 'Title',
}
},
},
methods: {
hide: function(id) {
this.$emit('hide')
},
}
}
</script>