xiangpei
2025-06-06 31d78dd4e988cfce8f0a16678f2041849cc0dce3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @classdesc 字典数据
 * @property {String} label 标签
 * @property {*} value 标签
 * @property {Object} raw 原始数据
 * @property {Object} children 子标签
 */
export default class DictData {
  constructor(label, value, raw, children) {
    this.label = label
    this.value = value
    this.raw = raw
    this.children = children.length > 0 ? children : undefined
  }
}