masastack / MASA.Blazor

Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
https://docs.masastack.com/blazor/getting-started/installation
MIT License
1.12k stars 151 forks source link

How to get masa component width ? #1892

Closed huxinshuo closed 3 weeks ago

huxinshuo commented 3 weeks ago

怎么获得component的width ,component的宽度是不定的。 怎么每次窗口大小变化时候,获得component的宽度。@bind-Value="value"?style="width:@bind-Value="value";">?有没有直接绑定一个宽度的功能。