1 Star 0 Fork 825

SpaceWorm/Element Build Case

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
autocomplete.d.ts 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
诺墨 提交于 2020-12-09 14:11 . feat(project): init element project
import { ElementUIComponent } from './component'
export type SuggestionPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
export interface FetchSuggestionsCallback {
/**
* Callback function used in fetch-suggestions function
*
* @param data Suggestions to use
*/
(data: any[]): void
}
export interface FetchSuggestions {
/**
* The function passed into the fetch-suggestions property
*
* @param queryString Current value of the text input
* @param callback Callback function used to indicate that suggestions have completely fetched
*/
(queryString: string, callback: FetchSuggestionsCallback): void
}
/** Autocomplete Component */
export declare class ElAutocomplete extends ElementUIComponent {
/** The placeholder of Autocomplete */
placeholder: string
/** Whether to show clear button */
clearable: boolean
/** Whether Autocomplete is disabled */
disabled: boolean
/** Binding value */
value: string
/** Debounce delay when typing */
debounce: number
/** Placement of the popup menu */
placement: SuggestionPlacement
/** Name for the inner native input */
name: string
/** Key name of the input suggestion object for display */
valueKey: string
/** Whether to emit select event on enter when there is no autocomplete match */
selectWhenUnmatched: boolean
/** A method to fetch input suggestions. When suggestions are ready, invoke callback(data:[]) to return them to Autocomplete */
fetchSuggestions: FetchSuggestions
/** Custom class name for autocomplete's dropdown */
popperClass: string
/** Whether show suggestions when input focus */
triggerOnFocus: boolean
/** Prefix icon class */
prefixIcon: string
/** Suffix icon class */
suffixIcon: string
/** Whether to hide the loading icon in remote search */
hideLoading: boolean
/** Whether to append the dropdown to body */
popperAppendToBody: boolean
/**
* Focus the Input component
*/
focus (): void
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ztxhome/element-build-case.git
git@gitee.com:ztxhome/element-build-case.git
ztxhome
element-build-case
Element Build Case
master

搜索帮助