123
This commit is contained in:
41
components/part.vue
Normal file
41
components/part.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="part">
|
||||
<p>{{part_title}}</p>
|
||||
<p>{{part_content}}</p>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
part_title: {},
|
||||
part_content: {}
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style >
|
||||
.part {
|
||||
height: 12vh;
|
||||
background-color: white;
|
||||
border-radius: 15px;
|
||||
padding: 10px;
|
||||
background-color: #007AFF;
|
||||
}
|
||||
|
||||
/* .part p:first-child{
|
||||
font-size: 1.2rem;
|
||||
background-color: green;
|
||||
} */
|
||||
/* .part p:nth-child(2){
|
||||
background-color: green;
|
||||
} */
|
||||
</style>
|
||||
Reference in New Issue
Block a user