@@ -127,23 +127,15 @@ else
127127 RenderFragment RenderChromeDisabledHeader (TabItem item ) =>
128128 @<div @key =" @item" class =" @GetItemWrapClassString(item)" >
129129 <div role =" tab" class =" @GetClassString(item)" >
130- @if (! string .IsNullOrEmpty (item .Icon ))
131- {
132- <i class =" @GetIconClassString(item.Icon)" ></i >
133- }
134- <span class =" tabs-item-text" >@item.Text </span >
130+ @RenderHeaderContent(item)
135131 </div >
136132 <i class =" tab-corner tab-corner-left" ></i >
137133 <i class =" tab-corner tab-corner-right" ></i >
138134 </div >;
139135
140136 RenderFragment RenderDefaultDisabledHeader (TabItem item ) =>
141137 @<div @key =" item" role =" tab" class =" @GetClassString(item)" >
142- @if (! string .IsNullOrEmpty (item .Icon ))
143- {
144- <i class =" @GetIconClassString(item.Icon)" ></i >
145- }
146- <span class =" tabs-item-text" >@item.Text </span >
138+ @RenderHeaderContent(item)
147139 </div >;
148140
149141 RenderFragment RenderChromeHeader (TabItem item ) =>
@@ -167,15 +159,18 @@ else
167159 <i class =" @GetIconClassString(item.Icon)" ></i >
168160 }
169161 <span class =" tabs-item-text" >@item.Text </span >
170- @if (ShowFullScreen && item .ShowFullScreen )
171- {
172- <FullScreenButton TargetId =" @GetIdByTabItem(item)" ></FullScreenButton >
173- }
174- @if (ShowClose && item .Closable )
162+ @if (! item .IsDisabled )
175163 {
176- <span class =" tabs-item-close" @onclick:stopPropagation @onclick:preventDefault @onclick =" () => RemoveTab(item)" >
177- <i class =" @CloseIcon" ></i >
178- </span >
164+ @if (ShowFullScreen && item .ShowFullScreen )
165+ {
166+ <FullScreenButton TargetId =" @GetIdByTabItem(item)" ></FullScreenButton >
167+ }
168+ @if (ShowClose && item .Closable )
169+ {
170+ <span class =" tabs-item-close" @onclick:stopPropagation @onclick:preventDefault @onclick =" () => RemoveTab(item)" >
171+ <i class =" @CloseIcon" ></i >
172+ </span >
173+ }
179174 }
180175 </div >;
181176}
0 commit comments