webpack-react-ts
v0.0.1
Published
Micro-Frontend Boilerplate, with React & TS & Webpack
Downloads
5
Maintainers
Readme
lego-form
lego-form is a dynamic form solution with visually configuration, built on json-schema-form. It supports multiple widgets styled with antd, flexible event/trigger system and also a part of Legoble.
lego-form 是动态表单解决方案,借鉴了著名的 json-schema-form,其设计与理论归纳在了 Web 开发中的工程实践 https://url.wx-coder.cn/jXxlM 系列文章中。
Development
packages
- publish
$ npm run pub
bootStrap
Reference
Widget Map | 组件映射
const widgetMap = {
boolean: {
checkbox: 'CheckboxWidget',
radio: 'RadioWidget',
select: 'SelectWidget',
hidden: 'HiddenWidget'
},
string: {
text: 'TextWidget',
password: 'PasswordWidget',
email: 'EmailWidget',
hostname: 'TextWidget',
ipv4: 'TextWidget',
ipv6: 'TextWidget',
uri: 'URLWidget',
'data-url': 'FileWidget',
radio: 'RadioWidget',
select: 'SelectWidget',
textarea: 'TextareaWidget',
hidden: 'HiddenWidget',
date: 'DateWidget',
datetime: 'DateTimeWidget',
'date-time': 'DateTimeWidget',
'alt-date': 'AltDateWidget',
'alt-datetime': 'AltDateTimeWidget',
color: 'ColorWidget',
file: 'FileWidget'
},
number: {
text: 'TextWidget',
select: 'SelectWidget',
updown: 'UpDownWidget',
range: 'RangeWidget',
radio: 'RadioWidget',
hidden: 'HiddenWidget'
},
integer: {
text: 'TextWidget',
select: 'SelectWidget',
updown: 'UpDownWidget',
range: 'RangeWidget',
radio: 'RadioWidget',
hidden: 'HiddenWidget'
},
array: {
select: 'SelectWidget',
checkboxes: 'CheckboxesWidget',
files: 'FileWidget',
hidden: 'HiddenWidget'
}
};