elmer-ui-core
Version:
web app framework
47 lines (40 loc) • 1.55 kB
JavaScript
;
(self["elmer-chunks"] = self["elmer-chunks"] || []).push([[771],{
/***/ 4771:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ AsyncApp; }
});
;// CONCATENATED MODULE: ./example/Async.less
/* harmony default export */ var Async = ({"asyncApp":".style_30bf5f86-86a1-79ab-820d-da5d7c25_asyncApp"});
;// CONCATENATED MODULE: ./example/AsyncApp.ts
// import { useEffect, useCallback, useContext, useComponent, useState } from "../src/hooks";
// import { withI18n, FormatMessage, withRouter } from "../src/widget";
// const WithContextAsyncApp = ({ location }) => {
// useComponent("FormatMessage", FormatMessage);
// return `<div style="display: block;border: 1px solid red;">
// <label style="display: block;">Async Component</label>
// <FormatMessage lngId="asyncApp"/>
// </div>`;
// };
// const MyAsyncApp = withRouter()(withI18n({
// i18n: {
// "en-GB": {
// asyncApp: "This is Async App"
// },
// "zh-CN": {
// asyncApp: "这是一个异步组件"
// }
// }
// })(WithContextAsyncApp));
/* harmony default export */ var AsyncApp = (function (props) {
// useComponent("DefectApp", MyAsyncApp);
console.log("----", props);
return "<h2>Hello elmer{{props.test}}</h2>";
});
/***/ })
}]);
//# sourceMappingURL=771_b3197b91_771.min.js.map