mirror of
https://github.com/kuaifan/dootask.git
synced 2026-11-02 16:00:35 +00:00
22 lines
455 B
Vue
22 lines
455 B
Vue
<template>
|
|
<img class="dashboard-icon" :src="$A.mainUrl(`images/dashboard/${name}.svg`)" :width="size" :height="size" alt="" aria-hidden="true"/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
name: {type: String, required: true},
|
|
size: {type: Number, default: 14},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.dashboard-icon {
|
|
display: inline-block;
|
|
flex-shrink: 0;
|
|
object-fit: contain;
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|