diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 5bd94d4dd6e70f6e07318b0770e074960ea2e409..31d2274b0ed7eee86e63d68a74a9c768d6e634ae 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -45,7 +45,37 @@ export default defineUserConfig({ navbar: [ { text: '🧭 指南', link: '/guide/' }, - { text: '🚀 进阶', link: '/further/' }, + { + text: '👀 前端', + link: '/front/route.html', + children: [ + '/front/route.md', + '/front/request.md', + '/front/store.md', + '/front/crudComponent.md', + '/front/formComponent.md', + '/front/component.md', + '/front/utils.md', + '/front/directives.md', + '/front/skin.md', + '/front/setup.md', + ] + }, + { + text: '🐘 后端', + link: '/backend/schema.html', + children: [ + '/backend/schema.md', + '/backend/annotation.md', + '/backend/command.md', + '/backend/dataScope.md', + '/backend/crontab.md', + '/backend/importAndExport.md', + '/backend/login.md', + '/backend/event.md', + '/backend/funs.md', + ] + }, { text: '📖 常见问题', link: '/faqs/' }, { text: '💎 付费支持', link: '/support/' }, { @@ -97,6 +127,22 @@ export default defineUserConfig({ '/guide/install/structure.md', ] }, + { + text: '进阶', + collapsible: false, + children: [ + '/guide/further/README.md', + '/guide/further/mustLearn/module.md', + '/guide/further/mustLearn/menu.md', + '/guide/further/mustLearn/db.md', + '/guide/further/mustLearn/codeGenerator.md', + '/guide/further/mustLearn/i18n.md', + '/guide/further/mustLearn/upload.md', + '/guide/further/mustLearn/appAndApi.md', + '/guide/further/mustLearn/userinfo.md', + '/guide/further/mustLearn/changeCore.md', + ] + }, { text: '其他', collapsible: false, @@ -109,52 +155,38 @@ export default defineUserConfig({ ] }, ], - '/further/': [ - { - text: '进阶起步', - collapsible: false, - children: [ - '/further/README.md', - '/further/mustLearn/module.md', - '/further/mustLearn/menu.md', - '/further/mustLearn/db.md', - '/further/mustLearn/codeGenerator.md', - '/further/mustLearn/i18n.md', - '/further/mustLearn/upload.md', - '/further/mustLearn/appAndApi.md', - '/further/mustLearn/userinfo.md', - '/further/mustLearn/changeCore.md', - ] - }, + '/front/': [ { text: '前端专区', collapsible: false, children: [ - '/further/front/route.md', - '/further/front/request.md', - '/further/front/store.md', - '/further/front/crudComponent.md', - '/further/front/formComponent.md', - '/further/front/component.md', - '/further/front/utils.md', - '/further/front/directives.md', - '/further/front/skin.md', - '/further/front/setup.md', + '/front/route.md', + '/front/request.md', + '/front/store.md', + '/front/crudComponent.md', + '/front/formComponent.md', + '/front/component.md', + '/front/utils.md', + '/front/directives.md', + '/front/skin.md', + '/front/setup.md', ] }, + ], + '/backend/': [ { text: '后端专区', collapsible: false, children: [ - '/further/backend/schema.md', - '/further/backend/annotation.md', - '/further/backend/command.md', - '/further/backend/dataScope.md', - '/further/backend/crontab.md', - '/further/backend/importAndExport.md', - '/further/backend/login.md', - '/further/backend/event.md', - '/further/backend/funs.md', + '/backend/schema.md', + '/backend/annotation.md', + '/backend/command.md', + '/backend/dataScope.md', + '/backend/crontab.md', + '/backend/importAndExport.md', + '/backend/login.md', + '/backend/event.md', + '/backend/funs.md', ] }, ], @@ -164,4 +196,4 @@ export default defineUserConfig({ } }) -}) \ No newline at end of file +}) diff --git a/docs/further/backend/annotation.md b/docs/backend/annotation.md similarity index 100% rename from docs/further/backend/annotation.md rename to docs/backend/annotation.md diff --git a/docs/further/backend/command.md b/docs/backend/command.md similarity index 100% rename from docs/further/backend/command.md rename to docs/backend/command.md diff --git a/docs/further/backend/crontab.md b/docs/backend/crontab.md similarity index 100% rename from docs/further/backend/crontab.md rename to docs/backend/crontab.md diff --git a/docs/further/backend/dataScope.md b/docs/backend/dataScope.md similarity index 100% rename from docs/further/backend/dataScope.md rename to docs/backend/dataScope.md diff --git a/docs/further/backend/event.md b/docs/backend/event.md similarity index 100% rename from docs/further/backend/event.md rename to docs/backend/event.md diff --git a/docs/further/backend/funs.md b/docs/backend/funs.md similarity index 100% rename from docs/further/backend/funs.md rename to docs/backend/funs.md diff --git a/docs/further/backend/importAndExport.md b/docs/backend/importAndExport.md similarity index 97% rename from docs/further/backend/importAndExport.md rename to docs/backend/importAndExport.md index e3da30439ea0f2db057aff775c09274d8ac680b9..5034800750d1d48f3759fde6991a8b7b7b275634 100644 --- a/docs/further/backend/importAndExport.md +++ b/docs/backend/importAndExport.md @@ -1,7 +1,7 @@ # 导入与导出 对于企业来讲,对报表之类的数据很重视,往往需要经常导出数据。而财务或者销售相关的数据会经常按月或季度来导入到系统。 -我们为此设计了一套 [注解](/further/backend/annotation.html#excel相关注解),配合使用 +我们为此设计了一套 [注解](/backend/annotation.html#excel相关注解),配合使用 ## 前提准备 :::tip @@ -32,7 +32,7 @@ class UserDto implements MineModelExcel #[ExcelProperty(value="昵称", index=1, width=15)] public string $nickname; - + #[ExcelProperty(value="手机", index=2, width=15)] public string $phone; } @@ -134,7 +134,7 @@ public function import(): ResponseInterface - 使用 `\Mine\MineCollection` 下的 `import` 实现自定义导出 -- import方法参数列表 +- import方法参数列表 | 参数 | 类型 | 说明 | 默认值 | |:---:|:---:|:---:|:---:| @@ -163,4 +163,4 @@ $bool = (new \Mine\MineCollection)->import( } } ); -``` \ No newline at end of file +``` diff --git a/docs/further/backend/login.md b/docs/backend/login.md similarity index 100% rename from docs/further/backend/login.md rename to docs/backend/login.md diff --git a/docs/further/backend/schema.md b/docs/backend/schema.md similarity index 100% rename from docs/further/backend/schema.md rename to docs/backend/schema.md diff --git a/docs/further/front/component.md b/docs/front/component.md similarity index 99% rename from docs/further/front/component.md rename to docs/front/component.md index b551e3f88de5930408cd478421bdbfff43887830..ca31eb0e7b65f30dabcad06e7205fdcd8544c209 100644 --- a/docs/further/front/component.md +++ b/docs/front/component.md @@ -451,7 +451,7 @@ const submit = async (formData) => { | 参数名 | 参数类型 | 参数说明 | 是否必填/默认值 | |:---:|:---:|:---:|:---:| | title| String | 标题 | '' | -| columns| Array | columns数组[具体属性](/further/front/crudComponent.html#%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8) | [] | +| columns| Array | columns数组[具体属性](/front/crudComponent.html#%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8) | [] | | column | Number | 每行放置的数据个数[参考官方API](https://arco.design/vue/component/descriptions#API) | 3 | | data| Object | 参数属性 | {} | | layout | String | 描述列表的排列方式[参考官方API](https://arco.design/vue/component/descriptions#API) | 'horizontal' | @@ -506,4 +506,4 @@ const data = { -``` \ No newline at end of file +``` diff --git a/docs/further/front/components/cascaderItem.md b/docs/front/components/cascaderItem.md similarity index 100% rename from docs/further/front/components/cascaderItem.md rename to docs/front/components/cascaderItem.md diff --git a/docs/further/front/components/control.md b/docs/front/components/control.md similarity index 100% rename from docs/further/front/components/control.md rename to docs/front/components/control.md diff --git a/docs/further/front/components/dictList.md b/docs/front/components/dictList.md similarity index 100% rename from docs/further/front/components/dictList.md rename to docs/front/components/dictList.md diff --git a/docs/further/front/components/formType.md b/docs/front/components/formType.md similarity index 100% rename from docs/further/front/components/formType.md rename to docs/front/components/formType.md diff --git a/docs/further/front/crudComponent.md b/docs/front/crudComponent.md similarity index 96% rename from docs/further/front/crudComponent.md rename to docs/front/crudComponent.md index ed1b903a128fe3609817009a2bd56870445e0f3b..f2782d63a6d319043ae0849ff6ee957f823e5b1d 100644 --- a/docs/further/front/crudComponent.md +++ b/docs/front/crudComponent.md @@ -18,8 +18,8 @@ 以下为组件的Props参数 **组件初始化需要设置必填的两个参数** | 参数名 | 参数类型 | 参数说明 | 是否必填/默认值 | |:---:|:---:|:---:|:---:| -| options | Object | 该参数是对 **增删改查** 的一个整体设置,点此查看[[全部参数]](/further/front/crudComponent.html#参数列表) | 是 | -| columns | Array | 该参数是对包括列表、新增和编辑的字段设置,点此查看[[全部属性]](/further/front/crudComponent.html#属性列表) | 是 | +| options | Object | 该参数是对 **增删改查** 的一个整体设置,点此查看[[全部参数]](/front/crudComponent.html#参数列表) | 是 | +| columns | Array | 该参数是对包括列表、新增和编辑的字段设置,点此查看[[全部属性]](/front/crudComponent.html#属性列表) | 是 | | data | Function, Array | 数据集合,可直接指定数据集合 | 否 | :::tip @@ -49,7 +49,7 @@ const columns = reactive([]) ### API接口设置 我们在搭建好组件框架后,需要对 crud 组件的一些必要参数进行设置 -- 这一步,我们要引入相关的 **业务网络请求** 文件,了解[网络请求](/further/front/request.md) +- 这一步,我们要引入相关的 **业务网络请求** 文件,了解[网络请求](/front/request.md) ```html