fix(select): Replace symbols to strings to avoid individual importing symbol issue (#1224)

- Replace symbols to strings to avoid individu
This commit is contained in:
jeremywu 2021-01-07 17:53:54 +08:00 committed by GitHub
parent e844ede9ce
commit e01f3f8995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,9 +28,10 @@ export interface SelectContext {
handleOptionSelect(vm: unknown, byClick: boolean): void
}
export const selectGroupKey: InjectionKey<SelectGroupContext> = Symbol('SelectGroup')
// For individual build sharing injection key, we had to make `Symbol` to string
export const selectGroupKey = 'ElSelectGroup' as unknown as InjectionKey<SelectGroupContext>
export const selectKey: InjectionKey<SelectContext> = Symbol('Select')
export const selectKey = 'ElSelect' as unknown as InjectionKey<SelectContext>
export const selectEvents = {
queryChange: 'elOptionQueryChange',