Commit db914c9758bb2f2552196cc400e84eb4af0d898a
1 parent
0827235c
适配最新 vue3 代码生成
Showing
2 changed files
with
1 additions
and
10 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/data.ts.vm
| 1 | -import { reactive } from 'vue' | |
| 2 | -import { useI18n } from '@/hooks/web/useI18n' | |
| 3 | -import { DICT_TYPE } from '@/utils/dict' | |
| 4 | -import { required } from '@/utils/formRules' | |
| 5 | -import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' | |
| 1 | +import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' | |
| 6 | 2 | const { t } = useI18n() // 国际化 |
| 7 | 3 | // 表单校验 |
| 8 | 4 | export const rules = reactive({ | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
| ... | ... | @@ -75,11 +75,6 @@ |
| 75 | 75 | </XModal> |
| 76 | 76 | </template> |
| 77 | 77 | <script setup lang="ts" name="${simpleClassName}"> |
| 78 | -// 全局相关的 import | |
| 79 | -import { ref, unref } from 'vue' | |
| 80 | -import { useI18n } from '@/hooks/web/useI18n' | |
| 81 | -import { useMessage } from '@/hooks/web/useMessage' | |
| 82 | -import { useXTable } from '@/hooks/web/useXTable' | |
| 83 | 78 | import { FormExpose } from '@/components/Form' |
| 84 | 79 | // 业务相关的 import |
| 85 | 80 | import { rules, allSchemas } from './${classNameVar}.data' | ... | ... |