1 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
2 |
|
3 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
4 |
|
5 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
6 |
|
7 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
8 |
|
9 | import React, { Component } from 'react';
|
10 | import InputText from './../InputText';
|
11 |
|
12 | var InputPassword = function (_Component) {
|
13 | _inherits(InputPassword, _Component);
|
14 |
|
15 | function InputPassword(props) {
|
16 | _classCallCheck(this, InputPassword);
|
17 |
|
18 | return _possibleConstructorReturn(this, _Component.call(this, props));
|
19 | }
|
20 |
|
21 | InputPassword.prototype.componentDidMount = function componentDidMount() {
|
22 | this.$el = this.refs.$ComponentInputText.$el;
|
23 | this.$input = this.refs.$ComponentInputText.$input;
|
24 | };
|
25 |
|
26 | InputPassword.prototype.render = function render() {
|
27 | return React.createElement(InputText, _extends({ ref: '$ComponentInputText' }, this.props, { type: 'password' }));
|
28 | };
|
29 |
|
30 | return InputPassword;
|
31 | }(Component);
|
32 |
|
33 | export { InputPassword as default }; |
\ | No newline at end of file |