mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
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:
parent
e844ede9ce
commit
e01f3f8995
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user