UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 897 B
{"version":3,"file":"token.mjs","sources":["../../../../../../packages/components/select-v2/src/token.ts"],"sourcesContent":["import type { OptionProps, SelectProps } from './defaults'\nimport type { ExtractPropTypes, InjectionKey } from 'vue'\nimport type { Option } from './select.types'\n\nexport interface SelectV2Context {\n props: ExtractPropTypes<typeof SelectProps>\n expanded: boolean\n onSelect: (option: Option<any>, index: number, byClick?: boolean) => void\n onHover: (idx: number) => void\n onKeyboardNavigate: (direction: 'forward' | 'backward') => void\n onKeyboardSelect: () => void\n}\n\nexport const selectV2InjectionKey =\n 'ElSelectV2Injection' as any as InjectionKey<SelectV2Context>\nexport type IOptionProps = ExtractPropTypes<typeof OptionProps>\nexport type ISelectProps = ExtractPropTypes<typeof SelectProps>\n"],"names":[],"mappings":"AAAY,MAAC,oBAAoB,GAAG;;;;"}