mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Merge branch 'master' into next
This commit is contained in:
commit
ae7ce6789b
@ -151,7 +151,7 @@ describe('List Item Layout', () => {
|
||||
renderItem={item => <List.Item>{item.title}</List.Item>}
|
||||
/>,
|
||||
);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('rowKey could be function', () => {
|
||||
@ -176,6 +176,6 @@ describe('List Item Layout', () => {
|
||||
renderItem={item => <List.Item>{item.title}</List.Item>}
|
||||
/>,
|
||||
);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
@ -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`] = `
|
||||
<List
|
||||
dataSource={
|
||||
Array [
|
||||
Object {
|
||||
"id": 1,
|
||||
"title": "ant design",
|
||||
},
|
||||
Object {
|
||||
"id": 2,
|
||||
"title": "ant design",
|
||||
},
|
||||
Object {
|
||||
"id": 3,
|
||||
"title": "ant design",
|
||||
},
|
||||
]
|
||||
}
|
||||
renderItem={[Function]}
|
||||
rowKey={[Function]}
|
||||
<div
|
||||
class="ant-list ant-list-split"
|
||||
>
|
||||
<div
|
||||
className="ant-list ant-list-split"
|
||||
class="ant-spin-nested-loading"
|
||||
>
|
||||
<Spin
|
||||
size="default"
|
||||
spinning={false}
|
||||
wrapperClassName=""
|
||||
<div
|
||||
class="ant-spin-container"
|
||||
>
|
||||
<div
|
||||
className="ant-spin-nested-loading"
|
||||
<ul
|
||||
class="ant-list-items"
|
||||
>
|
||||
<div
|
||||
className="ant-spin-container"
|
||||
key="container"
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
<ul
|
||||
className="ant-list-items"
|
||||
>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</Spin>
|
||||
ant design
|
||||
</li>
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</List>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`List Item Layout rowKey could be string 1`] = `
|
||||
<List
|
||||
dataSource={
|
||||
Array [
|
||||
Object {
|
||||
"id": 1,
|
||||
"title": "ant design",
|
||||
},
|
||||
Object {
|
||||
"id": 2,
|
||||
"title": "ant design",
|
||||
},
|
||||
Object {
|
||||
"id": 3,
|
||||
"title": "ant design",
|
||||
},
|
||||
]
|
||||
}
|
||||
renderItem={[Function]}
|
||||
rowKey="id"
|
||||
<div
|
||||
class="ant-list ant-list-split"
|
||||
>
|
||||
<div
|
||||
className="ant-list ant-list-split"
|
||||
class="ant-spin-nested-loading"
|
||||
>
|
||||
<Spin
|
||||
size="default"
|
||||
spinning={false}
|
||||
wrapperClassName=""
|
||||
<div
|
||||
class="ant-spin-container"
|
||||
>
|
||||
<div
|
||||
className="ant-spin-nested-loading"
|
||||
<ul
|
||||
class="ant-list-items"
|
||||
>
|
||||
<div
|
||||
className="ant-spin-container"
|
||||
key="container"
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
<ul
|
||||
className="ant-list-items"
|
||||
>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
<Item>
|
||||
<li
|
||||
className="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</Item>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</Spin>
|
||||
ant design
|
||||
</li>
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
<li
|
||||
class="ant-list-item"
|
||||
>
|
||||
ant design
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</List>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`List Item Layout should render in RTL direction 1`] = `
|
||||
|
@ -7,7 +7,7 @@ title: 社区精选组件
|
||||
|
||||
| 类型 | 推荐组件 |
|
||||
| --- | --- |
|
||||
| 可视化图表 | [Ant Design Charts](https://charts.ant.design/zh-CN/) [AntV 数据可视化解决方案](https://antv.vision/zh) |
|
||||
| 可视化图表 | [Ant Design Charts](https://charts.ant.design/zh) [AntV 数据可视化解决方案](https://antv.vision/zh) |
|
||||
| React Hooks 库 | [ahooks](https://github.com/alibaba/hooks) |
|
||||
| 表单 | [ProForm](https://procomponents.ant.design/components/form) [Formily](https://github.com/alibaba/formily) [react-hook-form](https://github.com/react-hook-form/react-hook-form) [formik](https://github.com/formium/formik) |
|
||||
| 路由 | [react-router](https://github.com/ReactTraining/react-router) |
|
||||
|
Loading…
Reference in New Issue
Block a user