You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
513 B
14 lines
513 B
var proFieldProps = "valueType request mode plain renderFormItem render text formItemProps valueEnum";
|
|
var proFormProps = "fieldProps secondary colSize groupProps contentRender submitterProps submitter";
|
|
export default function pickProProps(props) {
|
|
var propList = "".concat(proFieldProps, " ").concat(proFormProps).split(/[\s\n]+/);
|
|
var attrs = {};
|
|
Object.keys(props || {}).forEach(function (key) {
|
|
if (propList.includes(key)) {
|
|
return;
|
|
}
|
|
|
|
attrs[key] = props[key];
|
|
});
|
|
return attrs;
|
|
} |