hrsass-components 2.2.3 → 2.2.4

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "2.2.3";
68
+ var version = "2.2.4";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -8231,14 +8231,15 @@ var index = {
8231
8231
  sortList: sort,
8232
8232
  conditionList: [].concat(_toConsumableArray(fitlerOtehrConditionListDeepClone), _toConsumableArray(fitlerConditionListDeepClone))
8233
8233
  }).then(function (res) {
8234
+ var _this5$selectedRowsLi, _this5$selectedUpdate, _this5$dataSource;
8234
8235
  //外部处理数据
8235
8236
  if (lodash.isFunction(normalizeData)) {
8236
8237
  res = normalizeData(res);
8237
8238
  }
8238
8239
  //处理props传入的已选中
8239
- if (_this5.selectedRowsList.length > 0 && _this5.selectedUpdateRows.length == 0 && _this5.dataSource.length == 0) {
8240
+ if ((_this5 === null || _this5 === void 0 || (_this5$selectedRowsLi = _this5.selectedRowsList) === null || _this5$selectedRowsLi === void 0 ? void 0 : _this5$selectedRowsLi.length) > 0 && (_this5 === null || _this5 === void 0 || (_this5$selectedUpdate = _this5.selectedUpdateRows) === null || _this5$selectedUpdate === void 0 ? void 0 : _this5$selectedUpdate.length) == 0 && (_this5 === null || _this5 === void 0 || (_this5$dataSource = _this5.dataSource) === null || _this5$dataSource === void 0 ? void 0 : _this5$dataSource.length) == 0) {
8240
8241
  _this5.selectedUpdateRows = res.dataList.filter(function (item) {
8241
- return _this5.selectedRowsList.includes(item.t_0_hid) || _this5.selectedRowsList.map(function (id) {
8242
+ return _this5.selectedRowsList.includes(item.t_0_hid) || (_this5.selectedRowsList || []).map(function (id) {
8242
8243
  return id + '';
8243
8244
  }).includes(item.id + '');
8244
8245
  });