<template>
  <div class="dialog-header">
    <div v-for="(item,index) in titleList" :key="index" class="items">
        <div class="title">{{ item.title }}</div>
        <div class="val">{{ item.val }}</div>

    </div>
  </div>
</template>
<script>
export default {
    props: {
        titleList: {
            type: Array,
            default: () => []
        }
    },
    data() {
        return {
        }
    },
    methods: {
        closeDialog() {
            this.$emit('closeDialog')
        }
    }
}
</script>

<style scoped>
.dialog-header {
    height: 100px;
    padding: 10px 0;
    background-color: #F5F6F8;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.items{
    margin: 0 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.title{
    color: #333333;
    font-size: 16px;
    line-height: 40px;
    font-weight: bold;
}
.val{
    color: #666666;
    font-size: 14px;
    line-height: 40px
}
</style>