mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
40 lines
639 B
Vue
40 lines
639 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 {
|
|
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>
|