<view class="dateCom">
<u-calendar v-model="show" ref="calendar" @change="change" mode="range" safe-area-inset-bottom
:start-text="startText" :end-text="endText" :range-color="rangeColor" :range-bg-color="rangeBgColor"
:active-bg-color="activeBgColor" :btn-type="btnType">
</u-calendar>
</view>
css
/deep/.u-flex {
display: flex;
flex-direction: row;
align-items: center;
}
/deep/.u-row-center {
justify-content: center;
}
.dateCom ::v-deep .u-calendar__action {
display: flex;
justify-content: space-between;
align-items: center;
justify-content: center;
}
1 个回复
1***@qq.com (作者) - 还是小幸运呀~
解决办法: 把样式在App.vue里面重写一遍,而不是在当前页面重写