debian-mirror-gitlab/app/assets/javascripts/static_site_editor/components/edit_header.vue
2020-04-22 19:07:51 +05:30

24 lines
356 B
Vue

<script>
import { DEFAULT_HEADING } from '../constants';
export default {
props: {
title: {
type: String,
required: false,
default: '',
},
},
computed: {
heading() {
return this.title || DEFAULT_HEADING;
},
},
};
</script>
<template>
<div>
<h3 ref="sseHeading">{{ heading }}</h3>
</div>
</template>