2 changed files with 165 additions and 6 deletions
@ -0,0 +1,69 @@ |
|||||
|
<template> |
||||
|
<view class="list-box-com"> |
||||
|
<view class="item"> |
||||
|
<view class="left PfScMedium"> |
||||
|
{{leftTitle}} |
||||
|
</view> |
||||
|
<view class="right"> |
||||
|
<slot>{{rightTitle}}</slot> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: "listBox", |
||||
|
props: { |
||||
|
leftTitle: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
}, |
||||
|
rightTitle: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
} |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
} |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.list-box-com{ |
||||
|
width: 100%; |
||||
|
background: #FFFFFF; |
||||
|
box-sizing: border-box; |
||||
|
.item{ |
||||
|
width: 692rpx; |
||||
|
padding: 40rpx 26rpx; |
||||
|
box-sizing: border-box; |
||||
|
margin: 0 auto; |
||||
|
display: flex; |
||||
|
background: #FFFFFF; |
||||
|
justify-content: space-between; |
||||
|
line-height: 44rpx; |
||||
|
font-size: 32rpx; |
||||
|
border-bottom: 2rpx solid rgba(151,151,151,0.15); |
||||
|
align-items: center; |
||||
|
.left{ |
||||
|
color: #000000; |
||||
|
letter-spacing: 2rpx; |
||||
|
width: 140rpx; |
||||
|
flex-shrink: 0; |
||||
|
text-align: left; |
||||
|
} |
||||
|
.right{ |
||||
|
flex-grow: 1; |
||||
|
color: #666666; |
||||
|
display: flex; |
||||
|
justify-content: flex-end; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue