Skip to content

ts文件预览有错误 #22

@xiaohuoni

Description

@xiaohuoni

使用 code 标签引入

<code src="./demo.tsx" />

代码中是

const dataList: Item[] = new Array(10).fill(0).map((i, index) => ({ text: `第${index}个`, id: `${index}` }));

预览中是

const dataList: Item[] = [10].map(i => ({ text: `第${i}个`, id: `${i}` }));

这两者逻辑并不一致。
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions