mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
type: type enhance (#39140)
This commit is contained in:
parent
ada192f3a0
commit
65af95093b
@ -11,7 +11,7 @@ const generateData = (_level: number, _preKey?: React.Key, _tns?: DataNode[]) =>
|
||||
const preKey = _preKey || '0';
|
||||
const tns = _tns || defaultData;
|
||||
|
||||
const children = [];
|
||||
const children: React.Key[] = [];
|
||||
for (let i = 0; i < x; i++) {
|
||||
const key = `${preKey}-${i}`;
|
||||
tns.push({ title: key, key });
|
||||
|
@ -13,7 +13,7 @@ const generateData = (_level: number, _preKey?: React.Key, _tns?: DataNode[]) =>
|
||||
const preKey = _preKey || '0';
|
||||
const tns = _tns || defaultData;
|
||||
|
||||
const children = [];
|
||||
const children: React.Key[] = [];
|
||||
for (let i = 0; i < x; i++) {
|
||||
const key = `${preKey}-${i}`;
|
||||
tns.push({ title: key, key });
|
||||
|
Loading…
Reference in New Issue
Block a user