Price.vue 518 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <div class="price-container">
  3. <span class="p-l el-icon-jy-iconLogoLight"></span>
  4. <span class="p-r">{{ price }}</span>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'price',
  10. props: {
  11. price: {
  12. type: [String, Number],
  13. default: 0
  14. }
  15. }
  16. }
  17. </script>
  18. <style scoped lang="scss">
  19. .price-container {
  20. display: flex;
  21. align-items: center;
  22. @include diy-icon("iconLogoLight", 22, 22);
  23. .p-r {
  24. margin-left: 4px;
  25. font-size: 18px;
  26. color: #ff3a20;
  27. }
  28. }
  29. </style>