antd-mobile
Version:
基于 React 的移动设计规范实现
32 lines (25 loc) • 933 B
JavaScript
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 React from 'react';
import RcDrawer from 'rc-drawer';
var Drawer = function (_React$Component) {
_inherits(Drawer, _React$Component);
function Drawer() {
_classCallCheck(this, Drawer);
return _possibleConstructorReturn(this, (Drawer.__proto__ || Object.getPrototypeOf(Drawer)).apply(this, arguments));
}
_createClass(Drawer, [{
key: 'render',
value: function render() {
return React.createElement(RcDrawer, this.props);
}
}]);
return Drawer;
}(React.Component);
export default Drawer;
Drawer.defaultProps = {
prefixCls: 'am-drawer',
enableDragHandle: false
};