浏览代码

fix: add symbolic name to buttonAnimationInjectionKey to improve readability

nian 3 月之前
父节点
当前提交
7e80c9826b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/button-animation/injection.ts

+ 1 - 1
src/components/button-animation/injection.ts

@@ -1,4 +1,4 @@
 import type { ButtonAnimationProps } from './interface'
 import type { InjectionKey } from 'vue'
 
-export const buttonAnimationInjectionKey = Symbol() as InjectionKey<Partial<ButtonAnimationProps>>
+export const buttonAnimationInjectionKey: InjectionKey<Partial<ButtonAnimationProps>> = Symbol('buttonAnimationInjectionKey')