瀏覽代碼

类型编译修复

刘洋 2 年之前
父節點
當前提交
04527b456d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/hooks/useTableCheck.ts

+ 1 - 1
src/hooks/useTableCheck.ts

@@ -90,7 +90,7 @@ const useTableCheck = <T extends TableDataType<InputDataType>>(data: T, auto = t
   const nextRow = () => {
     const index = (current.value?.index || 0) + 1
     elTableRef?.value?.setCurrentRow(tableData.value[index % tableData.value.length])
-    const tBodyDomWrap = elTableRef?.value?.$refs.bodyWrapper
+    const tBodyDomWrap: any = elTableRef?.value?.$refs.bodyWrapper
     if (tBodyDomWrap) {
       if (index % tableData.value.length == 0) {
         elTableRef?.value?.scrollTo({ left: 0, top: 0, behavior: 'smooth' })