Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
良好的行为成为习惯
uni-app
提交
039d5985
U
uni-app
项目概览
良好的行为成为习惯
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
039d5985
编写于
11月 14, 2018
作者:
H
hulinneil
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/dcloudio/uni-app
上级
04b9ed04
bfc78a0a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
72 addition
and
58 deletion
+72
-58
examples/hello-uniapp/common/uni.css
examples/hello-uniapp/common/uni.css
+26
-1
examples/hello-uniapp/components/mpvue-citypicker/mpvueCityPicker.vue
...lo-uniapp/components/mpvue-citypicker/mpvueCityPicker.vue
+19
-13
examples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
...ples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
+13
-9
examples/hello-uniapp/pages/template/comments/comments.vue
examples/hello-uniapp/pages/template/comments/comments.vue
+7
-21
examples/hello-uniapp/pages/template/mpvue-picker/mpvue-picker.vue
...hello-uniapp/pages/template/mpvue-picker/mpvue-picker.vue
+2
-2
examples/hello-uniapp/pages/template/steps/steps.vue
examples/hello-uniapp/pages/template/steps/steps.vue
+5
-12
未找到文件。
examples/hello-uniapp/common/uni.css
浏览文件 @
039d5985
...
@@ -861,4 +861,29 @@ radio-group label, checkbox-group label{
...
@@ -861,4 +861,29 @@ radio-group label, checkbox-group label{
.uni-tab-bar-loading
{
.uni-tab-bar-loading
{
padding
:
20
upx
0
;
padding
:
20
upx
0
;
}
}
\ No newline at end of file
/* steps */
.uni-steps
{
padding
:
20
upx
30
upx
;
flex-grow
:
1
;
display
:
flex
;
flex-wrap
:
wrap
;}
.uni-steps
view
{
display
:
flex
;
flex-wrap
:
wrap
;
float
:
none
;}
.uni-steps
.step
{
width
:
31.3%
;
margin
:
0
1%
;
flex-wrap
:
nowrap
;}
.uni-steps
.step-circle
{
width
:
50
upx
;
height
:
50
upx
;
border-radius
:
50
upx
;
background
:
#F1F1F3
;
justify-content
:
center
;
line-height
:
50
upx
;
flex-shrink
:
0
;
margin-right
:
15
upx
;
color
:
#666
;
font-size
:
28
upx
;}
.uni-steps
.step-content
{
width
:
100%
;
height
:
22
upx
;
border-bottom
:
1px
solid
#F1F2F3
;}
.uni-steps
.step-title
{
line-height
:
50
upx
;
height
:
50
upx
;
background
:
#FFFFFF
;
width
:
auto
;
overflow
:
hidden
;
padding-right
:
8
upx
;}
.uni-steps
.current
.step-circle
{
background
:
#00B26A
;
color
:
#FFFFFF
;}
.uni-steps
.current
.step-content
{
border-color
:
#00B26A
;}
.uni-steps
.current
.step-title
{
color
:
#00B26A
;}
/* uni-comment */
.uni-comment
{
padding
:
5
rpx
0
;
display
:
flex
;
flex-grow
:
1
;
flex-direction
:
column
;}
.uni-comment-list
{
flex-wrap
:
nowrap
;
padding
:
10
rpx
0
;
margin
:
10
rpx
0
;
width
:
100%
;
display
:
flex
;}
.uni-comment-face
{
width
:
70
upx
;
height
:
70
upx
;
border-radius
:
100%
;
margin-right
:
20
upx
;
flex-shrink
:
0
;
overflow
:
hidden
;}
.uni-comment-face
image
{
width
:
100%
;
border-radius
:
100%
;}
.uni-comment-body
{
width
:
100%
;}
.uni-comment-top
{
line-height
:
1.5em
;
justify-content
:
space-between
;}
.uni-comment-top
text
{
color
:
#0A98D5
;
font-size
:
24
upx
;}
.uni-comment-top
text
:last-child
{
color
:
#666666
;}
.uni-comment-date
{
line-height
:
38
upx
;
flex-direction
:
row
;
justify-content
:
space-between
;
display
:
flex
!important
;
flex-grow
:
1
;}
.uni-comment-date
view
{
color
:
#666666
;
font-size
:
24
upx
;
line-height
:
38
upx
;}
.uni-comment-content
{
line-height
:
1.6em
;
font-size
:
28
upx
;
padding
:
8
rpx
0
;}
.uni-comment-replay-btn
{
background
:
#FFF
;
font-size
:
24
upx
;
line-height
:
28
upx
;
padding
:
5
rpx
20
upx
;
border-radius
:
30
upx
;
color
:
#333
!important
;
margin
:
0
10
upx
;}
\ No newline at end of file
examples/hello-uniapp/components/mpvue-citypicker/mpvueCityPicker.vue
浏览文件 @
039d5985
...
@@ -33,32 +33,38 @@ export default {
...
@@ -33,32 +33,38 @@ export default {
pickerValue
:
[
0
,
0
,
0
],
pickerValue
:
[
0
,
0
,
0
],
provinceDataList
:
[],
provinceDataList
:
[],
cityDataList
:
[],
cityDataList
:
[],
areaDataList
:
[]
areaDataList
:
[],
/* 是否显示控件 */
showPicker
:
false
,
};
};
},
},
created
()
{
created
()
{
this
.
handPickValueDefault
();
// 对 pickerValueDefault 做兼容处理
this
.
init
()
this
.
provinceDataList
=
provinceData
;
this
.
cityDataList
=
cityData
[
this
.
pickerValueDefault
[
0
]];
this
.
areaDataList
=
areaData
[
this
.
pickerValueDefault
[
0
]][
this
.
pickerValueDefault
[
1
]];
this
.
pickerValue
=
this
.
pickerValueDefault
;
},
},
props
:
{
props
:
{
/* 是否显示控件 */
showPicker
:
{
type
:
Boolean
,
default
:
false
},
/* 默认值 */
/* 默认值 */
pickerValueDefault
:
{
pickerValueDefault
:
{
type
:
Array
,
type
:
Array
,
default
:
[
0
,
0
,
0
]
default
(){
return
[
0
,
0
,
0
]
}
},
},
/* 主题色 */
/* 主题色 */
themeColor
:
String
themeColor
:
String
},
},
watch
:{
pickerValueDefault
(){
this
.
init
();
}
},
methods
:
{
methods
:
{
init
()
{
this
.
handPickValueDefault
();
// 对 pickerValueDefault 做兼容处理
this
.
provinceDataList
=
provinceData
;
this
.
cityDataList
=
cityData
[
this
.
pickerValueDefault
[
0
]];
this
.
areaDataList
=
areaData
[
this
.
pickerValueDefault
[
0
]][
this
.
pickerValueDefault
[
1
]];
this
.
pickerValue
=
this
.
pickerValueDefault
;
},
show
()
{
show
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
showPicker
=
true
;
this
.
showPicker
=
true
;
...
...
examples/hello-uniapp/components/mpvue-picker/mpvuePicker.vue
浏览文件 @
039d5985
...
@@ -78,7 +78,9 @@
...
@@ -78,7 +78,9 @@
pickerValueMulTwoTwo
:
[],
pickerValueMulTwoTwo
:
[],
pickerValueMulThreeOne
:
[],
pickerValueMulThreeOne
:
[],
pickerValueMulThreeTwo
:
[],
pickerValueMulThreeTwo
:
[],
pickerValueMulThreeThree
:
[]
pickerValueMulThreeThree
:
[],
/* 是否显示控件 */
showPicker
:
false
,
};
};
},
},
props
:
{
props
:
{
...
@@ -87,20 +89,19 @@
...
@@ -87,20 +89,19 @@
type
:
String
,
type
:
String
,
default
:
'
selector
'
default
:
'
selector
'
},
},
/* 是否显示控件 */
showPicker
:
{
type
:
Boolean
,
default
:
false
},
/* picker 数值 */
/* picker 数值 */
pickerValueArray
:
{
pickerValueArray
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
(){
return
[]
}
},
},
/* 默认值 */
/* 默认值 */
pickerValueDefault
:
{
pickerValueDefault
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
(){
return
[]
}
},
},
/* 几级联动 */
/* 几级联动 */
deepLength
:
{
deepLength
:
{
...
@@ -116,7 +117,10 @@
...
@@ -116,7 +117,10 @@
},
},
mode
(
oldVal
,
newVal
)
{
mode
(
oldVal
,
newVal
)
{
this
.
modeChange
=
true
;
this
.
modeChange
=
true
;
}
},
pickerValueArray
(
val
){
this
.
initPicker
(
val
);
}
},
},
methods
:
{
methods
:
{
initPicker
(
valueArray
)
{
initPicker
(
valueArray
)
{
...
...
examples/hello-uniapp/pages/template/comments/comments.vue
浏览文件 @
039d5985
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
</view>
</view>
<view
class=
"uni-comment-date"
>
<view
class=
"uni-comment-date"
>
<text>
08/10 08:12
</text>
<text>
08/10 08:12
</text>
<text>
102
</text>
</view>
</view>
<view
class=
"uni-comment-content"
>
上天呀!我渴望与你相知相惜,长存此心永不褪减。
</view>
<view
class=
"uni-comment-content"
>
上天呀!我渴望与你相知相惜,长存此心永不褪减。
</view>
</view>
</view>
...
@@ -23,7 +22,6 @@
...
@@ -23,7 +22,6 @@
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-top"
>
<view
class=
"uni-comment-top"
>
<text>
马克一天
</text>
<text>
马克一天
</text>
<text
class=
"uni-iconfont icon-zan uni-comment-zan"
>
100
</text>
</view>
</view>
<view
class=
"uni-comment-content"
>
除非巍巍群山消逝不见,除非滔滔江水干涸枯竭。除非凛凛寒冬雷声翻滚,除非炎炎酷暑白雪纷飞,除非天地相交聚合连接,直到这样的事情全都发生时,我才敢将对你的情意抛弃决绝!
</view>
<view
class=
"uni-comment-content"
>
除非巍巍群山消逝不见,除非滔滔江水干涸枯竭。除非凛凛寒冬雷声翻滚,除非炎炎酷暑白雪纷飞,除非天地相交聚合连接,直到这样的事情全都发生时,我才敢将对你的情意抛弃决绝!
</view>
</view>
</view>
...
@@ -33,7 +31,6 @@
...
@@ -33,7 +31,6 @@
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-top"
>
<view
class=
"uni-comment-top"
>
<text>
今生缘
</text>
<text>
今生缘
</text>
<text
class=
"uni-iconfont icon-zan"
>
66
</text>
</view>
</view>
<view
class=
"uni-comment-content"
>
人面不知何处去,桃花依旧笑春风。
</view>
<view
class=
"uni-comment-content"
>
人面不知何处去,桃花依旧笑春风。
</view>
<view
class=
"uni-comment-date"
>
<view
class=
"uni-comment-date"
>
...
@@ -46,11 +43,10 @@
...
@@ -46,11 +43,10 @@
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-body"
>
<view
class=
"uni-comment-top"
>
<view
class=
"uni-comment-top"
>
<text>
小猫咪
</text>
<text>
小猫咪
</text>
<text
class=
"uni-iconfont icon-zan"
>
120
</text>
</view>
</view>
<view
class=
"uni-comment-content"
>
海上生明月,天涯共此时。。
</view>
<view
class=
"uni-comment-content"
>
海上生明月,天涯共此时。。
</view>
<view
class=
"uni-comment-date"
>
<view
class=
"uni-comment-date"
>
<
text>
2天前
<text
class=
"uni-comment-replay-btn"
>
5回复
</text></text
>
<
view>
2天前
</view><view
class=
"uni-comment-replay-btn"
>
5回复
</view
>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -61,25 +57,15 @@
...
@@ -61,25 +57,15 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
:{
data
()
{
title
:
"
评论界面
"
return
{
title
:
"
评论界面
"
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.uni-comment
{
padding
:
5
rpx
0
;
display
:
flex
;
flex-grow
:
1
;
flex-direction
:
column
;}
.uni-comment-list
{
flex-wrap
:
nowrap
;
padding
:
10
rpx
0
;
margin
:
10
rpx
0
;
width
:
100%
;
display
:
flex
;}
.uni-comment-face
{
width
:
70
upx
;
height
:
70
upx
;
border-radius
:
100%
;
margin-right
:
20
upx
;
flex-shrink
:
0
;
overflow
:
hidden
;}
.uni-comment-face
image
{
width
:
100%
;
border-radius
:
100%
;}
.uni-comment-body
{
width
:
100%
;}
.uni-comment-top
{
line-height
:
1.5em
;
justify-content
:
space-between
;}
.uni-comment-top
text
{
color
:
#0A98D5
;
font-size
:
24
upx
;}
.uni-comment-top
text
:last-child
{
color
:
#666666
;}
.uni-comment-date
{
line-height
:
1.5em
;
justify-content
:
space-between
;}
.uni-comment-date
text
{
color
:
#666666
;
font-size
:
24
upx
;}
.uni-comment-content
{
line-height
:
1.6em
;
font-size
:
28
upx
;
padding
:
8
rpx
0
;}
.uni-comment-zan
{
color
:
#0A98D5
!important
;}
.uni-comment-replay-btn
{
background
:
#F4F5F6
;
font-size
:
24
upx
;
padding
:
8
rpx
15
upx
;
border-radius
:
30
upx
;
color
:
#333
!important
;
margin
:
0
10
upx
;}
</
style
>
</
style
>
examples/hello-uniapp/pages/template/mpvue-picker/mpvue-picker.vue
浏览文件 @
039d5985
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
data
()
{
data
()
{
return
{
return
{
title
:
"
mvpue-picker 使用示例
"
,
title
:
"
mvpue-picker 使用示例
"
,
pickerValueDefault
:
[
0
,
0
],
pickerSingleArray
:
[{
pickerSingleArray
:
[{
label
:
'
中国
'
,
label
:
'
中国
'
,
value
:
1
value
:
1
...
@@ -58,7 +57,8 @@
...
@@ -58,7 +57,8 @@
pickerText
:
''
,
pickerText
:
''
,
mode
:
''
,
mode
:
''
,
deepLength
:
1
,
deepLength
:
1
,
pickerValueDefault
:
[
0
]
pickerValueDefault
:
[
0
],
pickerValueArray
:[]
};
};
},
},
methods
:
{
methods
:
{
...
...
examples/hello-uniapp/pages/template/steps/steps.vue
浏览文件 @
039d5985
...
@@ -27,21 +27,14 @@
...
@@ -27,21 +27,14 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
:{
data
()
{
title
:
"
步骤
"
return
{
title
:
"
步骤
"
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
page
{
background
:
#FFFFFF
;}
page
{
background
:
#FFFFFF
;}
.uni-steps
{
padding
:
20
upx
30
upx
;
flex-grow
:
1
;
display
:
flex
;
flex-wrap
:
wrap
;}
.uni-steps
view
{
display
:
flex
;
flex-wrap
:
wrap
;
float
:
none
;}
.uni-steps
.step
{
width
:
31.3%
;
margin
:
0
1%
;
flex-wrap
:
nowrap
;}
.uni-steps
.step-circle
{
width
:
50
upx
;
height
:
50
upx
;
border-radius
:
50
upx
;
background
:
#F1F1F3
;
justify-content
:
center
;
line-height
:
50
upx
;
flex-shrink
:
0
;
margin-right
:
15
upx
;
color
:
#666
;
font-size
:
28
upx
;}
.uni-steps
.step-content
{
width
:
100%
;
height
:
22
upx
;
border-bottom
:
1px
solid
#F1F2F3
;}
.uni-steps
.step-title
{
line-height
:
50
upx
;
height
:
50
upx
;
background
:
#FFFFFF
;
width
:
auto
;
overflow
:
hidden
;
padding-right
:
8
upx
;}
.uni-steps
.current
.step-circle
{
background
:
#00B26A
;
color
:
#FFFFFF
;}
.uni-steps
.current
.step-content
{
border-color
:
#00B26A
;}
.uni-steps
.current
.step-title
{
color
:
#00B26A
;}
</
style
>
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录