eoss-ui 0.6.11 → 0.6.13

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 (68) hide show
  1. package/lib/button-group.js +104 -88
  2. package/lib/button.js +104 -88
  3. package/lib/checkbox-group.js +104 -88
  4. package/lib/data-table-form.js +104 -88
  5. package/lib/data-table.js +104 -88
  6. package/lib/date-picker.js +104 -88
  7. package/lib/dialog.js +104 -88
  8. package/lib/eoss-ui.common.js +212 -168
  9. package/lib/flow-group.js +104 -88
  10. package/lib/flow-list.js +104 -88
  11. package/lib/flow.js +104 -88
  12. package/lib/form.js +104 -88
  13. package/lib/handle-user.js +104 -88
  14. package/lib/handler.js +104 -88
  15. package/lib/icon.js +113 -91
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +104 -88
  18. package/lib/input.js +104 -88
  19. package/lib/login.js +104 -88
  20. package/lib/main.js +164 -141
  21. package/lib/nav.js +104 -88
  22. package/lib/page.js +104 -88
  23. package/lib/pagination.js +104 -88
  24. package/lib/player.js +104 -88
  25. package/lib/qr-code.js +104 -88
  26. package/lib/radio-group.js +104 -88
  27. package/lib/retrial-auth.js +104 -88
  28. package/lib/select-ganged.js +104 -88
  29. package/lib/select.js +104 -88
  30. package/lib/selector-panel.js +104 -88
  31. package/lib/selector.js +104 -88
  32. package/lib/sizer.js +104 -88
  33. package/lib/steps.js +104 -88
  34. package/lib/switch.js +104 -88
  35. package/lib/table-form.js +104 -88
  36. package/lib/tabs.js +104 -88
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/login.css +1 -1
  39. package/lib/theme-chalk/main.css +1 -1
  40. package/lib/theme-chalk/simplicity.css +1 -1
  41. package/lib/tips.js +104 -88
  42. package/lib/tree-group.js +104 -88
  43. package/lib/tree.js +104 -88
  44. package/lib/upload.js +130 -99
  45. package/lib/utils/util.js +104 -88
  46. package/lib/wujie.js +104 -88
  47. package/lib/wxlogin.js +104 -88
  48. package/package.json +1 -1
  49. package/packages/.DS_Store +0 -0
  50. package/packages/dialog/.DS_Store +0 -0
  51. package/packages/icon/src/main.vue +7 -1
  52. package/packages/main/.DS_Store +0 -0
  53. package/packages/main/src/default/index.vue +4 -4
  54. package/packages/main/src/main.vue +16 -10
  55. package/packages/main/src/simplicity/avatar.vue +6 -2
  56. package/packages/main/src/simplicity/index.vue +4 -4
  57. package/packages/main/src/simplicity/message.vue +0 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/lib/login.css +1 -1
  60. package/packages/theme-chalk/lib/main.css +1 -1
  61. package/packages/theme-chalk/lib/simplicity.css +1 -1
  62. package/packages/theme-chalk/src/common/var.scss +7 -0
  63. package/packages/theme-chalk/src/login.scss +16 -8
  64. package/packages/theme-chalk/src/simplicity.scss +1 -0
  65. package/packages/upload/src/main.vue +28 -8
  66. package/src/.DS_Store +0 -0
  67. package/src/index.js +1 -1
  68. package/src/utils/util.js +12 -1
package/src/utils/util.js CHANGED
@@ -530,7 +530,6 @@ const average = function (...numbers) {
530
530
 
531
531
  return average;
532
532
  };
533
-
534
533
  /**
535
534
  * browser
536
535
  * @desc:浏览器类型
@@ -545,6 +544,17 @@ const browser = function () {
545
544
  }
546
545
  }
547
546
  };
547
+ /**
548
+ * busEmit
549
+ * @desc:发送事件
550
+ * @author huangbo
551
+ * @date 2022年5月7日
552
+ **/
553
+ const busEmit = function (vm = this, {method, args}) {
554
+ const bus = win.$wujie ? win.$wujie.bus : vm.bus || vm.$root.Bus;
555
+ bus && bus.$emit(method, args);
556
+ window.postMessage({ method, query: args }, '*');
557
+ };
548
558
 
549
559
  /**
550
560
  * calculateNetworkDays
@@ -3325,6 +3335,7 @@ export default {
3325
3335
  arrUnique,
3326
3336
  average,
3327
3337
  browser,
3338
+ busEmit,
3328
3339
  calculateNetworkDays,
3329
3340
  concatenate,
3330
3341
  dateAddDays,