2018-09-26 22:27:42 +08:00
|
|
|
<template>
|
2018-09-29 16:37:40 +08:00
|
|
|
<div v-if="message">{{ message }}</div>
|
2018-09-26 22:27:42 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-09-27 13:41:08 +08:00
|
|
|
props: {
|
|
|
|
message: String,
|
|
|
|
},
|
2018-09-26 22:27:42 +08:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
div {
|
2018-09-29 16:37:40 +08:00
|
|
|
text-align: center;
|
|
|
|
background: #fdd;
|
|
|
|
color: #800;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
margin: 1rem;
|
|
|
|
border-radius: 0.5rem;
|
2018-09-26 22:27:42 +08:00
|
|
|
}
|
|
|
|
</style>
|