Files
MASA.Blazor/docs/Masa.Blazor.Docs/wwwroot/pages/mobiles/mobile-picker-views/zh-CN.md
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

1.2 KiB
Raw Blame History

title, desc, tag, related
title desc tag related
Mobile picker views移动端选择视图 专为移动设备设计的选择视图。提供多个选项集合供用户选择,支持单列选择、多列选择和级联选择。 预置
/blazor/mobiles/mobile-pickers
/blazor/mobiles/mobile-date-time-pickers
/blazor/mobiles/mobile-time-pickers

MMobilePickerView is the content area of PMobilePicker.

安装

dotnet add package Masa.Blazor.MobileComponents

示例

属性

级联

使用级联的 ColumnsItemChildren 字段可以实现选项级联的效果。

级联选择的数据嵌套深度需要一致,如果某些选项没有子选项,则可以使用空字符串作为占位符。

禁止选择某项

自定义项高度

通过 Itemheight 可以自定义选项的高度。目前只支持 px