2020-08-26 22:37:08 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
2020-11-02 23:05:17 +08:00
|
|
|
|
public interface IAutoCompleteRef
|
2020-08-26 22:37:08 +08:00
|
|
|
|
{
|
|
|
|
|
void SetInputComponent(IAutoCompleteInput input);
|
|
|
|
|
|
|
|
|
|
Task InputFocus(FocusEventArgs e);
|
|
|
|
|
|
|
|
|
|
Task InputInput(ChangeEventArgs args);
|
|
|
|
|
|
|
|
|
|
Task InputKeyDown(KeyboardEventArgs args);
|
2020-11-02 23:05:17 +08:00
|
|
|
|
|
|
|
|
|
void AddOption(AutoCompleteOption option);
|
|
|
|
|
|
|
|
|
|
void RemoveOption(AutoCompleteOption option);
|
|
|
|
|
|
|
|
|
|
void SetActiveItem(AutoCompleteOption item);
|
|
|
|
|
|
|
|
|
|
Task SetSelectedItem(AutoCompleteOption item);
|
|
|
|
|
|
|
|
|
|
Func<object, object, bool> CompareWith { get; set; }
|
|
|
|
|
|
|
|
|
|
object SelectedValue { get; set; }
|
|
|
|
|
|
|
|
|
|
object ActiveValue { get; set; }
|
2020-08-26 22:37:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|