mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
37 lines
480 B
Vue
37 lines
480 B
Vue
<template>
|
|
<div class="shelf-item" :class="{ active: active }">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
.shelf-item {
|
|
padding: 4px;
|
|
border-radius: 2px;
|
|
font-size: 0;
|
|
|
|
&:hover {
|
|
background: #666;
|
|
}
|
|
|
|
&.active {
|
|
background: #3194d6;
|
|
}
|
|
|
|
svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from "vue";
|
|
|
|
export default defineComponent({
|
|
props: {
|
|
active: { type: Boolean, default: false },
|
|
},
|
|
});
|
|
</script>
|