Reagent材料UI纸张高程

huangapple go评论56阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月22日 17:32:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76530457.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定