UNPKG

@gdjiami/jm-mrc-components

Version:

移动端可复用组件库

17 lines (16 loc) 637 B
import { __extends } from "tslib"; import React from 'react'; import Notice from 'antd-mobile/es/notice-bar'; var NoticeBar = /** @class */ (function (_super) { __extends(NoticeBar, _super); function NoticeBar() { return _super !== null && _super.apply(this, arguments) || this; } NoticeBar.prototype.render = function () { return (React.createElement(Notice, { className: "jm-error", mode: "link", // @ts-ignore action: this.props.action, icon: this.props.icon }, this.props.children)); }; return NoticeBar; }(React.Component)); export default NoticeBar;