eoss-ui 0.7.38 → 0.7.40

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 (50) hide show
  1. package/lib/button-group.js +1 -3
  2. package/lib/button.js +1 -3
  3. package/lib/calogin.js +1 -3
  4. package/lib/checkbox-group.js +1 -3
  5. package/lib/data-table-form.js +1 -3
  6. package/lib/data-table.js +1 -3
  7. package/lib/date-picker.js +1 -3
  8. package/lib/dialog.js +1 -3
  9. package/lib/eoss-ui.common.js +52 -39
  10. package/lib/flow-group.js +1 -3
  11. package/lib/flow-list.js +1 -3
  12. package/lib/flow.js +1 -3
  13. package/lib/form.js +1 -3
  14. package/lib/handle-user.js +1 -3
  15. package/lib/handler.js +1 -3
  16. package/lib/icon.js +1 -3
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +1 -3
  19. package/lib/input.js +1 -3
  20. package/lib/login.js +1 -3
  21. package/lib/main.js +46 -33
  22. package/lib/nav.js +1 -3
  23. package/lib/page.js +1 -3
  24. package/lib/pagination.js +1 -3
  25. package/lib/player.js +1 -3
  26. package/lib/qr-code.js +1 -3
  27. package/lib/radio-group.js +1 -3
  28. package/lib/retrial-auth.js +1 -3
  29. package/lib/select-ganged.js +1 -3
  30. package/lib/select.js +1 -3
  31. package/lib/selector-panel.js +1 -3
  32. package/lib/selector.js +1 -3
  33. package/lib/sizer.js +1 -3
  34. package/lib/steps.js +1 -3
  35. package/lib/switch.js +1 -3
  36. package/lib/table-form.js +1 -3
  37. package/lib/tabs.js +1 -3
  38. package/lib/tips.js +1 -3
  39. package/lib/tree-group.js +1 -3
  40. package/lib/tree.js +1 -3
  41. package/lib/upload.js +1 -3
  42. package/lib/utils/util.js +1 -3
  43. package/lib/wujie.js +1 -3
  44. package/lib/wxlogin.js +1 -3
  45. package/package.json +1 -1
  46. package/packages/main/src/main.vue +14 -8
  47. package/packages/main/src/simplicity/message.vue +7 -4
  48. package/packages/main/src/simplicity/notice.vue +9 -3
  49. package/src/index.js +1 -1
  50. package/src/utils/util.js +1 -3
package/lib/utils/util.js CHANGED
@@ -609,8 +609,6 @@ var busEmit = function busEmit(that, _ref3) {
609
609
  }
610
610
  return;
611
611
  }
612
- console.log('busEmit', method, args);
613
-
614
612
  var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
615
613
  _bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
616
614
  }
@@ -971,7 +969,7 @@ var esDecode = function esDecode(value) {
971
969
  arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
972
970
  }
973
971
  // eslint-disable-next-line no-eval
974
- result = eval('String.fromCharCode(' + arr.join(',') + ')');
972
+ result = String.fromCharCode.apply(null, arr);
975
973
  return result;
976
974
  };
977
975
 
package/lib/wujie.js CHANGED
@@ -693,8 +693,6 @@ var busEmit = function busEmit(that, _ref3) {
693
693
  }
694
694
  return;
695
695
  }
696
- console.log('busEmit', method, args);
697
-
698
696
  var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
699
697
  _bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
700
698
  }
@@ -1055,7 +1053,7 @@ var esDecode = function esDecode(value) {
1055
1053
  arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
1056
1054
  }
1057
1055
  // eslint-disable-next-line no-eval
1058
- result = eval('String.fromCharCode(' + arr.join(',') + ')');
1056
+ result = String.fromCharCode.apply(null, arr);
1059
1057
  return result;
1060
1058
  };
1061
1059
 
package/lib/wxlogin.js CHANGED
@@ -693,8 +693,6 @@ var busEmit = function busEmit(that, _ref3) {
693
693
  }
694
694
  return;
695
695
  }
696
- console.log('busEmit', method, args);
697
-
698
696
  var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
699
697
  _bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
700
698
  }
@@ -1055,7 +1053,7 @@ var esDecode = function esDecode(value) {
1055
1053
  arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
1056
1054
  }
1057
1055
  // eslint-disable-next-line no-eval
1058
- result = eval('String.fromCharCode(' + arr.join(',') + ')');
1056
+ result = String.fromCharCode.apply(null, arr);
1059
1057
  return result;
1060
1058
  };
1061
1059
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.38",
3
+ "version": "0.7.40",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -156,7 +156,6 @@ export default {
156
156
  this.$nextTick(() => {
157
157
  this.getConfig();
158
158
  const bus = this.bus || this.$root.Bus;
159
- console.log('bus', bus);
160
159
  if (bus) {
161
160
  bus.$on('reLogin', this.handleReLogin);
162
161
  bus.$on('refresh', this.$refs.main.handleRefresh);
@@ -421,7 +420,7 @@ export default {
421
420
  * @author huangbo
422
421
  * @date 2024年9月7日
423
422
  **/
424
- winClose({ url, appCode, id, index, refresh, jumpMenu, callBack }) {
423
+ winClose({ url, appCode, id, index, refresh, jumpMenu, callback }) {
425
424
  if (!appCode && !id) {
426
425
  console.error('参数错误,缺少appCode或者id');
427
426
  return;
@@ -439,12 +438,19 @@ export default {
439
438
  this.dialogs.splice(dialog.index, 1);
440
439
  }
441
440
  }
442
- callBack && callBack();
443
- refresh && this.$refs.main.handleRefresh(refresh);
444
- jumpMenu &&
445
- (Array.isArray(jumpMenu)
446
- ? this.$refs.main.jumpMenu(...jumpMenu)
447
- : this.$refs.main.jumpMenu(jumpMenu));
441
+ if (callback) {
442
+ const bus = this.bus || this.$root.Bus;
443
+ if (bus) {
444
+ // 主应用发送事件
445
+ bus.$emit(callback, arguments[0]);
446
+ }
447
+ } else {
448
+ refresh && this.$refs.main.handleRefresh(refresh);
449
+ jumpMenu &&
450
+ (Array.isArray(jumpMenu)
451
+ ? this.$refs.main.jumpMenu(...jumpMenu)
452
+ : this.$refs.main.jumpMenu(jumpMenu));
453
+ }
448
454
  },
449
455
 
450
456
  /**
@@ -140,6 +140,8 @@ export default {
140
140
  },
141
141
  mounted() {
142
142
  util.win.deleteMsg = this.handleRemove;
143
+ const bus = this.bus || this.$root.Bus;
144
+ bus && bus.$on('deleteMessage', this.handleRemove);
143
145
  },
144
146
  methods: {
145
147
  //获取消息列表
@@ -234,10 +236,7 @@ export default {
234
236
  title: title,
235
237
  id: id,
236
238
  ...jsonData,
237
- callBack: () => {
238
- this.count -= 1;
239
- this.msgs.splice(index, 1);
240
- }
239
+ callback: 'handleRemove'
241
240
  }
242
241
  });
243
242
  return;
@@ -281,6 +280,10 @@ export default {
281
280
  handleClose() {
282
281
  this.$parent.$emit('bus-emit', 'waitdone');
283
282
  }
283
+ },
284
+ destroyed() {
285
+ const bus = this.bus || this.$root.Bus;
286
+ bus.$off('deleteMessage', this.handleRemove);
284
287
  }
285
288
  };
286
289
  </script>
@@ -108,6 +108,10 @@ export default {
108
108
  index: null
109
109
  };
110
110
  },
111
+ mounted() {
112
+ const bus = this.bus || this.$root.Bus;
113
+ bus && bus.$on('deleteNotice', this.handleRemove);
114
+ },
111
115
  methods: {
112
116
  afterEnter() {
113
117
  this.$emit('opened');
@@ -171,9 +175,7 @@ export default {
171
175
  title: title,
172
176
  id: id,
173
177
  ...jsonData,
174
- callBack: () => {
175
- this.index = index;
176
- }
178
+ callback: 'deleteNotice'
177
179
  }
178
180
  });
179
181
  return;
@@ -210,6 +212,10 @@ export default {
210
212
  },
211
213
  handleClose() {
212
214
  this.$parent.$emit('bus-emit', 'waitdone');
215
+ },
216
+ destroyed() {
217
+ const bus = this.bus || this.$root.Bus;
218
+ bus.$off('deleteNotice', this.handleRemove);
213
219
  }
214
220
  }
215
221
  };
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.38',
128
+ version: '0.7.40',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -581,8 +581,6 @@ const busEmit = function (that, { method, args, opener }) {
581
581
  }
582
582
  return;
583
583
  }
584
- console.log('busEmit', method, args);
585
-
586
584
  const bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
587
585
  bus && (Array.isArray(args) ? bus.$emit(method, ...args) : bus.$emit(method, args));
588
586
  }
@@ -964,7 +962,7 @@ const esDecode = function (value) {
964
962
  arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
965
963
  }
966
964
  // eslint-disable-next-line no-eval
967
- result = eval('String.fromCharCode(' + arr.join(',') + ')');
965
+ result = String.fromCharCode.apply(null, arr);
968
966
  return result;
969
967
  };
970
968