xiangpei
2025-02-26 e055f23263d9510b9a46b7f89d5f6c65f6f1ad89
src/utils/dict/DictData.js
@@ -3,11 +3,13 @@
 * @property {String} label 标签
 * @property {*} value 标签
 * @property {Object} raw 原始数据
 * @property {Object} children 子标签
 */
export default class DictData {
  constructor(label, value, raw) {
  constructor(label, value, raw, children) {
    this.label = label
    this.value = value
    this.raw = raw
    this.children = children.length > 0 ? children : undefined
  }
}