CenterPopup 组件 --max-width 无法更改 #6575
Unanswered
JasonZhongZexin
asked this question in
Q&A
Replies: 1 comment
-
参考一下文档, ![]() 或者就是参考文档提供的全局变量参数 ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在使用CenterPopup时,组件默认的--max-width 是75vw,根据文档描述--max-width在css中是可以自行修改的。实际使用过程中,无论在css或者typescript中设置新的--max-width值后发现这个值并没作用到组件中。
Typescript
CSS
上面例子中无论是在css中尝试更改 --max-width 还是在css中更改,当在浏览器查看的时候,centerPopup的最大宽度仍旧是75vw
以下为更改后在浏览器里看到的css的样式:
Beta Was this translation helpful? Give feedback.
All reactions