1.1.11 • Published 3 years ago
whale-form v1.1.11
whale-form
React render antd forms with json
Development
npm install
npm start
open http://localhost:8000/
Install
npm install antd whale-form --save
Usage
const source = [
{
type: 'input',
name: 'input',
label: '普通文本',
placeholder: '请输入',
rules: [{ required: true, whitespace: true, max: 10, message: '请检查输入的文本' }],
value: 'input',
},
]
const renderAction = () => (
<Button type="primary" htmlType="submit">
提交
</Button>
);
const onSubmit = (v) => {
console.log('onSubmit: ', v);
};
// render
<WhaleForm
formSource={source}
renderAction={renderAction}
onFinish={onSubmit}
/>
1.1.11
3 years ago
1.1.10
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.2
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago