@xrenders/schema-builder
v1.0.0-alpha.19
Published
通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成
Downloads
295
Maintainers
Readme
如何使用
安装
npm i @xrenders/schema-builder
代码演示
/**
* transform: true
* defaultShowCode: true
*/
import React from 'react';
import SchemaBuilder from '@xrenders/schema-builder';
const defaultValue = {
type: 'object',
properties: {
inputName: {
title: '简单输入框',
type: 'string',
},
},
};
const Demo = () => {
return (
<div style={{ height: '80vh' }}>
<SchemaBuilder defaultValue={defaultValue} />
</div>
);
};
export default Demo;