"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _runFunction = _interopRequireDefault(require("../runFunction"));
/**
 * 因为 fieldProps 支持了 function 所以新增了这个方法
 *
 * @param fieldProps
 * @param form
 */
const getFieldPropsOrFormItemProps = (fieldProps, form, extraProps) => {
  if (form === undefined) {
    return fieldProps;
  }
  return (0, _runFunction.default)(fieldProps, form, extraProps);
};
var _default = getFieldPropsOrFormItemProps;
exports.default = _default;