as-editor/README.md

53 lines
1.8 KiB
Markdown
Raw Normal View History

2021-08-25 14:39:54 +08:00
# AS-Editor
#### 介绍
2021-09-28 18:28:46 +08:00
基于 vue 可视化拖拽编辑,页面生成工具。提升前端开发效率,可集成至移动端项目作为通过定义 JSON 直接生成 UI 界面。
2021-08-25 14:39:54 +08:00
2021-10-27 17:46:16 +08:00
与[AS-Editor-H5](https://gitee.com/was666/as-editor-h5.git)一起使用可以可视化生成vue页面
2021-10-27 17:45:56 +08:00
2021-08-25 14:39:54 +08:00
#### 安装教程
2021-09-28 18:28:46 +08:00
1. npm install (安装 node_modules 模块)
2. yarn upgrade (用于更新包到基于规范范围的最新版本)
3. npm run serve (运行)
4. npm run build (打包)
2021-08-25 14:39:54 +08:00
#### 使用说明
2021-10-27 11:30:08 +08:00
##### 使用教程
![步骤1](https://images.gitee.com/uploads/images/2021/1027/112917_5f4b400d_5546746.png "image1.png")
![步骤2](https://images.gitee.com/uploads/images/2021/1027/112939_e466bef2_5546746.png "image2.png")
![步骤3](https://images.gitee.com/uploads/images/2021/1027/112950_60be2a1a_5546746.png "image3.png")
![步骤4](https://images.gitee.com/uploads/images/2021/1027/113000_117378e7_5546746.png "image4.png")
2021-09-28 18:28:46 +08:00
##### 自定义组件可以看:
2021-09-28 18:30:51 +08:00
```js
2021-10-27 11:35:26 +08:00
src/layout/home/index.vue // 编辑页面文件
src/components/sliderassembly/index.vue // 左侧组件大全文件
src/components/componentscom // 左侧组件目录
src/components/rightslider // 右侧组件目录
src/utils/componentProperties.js // 组件数据
2021-09-28 18:30:51 +08:00
```
2021-08-25 14:39:54 +08:00
#### componentProperties组件数据字段注解
2021-09-26 09:56:24 +08:00
```js
2021-08-25 14:39:54 +08:00
{
2021-10-27 11:35:26 +08:00
component: 'custommodule', //中间部分手机组件的name
text: '自定义模块', //组件文字描述
type: '1-14', // data-tpye
active: true, // 是否选中
style: 'custommodulestyle', //右边组件设置的name
setStyle: {} // 组件动态数据
2021-08-25 14:39:54 +08:00
}
```
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request