# visual-editor **Repository Path**: luofengzh/visual-editor ## Basic Information - **Project Name**: visual-editor - **Description**: 一个h5可视化编辑器。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2021-07-08 - **Last Updated**: 2023-12-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # visual-editor ## 前言 > 一个h5可视化编辑器。 ## 效果图 > ![image](https://raw.githubusercontent.com/LuofengZhang/visual-editor/master/public/static/example/1.jpg) > ![image](https://raw.githubusercontent.com/LuofengZhang/visual-editor/master/public/static/example/2.jpg) > ![image](https://raw.githubusercontent.com/LuofengZhang/visual-editor/master/public/static/example/3.jpg) ## 项目目录 ``` javascript src { assets: 项目资产存在(图片等) components: 公用组件存放 store: 整个项目的状态存储汇集地方 router: 路由表 styles: 整个项目的公用样式表集中地方 common: 整个项目的工具文件夹 view: 页面存放 { editor:画板模块 { components: 当前模块的私有组件 module: 画板的插件/模块/组件 } } } ``` ## 技术栈 **前端:**
`vue`: 模块化开发。
`vuex`: 状态管理。
`scss`: css预编译器。
`element-ui`:饿了么UI。
## 前端编辑器实现 编辑器的实现思路是:编辑器生成页面JSON数据,服务端负责存取JSON数据,渲染时从服务端取数据JSON交给前端模板处理。 ## 启动运行 ``` npm install npm run serve ```