index.vue 867 Bytes
<template>
    <div>
        <el-alert class="fedexAlert" type="info" left v-if="tipList.length > 0" @close="close" >
            <div slot="title" class="fedexAlert-list">
                <svg-icon class="el-icon-user-solid" :icon-class="iconClass" />
                <div class="alertText">
                    <div v-for="(item, index) in tipList" :key="index">{{ item }}</div>
                </div>
                <!-- <el-button type="text">返回编辑</el-button> -->
            </div>
        </el-alert>
    </div>
</template>

<script>
export default {
    props: {
        tipList: {
            type: Array,
            default: []
        },
        iconClass: {
            type: String,
            default: 'fedexWarning'
        }
    },
    methods: {
        close() {
            this.$emit('close')
        }
    }
}
</script>

<style></style>