1.1.11 • Published 4 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
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.1.2
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago