mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
7ab67d1bea
* feat: add drawer * feat(module:drawer): add setup for placementchange
10 lines
295 B
C#
10 lines
295 B
C#
namespace AntBlazor
|
|
{
|
|
public class StyleHelper
|
|
{
|
|
//fix the user set 100% or xxxVH etc..
|
|
public static string ToCssPixel(string value) => int.TryParse(value, out var _) ? $"{value}px" : value;
|
|
|
|
public static string ToCssPixel(int value) => $"{value}px";
|
|
}
|
|
} |