num-common-card.vue 668 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view class="fx-col bg-white mx-card relative overflow-hidden">
  3. <view class="num-mark absolute bg-primary text-white text-2xs fx-row fx-cen-cen">志愿 {{ num + 1 }}</view>
  4. <view class="fx-row fx-bet-cen pl-120">
  5. <slot name="header"/>
  6. </view>
  7. <slot/>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "num-common-card",
  13. props: {
  14. num: {
  15. type: [String, Number],
  16. default: ''
  17. }
  18. }
  19. }
  20. </script>
  21. <style scoped>
  22. .num-mark {
  23. top: 10px;
  24. left: -10px;
  25. height: 30px;
  26. border-radius: 15px;
  27. padding-left: 20px;
  28. padding-right: 10px;
  29. }
  30. </style>