Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wychl
uni-app
提交
bc7e8869
U
uni-app
项目概览
wychl
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc7e8869
编写于
11月 15, 2018
作者:
蓝色的小猫咪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整时间轴页面
上级
dda449b5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
111 addition
and
126 deletion
+111
-126
examples/hello-uniapp/common/uni.css
examples/hello-uniapp/common/uni.css
+85
-1
examples/hello-uniapp/pages/template/timeline/timeline.vue
examples/hello-uniapp/pages/template/timeline/timeline.vue
+26
-125
未找到文件。
examples/hello-uniapp/common/uni.css
浏览文件 @
bc7e8869
...
...
@@ -967,4 +967,88 @@ radio-group label, checkbox-group label{
color
:
#ffffff
;
padding
:
0
10
upx
;
border-radius
:
5
upx
;
}
\ No newline at end of file
}
/* timeline */
.uni-timeline
{
margin
:
35
upx
0
;
display
:
flex
;
flex-direction
:
column
;
position
:
relative
;
}
.uni-timeline-item
{
display
:
flex
;
flex-direction
:
row
;
position
:
relative
;
padding-bottom
:
20
upx
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
.uni-timeline-item
.uni-timeline-item-keynode
{
width
:
160
upx
;
flex-shrink
:
0
;
box-sizing
:
border-box
;
padding-right
:
20
upx
;
text-align
:
right
;
line-height
:
65
upx
;
}
.uni-timeline-item
.uni-timeline-item-divider
{
flex-shrink
:
0
;
position
:
relative
;
width
:
30
upx
;
height
:
30
upx
;
top
:
15
upx
;
border-radius
:
50%
;
background-color
:
#bbb
;
}
.uni-timeline-item-divider
::before
,
.uni-timeline-item-divider
::after
{
position
:
absolute
;
left
:
15
upx
;
width
:
1
upx
;
height
:
100vh
;
content
:
''
;
background
:
inherit
;
}
.uni-timeline-item-divider
::before
{
bottom
:
100%
;
}
.uni-timeline-item-divider
::after
{
top
:
100%
;
}
.uni-timeline-last-item
.uni-timeline-item-divider
:after
{
display
:
none
;
}
.uni-timeline-first-item
.uni-timeline-item-divider
:before
{
display
:
none
;
}
.uni-timeline-item
.uni-timeline-item-content
{
padding-left
:
20
upx
;
}
.uni-timeline-last-item
.bottom-border
::after
{
display
:
none
;
}
.uni-timeline-item-content
.datetime
{
color
:
#CCCCCC
;
}
/* 自定义节点颜色 */
.uni-timeline-last-item
.uni-timeline-item-divider
{
background-color
:
#1AAD19
;
}
\ No newline at end of file
examples/hello-uniapp/pages/template/timeline/timeline.vue
浏览文件 @
bc7e8869
...
...
@@ -2,49 +2,48 @@
<view
class=
"page"
>
<page-head
:title=
"title"
></page-head>
<view
class=
""
>
<view
class=
"
title
"
>
双栏时间轴
</view>
<view
class=
"timeline"
style=
"padding: 30upx 20upx;background-color: #fff;"
>
<view
class=
"
timeline-item
timeline-first-item"
>
<view
class=
"timeline-item-keynode"
>
2018.05
</view>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"timeline-item-content"
>
uni-app 立项
</view>
<view
class=
"
uni-title uni-center
"
>
双栏时间轴
</view>
<view
class=
"
uni-
timeline"
style=
"padding: 30upx 20upx;background-color: #fff;"
>
<view
class=
"
uni-timeline-item uni-
timeline-first-item"
>
<view
class=
"
uni-
timeline-item-keynode"
>
2018.05
</view>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-
timeline-item-content"
>
uni-app 立项
</view>
</view>
<view
class=
"timeline-item"
>
<view
class=
"timeline-item-keynode"
>
2018.07
</view>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"timeline-item-content"
>
uni-app 正式发布,使用vue技术,开发一次,iOS、Android、微信小程序三端同时生成
</view>
<view
class=
"
uni-
timeline-item"
>
<view
class=
"
uni-
timeline-item-keynode"
>
2018.07
</view>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-
timeline-item-content"
>
uni-app 正式发布,使用vue技术,开发一次,iOS、Android、微信小程序三端同时生成
</view>
</view>
<view
class=
"
timeline-item
timeline-last-item"
>
<view
class=
"timeline-item-keynode"
>
2018.10
</view>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"timeline-item-content"
>
uni-app 支持使用 npm 安装依赖,支持微信小程序自定义组件
</view>
<view
class=
"
uni-timeline-item uni-
timeline-last-item"
>
<view
class=
"
uni-
timeline-item-keynode"
>
2018.10
</view>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-
timeline-item-content"
>
uni-app 支持使用 npm 安装依赖,支持微信小程序自定义组件
</view>
</view>
</view>
<view
class=
"
title
"
>
单栏时间轴
</view>
<view
class=
"timeline"
style=
"padding: 30upx 20upx;background-color: #fff;"
>
<view
class=
"
timeline-item
timeline-first-item"
>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"
timeline-item-content bottom-border
"
>
<view
class=
"
uni-title uni-center
"
>
单栏时间轴
</view>
<view
class=
"
uni-
timeline"
style=
"padding: 30upx 20upx;background-color: #fff;"
>
<view
class=
"
uni-timeline-item uni-
timeline-first-item"
>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-timeline-item-content
"
>
<view>
uni-app 立项
</view>
<view
class=
"datetime"
>
2018.05
</view>
</view>
</view>
<view
class=
"timeline-item"
>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"
timeline-item-content bottom-border
"
>
<view
class=
"
uni-
timeline-item"
>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-timeline-item-content
"
>
<view>
uni-app 正式发布,使用vue技术,开发一次,iOS、Android、微信小程序三端同时生成
</view>
<view
class=
"datetime"
>
2018.07
</view>
</view>
</view>
<view
class=
"
timeline-item
timeline-last-item"
>
<view
class=
"timeline-item-divider"
></view>
<view
class=
"
timeline-item-content bottom-border
"
>
<view
class=
"
uni-timeline-item uni-
timeline-last-item"
>
<view
class=
"
uni-
timeline-item-divider"
></view>
<view
class=
"
uni-timeline-item-content
"
>
<view>
uni-app 支持使用 npm 安装依赖,支持微信小程序自定义组件
</view>
<view
class=
"datetime"
>
2018.10
</view>
</view>
...
...
@@ -65,104 +64,6 @@
}
</
script
>
<
style
>
.page
{
background
:
#efeff4
;
}
.title
{
padding
:
20
upx
;
}
.timeline
{
margin
:
35
upx
0
;
display
:
flex
;
flex-direction
:
column
;
position
:
relative
;
}
.timeline-item
{
display
:
flex
;
flex-direction
:
row
;
position
:
relative
;
padding-bottom
:
20
upx
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
.timeline-item
.timeline-item-keynode
{
width
:
180
upx
;
flex-shrink
:
0
;
box-sizing
:
border-box
;
padding-right
:
20
upx
;
text-align
:
right
;
}
.timeline-item
.timeline-item-divider
{
flex-shrink
:
0
;
position
:
relative
;
width
:
20
upx
;
height
:
20
upx
;
top
:
15
upx
;
border-radius
:
50%
;
background-color
:
#bbb
;
}
.timeline-item-divider
::before
,
.timeline-item-divider
::after
{
position
:
absolute
;
left
:
10
upx
;
width
:
1
upx
;
height
:
100vh
;
content
:
''
;
background
:
inherit
;
}
.timeline-item-divider
::before
{
bottom
:
100%
;
}
.timeline-item-divider
::after
{
top
:
100%
;
}
.timeline-last-item
.timeline-item-divider
:after
{
display
:
none
;
}
.timeline-first-item
.timeline-item-divider
:before
{
display
:
none
;
}
.timeline-item
.timeline-item-content
{
padding-left
:
20
upx
;
}
.bottom-border
::after
{
position
:
absolute
;
left
:
40
upx
;
right
:
0
;
height
:
1px
;
content
:
''
;
background-color
:
#bbb
;
}
.timeline-last-item
.bottom-border
::after
{
display
:
none
;
}
.timeline-item-content
.datetime
{
color
:
#CCCCCC
;
}
/* 自定义节点颜色 */
.timeline-last-item
.timeline-item-divider
{
background-color
:
#1AAD19
;
}
<
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录