using iWare.Wms.Core.Util.LowCode.Front.Model;
using Furion.DatabaseAccessor;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Att;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Interface;
using Furion.Extras.iWare.Wms.Util.LowCode.Front.Model;
namespace Furion.Extras.iWare.Wms.Util.LowCode.Front
{
///
/// 下拉选择器
///
[FrontType("select")]
[FrontTypeBindDatabase(DbProvider.SqlServer, typeof(string), "nvarchar(200)")]
public class Front_Select : Front_Base, IFrontDynamic
{
public override ViewDynamic Dynamic
{ get { return new ViewDynamic() { Dynamic = this.Options.Dynamic, DynamicKey = this.Options.DynamicKey }; } }
}
public class Front_Select_Options : IFrontDynamicOptions
{
///
/// 动态数据
///
public string DynamicKey { get; set; }
///
/// 是否是动态数据
///
public bool Dynamic { get; set; }
///
/// 宽度
///
public string Width { get; set; }
///
/// 多选
///
public bool Multiple { get; set; }
///
/// 禁用
///
public bool Disabled { get; set; }
///
/// 可清除
///
public bool Clearable { get; set; }
///
/// 隐藏
///
public bool Hidden { get; set; }
///
/// 占位内容
///
public string Placeholder { get; set; }
///
/// 选项配置
///
public Front_Option[] Options { get; set; }
///
/// 可搜索
///
public bool ShowSearch { get; set; }
///
/// 默认值
///
public string DefaultValue { get; set; }
}
}