import { RenderScope } from "@/components/ProTable/interface";
const YES_OR_NO: any = {
    1: "✔️",
    0: "❌"
};
export const COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "center",
        fixed: true,
        label: "ID",
        prop: "id",
        width: 80
    },
    {
        align: "center",
        label: "图片",
        prop: "image",
        width: 160
    },
    {
        align: "left",
        label: "下载名称",
        prop: "name"
    },
    {
        align: "left",
        label: "下载分类",
        prop: "category_name"
    },
    {
        align: "left",
        label: "下载排序",
        prop: "sort",
        width: 160
    },
    {
        align: "left",
        label: "首页推荐",
        prop: "recommend",
        render: (scope: RenderScope<any>): VNode | string | any => {
            return YES_OR_NO[scope.row.recommend];
        }
    },

    {
        align: "left",
        label: "添加时间",
        prop: "created_at"
    },

    // {
    //     align: "center",
    //     label: "状态",
    //     prop: "status",
    //     width: 80
    // },

    { prop: "operation", label: "操作", fixed: "right", width: 200 }
];
