eoss-ui 0.4.39 → 0.4.41
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 +40 -13
- package/lib/button.js +35 -8
- package/lib/checkbox-group.js +35 -8
- package/lib/data-table-form.js +35 -8
- package/lib/data-table.js +97 -34
- package/lib/date-picker.js +35 -8
- package/lib/dialog.js +52 -39
- package/lib/editor.js +415 -887
- package/lib/eoss-ui.common.js +11166 -10552
- package/lib/flow-group.js +37 -26
- package/lib/flow-list.js +35 -8
- package/lib/flow.js +163 -54
- package/lib/form.js +10081 -9075
- package/lib/handle-user.js +35 -8
- package/lib/handler.js +35 -8
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +35 -8
- package/lib/input.js +35 -8
- package/lib/login.js +35 -8
- package/lib/main.js +35 -8
- package/lib/mainComp.js +35 -8
- package/lib/nav.js +35 -8
- package/lib/page.js +35 -8
- package/lib/player.js +37 -10
- package/lib/qr-code.js +35 -8
- package/lib/radio-group.js +35 -8
- package/lib/select-ganged.js +35 -8
- package/lib/select.js +35 -8
- package/lib/selector-panel.js +43 -16
- package/lib/selector.js +40 -13
- package/lib/sizer.js +35 -8
- package/lib/steps.js +35 -8
- package/lib/switch.js +35 -8
- package/lib/table-form.js +48 -13
- package/lib/tabs.js +40 -36
- package/lib/theme-chalk/editor.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +35 -8
- package/lib/tree-group.js +39 -21
- package/lib/tree.js +35 -8
- package/lib/upload.js +95 -52
- package/lib/utils/util.js +35 -8
- package/lib/wujie.js +35 -8
- package/lib/wxlogin.js +35 -8
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +3 -3
- package/packages/data-table/src/column.vue +6 -0
- package/packages/data-table/src/main.vue +12 -0
- package/packages/dialog/src/main.vue +3 -11
- package/packages/editor/src/editor.vue +20 -0
- package/packages/editor/src/minx.js +129 -19
- package/packages/editor/src/toolbar.vue +93 -324
- package/packages/flow/src/component/CommonOpinions.vue +29 -11
- package/packages/flow/src/component/CustomPreset.vue +5 -1
- package/packages/flow/src/component/Preset.vue +5 -1
- package/packages/flow/src/main.vue +21 -1
- package/packages/flow/src/processForm.vue +15 -8
- package/packages/flow/src/selectUser.vue +9 -2
- package/packages/flow-group/src/main.vue +0 -8
- package/packages/form/src/main.vue +1519 -1462
- package/packages/form/src/table.vue +8 -0
- package/packages/selector/src/main.vue +1 -1
- package/packages/selector-panel/src/main.vue +4 -4
- package/packages/tabs/src/main.vue +1 -10
- package/packages/theme-chalk/lib/editor.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/editor.scss +23 -0
- package/packages/tree-group/src/main.vue +0 -2
- package/packages/upload/src/main.vue +31 -23
- package/src/index.js +1 -1
- package/src/utils/util.js +41 -8
package/lib/tabs.js
CHANGED
|
@@ -1403,7 +1403,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* isLogined
|
|
1407
1407
|
* @desc:是否登录(用于路由守卫中)
|
|
1408
1408
|
* @author huangbo
|
|
1409
1409
|
* @date 2022年5月7日
|
|
@@ -1416,7 +1416,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1416
1416
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1417
1417
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1418
1418
|
**/
|
|
1419
|
-
var
|
|
1419
|
+
var isLogined = function isLogined(_ref8) {
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
|
|
1420
1422
|
var to = _ref8.to,
|
|
1421
1423
|
from = _ref8.from,
|
|
1422
1424
|
next = _ref8.next,
|
|
@@ -1460,16 +1462,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1460
1462
|
data: to.query
|
|
1461
1463
|
}).then(function (res) {
|
|
1462
1464
|
if (res.rCode === 0) {
|
|
1463
|
-
|
|
1465
|
+
var results = res.results;
|
|
1466
|
+
|
|
1467
|
+
switch (results.statusCode) {
|
|
1464
1468
|
case 0:
|
|
1465
1469
|
var storage = getStorage('storage');
|
|
1466
1470
|
setStorage({
|
|
1467
1471
|
type: storage,
|
|
1468
1472
|
key: {
|
|
1469
|
-
ssId:
|
|
1470
|
-
token:
|
|
1471
|
-
Authorization:
|
|
1472
|
-
deviceUnique:
|
|
1473
|
+
ssId: results.ssId,
|
|
1474
|
+
token: results.token,
|
|
1475
|
+
Authorization: results.token,
|
|
1476
|
+
deviceUnique: results.deviceUnique
|
|
1473
1477
|
}
|
|
1474
1478
|
});
|
|
1475
1479
|
next();
|
|
@@ -1479,7 +1483,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1479
1483
|
case 2:
|
|
1480
1484
|
break;
|
|
1481
1485
|
case 3:
|
|
1482
|
-
var href =
|
|
1486
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1483
1487
|
if (to.query.openType) {
|
|
1484
1488
|
switch (to.query.openType) {
|
|
1485
1489
|
case 'self':
|
|
@@ -1503,6 +1507,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1503
1507
|
}
|
|
1504
1508
|
}
|
|
1505
1509
|
break;
|
|
1510
|
+
case 4:
|
|
1511
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1512
|
+
confirmButtonText: '确定',
|
|
1513
|
+
type: 'error'
|
|
1514
|
+
}).then(function () {
|
|
1515
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1516
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1517
|
+
if (loginPage) {
|
|
1518
|
+
win.top.location.replace(loginPage);
|
|
1519
|
+
} else if (document.referrer) {
|
|
1520
|
+
win.top.location.replace(document.referrer);
|
|
1521
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1522
|
+
win.top.location.href = './login.html';
|
|
1523
|
+
} else {
|
|
1524
|
+
next('/login');
|
|
1525
|
+
}
|
|
1526
|
+
}).catch(function (e) {});
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1506
1529
|
}
|
|
1507
1530
|
} else {
|
|
1508
1531
|
if (token) {
|
|
@@ -1531,6 +1554,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1531
1554
|
}
|
|
1532
1555
|
}
|
|
1533
1556
|
};
|
|
1557
|
+
var isLogged = function isLogged(res) {
|
|
1558
|
+
isLogined(res);
|
|
1559
|
+
};
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* isObject
|
|
@@ -2182,6 +2208,7 @@ var watermark = function watermark(option) {
|
|
|
2182
2208
|
indexOfObj: indexOfObj,
|
|
2183
2209
|
isFunction: isFunction,
|
|
2184
2210
|
isLogged: isLogged,
|
|
2211
|
+
isLogined: isLogined,
|
|
2185
2212
|
isObject: isObject,
|
|
2186
2213
|
jointUrl: jointUrl,
|
|
2187
2214
|
loadJs: loadJs,
|
|
@@ -2671,7 +2698,7 @@ module.exports = require("eoss-element");
|
|
|
2671
2698
|
// ESM COMPAT FLAG
|
|
2672
2699
|
__webpack_require__.r(__webpack_exports__);
|
|
2673
2700
|
|
|
2674
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/main.vue?vue&type=template&id=
|
|
2701
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/main.vue?vue&type=template&id=88ab1cd4&
|
|
2675
2702
|
var render = function () {
|
|
2676
2703
|
var _vm = this
|
|
2677
2704
|
var _h = _vm.$createElement
|
|
@@ -3018,7 +3045,6 @@ var render = function () {
|
|
|
3018
3045
|
"flowList",
|
|
3019
3046
|
},
|
|
3020
3047
|
attrs: {
|
|
3021
|
-
zoom: _vm.zoom,
|
|
3022
3048
|
display:
|
|
3023
3049
|
show,
|
|
3024
3050
|
},
|
|
@@ -3165,7 +3191,6 @@ var render = function () {
|
|
|
3165
3191
|
_vm._b(
|
|
3166
3192
|
{
|
|
3167
3193
|
attrs: {
|
|
3168
|
-
zoom: _vm.zoom,
|
|
3169
3194
|
display:
|
|
3170
3195
|
show,
|
|
3171
3196
|
},
|
|
@@ -3634,7 +3659,6 @@ var render = function () {
|
|
|
3634
3659
|
model: item.model,
|
|
3635
3660
|
display: show,
|
|
3636
3661
|
closeDialog: false,
|
|
3637
|
-
zoom: _vm.zoom,
|
|
3638
3662
|
},
|
|
3639
3663
|
on: {
|
|
3640
3664
|
"update:model":
|
|
@@ -3694,7 +3718,6 @@ var render = function () {
|
|
|
3694
3718
|
"flowList",
|
|
3695
3719
|
},
|
|
3696
3720
|
attrs: {
|
|
3697
|
-
zoom: _vm.zoom,
|
|
3698
3721
|
display: show,
|
|
3699
3722
|
},
|
|
3700
3723
|
},
|
|
@@ -3838,7 +3861,6 @@ var render = function () {
|
|
|
3838
3861
|
{
|
|
3839
3862
|
key: index,
|
|
3840
3863
|
attrs: {
|
|
3841
|
-
zoom: _vm.zoom,
|
|
3842
3864
|
display: show,
|
|
3843
3865
|
},
|
|
3844
3866
|
},
|
|
@@ -3992,7 +4014,6 @@ var render = function () {
|
|
|
3992
4014
|
model: contents.model,
|
|
3993
4015
|
display: show,
|
|
3994
4016
|
closeDialog: false,
|
|
3995
|
-
zoom: _vm.zoom,
|
|
3996
4017
|
},
|
|
3997
4018
|
on: {
|
|
3998
4019
|
"update:model": function (
|
|
@@ -4044,10 +4065,7 @@ var render = function () {
|
|
|
4044
4065
|
contents.type ===
|
|
4045
4066
|
"flowList",
|
|
4046
4067
|
},
|
|
4047
|
-
attrs: {
|
|
4048
|
-
zoom: _vm.zoom,
|
|
4049
|
-
display: show,
|
|
4050
|
-
},
|
|
4068
|
+
attrs: { display: show },
|
|
4051
4069
|
},
|
|
4052
4070
|
"es-data-table",
|
|
4053
4071
|
_vm.handleExclAttribute({
|
|
@@ -4177,12 +4195,7 @@ var render = function () {
|
|
|
4177
4195
|
"es-tree-group",
|
|
4178
4196
|
_vm._g(
|
|
4179
4197
|
_vm._b(
|
|
4180
|
-
{
|
|
4181
|
-
attrs: {
|
|
4182
|
-
display: show,
|
|
4183
|
-
zoom: _vm.zoom,
|
|
4184
|
-
},
|
|
4185
|
-
},
|
|
4198
|
+
{ attrs: { display: show } },
|
|
4186
4199
|
"es-tree-group",
|
|
4187
4200
|
_vm.handleExclAttribute({
|
|
4188
4201
|
data: contents,
|
|
@@ -4273,7 +4286,7 @@ var staticRenderFns = []
|
|
|
4273
4286
|
render._withStripped = true
|
|
4274
4287
|
|
|
4275
4288
|
|
|
4276
|
-
// CONCATENATED MODULE: ./packages/tabs/src/main.vue?vue&type=template&id=
|
|
4289
|
+
// CONCATENATED MODULE: ./packages/tabs/src/main.vue?vue&type=template&id=88ab1cd4&
|
|
4277
4290
|
|
|
4278
4291
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4279
4292
|
var util = __webpack_require__(0);
|
|
@@ -4889,14 +4902,6 @@ var util = __webpack_require__(0);
|
|
|
4889
4902
|
//
|
|
4890
4903
|
//
|
|
4891
4904
|
//
|
|
4892
|
-
//
|
|
4893
|
-
//
|
|
4894
|
-
//
|
|
4895
|
-
//
|
|
4896
|
-
//
|
|
4897
|
-
//
|
|
4898
|
-
//
|
|
4899
|
-
//
|
|
4900
4905
|
|
|
4901
4906
|
|
|
4902
4907
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
@@ -4927,8 +4932,7 @@ var util = __webpack_require__(0);
|
|
|
4927
4932
|
default: function _default() {
|
|
4928
4933
|
return [];
|
|
4929
4934
|
}
|
|
4930
|
-
}
|
|
4931
|
-
zoom: false
|
|
4935
|
+
}
|
|
4932
4936
|
},
|
|
4933
4937
|
watch: {
|
|
4934
4938
|
activeName: function activeName(val) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-editor{border:1px solid #d9d9d9}.es-editor .es-editor-toolbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 4px;border-bottom:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item{height:40px;padding:4px}.es-editor .es-editor-toolbar .el-button--default{border:0;color:#595959}.es-editor .es-editor-toolbar .el-button--default:hover{color:#333;background-color:#f1f1f1}.es-editor .es-editor-main{overflow:hidden}.es-icon-svg{width:14px;height:14px;fill:#595959;position:relative;top:3px}.es-icon-svg+.el-icon--right{width:auto}.es-editor-color li{border-radius:3px;cursor:pointer;display:inline-block;padding:2px;border:1px solid transparent}.es-editor-color li.active,.es-editor-color li:hover{border-color:#d9d9d9}.es-editor-color li .es-editor-color-block{border:1px solid #d9d9d9;height:17px;width:17px;border-radius:3px}.es-editor-color .es-editor-color-clear{line-height:1.5;margin-bottom:5px;width:100%}.es-editor-dropdown-item:not(.is-disabled).active{background-color:rgba(0,0,0,.04);color:#69c0ff}
|
|
1
|
+
@charset "UTF-8";.es-editor{border:1px solid #d9d9d9}.es-editor .es-editor-toolbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 4px;-ms-flex-wrap:wrap;flex-wrap:wrap;border-bottom:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box{height:40px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.es-editor .es-editor-toolbar .es-editor-toolbar-item-box+.es-editor-toolbar-item-box .es-editor-toolbar-item:first-child{border-left:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item{height:40px;padding:4px}.es-editor .es-editor-toolbar .es-editor-toolbar-item.es-last{border-right:1px solid #d9d9d9}.es-editor .es-editor-toolbar .es-editor-toolbar-item .es-icon-text+.el-icon--right{width:auto}.es-editor .es-editor-toolbar .el-button--default{border:0;color:#595959}.es-editor .es-editor-toolbar .el-button--default:hover{color:#333;background-color:#f1f1f1}.es-editor .es-editor-toolbar .el-button--default.es-icon-right{padding-right:3px}.es-editor .es-editor-main{overflow:hidden}.es-icon-svg{width:14px;height:14px;fill:#595959;position:relative;top:3px}.es-icon-svg+.el-icon--right{width:auto}.es-editor-color li{border-radius:3px;cursor:pointer;display:inline-block;padding:2px;border:1px solid transparent}.es-editor-color li.active,.es-editor-color li:hover{border-color:#d9d9d9}.es-editor-color li .es-editor-color-block{border:1px solid #d9d9d9;height:17px;width:17px;border-radius:3px}.es-editor-color .es-editor-color-clear{line-height:1.5;margin-bottom:5px;width:100%}.es-editor-dropdown-item:not(.is-disabled).active{background-color:rgba(0,0,0,.04);color:#69c0ff}
|