mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-23 09:46:47 +08:00
feat:新建项目
This commit is contained in:
30
src/components/TitleHead.vue
Normal file
30
src/components/TitleHead.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<div class="titleHead">
|
||||
<div class="text">{{ text }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "TitleHead",
|
||||
props: {
|
||||
text: String,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.titleHead {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background-image: url("../assets/image/titleBg.png");
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
.text {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
line-height: 12px;
|
||||
padding-top: 33px;
|
||||
margin-left: 11px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user