shaogen1995 1 سال پیش
والد
کامیت
914dd52522
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      src/components/MyTable/index.tsx
  2. 2 2
      src/pages/A1video/A1main/index.tsx
  3. 1 1
      src/utils/tableData.ts

+ 1 - 1
src/components/MyTable/index.tsx

@@ -6,7 +6,7 @@ import ImageLazy from "../ImageLazy";
 type Props = {
   yHeight: number; //设置表格的高度
   list: any; //表格数据
-  columnsTemp: any; //表格展示
+  columnsTemp: any[][]; //表格展示
   total?: number; //总数
   pageNum?: number;
   pageSize?: number;

+ 2 - 2
src/pages/A1video/A1main/index.tsx

@@ -8,7 +8,7 @@ import { A1TableType } from "@/types";
 import { MessageFu } from "@/utils/message";
 import A1add from "../A1add";
 import MyTable from "@/components/MyTable";
-import { A1tableC } from "@/utils/tableData";
+import { A1tableCFu } from "@/utils/tableData";
 import MyPopconfirm from "@/components/MyPopconfirm";
 
 type Props = {
@@ -111,7 +111,7 @@ function A1main({ type }: Props) {
         <MyTable
           yHeight={680}
           list={tableList}
-          columnsTemp={A1tableC(type)}
+          columnsTemp={A1tableCFu(type)}
           pagingInfo={false}
           lastBtn={tableLastBtn}
         />

+ 1 - 1
src/utils/tableData.ts

@@ -5,7 +5,7 @@
  * txtChange:判断显示不同字段
  * text:文字比较多的情况
  */
-export const A1tableC = (type: "video" | "poster") => {
+export const A1tableCFu = (type: "video" | "poster") => {
   return [
     ["txt", "标题", "name"],
     ["img", type === "video" ? "视频封面" : "海报", "thumb"],