tsp-component
Version:
提供多端和react版本的UI组件
29 lines (28 loc) • 1.16 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import * as React from 'react';
import classNames from 'classnames';
var prefix = 'tsp-component-Scroll';
var Scroll = (function (_super) {
__extends(Scroll, _super);
function Scroll(props, state) {
return _super.call(this, props, state) || this;
}
Scroll.prototype.render = function () {
return (React.createElement("div", { className: classNames((_a = {},
_a[prefix] = true,
_a[this.props.className] = this.props.className,
_a)), id: this.props.id }, this.props.children));
var _a;
};
return Scroll;
}(React.Component));
export default Scroll;