amis-rpc-design/node_modules/antd/es/_util/getRenderPropValue.js

9 lines
181 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export const getRenderPropValue = propValue => {
if (!propValue) {
return null;
}
if (typeof propValue === 'function') {
return propValue();
}
return propValue;
};