naive-ui/demo/documentation/components/icon/zhCN/iconWrapper.vue
2019-12-25 19:04:17 +08:00

41 lines
667 B
Vue

<template>
<div class="icon-wrapper">
<div class="icon-wrapper__icon">
<slot />
</div>
<div class="icon-wrapper__name">
{{ name }}
</div>
</div>
</template>
<script>
export default {
props: {
name: {
type: String,
default: null
}
}
}
</script>
<style scoped>
.icon-wrapper {
fill: rgb(128, 128, 128);
font-size: 36px;
height: 128px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transition: color .3s cubic-bezier(.4, 0, .2, 1);
}
.icon-wrapper .icon-wrapper__name {
font-size: 14px;
}
.icon-wrapper .icon-wrapper__icon {
font-size: 48px;
}
</style>