eoss-ui 0.5.63 → 0.5.65

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/lib/button-group.js +43 -23
  2. package/lib/button.js +65 -39
  3. package/lib/calendar.js +13 -5
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/data-table-form.js +4 -2
  6. package/lib/data-table.js +112 -25
  7. package/lib/date-picker.js +4 -2
  8. package/lib/dialog.js +4 -2
  9. package/lib/eoss-ui.common.js +635 -393
  10. package/lib/flow-group.js +4 -2
  11. package/lib/flow-list.js +4 -2
  12. package/lib/flow.js +153 -123
  13. package/lib/form.js +9 -4
  14. package/lib/handle-user.js +4 -2
  15. package/lib/handler.js +4 -2
  16. package/lib/icon.js +4 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +4 -2
  19. package/lib/input.js +4 -2
  20. package/lib/login.js +23 -6
  21. package/lib/main.js +189 -128
  22. package/lib/nav.js +4 -2
  23. package/lib/page.js +4 -2
  24. package/lib/player.js +4 -2
  25. package/lib/qr-code.js +13 -13
  26. package/lib/radio-group.js +4 -2
  27. package/lib/retrial-auth.js +4 -2
  28. package/lib/select-ganged.js +4 -2
  29. package/lib/select.js +4 -2
  30. package/lib/selector-panel.js +4 -2
  31. package/lib/selector.js +4 -2
  32. package/lib/sizer.js +4 -2
  33. package/lib/steps.js +4 -2
  34. package/lib/switch.js +4 -2
  35. package/lib/table-form.js +4 -2
  36. package/lib/tabs.js +4 -2
  37. package/lib/theme-chalk/base.css +1 -1
  38. package/lib/theme-chalk/button-group.css +1 -1
  39. package/lib/theme-chalk/button.css +1 -1
  40. package/lib/theme-chalk/calendar.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/menu.css +1 -1
  44. package/lib/theme-chalk/qr-code.css +1 -1
  45. package/lib/theme-chalk/sizer.css +1 -1
  46. package/lib/theme-chalk/upload.css +1 -1
  47. package/lib/tips.js +4 -2
  48. package/lib/tree-group.js +4 -2
  49. package/lib/tree.js +4 -2
  50. package/lib/upload.js +12 -8
  51. package/lib/utils/util.js +4 -2
  52. package/lib/wujie.js +4 -2
  53. package/lib/wxlogin.js +4 -2
  54. package/package.json +2 -2
  55. package/packages/button/src/main.vue +92 -56
  56. package/packages/button-group/src/main.vue +10 -1
  57. package/packages/calendar/src/main.vue +11 -4
  58. package/packages/data-table/src/children.vue +3 -1
  59. package/packages/data-table/src/main.vue +55 -10
  60. package/packages/flow/src/processForm.vue +32 -4
  61. package/packages/form/src/main.vue +3 -0
  62. package/packages/login/src/main.vue +12 -1
  63. package/packages/main/src/main.vue +147 -101
  64. package/packages/qr-code/src/main.vue +10 -5
  65. package/packages/theme-chalk/lib/base.css +1 -1
  66. package/packages/theme-chalk/lib/button-group.css +1 -1
  67. package/packages/theme-chalk/lib/button.css +1 -1
  68. package/packages/theme-chalk/lib/calendar.css +1 -1
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/main.css +1 -1
  71. package/packages/theme-chalk/lib/menu.css +1 -1
  72. package/packages/theme-chalk/lib/qr-code.css +1 -1
  73. package/packages/theme-chalk/lib/sizer.css +1 -1
  74. package/packages/theme-chalk/lib/upload.css +1 -1
  75. package/packages/theme-chalk/src/base.scss +3 -0
  76. package/packages/theme-chalk/src/button-group.scss +110 -0
  77. package/packages/theme-chalk/src/button.scss +6 -0
  78. package/packages/theme-chalk/src/calendar.scss +3 -0
  79. package/packages/theme-chalk/src/qr-code.scss +1 -1
  80. package/packages/upload/src/main.vue +3 -1
  81. package/src/index.js +1 -1
  82. package/src/utils/util.js +4 -1
package/lib/data-table.js CHANGED
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
2200
2200
  });
2201
2201
  }
2202
2202
  }).catch(function (e) {});
2203
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2203
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
2204
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2205
2205
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2206
2206
  } else {
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
2890
2890
  * @param {string} [$color] - 颜色值
2891
2891
  **/
2892
2892
  var updateTheme = function updateTheme(color, send) {
2893
- color = color && startWith(color, '#') ? color : '#409eff';
2893
+ if (!color) {
2894
+ return false;
2895
+ }
2894
2896
 
2895
2897
  if (send === undefined) {
2896
2898
  send = true;
@@ -3816,8 +3818,8 @@ module.exports = require("throttle-debounce");
3816
3818
  // ESM COMPAT FLAG
3817
3819
  __webpack_require__.r(__webpack_exports__);
3818
3820
 
3819
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=c40e40b8&
3820
- var mainvue_type_template_id_c40e40b8_render = function () {
3821
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=5d38af04&
3822
+ var mainvue_type_template_id_5d38af04_render = function () {
3821
3823
  var _vm = this
3822
3824
  var _h = _vm.$createElement
3823
3825
  var _c = _vm._self._c || _h
@@ -3904,10 +3906,15 @@ var mainvue_type_template_id_c40e40b8_render = function () {
3904
3906
  (_vm.theadBorder && _vm.border != "none"
3905
3907
  ? " es-thead-border"
3906
3908
  : ""),
3909
+ attrs: { data: _vm.datas },
3910
+ on: {
3911
+ "update:data": function ($event) {
3912
+ _vm.datas = $event
3913
+ },
3914
+ },
3907
3915
  },
3908
3916
  "el-table",
3909
3917
  Object.assign({}, _vm.$attrs, {
3910
- data: _vm.datas,
3911
3918
  emptyText: _vm.emptyText,
3912
3919
  showSummary: _vm.showTotal,
3913
3920
  sumText: _vm.sumText || _vm.totalText,
@@ -3919,6 +3926,8 @@ var mainvue_type_template_id_c40e40b8_render = function () {
3919
3926
  border: _vm._border,
3920
3927
  infiniteScroll: _vm.getTableData,
3921
3928
  infiniteScrollDisabled: _vm.infiniteDisabled,
3929
+ dragSort: _vm.dragSort,
3930
+ dragSortClass: _vm.dragSortIcon,
3922
3931
  }),
3923
3932
  false
3924
3933
  ),
@@ -3927,6 +3936,7 @@ var mainvue_type_template_id_c40e40b8_render = function () {
3927
3936
  "selection-change": _vm.selectionChange,
3928
3937
  "filter-column": _vm.handleFilterColumn,
3929
3938
  "sort-change": _vm.handleSortChange,
3939
+ "update-drag-sort": _vm.handleUpdateDragSort,
3930
3940
  })
3931
3941
  ),
3932
3942
  [
@@ -3936,13 +3946,38 @@ var mainvue_type_template_id_c40e40b8_render = function () {
3936
3946
  return [
3937
3947
  item.hide !== true
3938
3948
  ? [
3939
- item.type === "index" || item.type === "selection"
3949
+ item.type === "sort"
3950
+ ? _c("el-table-column", {
3951
+ key: index,
3952
+ attrs: { width: "32" },
3953
+ scopedSlots: _vm._u([
3954
+ {
3955
+ key: "default",
3956
+ fn: function (scope) {
3957
+ return [
3958
+ _c("es-icon", {
3959
+ staticClass: "es-move",
3960
+ attrs: {
3961
+ contents: _vm.dragSortIcon,
3962
+ },
3963
+ }),
3964
+ ]
3965
+ },
3966
+ },
3967
+ ]),
3968
+ })
3969
+ : item.type === "index" ||
3970
+ item.type === "selection"
3940
3971
  ? _c(
3941
3972
  "el-table-column",
3942
3973
  _vm._b(
3943
3974
  { key: index },
3944
3975
  "el-table-column",
3945
- item,
3976
+ _vm.dragSort
3977
+ ? Object.assign({}, item, {
3978
+ fixed: false,
3979
+ })
3980
+ : item,
3946
3981
  false
3947
3982
  )
3948
3983
  )
@@ -3960,8 +3995,13 @@ var mainvue_type_template_id_c40e40b8_render = function () {
3960
3995
  form: _vm.form,
3961
3996
  readonly: _vm.readonly,
3962
3997
  optionData: _vm.optionDatas,
3998
+ dragSort: _vm.dragSort,
3963
3999
  },
3964
- item
4000
+ _vm.dragSort
4001
+ ? Object.assign({}, item, {
4002
+ fixed: false,
4003
+ })
4004
+ : item
3965
4005
  ),
3966
4006
  false
3967
4007
  ),
@@ -4086,10 +4126,10 @@ var mainvue_type_template_id_c40e40b8_render = function () {
4086
4126
  )
4087
4127
  }
4088
4128
  var staticRenderFns = []
4089
- mainvue_type_template_id_c40e40b8_render._withStripped = true
4129
+ mainvue_type_template_id_5d38af04_render._withStripped = true
4090
4130
 
4091
4131
 
4092
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=c40e40b8&
4132
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=5d38af04&
4093
4133
 
4094
4134
  // EXTERNAL MODULE: ./src/config/api.js
4095
4135
  var api = __webpack_require__(1);
@@ -4097,8 +4137,8 @@ var api = __webpack_require__(1);
4097
4137
  // EXTERNAL MODULE: external "throttle-debounce"
4098
4138
  var external_throttle_debounce_ = __webpack_require__(19);
4099
4139
 
4100
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4101
- var childrenvue_type_template_id_29bcbc72_render = function () {
4140
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
4141
+ var childrenvue_type_template_id_44b7ff61_render = function () {
4102
4142
  var _vm = this
4103
4143
  var _h = _vm.$createElement
4104
4144
  var _c = _vm._self._c || _h
@@ -4117,9 +4157,15 @@ var childrenvue_type_template_id_29bcbc72_render = function () {
4117
4157
  _vm._b(
4118
4158
  { key: index },
4119
4159
  "children",
4120
- Object.assign({}, _vm.$attrs, item, {
4121
- indexs: index,
4122
- }),
4160
+ Object.assign(
4161
+ {},
4162
+ _vm.$attrs,
4163
+ item,
4164
+ { indexs: index },
4165
+ _vm.dragSort
4166
+ ? Object.assign({}, item, { fixed: false })
4167
+ : item
4168
+ ),
4123
4169
  false
4124
4170
  ),
4125
4171
  _vm.$listeners
@@ -4134,11 +4180,11 @@ var childrenvue_type_template_id_29bcbc72_render = function () {
4134
4180
  2
4135
4181
  )
4136
4182
  }
4137
- var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
4138
- childrenvue_type_template_id_29bcbc72_render._withStripped = true
4183
+ var childrenvue_type_template_id_44b7ff61_staticRenderFns = []
4184
+ childrenvue_type_template_id_44b7ff61_render._withStripped = true
4139
4185
 
4140
4186
 
4141
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4187
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
4142
4188
 
4143
4189
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=449ae3d7&
4144
4190
  var columnvue_type_template_id_449ae3d7_render = function () {
@@ -5764,12 +5810,14 @@ var _components;
5764
5810
  //
5765
5811
  //
5766
5812
  //
5813
+ //
5767
5814
 
5768
5815
 
5769
5816
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
5770
5817
  name: 'Children',
5771
5818
  components: (_components = {}, _components[column.name] = column, _components),
5772
5819
  props: {
5820
+ dragSort: Boolean,
5773
5821
  children: Array,
5774
5822
  childHead: Array
5775
5823
  },
@@ -5791,8 +5839,8 @@ var _components;
5791
5839
 
5792
5840
  var children_component = Object(componentNormalizer["a" /* default */])(
5793
5841
  src_childrenvue_type_script_lang_js_,
5794
- childrenvue_type_template_id_29bcbc72_render,
5795
- childrenvue_type_template_id_29bcbc72_staticRenderFns,
5842
+ childrenvue_type_template_id_44b7ff61_render,
5843
+ childrenvue_type_template_id_44b7ff61_staticRenderFns,
5796
5844
  false,
5797
5845
  null,
5798
5846
  null,
@@ -6202,6 +6250,24 @@ var mainvue_type_script_lang_js_components, _watch;
6202
6250
  //
6203
6251
  //
6204
6252
  //
6253
+ //
6254
+ //
6255
+ //
6256
+ //
6257
+ //
6258
+ //
6259
+ //
6260
+ //
6261
+ //
6262
+ //
6263
+ //
6264
+ //
6265
+ //
6266
+ //
6267
+ //
6268
+ //
6269
+ //
6270
+ //
6205
6271
 
6206
6272
 
6207
6273
 
@@ -6453,6 +6519,11 @@ var mainvue_type_script_lang_js_components, _watch;
6453
6519
  default: function _default() {
6454
6520
  return {};
6455
6521
  }
6522
+ },
6523
+ dragSort: Boolean,
6524
+ dragSortIcon: {
6525
+ type: String,
6526
+ default: 'es-icon-caidan'
6456
6527
  }
6457
6528
  },
6458
6529
  data: function data() {
@@ -6481,7 +6552,8 @@ var mainvue_type_script_lang_js_components, _watch;
6481
6552
  icon: true,
6482
6553
  show: true,
6483
6554
  sysCodes: [],
6484
- infiniteDisabled: this.infiniteScroll
6555
+ infiniteDisabled: this.infiniteScroll,
6556
+ isUpadeData: false
6485
6557
  };
6486
6558
  },
6487
6559
 
@@ -6499,7 +6571,17 @@ var mainvue_type_script_lang_js_components, _watch;
6499
6571
  theads: {
6500
6572
  get: function get() {
6501
6573
  var thead = [];
6502
- if (this.checkbox) {
6574
+ var types = this.theadData.filter(function (item) {
6575
+ return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
6576
+ }).map(function (item) {
6577
+ return item.type;
6578
+ });
6579
+ if (this.dragSort && !types.includes('sort')) {
6580
+ thead.push({
6581
+ type: 'sort'
6582
+ });
6583
+ }
6584
+ if (this.checkbox && !types.includes('selection')) {
6503
6585
  thead.push({
6504
6586
  type: 'selection',
6505
6587
  width: '55',
@@ -6509,7 +6591,7 @@ var mainvue_type_script_lang_js_components, _watch;
6509
6591
  reserveSelection: this.reserveSelection
6510
6592
  });
6511
6593
  }
6512
- if (this.numbers) {
6594
+ if (this.numbers && !types.includes('index')) {
6513
6595
  var index = 1;
6514
6596
  if (this.infiniteScroll) {
6515
6597
  index = typeof this.index == 'boolean' ? 1 : this.index;
@@ -6522,7 +6604,8 @@ var mainvue_type_script_lang_js_components, _watch;
6522
6604
  width: '70',
6523
6605
  align: 'center',
6524
6606
  fixed: 'left',
6525
- index: index
6607
+ index: index,
6608
+ filterIcon: this.filter ? 'es-icon-biao' : undefined
6526
6609
  });
6527
6610
  }
6528
6611
  if (this.theadData.length) {
@@ -6552,6 +6635,7 @@ var mainvue_type_script_lang_js_components, _watch;
6552
6635
  return this.data;
6553
6636
  },
6554
6637
  set: function set(val) {
6638
+ this.$emit('update:data', val);
6555
6639
  return val;
6556
6640
  }
6557
6641
  },
@@ -7423,6 +7507,9 @@ var mainvue_type_script_lang_js_components, _watch;
7423
7507
  }
7424
7508
  this.$emit('sort-change', res);
7425
7509
  },
7510
+ handleUpdateDragSort: function handleUpdateDragSort(data, event) {
7511
+ this.$emit('update-drag-sort', data, event);
7512
+ },
7426
7513
  mergeThead: function mergeThead(res) {
7427
7514
  var _this12 = this;
7428
7515
 
@@ -7468,7 +7555,7 @@ var mainvue_type_script_lang_js_components, _watch;
7468
7555
 
7469
7556
  var main_component = Object(componentNormalizer["a" /* default */])(
7470
7557
  src_mainvue_type_script_lang_js_,
7471
- mainvue_type_template_id_c40e40b8_render,
7558
+ mainvue_type_template_id_5d38af04_render,
7472
7559
  staticRenderFns,
7473
7560
  false,
7474
7561
  null,
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
2201
2201
  });
2202
2202
  }
2203
2203
  }).catch(function (e) {});
2204
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2205
2205
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2206
2206
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2207
2207
  } else {
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
2891
2891
  * @param {string} [$color] - 颜色值
2892
2892
  **/
2893
2893
  var updateTheme = function updateTheme(color, send) {
2894
- color = color && startWith(color, '#') ? color : '#409eff';
2894
+ if (!color) {
2895
+ return false;
2896
+ }
2895
2897
 
2896
2898
  if (send === undefined) {
2897
2899
  send = true;
package/lib/dialog.js CHANGED
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
2200
2200
  });
2201
2201
  }
2202
2202
  }).catch(function (e) {});
2203
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2203
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
2204
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2205
2205
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2206
2206
  } else {
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
2890
2890
  * @param {string} [$color] - 颜色值
2891
2891
  **/
2892
2892
  var updateTheme = function updateTheme(color, send) {
2893
- color = color && startWith(color, '#') ? color : '#409eff';
2893
+ if (!color) {
2894
+ return false;
2895
+ }
2894
2896
 
2895
2897
  if (send === undefined) {
2896
2898
  send = true;