# 创建一定长度的数组
{
[...Array(30).keys()].map((i) => (
<div tab={`Tab-${i}`} key={i}>
Content of tab {i}
</div>
));
}
← TypeScript 基础 Vue-CLi →
{
[...Array(30).keys()].map((i) => (
<div tab={`Tab-${i}`} key={i}>
Content of tab {i}
</div>
));
}
← TypeScript 基础 Vue-CLi →