未验证 提交 56fb7948 编写于 作者: P prettyboyweiwei 提交者: GitHub

chore: fix Array(x).key() cannot works in codesandbox/codepen

Co-authored-by: Nweiwei <weiwei0814@theduapp.com>
上级 2980444b
......@@ -40,7 +40,7 @@ class SlidingTabsDemo extends React.Component {
<Radio.Button value="left">Vertical</Radio.Button>
</Radio.Group>
<Tabs defaultActiveKey="1" tabPosition={mode} style={{ height: 220 }}>
{[...Array(30).keys()].map(i => (
{[...Array.from({ length: 30 }, (v, i) => i)].map(i => (
<TabPane tab={`Tab-${i}`} key={i} disabled={i === 28}>
Content of tab {i}
</TabPane>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册