Commit f57b5c658e5b1366fb04bdab8b0eb1a552c928c1

Authored by xingyu
1 parent daf1caf5

docs: style

Showing 1 changed file with 4 additions and 1 deletions
yudao-ui-admin-vue3/use.md
@@ -13,18 +13,21 @@ @@ -13,18 +13,21 @@
13 13
14 - 目录结构与 vue2 版本基本保持一致 14 - 目录结构与 vue2 版本基本保持一致
15 - 一个页面(以post为例)由4部分组成 15 - 一个页面(以post为例)由4部分组成
  16 +
16 ```bash 17 ```bash
17 /src/api/system/post/ [index.ts | types.ts] 18 /src/api/system/post/ [index.ts | types.ts]
18 /src/views/system/post/ [index.vue | post.data.ts] 19 /src/views/system/post/ [index.vue | post.data.ts]
19 ``` 20 ```
  21 +
20 - 其中api内index.ts 与 vue2 基本一致,只不过axios封装了get post put delete upload download 等方法,不用写method: 'get' 了 22 - 其中api内index.ts 与 vue2 基本一致,只不过axios封装了get post put delete upload download 等方法,不用写method: 'get' 了
21 - api内types.ts,是接口中的类型声明,与java中vo等保持一致, java中long int => ts 中 number 23 - api内types.ts,是接口中的类型声明,与java中vo等保持一致, java中long int => ts 中 number
22 - views中,index.vue 与 vue2 基本一致,本框架封装了Search Table Form Descriptions等组件,也可以按照vue2方式去写,参考menu 24 - views中,index.vue 与 vue2 基本一致,本框架封装了Search Table Form Descriptions等组件,也可以按照vue2方式去写,参考menu
23 - post.data.ts 中主要是表单校验 rules 和表单 crudSchemas ,通过修改crudSchemas 就可以控制增删改查的字段、输入框还是下拉框等等 25 - post.data.ts 中主要是表单校验 rules 和表单 crudSchemas ,通过修改crudSchemas 就可以控制增删改查的字段、输入框还是下拉框等等
24 - 本框架集成了国际化,不需要可以自己想办法移除,后期不会提供删减版 使用方式 26 - 本框架集成了国际化,不需要可以自己想办法移除,后期不会提供删减版 使用方式
  27 +
25 ```bash 28 ```bash
26 import { useI18n } from '@/hooks/web/useI18n' 29 import { useI18n } from '@/hooks/web/useI18n'
27 const { t } = useI18n() 30 const { t } = useI18n()
28 t('common.createTime') 31 t('common.createTime')
29 对应翻译文档在 src/locales 32 对应翻译文档在 src/locales
30 -```  
31 \ No newline at end of file 33 \ No newline at end of file
  34 +```