mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 12:09:59 +08:00
!2629 fix(#I51TKP): lookup not work on EditorItem component
* fix: 修复 EditorItem Lookup 不生效问题
This commit is contained in:
parent
f8ec74dda1
commit
9a43efc7be
@ -293,7 +293,7 @@ public static class Utility
|
|||||||
var fieldValue = GenerateValue(model, fieldName);
|
var fieldValue = GenerateValue(model, fieldName);
|
||||||
var fieldValueChanged = GenerateValueChanged(component, model, fieldName, fieldType);
|
var fieldValueChanged = GenerateValueChanged(component, model, fieldName, fieldType);
|
||||||
var valueExpression = GenerateValueExpression(model, fieldName, fieldType);
|
var valueExpression = GenerateValueExpression(model, fieldName, fieldType);
|
||||||
var lookup = item is ITableColumn col ? col.Lookup : lookUpService?.GetItemsByKey(item.LookUpServiceKey);
|
var lookup = item.Lookup ?? lookUpService?.GetItemsByKey(item.LookUpServiceKey);
|
||||||
var componentType = item.ComponentType ?? GenerateComponentType(fieldType, item.Rows != 0, lookup);
|
var componentType = item.ComponentType ?? GenerateComponentType(fieldType, item.Rows != 0, lookup);
|
||||||
builder.OpenComponent(0, componentType);
|
builder.OpenComponent(0, componentType);
|
||||||
if (componentType.IsSubclassOf(typeof(ValidateBase<>).MakeGenericType(fieldType)))
|
if (componentType.IsSubclassOf(typeof(ValidateBase<>).MakeGenericType(fieldType)))
|
||||||
|
Loading…
Reference in New Issue
Block a user