/// <summary> /// 明细行功能中切换行状态时调用此方法 /// </summary> /// <param name="item"></param> protected EventCallback <MouseEventArgs> ExpandDetailRow(TItem item) => EventCallback.Factory.Create <MouseEventArgs>(this, () => { DetailRows.Add(item); if (ExpandRows.Contains(item)) { ExpandRows.Remove(item); } else { ExpandRows.Add(item); } });
/// <summary> /// 明细行功能中切换行状态时调用此方法 /// </summary> /// <param name="item"></param> public void ExpandDetailRow(TItem item) { DetailRows.Add(item); if (ExpandRows.Contains(item)) { ExpandRows.Remove(item); } else { ExpandRows.Add(item); } }