dev_ec
杨树明 5 years ago
parent 2977a48e38
commit 63c169e457

@ -14,7 +14,7 @@ class WordsBtn extends Component {
{
to==undefined&&targets==undefined ?
<a href={href || "javascript:void(0)"} onClick={this.props.onClick} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>:
target!=undefined? <a href={href || "javascript:void(0)"} target="_blank" onClick={this.props.onClick} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>
targets!=undefined? <a href={to} target="_blank" className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>
:
<Link to={to} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</Link>
}

Loading…
Cancel
Save