mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
23 lines
452 B
JavaScript
23 lines
452 B
JavaScript
'use strict';
|
|
|
|
var React = require('react');
|
|
var Tooltip = require('rc-tooltip');
|
|
|
|
module.exports = React.createClass({
|
|
getDefaultProps: function () {
|
|
return {
|
|
placement: 'top'
|
|
};
|
|
},
|
|
render: function() {
|
|
return (
|
|
<Tooltip placement={this.props.placement}
|
|
prefixCls="ant-tooltip"
|
|
trigger={this.props.trigger}
|
|
overlay={this.props.title}>
|
|
{this.props.children}
|
|
</Tooltip>
|
|
);
|
|
}
|
|
});
|