Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 02:20:32 +00:00
parent a4605e311a
commit 71de1506ca
28603 changed files with 2179459 additions and 0 deletions

View File

@@ -0,0 +1 @@
export declare function pickProProps(props: Record<string, any>, customValueType?: boolean): Record<string, any>;

View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.pickProProps = pickProProps;
var proFieldProps = "valueType request plain renderFormItem render text formItemProps valueEnum";
var proFormProps = "fieldProps isDefaultDom groupProps contentRender submitterProps submitter";
function pickProProps(props) {
var customValueType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var propList = "".concat(proFieldProps, " ").concat(proFormProps).split(/[\s\n]+/);
var attrs = {};
Object.keys(props || {}).forEach(function (key) {
//如果是自定义的 valueType则不需要过滤掉全部传给使用者
if (propList.includes(key) && !customValueType) {
return;
}
attrs[key] = props[key];
});
return attrs;
}