SceneButton.vue 834 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="center_in">
  3. <div class="card_btn center_in" :style="{ width: config.css.width + 'px', height: config.css.height + 'px' }">
  4. <div class="bg_item_btn center_in">
  5. <el-icon :size="config.config.size" :color="config.css.iconColor">
  6. <BellFilled />
  7. </el-icon>
  8. </div>
  9. <div>{{ config.name }}</div>
  10. </div>
  11. </div>
  12. </template>
  13. <script lang="ts" setup>
  14. import { defineProps } from "vue";
  15. defineProps(["config", "sendSon"])
  16. </script>
  17. <style lang="scss" scoped>
  18. .card_btn {
  19. flex-direction: column;
  20. background-color: #fff;
  21. border-radius: 8px;
  22. overflow: hidden;
  23. }
  24. .bg_item_btn {
  25. width: 60px;
  26. height: 60px;
  27. border-radius: 50%;
  28. background-color: rgba(21, 140, 251, 0.1);
  29. }
  30. </style>