소스 검색

fix: fix component type (#7601)

橙子 3 달 전
부모
커밋
24e1be47ca
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      packages/effects/common-ui/src/components/captcha/slider-captcha/index.vue

+ 3 - 3
packages/effects/common-ui/src/components/captcha/slider-captcha/index.vue

@@ -50,9 +50,9 @@ defineExpose({
 });
 
 const wrapperRef = useTemplateRef<HTMLDivElement>('wrapperRef');
-const barRef = useTemplateRef<typeof SliderCaptchaBar>('barRef');
-const contentRef = useTemplateRef<typeof SliderCaptchaContent>('contentRef');
-const actionRef = useTemplateRef<typeof SliderCaptchaAction>('actionRef');
+const barRef = useTemplateRef<InstanceType<typeof SliderCaptchaBar>>('barRef');
+const contentRef = useTemplateRef<InstanceType<typeof SliderCaptchaContent>>('contentRef');
+const actionRef = useTemplateRef<InstanceType<typeof SliderCaptchaAction>>('actionRef');
 
 watch(
   () => state.isPassing,