Skip to content

Commit eb96859

Browse files
authored
Merge pull request #11 from zhetengbiji/master
2 parents 27d3059 + 7d97d97 commit eb96859

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/mpvue-picker/mpvuePicker.vue

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div class="mpvue-picker">
33
<div :class="{'pickerMask':showPicker}" @click="maskClick" catchtouchmove="true"></div>
44
<div class="mpvue-picker-content " :class="{'mpvue-picker-view-show':showPicker}">
5-
<div class="mpvue-picker__hd">
5+
<div class="mpvue-picker__hd" catchtouchmove="true">
66
<div class="mpvue-picker__action" @click="pickerCancel">取消</div>
7-
<div class="mpvue-picker__action" @click="pickerConfirm">确定</div>
7+
<div class="mpvue-picker__action" :style="{color:themeColor}" @click="pickerConfirm">确定</div>
88
</div>
99
<!-- 单列 -->
1010
<picker-view indicator-style="height: 40px;" class="mpvue-picker-view" :value="pickerValue" @change="pickerChange" v-if="mode==='selector' && pickerValueSingleArray.length > 0">
@@ -106,7 +106,9 @@ export default {
106106
deepLength: {
107107
type: Number,
108108
default: 2
109-
}
109+
},
110+
/* 主题色 */
111+
themeColor: String
110112
},
111113
watch: {
112114
pickerValueArray(oldVal, newVal) {
@@ -436,6 +438,7 @@ export default {
436438
.picker-item {
437439
text-align: center;
438440
line-height: 40px;
441+
font-size: 16px;
439442
}
440443
.mpvue-picker-view {
441444
position: relative;

0 commit comments

Comments
 (0)