大佬教程收集整理的这篇文章主要介绍了覆盖 withStyles 中背景的不透明度不起作用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个使用 withStyles 的 StyledDialog,但我不知道如何覆盖 MuiBACkdrop-root,这样它就不会使内容变暗。这个类的正确字段名称是什么?
const StyledDialog = withStyles({
BACkdrop:{
root:{
BACkgroundcolor:'transparent'
},},paper:{
padding: 0,BoxShadow:'none',height: 188,wIDth:'35%',Transition:' all 0.8s ease-in-out',borderRadius:14
}
})(Dialog);
P.S 我知道我可以将其用作 Dialog 道具,例如
BACkdropProps={{style:{BACkground:'transparent'} }}
但我想用 withStyles 写
要覆盖 MuiBACkdrop-root,您应该这样做:
import { getRepository } from "typeorm";
import { Report } from "../models";
export interface IReportPayload {
incidentDesc: String;
city: String;
country: String;
}
export const getReports = async (): Promise<Array<Report>> => {
const reportRepository = getRepository(Report);
return reportRepository.find();
};
以上是大佬教程为你收集整理的覆盖 withStyles 中背景的不透明度不起作用全部内容,希望文章能够帮你解决覆盖 withStyles 中背景的不透明度不起作用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。