import png from "@/assets/img/png.png";
import { iSelectBox, iUploadBox } from "./types";

export const boxConfig = {
  uploadPicture: {
    type: "upload",
    accept: ".jpg,.png,.gif,.mp4",
    icon: {
      tag: "img",
      url: png as string,
      style: {
        marginTop: "38px",
        marginBottom: "7px",
      },
    },
    requiredMsg: "文件限jpg/png/gif/mp4等大小在20M以内",
    requiredMsgStyle: {
      marginBottom: "5px",
    },
    maxSize: 20 * 1024 ** 2,
    btnTxt: "上传图片",
    choosedFileIconName: "icontupian2",
  } as iUploadBox,
  selectAlbum: {
    type: "select",
    icon: {
      tag: "icon",
      iconName: "iconwenjian",
      style: {
        marginTop: "49px",
        marginBottom: "19px",
      },
    },
    btnTxt: "选择专辑",
    choosedFileIconName: "iconyasuobao",
  } as iSelectBox,
  uploadAlbum: {
    type: "upload",
    accept: ".zip,.rar",
    icon: {
      tag: "icon",
      iconName: "iconwenjian",
      style: {
        marginTop: "41px",
        marginBottom: "5px",
      },
    },
    requiredMsg: "支持ZIP/RAR格式，文件大小不超过5G",
    requiredMsgStyle: {
      marginBottom: "7px",
    },
    maxSize: 5 * 1024 ** 3,
    btnTxt: "上传文件",
    choosedFileIconName: "iconyasuobao",
  } as iUploadBox,
  uploadRemark: {
    type: "upload",
    accept: ".xlsx",
    icon: {
      tag: "icon",
      iconName: "iconfileexcelbox",
      style: {
        marginTop: "41px",
        marginBottom: "5px",
      },
    },
    requiredMsg: "当前仅支持.xlsx文件",
    btnTxt: "上传文件",
    btnStyle: {
      marginTop: "7px",
      marginBottom: "7px",
    },
    choosedFileIconName: "iconhuazhuanjilu",
  } as iUploadBox,
};
