antd-mobile-alita
Version:
基于 React 的移动设计规范实现
33 lines (26 loc) • 1.16 kB
JavaScript
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import * as React from 'react';
import AbstractPicker, { getDefaultProps } from './AbstractPicker';
import * as PropTypes from 'prop-types';
import popupProps from './popupProps';
// TODO:
// fix error TS4026:Public static property 'defaultProps' of exported class has or is using name 'React.ReactElement'
// fix error TS6133: 'React' is declared but its value is never read.
export var nonsense = React.createElement('div', null);
var Picker = function (_AbstractPicker) {
_inherits(Picker, _AbstractPicker);
function Picker() {
_classCallCheck(this, Picker);
var _this = _possibleConstructorReturn(this, (Picker.__proto__ || Object.getPrototypeOf(Picker)).apply(this, arguments));
_this.popupProps = popupProps;
return _this;
}
return Picker;
}(AbstractPicker);
export default Picker;
Picker.defaultProps = getDefaultProps();
Picker.contextTypes = {
antLocale: PropTypes.object
};