ls-pro-common 3.0.67 → 3.0.68
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/common.css +30 -0
- package/dist/common.js +1 -1
- package/dist/common.min.css +30 -0
- package/dist/common.min.js +1 -1
- package/es/components/ImageSelector.js +1 -1
- package/es/utils/index.js +6 -6
- package/lib/components/ImageSelector.js +1 -1
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
|
@@ -265,7 +265,7 @@ function ImageSelector(prop) {
|
|
|
265
265
|
};
|
|
266
266
|
var win = top || window;
|
|
267
267
|
//@ts-ignore
|
|
268
|
-
if (!win.lsAppList) {
|
|
268
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
269
269
|
win = window;
|
|
270
270
|
}
|
|
271
271
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProFormText, _extends({
|
package/es/utils/index.js
CHANGED
|
@@ -360,7 +360,7 @@ export var showError = function showError(text) {
|
|
|
360
360
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
361
361
|
var win = top || window;
|
|
362
362
|
//@ts-ignore
|
|
363
|
-
if (!win.lsAppList) {
|
|
363
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
364
364
|
win = window;
|
|
365
365
|
}
|
|
366
366
|
_message.error({
|
|
@@ -383,7 +383,7 @@ export var showWarn = function showWarn(text) {
|
|
|
383
383
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
384
384
|
var win = top || window;
|
|
385
385
|
//@ts-ignore
|
|
386
|
-
if (!win.lsAppList) {
|
|
386
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
387
387
|
win = window;
|
|
388
388
|
}
|
|
389
389
|
_message.warn({
|
|
@@ -406,7 +406,7 @@ export var showSuccess = function showSuccess(text) {
|
|
|
406
406
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
407
407
|
var win = top || window;
|
|
408
408
|
//@ts-ignore
|
|
409
|
-
if (!win.lsAppList) {
|
|
409
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
410
410
|
win = window;
|
|
411
411
|
}
|
|
412
412
|
_message.success({
|
|
@@ -439,7 +439,7 @@ export var showAlert = function showAlert(text) {
|
|
|
439
439
|
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
440
440
|
var win = top || window;
|
|
441
441
|
//@ts-ignore
|
|
442
|
-
if (!win.lsAppList) {
|
|
442
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
443
443
|
win = window;
|
|
444
444
|
}
|
|
445
445
|
return new Promise(function (resolve, reject) {
|
|
@@ -470,7 +470,7 @@ export var showConfirm = function showConfirm(text) {
|
|
|
470
470
|
return new Promise(function (resolve, reject) {
|
|
471
471
|
var win = top || window;
|
|
472
472
|
//@ts-ignore
|
|
473
|
-
if (!win.lsAppList) {
|
|
473
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
474
474
|
win = window;
|
|
475
475
|
}
|
|
476
476
|
_Modal.confirm({
|
|
@@ -503,7 +503,7 @@ export var reLogin = function reLogin() {
|
|
|
503
503
|
timeout = true;
|
|
504
504
|
var win = top || window;
|
|
505
505
|
//@ts-ignore
|
|
506
|
-
if (!win.lsAppList) {
|
|
506
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
507
507
|
win = window;
|
|
508
508
|
}
|
|
509
509
|
_Modal.warning({
|
|
@@ -265,7 +265,7 @@ function ImageSelector(prop) {
|
|
|
265
265
|
};
|
|
266
266
|
var win = top || window;
|
|
267
267
|
//@ts-ignore
|
|
268
|
-
if (!win.lsAppList) {
|
|
268
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
269
269
|
win = window;
|
|
270
270
|
}
|
|
271
271
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProFormText, _extends({
|
package/lib/utils/index.js
CHANGED
|
@@ -360,7 +360,7 @@ export var showError = function showError(text) {
|
|
|
360
360
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
361
361
|
var win = top || window;
|
|
362
362
|
//@ts-ignore
|
|
363
|
-
if (!win.lsAppList) {
|
|
363
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
364
364
|
win = window;
|
|
365
365
|
}
|
|
366
366
|
_message.error({
|
|
@@ -383,7 +383,7 @@ export var showWarn = function showWarn(text) {
|
|
|
383
383
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
384
384
|
var win = top || window;
|
|
385
385
|
//@ts-ignore
|
|
386
|
-
if (!win.lsAppList) {
|
|
386
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
387
387
|
win = window;
|
|
388
388
|
}
|
|
389
389
|
_message.warn({
|
|
@@ -406,7 +406,7 @@ export var showSuccess = function showSuccess(text) {
|
|
|
406
406
|
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
407
407
|
var win = top || window;
|
|
408
408
|
//@ts-ignore
|
|
409
|
-
if (!win.lsAppList) {
|
|
409
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
410
410
|
win = window;
|
|
411
411
|
}
|
|
412
412
|
_message.success({
|
|
@@ -439,7 +439,7 @@ export var showAlert = function showAlert(text) {
|
|
|
439
439
|
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
440
440
|
var win = top || window;
|
|
441
441
|
//@ts-ignore
|
|
442
|
-
if (!win.lsAppList) {
|
|
442
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
443
443
|
win = window;
|
|
444
444
|
}
|
|
445
445
|
return new Promise(function (resolve, reject) {
|
|
@@ -470,7 +470,7 @@ export var showConfirm = function showConfirm(text) {
|
|
|
470
470
|
return new Promise(function (resolve, reject) {
|
|
471
471
|
var win = top || window;
|
|
472
472
|
//@ts-ignore
|
|
473
|
-
if (!win.lsAppList) {
|
|
473
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
474
474
|
win = window;
|
|
475
475
|
}
|
|
476
476
|
_Modal.confirm({
|
|
@@ -503,7 +503,7 @@ export var reLogin = function reLogin() {
|
|
|
503
503
|
timeout = true;
|
|
504
504
|
var win = top || window;
|
|
505
505
|
//@ts-ignore
|
|
506
|
-
if (!win.lsAppList) {
|
|
506
|
+
if (!win.lsAppList || !!document.fullscreenElement) {
|
|
507
507
|
win = window;
|
|
508
508
|
}
|
|
509
509
|
_Modal.warning({
|