<template>
    <div class="components-name">
        <div class="view-name">{{ props.title }}</div>
        <div class="end-view">
            <slot name="endSlot"></slot>
        </div>
    </div>
</template>

<script setup lang="ts" name="componentsName">
const props = defineProps({
    title: {
        type: String,
        default: '数据详情'
    }
})
</script>

<style scoped lang="scss">
.components-name {
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #1278d6;
    .view-name {
        flex: 1;
    }
    &::before {
        content: '';
        display: inline-block;
        width: 3px;
        height: 50%;
        margin-right: 10px;
        background: #1278d6;
    }
}
</style>
