fix: 更正无自定义按钮时移动端出现 gear 组件
This commit is contained in:
parent
e1c6cf7a1e
commit
f0fff56a6b
|
@ -1,5 +1,6 @@
|
|||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Rendering;
|
||||
using System.Linq;
|
||||
|
||||
namespace Bootstrap.Admin.Pages.Components
|
||||
{
|
||||
|
@ -20,7 +21,7 @@ namespace Bootstrap.Admin.Pages.Components
|
|||
protected override void BuildRenderTree(RenderTreeBuilder builder)
|
||||
{
|
||||
// 渲染正常按钮
|
||||
if (Toolbar != null)
|
||||
if (Toolbar != null && Toolbar.Buttons.Any())
|
||||
{
|
||||
// 渲染 Toolbar 按钮
|
||||
//<div class="toolbar btn-group">
|
||||
|
|
Loading…
Reference in New Issue