From 02b01e38495f384bc29bad9192b93bdba610b437 Mon Sep 17 00:00:00 2001 From: AN <1983933789@qq.com> Date: Mon, 12 May 2025 23:26:41 +0800 Subject: [PATCH] chore: add dynamic parentIdField support in index-tree template --- docs/template/index-tree.vue.vm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/template/index-tree.vue.vm b/docs/template/index-tree.vue.vm index e4d28f4a..b187996c 100644 --- a/docs/template/index-tree.vue.vm +++ b/docs/template/index-tree.vue.vm @@ -47,6 +47,9 @@ const { params: {} }, idField: '#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end', +#if(${treeParentCode} && ${treeParentCode} != 'parentId') + parentIdField: '${treeParentCode}', +#end columns: () => [ { type: 'selection',