eoss-ui 0.4.40 → 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 +570 -1349
- package/lib/eoss-ui.common.js +10754 -10461
- 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 +37 -10
- package/lib/selector.js +37 -10
- 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 +43 -14
- 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 +16 -8
- package/packages/editor/src/toolbar.vue +71 -349
- 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/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 +3 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +41 -8
package/lib/date-picker.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,
|
package/lib/dialog.js
CHANGED
|
@@ -1402,7 +1402,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
1404
|
/**
|
|
1405
|
-
*
|
|
1405
|
+
* isLogined
|
|
1406
1406
|
* @desc:是否登录(用于路由守卫中)
|
|
1407
1407
|
* @author huangbo
|
|
1408
1408
|
* @date 2022年5月7日
|
|
@@ -1415,7 +1415,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1415
1415
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1416
1416
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1417
1417
|
**/
|
|
1418
|
-
var
|
|
1418
|
+
var isLogined = function isLogined(_ref8) {
|
|
1419
|
+
var _this = this;
|
|
1420
|
+
|
|
1419
1421
|
var to = _ref8.to,
|
|
1420
1422
|
from = _ref8.from,
|
|
1421
1423
|
next = _ref8.next,
|
|
@@ -1459,16 +1461,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1459
1461
|
data: to.query
|
|
1460
1462
|
}).then(function (res) {
|
|
1461
1463
|
if (res.rCode === 0) {
|
|
1462
|
-
|
|
1464
|
+
var results = res.results;
|
|
1465
|
+
|
|
1466
|
+
switch (results.statusCode) {
|
|
1463
1467
|
case 0:
|
|
1464
1468
|
var storage = getStorage('storage');
|
|
1465
1469
|
setStorage({
|
|
1466
1470
|
type: storage,
|
|
1467
1471
|
key: {
|
|
1468
|
-
ssId:
|
|
1469
|
-
token:
|
|
1470
|
-
Authorization:
|
|
1471
|
-
deviceUnique:
|
|
1472
|
+
ssId: results.ssId,
|
|
1473
|
+
token: results.token,
|
|
1474
|
+
Authorization: results.token,
|
|
1475
|
+
deviceUnique: results.deviceUnique
|
|
1472
1476
|
}
|
|
1473
1477
|
});
|
|
1474
1478
|
next();
|
|
@@ -1478,7 +1482,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1478
1482
|
case 2:
|
|
1479
1483
|
break;
|
|
1480
1484
|
case 3:
|
|
1481
|
-
var href =
|
|
1485
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1482
1486
|
if (to.query.openType) {
|
|
1483
1487
|
switch (to.query.openType) {
|
|
1484
1488
|
case 'self':
|
|
@@ -1502,6 +1506,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1502
1506
|
}
|
|
1503
1507
|
}
|
|
1504
1508
|
break;
|
|
1509
|
+
case 4:
|
|
1510
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1511
|
+
confirmButtonText: '确定',
|
|
1512
|
+
type: 'error'
|
|
1513
|
+
}).then(function () {
|
|
1514
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1515
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1516
|
+
if (loginPage) {
|
|
1517
|
+
win.top.location.replace(loginPage);
|
|
1518
|
+
} else if (document.referrer) {
|
|
1519
|
+
win.top.location.replace(document.referrer);
|
|
1520
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1521
|
+
win.top.location.href = './login.html';
|
|
1522
|
+
} else {
|
|
1523
|
+
next('/login');
|
|
1524
|
+
}
|
|
1525
|
+
}).catch(function (e) {});
|
|
1526
|
+
break;
|
|
1527
|
+
default:
|
|
1505
1528
|
}
|
|
1506
1529
|
} else {
|
|
1507
1530
|
if (token) {
|
|
@@ -1530,6 +1553,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1530
1553
|
}
|
|
1531
1554
|
}
|
|
1532
1555
|
};
|
|
1556
|
+
var isLogged = function isLogged(res) {
|
|
1557
|
+
isLogined(res);
|
|
1558
|
+
};
|
|
1533
1559
|
|
|
1534
1560
|
/**
|
|
1535
1561
|
* isObject
|
|
@@ -2181,6 +2207,7 @@ var watermark = function watermark(option) {
|
|
|
2181
2207
|
indexOfObj: indexOfObj,
|
|
2182
2208
|
isFunction: isFunction,
|
|
2183
2209
|
isLogged: isLogged,
|
|
2210
|
+
isLogined: isLogined,
|
|
2184
2211
|
isObject: isObject,
|
|
2185
2212
|
jointUrl: jointUrl,
|
|
2186
2213
|
loadJs: loadJs,
|
|
@@ -2700,13 +2727,13 @@ module.exports = require("vue");
|
|
|
2700
2727
|
/* 16 */,
|
|
2701
2728
|
/* 17 */,
|
|
2702
2729
|
/* 18 */,
|
|
2703
|
-
/* 19
|
|
2704
|
-
/* 20 */
|
|
2730
|
+
/* 19 */
|
|
2705
2731
|
/***/ (function(module, exports) {
|
|
2706
2732
|
|
|
2707
2733
|
module.exports = require("wujie-vue2");
|
|
2708
2734
|
|
|
2709
2735
|
/***/ }),
|
|
2736
|
+
/* 20 */,
|
|
2710
2737
|
/* 21 */,
|
|
2711
2738
|
/* 22 */,
|
|
2712
2739
|
/* 23 */,
|
|
@@ -2734,7 +2761,7 @@ module.exports = require("wujie-vue2");
|
|
|
2734
2761
|
// ESM COMPAT FLAG
|
|
2735
2762
|
__webpack_require__.r(__webpack_exports__);
|
|
2736
2763
|
|
|
2737
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=
|
|
2764
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=7f267c7b&
|
|
2738
2765
|
var render = function () {
|
|
2739
2766
|
var _vm = this
|
|
2740
2767
|
var _h = _vm.$createElement
|
|
@@ -2788,7 +2815,7 @@ var render = function () {
|
|
|
2788
2815
|
_vm._b(
|
|
2789
2816
|
{
|
|
2790
2817
|
key: index,
|
|
2791
|
-
attrs: {
|
|
2818
|
+
attrs: { model: item.model },
|
|
2792
2819
|
on: {
|
|
2793
2820
|
"update:model": function ($event) {
|
|
2794
2821
|
_vm.$set(item, "model", $event)
|
|
@@ -2811,7 +2838,7 @@ var render = function () {
|
|
|
2811
2838
|
"es-data-table",
|
|
2812
2839
|
_vm._g(
|
|
2813
2840
|
_vm._b(
|
|
2814
|
-
{ key: index
|
|
2841
|
+
{ key: index },
|
|
2815
2842
|
"es-data-table",
|
|
2816
2843
|
_vm.handleExclAttribute({
|
|
2817
2844
|
data: item,
|
|
@@ -2912,7 +2939,7 @@ var render = function () {
|
|
|
2912
2939
|
"es-tree-group",
|
|
2913
2940
|
_vm._g(
|
|
2914
2941
|
_vm._b(
|
|
2915
|
-
{ key: index
|
|
2942
|
+
{ key: index },
|
|
2916
2943
|
"es-tree-group",
|
|
2917
2944
|
_vm.handleExclAttribute({
|
|
2918
2945
|
data: item,
|
|
@@ -2946,10 +2973,7 @@ var render = function () {
|
|
|
2946
2973
|
"es-tabs",
|
|
2947
2974
|
_vm._g(
|
|
2948
2975
|
_vm._b(
|
|
2949
|
-
{
|
|
2950
|
-
key: index,
|
|
2951
|
-
attrs: { full: true, zoom: _vm.zoom },
|
|
2952
|
-
},
|
|
2976
|
+
{ key: index, attrs: { full: true } },
|
|
2953
2977
|
"es-tabs",
|
|
2954
2978
|
_vm.handleExclAttribute({
|
|
2955
2979
|
data: item,
|
|
@@ -3033,10 +3057,7 @@ var render = function () {
|
|
|
3033
3057
|
_vm._g(
|
|
3034
3058
|
_vm._b(
|
|
3035
3059
|
{
|
|
3036
|
-
attrs: {
|
|
3037
|
-
zoom: _vm.zoom,
|
|
3038
|
-
model: _vm.contents.model,
|
|
3039
|
-
},
|
|
3060
|
+
attrs: { model: _vm.contents.model },
|
|
3040
3061
|
on: {
|
|
3041
3062
|
"update:model": function ($event) {
|
|
3042
3063
|
_vm.$set(_vm.contents, "model", $event)
|
|
@@ -3060,7 +3081,7 @@ var render = function () {
|
|
|
3060
3081
|
"es-data-table",
|
|
3061
3082
|
_vm._g(
|
|
3062
3083
|
_vm._b(
|
|
3063
|
-
{
|
|
3084
|
+
{},
|
|
3064
3085
|
"es-data-table",
|
|
3065
3086
|
_vm.handleExclAttribute({
|
|
3066
3087
|
data: _vm.contents,
|
|
@@ -3163,7 +3184,7 @@ var render = function () {
|
|
|
3163
3184
|
"es-tree-group",
|
|
3164
3185
|
_vm._g(
|
|
3165
3186
|
_vm._b(
|
|
3166
|
-
{
|
|
3187
|
+
{},
|
|
3167
3188
|
"es-tree-group",
|
|
3168
3189
|
_vm.handleExclAttribute({
|
|
3169
3190
|
data: _vm.contents,
|
|
@@ -3181,7 +3202,7 @@ var render = function () {
|
|
|
3181
3202
|
"es-flow-group",
|
|
3182
3203
|
_vm._g(
|
|
3183
3204
|
_vm._b(
|
|
3184
|
-
{
|
|
3205
|
+
{},
|
|
3185
3206
|
"es-flow-group",
|
|
3186
3207
|
_vm.handleExclAttribute({
|
|
3187
3208
|
data: _vm.contents,
|
|
@@ -3198,7 +3219,7 @@ var render = function () {
|
|
|
3198
3219
|
"es-tabs",
|
|
3199
3220
|
_vm._g(
|
|
3200
3221
|
_vm._b(
|
|
3201
|
-
{ attrs: { full: true
|
|
3222
|
+
{ attrs: { full: true } },
|
|
3202
3223
|
"es-tabs",
|
|
3203
3224
|
_vm.handleExclAttribute({
|
|
3204
3225
|
data: _vm.contents,
|
|
@@ -3254,14 +3275,14 @@ var staticRenderFns = []
|
|
|
3254
3275
|
render._withStripped = true
|
|
3255
3276
|
|
|
3256
3277
|
|
|
3257
|
-
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=
|
|
3278
|
+
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=7f267c7b&
|
|
3258
3279
|
|
|
3259
3280
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
3260
3281
|
var regenerator_ = __webpack_require__(9);
|
|
3261
3282
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
|
|
3262
3283
|
|
|
3263
3284
|
// EXTERNAL MODULE: external "wujie-vue2"
|
|
3264
|
-
var external_wujie_vue2_ = __webpack_require__(
|
|
3285
|
+
var external_wujie_vue2_ = __webpack_require__(19);
|
|
3265
3286
|
var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wujie_vue2_);
|
|
3266
3287
|
|
|
3267
3288
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
@@ -3540,15 +3561,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
3540
3561
|
//
|
|
3541
3562
|
//
|
|
3542
3563
|
//
|
|
3543
|
-
//
|
|
3544
|
-
//
|
|
3545
|
-
//
|
|
3546
|
-
//
|
|
3547
|
-
//
|
|
3548
|
-
//
|
|
3549
|
-
//
|
|
3550
|
-
//
|
|
3551
|
-
//
|
|
3552
3564
|
|
|
3553
3565
|
|
|
3554
3566
|
|
|
@@ -3561,7 +3573,7 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
|
|
|
3561
3573
|
provide: function provide() {
|
|
3562
3574
|
return {
|
|
3563
3575
|
esDialog: this,
|
|
3564
|
-
scale: this.
|
|
3576
|
+
scale: this.scales
|
|
3565
3577
|
};
|
|
3566
3578
|
},
|
|
3567
3579
|
|
|
@@ -3661,7 +3673,7 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
|
|
|
3661
3673
|
wd: '',
|
|
3662
3674
|
ht: '',
|
|
3663
3675
|
zoom: 1,
|
|
3664
|
-
|
|
3676
|
+
scales: { zoom: 1 }
|
|
3665
3677
|
};
|
|
3666
3678
|
},
|
|
3667
3679
|
created: function created() {
|
|
@@ -3806,6 +3818,7 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
|
|
|
3806
3818
|
},
|
|
3807
3819
|
handleScale: function handleScale(res) {
|
|
3808
3820
|
this.zoom = res;
|
|
3821
|
+
this.$set(this.scales, 'zoom', res);
|
|
3809
3822
|
this.$emit('scale', res);
|
|
3810
3823
|
}
|
|
3811
3824
|
}
|