From db2ef44617d69b2ddc1d7200e4ecb173eeba2859 Mon Sep 17 00:00:00 2001 From: zhangpc Date: Thu, 14 Jan 2016 09:26:20 +0800 Subject: [PATCH] remove href attributes of tag --- CHANGELOG.md | 1 + components/tag/demo/basic.md | 2 +- components/tag/index.jsx | 2 +- components/tag/index.md | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0798b10025..86a0f4c1bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - 修复 TimePicker 受控模式点选即关闭面板的问题。[#818](https://github.com/ant-design/ant-design/issues/818) - 修复一个两栏的 TimePicker 点击右边空白处无法关闭面板的问题。[#826](https://github.com/ant-design/ant-design/issues/826) - 修复 Table `pagination.onChange` 指定无效的问题。[#824](https://github.com/ant-design/ant-design/issues/824) +- 移除 Tag `href` 属性。[#862](https://github.com/ant-design/ant-design/issues/862) ## 0.11.2 `2015-01-03` diff --git a/components/tag/demo/basic.md b/components/tag/demo/basic.md index aec4cb6067..cd1a87cb90 100644 --- a/components/tag/demo/basic.md +++ b/components/tag/demo/basic.md @@ -17,6 +17,6 @@ ReactDOM.render(
标签一 标签二 标签三 - 标签四(链接) + 标签四(链接)
, mountNode); ```` diff --git a/components/tag/index.jsx b/components/tag/index.jsx index f88e8b3f91..f7d2dfc4ba 100644 --- a/components/tag/index.jsx +++ b/components/tag/index.jsx @@ -45,7 +45,7 @@ class AntTag extends React.Component { transitionName={this.props.prefixCls + '-zoom'} onEnd={this.animationEnd.bind(this)}>
- + {close}
diff --git a/components/tag/index.md b/components/tag/index.md index eaf307d7e8..062bb0b12c 100644 --- a/components/tag/index.md +++ b/components/tag/index.md @@ -17,7 +17,6 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |----------------|--------------------------------|------------|---------|--------| -| href | 链接的地址,会传给 a 标签 | string | | false | | closable | 标签是否可以关闭 | boolean | | false | | onClose | 组合时根据此项判定checked | function | | 无 | | color | 标签的色彩 | string | blue green yellow red | 无 |