armscode
v1.0.46
Published
A react library developed with dumi
Downloads
14
Readme
armscode
A react library developed with dumi
Usage
TODO
支持配置化表单 Input Text 两种类型
接收字段
config(配置文件)
formData(需要回显的数据)
style
onChange(表单编辑时触发 返回当前编辑字段与完整表单字段)
返回表单dom
未来会支持
更多类型
配置可编辑表格
表单交互 联动
推拽生成配置文件
预览表单
或许还会有低代码一条龙服务
例子
import {ArmsForm} from 'armscode'
<ArmsForm
config={{blocks: [{
name: '姓名',
type: 'Input',
code: 'name',
colSpan: 12
}, {
name: '年龄',
type: 'Input',
code: 'age',
colSpan: 12
}]}}
formData={{
name: '清风',
age: '100'
}}
onChange={({ changeValue, allValues }) => {
console.log(changeValue, allValues)
}}
style={{}}
/>
( 今天太晚了 先不写了 )
Options
TODO
Development
# install dependencies
$ npm install
# develop library by docs demo
$ npm start
# build library source code
$ npm run build
# build library source code in watch mode
$ npm run build:watch
# build docs
$ npm run docs:build
# Locally preview the production build.
$ npm run docs:preview
# check your project for potential problems
$ npm run doctor
LICENSE
MIT