guide.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="lines" :style="'padding:14rpx '+ lrEdge +'rpx;padding-top:'+ mbConfig +'rpx;'">
  3. <view class="item" :style="'border-bottom-width:'+ heightConfig +'rpx;border-bottom-color:'+ lineColor +';border-bottom-style:'+ lineStyle +';'"></view>
  4. </view>
  5. </template>
  6. <script>
  7. // +----------------------------------------------------------------------
  8. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  9. // +----------------------------------------------------------------------
  10. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  11. // +----------------------------------------------------------------------
  12. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  13. // +----------------------------------------------------------------------
  14. // | Author: CRMEB Team <admin@crmeb.com>
  15. // +----------------------------------------------------------------------
  16. export default {
  17. name: 'guide',
  18. props: {
  19. dataConfig: {
  20. type: Object,
  21. default: () => {}
  22. }
  23. },
  24. data() {
  25. return {
  26. heightConfig:this.dataConfig.heightConfig.val*2 || 2,
  27. lineColor:this.dataConfig.lineColor.color[0].item,
  28. lineStyle:this.dataConfig.lineStyle.type == 0 ? 'dashed' : this.dataConfig.lineStyle.type == 1 ? 'solid' : 'dotted',
  29. lrEdge:this.dataConfig.lrEdge.val*2,
  30. mbConfig:this.dataConfig.mbConfig.val*2
  31. };
  32. },
  33. created() {},
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .lines{
  40. padding: 0 20rpx;
  41. margin-top: 20rpx;
  42. .item{
  43. width: 100%;
  44. box-sizing: border-box;
  45. border-bottom-color: red;
  46. border-bottom-style: dotted;
  47. }
  48. }
  49. </style>