2020-07-14 15:56:59 +00:00
|
|
|
<template>
|
|
|
|
<span>
|
|
|
|
<svg-icon :icon-class="icon"/>
|
|
|
|
<span slot="title">{{ title }}</span>
|
|
|
|
<el-badge :value="count" type="primary" class="count-badge" />
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
2018-08-24 02:06:09 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
2020-07-14 15:56:59 +00:00
|
|
|
name: 'Item',
|
2018-08-24 02:06:09 +00:00
|
|
|
props: {
|
2020-07-13 23:51:51 +00:00
|
|
|
count: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
2018-08-24 02:06:09 +00:00
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2020-07-14 15:56:59 +00:00
|
|
|
|
|
|
|
<style rel='stylesheet/scss' lang='scss' scoped>
|
|
|
|
.count-badge {
|
|
|
|
margin-left: 5px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
|
|
|
</style>
|