1***@qq.com
1***@qq.com
  • 发布:2021-12-01 14:29
  • 更新:2021-12-01 14:36
  • 阅读:596

.u-flex在微信小程序不生效,重写样式也没有效果,(h5可以生效)

分类:HBuilderX
    <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;  
 }
2021-12-01 14:29 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者) - 还是小幸运呀~

解决办法: 把样式在App.vue里面重写一遍,而不是在当前页面重写

该问题目前已经被锁定, 无法添加新回复