Files
MASA.Blazor/docs/Masa.Blazor.Docs/Examples/mobiles/swiper/AutoHeight.razor
capdiem 9ffb99fcf4 ♻ refactor: migrate all mobile components to a standalone project (#2385)
* ♻ refactor: migrate all mobile components to a separate project

* remove unused files

* update

* update locale

* 🐛 fix: updating the logic of fetching latest release version

* update cicd

* update
2025-04-17 17:12:58 +08:00

22 lines
812 B
Plaintext

<MCheckbox @bind-Value="@autoHeight" HideDetails="@true" Label="AutoHeight"></MCheckbox>
<MSwiper AutoHeight="@autoHeight" @key="@autoHeight">
<MSwiperSlide Style="background-color: var(--m-theme-surface-container); height: 200px;"
Class="d-flex align-center justify-center">
<h3> Slide 1 </h3>
</MSwiperSlide>
<MSwiperSlide Style="background-color: var(--m-theme-surface-container); height: 300px;"
Class="d-flex align-center justify-center">
<h3> Slide 2 </h3>
</MSwiperSlide>
<MSwiperSlide Style="background-color: var(--m-theme-surface-container); height: 200px;"
Class="d-flex align-center justify-center">
<h3> Slide 3 </h3>
</MSwiperSlide>
</MSwiper>
@code {
private bool autoHeight = true;
}