33 lines
716 B
C#
33 lines
716 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Mini.Web.WebHelper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mini.Web.Areas.Admin.Components
|
|
{
|
|
public class ToolBarViewComponent : ViewComponent
|
|
{
|
|
/*
|
|
如果需要构造函数的话,你就创建
|
|
*/
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public ToolBarViewComponent()
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// 异步调用
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public async Task<IViewComponentResult> InvokeAsync(ToolBar ToolBar)
|
|
{
|
|
return View(ToolBar);
|
|
}
|
|
|
|
}
|
|
}
|