mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
d95fd71eb0
* feat: modify demo * feat: refactor autocomplate
35 lines
827 B
C#
35 lines
827 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public interface IAutoCompleteRef
|
|
{
|
|
void SetInputComponent(IAutoCompleteInput input);
|
|
|
|
Task InputFocus(FocusEventArgs e);
|
|
|
|
Task InputInput(ChangeEventArgs args);
|
|
|
|
Task InputKeyDown(KeyboardEventArgs args);
|
|
|
|
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; }
|
|
}
|
|
}
|