feat: support custom render in the TabDetail component
support custom render in the TabDetail, not only the class or string Change-Id: I152e611d1478e149baf9104143ca18171e799730
This commit is contained in:
@@ -411,7 +411,10 @@ export default class DetailBase extends React.Component {
|
||||
}
|
||||
|
||||
renderTabComponent(tabItem) {
|
||||
const { component, key } = tabItem;
|
||||
const { component, key, render } = tabItem;
|
||||
if (render) {
|
||||
return render;
|
||||
}
|
||||
return component ? (
|
||||
<tabItem.component
|
||||
{...this.props}
|
||||
|
Reference in New Issue
Block a user