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.
21 lines
611 B
21 lines
611 B
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = pickProProps;
|
|
var proFieldProps = "valueType request mode plain renderFormItem render text formItemProps valueEnum";
|
|
var proFormProps = "fieldProps secondary colSize groupProps contentRender submitterProps submitter";
|
|
|
|
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;
|
|
} |