Commit 3c88d4d48854774ebbf181c26ed17b9d8eb90690

Authored by YunaiV
1 parent 67ed6d0a

feat:【infra】移动端 admin uniapp 的代码生成的优化(components 调整成 modules 回退,会导致 tabbar 首页的间隙有问题)

yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/codegen/inner/CodegenEngine.java
... ... @@ -141,8 +141,8 @@ public class CodegenEngine {
141 141 vue3UniappFilePath("api/${table.moduleName}/${table.businessName}/index.ts"))
142 142 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/index.vue"),
143 143 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/index.vue"))
144   - .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("modules/search-form.vue"),
145   - vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/modules/search-form.vue"))
  144 + .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("components/search-form.vue"),
  145 + vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/components/search-form.vue"))
146 146 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/form/index.vue"),
147 147 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/form/index.vue"))
148 148 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/detail/index.vue"),
... ...
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/modules/search-form.vue.vm renamed to yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/index.vue.vm
... ... @@ -111,7 +111,7 @@
111 111 #end
112 112 #end
113 113 #end
114   -import type { SearchFormData } from './modules/search-form.vue'
  114 +import type { SearchFormData } from './components/search-form.vue'
115 115 import type { ${simpleClassName} } from '@/api/${table.moduleName}/${table.businessName}'
116 116 import type { LoadMoreState } from '@/http/types'
117 117 import { onReachBottom } from '@dcloudio/uni-app'
... ... @@ -125,7 +125,7 @@ import { DICT_TYPE } from '@/utils/constants'
125 125 #if ($hasDateTime == 1)
126 126 import { formatDateTime } from '@/utils/date'
127 127 #end
128   -import SearchForm from './modules/search-form.vue'
  128 +import SearchForm from './components/search-form.vue'
129 129  
130 130 definePage({
131 131 style: {
... ...