@code { ///
/// 获得 默认数据集合 ///
private readonly IEnumerable Items = new SelectedItem[] { new SelectedItem ("Beijing", "北京"), new SelectedItem ("Shanghai", "上海"), new SelectedItem ("Guangzhou", "广州"), new SelectedItem ("Shenzhen", "深圳"), new SelectedItem ("Chengdu", "成都"), new SelectedItem ("Wuhan", "武汉"), new SelectedItem ("Dalian", "大连"), new SelectedItem ("Hangzhou", "杭州"), new SelectedItem ("Lianyungang", "连云港"), }; private string SelectedItemsValue { get; set; } = "Beijing,Chengdu"; private Task OnSelectedItemsChanged(IEnumerable items) { Trace?.Log($"选中项集合：{string.Join(",", items.Select(i => i.Value))}"); return Task.CompletedTask; } }