tui-time-axis.vue 575 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="tui-timeaxis-class tui-time-axis">
  3. <slot></slot>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name:"tuiTimeAxis",
  9. data() {
  10. return {
  11. };
  12. }
  13. }
  14. </script>
  15. <style scoped>
  16. .tui-time-axis {
  17. padding-left: 20px;
  18. box-sizing: border-box;
  19. position: relative;
  20. }
  21. .tui-time-axis::before {
  22. content: " ";
  23. position: absolute;
  24. left: 0;
  25. top: 0;
  26. width: 1px;
  27. bottom: 0;
  28. border-left: 1px solid #ddd;
  29. -webkit-transform-origin: 0 0;
  30. transform-origin: 0 0;
  31. -webkit-transform: scaleX(0.5);
  32. transform: scaleX(0.5);
  33. }
  34. </style>