mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-22 02:50:00 +08:00
添加带有下拉框数据的Excel表格 注意:下拉框内选项不能以数字开头,选项内容只允许使用中英文字符数字,如果需要解析选项内容,使用_作为区分手段 例如 安徽省_1 合肥市_101 等
22 lines
472 B
Java
22 lines
472 B
Java
package com.ruoyi.common.annotation;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
/**
|
|
* Excel下拉注解
|
|
* <p>注解在实体类中的属性上,与@ExcelProperty同级</p>
|
|
*
|
|
* @author slYe
|
|
* @author Emil.Zhang
|
|
*/
|
|
@Documented
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target({ElementType.FIELD})
|
|
public @interface DropDown {
|
|
/**
|
|
* 下拉框可选值,用于简单的指定可选值
|
|
* <p>例如: @DropDown({"选项1","选项2"})</p>
|
|
*/
|
|
String[] value();
|
|
}
|