import { RenderScope } from "@/components/ProTable/interface";
const YES_OR_NO: any = {
    1: "✔️",
    0: "❌"
};
export const COLUMNS = [
    {
        align: "center",
        fixed: true,
        label: "ID",
        prop: "id",
        width: 80
    },

    {
        align: "left",
        label: "Banner分类名称",
        prop: "name"
    },
    {
        align: "left",
        label: "首页推荐",
        prop: "recommend",
        render: (scope: RenderScope<any>): VNode | string | any => {
            return YES_OR_NO[scope.row.recommend];
        }
    },
    {
        align: "left",
        label: "显示端口",
        prop: "at_platform",
        render: (scope: RenderScope<any>): VNode | string | any => {
            const OBJ: any = {
                pc: "PC端",
                mobile: "移动端"
            };
            return OBJ[scope.row.at_platform];
        }
    },

    {
        align: "left",
        label: "描述",
        prop: "desc"
    },
    {
        align: "left",
        label: "添加时间",
        prop: "created_at"
    },
    { prop: "operation", label: "操作", fixed: "right", width: 200 }
];
