gap.vue 395 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view class="gap-box" :style="{'height':height,'background-color':bgColor}">
  3. </view>
  4. </template>
  5. <script>
  6. export default {
  7. name:"gap",
  8. props:{
  9. height:{
  10. type:String,
  11. default:'20rpx'
  12. },
  13. bgColor:{
  14. type:String,
  15. default:'#f5f5f5'
  16. }
  17. },
  18. data() {
  19. return {
  20. };
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .gap-box{
  26. width: 100%;
  27. }
  28. </style>