<script setup lang="ts">
import './smallTitle.less'

// 拿到传入的数据
const props = defineProps<{
    pageType?: any;
    title?: string
}>();

</script>

<template>
    <div :class="pageType === 'center' ? 'smallTitleBoxCenter' : 'smallTitleBox'">
        <div class="title">{{ props.title }}</div>
        <slot name="extra"></slot>
    </div>
</template>
