using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using wispro.sp.entity; namespace wispro.sp.web.Components { public partial class RightMenuTreeNode { [Parameter] public Department Department { get; set; } [Parameter] public EventCallback OnCreate { get; set; } [Parameter] public EventCallback OnEdit { get; set; } [Parameter] public EventCallback OnDelete { get; set; } private void _OnCreate(Department dept) { if (OnCreate.HasDelegate) { OnCreate.InvokeAsync(dept); } } private void _OnEdit(Department dept) { if (OnEdit.HasDelegate) { OnEdit.InvokeAsync(dept); } } private void _OnDelete(Department dept) { if (OnDelete.HasDelegate) { OnDelete.InvokeAsync(dept); } } } }