<template>
  <div class="item" @click="$emit('click')">
    <i class="iconfont" :class="[`icon-${icon}`]"></i>
    <div class="item-desc">
      <h3>{{ title }}</h3>
      <p>{{ desc }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "FpAsidePanelComponentItem",
  props: {
    icon: {
      default: 'icon-zujian'
    },
    title: {
      default: '标题'
    },
    desc: {
      default: '描述'
    },
  }
}
</script>

<style scoped>

.item {
  border-radius: 4px;
  height: 72px;
  color: #33383e;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0 24px 12px;
  user-select: none;
  background-color: #f6f7f9;
}

.item:hover {
  background-color: #33383e33;
}

.iconfont {
  margin-left: 16px;
  margin-right: 16px;
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 28px;
}

.item-desc h3 {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.item-desc p {
  margin: 0;
  color: #7f8792;
  font-size: 12px;
  line-height: 18px;
}

</style>