From e01f3f89952ad61259519aa6c56388118b7980ce Mon Sep 17 00:00:00 2001 From: jeremywu <15975785+JeremyWuuuuu@users.noreply.github.com> Date: Thu, 7 Jan 2021 17:53:54 +0800 Subject: [PATCH] fix(select): Replace symbols to strings to avoid individual importing symbol issue (#1224) - Replace symbols to strings to avoid individu --- packages/select/src/token.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/select/src/token.ts b/packages/select/src/token.ts index 6dadf660fb..b15029af8a 100644 --- a/packages/select/src/token.ts +++ b/packages/select/src/token.ts @@ -28,9 +28,10 @@ export interface SelectContext { handleOptionSelect(vm: unknown, byClick: boolean): void } -export const selectGroupKey: InjectionKey = Symbol('SelectGroup') +// For individual build sharing injection key, we had to make `Symbol` to string +export const selectGroupKey = 'ElSelectGroup' as unknown as InjectionKey -export const selectKey: InjectionKey = Symbol('Select') +export const selectKey = 'ElSelect' as unknown as InjectionKey export const selectEvents = { queryChange: 'elOptionQueryChange',