An open API service indexing awesome lists of open source software.

https://github.com/m-ryan/easyh5

可视化编辑器、h5编辑器
https://github.com/m-ryan/easyh5

drag-editor h5-editor template-builder visual-editor

Last synced: 5 months ago
JSON representation

可视化编辑器、h5编辑器

Awesome Lists containing this project

README

          

## 声明

> 主要的面向对象是开发者。

> 解决的场景是 定义好一套组件好,可以通过拖拽生成页面,达到快速开发的效果

## 项目演示地址
- [https://h5.maocanhua.cn/](https://h5.maocanhua.cn/)
- 手机扫码预览效果




## 部分截图
- ![图片1](https://assets.maocanhua.cn/FrsE2_5Dksv3YtOWdaiqv-bZcBaR)
- ![图片1](https://assets.maocanhua.cn/Fnxhu6BPrkHYLFJgWQEJg1MmPCXv)
- ![图片1](https://assets.maocanhua.cn/FvpQ6deo5tp946YBX3QMT3aOiSeZ)

## 项目结构
核心功能均在src目录,example目录只是作为一个使用示例

### 结构

![图片1](https://assets.maocanhua.cn/Fg5xzyOg1N0fwWaHNj5Z33CZkDHE)

```ts
data === Array

export type IPage = IBlockData<{
title: string;
}>;

export const Page: IBlock = {
name: '页面',
type: BasicType.PAGE,
Editor,
Renderer,
Panel,
createInstance,
validChildrenType: []
};

export interface IBlockData {
style: Partial;
type: BlockType;
data: {
value: T;
link?: string;
action?: string;
variable?: string;
};
children: IBlockData[];
}

```