Browse Source

remove href attributes of tag

pull/869/head
zhangpc 9 years ago
parent
commit
db2ef44617
  1. 1
      CHANGELOG.md
  2. 2
      components/tag/demo/basic.md
  3. 2
      components/tag/index.jsx
  4. 1
      components/tag/index.md

1
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`

2
components/tag/demo/basic.md

@ -17,6 +17,6 @@ ReactDOM.render(<div>
<Tag>标签一</Tag>
<Tag>标签二</Tag>
<Tag closable onClose={onClose}>标签三</Tag>
<Tag href="http://www.baidu.com">标签四(链接)</Tag>
<a href="https://www.alipay.com/" target="_blank"><Tag>标签四(链接)</Tag></a>
</div>, mountNode);
````

2
components/tag/index.jsx

@ -45,7 +45,7 @@ class AntTag extends React.Component {
transitionName={this.props.prefixCls + '-zoom'}
onEnd={this.animationEnd.bind(this)}>
<div data-show={!this.state.closing} className={className}>
<a className={this.props.prefixCls + '-text'} {...this.props} />
<span className={this.props.prefixCls + '-text'} {...this.props} />
{close}
</div>
</Animate>

1
components/tag/index.md

@ -17,7 +17,6 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|----------------|--------------------------------|------------|---------|--------|
| href | 链接的地址,会传给 a 标签 | string | | false |
| closable | 标签是否可以关闭 | boolean | | false |
| onClose | 组合时根据此项判定checked | function | | 无 |
| color | 标签的色彩 | string | blue green yellow red | 无 |

Loading…
Cancel
Save