eoss-ui 0.5.75 → 0.5.76

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.
Files changed (58) hide show
  1. package/lib/button-group.js +26 -0
  2. package/lib/button.js +26 -0
  3. package/lib/checkbox-group.js +26 -0
  4. package/lib/data-table-form.js +26 -0
  5. package/lib/data-table.js +46 -16
  6. package/lib/date-picker.js +26 -0
  7. package/lib/dialog.js +26 -0
  8. package/lib/eoss-ui.common.js +369 -263
  9. package/lib/flow-group.js +26 -0
  10. package/lib/flow-list.js +37 -8
  11. package/lib/flow.js +26 -0
  12. package/lib/form.js +26 -0
  13. package/lib/handle-user.js +26 -0
  14. package/lib/handler.js +26 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +26 -0
  17. package/lib/input.js +26 -0
  18. package/lib/login.js +175 -122
  19. package/lib/main.js +26 -0
  20. package/lib/nav.js +26 -0
  21. package/lib/page.js +26 -0
  22. package/lib/player.js +26 -0
  23. package/lib/qr-code.js +79 -36
  24. package/lib/radio-group.js +26 -0
  25. package/lib/retrial-auth.js +26 -0
  26. package/lib/select-ganged.js +26 -0
  27. package/lib/select.js +26 -0
  28. package/lib/selector-panel.js +26 -0
  29. package/lib/selector.js +26 -0
  30. package/lib/sizer.js +26 -0
  31. package/lib/steps.js +26 -0
  32. package/lib/switch.js +26 -0
  33. package/lib/table-form.js +26 -0
  34. package/lib/tabs.js +26 -0
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/login.css +1 -1
  37. package/lib/tips.js +26 -0
  38. package/lib/toolbar.js +3 -2
  39. package/lib/tree-group.js +60 -34
  40. package/lib/tree.js +41 -3
  41. package/lib/upload.js +26 -0
  42. package/lib/utils/util.js +26 -0
  43. package/lib/wujie.js +26 -0
  44. package/lib/wxlogin.js +54 -12
  45. package/package.json +2 -2
  46. package/packages/data-table/src/main.vue +15 -14
  47. package/packages/flow-list/src/main.vue +63 -41
  48. package/packages/login/src/main.vue +32 -17
  49. package/packages/qr-code/src/main.vue +48 -37
  50. package/packages/theme-chalk/lib/index.css +1 -1
  51. package/packages/theme-chalk/lib/login.css +1 -1
  52. package/packages/theme-chalk/src/login.scss +912 -430
  53. package/packages/toolbar/src/main.vue +16 -6
  54. package/packages/tree/src/main.vue +13 -1
  55. package/packages/tree-group/src/main.vue +24 -37
  56. package/packages/wxlogin/src/main.vue +30 -12
  57. package/src/index.js +1 -1
  58. package/src/utils/util.js +26 -0
package/lib/nav.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/page.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/player.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/qr-code.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
@@ -3711,7 +3737,7 @@ module.exports = require("axios");
3711
3737
  // ESM COMPAT FLAG
3712
3738
  __webpack_require__.r(__webpack_exports__);
3713
3739
 
3714
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
3740
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/qr-code/src/main.vue?vue&type=template&id=338a3a1e&
3715
3741
  var render = function () {
3716
3742
  var _vm = this
3717
3743
  var _h = _vm.$createElement
@@ -3720,24 +3746,33 @@ var render = function () {
3720
3746
  "div",
3721
3747
  { ref: "qrcode", staticClass: "es-qrcode-box", attrs: { id: "qrcode" } },
3722
3748
  [
3723
- _c("img", {
3724
- ref: "qrcodeImg",
3725
- staticClass: "es-qrcode-img",
3726
- attrs: { width: _vm._width, height: _vm._height, alt: "二维码图片" },
3727
- }),
3728
- _c("canvas", {
3729
- ref: "canvas",
3730
- staticClass: "canvas",
3731
- attrs: { width: _vm._width, height: _vm._height },
3732
- }),
3733
- ]
3749
+ _vm.mwidth && _vm.mheight
3750
+ ? [
3751
+ _c("img", {
3752
+ ref: "qrcodeImg",
3753
+ staticClass: "es-qrcode-img",
3754
+ attrs: {
3755
+ width: _vm.mwidth,
3756
+ height: _vm.mheight,
3757
+ alt: "二维码图片",
3758
+ },
3759
+ }),
3760
+ _c("canvas", {
3761
+ ref: "canvas",
3762
+ staticClass: "canvas",
3763
+ attrs: { width: _vm.mwidth, height: _vm.mheight },
3764
+ }),
3765
+ ]
3766
+ : _vm._e(),
3767
+ ],
3768
+ 2
3734
3769
  )
3735
3770
  }
3736
3771
  var staticRenderFns = []
3737
3772
  render._withStripped = true
3738
3773
 
3739
3774
 
3740
- // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=28375a46&
3775
+ // CONCATENATED MODULE: ./packages/qr-code/src/main.vue?vue&type=template&id=338a3a1e&
3741
3776
 
3742
3777
  // EXTERNAL MODULE: ./src/utils/util.js
3743
3778
  var util = __webpack_require__(0);
@@ -3768,6 +3803,8 @@ var util = __webpack_require__(0);
3768
3803
  //
3769
3804
  //
3770
3805
  //
3806
+ //
3807
+ //
3771
3808
 
3772
3809
 
3773
3810
  var QRCode = __webpack_require__(28);
@@ -3780,8 +3817,14 @@ var QRCode = __webpack_require__(28);
3780
3817
  },
3781
3818
  logo: String,
3782
3819
  text: String,
3783
- width: Number,
3784
- height: Number,
3820
+ width: {
3821
+ type: Number,
3822
+ default: 300
3823
+ },
3824
+ height: {
3825
+ type: Number,
3826
+ default: 300
3827
+ },
3785
3828
  auto: Boolean,
3786
3829
  option: {
3787
3830
  type: Object,
@@ -3796,22 +3839,12 @@ var QRCode = __webpack_require__(28);
3796
3839
  }
3797
3840
  }
3798
3841
  },
3799
- computed: {
3800
- _width: function _width() {
3801
- if (this.auto) {
3802
- return this.$refs.qrcode.offsetWidth;
3803
- }
3804
- return this.width ? this.width : 300;
3805
- },
3806
- _height: function _height() {
3807
- if (this.auto) {
3808
- return this.$refs.qrcode.offsetHeight;
3809
- }
3810
- return this.height ? this.height : 300;
3811
- }
3812
- },
3842
+ computed: {},
3813
3843
  data: function data() {
3814
- return {};
3844
+ return {
3845
+ mwidth: 0,
3846
+ mheight: 0
3847
+ };
3815
3848
  },
3816
3849
 
3817
3850
  watch: {
@@ -3835,6 +3868,16 @@ var QRCode = __webpack_require__(28);
3835
3868
  mounted: function mounted() {
3836
3869
  var _this2 = this;
3837
3870
 
3871
+ if (this.auto) {
3872
+ var h = this.$refs.qrcode.offsetHeight - parseInt(util["a" /* default */].getStyle(this.$refs.qrcode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(this.$refs.qrcode, 'padding-bottom'), 10);
3873
+ if (h > 0) {
3874
+ this.mwidth = h;
3875
+ this.mheight = h;
3876
+ }
3877
+ } else {
3878
+ this.mwidth = this.width;
3879
+ this.mheight = this.height;
3880
+ }
3838
3881
  this.$nextTick(function () {
3839
3882
  _this2.createQRCode();
3840
3883
  });
@@ -3848,8 +3891,8 @@ var QRCode = __webpack_require__(28);
3848
3891
  //let qrcodeLogo = this.$refs.qrcodeLogo;
3849
3892
  var canvas = this.$refs.canvas;
3850
3893
  var option = util["a" /* default */].extend({}, this.option, {
3851
- width: this._width,
3852
- height: this._height
3894
+ width: this.mwidth,
3895
+ height: this.mheight
3853
3896
  });
3854
3897
  if (!qrcodeImg) {
3855
3898
  return false;
@@ -3861,12 +3904,12 @@ var QRCode = __webpack_require__(28);
3861
3904
  var ctx = canvas.getContext('2d');
3862
3905
  setTimeout(function () {
3863
3906
  //获取图片
3864
- ctx.drawImage(qrcodeImg, 0, 0, _this3._width, _this3._height);
3907
+ ctx.drawImage(qrcodeImg, 0, 0, _this3.mwidth, _this3.mheight);
3865
3908
  if (_this3.logo && _this3.logo.indexOf('.') > -1) {
3866
3909
  var logo = new Image();
3867
3910
  logo.src = _this3.logo;
3868
3911
  //设置logo大小
3869
- var logoPosition = (_this3._width - 46) / 2; //logo相对于canvas居中定位
3912
+ var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
3870
3913
  //设置获取的logo将其变为圆角以及添加白色背景
3871
3914
  /* ctx.fillStyle = "#fff";
3872
3915
  ctx.beginPath();
@@ -3891,8 +3934,8 @@ var QRCode = __webpack_require__(28);
3891
3934
  var fpadd = 10; //规定内间距
3892
3935
  ctx.font = 'bold 16px Arial';
3893
3936
  var tw = ctx.measureText(_this3.text).width; //文字真实宽度
3894
- var ftop = (_this3._height - 16) / 2; //根据字体大小计算文字top
3895
- var fleft = (_this3._width - tw) / 2; //根据字体大小计算文字left
3937
+ var ftop = (_this3.mheight - 16) / 2; //根据字体大小计算文字top
3938
+ var fleft = (_this3.mwidth - tw) / 2; //根据字体大小计算文字left
3896
3939
  var tp = 16 / 2; //字体边距为字体大小的一半可以自己设置
3897
3940
  ctx.fillStyle = '#fff';
3898
3941
  ctx.fillRect(fleft - tp / 2, ftop - tp / 2, tw + tp, 16 + tp);
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/select.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
@@ -2303,6 +2303,31 @@ var isObject = function isObject(obj) {
2303
2303
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2304
2304
  };
2305
2305
 
2306
+ /**
2307
+ * isObjectEqual
2308
+ * @desc:判断对象是否相等
2309
+ * @author huangbo
2310
+ * @date 2022年5月7日
2311
+ * @param {Object} [obj] - 对象
2312
+ * @param {Object} [_obj] - 对象
2313
+ **/
2314
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2316
+ return false;
2317
+ }
2318
+ var aProps = Object.getOwnPropertyNames(obj);
2319
+ var bProps = Object.getOwnPropertyNames(_obj);
2320
+ if (aProps.length !== bProps.length) {
2321
+ return false;
2322
+ }
2323
+ for (var i in obj) {
2324
+ if (obj[i] !== _obj[i]) {
2325
+ return false;
2326
+ }
2327
+ }
2328
+ return true;
2329
+ };
2330
+
2306
2331
  /**
2307
2332
  * jointUrl
2308
2333
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3179,6 +3204,7 @@ var watermark = function watermark(option) {
3179
3204
  isLogged: isLogged,
3180
3205
  isLogined: isLogined,
3181
3206
  isObject: isObject,
3207
+ isObjectEqual: isObjectEqual,
3182
3208
  jointUrl: jointUrl,
3183
3209
  loadJs: loadJs,
3184
3210
  loading: loading,
package/lib/selector.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/sizer.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/steps.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,
package/lib/switch.js CHANGED
@@ -2304,6 +2304,31 @@ var isObject = function isObject(obj) {
2304
2304
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2305
2305
  };
2306
2306
 
2307
+ /**
2308
+ * isObjectEqual
2309
+ * @desc:判断对象是否相等
2310
+ * @author huangbo
2311
+ * @date 2022年5月7日
2312
+ * @param {Object} [obj] - 对象
2313
+ * @param {Object} [_obj] - 对象
2314
+ **/
2315
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2317
+ return false;
2318
+ }
2319
+ var aProps = Object.getOwnPropertyNames(obj);
2320
+ var bProps = Object.getOwnPropertyNames(_obj);
2321
+ if (aProps.length !== bProps.length) {
2322
+ return false;
2323
+ }
2324
+ for (var i in obj) {
2325
+ if (obj[i] !== _obj[i]) {
2326
+ return false;
2327
+ }
2328
+ }
2329
+ return true;
2330
+ };
2331
+
2307
2332
  /**
2308
2333
  * jointUrl
2309
2334
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -3180,6 +3205,7 @@ var watermark = function watermark(option) {
3180
3205
  isLogged: isLogged,
3181
3206
  isLogined: isLogined,
3182
3207
  isObject: isObject,
3208
+ isObjectEqual: isObjectEqual,
3183
3209
  jointUrl: jointUrl,
3184
3210
  loadJs: loadJs,
3185
3211
  loading: loading,