using System.Windows.Input; using YY.Admin.Core; namespace YY.Admin.Module { public class TabSource : BindableBase { /// /// 名称 /// public virtual string? Name { get; set; } /// /// 图标 /// public virtual string? Icon { get; set; } /// /// 图标类型 /// public virtual IconTypeEnum IconType { get; set; } = IconTypeEnum.AntDesign; /// /// 视图 /// public virtual string? ViewName { get; set; } /// /// 视图的导航参数 /// public INavigationParameters? NavigationParameter { get; set; } /// /// 是否选中 /// private bool _isSelected; public virtual bool IsSelected { get => _isSelected; set => SetProperty(ref _isSelected, value); } /// /// Tab是否允许关闭 /// private bool _isClosable = true; public bool IsClosable { get => _isClosable; set => SetProperty(ref _isClosable, value); } public ICommand? Command { get; set; } } }