title组件修复

This commit is contained in:
hucongqian 2022-06-30 13:47:21 +08:00
parent 05736161fb
commit ea6d5376da
1 changed files with 7 additions and 6 deletions

View File

@ -1,16 +1,16 @@
<template> <template>
<div class="content-title"> <div class="content-title">
<div> <div>{{ title }}</div>
{{ title }} <slot></slot>
</div>
</div> </div>
</template> </template>
<script> <script>
import contentTitle from "./content-title";
export default { export default {
name: "contentTitle", name: "contentTitle",
props: { props: {
title: String, title: String
}, },
}; };
</script> </script>
@ -20,8 +20,9 @@ export default {
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
font-size: 18px; font-size: 18px;
font-weight: bold; display: flex;
align-items: center;
justify-content: space-between;;
// color: #fff; // color: #fff;
} }
</style> </style>