generated from maochaoying/dreamworks-frontend-template
3 changed files with 134 additions and 3 deletions
@ -0,0 +1,37 @@ |
|||
<template> |
|||
<div class="info_container"> |
|||
<img :src="isYes ? Yes : No" class="icon" alt="" /> |
|||
<p class="text">{{ info }}</p> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import Yes from '@/static/img/zhongxin/dui.png' |
|||
import No from '@/static/img/zhongxin/cuo.png' |
|||
const props = defineProps({ |
|||
isYes: { |
|||
type: Boolean, |
|||
}, |
|||
info: { |
|||
type: String, |
|||
}, |
|||
}) |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.info_container { |
|||
display: flex; |
|||
align-items: center; |
|||
margin-top: 50px; |
|||
.icon { |
|||
width: 30px; |
|||
height: 30px; |
|||
margin-right: 16px; |
|||
} |
|||
.text { |
|||
font-size: 18px; |
|||
font-weight: 300; |
|||
color: #686868; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue