import _extends from"babel-runtime/helpers/extends";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import*as PropTypes from"prop-types";import RcRate from"rc-rate";import Icon from"../icon";var Rate=function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.saveRate=function(t){e.rcRate=t},e}return _inherits(t,e),_createClass(t,[{key:"focus",value:function(){this.rcRate.focus()}},{key:"blur",value:function(){this.rcRate.blur()}},{key:"render",value:function(){return React.createElement(RcRate,_extends({ref:this.saveRate},this.props))}}]),t}(React.Component);export default Rate;Rate.propTypes={prefixCls:PropTypes.string,character:PropTypes.node},Rate.defaultProps={prefixCls:"dt-rate",character:React.createElement(Icon,{type:"star"})};