# timeaxis-item

timeaxis-item 时间轴item,结合time-axis使用

# 组件结构

<template>
	<view class="tui-timeaxis-item">
		<slot name="content"></slot>
		<view class="tui-timeaxis-node" :style="{backgroundColor:backgroundColor}">
			<slot name="node"></slot>
		</view>
	</view>
</template>

# 组件脚本

<script>
	export default {
		name: "tuiTimeaxisItem",
		props: {
			//节点背景色
			backgroundColor: {
				type: String,
				default: "#fafafa"
			}
		},
		data() {
			return {
	
			};
		}
	}
</script>

# 组件样式

<style>
	.tui-timeaxis-item {
		position: relative;
		width: 100%;
		display: flex;
		flex-direction: column;
		margin-bottom: 25px;
	}
	
	.tui-timeaxis-node {
		position: absolute;
		top: 0;
		left: -20px;
		transform-origin: 0;
		transform: translateX(-50%);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 99;
		background-color: #fafafa;
		font-size: 24rpx;
	}
</style>

# 脚本说明

# props

参数 类型 描述 默认值
backgroundColor String 输入框外层背景颜色 #fafafa

# methods

# 示例

# H5预览地址

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

# H5二维码

# 小程序二维码