fix: extra space

This commit is contained in:
muzea 2018-11-09 18:33:39 +08:00 committed by 偏右
parent 0760cb7ff7
commit 0c5bbf04f4
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ class NameColumn extends Table.Column<IUser> {}
// after TypeScript 2.9 can write like this
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#generic-type-arguments-in-jsx-elements
<Table<IUser> columns={columns} dataSource={data} />
<Table<IUser> dataSource={data}>
<Table<IUser> dataSource={data}>
<Table.Column<IUser> key="name" title="Name" dataIndex="name" />
</Table>
```

View File

@ -214,7 +214,7 @@ class NameColumn extends Table.Column<IUser> {}
// TypeScript 2.9 之后也可以这样写
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#generic-type-arguments-in-jsx-elements
<Table<IUser> columns={columns} dataSource={data} />
<Table<IUser> dataSource={data}>
<Table<IUser> dataSource={data}>
<Table.Column<IUser> key="name" title="Name" dataIndex="name" />
</Table>