mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-25 04:35:50 +10:00
remove href attributes of tag
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
@@ -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);
|
||||
````
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||
|----------------|--------------------------------|------------|---------|--------|
|
||||
| href | 链接的地址,会传给 a 标签 | string | | false |
|
||||
| closable | 标签是否可以关闭 | boolean | | false |
|
||||
| onClose | 组合时根据此项判定checked | function | | 无 |
|
||||
| color | 标签的色彩 | string | blue green yellow red | 无 |
|
||||
|
||||
Reference in New Issue
Block a user