mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
💄 fix span type warning in site
This commit is contained in:
parent
7fa4e7aed3
commit
4da04acff9
@ -4,7 +4,7 @@ import { Col, Row } from '..';
|
||||
|
||||
describe('Grid', () => {
|
||||
it('should render Col', () => {
|
||||
const wrapper = render(<Col span="2" />);
|
||||
const wrapper = render(<Col span={2} />);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
@ -14,11 +14,11 @@ describe('Grid', () => {
|
||||
});
|
||||
|
||||
it('renders wrapped Col correctly', () => {
|
||||
const MyCol = () => <Col span="12" />;
|
||||
const MyCol = () => <Col span={12} />;
|
||||
const wrapper = render(
|
||||
<Row gutter={20}>
|
||||
<div>
|
||||
<Col span="12" />
|
||||
<Col span={12} />
|
||||
</div>
|
||||
<MyCol />
|
||||
</Row>,
|
||||
|
@ -117,7 +117,7 @@ export default class ComponentDoc extends React.Component {
|
||||
</section>
|
||||
<Row gutter={16}>
|
||||
<Col
|
||||
span={isSingleCol ? '24' : '12'}
|
||||
span={isSingleCol ? 24 : 12}
|
||||
className={isSingleCol ? 'code-boxes-col-1-1' : 'code-boxes-col-2-1'}
|
||||
>
|
||||
{leftChildren}
|
||||
|
Loading…
Reference in New Issue
Block a user