提交 039d5985 编写于 作者: H hulinneil

Merge branch 'master' of https://github.com/dcloudio/uni-app

...@@ -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:20upx 0; padding:20upx 0;
} }
\ No newline at end of file
/* steps */
.uni-steps{padding:20upx 30upx; 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:50upx; height:50upx; border-radius:50upx; background:#F1F1F3; justify-content:center; line-height:50upx; flex-shrink:0; margin-right:15upx; color:#666; font-size:28upx;}
.uni-steps .step-content{width:100%; height:22upx; border-bottom:1px solid #F1F2F3;}
.uni-steps .step-title{line-height:50upx; height:50upx; background:#FFFFFF; width:auto; overflow:hidden; padding-right:8upx;}
.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:5rpx 0; display: flex; flex-grow:1; flex-direction: column;}
.uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;}
.uni-comment-face{width:70upx; height:70upx; border-radius:100%; margin-right:20upx; 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:24upx;}
.uni-comment-top text:last-child{color:#666666;}
.uni-comment-date{line-height:38upx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;}
.uni-comment-date view{color:#666666; font-size:24upx; line-height:38upx;}
.uni-comment-content{line-height:1.6em; font-size:28upx; padding:8rpx 0;}
.uni-comment-replay-btn{background:#FFF; font-size:24upx; line-height:28upx; padding:5rpx 20upx; border-radius:30upx; color:#333 !important; margin:0 10upx;}
\ No newline at end of file
...@@ -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;
......
...@@ -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) {
......
...@@ -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:5rpx 0; display: flex; flex-grow:1; flex-direction: column;}
.uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;}
.uni-comment-face{width:70upx; height:70upx; border-radius:100%; margin-right:20upx; 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:24upx;}
.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:24upx;}
.uni-comment-content{line-height:1.6em; font-size:28upx; padding:8rpx 0;}
.uni-comment-zan{color:#0A98D5 !important;}
.uni-comment-replay-btn{background:#F4F5F6; font-size:24upx; padding:8rpx 15upx; border-radius:30upx; color:#333 !important; margin:0 10upx;}
</style> </style>
...@@ -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: {
......
...@@ -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:20upx 30upx; 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:50upx; height:50upx; border-radius:50upx; background:#F1F1F3; justify-content:center; line-height:50upx; flex-shrink:0; margin-right:15upx; color:#666; font-size:28upx;}
.uni-steps .step-content{width:100%; height:22upx; border-bottom:1px solid #F1F2F3;}
.uni-steps .step-title{line-height:50upx; height:50upx; background:#FFFFFF; width:auto; overflow:hidden; padding-right:8upx;}
.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.
先完成此消息的编辑!
想要评论请 注册