手册版本 V3.0
DOM结构
<view class="grace-time-line grace-nowrap grace-flex-end grace-margin-top">
<view class="grace-time-line-body grace-border-l">
<text class="grace-time-line-txt grace-border-radius-small">GraceUI 发布第一个版本</text>
<text class="grace-time-line-time grace-gray">2018-06-20</text>
</view>
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" class="grace-time-line-face-img"></image>
</view>
</view>
完整代码
UNI 普通版本
NVUE 版本
微信小程序独立版本
<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<view class="grace-time-line grace-nowrap grace-flex-end grace-margin-top">
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" class="grace-time-line-face-img"></image>
</view>
<view class="grace-time-line-body">
<text class="grace-time-line-txt grace-border-radius-small">GraceUI 发布第一个版本</text>
<text class="grace-time-line-time grace-gray">2018-06-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons grace-bg-blue"></text>
</view>
<view class="grace-time-line-body">
<text class="grace-time-line-txt grace-border-radius-small">1. 改进数据表格界面, 标签固定在顶部;\n2. 优化分类商品界面, 解决 uni-app 页面切换引发的错误;</text>
<text class="grace-time-line-time grace-gray">2018-07-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png" class="grace-time-line-face-img"></image>
</view>
<view class="grace-time-line-body">
<image class="grace-time-line-image grace-border-radius-small" src="https://graceui.oss-cn-beijing.aliyuncs.com/banner1.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-08-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons icon-address grace-bg-red"></text>
</view>
<view class="grace-time-line-body grace-noborder">
<image class="grace-time-line-image grace-border-radius-small" src="https://staticimgs.oss-cn-beijing.aliyuncs.com/indexBanner01.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-09-20</text>
</view>
</view>
</view>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/components/gracePage.vue";
export default {
data() {
return {
menuShow : false
}
},
methods:{},
components:{
gracePage
}
}
</script>
<style>
.grace-time-line{position:relative;}
.grace-time-line-face{width:80rpx; height:80rpx; overflow:hidden; position:absolute; z-index:1; left:0; top:0; font-size:0;}
.grace-time-line-icon{width:80rpx; height:80rpx; line-height:80rpx; text-align:center; display:block; font-size:38rpx; border-radius:80rpx;}
.grace-time-line-face-img{width:80rpx; height:80rpx; border-radius:80rpx;}
.grace-time-line-body{width:600rpx; border-left:1rpx solid #F6F7F8; font-size:0; padding-bottom:20rpx; padding-left:60rpx;}
.grace-time-line-txt{line-height:40rpx; font-size:26rpx; display:block; background-color:#F8F8F8; padding:20rpx;}
.grace-time-line-time{line-height:36rpx; font-size:22rpx; display:block; text-align:right; margin-top:3px;}
.grace-time-line-image{width:600rpx;}
</style>
<template>
<gracePage :customHeader="false">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<list class="grace-margin-top" :show-scrollbar="false">
<cell class="grace-time-line grace-nowrap grace-flex-end grace-margin-top">
<view class="grace-time-line-body grace-border-l">
<text class="grace-time-line-txt grace-border-radius-small">GraceUI 发布第一个版本</text>
<text class="grace-time-line-time grace-gray">2018-06-20</text>
</view>
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" class="grace-time-line-face-img"></image>
</view>
</cell>
<cell class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-body grace-border-l">
<text class="grace-time-line-txt grace-border-radius-small">1. 改进数据表格界面, 标签固定在顶部;
2. 优化分类商品界面, 解决 uni-app 页面切换引发的错误;</text>
<text class="grace-time-line-time grace-gray">2018-07-20</text>
</view>
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons grace-bg-blue"></text>
</view>
</cell>
<cell class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-body grace-border-l">
<image class="grace-time-line-image grace-border-radius-small" style="height:300rpx;" src="https://graceui.oss-cn-beijing.aliyuncs.com/banner1.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-08-20</text>
</view>
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png" class="grace-time-line-face-img"></image>
</view>
</cell>
<cell class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-body">
<image class="grace-time-line-image grace-border-radius-small" style="height:300rpx;" src="https://staticimgs.oss-cn-beijing.aliyuncs.com/indexBanner01.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-09-20</text>
</view>
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons grace-bg-red">10</text>
</view>
</cell>
</list>
</view>
</gracePage>
</template>
<script>
import gracePage from "../../graceUI/weexComponents/gracePage.nvue";
export default {
data() {
return {
menuShow : false
}
},
methods:{
showmenu : function () {
this.menuShow = true;
},
menuHide : function () {
this.menuShow = false;
}
},
components:{
gracePage
}
}
</script>
<style>
.grace-time-line{}
.grace-time-line-face{width:80rpx; height:80rpx; overflow:hidden; position:absolute; z-index:1; left:0; top:0; font-size:0;}
.grace-time-line-icon{width:80rpx; height:80rpx; line-height:80rpx; text-align:center; font-size:38rpx; border-radius:80rpx;}
.grace-time-line-face-img{width:80rpx; height:80rpx; border-radius:80rpx;}
.grace-time-line-body{width:660rpx; border-left-width:1rpx; border-left-color:#F6F7F8; border-style:solid ; font-size:0; padding-bottom:20rpx; padding-left:60rpx;}
.grace-time-line-txt{line-height:40rpx; font-size:26rpx; background-color:#F8F8F8; padding:20rpx;}
.grace-time-line-time{line-height:36rpx; font-size:22rpx; text-align:right; margin-top:3px;}
.grace-time-line-image{width:600rpx;}
</style>
.wxml
<gracePage customHeader="{{false}}">
<!-- 页面主体 -->
<view slot="gBody" class="grace-body">
<view class="grace-time-line grace-nowrap grace-flex-end grace-margin-top">
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" class="grace-time-line-face-img"></image>
</view>
<view class="grace-time-line-body">
<text class="grace-time-line-txt grace-border-radius-small">GraceUI 发布第一个版本</text>
<text class="grace-time-line-time grace-gray">2018-06-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons icon-set grace-bg-blue"></text>
</view>
<view class="grace-time-line-body">
<text class="grace-time-line-txt grace-border-radius-small">1. 改进数据表格界面, 标签固定在顶部;\n2. 优化分类商品界面, 解决 uni-app 页面切换引发的错误;</text>
<text class="grace-time-line-time grace-gray">2018-07-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<image src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png" class="grace-time-line-face-img"></image>
</view>
<view class="grace-time-line-body">
<image class="grace-time-line-image grace-border-radius-small" src="https://graceui.oss-cn-beijing.aliyuncs.com/banner1.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-08-20</text>
</view>
</view>
<view class="grace-time-line grace-nowrap grace-flex-end">
<view class="grace-time-line-face">
<text class="grace-time-line-icon grace-icons icon-address grace-bg-red"></text>
</view>
<view class="grace-time-line-body grace-noborder">
<image class="grace-time-line-image grace-border-radius-small" src="https://staticimgs.oss-cn-beijing.aliyuncs.com/indexBanner01.png" mode="widthFix"></image>
<text class="grace-time-line-time grace-gray">2018-09-20</text>
</view>
</view>
</view>
</gracePage>.wxss
.grace-time-line{position:relative;}
.grace-time-line-face{width:80rpx; height:80rpx; overflow:hidden; position:absolute; z-index:1; left:0; top:0; font-size:0;}
.grace-time-line-icon{width:80rpx; height:80rpx; line-height:80rpx; text-align:center; display:block; font-size:38rpx; border-radius:80rpx;}
.grace-time-line-face-img{width:80rpx; height:80rpx; border-radius:80rpx;}
.grace-time-line-body{width:600rpx; border-left:1rpx solid #F6F7F8; font-size:0; padding-bottom:20rpx; padding-left:60rpx;}
.grace-time-line-txt{line-height:40rpx; font-size:26rpx; display:block; background-color:#F8F8F8; padding:20rpx;}
.grace-time-line-time{line-height:36rpx; font-size:22rpx; display:block; text-align:right; margin-top:3px;}
.grace-time-line-image{width:600rpx;}.json
{
"usingComponents": {
"gracePage": "../../graceUI/components/gracePage"
}
}