eoss-ui 0.4.14 → 0.4.15
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/lib/button-group.js +14 -1
- package/lib/button.js +14 -1
- package/lib/checkbox-group.js +14 -1
- package/lib/data-table-form.js +14 -1
- package/lib/data-table.js +14 -1
- package/lib/date-picker.js +14 -1
- package/lib/dialog.js +14 -1
- package/lib/eoss-ui.common.js +15 -2
- package/lib/flow-group.js +14 -1
- package/lib/flow-list.js +14 -1
- package/lib/flow.js +14 -1
- package/lib/form.js +14 -1
- package/lib/handle-user.js +14 -1
- package/lib/handler.js +14 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +14 -1
- package/lib/input.js +14 -1
- package/lib/login.js +14 -1
- package/lib/main.js +14 -1
- package/lib/mainComp.js +14 -1
- package/lib/nav.js +14 -1
- package/lib/page.js +14 -1
- package/lib/player.js +14 -1
- package/lib/qr-code.js +14 -1
- package/lib/radio-group.js +14 -1
- package/lib/select-ganged.js +14 -1
- package/lib/select.js +14 -1
- package/lib/selector-panel.js +14 -1
- package/lib/selector.js +14 -1
- package/lib/sizer.js +14 -1
- package/lib/steps.js +14 -1
- package/lib/switch.js +14 -1
- package/lib/table-form.js +14 -1
- package/lib/tabs.js +14 -1
- package/lib/tips.js +14 -1
- package/lib/tree-group.js +14 -1
- package/lib/tree.js +14 -1
- package/lib/upload.js +14 -1
- package/lib/utils/util.js +14 -1
- package/lib/wujie.js +14 -1
- package/lib/wxlogin.js +14 -1
- package/package.json +3 -3
- package/src/index.js +1 -1
- package/src/utils/util.js +15 -2
package/lib/button-group.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/button.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/checkbox-group.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/data-table-form.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/data-table.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/date-picker.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/dialog.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/eoss-ui.common.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -65665,7 +65678,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
65665
65678
|
}
|
|
65666
65679
|
|
|
65667
65680
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
65668
|
-
version: '0.4.
|
|
65681
|
+
version: '0.4.15',
|
|
65669
65682
|
install: install,
|
|
65670
65683
|
Button: packages_button,
|
|
65671
65684
|
ButtonGroup: button_group,
|
package/lib/flow-group.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/flow-list.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/flow.js
CHANGED
|
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1466
1466
|
next();
|
|
1467
1467
|
} else {
|
|
1468
1468
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1469
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1469
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
1470
|
var url = win.top.location.href;
|
|
1471
|
+
if (to.query.openType) {
|
|
1472
|
+
switch (to.query.openType) {
|
|
1473
|
+
case 'self':
|
|
1474
|
+
url = win.location.href;
|
|
1475
|
+
break;
|
|
1476
|
+
case 'blank':
|
|
1477
|
+
url = win.location.href;
|
|
1478
|
+
break;
|
|
1479
|
+
case 'parent':
|
|
1480
|
+
url = win.parent.location.href;
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1471
1484
|
ajax({
|
|
1472
1485
|
method: 'post',
|
|
1473
1486
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/form.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/handle-user.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
package/lib/handler.js
CHANGED
|
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1467
1467
|
next();
|
|
1468
1468
|
} else {
|
|
1469
1469
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1470
|
-
if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1470
|
+
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1471
1471
|
var url = win.top.location.href;
|
|
1472
|
+
if (to.query.openType) {
|
|
1473
|
+
switch (to.query.openType) {
|
|
1474
|
+
case 'self':
|
|
1475
|
+
url = win.location.href;
|
|
1476
|
+
break;
|
|
1477
|
+
case 'blank':
|
|
1478
|
+
url = win.location.href;
|
|
1479
|
+
break;
|
|
1480
|
+
case 'parent':
|
|
1481
|
+
url = win.parent.location.href;
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1472
1485
|
ajax({
|
|
1473
1486
|
method: 'post',
|
|
1474
1487
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|