<template>
    <div class="mempty">
        <div :class="[icon ? icon : 'icon_nodata', 'icon']"></div>
        <div class="msg">{{ msg ? msg : '暂无内容' }}</div>
    </div>
</template>

<script>
export default {
    name: 'mempty',
    props: {
        icon: String, // icon名称
        msg: String
    }
}
</script>

<style lang="less" scoped>
@import url('../assets/commonLess/variable');

.icon {
    width: 2rem;
    height: 2rem;
    margin: .5rem auto .05rem;
}
.icon_nodata {
    background: url('../assets/images/icon_nodata.png') no-repeat center;
    background-size: contain;
}
.msg {
    color: @sFontColor;
    font-size: .16rem;
    text-align: center;
    line-height: .22rem;
}
</style>