File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" mpvue-picker" >
3
3
<div :class =" {'pickerMask':showPicker}" @click =" maskClick" catchtouchmove =" true" ></div >
4
4
<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 " >
6
6
<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 >
8
8
</div >
9
9
<!-- 单列 -->
10
10
<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 {
106
106
deepLength: {
107
107
type: Number ,
108
108
default: 2
109
- }
109
+ },
110
+ /* 主题色 */
111
+ themeColor: String
110
112
},
111
113
watch: {
112
114
pickerValueArray (oldVal , newVal ) {
@@ -436,6 +438,7 @@ export default {
436
438
.picker-item {
437
439
text-align : center ;
438
440
line-height : 40px ;
441
+ font-size : 16px ;
439
442
}
440
443
.mpvue-picker-view {
441
444
position : relative ;
You can’t perform that action at this time.
0 commit comments