开始使用 布局容器和栅格系统 文字样式 背景颜色 按钮 标签、角标、红点 图标 单选、多选、开关 进度条 顶部导航 底部工具栏 底部工具栏扩展 表单 列表 卡片列表 宫格布局 弹性布局 时间轴 聊天气泡 信息条 提示条 仿微信首页 仿微信朋友圈 仿今日头条 仿知乎首页 仿淘宝首页 会员中心首页一 会员中心首页二 订单列表首页 弹窗 Dialog 弹窗 Toast 弹出菜单 底部弹出框 底部分享盒子 下拉刷新 轮播组件 滚动监听 按钮组工具栏 搜索条 滑块 Tab切换栏 折叠面板 图片懒加载 自定义主题样式 列表左滑删除

时间轴 Timeline

通过 .aui-timeline 定义时间轴,包含 .aui-timeline-item-header.aui-timeline-item.aui-timeline-item-label.aui-timeline-item-inner 元素。

.aui-timeline-item-inner 中为右侧主体内容,可结合列表、卡片、宫格等其它布局来实现多种多样的精美布局。

示例源码

<section class="aui-content">
    <div class="aui-timeline">
        <div class="aui-timeline-item-header">2017年1月8日</div>
        <div class="aui-timeline-item">
            <div class="aui-timeline-item-label aui-bg-info aui-text-white">NO.1</div>
            <div class="aui-timeline-item-inner">
                <div class="aui-card-list">
                    <div class="aui-card-list-header aui-border-b">
                        <div>时间轴回来了</div>
                        <i class="aui-iconfont aui-icon-star aui-text-danger"></i>
                    </div>
                    <div class="aui-card-list-content-padded">
                        时间轴重新回归了,跟卡片列表布局结合可以完成丰富的布局样式
                        <img src="/static/auicss/img/l1.png">
                    </div>
                    <div class="aui-card-list-footer aui-border-t aui-font-size-12">
                        <div><i class="aui-iconfont aui-icon-note aui-font-size-14"></i> 666</div>
                        <div><i class="aui-iconfont aui-icon-laud aui-font-size-14"></i> 888</div>
                        <div><i class="aui-iconfont aui-icon-star aui-font-size-14"></i> 888</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="aui-timeline-item">
            <div class="aui-timeline-item-label-icon aui-bg-danger">
                <i class="aui-iconfont aui-icon-like aui-text-white"></i>
            </div>
            <div class="aui-timeline-item-inner">
                <div class="aui-card-list">
                    <div class="aui-card-list-content-padded">
                        AUI一直在努力,并会持久的更新下去,更方便快速的完成布局。感谢一路有大家的陪伴!!!🌹🌹🌹🌹🌹🌹
                    </div>
                </div>
            </div>
        </div>
        <div class="aui-timeline-item">
            <div class="aui-timeline-item-label aui-bg-warning aui-text-white">NO.2</div>
            <div class="aui-timeline-item-inner">
                <div class="aui-card-list">
                    <div class="aui-card-list-header aui-border-b">更好的组合模式</div>
                    <div class="aui-card-list-content-padded">
                        <div class="aui-row aui-row-padded">
                            <div class="aui-col-xs-4">
                                <img src="/static/auicss/img/demo1.png" />
                            </div>
                            <div class="aui-col-xs-4">
                                <img src="/static/auicss/img/demo2.png" />
                            </div>
                            <div class="aui-col-xs-4">
                                <img src="/static/auicss/img/demo3.png" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="aui-timeline-item">
            <div class="aui-timeline-item-label aui-bg-success aui-text-white">NO.3</div>
            <div class="aui-timeline-item-inner">
                <div class="aui-card-list">
                    <div class="aui-card-list-header aui-border-b">更好的组合模式</div>
                    <div class="aui-card-list-content">
                        <ul class="aui-list aui-media-list aui-list-noborder">
                            <li class="aui-list-item aui-list-item-middle">
                                <div class="aui-media-list-item-inner">
                                    <div class="aui-list-item-media" style="width: 2.6rem;">
                                        <img src="/static/auicss/img/demo5.png" class="aui-img-round" >
                                    </div>
                                    <div class="aui-list-item-inner aui-list-item-arrow">
                                        <div class="aui-list-item-text">
                                            <div class="aui-list-item-title aui-font-size-14">AUI</div>
                                            <div class="aui-list-item-right">08:00</div>
                                        </div>
                                        <div class="aui-list-item-text">
                                            www.auicss.com
                                        </div>
                                    </div>
                                </div>
                            </li>
                            <li class="aui-list-item aui-list-item-middle">
                                <div class="aui-media-list-item-inner">
                                    <div class="aui-list-item-media" style="width: 2.6rem;">
                                        <img src="/static/auicss/img/liulangnan.png" class="aui-img-round">
                                    </div>
                                    <div class="aui-list-item-inner aui-list-item-arrow">
                                        流浪男
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="aui-card-list-footer aui-text-center aui-border-t">
                        查看更多
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>