File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/BootstrapBlazor/Components/EditorForm Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,12 @@ public partial class EditorForm<TModel> : IShowLabel
114114 [ Parameter ]
115115 public bool IsDisplay { get ; set ; }
116116
117+ /// <summary>
118+ /// 获得/设置 是否显示 Display 组件的 Tooltip 默认为 false
119+ /// </summary>
120+ [ Parameter ]
121+ public bool IsShowDisplayTooltip { get ; set ; }
122+
117123 /// <summary>
118124 /// 获得/设置 是否使用 SearchTemplate 默认 false 使用 EditTemplate 模板
119125 /// </summary>
@@ -280,7 +286,7 @@ private RenderFragment AutoGenerateTemplate(IEditorItem item) => builder =>
280286 {
281287 if ( IsDisplay || ! item . CanWrite ( typeof ( TModel ) , ItemChangedType , IsSearch . Value ) )
282288 {
283- builder . CreateDisplayByFieldType ( item , Model ) ;
289+ builder . CreateDisplayByFieldType ( item , Model , IsShowDisplayTooltip ) ;
284290 }
285291 else
286292 {
You can’t perform that action at this time.
0 commit comments