package com.brframework.commoncms.annatotion.layout;

import com.brframework.commoncms.annatotion.Panel;
import com.brframework.commoncms.annatotion.option.CmsOption;
import com.brframework.commoncms.core.layout.layout.PanelListPageLayout;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 分页管理面板
 * @author xu
 * @date 2018/9/26 16:54
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Panel(type = PanelListPageLayout.class)
public @interface PageLayout {
    /**
     * 操作模块
     * @return
     */
    @AliasFor(annotation = Panel.class)
    CmsOption[] options() default {};

    /**
     * 列操作
     * @return
     */
    CmsOption[] columnOptions() default {};

    /**
     * 是否现实多行选择框
     * @return
     */
    boolean checkBox() default false;

    /**
     * 是否可导出excel
     * @return
     */
    boolean exportExcel() default true;
}
