hoeditor-web 3.1.132 → 3.1.133

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.
@@ -60853,29 +60853,34 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
60853
60853
  var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
60854
60854
  //如果单元格存在下拉项,取值为下拉项的value,而非节点的text
60855
60855
  if (cell.cellProperty.downListProperty) {
60856
- var listItems = JSON.parse(cell.cellProperty.downListProperty.listItems);
60857
- var itemObject = listItems.find(function (item) {
60858
- return item.text === strValue;
60859
- });
60860
- if (itemObject) {
60861
- strValue = itemObject.value;
60862
- if (strValue === '') {
60863
- strValue = itemObject.text;
60856
+ var tempListItems = cell.cellProperty.downListProperty.listItems;
60857
+ if (tempListItems) {
60858
+ var listItems = JSON.parse(tempListItems);
60859
+ var itemObject = listItems.find(function (item) {
60860
+ return item.text === strValue;
60861
+ });
60862
+ if (itemObject) {
60863
+ strValue = itemObject.value;
60864
+ if (strValue === '') {
60865
+ strValue = itemObject.text;
60866
+ }
60864
60867
  }
60865
60868
  }
60866
60869
  //针对单元格childNodes节点下嵌套的下拉选择处理
60867
60870
  } else if (cell.childNodes && cell.childNodes.length > 1) {
60868
60871
  var textInputFieldNode = cell.childNodes[1];
60869
60872
  if (textInputFieldNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_40__/* .TextInputFieldNode */ .re) {
60870
- var tempListItems = textInputFieldNode.downListProperty.listItems;
60871
- var midListItems = JSON.parse(tempListItems);
60872
- var tempItemObject = midListItems.find(function (item) {
60873
- return item.text === strValue;
60874
- });
60875
- if (tempItemObject) {
60876
- strValue = tempItemObject.value;
60877
- if (strValue === '') {
60878
- strValue = tempItemObject.text;
60873
+ var _tempListItems = textInputFieldNode.downListProperty.listItems;
60874
+ if (_tempListItems) {
60875
+ var midListItems = JSON.parse(_tempListItems);
60876
+ var tempItemObject = midListItems.find(function (item) {
60877
+ return item.text === strValue;
60878
+ });
60879
+ if (tempItemObject) {
60880
+ strValue = tempItemObject.value;
60881
+ if (strValue === '') {
60882
+ strValue = tempItemObject.text;
60883
+ }
60879
60884
  }
60880
60885
  }
60881
60886
  }
@@ -210286,7 +210291,7 @@ var TextNode = __webpack_require__(27198);
210286
210291
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210287
210292
  var ParagraphNode = __webpack_require__(67945);
210288
210293
  ;// CONCATENATED MODULE: ./src/components/version.ts
210289
- /* harmony default export */ var version = ('3.1.132');
210294
+ /* harmony default export */ var version = ('3.1.133');
210290
210295
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210291
210296
  var PoperTipText = __webpack_require__(84531);
210292
210297
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts