| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <div class="user-item">
- <img width="72" :src="src" class="user1-img" />
- <div class="user1-text">{{ text }}</div>
- </div>
- </template>
- <script setup>
- import defaultUserSrc from '~/assets/svg/home/user1.svg'
- const props = defineProps({
- text: {
- type: String,
- default: "正常访客",
- required: true,
- },
- src: {
- type: String,
- default: defaultUserSrc,
- required: true,
- }
- });
- </script>
- <style lang="scss" scoped>
- .user-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .user1-text {
- display: flex;
- width: 162px;
- height: 54px;
- justify-content: center;
- align-items: center;
- align-self: stretch;
- border-radius: 8px;
- border: 1px solid #A39DFF;
- background: #3F337D;
- color: #FFF;
- font-size: 20px;
- font-weight: 400;
- line-height: 20px;
- }
- }
- </style>
|