zmp-react
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -51,3 +51,8 @@ "use strict"; | ||
var routePath = (0, _utils.toRoutePath)(path); | ||
var alias; | ||
if (routePath) { | ||
alias = routePath.substring(0, routePath.length - 1); | ||
} | ||
if (index === 0) { | ||
@@ -64,3 +69,3 @@ return { | ||
return { | ||
var routeObj = { | ||
path: routePath, | ||
@@ -73,2 +78,8 @@ asyncComponent: function asyncComponent() { | ||
}; | ||
if (alias) { | ||
routeObj.alias = alias; | ||
} | ||
return routeObj; | ||
}); | ||
@@ -75,0 +86,0 @@ return /*#__PURE__*/_react.default.createElement(_app.default, (0, _extends2.default)({}, props, { |
/** | ||
* ZMP React 2.1.1 | ||
* ZMP React 2.1.2 | ||
* Build full featured iOS & Android apps using ZMP & React | ||
@@ -10,3 +10,3 @@ * https://h5.zalo.me/react/ | ||
* | ||
* Released on: May 31, 2021 | ||
* Released on: June 3, 2021 | ||
*/ | ||
@@ -20,4 +20,2 @@ "use strict"; | ||
var _ssrWindow = require("ssr-window"); | ||
var _plugin = _interopRequireDefault(require("./shared/plugin")); | ||
@@ -243,12 +241,9 @@ | ||
var _window = _interopRequireDefault(require("./shared/window")); | ||
/* eslint-disable no-proto */ | ||
/* eslint-disable func-names */ | ||
var window = (0, _ssrWindow.getWindow)(); | ||
window.open = function () { | ||
return function () {}; | ||
}(window.open); | ||
(0, _window.default)(); | ||
var _default = _plugin.default; | ||
exports.default = _default; |
@@ -38,3 +38,8 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var routePath = toRoutePath(path); | ||
var alias; | ||
if (routePath) { | ||
alias = routePath.substring(0, routePath.length - 1); | ||
} | ||
if (index === 0) { | ||
@@ -51,3 +56,3 @@ return { | ||
return { | ||
var routeObj = { | ||
path: routePath, | ||
@@ -60,2 +65,8 @@ asyncComponent: function asyncComponent() { | ||
}; | ||
if (alias) { | ||
routeObj.alias = alias; | ||
} | ||
return routeObj; | ||
}); | ||
@@ -62,0 +73,0 @@ return /*#__PURE__*/React.createElement(App, _extends({}, props, { |
/** | ||
* ZMP React 2.1.1 | ||
* ZMP React 2.1.2 | ||
* Build full featured iOS & Android apps using ZMP & React | ||
@@ -10,7 +10,6 @@ * https://h5.zalo.me/react/ | ||
* | ||
* Released on: May 31, 2021 | ||
* Released on: June 3, 2021 | ||
*/ | ||
/* eslint-disable no-proto */ | ||
/* eslint-disable func-names */ | ||
import { getWindow } from 'ssr-window'; | ||
import ZMPReact from './shared/plugin'; | ||
@@ -20,8 +19,2 @@ import { zmp, zmpready, theme } from './shared/zmp'; | ||
const window = getWindow(); | ||
window.open = (function () { | ||
return function () {}; | ||
})(window.open); | ||
import ActionsButton from './zalo-ui-kits/actions-button'; | ||
@@ -80,4 +73,8 @@ import ActionsGroup from './zalo-ui-kits/actions-group'; | ||
import windowPlugin from './shared/window'; | ||
windowPlugin(); | ||
export { ActionsButton, ActionsGroup, ActionsLabel, Actions, App, AvatarGroup, Avatar, Box, Button, Card, Checkbox, Col, DatePicker, FabBackdrop, FabButton, FabButtons, Fab, GridItem, Grid, Icon, InputInfo, Input, Link, ListInput, ListItem, List, NavLeft, NavRight, NavTitleLarge, NavTitle, Navbar, Page, Picker, Preloader, Progressbar, Radio, Range, Row, Searchbar, Sheet, SkeletonAvatar, SkeletonBlock, SkeletonImage, SkeletonText, Tab, Tabbar, Tabs, Text, Title, ToastPreloader, Toggle, View } | ||
export { zmp, zmpready, theme, useStore }; | ||
export default ZMPReact; |
{ | ||
"name": "zmp-react", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Build full featured iOS & Android apps using ZMP & React", | ||
@@ -5,0 +5,0 @@ "main": "cjs/zmp-react.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1731133
455
38839