瀏覽代碼

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,