Files
planet/frontend/node_modules/antd/es/_util/getRenderPropValue.js
2026-03-05 11:46:58 +08:00

6 lines
160 B
JavaScript

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