<!--
 * @Author: micky 1254597151@qq.com
 * @Date: 2023-09-21 17:24:04
 * @LastEditors: micky 1254597151@qq.com
 * @LastEditTime: 2023-12-22 15:34:59
 * @FilePath: \housekeeping-admin\src\views\decorate\component\widgets\home-title\content.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="relative">
        <div class="w-[100%]">
            <el-image :src="getImageUrl(item.image)" class="w-[100%] h-[150px] align-top" v-for="(item, ind) in content.data" />
        </div>
        <div class="title text-[#1b4694] font-bold text-5xl">{{ content.title }}</div>
    </div>
</template>
<script lang="ts" setup>
import useAppStore from '@/stores/modules/app'
import type { PropType } from 'vue'
import type options from './options'
type OptionsType = ReturnType<typeof options>
const props = defineProps({
    content: {
        type: Object as PropType<OptionsType['content']>,
        default: () => ({})
    },
    styles: {
        type: Object as PropType<OptionsType['styles']>,
        default: () => ({})
    }
})
const { getImageUrl } = useAppStore()
</script>
<style lang="scss" scoped>
.title {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}
</style>
