Commit 5327d3a494cb7b6b6c03d42ac71dbec5c27cf61d
1 parent
6ba0484f
perf: vben5 代码生成
Showing
6 changed files
with
8 additions
and
10 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/general/views/form.vue.vm
| ... | ... | @@ -6,7 +6,7 @@ import { useVbenModal } from '@vben/common-ui'; |
| 6 | 6 | import { Tinymce as RichTextarea } from '#/components/tinymce'; |
| 7 | 7 | import { ImageUpload, FileUpload } from "#/components/upload"; |
| 8 | 8 | import { message, Tabs, Form, Input, Textarea, Select, RadioGroup, Radio, CheckboxGroup, Checkbox, DatePicker, TreeSelect } from 'ant-design-vue'; |
| 9 | -import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 9 | +import { DICT_TYPE, getDictOptions } from '#/utils'; | |
| 10 | 10 | #if($table.templateType == 2)## 树表需要导入这些 |
| 11 | 11 | import { get${simpleClassName}List } from '#/api/${table.moduleName}/${simpleClassName_strikeCase}'; |
| 12 | 12 | import { handleTree } from '@vben/utils' | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/general/views/index.vue.vm
| ... | ... | @@ -3,10 +3,10 @@ import type { ${simpleClassName}Api } from '#/api/${table.moduleName}/${simpleCl |
| 3 | 3 | import type { VxeTableInstance } from 'vxe-table'; |
| 4 | 4 | |
| 5 | 5 | import { Page, useVbenModal } from '@vben/common-ui'; |
| 6 | -import { cloneDeep, formatDateTime, getRangePickerDefaultProps } from '@vben/utils'; | |
| 6 | +import { cloneDeep, formatDateTime } from '@vben/utils'; | |
| 7 | 7 | import { Button, message,Tabs,Pagination,Form,RangePicker,DatePicker,Select,Input } from 'ant-design-vue'; |
| 8 | 8 | import { DictTag } from '#/components/dict-tag'; |
| 9 | -import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 9 | +import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; | |
| 10 | 10 | import ${simpleClassName}Form from './modules/form.vue'; |
| 11 | 11 | import { Download, Plus, RefreshCw, Search } from '@vben/icons'; |
| 12 | 12 | import { ContentWrap } from "#/components/content-wrap"; | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/form_sub_erp.vue.vm
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | import { Tinymce as RichTextarea } from '#/components/tinymce'; |
| 11 | 11 | import { ImageUpload, FileUpload } from "#/components/upload"; |
| 12 | 12 | import { message, Tabs, Form, Input, Textarea, Select, RadioGroup, Radio, CheckboxGroup, Checkbox, DatePicker, TreeSelect } from 'ant-design-vue'; |
| 13 | - import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 13 | + import { DICT_TYPE, getDictOptions } from '#/utils'; | |
| 14 | 14 | |
| 15 | 15 | import { computed, ref } from 'vue'; |
| 16 | 16 | import { $t } from '#/locales'; | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/form_sub_normal.vue.vm
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | import { message, Tabs, Form, Input, Textarea,Button, Select, RadioGroup, Radio, CheckboxGroup, Checkbox, DatePicker } from 'ant-design-vue'; |
| 11 | 11 | import { computed, ref, h, onMounted,watch,nextTick } from 'vue'; |
| 12 | 12 | import { $t } from '#/locales'; |
| 13 | - import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 13 | + import { DICT_TYPE, getDictOptions } from '#/utils'; | |
| 14 | 14 | |
| 15 | 15 | #if ($subTable.subJoinMany) ## 一对多 |
| 16 | 16 | import type { VxeTableInstance } from 'vxe-table'; | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/list_sub_erp.vue.vm
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | import type { VxeTableInstance } from 'vxe-table'; |
| 11 | 11 | |
| 12 | 12 | import { DictTag } from '#/components/dict-tag'; |
| 13 | - import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 13 | + import { DICT_TYPE, getDictOptions } from '#/utils'; | |
| 14 | 14 | import { VxeColumn, VxeTable } from 'vxe-table'; |
| 15 | 15 | import { reactive,ref, h, nextTick,watch,onMounted } from 'vue'; |
| 16 | 16 | import { cloneDeep, formatDateTime } from '@vben/utils'; |
| ... | ... | @@ -22,11 +22,10 @@ |
| 22 | 22 | import { Tinymce as RichTextarea } from '#/components/tinymce'; |
| 23 | 23 | import { ImageUpload, FileUpload } from "#/components/upload"; |
| 24 | 24 | import { message,Button, Tabs,Pagination, Form, Input, Textarea, Select, RadioGroup, Radio, CheckboxGroup, Checkbox,RangePicker, DatePicker, TreeSelect } from 'ant-design-vue'; |
| 25 | - import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 25 | + import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; | |
| 26 | 26 | import { Plus } from '@vben/icons'; |
| 27 | 27 | import { $t } from '#/locales'; |
| 28 | 28 | import { TableToolbar } from '#/components/table-toolbar'; |
| 29 | - import { getRangePickerDefaultProps } from '@vben/utils'; | |
| 30 | 29 | #end |
| 31 | 30 | |
| 32 | 31 | #if ($table.templateType == 11) ## erp | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm
| ... | ... | @@ -7,8 +7,7 @@ import { z } from '#/adapter/form'; |
| 7 | 7 | import { get${simpleClassName}List } from '#/api/${table.moduleName}/${simpleClassName_strikeCase}'; |
| 8 | 8 | import { handleTree } from '@vben/utils'; |
| 9 | 9 | #end |
| 10 | -import { DICT_TYPE, getDictOptions } from '#/utils/dict'; | |
| 11 | -import { getRangePickerDefaultProps } from '@vben/utils'; | |
| 10 | +import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; | |
| 12 | 11 | import { useAccess } from '@vben/access'; |
| 13 | 12 | |
| 14 | 13 | const { hasAccessByCodes } = useAccess(); | ... | ... |