如何在对话素材界面中设置边框半径?此图像是代表按钮的弹出对话框.我想在这个弹出式对话框上设置边框半径以进行造型. 我try 在SX中插入borderRadius,但不起作用
这是我的代码
<Dialog
open={Boolean(open)}
sx={{
backdropFilter: "blur(5px) sepia(5%)",
}}
//onMouseOutCapture={()=> setOpen(false)}
>
<Popover
open={Boolean(open)}
anchorEl={open}
anchorOrigin={{
vertical: 'center',
horizontal: 'left',
}}
transformOrigin={{
vertical : 'center',
horizontal : 'left',
}}
>
<BoxContainer2
onMouseLeave={() => setOpen(null)}
>
<Button
sx={{
width:"100%",
borderRadius:10,
"&:hover":{
//border: "1px solid #00FF00",
//color: "gray",
backgroundColor: "white",
//opacity: 0,
}
}}>
tes
</Button>
</BoxContainer2>
</Popover>
</Dialog>