@teamix/pro 1.5.7-beta.0 → 1.5.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro.js +25 -7
- package/dist/pro.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/utils/useRealHistory.js +8 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/useRealHistory.js +8 -2
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.5.7-beta.
|
31
|
+
declare const version = "1.5.7-beta.1";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -35,7 +35,7 @@ export * from './table';
|
|
35
35
|
export * from './sidebar';
|
36
36
|
export * from './utils';
|
37
37
|
export * from './timeline';
|
38
|
-
var version = '1.5.7-beta.
|
38
|
+
var version = '1.5.7-beta.1';
|
39
39
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo,
|
40
40
|
// ProLayout,
|
41
41
|
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
|
@@ -23,8 +23,14 @@ var useRealHistory = function useRealHistory() {
|
|
23
23
|
history = window.HistoryLibrary.createBrowserHistory();
|
24
24
|
var oldPush = history.push;
|
25
25
|
history.push = function (p) {
|
26
|
-
|
27
|
-
|
26
|
+
if (typeof p === 'string') {
|
27
|
+
var _window$ICESTARK;
|
28
|
+
oldPush(path.join(((_window$ICESTARK = window.ICESTARK) === null || _window$ICESTARK === void 0 ? void 0 : _window$ICESTARK.basename) || '/', p));
|
29
|
+
} else {
|
30
|
+
var _window$ICESTARK2;
|
31
|
+
p.pathname = path.join(((_window$ICESTARK2 = window.ICESTARK) === null || _window$ICESTARK2 === void 0 ? void 0 : _window$ICESTARK2.basename) || '/', p.pathname);
|
32
|
+
oldPush(p);
|
33
|
+
}
|
28
34
|
};
|
29
35
|
setRealHistory(history);
|
30
36
|
}
|
package/lib/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.5.7-beta.
|
31
|
+
declare const version = "1.5.7-beta.1";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/lib/index.js
CHANGED
@@ -280,5 +280,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
280
280
|
if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMIXPRO_WITHOUT_ICON)) {
|
281
281
|
_icon.default.setConfig(_utils.default.getTeamixIconConfig());
|
282
282
|
}
|
283
|
-
var version = '1.5.7-beta.
|
283
|
+
var version = '1.5.7-beta.1';
|
284
284
|
exports.version = version;
|
@@ -27,8 +27,14 @@ var useRealHistory = function useRealHistory() {
|
|
27
27
|
history = window.HistoryLibrary.createBrowserHistory();
|
28
28
|
var oldPush = history.push;
|
29
29
|
history.push = function (p) {
|
30
|
-
|
31
|
-
|
30
|
+
if (typeof p === 'string') {
|
31
|
+
var _window$ICESTARK;
|
32
|
+
oldPush(path.join(((_window$ICESTARK = window.ICESTARK) === null || _window$ICESTARK === void 0 ? void 0 : _window$ICESTARK.basename) || '/', p));
|
33
|
+
} else {
|
34
|
+
var _window$ICESTARK2;
|
35
|
+
p.pathname = path.join(((_window$ICESTARK2 = window.ICESTARK) === null || _window$ICESTARK2 === void 0 ? void 0 : _window$ICESTARK2.basename) || '/', p.pathname);
|
36
|
+
oldPush(p);
|
37
|
+
}
|
32
38
|
};
|
33
39
|
setRealHistory(history);
|
34
40
|
}
|