2020-10-26 07:39:34 +00:00
|
|
|
import DynamicRenderer from '../../resources/ui/dynamic/dynamicRenderer'
|
|
|
|
import DynamicForm from '../../resources/ui/forms/dynamicForm'
|
|
|
|
|
|
|
|
const test = () => {
|
|
|
|
const props = {
|
|
|
|
schema: {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"hello": {
|
|
|
|
"type": "string"
|
2020-09-02 15:00:03 +00:00
|
|
|
}
|
2020-09-07 05:21:53 +00:00
|
|
|
},
|
2020-10-26 07:39:34 +00:00
|
|
|
"required": [
|
|
|
|
"hello"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
onSubmit: async data => {
|
|
|
|
console.log(data);
|
|
|
|
},
|
|
|
|
onCancel: async err => {
|
|
|
|
console.log('canceled',err)
|
|
|
|
}
|
2020-09-01 15:48:38 +00:00
|
|
|
}
|
|
|
|
|
2020-10-26 07:39:34 +00:00
|
|
|
|
|
|
|
return (<DynamicRenderer component={'DynamicForm'} props={props}/>);
|
|
|
|
};
|
|
|
|
export default test
|