时间轴

time-axis时间轴,样式可自定义,结合timeaxis-item使用

组件结构

<template>
	<view class="tui-timeaxis-class tui-time-axis">
		<slot></slot>
	</view>
</template>

组件脚本

<script>
	export default {
		name:"tuiTimeAxis",
		data() {
			return {

			};
		}
	}
</script>

组件样式

<style>
	.tui-time-axis {
		padding-left: 20px;
		box-sizing: border-box;
		position: relative;
	}

	.tui-time-axis::before {
		content: " ";
		position: absolute;
		left: 0;
		top: 0;
		width: 1px;
		bottom: 0;
		border-left: 1px solid #ddd;
		-webkit-transform-origin: 0 0;
		transform-origin: 0 0;
		-webkit-transform: scaleX(0.5);
		transform: scaleX(0.5);
	}
</style>

脚本说明

props

methods

示例

H5预览地址

https://www.thorui.cn/h5/#/pages/extend/timeaxis/timeaxis

H5二维码

小程序二维码