List: remove noHovering prop

This commit is contained in:
nikogu 2017-08-15 19:57:44 +08:00
parent 8ed6883d70
commit 4e68750777
6 changed files with 2 additions and 21 deletions

View File

@ -479,7 +479,7 @@ exports[`renders ./components/list/demo/grid.md correctly 1`] = `
exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
<div
class="ant-list ant-list-vertical ant-list-bordered ant-list-hovering"
class="ant-list ant-list-vertical ant-list-bordered"
>
<div
class="ant-list-item"

View File

@ -42,7 +42,7 @@ const IconText = ({ type, text }) => (
);
ReactDOM.render(
<List noHovering={false} itemLayout="vertical" pagination={pagination}>
<List itemLayout="vertical" pagination={pagination}>
{
listData.map(item => (
<List.Item

View File

@ -24,7 +24,6 @@ A list can be used to display content related to a single subject. The content c
| loadingMore | - | boolean | false |
| onMoreClick | -| function | - |
| pagination | - | boolean \| object | false |
| noHovering | - | boolean | true |
### List.Item

View File

@ -28,7 +28,6 @@ export interface ListProps {
pagination?: any;
prefixCls?: string;
grid?: ListGridType;
noHovering: boolean;
style?: React.CSSProperties;
}
@ -44,7 +43,6 @@ export default class List extends Component<ListProps> {
itemLayout,
showLoadMore = false,
loadingMore = false,
noHovering = true,
onLoadMore = (() => {
}),
pagination = false,
@ -57,7 +55,6 @@ export default class List extends Component<ListProps> {
[`${prefixCls}-bordered`]: bordered,
[`${prefixCls}-loading`]: loading,
[`${prefixCls}-grid`]: grid,
[`${prefixCls}-hovering`]: !noHovering,
});
const moreButton = (

View File

@ -25,7 +25,6 @@ cols: 1
| loadingMore | 是否显示加载更多按钮的 loading 状态 | boolean | false |
| onMoreClick | 点击 more 按钮的回调 | function | - |
| pagination | 对应的 pagination 配置, 设置 false 不显示 | boolean \| object | false |
| noHovering | 取消鼠标移过高亮标题 | boolean | true |
### List.Item

View File

@ -157,17 +157,3 @@
}
}
}
.@{list-prefix-cls}-hovering {
.@{list-prefix-cls}-item {
cursor: pointer;
&:hover {
.@{list-prefix-cls}-item-meta-title {
color: @primary-color;
a {
color: @primary-color;
}
}
}
}
}