英文:
Reagent material ui paper elevation
问题
我不知道如何在 reagent-material-ui 中设置 Material-UI paper 的高度(elevation)。
Material UI 中的 Paper 高度:https://mui.com/material-ui/react-paper/#elevation
我尝试了以下方式:
[paper {:variant :outlined :elevation 12} "test 123"]
但未显示高度效果:
no-elevation
英文:
I don't know how to set the elevation for materia-ui paper in reagent-material-ui (https://github.com/arttuka/reagent-material-ui)
Paper elevation in Material UI: https://mui.com/material-ui/react-paper/#elevation
I tried the trivial:
[paper {:variant :outlined :elevation 12} "test 123"]
No elevation is rendered:
no-elevation
答案1
得分: 1
问题在一个我直到现在都没有注意到的错误中明确说明。
带轮廓的变体不支持高程。移除了带轮廓的变体,高程就正常显示了。
英文:
The problem was clearly stated in an error I haven't noticed until now.
Outlined variant does not work with elevation. Removed the outlined variant and the elevation was rendered.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论