ETimeline 时间线
示例与代码
交替布局、图标与时间位置
时间线
属性
属性说明取值与默认值
contentDelegateComponent自定义主体内容的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nulldotDelegateComponent自定义时间线节点的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullenabledbool是否允许交互;false 时控件禁用。
默认值
trueheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightmodestring时间线的布局模式。
start
end
alternate
alternate-reverse
默认值
"start"modelvar时间线事件的数据数组。
字段:
timestamp, content, icon
contentDelegate
默认值
[]reversebool倒序显示时间线。
默认值
falsevisiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidthdisplayEventsvar只读经过顺序处理后的时间线项目。
默认值
由运行时计算