1 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
2 | import _createClass from 'babel-runtime/helpers/createClass';
|
3 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
4 | import _inherits from 'babel-runtime/helpers/inherits';
|
5 | var __rest = this && this.__rest || function (s, e) {
|
6 | var t = {};
|
7 | for (var p in s) {
|
8 | if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
9 | }if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
10 | if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
|
11 | }return t;
|
12 | };
|
13 | import React, { Component } from 'react';
|
14 | import Touchable from 'rmc-feedback';
|
15 |
|
16 | var InputHandler = function (_Component) {
|
17 | _inherits(InputHandler, _Component);
|
18 |
|
19 | function InputHandler() {
|
20 | _classCallCheck(this, InputHandler);
|
21 |
|
22 | return _possibleConstructorReturn(this, (InputHandler.__proto__ || Object.getPrototypeOf(InputHandler)).apply(this, arguments));
|
23 | }
|
24 |
|
25 | _createClass(InputHandler, [{
|
26 | key: 'render',
|
27 | value: function render() {
|
28 | var _a = this.props,
|
29 | prefixCls = _a.prefixCls,
|
30 | disabled = _a.disabled,
|
31 | otherProps = __rest(_a, ["prefixCls", "disabled"]);
|
32 | return React.createElement(
|
33 | Touchable,
|
34 | { disabled: disabled, activeClassName: prefixCls + '-handler-active' },
|
35 | React.createElement('span', otherProps)
|
36 | );
|
37 | }
|
38 | }]);
|
39 |
|
40 | return InputHandler;
|
41 | }(Component);
|
42 |
|
43 | export default InputHandler; |
\ | No newline at end of file |