public void SetComponent <A, B>(A component, ControlAttribute attribute) where A : IOeipComponent <B> { component.ControlAttribute = attribute; component.DisplayName = attribute.DisplayName; component.SetValueChangeAction(OnValueChange); }
/// <summary> /// 根据字段的ControlAttribute生成对应UI /// </summary> /// <param name="attribute"></param> /// <returns></returns> public abstract IOeipComponent CreateComponent(ControlAttribute attribute);