From 4e68750777283cf8078fa500793ca7584864b27d Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Tue, 15 Aug 2017 19:57:44 +0800 Subject: [PATCH] List: remove noHovering prop --- .../list/__tests__/__snapshots__/demo.test.js.snap | 2 +- components/list/demo/vertical.md | 2 +- components/list/index.en-US.md | 1 - components/list/index.tsx | 3 --- components/list/index.zh-CN.md | 1 - components/list/style/index.less | 14 -------------- 6 files changed, 2 insertions(+), 21 deletions(-) diff --git a/components/list/__tests__/__snapshots__/demo.test.js.snap b/components/list/__tests__/__snapshots__/demo.test.js.snap index aed1264420..4d8c04722c 100644 --- a/components/list/__tests__/__snapshots__/demo.test.js.snap +++ b/components/list/__tests__/__snapshots__/demo.test.js.snap @@ -479,7 +479,7 @@ exports[`renders ./components/list/demo/grid.md correctly 1`] = ` exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
( ); ReactDOM.render( - + { listData.map(item => ( { itemLayout, showLoadMore = false, loadingMore = false, - noHovering = true, onLoadMore = (() => { }), pagination = false, @@ -57,7 +55,6 @@ export default class List extends Component { [`${prefixCls}-bordered`]: bordered, [`${prefixCls}-loading`]: loading, [`${prefixCls}-grid`]: grid, - [`${prefixCls}-hovering`]: !noHovering, }); const moreButton = ( diff --git a/components/list/index.zh-CN.md b/components/list/index.zh-CN.md index 9e0157536e..c59d808073 100644 --- a/components/list/index.zh-CN.md +++ b/components/list/index.zh-CN.md @@ -25,7 +25,6 @@ cols: 1 | loadingMore | 是否显示加载更多按钮的 loading 状态 | boolean | false | | onMoreClick | 点击 more 按钮的回调 | function | - | | pagination | 对应的 pagination 配置, 设置 false 不显示 | boolean \| object | false | -| noHovering | 取消鼠标移过高亮标题 | boolean | true | ### List.Item diff --git a/components/list/style/index.less b/components/list/style/index.less index 49be8b1a96..801bc0d595 100644 --- a/components/list/style/index.less +++ b/components/list/style/index.less @@ -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; - } - } - } - } -}