guide.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <!-- 辅助线 -->
  3. <view v-show="!isSortType">
  4. <common-wrapper :config="configData">
  5. <view class="lines">
  6. <view class="item" :style="[lineStyle]"></view>
  7. </view>
  8. </common-wrapper>
  9. </view>
  10. </template>
  11. <script>
  12. import commonWrapper from "./commonWrapper.vue";
  13. export default {
  14. components: { commonWrapper },
  15. name: "guide",
  16. props: {
  17. dataConfig: {
  18. type: Object,
  19. default: () => {},
  20. },
  21. isSortType: {
  22. type: String | Number,
  23. default: 0,
  24. },
  25. },
  26. data() {
  27. return {
  28. heightConfig: 0,
  29. lineColor: "",
  30. // lineStyle: 0,
  31. lrEdge: 0,
  32. mbConfig: 0,
  33. };
  34. },
  35. computed: {
  36. lineStyle() {
  37. return {
  38. borderBottomWidth: `${this.dataConfig.heightConfig.val * 2}rpx`,
  39. borderBottomStyle:
  40. this.dataConfig.lineStyle.tabList[this.dataConfig.lineStyle.tabVal]
  41. .style,
  42. borderBottomColor: this.dataConfig.lineColor.color[0].item,
  43. };
  44. },
  45. configData() {
  46. return {
  47. ...this.dataConfig,
  48. };
  49. },
  50. },
  51. created() {},
  52. methods: {},
  53. };
  54. </script>
  55. <style lang="scss">
  56. .lines {
  57. .item {
  58. box-sizing: border-box;
  59. border-bottom-color: red;
  60. border-width: 0 0 1rpx;
  61. border-bottom-style: solid;
  62. }
  63. }
  64. </style>