34 lines
796 B
C#
34 lines
796 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 ToolBarNewViewComponent : ViewComponent
|
|
{
|
|
/*
|
|
如果需要构造函数的话,你就创建
|
|
*/
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public ToolBarNewViewComponent()
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// 异步调用
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public async Task<IViewComponentResult> InvokeAsync(ToolBar ToolBar, ToolBarNew[] otherToolBars)
|
|
{
|
|
ViewBag.toolBars = otherToolBars;
|
|
return View(ToolBar);
|
|
}
|
|
|
|
}
|
|
}
|