using System.Windows.Input;
using YY.Admin.Core;
namespace YY.Admin.Module
{
public class TabSource : BindableBase
{
private string? _name;
///
/// 名称
///
public virtual string? Name
{
get => _name;
set => SetProperty(ref _name, value);
}
private string? _icon;
///
/// 图标
///
public virtual string? Icon
{
get => _icon;
set => SetProperty(ref _icon, value);
}
///
/// 图标类型
///
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; }
}
}