tabs组件用render渲染实现有问题,有哪个大佬能帮忙看一下,下面是一个简单的例子,效果达不到 #5119
              
                Unanswered
              
          
                  
                    
                      chenbing11
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
render(h) {
const tabs = [1,2,3].map((g,index) => {
return h(
'a-tab-pane',
{
props:{
key: 'a'+index,
tab: 'aa'+ index,
// forceRender: true
},
},
index
);
});
return h(
'a-tabs',
{
props:{
type:'card',
tabBarGutter:8,
defaultActiveKey: 'a0',
},
// scopedSlots:{
// 'default': tabs
// },
},
tabs
)
}
Beta Was this translation helpful? Give feedback.
All reactions