ant-design-blazor/components/anchor/IAnchor.cs
LI ZICHAO 71bac2e85d fix: children components dispose (#399)
* Children components using CascadingParameter add itself to parent component.However, when children components disposed, they are not remove from parent component. For example, when items in checkgroup have changed , it may causes Index was outside the bounds of the array at AntDesign.CheckboxGroup.OnCheckboxChange.To fix these bug, Adding remove function in dispose process is the solution of this commit.

* fix: some exception

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-07-21 23:48:43 +08:00

20 lines
377 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AntDesign
{
public interface IAnchor
{
//List<AnchorLink> Links { get; }
void Add(AnchorLink anchorLink);
void Remove(AnchorLink anchorLink);
void Clear();
List<AnchorLink> FlatChildren();
}
}