tableTitle.vue 625 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. width: 3px;
  31. height:16px;
  32. background:#5570F1;
  33. display: block;
  34. position: absolute;
  35. left:-20px;
  36. top:10px;
  37. }
  38. }
  39. </style>