tableTitle.vue 690 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="tableTitle">
  3. <span class="tableFloatLine"></span>
  4. {{name}}
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. name: {
  11. type: String,
  12. required: true,
  13. },
  14. },
  15. data() {
  16. return {
  17. someData: '',
  18. };
  19. },
  20. };
  21. </script>
  22. <style scoped lang="less">
  23. .tableTitle {
  24. height: 38px;
  25. line-height: 38px;
  26. color:#333333;
  27. position: relative;
  28. margin-bottom: 30px;
  29. .tableFloatLine {
  30. // display: inline-block;
  31. width: 3px;
  32. height:16px;
  33. background:#5570F1;
  34. display: block;
  35. position: absolute;
  36. left:-20px;
  37. top:10px;
  38. // vertical-align: middle;
  39. }
  40. }
  41. </style>