UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

44 lines (36 loc) 1.49 kB
import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import _extends from "@babel/runtime/helpers/extends"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _inherits from "@babel/runtime/helpers/inherits"; import _createSuper from "@babel/runtime/helpers/createSuper"; import { __decorate } from "tslib"; import * as React from 'react'; import { observer } from 'mobx-react'; import Base from './Base'; import { FormField } from '../field/FormField'; var Paragraph = /*#__PURE__*/function (_FormField) { _inherits(Paragraph, _FormField); var _super = _createSuper(Paragraph); function Paragraph() { _classCallCheck(this, Paragraph); return _super.apply(this, arguments); } _createClass(Paragraph, [{ key: "renderWrapper", value: function renderWrapper() { return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Base, _extends({}, this.props, { component: "div" }), this.processRenderer(this.getValue()) || this.props.children), this.renderFloatLabel()); } }]); return Paragraph; }(FormField); Paragraph.displayName = 'Paragraph'; Paragraph.__PRO_TEXT = true; Paragraph.defaultProps = _objectSpread(_objectSpread({}, FormField.defaultProps), {}, { suffixCls: 'paragraph' }); Paragraph = __decorate([observer], Paragraph); export default Paragraph; //# sourceMappingURL=Paragraph.js.map