Replies: 6 comments
-
@07akioni 感觉可以在 |
Beta Was this translation helpful? Give feedback.
-
发现 NSpace 设置 rem 不起作用 |
Beta Was this translation helpful? Give feedback.
-
NFlex 设置 rem 也不生效 好像涉及到 gap 属性的值设置 rem 都不生效 |
Beta Was this translation helpful? Give feedback.
-
设置之后 select面板不会展示 |
Beta Was this translation helpful? Give feedback.
-
Thanks to you, I moved it to the discussion area for more people to see. |
Beta Was this translation helpful? Give feedback.
-
Some uses of VirtualList cannot be converted, example: naive-ui/src/_internal/select-menu/src/SelectMenu.tsx Lines 518 to 529 in 942de11 The itemSize and padding here are solved from the styles using seemly's depx, by: So the Select component can override the naive-ui/themes/tusimple/src/theme-overrides-light.ts Lines 246 to 258 in 942de11 A dirtier option might be to traverse the theme for convert after getting the screen size at init time. |
Beta Was this translation helpful? Give feedback.
-
Clear and concise description of the problem
简单做了个 Naive UI
px
转rem
的小工具Make a tool for Naive UI
px
to convertrem
Naive UI Rem Converter
Suggested solution
输入基准值并点击
Convert
按钮Enter the benchmark value and click the
Convert
button.可在右侧切换组件名称及主题
You can switch the component name and theme on the right side.
复制配置到
NConfigProvider
的theme-overrides
属性Copy the configuration to the
theme-overrides
attribute ofNConfigProvider
.Alternative
No response
Additional context
#4250 #6096 #4738 #3940 #3841 #3288 #3108 #2102 #802
Validations
Beta Was this translation helpful? Give feedback.
All reactions