choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
28 lines (27 loc) • 833 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
var Divider = createReactClass({
displayName: 'Divider',
propTypes: {
className: PropTypes.string,
rootPrefixCls: PropTypes.string
},
getDefaultProps: function getDefaultProps() {
// To fix keyboard UX.
return {
disabled: true
};
},
render: function render() {
var _this$props = this.props,
_this$props$className = _this$props.className,
className = _this$props$className === void 0 ? '' : _this$props$className,
rootPrefixCls = _this$props.rootPrefixCls;
return React.createElement("li", {
className: "".concat(className, " ").concat(rootPrefixCls, "-item-divider")
});
}
});
export default Divider;
//# sourceMappingURL=Divider.js.map