amis-rpc-design/node_modules/antd/es/_util/getRenderPropValue.js
2023-10-07 19:42:30 +08:00

9 lines
181 B
JavaScript

export const getRenderPropValue = propValue => {
if (!propValue) {
return null;
}
if (typeof propValue === 'function') {
return propValue();
}
return propValue;
};