Giter Site home page Giter Site logo

dcywade / formily-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guard-233/formily-generator

0.0 0.0 0.0 16.61 MB

formily的schema可视化生成器

Home Page: https://guard-233.github.io/formily-generator/

HTML 2.81% CSS 2.32% TypeScript 94.24% JavaScript 0.64%

formily-generator's Introduction

Formily 可视化 schema 编辑器

preview

预览

可以直接点击本链接在线使用

clone 并使用

git clone https://github.com/Guard-233/formily-generator.git
cd ./formily-generator
yarn start

注意,使用本工具之前,最好先了解Formily的使用方式

界面说明

左侧

左侧主要是可拖动的组件,分为基础组件,布局组件,数组组件

在此主要说明布局组件与数组组件的使用方式

布局组件

所有的布局组件除了 pureObject 之外均为样式组件,如果想让数据结构与样式同意,则需要给布局组件内部嵌套一层 pureObject。

pureObject 存在

preview preview

pureObject 不存在

preview preview

数组组件

数组组件目前有两种 ArrayCard 与 ArrayTable

注意,因数组的 items 属性是 ISchema | ISchema[] 所以具体的组件需要拖放在内部的对象中,而不是数组本身

因表格组件的拖拽显示不太直观,所以数组组件在拖拽区域如下图所示

preview

而最终预览的形态,则以表格的形式正常显示

preview

中部

中部区域为组件可拖放的区域,需要注意的是,中部区域的组件预览效果与最终效果有出入,请以点击预览按钮后的页面为准

右侧

点击中部区域的任意一个以拖放的组件,都可以在右侧进行相应的属性编辑,具体可编辑的属性,可以看Formily的官方文档

formily-generator's People

Contributors

guard-233 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.