eoss-ui 0.5.76 → 0.5.78

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 +1 -1
  2. package/lib/button.js +1 -1
  3. package/lib/checkbox-group.js +1 -1
  4. package/lib/clients.js +168 -107
  5. package/lib/data-table-form.js +1 -1
  6. package/lib/data-table.js +115 -104
  7. package/lib/date-picker.js +1 -1
  8. package/lib/dialog.js +1 -1
  9. package/lib/eoss-ui.common.js +375 -282
  10. package/lib/flow-group.js +1 -1
  11. package/lib/flow-list.js +1 -1
  12. package/lib/flow.js +1 -1
  13. package/lib/form.js +10 -7
  14. package/lib/handle-user.js +1 -1
  15. package/lib/handler.js +13 -5
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +1 -1
  18. package/lib/input.js +9 -3
  19. package/lib/login.js +9 -5
  20. package/lib/main.js +3 -5
  21. package/lib/nav.js +1 -1
  22. package/lib/page.js +1 -1
  23. package/lib/player.js +1 -1
  24. package/lib/qr-code.js +4 -4
  25. package/lib/radio-group.js +1 -1
  26. package/lib/retrial-auth.js +1 -1
  27. package/lib/select-ganged.js +1 -1
  28. package/lib/select.js +1 -1
  29. package/lib/selector-panel.js +1 -1
  30. package/lib/selector.js +5 -3
  31. package/lib/sizer.js +1 -1
  32. package/lib/steps.js +1 -1
  33. package/lib/switch.js +1 -1
  34. package/lib/table-form.js +1 -1
  35. package/lib/tabs.js +1 -1
  36. package/lib/theme-chalk/clients.css +1 -1
  37. package/lib/theme-chalk/form.css +1 -1
  38. package/lib/theme-chalk/handler.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/tips.js +1 -1
  42. package/lib/tree-group.js +1 -1
  43. package/lib/tree.js +1 -1
  44. package/lib/upload.js +1 -1
  45. package/lib/utils/util.js +1 -1
  46. package/lib/wujie.js +1 -1
  47. package/lib/wxlogin.js +1 -1
  48. package/package.json +1 -1
  49. package/packages/clients/src/main.vue +54 -26
  50. package/packages/data-table/src/main.vue +12 -3
  51. package/packages/form/src/main.vue +13 -4
  52. package/packages/handler/src/main.vue +7 -2
  53. package/packages/input/src/main.vue +19 -2
  54. package/packages/login/src/main.vue +6 -2
  55. package/packages/main/src/main.vue +0 -2
  56. package/packages/qr-code/src/main.vue +1 -1
  57. package/packages/selector/src/main.vue +2 -0
  58. package/packages/theme-chalk/lib/clients.css +1 -1
  59. package/packages/theme-chalk/lib/form.css +1 -1
  60. package/packages/theme-chalk/lib/handler.css +1 -1
  61. package/packages/theme-chalk/lib/index.css +1 -1
  62. package/packages/theme-chalk/lib/login.css +1 -1
  63. package/packages/theme-chalk/src/clients.scss +12 -5
  64. package/packages/theme-chalk/src/form.scss +6 -0
  65. package/packages/theme-chalk/src/handler.scss +0 -1
  66. package/packages/theme-chalk/src/login.scss +12 -9
  67. package/src/index.js +1 -1
  68. package/src/utils/util.js +1 -1
@@ -2312,7 +2312,7 @@ var isObject = function isObject(obj) {
2312
2312
  * @param {Object} [_obj] - 对象
2313
2313
  **/
2314
2314
  var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
- if (obj === undefined && _obj || obj && _obj === undefined) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined || obj === undefined && _obj === undefined) {
2316
2316
  return false;
2317
2317
  }
2318
2318
  var aProps = Object.getOwnPropertyNames(obj);
package/lib/data-table.js CHANGED
@@ -2312,7 +2312,7 @@ var isObject = function isObject(obj) {
2312
2312
  * @param {Object} [_obj] - 对象
2313
2313
  **/
2314
2314
  var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
- if (obj === undefined && _obj || obj && _obj === undefined) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined || obj === undefined && _obj === undefined) {
2316
2316
  return false;
2317
2317
  }
2318
2318
  var aProps = Object.getOwnPropertyNames(obj);
@@ -3928,8 +3928,8 @@ module.exports = require("vue");
3928
3928
  // ESM COMPAT FLAG
3929
3929
  __webpack_require__.r(__webpack_exports__);
3930
3930
 
3931
- // 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=f80417f8&
3932
- var mainvue_type_template_id_f80417f8_render = function () {
3931
+ // 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=58029cb3&
3932
+ var mainvue_type_template_id_58029cb3_render = function () {
3933
3933
  var _vm = this
3934
3934
  var _h = _vm.$createElement
3935
3935
  var _c = _vm._self._c || _h
@@ -4240,10 +4240,10 @@ var mainvue_type_template_id_f80417f8_render = function () {
4240
4240
  )
4241
4241
  }
4242
4242
  var staticRenderFns = []
4243
- mainvue_type_template_id_f80417f8_render._withStripped = true
4243
+ mainvue_type_template_id_58029cb3_render._withStripped = true
4244
4244
 
4245
4245
 
4246
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
4246
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=58029cb3&
4247
4247
 
4248
4248
  // EXTERNAL MODULE: ./src/config/api.js
4249
4249
  var api = __webpack_require__(1);
@@ -6486,6 +6486,10 @@ var mainvue_type_script_lang_js_components, _watch;
6486
6486
  type: Boolean,
6487
6487
  default: false
6488
6488
  },
6489
+ orders: {
6490
+ type: String,
6491
+ default: 'asc'
6492
+ },
6489
6493
  // 是否筛选列功能
6490
6494
  filter: {
6491
6495
  type: Boolean,
@@ -6690,6 +6694,8 @@ var mainvue_type_script_lang_js_components, _watch;
6690
6694
 
6691
6695
  theads: {
6692
6696
  get: function get() {
6697
+ var _this = this;
6698
+
6693
6699
  var thead = [];
6694
6700
  var addfilter = false;
6695
6701
  var types = this.theadData.filter(function (item) {
@@ -6721,7 +6727,11 @@ var mainvue_type_script_lang_js_components, _watch;
6721
6727
  }
6722
6728
  if (this.numbers && !types.includes('index')) {
6723
6729
  var index = 1;
6724
- if (this.infiniteScroll) {
6730
+ if (this.orders == 'desc') {
6731
+ index = function index(num) {
6732
+ return _this.config.totalCount - num;
6733
+ };
6734
+ } else if (this.infiniteScroll) {
6725
6735
  index = typeof this.index == 'boolean' ? 1 : this.index;
6726
6736
  } else if (this.index || this.index === 0) {
6727
6737
  index = this.index === true ? (this.config.pageNum - 1) * this.config.pageSize + 1 : this.index;
@@ -6753,15 +6763,17 @@ var mainvue_type_script_lang_js_components, _watch;
6753
6763
  },
6754
6764
  datas: {
6755
6765
  get: function get() {
6756
- var _this = this;
6766
+ var _this2 = this;
6757
6767
 
6758
6768
  if (this.list && this.list.length) {
6759
6769
  return this.list;
6760
6770
  }
6761
- this.config.totalCount = this.data.length - this.lose;
6771
+ if (this.config.totalCount == 0 && this.data.length) {
6772
+ this.config.totalCount = this.data.length - this.lose;
6773
+ }
6762
6774
  if (this.page && this.data.length > this.config.pageSize) {
6763
6775
  return this.data.filter(function (item, index) {
6764
- return index > (_this.config.pageNum - 1) * _this.config.pageSize - 1 && index < _this.config.pageNum * _this.config.pageSize;
6776
+ return index > (_this2.config.pageNum - 1) * _this2.config.pageSize - 1 && index < _this2.config.pageNum * _this2.config.pageSize;
6765
6777
  });
6766
6778
  }
6767
6779
  return this.data;
@@ -6919,10 +6931,10 @@ var mainvue_type_script_lang_js_components, _watch;
6919
6931
  }
6920
6932
  }, _watch),
6921
6933
  beforeCreate: function beforeCreate() {
6922
- var _this2 = this;
6934
+ var _this3 = this;
6923
6935
 
6924
6936
  this.getTableData = Object(external_throttle_debounce_["debounce"])(500, function (res) {
6925
- _this2.getTableDatas(res);
6937
+ _this3.getTableDatas(res);
6926
6938
  });
6927
6939
  },
6928
6940
  created: function created() {
@@ -6947,55 +6959,55 @@ var mainvue_type_script_lang_js_components, _watch;
6947
6959
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
6948
6960
  },
6949
6961
  getOptions: function getOptions(res) {
6950
- var _this3 = this;
6962
+ var _this4 = this;
6951
6963
 
6952
6964
  var sysCodes = [];
6953
6965
  res.forEach(function (item) {
6954
6966
  if (item.sysCode || item.url) {
6955
6967
  item.sysCode && sysCodes.push(item.sysCode);
6956
6968
  var params = util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode, code: item.sysCode } : {}, item.param ? item.param : {});
6957
- var key = _this3.getRequestKey({
6958
- method: _this3.method,
6959
- url: item.sysCode ? _this3.findCode : item.url,
6969
+ var key = _this4.getRequestKey({
6970
+ method: _this4.method,
6971
+ url: item.sysCode ? _this4.findCode : item.url,
6960
6972
  params: params,
6961
6973
  data: {}
6962
6974
  });
6963
- if (!_this3.requests.includes(key)) {
6975
+ if (!_this4.requests.includes(key)) {
6964
6976
  util["a" /* default */].ajax({
6965
- url: item.sysCode ? _this3.findCode : item.url,
6966
- method: _this3.method,
6977
+ url: item.sysCode ? _this4.findCode : item.url,
6978
+ method: _this4.method,
6967
6979
  params: params,
6968
6980
  data: params
6969
6981
  }).then(function (res) {
6970
6982
  if (res.rCode === 0) {
6971
6983
  if (item.type == 'ganged') {
6972
- _this3.$set(_this3.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6984
+ _this4.$set(_this4.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6973
6985
  if (item.sysCode) {
6974
- bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this3.options[item.sysCode])));
6986
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this4.options[item.sysCode])));
6975
6987
  }
6976
6988
  } else {
6977
- _this3.$set(_this3.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6989
+ _this4.$set(_this4.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6978
6990
  if (item.sysCode) {
6979
6991
  bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
6980
6992
  }
6981
6993
  }
6982
- _this3.requests.push(key);
6994
+ _this4.requests.push(key);
6983
6995
  } else {
6984
6996
  var msg = res.msg || '系统错误,请联系管理员!';
6985
- _this3.$message.error(msg);
6997
+ _this4.$message.error(msg);
6986
6998
  }
6987
6999
  }).catch(function (err) {
6988
7000
  if (err.message && err.message !== 'canceled') {
6989
- _this3.$message.error(err.message);
7001
+ _this4.$message.error(err.message);
6990
7002
  }
6991
7003
  });
6992
7004
  }
6993
7005
  } else {
6994
7006
  if (item.childHead && item.childHead.length) {
6995
- _this3.getOptions(item.childHead);
7007
+ _this4.getOptions(item.childHead);
6996
7008
  }
6997
7009
  if (item.children && item.children.length) {
6998
- _this3.getOptions(item.children);
7010
+ _this4.getOptions(item.children);
6999
7011
  }
7000
7012
  }
7001
7013
  });
@@ -7007,7 +7019,7 @@ var mainvue_type_script_lang_js_components, _watch;
7007
7019
  return util["a" /* default */].getObjectType(item) === 'object';
7008
7020
  },
7009
7021
  chekOpenTotalArea: function chekOpenTotalArea() {
7010
- var _this4 = this;
7022
+ var _this5 = this;
7011
7023
 
7012
7024
  if (this.total || this.showSummary) {
7013
7025
  this.showTotal = true;
@@ -7016,7 +7028,7 @@ var mainvue_type_script_lang_js_components, _watch;
7016
7028
  var arr = JSON.parse(JSON.stringify(this.theads));
7017
7029
  arr.forEach(function (item) {
7018
7030
  if (item.total) {
7019
- _this4.showTotal = true;
7031
+ _this5.showTotal = true;
7020
7032
  }
7021
7033
  });
7022
7034
  },
@@ -7063,13 +7075,13 @@ var mainvue_type_script_lang_js_components, _watch;
7063
7075
  }
7064
7076
  },
7065
7077
  getRow: function getRow(thead, obj) {
7066
- var _this5 = this;
7078
+ var _this6 = this;
7067
7079
 
7068
7080
  thead.forEach(function (item) {
7069
7081
  if (item.field) {
7070
7082
  obj[item['field']] = item.defaultValue || '';
7071
7083
  } else if (item.children && item.children.length) {
7072
- _this5.getRow(item.children, obj);
7084
+ _this6.getRow(item.children, obj);
7073
7085
  }
7074
7086
  });
7075
7087
  },
@@ -7096,27 +7108,27 @@ var mainvue_type_script_lang_js_components, _watch;
7096
7108
  });
7097
7109
  },
7098
7110
  checkSelect: function checkSelect(newVal) {
7099
- var _this6 = this;
7111
+ var _this7 = this;
7100
7112
 
7101
7113
  this.$nextTick(function () {
7102
7114
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
7103
7115
  newVal.forEach(function (row) {
7104
7116
  if (util["a" /* default */].isObject(row)) {
7105
- _this6.$refs.oaTable.toggleRowSelection(row, true);
7106
- } else _this6.datas.forEach(function (item) {
7107
- if (item[_this6.checkedKey] === row) {
7108
- _this6.$refs.oaTable.toggleRowSelection(item, true);
7117
+ _this7.$refs.oaTable.toggleRowSelection(row, true);
7118
+ } else _this7.datas.forEach(function (item) {
7119
+ if (item[_this7.checkedKey] === row) {
7120
+ _this7.$refs.oaTable.toggleRowSelection(item, true);
7109
7121
  return;
7110
7122
  }
7111
7123
  });
7112
7124
  });
7113
7125
  } else if (newVal === true) {
7114
- _this6.toggleAllSelection();
7126
+ _this7.toggleAllSelection();
7115
7127
  }
7116
7128
  });
7117
7129
  },
7118
7130
  getTheads: function getTheads() {
7119
- var _this7 = this;
7131
+ var _this8 = this;
7120
7132
 
7121
7133
  util["a" /* default */].ajax({
7122
7134
  url: this.thead,
@@ -7128,27 +7140,27 @@ var mainvue_type_script_lang_js_components, _watch;
7128
7140
  if (res.rCode === 0) {
7129
7141
  var results = res.results;
7130
7142
  if (Array.isArray(results)) {
7131
- _this7.theadData = results;
7143
+ _this8.theadData = results;
7132
7144
  } else {
7133
- _this7.theadData = results.theadData || [];
7134
- _this7.list = results.data || results.records || [];
7135
- _this7.config.totalCount = results.count || results.total || results.totalCount;
7136
- _this7.getOptions(_this7.theadData);
7145
+ _this8.theadData = results.theadData || [];
7146
+ _this8.list = results.data || results.records || [];
7147
+ _this8.config.totalCount = results.count || results.total || results.totalCount;
7148
+ _this8.getOptions(_this8.theadData);
7137
7149
  }
7138
7150
  } else {
7139
- _this7.theadData = [];
7151
+ _this8.theadData = [];
7140
7152
  var msg = res.msg || '系统错误,请联系管理员!';
7141
- _this7.$message.error(msg);
7153
+ _this8.$message.error(msg);
7142
7154
  }
7143
- _this7.$emit('success', res);
7155
+ _this8.$emit('success', res);
7144
7156
  }).catch(function (err) {
7145
7157
  if (err.message && err.message !== 'canceled') {
7146
- _this7.$message.error(err.message);
7158
+ _this8.$message.error(err.message);
7147
7159
  }
7148
7160
  });
7149
7161
  },
7150
7162
  getTableDatas: function getTableDatas(res) {
7151
- var _this8 = this;
7163
+ var _this9 = this;
7152
7164
 
7153
7165
  var where = void 0;
7154
7166
  var first = void 0;
@@ -7188,42 +7200,42 @@ var mainvue_type_script_lang_js_components, _watch;
7188
7200
  params: reqData,
7189
7201
  data: reqData
7190
7202
  })).then(function (res) {
7191
- _this8.tableLoading = false;
7203
+ _this9.tableLoading = false;
7192
7204
  if (res.rCode === 0 || res.status === 'success') {
7193
- if (_this8.isReload) {
7194
- _this8.list = [];
7195
- _this8.isReload = false;
7205
+ if (_this9.isReload) {
7206
+ _this9.list = [];
7207
+ _this9.isReload = false;
7196
7208
  }
7197
- var results = _this8.parseData !== undefined ? _this8.parseData(res.results || res.data || res) : res.results || res.data;
7198
- if (_this8.infiniteScroll) {
7199
- _this8.list = _this8.list.concat(results.data || results.records || results.list);
7200
- _this8.config.pageNum += 1;
7209
+ var results = _this9.parseData !== undefined ? _this9.parseData(res.results || res.data || res) : res.results || res.data;
7210
+ if (_this9.infiniteScroll) {
7211
+ _this9.list = _this9.list.concat(results.data || results.records || results.list);
7212
+ _this9.config.pageNum += 1;
7201
7213
  } else {
7202
- _this8.$nextTick(function () {
7203
- _this8.list = results.data || results.records || results.list || [];
7204
- _this8.$refs.oaTable && _this8.$refs.oaTable.resetScroll && _this8.$refs.oaTable.resetScroll(0, 0);
7214
+ _this9.$nextTick(function () {
7215
+ _this9.list = results.data || results.records || results.list || [];
7216
+ _this9.$refs.oaTable && _this9.$refs.oaTable.resetScroll && _this9.$refs.oaTable.resetScroll(0, 0);
7205
7217
  });
7206
7218
  }
7207
- _this8.config.totalCount = results.count || results.total || results.totalCount;
7208
- _this8.checked && _this8.$nextTick(function () {
7209
- _this8.checkSelect(_this8.checked);
7219
+ _this9.config.totalCount = results.count || results.total || results.totalCount;
7220
+ _this9.checked && _this9.$nextTick(function () {
7221
+ _this9.checkSelect(_this9.checked);
7210
7222
  });
7211
- if (_this8.infiniteScroll && _this8.config.totalCount === _this8.list.length) {
7212
- _this8.infiniteDisabled = true;
7223
+ if (_this9.infiniteScroll && _this9.config.totalCount === _this9.list.length) {
7224
+ _this9.infiniteDisabled = true;
7213
7225
  }
7214
7226
  } else {
7215
- _this8.list = [];
7227
+ _this9.list = [];
7216
7228
  //this.tableHeight = false;
7217
7229
  var msg = res.msg || '系统错误,请联系管理员!';
7218
- _this8.$message.error(msg);
7230
+ _this9.$message.error(msg);
7219
7231
  }
7220
- _this8.$emit('success', res);
7232
+ _this9.$emit('success', res);
7221
7233
  }).catch(function (err) {
7222
7234
  //this.tableHeight = false;
7223
7235
  if (err.message && err.message !== 'canceled') {
7224
- _this8.$message.error(err.message);
7236
+ _this9.$message.error(err.message);
7225
7237
  }
7226
- _this8.tableLoading = false;
7238
+ _this9.tableLoading = false;
7227
7239
  });
7228
7240
  },
7229
7241
  selectionChange: function selectionChange(data) {
@@ -7253,7 +7265,6 @@ var mainvue_type_script_lang_js_components, _watch;
7253
7265
  },
7254
7266
  doLayout: function doLayout() {
7255
7267
  this.$refs.oaTable.doLayout();
7256
- this.$refs.oaTable.updateScroll();
7257
7268
  },
7258
7269
  sort: function sort(prop, order) {
7259
7270
  this.$refs.oaTable.sort(prop, order);
@@ -7269,7 +7280,7 @@ var mainvue_type_script_lang_js_components, _watch;
7269
7280
  this.$emit('change', data, this.datas);
7270
7281
  },
7271
7282
  handleAjax: function handleAjax(handle, row) {
7272
- var _this9 = this;
7283
+ var _this10 = this;
7273
7284
 
7274
7285
  this.changeLoading(true, handle.text + '\u4E2D...');
7275
7286
  var params = handle.param || {};
@@ -7325,9 +7336,9 @@ var mainvue_type_script_lang_js_components, _watch;
7325
7336
  method: handle.method,
7326
7337
  format: handle.format
7327
7338
  })).then(function (res) {
7328
- _this9.changeLoading(false);
7339
+ _this10.changeLoading(false);
7329
7340
  if (res.rCode === 0) {
7330
- _this9.$message({
7341
+ _this10.$message({
7331
7342
  message: handle.text + '\u6210\u529F',
7332
7343
  duration: 2000,
7333
7344
  type: 'success',
@@ -7335,17 +7346,17 @@ var mainvue_type_script_lang_js_components, _watch;
7335
7346
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7336
7347
  var reload = handle.reload || true;
7337
7348
  if (reload) {
7338
- _this9.reload({}, first);
7349
+ _this10.reload({}, first);
7339
7350
  }
7340
7351
  }
7341
7352
  });
7342
7353
  } else {
7343
- _this9.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7354
+ _this10.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7344
7355
  }
7345
7356
  }).catch(function (err) {
7346
- _this9.changeLoading(false);
7357
+ _this10.changeLoading(false);
7347
7358
  if (err.message && err.message !== 'canceled') {
7348
- _this9.$message.error(err.message);
7359
+ _this10.$message.error(err.message);
7349
7360
  }
7350
7361
  });
7351
7362
  },
@@ -7370,7 +7381,7 @@ var mainvue_type_script_lang_js_components, _watch;
7370
7381
  return mainvue_type_script_lang_js_extends({}, obj, item);
7371
7382
  },
7372
7383
  handleClick: function handleClick(res) {
7373
- var _this10 = this;
7384
+ var _this11 = this;
7374
7385
 
7375
7386
  var row = res.row,
7376
7387
  handle = res.handle;
@@ -7406,7 +7417,7 @@ var mainvue_type_script_lang_js_components, _watch;
7406
7417
  cancelButtonText: '取消',
7407
7418
  type: 'warning'
7408
7419
  }).then(function () {
7409
- _this10.handleAjax(handle, rows);
7420
+ _this11.handleAjax(handle, rows);
7410
7421
  }).catch(function () {});
7411
7422
  } else {
7412
7423
  this.handleAjax(handle, rows);
@@ -7494,7 +7505,7 @@ var mainvue_type_script_lang_js_components, _watch;
7494
7505
  var type = ['selection', 'index', 'expand'];
7495
7506
  thead = thead.map(function (item) {
7496
7507
  return item.filter(function (ele) {
7497
- return !type.includes(ele.type) && ele.label !== text && !_this10.exportExcludeLabel.includes(ele.label);
7508
+ return !type.includes(ele.type) && ele.label !== text && !_this11.exportExcludeLabel.includes(ele.label);
7498
7509
  });
7499
7510
  });
7500
7511
  util["a" /* default */].exportXls({
@@ -7594,40 +7605,40 @@ var mainvue_type_script_lang_js_components, _watch;
7594
7605
  }
7595
7606
  },
7596
7607
  resetHeight: function resetHeight(warn) {
7597
- var _this11 = this;
7608
+ var _this12 = this;
7598
7609
 
7599
7610
  this.$nextTick(function () {
7600
- if (_this11.full && !_this11.height && !_this11.maxHeight) {
7601
- var height = _this11.$el.parentNode.offsetHeight;
7611
+ if (_this12.full && !_this12.height && !_this12.maxHeight) {
7612
+ var height = _this12.$el.parentNode.offsetHeight;
7602
7613
  if (height) {
7603
- height = parseInt(util["a" /* default */].getStyle(_this11.$el.parentNode, 'height', '%'), 10);
7604
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this11.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this11.$el.parentNode, 'padding-bottom'), 10);
7605
- for (var i = 0; i < _this11.$el.parentNode.childNodes.length; i++) {
7606
- var ele = _this11.$el.parentNode.childNodes[i];
7607
- if (ele !== _this11.$el && ele.offsetHeight !== undefined) {
7614
+ height = parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'height', '%'), 10);
7615
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-bottom'), 10);
7616
+ for (var i = 0; i < _this12.$el.parentNode.childNodes.length; i++) {
7617
+ var ele = _this12.$el.parentNode.childNodes[i];
7618
+ if (ele !== _this12.$el && ele.offsetHeight !== undefined) {
7608
7619
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7609
7620
  }
7610
7621
  }
7611
- height -= _this11.showToolbar ? 45 : 0;
7612
- height -= _this11.page === false ? 0 : 46;
7613
- height -= _this11.title ? _this11.$refs.title.offsetHeight : 0;
7614
- height -= parseInt(util["a" /* default */].getStyle(_this11.$refs.esTableContent, 'padding-top'), 10);
7615
- height -= parseInt(util["a" /* default */].getStyle(_this11.$refs.esTableContent, 'padding-bottom'), 10);
7616
- var emptyText = _this11.$refs.esTableContent.querySelector('.el-table__empty-text');
7622
+ height -= _this12.showToolbar ? 45 : 0;
7623
+ height -= _this12.page === false ? 0 : 46;
7624
+ height -= _this12.title ? _this12.$refs.title.offsetHeight : 0;
7625
+ height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-top'), 10);
7626
+ height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-bottom'), 10);
7627
+ var emptyText = _this12.$refs.esTableContent.querySelector('.el-table__empty-text');
7617
7628
  var eht = 0;
7618
7629
  if (emptyText) {
7619
7630
  eht = emptyText.offsetHeight;
7620
- var thead = _this11.$refs.esTableContent.querySelector('.el-table__header');
7631
+ var thead = _this12.$refs.esTableContent.querySelector('.el-table__header');
7621
7632
  thead && (eht += thead.offsetHeight);
7622
7633
  }
7623
7634
  if (height > 1 && height - eht > 1) {
7624
- _this11.tableHeight = height;
7635
+ _this12.tableHeight = height;
7625
7636
  } else {
7626
- console.warn(_this11.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7637
+ console.warn(_this12.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7627
7638
  }
7628
7639
  } else if (!warn) {
7629
7640
  setTimeout(function () {
7630
- _this11.resetHeight(true);
7641
+ _this12.resetHeight(true);
7631
7642
  }, 1000);
7632
7643
  }
7633
7644
  }
@@ -7660,31 +7671,31 @@ var mainvue_type_script_lang_js_components, _watch;
7660
7671
  this.$emit('update-drag-sort', data, event);
7661
7672
  },
7662
7673
  mergeThead: function mergeThead(res) {
7663
- var _this12 = this;
7674
+ var _this13 = this;
7664
7675
 
7665
7676
  this.theadData = res;
7666
7677
  this.icon = true;
7667
7678
  setTimeout(function () {
7668
- _this12.show = true;
7679
+ _this13.show = true;
7669
7680
  }, 100);
7670
7681
  },
7671
7682
  setOptions: function setOptions(val, sysCode) {
7672
7683
  this.$set(this.options, sysCode, val);
7673
7684
  },
7674
7685
  bindEventBus: function bindEventBus() {
7675
- var _this13 = this;
7686
+ var _this14 = this;
7676
7687
 
7677
7688
  this.sysCodes.forEach(function (item) {
7678
7689
  bus["a" /* default */].$on(item, function (val) {
7679
- _this13.setOptions(val, item);
7690
+ _this14.setOptions(val, item);
7680
7691
  });
7681
7692
  });
7682
7693
  },
7683
7694
  unbindEventBus: function unbindEventBus() {
7684
- var _this14 = this;
7695
+ var _this15 = this;
7685
7696
 
7686
7697
  this.sysCodes.forEach(function (item) {
7687
- bus["a" /* default */].$off(item, _this14.setOptions);
7698
+ bus["a" /* default */].$off(item, _this15.setOptions);
7688
7699
  });
7689
7700
  },
7690
7701
  reset: function reset() {
@@ -7704,7 +7715,7 @@ var mainvue_type_script_lang_js_components, _watch;
7704
7715
 
7705
7716
  var main_component = Object(componentNormalizer["a" /* default */])(
7706
7717
  src_mainvue_type_script_lang_js_,
7707
- mainvue_type_template_id_f80417f8_render,
7718
+ mainvue_type_template_id_58029cb3_render,
7708
7719
  staticRenderFns,
7709
7720
  false,
7710
7721
  null,
@@ -2313,7 +2313,7 @@ var isObject = function isObject(obj) {
2313
2313
  * @param {Object} [_obj] - 对象
2314
2314
  **/
2315
2315
  var isObjectEqual = function isObjectEqual(obj, _obj) {
2316
- if (obj === undefined && _obj || obj && _obj === undefined) {
2316
+ if (obj === undefined && _obj || obj && _obj === undefined || obj === undefined && _obj === undefined) {
2317
2317
  return false;
2318
2318
  }
2319
2319
  var aProps = Object.getOwnPropertyNames(obj);
package/lib/dialog.js CHANGED
@@ -2312,7 +2312,7 @@ var isObject = function isObject(obj) {
2312
2312
  * @param {Object} [_obj] - 对象
2313
2313
  **/
2314
2314
  var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
- if (obj === undefined && _obj || obj && _obj === undefined) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined || obj === undefined && _obj === undefined) {
2316
2316
  return false;
2317
2317
  }
2318
2318
  var aProps = Object.getOwnPropertyNames(obj);