This commit is contained in:
xingyu4j
2022-11-16 10:28:28 +08:00
parent c40076c5bb
commit d485b8289d
16 changed files with 95 additions and 95 deletions

View File

@ -20,14 +20,13 @@
```
- 其中api内index.ts 与 vue2 基本一致只不过axios封装了get post put delete upload download 等方法不用写method: 'get' 了
- api内types.ts是接口中的类型声明与java中vo等保持一致 java中long int => ts 中 number
- views中index.vue 与 vue2 基本一致本框架封装了Search Table Form Descriptions等组件也可以按照vue2方式去写参考menu
- views中index.vue 与 vue2 基本一致本框架使用了vxe-table并封装了Search Table Form Descriptions等组件当然也继续支持vue2的写法
- post.data.ts 中主要是表单校验 rules 和表单 crudSchemas 通过修改crudSchemas 就可以控制增删改查的字段、输入框还是下拉框等等
- 本框架集成了国际化,不需要可以自己想办法移除,后期不会提供删减版 使用方式
- 本框架集成了国际化,不需要可以自己想办法移除,后期不会提供删减版
```bash
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
t('common.createTime')
对应翻译文档在 src/locales
并在src/locales 增加相应的中英文
```