mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* style: add import lint * chore: apply eslint rules * chore: add stricter lint * chore: lint all files * auto fix * manually fix * restore build-indices.ts
17 lines
668 B
TypeScript
17 lines
668 B
TypeScript
import type { OptionProps, SelectProps } from './defaults'
|
|
import type { ExtractPropTypes, InjectionKey } from 'vue'
|
|
import type { Option } from './select.types'
|
|
|
|
export interface SelectV2Context {
|
|
props: ExtractPropTypes<typeof SelectProps>
|
|
expanded: boolean
|
|
onSelect: (option: Option<any>, index: number, byClick?: boolean) => void
|
|
onKeyboardNavigate: (direction: 'forward' | 'backward') => void
|
|
onKeyboardSelect: () => void
|
|
}
|
|
|
|
export const selectV2InjectionKey =
|
|
'ElSelectV2Injection' as any as InjectionKey<SelectV2Context>
|
|
export type IOptionProps = ExtractPropTypes<typeof OptionProps>
|
|
export type ISelectProps = ExtractPropTypes<typeof SelectProps>
|