# rev-engine-front **Repository Path**: hujingn/rev-engine-front ## Basic Information - **Project Name**: rev-engine-front - **Description**: 一个使用json配置的前端管理平台 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-30 - **Last Updated**: 2025-10-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 低代码配置平台 一个使用json配置的前端管理平台 [配置文档](https://ovrj390i0f.feishu.cn/wiki/GGlGwnCE0i36d0kkMlpce9lzngd) ## 安装和使用 - 安装依赖 ```bash cd rev-engine-front pnpm install ``` - 运行 ```bash pnpm run dev ``` - 打包 ```bash pnpm run build:prod ``` ## 全局页面配置 页面初始调用get_configs接口,会根据配置初始化页面和生成不同的路由页面,初始化示例如下 ```json configs: title: xxx后台管理系统 header: image: /data/assets/favicon.png background: /data/assets/header.png title: xxx后台管理系统 description: '' footer: items: - type: text content: 京公网安备11000002000001号 - type: url content: 关于 url: 'http://xxx.xx' main: background: /data/assets/background.png login: title: xxx后台管理系统 activation: false registration: true background: /data/assets/background.png account_fields: # 允许用于登录的字段,默认为name - name regist: fields: - key: status name: 状态 type: enum - key: name name: 名称 type: string notification: - key: todo_list title: 待办事项 type: Table navigation: layout: vertical # 路由配置 routes: - key: home_index name: 首页 module: home/index - key: main_index name: 我的页面 logo: /data/assets/menu/main.png subpages: - key: my_message name: 我的消息 subpages: [] module: default components: - key: send_box title: 我的消息-发件箱 type: Table # 表格描述 meta: source: table/ToDoList.yaml fields: - key: id name: id type: int editable: false require: false display: false - key: content name: 内容 type: textarea editable: true require: true display: true ``` ## 页面路由配置 ### 菜单项配置 - key 菜单id 页面菜单id,全局唯一 - name 菜单名称 菜单栏显示的名称 - hidden 是否隐藏菜单 菜单栏显示的名称 - noCache 是否不缓存页面 默认false(缓存页面)当页面显示标签页时,缓存已打开的页面。 - subpages 子菜单 路由有子菜单时通过subpages配置,可无限级子菜单,只有叶子菜单需要module、components等配置 - module 菜单模块 module=default 时需要配置 components 进行页面组装 module=其他 时无需其他配置 详见下边modules通用页面配置 - components 自定义组装页面 module=default 时需要配置 components 进行页面组装 组装页面使用通用组件进行组装 - type 组件类型 详见下边components通用组件配置 - meta 组件参数配置 各个组件需要参数不同,详见各个组件的配置 ### Table meta配置 ### Table page配置