UI Inputs 在 ABP 项目中的路径:

IInputType
:定义输入类型接口;

InputTypeBase
:默认实现 IInputType
接口;

InputTypeAttribute
:定义输入类型属性;
SingleLineStringInputType
:单行字符串;
1 2 3 4 5 6 7 8 9 10 11 12
| public override void SetFeatures(IFeatureDefinitionContext context) { var contacts = context.Create(Names.Contacts, "false"); contacts.CreateChildFeature(Names.MaxContactCount, "100", inputType: new SingleLineStringInputType(new NumericValueValidator(1, 10000)));
contacts.CreateChildFeature(Names.ChildFeatureToOverride, "ChildFeature"); contacts.RemoveChildFeature(Names.ChildFeatureToOverride); contacts.CreateChildFeature(Names.ChildFeatureToOverride, "ChildFeatureToOverride");
contacts.CreateChildFeature(Names.ChildFeatureToDelete, "ChildFeatureToDelete"); contacts.RemoveChildFeature(Names.ChildFeatureToDelete); }
|
CheckboxInputType
:复选框类型;
ComboboxInputType
:下拉列表;
InputType
验证:Feature
对象的 InputType
对象,InputType
的 Validator
对象的 IsValid
方法;
