imgTxtTitle.vue
498 字节
<template>
<view class="imgTxtTitle">
<image :src="imgUrl" :style="{width:imgSize+'rpx',height:imgSize+'rpx'}" mode=""></image>
{{txtInfo}}
</view>
</template>
<script>
export default{
props:{
imgUrl:{
type:String
},
txtInfo:{
type:String
},
imgSize:{
type:Number
}
}
}
</script>
<style lang="scss" scoped>
.imgTxtTitle{
height: 108rpx;
display: flex;
align-items: center;
image{margin-right: 16rpx;}
font-size: $uni-font-size-40;
}
</style>