使用vue-data-dict,简化数据字典使用
This commit is contained in:
13
ruoyi-ui/src/utils/dict/DictData.js
Normal file
13
ruoyi-ui/src/utils/dict/DictData.js
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @classdesc 字典数据
|
||||
* @property {String} label 标签
|
||||
* @property {*} value 标签
|
||||
* @property {Object} raw 原始数据
|
||||
*/
|
||||
export default class DictData {
|
||||
constructor(label, value, raw) {
|
||||
this.label = label
|
||||
this.value = value
|
||||
this.raw = raw
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user