You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
837 B

  1. <template>
  2. <!-- #ifdef MP-ALIPAY -->
  3. <view @click="$emit('click', $event)" :class="className" :style="style" class="custom-add">
  4. <l-icon :type="icon" />
  5. </view>
  6. <!-- #endif -->
  7. <!-- #ifndef MP-ALIPAY -->
  8. <view @click="$emit('click', $event)" class="custom-add"><l-icon :type="icon" /></view>
  9. <!-- #endif -->
  10. </template>
  11. <script>
  12. export default {
  13. name: 'l-custom-add',
  14. props: {
  15. icon: { default: 'add' }
  16. }
  17. }
  18. </script>
  19. <style lang="less">
  20. .custom-add {
  21. position: fixed;
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. font-size: 30px;
  26. bottom: 20px;
  27. bottom: calc(20rpx + constant(safe-area-inset-bottom));
  28. bottom: calc(20rpx + env(safe-area-inset-bottom));
  29. right: 20px;
  30. height: 40px;
  31. width: 40px;
  32. border-radius: 50%;
  33. background-color: #488aff;
  34. color: #fff;
  35. }
  36. </style>