efront 4.7.1 → 4.7.3

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.
@@ -1089,7 +1089,8 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
1089
1089
  var superInit = WordArray.init;
1090
1090
 
1091
1091
  // Augment WordArray.init to handle typed arrays
1092
- var subInit = WordArray.init = function (typedArray) {
1092
+ var subInit = WordArray.init = function () {
1093
+ var [typedArray] = arguments;
1093
1094
  // Convert buffers to uint8
1094
1095
  if (typedArray instanceof ArrayBuffer) {
1095
1096
  typedArray = new Uint8Array(typedArray);
@@ -90,7 +90,8 @@ var getTreeNodes = function (elem) {
90
90
  return nodes;
91
91
  };
92
92
 
93
- function main(elem, mode) {
93
+ function main() {
94
+ var [elem, mode] = arguments;
94
95
  if (isElement(elem)) {
95
96
  // var os = /Samsung|Firefox|Chrome|MSIE|Safari/i.exec(navigator.userAgent);
96
97
  // if (os) {
@@ -1,3 +1,4 @@
1
+ console.error(i18n`以后不会再测试是否兼容vue了,也不准备增加对vue3及后续版本的支持,望知悉。`);
1
2
  function main(efrontComponent, events) {
2
3
  var tagName = '';
3
4
  if (typeof efrontComponent === 'string') {
@@ -41,7 +41,8 @@ on('touchend')(window, function (event) {
41
41
  }
42
42
  activeElement.blur();
43
43
  })
44
- function select(target, list, removeOnSelect, direction) {
44
+ function select() {
45
+ var [target, list, removeOnSelect, direction] = arguments;
45
46
  if (/^[yvxh]/i.test(removeOnSelect)) {
46
47
  direction = removeOnSelect;
47
48
  removeOnSelect = arguments[3];
@@ -10,7 +10,8 @@ var abs = Math.abs;
10
10
  *
11
11
  * @param {Boolean|Array|Function} autoplay
12
12
  */
13
- function slider(autoplay, circle = true) {
13
+ function slider() {
14
+ var [autoplay, circle = true] = arguments;
14
15
  var outter = container.cloneNode();
15
16
  {
16
17
  for (let cx = 0, dx = arguments.length; cx < dx; cx++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.7.1",
3
+ "version": "4.7.3",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {