eoss-ui 0.4.85 → 0.4.87

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 (51) hide show
  1. package/lib/button-group.js +4 -0
  2. package/lib/button.js +4 -0
  3. package/lib/checkbox-group.js +4 -0
  4. package/lib/data-table-form.js +4 -0
  5. package/lib/data-table.js +73 -33
  6. package/lib/date-picker.js +4 -0
  7. package/lib/dialog.js +4 -0
  8. package/lib/eoss-ui.common.js +1744 -1582
  9. package/lib/flow-group.js +4 -0
  10. package/lib/flow-list.js +4 -0
  11. package/lib/flow.js +7 -3
  12. package/lib/form.js +10 -22
  13. package/lib/handle-user.js +4 -0
  14. package/lib/handler.js +4 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +4 -0
  17. package/lib/input.js +4 -0
  18. package/lib/login.js +4 -0
  19. package/lib/main.js +4 -0
  20. package/lib/nav.js +9 -6
  21. package/lib/page.js +4 -0
  22. package/lib/player.js +4 -0
  23. package/lib/qr-code.js +4 -0
  24. package/lib/radio-group.js +4 -0
  25. package/lib/retrial-auth.js +4 -0
  26. package/lib/select-ganged.js +4 -0
  27. package/lib/select.js +4 -0
  28. package/lib/selector-panel.js +4 -0
  29. package/lib/selector.js +4 -0
  30. package/lib/sizer.js +4 -0
  31. package/lib/steps.js +4 -0
  32. package/lib/switch.js +4 -0
  33. package/lib/table-form.js +10 -6
  34. package/lib/tabs.js +1569 -1435
  35. package/lib/tips.js +4 -0
  36. package/lib/tree-group.js +4 -0
  37. package/lib/tree.js +4 -0
  38. package/lib/upload.js +76 -28
  39. package/lib/utils/util.js +4 -0
  40. package/lib/wujie.js +4 -0
  41. package/lib/wxlogin.js +4 -0
  42. package/package.json +2 -2
  43. package/packages/data-table/src/main.vue +74 -40
  44. package/packages/flow/src/main.vue +1 -1
  45. package/packages/form/src/main.vue +4 -18
  46. package/packages/form/src/table.vue +1 -1
  47. package/packages/nav/src/main.vue +3 -4
  48. package/packages/tabs/src/main.vue +479 -474
  49. package/packages/upload/src/main.vue +44 -30
  50. package/src/index.js +1 -1
  51. package/src/utils/util.js +4 -0
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/input.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/login.js CHANGED
@@ -451,6 +451,10 @@ var ajax = function ajax(_ref) {
451
451
  if (!header['content-type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
+ } else {
455
+ if (!header['content-type']) {
456
+ header['content-type'] = 'application/json;charset=UTF-8';
457
+ }
454
458
  }
455
459
  return http({
456
460
  method: method,
package/lib/main.js CHANGED
@@ -451,6 +451,10 @@ var ajax = function ajax(_ref) {
451
451
  if (!header['content-type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
+ } else {
455
+ if (!header['content-type']) {
456
+ header['content-type'] = 'application/json;charset=UTF-8';
457
+ }
454
458
  }
455
459
  return http({
456
460
  method: method,
package/lib/nav.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -3401,7 +3405,7 @@ module.exports = require("axios");
3401
3405
  // ESM COMPAT FLAG
3402
3406
  __webpack_require__.r(__webpack_exports__);
3403
3407
 
3404
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=1e79807a&
3408
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=74f295ae&
3405
3409
  var render = function () {
3406
3410
  var _vm = this
3407
3411
  var _h = _vm.$createElement
@@ -3544,7 +3548,7 @@ var staticRenderFns = []
3544
3548
  render._withStripped = true
3545
3549
 
3546
3550
 
3547
- // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=1e79807a&
3551
+ // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=74f295ae&
3548
3552
 
3549
3553
  // EXTERNAL MODULE: ./src/utils/util.js
3550
3554
  var util = __webpack_require__(0);
@@ -3664,8 +3668,7 @@ var util = __webpack_require__(0);
3664
3668
  return '70px';
3665
3669
  }
3666
3670
  }
3667
-
3668
- return this.subMenu.length && this.isShow ? parseInt(this.width, 10) + 70 + 'px' : '70px';
3671
+ return this.subMenu && this.subMenu.length && this.isShow ? parseInt(this.width, 10) + 70 + 'px' : '70px';
3669
3672
  }
3670
3673
  },
3671
3674
  watch: {
@@ -3700,7 +3703,7 @@ var util = __webpack_require__(0);
3700
3703
  }
3701
3704
  this.menu.forEach(function (item) {
3702
3705
  if (item.id === _this.active) {
3703
- _this.subMenu = item.children;
3706
+ _this.subMenu = item.children || [];
3704
3707
  _this.headline = _this.title ? _this.title : item.text;
3705
3708
  return;
3706
3709
  }
@@ -3722,7 +3725,7 @@ var util = __webpack_require__(0);
3722
3725
  }
3723
3726
  val.forEach(function (item) {
3724
3727
  if (item.id === _this2.active) {
3725
- _this2.subMenu = item.children;
3728
+ _this2.subMenu = item.children || [];
3726
3729
  _this2.headline = _this2.title ? _this2.title : item.text;
3727
3730
  return;
3728
3731
  }
package/lib/page.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/player.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/qr-code.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/select.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/selector.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/sizer.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/steps.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/switch.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
package/lib/table-form.js CHANGED
@@ -452,6 +452,10 @@ var ajax = function ajax(_ref) {
452
452
  if (!header['content-type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
+ } else {
456
+ if (!header['content-type']) {
457
+ header['content-type'] = 'application/json;charset=UTF-8';
458
+ }
455
459
  }
456
460
  return http({
457
461
  method: method,
@@ -3440,8 +3444,8 @@ module.exports = require("json-bigint");
3440
3444
  // ESM COMPAT FLAG
3441
3445
  __webpack_require__.r(__webpack_exports__);
3442
3446
 
3443
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=13819cef&
3444
- var tablevue_type_template_id_13819cef_render = function () {
3447
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=b2377b8c&
3448
+ var tablevue_type_template_id_b2377b8c_render = function () {
3445
3449
  var _vm = this
3446
3450
  var _h = _vm.$createElement
3447
3451
  var _c = _vm._self._c || _h
@@ -3623,7 +3627,7 @@ var tablevue_type_template_id_13819cef_render = function () {
3623
3627
  },
3624
3628
  },
3625
3629
  [
3626
- item.type !== "table"
3630
+ item.showLabel !== false && item.label
3627
3631
  ? _c(
3628
3632
  "es-label",
3629
3633
  _vm._b(
@@ -6093,10 +6097,10 @@ var tablevue_type_template_id_13819cef_render = function () {
6093
6097
  )
6094
6098
  }
6095
6099
  var staticRenderFns = []
6096
- tablevue_type_template_id_13819cef_render._withStripped = true
6100
+ tablevue_type_template_id_b2377b8c_render._withStripped = true
6097
6101
 
6098
6102
 
6099
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=13819cef&
6103
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=b2377b8c&
6100
6104
 
6101
6105
  // EXTERNAL MODULE: ./src/utils/rules.js
6102
6106
  var rules = __webpack_require__(10);
@@ -7464,7 +7468,7 @@ var componentNormalizer = __webpack_require__(2);
7464
7468
 
7465
7469
  var component = Object(componentNormalizer["a" /* default */])(
7466
7470
  src_tablevue_type_script_lang_js_,
7467
- tablevue_type_template_id_13819cef_render,
7471
+ tablevue_type_template_id_b2377b8c_render,
7468
7472
  staticRenderFns,
7469
7473
  false,
7470
7474
  null,