eoss-mobiles 0.2.87 → 0.2.89
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/checkbox.js +28 -1
- package/lib/eoss-mobile.common.js +2935 -2900
- package/lib/flow-btn.js +28 -1
- package/lib/flow-list.js +28 -1
- package/lib/flow.js +36 -9
- package/lib/index.js +1 -1
- package/lib/picker.js +28 -1
- package/lib/radio.js +28 -1
- package/lib/retrial-auth.js +28 -1
- package/lib/selector.js +43 -15
- package/lib/table-column.js +28 -1
- package/lib/table.js +28 -1
- package/lib/utils/util.js +28 -1
- package/package.json +1 -1
- package/packages/flow/src/components/StartFlow.vue +1 -1
- package/packages/selector/src/selector-tree.vue +8 -7
- package/src/index.js +1 -1
- package/src/utils/util.js +33 -1
package/lib/checkbox.js
CHANGED
|
@@ -1425,6 +1425,32 @@ var generateUUID = function generateUUID() {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
return uuid;
|
|
1427
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* toFunction
|
|
1430
|
+
* 兼容ie
|
|
1431
|
+
* @desc:函数字符串转函数
|
|
1432
|
+
* @author liufan
|
|
1433
|
+
* @date 2024年12月12日
|
|
1434
|
+
* @param {string} [str] - 函数字符串
|
|
1435
|
+
**/
|
|
1436
|
+
var toFunction = function toFunction(str) {
|
|
1437
|
+
if (str.indexOf('=>') > -1) {
|
|
1438
|
+
var renders = str.split('=>');
|
|
1439
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1440
|
+
// eslint-disable-next-line no-control-regex
|
|
1441
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1442
|
+
var fn = void 0;
|
|
1443
|
+
if (args.length) {
|
|
1444
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1445
|
+
} else {
|
|
1446
|
+
fn = new Function(fnStr);
|
|
1447
|
+
}
|
|
1448
|
+
return fn;
|
|
1449
|
+
} else {
|
|
1450
|
+
// eslint-disable-next-line no-eval
|
|
1451
|
+
return eval(str);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1428
1454
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1429
1455
|
esEncrypt: esEncrypt,
|
|
1430
1456
|
esDecode: esDecode,
|
|
@@ -1470,7 +1496,8 @@ var generateUUID = function generateUUID() {
|
|
|
1470
1496
|
identical: identical,
|
|
1471
1497
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1472
1498
|
exportXls: exportXls,
|
|
1473
|
-
generateUUID: generateUUID
|
|
1499
|
+
generateUUID: generateUUID,
|
|
1500
|
+
toFunction: toFunction
|
|
1474
1501
|
});
|
|
1475
1502
|
|
|
1476
1503
|
/***/ }),
|