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



// 拿到传入的数据
const props = defineProps<{
    title?: string;
    type?: number;// 1 为默认长度 2为两倍长度
}>();

</script>


<template>
    <div :class="type === 2 ? 'newBigTitleBox newBigTitleBoxLong' : 'newBigTitleBox'">
        {{ props?.title || "" }}
        <slot name="extra"></slot>
    </div>
</template>