<template>
  <!-- 添加一级标题组件 -->
  <div class="add_level1_button" @click="$emit('click')">
    <div class="button">
      <i class="iconfont icontianjia button-icon"></i>
    </div>
    <span class="label">{{ title }}</span>
  </div>
</template>
<script lang="ts" setup>
defineProps<{
  title?: string;
}>();
defineEmits(["click"]);
</script>
<style scoped>
.add_level1_button {
  display: inline-block;
  cursor: pointer;
}
.button {
  display: inline-block;
  width: 39px;
  height: 39px;
  background: #15cbba;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 39px;
}

.button-icon {
  font-size: 15px;
}

.label {
  margin-left: 15px;
  color: #15cbba;
  font-size: 14px;
  line-height: 39px;
  font-weight: 500;
}
</style>
