ant-design-blazor/components/core/Helpers/StyleHelper.cs
James Yeung 7ab67d1bea feat: add drawer (#28)
* feat: add drawer

* feat(module:drawer): add setup for placementchange
2020-03-22 21:24:41 +08:00

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";
}
}