|
@ -58,139 +58,71 @@ exports[`List Item Layout horizontal itemLayout List should accept extra node 1` |
|
|
`; |
|
|
`; |
|
|
|
|
|
|
|
|
exports[`List Item Layout rowKey could be function 1`] = ` |
|
|
exports[`List Item Layout rowKey could be function 1`] = ` |
|
|
<List |
|
|
<div |
|
|
dataSource={ |
|
|
class="ant-list ant-list-split" |
|
|
Array [ |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 1, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 2, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 3, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
renderItem={[Function]} |
|
|
|
|
|
rowKey={[Function]} |
|
|
|
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
className="ant-list ant-list-split" |
|
|
class="ant-spin-nested-loading" |
|
|
> |
|
|
|
|
|
<Spin |
|
|
|
|
|
size="default" |
|
|
|
|
|
spinning={false} |
|
|
|
|
|
wrapperClassName="" |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
className="ant-spin-nested-loading" |
|
|
|
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
className="ant-spin-container" |
|
|
class="ant-spin-container" |
|
|
key="container" |
|
|
|
|
|
> |
|
|
> |
|
|
<ul |
|
|
<ul |
|
|
className="ant-list-items" |
|
|
class="ant-list-items" |
|
|
> |
|
|
> |
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</Spin> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</List> |
|
|
|
|
|
`; |
|
|
`; |
|
|
|
|
|
|
|
|
exports[`List Item Layout rowKey could be string 1`] = ` |
|
|
exports[`List Item Layout rowKey could be string 1`] = ` |
|
|
<List |
|
|
<div |
|
|
dataSource={ |
|
|
class="ant-list ant-list-split" |
|
|
Array [ |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 1, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 2, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
Object { |
|
|
|
|
|
"id": 3, |
|
|
|
|
|
"title": "ant design", |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
renderItem={[Function]} |
|
|
|
|
|
rowKey="id" |
|
|
|
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
className="ant-list ant-list-split" |
|
|
class="ant-spin-nested-loading" |
|
|
> |
|
|
|
|
|
<Spin |
|
|
|
|
|
size="default" |
|
|
|
|
|
spinning={false} |
|
|
|
|
|
wrapperClassName="" |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
className="ant-spin-nested-loading" |
|
|
|
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
className="ant-spin-container" |
|
|
class="ant-spin-container" |
|
|
key="container" |
|
|
|
|
|
> |
|
|
> |
|
|
<ul |
|
|
<ul |
|
|
className="ant-list-items" |
|
|
class="ant-list-items" |
|
|
> |
|
|
> |
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
<Item> |
|
|
|
|
|
<li |
|
|
<li |
|
|
className="ant-list-item" |
|
|
class="ant-list-item" |
|
|
> |
|
|
> |
|
|
ant design |
|
|
ant design |
|
|
</li> |
|
|
</li> |
|
|
</Item> |
|
|
|
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</Spin> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</List> |
|
|
|
|
|
`; |
|
|
`; |
|
|
|
|
|
|
|
|
exports[`List Item Layout should render in RTL direction 1`] = ` |
|
|
exports[`List Item Layout should render in RTL direction 1`] = ` |
|
|