- {{$constant.getLabelByValue("EMPLOYEE_STATUS", 1)}} -
```
## 二、使用方法
目前插件提供三个方法
可在全局使用 `this.$constant.getLabelByValue() 、this.$constant.getValueLabelList() 、this.$constant.getValueLabel()` 调用
根据枚举值获取描述 示例:
> 在表格渲染时经常遇到需要将状态转换成描述的情况,此时可以使用
```js
let params.row.employeeStatus = 1
this.$constant.getLabelByValue("EMPLOYEE_STATUS", params.row.employeeStatus)
// 禁用
```
> 下拉菜单经常需要使用键值对来渲染 select 的 options `[{value:label},{value2:label2}]`
```vue