From d7875f44c4b106bbbed707c383b6f276070a1c58 Mon Sep 17 00:00:00 2001 From: xlsea Date: Sat, 10 May 2025 11:22:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=A0=91=E5=BD=A2?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/java/VelocityUtils.java | 11 +- docs/template/soy.index-tree.vue.vm | 217 ++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+), 4 deletions(-) create mode 100644 docs/template/soy.index-tree.vue.vm diff --git a/docs/java/VelocityUtils.java b/docs/java/VelocityUtils.java index a6f5ce9b..cb745c54 100644 --- a/docs/java/VelocityUtils.java +++ b/docs/java/VelocityUtils.java @@ -4,16 +4,16 @@ import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; import cn.hutool.core.lang.Dict; import cn.hutool.core.util.StrUtil; -import org.dromara.generator.constant.GenConstants; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; +import org.apache.velocity.VelocityContext; import org.dromara.common.core.utils.DateUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.json.utils.JsonUtils; import org.dromara.common.mybatis.helper.DataBaseHelper; +import org.dromara.generator.constant.GenConstants; import org.dromara.generator.domain.GenTable; import org.dromara.generator.domain.GenTableColumn; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; -import org.apache.velocity.VelocityContext; import java.util.*; @@ -143,6 +143,7 @@ public class VelocityUtils { templates.add("vm/soybean/soy.index.vue.vm"); } else if (GenConstants.TPL_TREE.equals(tplCategory)) { templates.add("vm/vue/index-tree.vue.vm"); + templates.add("vm/soybean/soy.index-tree.vue.vm"); } return templates; } @@ -177,6 +178,8 @@ public class VelocityUtils { } if (template.contains("soy.index.vue.vm")) { fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, StrUtil.toSymbolCase(businessName, '-')); + } else if (template.contains("soy.index-tree.vue.vm")) { + fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, StrUtil.toSymbolCase(businessName, '-')); } else if (template.contains("soy.api.d.ts.vm")) { fileName = StringUtils.format("soybean/typings/api/{}.api.d.ts", moduleName); } else if (template.contains("soy.api.ts.vm")) { diff --git a/docs/template/soy.index-tree.vue.vm b/docs/template/soy.index-tree.vue.vm new file mode 100644 index 00000000..cc3149f8 --- /dev/null +++ b/docs/template/soy.index-tree.vue.vm @@ -0,0 +1,217 @@ + + + + +