eoss-ui 0.5.47 → 0.5.49

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 (82) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/data-table.js +7 -7
  3. package/lib/eoss-ui.common.js +135 -64
  4. package/lib/flow.js +7 -7
  5. package/lib/form.js +30 -3
  6. package/lib/index.js +1 -1
  7. package/lib/theme-chalk/flow.css +1 -1
  8. package/lib/theme-chalk/index.css +1 -1
  9. package/lib/theme-chalk/tree.css +1 -1
  10. package/lib/tree-group.js +33 -2
  11. package/lib/tree.js +22 -12
  12. package/lib/upload.js +11 -8
  13. package/package.json +2 -2
  14. package/packages/data-table/src/main.vue +2 -2
  15. package/packages/flow/src/main.vue +5 -5
  16. package/packages/form/src/main.vue +20 -1
  17. package/packages/theme-chalk/lib/base.css +1 -0
  18. package/packages/theme-chalk/lib/button-group.css +1 -0
  19. package/packages/theme-chalk/lib/button.css +1 -0
  20. package/packages/theme-chalk/lib/calendar.css +0 -0
  21. package/packages/theme-chalk/lib/card.css +1 -0
  22. package/packages/theme-chalk/lib/cascader.css +1 -0
  23. package/packages/theme-chalk/lib/checkbox-group.css +1 -0
  24. package/packages/theme-chalk/lib/clients.css +1 -0
  25. package/packages/theme-chalk/lib/data-table-form.css +1 -0
  26. package/packages/theme-chalk/lib/data-table.css +1 -0
  27. package/packages/theme-chalk/lib/date-picker.css +1 -0
  28. package/packages/theme-chalk/lib/dialog.css +1 -0
  29. package/packages/theme-chalk/lib/enterprise.css +1 -0
  30. package/packages/theme-chalk/lib/error-page.css +1 -0
  31. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  32. package/packages/theme-chalk/lib/flow-group.css +1 -0
  33. package/packages/theme-chalk/lib/flow-list.css +1 -0
  34. package/packages/theme-chalk/lib/flow.css +1 -0
  35. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  36. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  37. package/packages/theme-chalk/lib/form.css +1 -0
  38. package/packages/theme-chalk/lib/handle-user.css +1 -0
  39. package/packages/theme-chalk/lib/handler.css +1 -0
  40. package/packages/theme-chalk/lib/icon.css +1 -0
  41. package/packages/theme-chalk/lib/icons.css +1 -0
  42. package/packages/theme-chalk/lib/index.css +1 -0
  43. package/packages/theme-chalk/lib/input-number.css +0 -0
  44. package/packages/theme-chalk/lib/input.css +1 -0
  45. package/packages/theme-chalk/lib/label.css +1 -0
  46. package/packages/theme-chalk/lib/layout.css +1 -0
  47. package/packages/theme-chalk/lib/login.css +1 -0
  48. package/packages/theme-chalk/lib/main.css +1 -0
  49. package/packages/theme-chalk/lib/mainComp.css +0 -0
  50. package/packages/theme-chalk/lib/menu.css +1 -0
  51. package/packages/theme-chalk/lib/nav.css +1 -0
  52. package/packages/theme-chalk/lib/notify.css +0 -0
  53. package/packages/theme-chalk/lib/page.css +1 -0
  54. package/packages/theme-chalk/lib/pagination.css +1 -0
  55. package/packages/theme-chalk/lib/player.css +1 -0
  56. package/packages/theme-chalk/lib/qr-code.css +1 -0
  57. package/packages/theme-chalk/lib/radio-group.css +1 -0
  58. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  59. package/packages/theme-chalk/lib/select-ganged.css +1 -0
  60. package/packages/theme-chalk/lib/select.css +1 -0
  61. package/packages/theme-chalk/lib/selector-panel.css +1 -0
  62. package/packages/theme-chalk/lib/selector.css +1 -0
  63. package/packages/theme-chalk/lib/sizer.css +1 -0
  64. package/packages/theme-chalk/lib/steps.css +1 -0
  65. package/packages/theme-chalk/lib/switch.css +1 -0
  66. package/packages/theme-chalk/lib/table-form.css +0 -0
  67. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  68. package/packages/theme-chalk/lib/tabs.css +1 -0
  69. package/packages/theme-chalk/lib/tips.css +1 -0
  70. package/packages/theme-chalk/lib/toolbar.css +1 -0
  71. package/packages/theme-chalk/lib/tree-group.css +1 -0
  72. package/packages/theme-chalk/lib/tree.css +1 -0
  73. package/packages/theme-chalk/lib/upload.css +1 -0
  74. package/packages/theme-chalk/lib/wujie.css +0 -0
  75. package/packages/theme-chalk/lib/wxlogin.css +1 -0
  76. package/packages/theme-chalk/src/flow.scss +2 -2
  77. package/packages/theme-chalk/src/tree.scss +7 -4
  78. package/packages/tree/src/main.vue +8 -5
  79. package/packages/tree-group/src/main.vue +10 -0
  80. package/packages/upload/src/main.vue +5 -3
  81. package/src/index.js +1 -1
  82. package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/form.js CHANGED
@@ -3590,7 +3590,7 @@ module.exports = require("qs");
3590
3590
  // ESM COMPAT FLAG
3591
3591
  __webpack_require__.r(__webpack_exports__);
3592
3592
 
3593
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=7d054bca&
3593
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=6490929d&
3594
3594
  var render = function () {
3595
3595
  var _vm = this
3596
3596
  var _h = _vm.$createElement
@@ -3628,6 +3628,14 @@ var render = function () {
3628
3628
  "element-loading-spinner": "el-icon-loading",
3629
3629
  "element-loading-background": "rgba(0, 0, 0, 0.65)",
3630
3630
  },
3631
+ on: {
3632
+ keyup: function ($event) {
3633
+ if (!("button" in $event) && $event.keyCode !== 13) {
3634
+ return null
3635
+ }
3636
+ return _vm.handleEnter($event)
3637
+ },
3638
+ },
3631
3639
  },
3632
3640
  "el-form",
3633
3641
  _vm.$attrs,
@@ -14511,7 +14519,7 @@ var staticRenderFns = []
14511
14519
  render._withStripped = true
14512
14520
 
14513
14521
 
14514
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=7d054bca&
14522
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=6490929d&
14515
14523
 
14516
14524
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
14517
14525
  var regenerator_ = __webpack_require__(12);
@@ -18406,6 +18414,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
18406
18414
  //
18407
18415
  //
18408
18416
  //
18417
+ //
18409
18418
 
18410
18419
 
18411
18420
 
@@ -18578,7 +18587,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
18578
18587
  },
18579
18588
  zoom: false,
18580
18589
  showMsg: true,
18581
- validated: Function
18590
+ validated: Function,
18591
+ enterSubmit: Boolean
18582
18592
  },
18583
18593
  data: function data() {
18584
18594
  return {
@@ -18868,6 +18878,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
18868
18878
 
18869
18879
  this.$nextTick(function () {
18870
18880
  !_this3.height && _this3.getHeight();
18881
+ _this3.$refs.esForm.$el.addEventListener('keyup', _this3.handleEnter);
18871
18882
  });
18872
18883
  },
18873
18884
 
@@ -19630,7 +19641,23 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19630
19641
  data: data,
19631
19642
  attrs: attrs
19632
19643
  });
19644
+ },
19645
+ handleEnter: function handleEnter() {
19646
+ if (!this.enterSubmit) {
19647
+ return;
19648
+ }
19649
+ if (util["a" /* default */].win.event == undefined) {
19650
+ var key = e.keyCode;
19651
+ } else {
19652
+ var key = util["a" /* default */].win.event.keyCode;
19653
+ }
19654
+ if (key == 13) {
19655
+ this.handleClick({ event: 'submit' });
19656
+ }
19633
19657
  }
19658
+ },
19659
+ beforeDestroy: function beforeDestroy() {
19660
+ this.$refs.esForm.$el.removeEventListener('keyup', this.handleEnter);
19634
19661
  }
19635
19662
  });
19636
19663
  // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=script&lang=js&