From fc678c5088b084311f7c11cb2793dbe62049ca9e Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 20 二月 2025 11:08:07 +0800 Subject: [PATCH] 字典改为树结构 --- src/utils/dict/DictMeta.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/utils/dict/DictMeta.js b/src/utils/dict/DictMeta.js index 9779daa..5ea5ccc 100644 --- a/src/utils/dict/DictMeta.js +++ b/src/utils/dict/DictMeta.js @@ -6,6 +6,7 @@ * @property {String} type 绫诲瀷 * @property {Function} request 璇锋眰 * @property {String} label 鏍囩瀛楁 + * @property {Object} children 瀛愭爣绛惧瓧娈� * @property {String} value 鍊煎瓧娈� */ export default class DictMeta { @@ -15,6 +16,7 @@ this.responseConverter = options.responseConverter this.labelField = options.labelField this.valueField = options.valueField + this.childrenField = options.childrenField // 娣诲姞children鍙橀噺 this.lazy = options.lazy === true } } -- Gitblit v1.8.0