blob: f3c75871466a879f65faece8d4d1ebbe47779021 [file] [log] [blame]
guangchao.xu070005a2020-12-07 09:56:40 +08001<template>
2 <view class="u-time-axis">
3 <slot />
4 </view>
5</template>
6
7<script>
8 /**
9 * timeLine 时间轴
10 * @description 时间轴组件一般用于物流信息展示,各种跟时间相关的记录等场景。
11 * @tutorial https://www.uviewui.com/components/timeLine.html
12 * @example <u-time-line></u-time-line>
13 */
14 export default {
15 name: "u-time-line",
16 data() {
17 return {
18
19 }
20 }
21 }
22</script>
23
24<style lang="scss" scoped>
25 @import "../../libs/css/style.components.scss";
26
27 .u-time-axis {
28 padding-left: 40rpx;
29 position: relative;
30 }
31
32 .u-time-axis::before {
33 content: " ";
34 position: absolute;
35 left: 0;
36 top: 12rpx;
37 width: 1px;
38 bottom: 0;
39 border-left: 1px solid #ddd;
40 transform-origin: 0 0;
41 transform: scaleX(0.5);
42 }
43</style>