tabs组件用render渲染实现有问题,有哪个大佬能帮忙看一下,下面是一个简单的例子,效果达不到 #5119
Unanswered
chenbing11
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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