@@ -1501,7 +1501,7 @@ RenderFragment RenderTemplate() => col.Template == null
15011501 : col . Template ( item ) ;
15021502
15031503 RenderFragment RenderEditTemplate ( ) => col . EditTemplate == null
1504- ? new RenderFragment ( builder => builder . CreateComponentByFieldType ( this , col , item , changedType , isSearch : false , col . GetLookupService ( InjectLookupService ) , skipValidate : true ) )
1504+ ? new RenderFragment ( builder => builder . CreateComponentByFieldType ( this , col , item , changedType , isSearch : false , col . GetLookupService ( InjectLookupService ) , skipValidate : false ) )
15051505 : col . EditTemplate ( item ) ;
15061506 }
15071507
@@ -1840,6 +1840,36 @@ private void OnTouchEnd()
18401840
18411841 private object ? GetKeyByITem ( TItem item ) => SortableList != null ? item : null ; //OnGetRowKey?.Invoke(item);
18421842
1843+ private RenderFragment RenderRowCell ( TItem item ) => builder =>
1844+ {
1845+ var isInCellEditRow = InCellMode && SelectedRows . FirstOrDefault ( ) == item ;
1846+ if ( isInCellEditRow )
1847+ {
1848+ builder . AddContent ( 0 , RenderRowContentWithValidateForm ( item ) ) ;
1849+ }
1850+ else
1851+ {
1852+ builder . AddContent ( 1 , RenderRowContent ( item ) ) ;
1853+ }
1854+ } ;
1855+
1856+ private RenderFragment RenderRowContent ( TItem item ) => builder =>
1857+ {
1858+ if ( RowContentTemplate != null )
1859+ {
1860+ var columns = GetVisibleColumns ( ) ;
1861+ builder . AddContent ( 0 , RowContentTemplate ( new ( item , columns , ActiveRenderMode ) ) ) ;
1862+ }
1863+ else
1864+ {
1865+ builder . AddContent ( 1 , RenderContentRow ( item ) ) ;
1866+ }
1867+ if ( ShowExtendButtons && ! IsExtendButtonsInRowHeader )
1868+ {
1869+ builder . AddContent ( 2 , RenderRowExtendButtons ( item ) ) ;
1870+ }
1871+ } ;
1872+
18431873 /// <summary>
18441874 /// Dispose 方法
18451875 /// </summary>
0 commit comments