guide.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view v-show="!isSortType">
  3. <view class="lines" :style="'padding:0 '+ lrEdge*2 +'rpx;margin-top:'+ mbConfig*2 +'rpx;'" v-if="heightConfig">
  4. <view class="item" :style="'border-bottom-width:'+ heightConfig*2 +'rpx;border-bottom-color:'+ lineColor +';border-bottom-style:'+ lineStyle +';'"></view>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'guide',
  11. props: {
  12. dataConfig: {
  13. type: Object,
  14. default: () => {}
  15. },
  16. isSortType:{
  17. type: String | Number,
  18. default:0
  19. }
  20. },
  21. data() {
  22. return {
  23. heightConfig:this.dataConfig.heightConfig.val,
  24. lineColor:this.dataConfig.lineColor.color[0].item,
  25. lineStyle:this.dataConfig.lineStyle.list[this.dataConfig.lineStyle.type].style,
  26. lrEdge:this.dataConfig.lrEdge.val,
  27. mbConfig:this.dataConfig.mbConfig.val
  28. };
  29. },
  30. created() {},
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .lines{
  37. padding: 0 20rpx;
  38. margin-top: 20rpx;
  39. .item{
  40. width: 100%;
  41. box-sizing: border-box;
  42. border-bottom-color: red;
  43. border-bottom-width: 1px;
  44. // dashed
  45. border-bottom-style: dotted;
  46. }
  47. }
  48. </style>