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 --saveUsage
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
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.1.2
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 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