first commit
This commit is contained in:
15
src/components/A.vue
Normal file
15
src/components/A.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<p class="title">这是标题</p>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.title{
|
||||
font-size: 108px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
23
src/components/Msg.vue
Normal file
23
src/components/Msg.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div>
|
||||
<button class="name">按钮1</button>
|
||||
<button>按钮2</button>
|
||||
<Title class="a"></Title>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.name{
|
||||
color: red;
|
||||
}
|
||||
.a >>> .title{
|
||||
font-size: 10px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import Title from "./A.vue"
|
||||
export default {
|
||||
components:{
|
||||
Title
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user