Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gjc9620/dino-form

🤪React form solution! Use it to reduce duplicate code!🚀
https://github.com/gjc9620/dino-form

ant-design antd form react

Last synced: 7 days ago
JSON representation

🤪React form solution! Use it to reduce duplicate code!🚀

Awesome Lists containing this project

README

        

# Dino-form

## Todo
getValue

#### DinoForm
* FromItem
* setFieldsValue
* setFullValues
* setFieldsError
* getFullValues
* getFieldsValue
* verify
* store
* dinoFormRef

//todo editing...
### DinoForm
parts | Type | Describe | Example
--- | --- | --- | ---
fragments | `Object` | fragments | [Detail](#fragments)
groups | `Object` | Can be delete or add item(s)| [Detail](#group)
subform | `Object` | Nesting other dino-form | [Detail](#subForms)

### fragments
parts | Type | Describe | Example
--- | --- | --- | ---
Com | `Object` | Any Component | [example](https://github.com/gjc9620/dino-form/blob/master/examples/forms/Resume.jsx#L15)

### group
group | Type | Describe | Example
--- | --- | --- | ---
Com | `dino-form` | Will transform become group | [example](https://github.com/gjc9620/dino-form/blob/master/examples/forms/Resume.jsx#L46)
field | `String` | Fields will become object key when collect form | [example](https://codesandbox.io/s/23rl65mnzr)
count | `Number` | Number of initializations | [example](https://codesandbox.io/s/23rl65mnzr)
formProps | `Boolean` | Com's props | [example](https://codesandbox.io/s/23rl65mnzr)
needDrag | `Boolean` | Turn off(on) drag & drop | [example](https://codesandbox.io/s/23rl65mnzr)
clearMotions | `Function` | Reset all animation function | [example](https://codesandbox.io/s/23rl65mnzr)
pressedMotions | `Function` | Return Motion Object function | [example](https://codesandbox.io/s/23rl65mnzr)
notPressedMotions | `Function` | Return Motion Object function | [example](https://codesandbox.io/s/23rl65mnzr)
createStyle | `Function` | Apply Motion function | [example](https://codesandbox.io/s/23rl65mnzr)

#### subForms
parts | Type | Describe | Example
--- | --- | --- | ---
SubForms | `Object` | dino-form | [example](https://github.com/gjc9620/dino-form/blob/master/examples/forms/Resume.jsx#L34)
field | `Object` | field | [example](https://github.com/gjc9620/dino-form/blob/master/examples/forms/Resume.jsx#L34)
formProps | `Object` | props | [example](https://github.com/gjc9620/dino-form/blob/master/examples/forms/Resume.jsx#L34)

#### CreateForm
```
import createForm from 'dino-form';
createForm(parts)(View)(Wrap)
```

#### Why?

#### What is Parts & View & Wrap?

### Drag && Drop
needDrag

###