hoeditor-web 2.0.107 → 2.0.109

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.
@@ -6301,7 +6301,7 @@ var component = (0,componentNormalizer/* default */.Z)(
6301
6301
 
6302
6302
  /***/ }),
6303
6303
 
6304
- /***/ 42498:
6304
+ /***/ 64696:
6305
6305
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6306
6306
 
6307
6307
  "use strict";
@@ -6313,7 +6313,7 @@ __webpack_require__.d(__webpack_exports__, {
6313
6313
  "default": function() { return /* binding */ PoperSelect; }
6314
6314
  });
6315
6315
 
6316
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=06bcec15&scoped=true&
6316
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6e3640a6&scoped=true&
6317
6317
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
6318
6318
  var item = ref.item;
6319
6319
  return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini","type":"primary"},on:{"click":_vm.sureSelect}},[_vm._v("确定")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini","type":"primary"},on:{"click":_vm.sureDate}},[_vm._v("确定")])],1)],1):_vm._e()])}
@@ -9014,6 +9014,7 @@ var popper = __webpack_require__(14519);
9014
9014
  console.time("下拉选中时间");
9015
9015
  var text = '';
9016
9016
  var keyValue = '';
9017
+ var value = '';
9017
9018
  var currentPoperNode = this.getCurrentPoperNode();
9018
9019
  var selected = this.isAllowMultiSelect && this.isCanSearch ? this.selectedList : this.poperSelectList.filter(function (v) {
9019
9020
  return v.selected;
@@ -9036,6 +9037,7 @@ var popper = __webpack_require__(14519);
9036
9037
  }
9037
9038
 
9038
9039
  keyValue += v.id + ',';
9040
+ String(v.value) && (value += v.value + ',');
9039
9041
  } else {
9040
9042
  if (currentPoperNode.customProperty && currentPoperNode.customProperty.hasThirdData && v.value) {
9041
9043
  text += v.value;
@@ -9044,6 +9046,7 @@ var popper = __webpack_require__(14519);
9044
9046
  }
9045
9047
 
9046
9048
  keyValue += v.id;
9049
+ String(v.value) && (value += v.value);
9047
9050
  }
9048
9051
  });
9049
9052
  }
@@ -9066,13 +9069,15 @@ var popper = __webpack_require__(14519);
9066
9069
  dataMetaIdentifier: node.dataMetaIdentifier,
9067
9070
  identifierFormat: node.identifierFormat,
9068
9071
  readType: node.readType,
9069
- mutexSelect: node.mutexSelect
9072
+ mutexSelect: node.mutexSelect,
9073
+ value: value
9070
9074
  };
9071
- hoEditorFactory.vueController.updateDownList(JSON.stringify(params), this.poperSelectList);
9075
+ hoEditorFactory.vueController.updateDownList(params, this.poperSelectList);
9072
9076
  } else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
9073
9077
  text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
9074
9078
  currentPoperNode.text = text;
9075
9079
  currentPoperNode.keyValue = keyValue;
9080
+ currentPoperNode.value = value;
9076
9081
  Object.keys(this.textParam).map(function (v) {
9077
9082
  _this8.textParam[v] = currentPoperNode[v];
9078
9083
  });
@@ -9130,10 +9135,10 @@ var popper = __webpack_require__(14519);
9130
9135
  });
9131
9136
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
9132
9137
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
9133
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=06bcec15&lang=scss&scoped=true&
9138
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6e3640a6&lang=scss&scoped=true&
9134
9139
  // extracted by mini-css-extract-plugin
9135
9140
 
9136
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=06bcec15&lang=scss&scoped=true&
9141
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6e3640a6&lang=scss&scoped=true&
9137
9142
 
9138
9143
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
9139
9144
  var componentNormalizer = __webpack_require__(1001);
@@ -9152,7 +9157,7 @@ var component = (0,componentNormalizer/* default */.Z)(
9152
9157
  staticRenderFns,
9153
9158
  false,
9154
9159
  null,
9155
- "06bcec15",
9160
+ "6e3640a6",
9156
9161
  null
9157
9162
 
9158
9163
  )
@@ -10349,7 +10354,7 @@ var component = (0,componentNormalizer/* default */.Z)(
10349
10354
 
10350
10355
  /***/ }),
10351
10356
 
10352
- /***/ 54891:
10357
+ /***/ 89365:
10353
10358
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10354
10359
 
10355
10360
  "use strict";
@@ -10361,7 +10366,7 @@ __webpack_require__.d(__webpack_exports__, {
10361
10366
  "default": function() { return /* binding */ SelectDialog; }
10362
10367
  });
10363
10368
 
10364
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=cdeb6102&scoped=true&
10369
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=7e0bbb0b&scoped=true&
10365
10370
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("下拉框")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.innerIdentifier),callback:function ($$v) {_vm.innerIdentifier=$$v},expression:"innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.dataMetaIdentifier),callback:function ($$v) {_vm.dataMetaIdentifier=$$v},expression:"dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.identifierFormat),callback:function ($$v) {_vm.identifierFormat=$$v},expression:"identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"size":"mini","placeholder":"提示文本"},model:{value:(_vm.tipText),callback:function ($$v) {_vm.tipText=$$v},expression:"tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"20%"}},[_c('el-checkbox',{model:{value:(_vm.isReadOnly),callback:function ($$v) {_vm.isReadOnly=$$v},expression:"isReadOnly"}},[_vm._v("内容只读")])],1),_c('div',{staticStyle:{"width":"20%"}},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许删除")])],1),_c('div',{staticStyle:{"width":"20%"}},[_c('el-checkbox',{on:{"change":_vm.allowMultiSelectChange},model:{value:(_vm.allowMultiSelect),callback:function ($$v) {_vm.allowMultiSelect=$$v},expression:"allowMultiSelect"}},[_vm._v("允许多选")])],1),_c('div',{staticStyle:{"width":"20%"}},[_c('el-checkbox',{model:{value:(_vm.readType),callback:function ($$v) {_vm.readType=$$v},expression:"readType"}},[_vm._v("自动回填")])],1),_c('div',{staticStyle:{"width":"20%"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.allowMultiSelect},model:{value:(_vm.mutexSelect),callback:function ($$v) {_vm.mutexSelect=$$v},expression:"mutexSelect"}},[_vm._v("选项互斥")])],1)]),_c('li',{staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.downListContent,"height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"mini"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"mini"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{attrs:{"label":"类型","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"mini"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.type),callback:function ($$v) {_vm.$set(scope.row, "type", $$v)},expression:"scope.row.type"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.default)?_c('span',{staticClass:"tags"},[_vm._v("默认")]):_vm._e(),(scope.row.default)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.cancelDefault(scope.row.id)}}},[_vm._v("取消")]):_vm._e(),(!scope.row.default && scope.row.text)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.setDefault(scope.row.id)}}},[_vm._v("设为默认")]):_vm._e(),(scope.$index !== _vm.downListContent.length - 1 && _vm.focusIndexs === scope.$index)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")]):_vm._e()]}}])})],1)],1)])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
10366
10371
  var staticRenderFns = []
10367
10372
 
@@ -10392,8 +10397,6 @@ var web_dom_collections_for_each = __webpack_require__(54747);
10392
10397
  var es_array_splice = __webpack_require__(40561);
10393
10398
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
10394
10399
  var es_array_join = __webpack_require__(69600);
10395
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
10396
- var es_json_stringify = __webpack_require__(38862);
10397
10400
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
10398
10401
  var DownListNode = __webpack_require__(98390);
10399
10402
  // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
@@ -10412,7 +10415,6 @@ var HOEditorFactorys = __webpack_require__(41005);
10412
10415
 
10413
10416
 
10414
10417
 
10415
-
10416
10418
  //
10417
10419
  //
10418
10420
  //
@@ -10743,11 +10745,13 @@ var HOEditorFactorys = __webpack_require__(41005);
10743
10745
  }
10744
10746
  });
10745
10747
  var textArr = [];
10746
- var value = '';
10748
+ var keyValue = [];
10749
+ var value = [];
10747
10750
  this.downListContent.forEach(function (v, index) {
10748
10751
  if (v.default) {
10749
10752
  textArr.push(v.text);
10750
- value += v.id + ',';
10753
+ keyValue.push(v.id);
10754
+ String(v.value) && value.push(v.value);
10751
10755
  }
10752
10756
  });
10753
10757
  this.text = textArr.join(',');
@@ -10764,7 +10768,8 @@ var HOEditorFactorys = __webpack_require__(41005);
10764
10768
  id: this.id,
10765
10769
  name: this.name,
10766
10770
  text: this.text,
10767
- keyValue: value,
10771
+ keyValue: keyValue.join(","),
10772
+ value: value.join(","),
10768
10773
  title: '下拉选择框',
10769
10774
  tipText: this.tipText,
10770
10775
  isAllowDelete: this.isAllowDelete,
@@ -10780,9 +10785,9 @@ var HOEditorFactorys = __webpack_require__(41005);
10780
10785
  params.readType ? params.readType = 1 : params.readType = 0;
10781
10786
 
10782
10787
  if (this.controlStatus === 'add') {
10783
- this.vueController.insertDownList('add', JSON.stringify(params), list);
10788
+ this.vueController.insertDownList('add', params, list);
10784
10789
  } else if (this.controlStatus === 'update') {
10785
- this.vueController.updateDownList(JSON.stringify(params), list);
10790
+ this.vueController.updateDownList(params, list);
10786
10791
  }
10787
10792
 
10788
10793
  this.$nextTick(function () {
@@ -10800,10 +10805,10 @@ var HOEditorFactorys = __webpack_require__(41005);
10800
10805
  });
10801
10806
  ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=js&
10802
10807
  /* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_js_ = (SelectDialogvue_type_script_lang_js_);
10803
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=cdeb6102&lang=scss&scoped=true&
10808
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=7e0bbb0b&lang=scss&scoped=true&
10804
10809
  // extracted by mini-css-extract-plugin
10805
10810
 
10806
- ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=cdeb6102&lang=scss&scoped=true&
10811
+ ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=7e0bbb0b&lang=scss&scoped=true&
10807
10812
 
10808
10813
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
10809
10814
  var componentNormalizer = __webpack_require__(1001);
@@ -10822,7 +10827,7 @@ var component = (0,componentNormalizer/* default */.Z)(
10822
10827
  staticRenderFns,
10823
10828
  false,
10824
10829
  null,
10825
- "cdeb6102",
10830
+ "7e0bbb0b",
10826
10831
  null
10827
10832
 
10828
10833
  )
@@ -10831,7 +10836,7 @@ var component = (0,componentNormalizer/* default */.Z)(
10831
10836
 
10832
10837
  /***/ }),
10833
10838
 
10834
- /***/ 37542:
10839
+ /***/ 28663:
10835
10840
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10836
10841
 
10837
10842
  "use strict";
@@ -10843,7 +10848,7 @@ __webpack_require__.d(__webpack_exports__, {
10843
10848
  "default": function() { return /* binding */ Sign; }
10844
10849
  });
10845
10850
 
10846
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=49377b0d&
10851
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=f7d15210&
10847
10852
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":3},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义CA签名(默认带出职称)")])],1)]),(_vm.signType == 2)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("连接符")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.connectChar),callback:function ($$v) {_vm.connectChar=$$v},expression:"connectChar"}})],1):_vm._e(),(_vm.signType >= 3)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType >= 3)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
10848
10853
  var staticRenderFns = []
10849
10854
 
@@ -11010,6 +11015,7 @@ var SignNode = __webpack_require__(34450);
11010
11015
  default: ''
11011
11016
  }
11012
11017
  },
11018
+ inject: ['getCustomProperty'],
11013
11019
  data: function data() {
11014
11020
  return {
11015
11021
  height: 20,
@@ -29298,6 +29304,13 @@ var DocController = /*#__PURE__*/function () {
29298
29304
  var startPath = domRange.normalize().endPath;
29299
29305
  var pNode = hoEditorFactory.docTree.getParentNode(startPath);
29300
29306
  hoEditorFactory.undoService.begin();
29307
+
29308
+ if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N) {
29309
+ var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
29310
+ hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, "update"));
29311
+ startPath = prePath;
29312
+ }
29313
+
29301
29314
  var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntTableFormula */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
29302
29315
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
29303
29316
  hoEditorFactory.undoService.commit();
@@ -31553,6 +31566,10 @@ var DocTree = /*#__PURE__*/function () {
31553
31566
  }, {
31554
31567
  key: "styleCompare",
31555
31568
  value: function styleCompare(newStyle) {
31569
+ if (newStyle instanceof _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_26__/* .TextStyle */ .pn && newStyle.font == "") {
31570
+ newStyle.font = "宋体";
31571
+ }
31572
+
31556
31573
  var newStyleIndex = -1;
31557
31574
 
31558
31575
  if (newStyle instanceof _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_26__/* .TextStyle */ .pn) {
@@ -34054,7 +34071,7 @@ var PageProperty = /*#__PURE__*/function () {
34054
34071
  this._fontSize = value;
34055
34072
  this.setDefaultStyle("text");
34056
34073
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
34057
- var defaultLineHeight = Math.round(hoEditorFactory.docTree.defaultCombineStyle.getFontHeightByFontSize(this.fontSize));
34074
+ var defaultLineHeight = Math.round(hoEditorFactory.getFontHeightByFontSize(this.fontSize));
34058
34075
  hoEditorFactory.defaultLineHeight = defaultLineHeight;
34059
34076
  }
34060
34077
  }
@@ -35874,23 +35891,38 @@ var Paragraph = /*#__PURE__*/function () {
35874
35891
  /* harmony export */ });
35875
35892
  /* unused harmony export StyleType */
35876
35893
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
35877
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(22342);
35878
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74916);
35879
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);
35880
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15306);
35881
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);
35882
- /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68757);
35883
- /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3__);
35884
- /* harmony import */ var core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50915);
35885
- /* harmony import */ var core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_4__);
35886
- /* harmony import */ var core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58734);
35887
- /* harmony import */ var core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_5__);
35888
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19601);
35889
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_6__);
35890
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9653);
35891
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__);
35892
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41005);
35893
- /* harmony import */ var _UserHistory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70245);
35894
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(22342);
35895
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66992);
35896
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__);
35897
+ /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51532);
35898
+ /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_2__);
35899
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);
35900
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
35901
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78783);
35902
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
35903
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33948);
35904
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
35905
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74916);
35906
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);
35907
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15306);
35908
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
35909
+ /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68757);
35910
+ /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_8__);
35911
+ /* harmony import */ var core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50915);
35912
+ /* harmony import */ var core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_9__);
35913
+ /* harmony import */ var core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58734);
35914
+ /* harmony import */ var core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_italics_js__WEBPACK_IMPORTED_MODULE_10__);
35915
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(19601);
35916
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11__);
35917
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
35918
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
35919
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(41005);
35920
+ /* harmony import */ var _UserHistory__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70245);
35921
+
35922
+
35923
+
35924
+
35925
+
35894
35926
 
35895
35927
 
35896
35928
 
@@ -35923,9 +35955,11 @@ var CombineStyle = /*#__PURE__*/function () {
35923
35955
 
35924
35956
  this._hoEditorFactoryID = hoEditorFactoryID;
35925
35957
  CombineStyle.makeDefaultStyle(hoEditorFactoryID, this);
35958
+ this._englishWidth = new Map();
35959
+ this._chineseWidth = 0;
35926
35960
  }
35927
35961
 
35928
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(CombineStyle, [{
35962
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(CombineStyle, [{
35929
35963
  key: "size",
35930
35964
  get: function get() {
35931
35965
  return this._size;
@@ -36045,6 +36079,32 @@ var CombineStyle = /*#__PURE__*/function () {
36045
36079
  this._commentID = value;
36046
36080
  }
36047
36081
  }
36082
+ }, {
36083
+ key: "chineseWidth",
36084
+ get: function get() {
36085
+ return this._chineseWidth;
36086
+ },
36087
+ set: function set(val) {
36088
+ if (val != this._chineseWidth) {
36089
+ this._chineseWidth = val;
36090
+ }
36091
+ }
36092
+ }, {
36093
+ key: "getEnglishWidth",
36094
+ value: function getEnglishWidth(val) {
36095
+ var ret = this._englishWidth.get(val);
36096
+
36097
+ if (ret) {
36098
+ return ret;
36099
+ }
36100
+
36101
+ return 0;
36102
+ }
36103
+ }, {
36104
+ key: "setEnglishWidth",
36105
+ value: function setEnglishWidth(key, val) {
36106
+ this._englishWidth.set(key, val);
36107
+ }
36048
36108
  }, {
36049
36109
  key: "getStyleKey",
36050
36110
  value:
@@ -36052,7 +36112,7 @@ var CombineStyle = /*#__PURE__*/function () {
36052
36112
  * 组装DrawSimpleText()中的style参数
36053
36113
  */
36054
36114
  function getStyleKey() {
36055
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36115
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36056
36116
  var size = hoEditorFactory.unitConvert.fontPt2Pix(this._size); // let size=this._size;
36057
36117
 
36058
36118
  if (size) {
@@ -36095,7 +36155,7 @@ var CombineStyle = /*#__PURE__*/function () {
36095
36155
  key: "getFontHeightByFontSize",
36096
36156
  value: function getFontHeightByFontSize(fontSize) {
36097
36157
  var fontHeight = 0;
36098
- var hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36158
+ var hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36099
36159
 
36100
36160
  if (fontSize === 5) {
36101
36161
  //如果字号是6像素 八号字体
@@ -36104,77 +36164,77 @@ var CombineStyle = /*#__PURE__*/function () {
36104
36164
 
36105
36165
  if (fontSize === 5.5) {
36106
36166
  //七号
36107
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(1.94, false);
36167
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(1.94, false);
36108
36168
  }
36109
36169
 
36110
36170
  if (fontSize === 6.5) {
36111
36171
  //小六
36112
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.29, false);
36172
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.29, false);
36113
36173
  }
36114
36174
 
36115
36175
  if (fontSize === 7.5) {
36116
36176
  //六号
36117
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.65, false);
36177
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.65, false);
36118
36178
  }
36119
36179
 
36120
36180
  if (fontSize === 9) {
36121
36181
  //小五
36122
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.18, false);
36182
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.18, false);
36123
36183
  }
36124
36184
 
36125
36185
  if (fontSize === 10.5 || fontSize === 10) {
36126
36186
  //五号
36127
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.70, false);
36187
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.70, false);
36128
36188
  }
36129
36189
 
36130
36190
  if (fontSize === 12) {
36131
36191
  //小四
36132
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.23, false);
36192
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.23, false);
36133
36193
  }
36134
36194
 
36135
36195
  if (fontSize === 14) {
36136
36196
  //四号
36137
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.94, false);
36197
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.94, false);
36138
36198
  }
36139
36199
 
36140
36200
  if (fontSize === 15) {
36141
36201
  //小三
36142
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.29, false);
36202
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.29, false);
36143
36203
  }
36144
36204
 
36145
36205
  if (fontSize === 16) {
36146
36206
  //三号
36147
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.64, false);
36207
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.64, false);
36148
36208
  }
36149
36209
 
36150
36210
  if (fontSize === 18) {
36151
36211
  //小二
36152
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(6.35, false);
36212
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(6.35, false);
36153
36213
  }
36154
36214
 
36155
36215
  if (fontSize === 22) {
36156
36216
  //二号
36157
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(7.76, false);
36217
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(7.76, false);
36158
36218
  }
36159
36219
 
36160
36220
  if (fontSize === 24) {
36161
36221
  //小一
36162
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(8.47, false);
36222
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(8.47, false);
36163
36223
  }
36164
36224
 
36165
36225
  if (fontSize === 26) {
36166
36226
  //一号
36167
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(9.17, false);
36227
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(9.17, false);
36168
36228
  }
36169
36229
 
36170
36230
  if (fontSize === 36) {
36171
36231
  //小初
36172
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(12.7, false);
36232
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(12.7, false);
36173
36233
  }
36174
36234
 
36175
36235
  if (fontSize === 42) {
36176
36236
  //初号
36177
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(14.82, false);
36237
+ fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(14.82, false);
36178
36238
  }
36179
36239
 
36180
36240
  return fontHeight;
@@ -36188,7 +36248,7 @@ var CombineStyle = /*#__PURE__*/function () {
36188
36248
  }, {
36189
36249
  key: "makeDefaultStyle",
36190
36250
  value: function makeDefaultStyle(hoEditorFactoryID, ret) {
36191
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
36251
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
36192
36252
  ret._belongTo = StyleType.stAll;
36193
36253
  ret._font = hoEditorFactory.pageProperty.fontFormat;
36194
36254
  ret._size = hoEditorFactory.pageProperty.fontSize;
@@ -36232,7 +36292,7 @@ var TextStyle = /*#__PURE__*/function () {
36232
36292
  } // astyle: TextStyle
36233
36293
 
36234
36294
 
36235
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(TextStyle, [{
36295
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(TextStyle, [{
36236
36296
  key: "clone",
36237
36297
  value: function clone() {
36238
36298
  var obj3 = new TextStyle(this._hoEditorFactoryID); // = JSON.parse(JSON.stringify(astyle)) as TextStyle;
@@ -36254,7 +36314,7 @@ var TextStyle = /*#__PURE__*/function () {
36254
36314
  }, {
36255
36315
  key: "combineStyle",
36256
36316
  get: function get() {
36257
- return TextStyle.combineStyle(this._hoEditorFactoryID, this, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle);
36317
+ return TextStyle.combineStyle(this._hoEditorFactoryID, this, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle);
36258
36318
  }
36259
36319
  }, {
36260
36320
  key: "copyProperty",
@@ -36398,7 +36458,7 @@ var TextStyle = /*#__PURE__*/function () {
36398
36458
  */
36399
36459
  function changeStyle(operateType, ext) {
36400
36460
  var newTextStyle = new TextStyle(this._hoEditorFactoryID);
36401
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36461
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
36402
36462
  newTextStyle.copyProperty(this, newTextStyle); //先将新样式初始化为原来的样式
36403
36463
 
36404
36464
  if (operateType === "fontSizeEnlarge") {
@@ -36550,7 +36610,7 @@ var TextStyle = /*#__PURE__*/function () {
36550
36610
  }
36551
36611
  }
36552
36612
 
36553
- var newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
36613
+ var newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
36554
36614
  return newStyleIndex;
36555
36615
  }
36556
36616
  /**
@@ -36588,7 +36648,7 @@ var TextStyle = /*#__PURE__*/function () {
36588
36648
 
36589
36649
  if (operateType === "reviewDelete") {
36590
36650
  newTextStyle.strikeout = true;
36591
- var newHistory = new _UserHistory__WEBPACK_IMPORTED_MODULE_9__/* .UserHistory */ .R(this._hoEditorFactoryID, _UserHistory__WEBPACK_IMPORTED_MODULE_9__/* .HistoryEditType.hetDelete */ .N.hetDelete);
36651
+ var newHistory = new _UserHistory__WEBPACK_IMPORTED_MODULE_14__/* .UserHistory */ .R(this._hoEditorFactoryID, _UserHistory__WEBPACK_IMPORTED_MODULE_14__/* .HistoryEditType.hetDelete */ .N.hetDelete);
36592
36652
  var historyIndex = newHistory.userCompare();
36593
36653
  newTextStyle.deleterIndex = historyIndex;
36594
36654
  }
@@ -36597,7 +36657,7 @@ var TextStyle = /*#__PURE__*/function () {
36597
36657
 
36598
36658
  if (operateType === "formatPainter") {
36599
36659
  newStyleIndex = Number(changeValue);
36600
- } else newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
36660
+ } else newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
36601
36661
 
36602
36662
  return newStyleIndex;
36603
36663
  }
@@ -36610,7 +36670,7 @@ var TextStyle = /*#__PURE__*/function () {
36610
36670
  }, {
36611
36671
  key: "getBiggerfontSize",
36612
36672
  value: function getBiggerfontSize(size) {
36613
- var biggerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
36673
+ var biggerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
36614
36674
 
36615
36675
  if (size === 5) {
36616
36676
  biggerSize = 5.5;
@@ -36683,7 +36743,7 @@ var TextStyle = /*#__PURE__*/function () {
36683
36743
  }, {
36684
36744
  key: "getSmallerfontSize",
36685
36745
  value: function getSmallerfontSize(size) {
36686
- var smallerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
36746
+ var smallerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
36687
36747
 
36688
36748
  if (size === 42) {
36689
36749
  smallerSize = 36;
@@ -39933,7 +39993,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
39933
39993
  /* harmony export */ });
39934
39994
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58913);
39935
39995
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35671);
39936
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(22342);
39996
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(22342);
39937
39997
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99640);
39938
39998
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28214);
39939
39999
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
@@ -39965,6 +40025,8 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
39965
40025
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(50369);
39966
40026
  /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8395);
39967
40027
  /* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(33913);
40028
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(34565);
40029
+
39968
40030
 
39969
40031
 
39970
40032
 
@@ -40066,7 +40128,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40066
40128
  return _this;
40067
40129
  }
40068
40130
 
40069
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z)(DateTimeNode, [{
40131
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .Z)(DateTimeNode, [{
40070
40132
  key: "setValuesObject",
40071
40133
  value: function setValuesObject(valuesObject) {
40072
40134
  var valuesObj = eval("(" + valuesObject + ")");
@@ -40163,7 +40225,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40163
40225
  cbStyle.color = "#838586";
40164
40226
  }
40165
40227
 
40166
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
40228
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
40167
40229
  var dNode = new _editor_draw_drawNode_DrawDateTime__WEBPACK_IMPORTED_MODULE_14__/* .DrawDateTime */ .L(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
40168
40230
 
40169
40231
  this._drawNodes.push(dNode);
@@ -40241,13 +40303,42 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40241
40303
  }, {
40242
40304
  key: "node2Json",
40243
40305
  value: function node2Json(range, isCopy, type, isClearValue) {
40244
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40306
+ if (isCopy) {
40307
+ return {
40308
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
40309
+ type: "ctDateTime",
40310
+ id: this.id,
40311
+ dataId: this.dataId,
40312
+ innerIdentifier: this.innerIdentifier,
40313
+ dataMetaIdentifier: this.dataMetaIdentifier,
40314
+ identifierFormat: this.identifierFormat,
40315
+ isSynchro: this.isSynchro,
40316
+ controlStyle: this.controlStyle.replace("hh", "HH"),
40317
+ name: this.name,
40318
+ text: isClearValue || this.text === this.name ? "" : this.text,
40319
+ labelText: this.labelText,
40320
+ title: this.title,
40321
+ styleIndex: this.styleIndex,
40322
+ tipText: this.tipText,
40323
+ isAllowDelete: this.isAllowDelete,
40324
+ isReadOnly: this.isReadOnly,
40325
+ readType: this.readType,
40326
+ customProperty: this.customProperty,
40327
+ remark: this.remark
40328
+ };
40329
+ }
40330
+
40331
+ var parentid = "";
40332
+
40333
+ if (this.parentNode && this.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
40334
+ parentid = this.parentNode.id;
40335
+ }
40336
+
40245
40337
  var retObj = {
40246
40338
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
40247
40339
  type: "ctDateTime",
40248
- //id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DT") : this.id,
40249
40340
  id: this.id,
40250
- //dataId: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DateTime") : this.dataId,
40341
+ parentId: parentid,
40251
40342
  dataId: this.dataId,
40252
40343
  innerIdentifier: this.innerIdentifier,
40253
40344
  dataMetaIdentifier: this.dataMetaIdentifier,
@@ -40266,11 +40357,6 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40266
40357
  customProperty: this.customProperty,
40267
40358
  remark: this.remark
40268
40359
  };
40269
-
40270
- if (isCopy) {
40271
- return retObj;
40272
- }
40273
-
40274
40360
  var paga = {
40275
40361
  "DateTimeNode": retObj
40276
40362
  };
@@ -40330,7 +40416,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40330
40416
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
40331
40417
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
40332
40418
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35671);
40333
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(22342);
40419
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(22342);
40334
40420
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
40335
40421
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
40336
40422
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
@@ -40349,16 +40435,24 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
40349
40435
  /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11__);
40350
40436
  /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23123);
40351
40437
  /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);
40352
- /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38862);
40353
- /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_13__);
40354
- /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(63756);
40355
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24093);
40356
- /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1470);
40357
- /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34534);
40358
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(41005);
40359
- /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(23375);
40360
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(50369);
40361
- /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8395);
40438
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26699);
40439
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
40440
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(32023);
40441
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__);
40442
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(69600);
40443
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_15__);
40444
+ /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(63756);
40445
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24093);
40446
+ /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(1470);
40447
+ /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(34534);
40448
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(41005);
40449
+ /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(23375);
40450
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(50369);
40451
+ /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(8395);
40452
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(34565);
40453
+
40454
+
40455
+
40362
40456
 
40363
40457
 
40364
40458
 
@@ -40410,7 +40504,7 @@ var BandDataSource = /*#__PURE__*/function () {
40410
40504
  this.execState = ""; //执行状态
40411
40505
  }
40412
40506
 
40413
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(BandDataSource, [{
40507
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(BandDataSource, [{
40414
40508
  key: "DataSourceEnabled",
40415
40509
  get: function get() {
40416
40510
  return this.dataSourceEnabled;
@@ -40499,7 +40593,7 @@ var DownListNodeInstance = /*#__PURE__*/function () {
40499
40593
  this.allowMultiSelect = false;
40500
40594
  }
40501
40595
 
40502
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNodeInstance, [{
40596
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(DownListNodeInstance, [{
40503
40597
  key: "Id",
40504
40598
  get: function get() {
40505
40599
  return this.id;
@@ -40626,6 +40720,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40626
40720
 
40627
40721
  _this._bandDataSource = new BandDataSource();
40628
40722
  _this._charSpace = 0;
40723
+ _this._value = ""; //选中项的value值
40724
+
40629
40725
  _this._styleIndex = styleIndex;
40630
40726
  _this.remark = "";
40631
40727
  _this._labelText = "请选择";
@@ -40635,7 +40731,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40635
40731
  // this._id = valuesObj["id"];
40636
40732
  // }
40637
40733
 
40638
- _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
40734
+ _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_23__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
40639
40735
  // this._name = valuesObj["name"];
40640
40736
  // }
40641
40737
  // if (valuesObj["title"] !== undefined) {
@@ -40708,7 +40804,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40708
40804
  _this.setValuesObject(valuesObject);
40709
40805
 
40710
40806
  if (!_this.dataId) {
40711
- _this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
40807
+ _this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
40712
40808
  }
40713
40809
 
40714
40810
  if (_this._text === "") {
@@ -40729,10 +40825,11 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40729
40825
  return _this;
40730
40826
  }
40731
40827
 
40732
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNode, [{
40828
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(DownListNode, [{
40733
40829
  key: "setValuesObject",
40734
40830
  value: function setValuesObject(valuesObject) {
40735
- var valuesObj = eval("(" + valuesObject + ")");
40831
+ // const valuesObj = eval("(" + valuesObject + ")");
40832
+ var valuesObj = valuesObject;
40736
40833
 
40737
40834
  var assignvalue = function assignvalue(target, source) {
40738
40835
  Object.keys(source).forEach(function (value) {
@@ -40798,6 +40895,16 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40798
40895
  this._keyValue = val;
40799
40896
  }
40800
40897
  }
40898
+ }, {
40899
+ key: "value",
40900
+ get: function get() {
40901
+ return this._value;
40902
+ },
40903
+ set: function set(val) {
40904
+ if (this._value !== val) {
40905
+ this._value = val;
40906
+ }
40907
+ }
40801
40908
  }, {
40802
40909
  key: "allowMultiSelect",
40803
40910
  get: function get() {
@@ -40866,12 +40973,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40866
40973
  }, {
40867
40974
  key: "setDownListText",
40868
40975
  value: function setDownListText(text) {
40869
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40976
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40870
40977
  var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
40871
40978
  var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
40872
- var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__/* .NodeChangeEvent */ .G(this.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_19__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
40979
+ var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__/* .NodeChangeEvent */ .G(this.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_21__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
40873
40980
  changeEvent.oldEndPath = ePath;
40874
- changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
40981
+ changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_18__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
40875
40982
  this._text = text;
40876
40983
 
40877
40984
  if (this._text === "") {
@@ -40893,7 +41000,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40893
41000
  value: function node2DrawNodeRange(startIndex, endIndex) {
40894
41001
  // const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
40895
41002
  // .combineStyle;
40896
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
41003
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40897
41004
  var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
40898
41005
  var cbStyle;
40899
41006
 
@@ -40909,8 +41016,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40909
41016
  cbStyle.color = "#838586";
40910
41017
  }
40911
41018
 
40912
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
40913
- var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
41019
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
41020
+ var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_16__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
40914
41021
 
40915
41022
  this._drawNodes.push(dNode);
40916
41023
  }
@@ -40938,10 +41045,10 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40938
41045
  return dline;
40939
41046
  }
40940
41047
 
40941
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
41048
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40942
41049
  var isDisPlay = true;
40943
41050
 
40944
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__/* .PaintState.psPrint */ .Dh.psPrint) {
41051
+ if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psPrint */ .Dh.psPrint) {
40945
41052
  isDisPlay = false;
40946
41053
  }
40947
41054
 
@@ -41034,13 +41141,48 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41034
41141
  var downLists = {
41035
41142
  item: this.downListContent
41036
41143
  };
41037
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
41144
+
41145
+ if (isCopy) {
41146
+ return {
41147
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_22__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_22__/* .NodeType.ntControl */ .Jq.ntControl],
41148
+ type: "ctDownList",
41149
+ id: this.id,
41150
+ dataId: this.dataId,
41151
+ innerIdentifier: this.innerIdentifier,
41152
+ dataMetaIdentifier: this.dataMetaIdentifier,
41153
+ identifierFormat: this.identifierFormat,
41154
+ isSynchro: this.isSynchro,
41155
+ name: this.name,
41156
+ text: this.keyValue == "" ? "" : this.text,
41157
+ keyValue: this.keyValue,
41158
+ value: this.value,
41159
+ title: this.title,
41160
+ styleIndex: this.styleIndex,
41161
+ tipText: this.tipText,
41162
+ labelText: this.labelText,
41163
+ isAllowDelete: this.isAllowDelete,
41164
+ isReadOnly: this.isReadOnly,
41165
+ mutexSelect: this.mutexSelect,
41166
+ allowMultiSelect: this.allowMultiSelect,
41167
+ readType: this.readType,
41168
+ downLists: downLists,
41169
+ dataSource: this.bandDataSource,
41170
+ remark: this.remark,
41171
+ customProperty: this.customProperty
41172
+ };
41173
+ }
41174
+
41175
+ var parentid = "";
41176
+
41177
+ if (this.parentNode && this.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re) {
41178
+ parentid = this.parentNode.id;
41179
+ }
41180
+
41038
41181
  var retObj = {
41039
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
41182
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_22__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_22__/* .NodeType.ntControl */ .Jq.ntControl],
41040
41183
  type: "ctDownList",
41041
- //id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DL") : this.id,
41042
41184
  id: this.id,
41043
- //dataId: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DownList") : this.dataId,
41185
+ parentId: parentid,
41044
41186
  dataId: this.dataId,
41045
41187
  innerIdentifier: this.innerIdentifier,
41046
41188
  dataMetaIdentifier: this.dataMetaIdentifier,
@@ -41049,6 +41191,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41049
41191
  name: this.name,
41050
41192
  text: this.keyValue == "" ? "" : this.text,
41051
41193
  keyValue: this.keyValue,
41194
+ value: this.value,
41052
41195
  title: this.title,
41053
41196
  styleIndex: this.styleIndex,
41054
41197
  tipText: this.tipText,
@@ -41063,11 +41206,6 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41063
41206
  remark: this.remark,
41064
41207
  customProperty: this.customProperty
41065
41208
  };
41066
-
41067
- if (isCopy) {
41068
- return retObj;
41069
- }
41070
-
41071
41209
  var paga = {
41072
41210
  "DownListNode": retObj
41073
41211
  };
@@ -41084,7 +41222,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41084
41222
  this.transType(json);
41085
41223
 
41086
41224
  if (isPaste) {
41087
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
41225
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
41088
41226
 
41089
41227
  if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
41090
41228
  //json.id = hoEditorFactory.gernerateCode.generateID("DL");
@@ -41096,21 +41234,28 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41096
41234
  json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
41097
41235
  json.mutexSelect = !json.mutexSelect ? false : json.mutexSelect;
41098
41236
  json.allowMultiSelect = !json.allowMultiSelect ? false : json.allowMultiSelect;
41099
- json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
41237
+ json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_23__/* .ControlType */ .C[json.type]);
41100
41238
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
41101
41239
  json.readType = json.readType ? Number(json.readType) : -1;
41102
41240
  var downListContent = [];
41241
+ var value = [];
41242
+ var text = json.text.split(",");
41103
41243
 
41104
41244
  for (var i = 0; i < json.downLists.item.length; i++) {
41105
41245
  downListContent.push(json.downLists.item[i]);
41246
+
41247
+ if (text.includes(json.downLists.item[i].text)) {
41248
+ value.push(json.downLists.item[i].value);
41249
+ }
41106
41250
  }
41107
41251
 
41108
- return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl, JSON.stringify(json), downListContent, Number(json.styleIndex));
41252
+ json.value = value.join(",");
41253
+ return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_22__/* .NodeType.ntControl */ .Jq.ntControl, json, downListContent, Number(json.styleIndex));
41109
41254
  }
41110
41255
  }]);
41111
41256
 
41112
41257
  return DownListNode;
41113
- }(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlNode */ .w);
41258
+ }(_ControlNode__WEBPACK_IMPORTED_MODULE_23__/* .ControlNode */ .w);
41114
41259
 
41115
41260
  /***/ }),
41116
41261
 
@@ -41267,7 +41412,7 @@ var FetalHeartMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
41267
41412
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
41268
41413
  // }
41269
41414
 
41270
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
41415
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
41271
41416
  var bIsInsert = startIndex < 0;
41272
41417
  var arrValues = [this._value1, this._value2, this._value3, this._value4, this._value5, this._value6];
41273
41418
  var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_6__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, "fetalHeart", arrValues, cbStyle, dHeight * 3, 80);
@@ -41492,7 +41637,7 @@ var GestationNode = /*#__PURE__*/function (_ControlNode) {
41492
41637
 
41493
41638
  this.dStyleKey = cbStyle.getStyleKey();
41494
41639
  this.dColor = cbStyle.color;
41495
- this.dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
41640
+ this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
41496
41641
  this.dCombineStyle = cbStyle;
41497
41642
  } //根据可放置的宽度,将普通组件转换成绘制组件
41498
41643
 
@@ -42097,7 +42242,7 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
42097
42242
  this.styleIndex = 0;
42098
42243
  }
42099
42244
 
42100
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
42245
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
42101
42246
  var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_6__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
42102
42247
 
42103
42248
  this._drawNodes.push(dNode);
@@ -42379,7 +42524,7 @@ var LightLocationMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
42379
42524
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
42380
42525
  // }
42381
42526
 
42382
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
42527
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
42383
42528
  var bIsInsert = startIndex < 0;
42384
42529
  var arrValues = [this._value1, this._value2, this._value3, this._value4, this._value5, this._value6, this._value7, this._value8, this._value9];
42385
42530
  var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_6__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, "lightLocation", arrValues, cbStyle, dHeight * 3, 50);
@@ -42718,7 +42863,7 @@ var MarkNode = /*#__PURE__*/function (_BaseNode) {
42718
42863
 
42719
42864
  this._dStyleKey = cbStyle.getStyleKey();
42720
42865
  this._dColor = "#838586";
42721
- this._dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
42866
+ this._dHeight = hoEditorFactorys.getFontHeightByFontSize(cbStyle.size);
42722
42867
  this._dCombineStyle = cbStyle;
42723
42868
  }
42724
42869
  }, {
@@ -43275,7 +43420,7 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
43275
43420
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
43276
43421
  // }
43277
43422
 
43278
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
43423
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
43279
43424
  var lineHight = dHeight;
43280
43425
 
43281
43426
  if (this._expressStyle === ExpressStyle.style1 || this._expressStyle === ExpressStyle.style3) {
@@ -44615,7 +44760,7 @@ var PermanentTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
44615
44760
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
44616
44761
  // }
44617
44762
 
44618
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
44763
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
44619
44764
  var bIsInsert = startIndex < 0;
44620
44765
  var arrValues = [this._topLeftSelected.join(","), this._topRightSelected.join(","), this._bottomLeftSelected.join(","), this._bottomRightSelected.join(",")];
44621
44766
  var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_11__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, "permanentTeeth", arrValues, cbStyle, dHeight * 2, 100);
@@ -44841,7 +44986,7 @@ var PrimaryTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
44841
44986
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
44842
44987
  // }
44843
44988
 
44844
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
44989
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
44845
44990
  var dWidth = 200;
44846
44991
  var bIsInsert = startIndex < 0;
44847
44992
  var arrValues = [this._topLeftSelected.join(","), this._topRightSelected.join(","), this._bottomLeftSelected.join(","), this._bottomRightSelected.join(",")];
@@ -45084,7 +45229,7 @@ var PupilMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
45084
45229
  // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
45085
45230
  // }
45086
45231
 
45087
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
45232
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
45088
45233
  var bIsInsert = startIndex < 0;
45089
45234
  var arrValues = [this._value1, this._value2, this._value3, this._value4, this._value5, this._value6, this._value7];
45090
45235
  var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_6__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, "pupilMap", arrValues, cbStyle, dHeight * 3, 50);
@@ -45623,7 +45768,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
45623
45768
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
45624
45769
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
45625
45770
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35671);
45626
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(22342);
45771
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(22342);
45627
45772
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
45628
45773
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
45629
45774
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
@@ -45643,6 +45788,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
45643
45788
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(41005);
45644
45789
  /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(50369);
45645
45790
  /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8395);
45791
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34565);
45792
+
45646
45793
 
45647
45794
 
45648
45795
 
@@ -45699,7 +45846,7 @@ var BandDataSource = /*#__PURE__*/function () {
45699
45846
  this.execState = ""; //执行状态
45700
45847
  }
45701
45848
 
45702
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(BandDataSource, [{
45849
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z)(BandDataSource, [{
45703
45850
  key: "DataSourceEnabled",
45704
45851
  get: function get() {
45705
45852
  return this.dataSourceEnabled;
@@ -45797,7 +45944,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
45797
45944
  RadioAndCheckBoxInstance.makeDefaultValue(this);
45798
45945
  }
45799
45946
 
45800
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(RadioAndCheckBoxInstance, [{
45947
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z)(RadioAndCheckBoxInstance, [{
45801
45948
  key: "Id",
45802
45949
  get: function get() {
45803
45950
  return this.id;
@@ -46153,7 +46300,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
46153
46300
  return _this;
46154
46301
  }
46155
46302
 
46156
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(RadioAndCheckBoxNode, [{
46303
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z)(RadioAndCheckBoxNode, [{
46157
46304
  key: "setValuesObject",
46158
46305
  value: function setValuesObject(valuesObject) {
46159
46306
  var valuesObj = eval("(" + valuesObject + ")");
@@ -46423,7 +46570,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
46423
46570
  this.styleIndex = 0;
46424
46571
  }
46425
46572
 
46426
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
46573
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
46427
46574
  var dNode = new _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_10__/* .DrawRadioAndCheckBox */ .e(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle, this.name, this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
46428
46575
 
46429
46576
  this._drawNodes.push(dNode);
@@ -46509,17 +46656,51 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
46509
46656
  }, {
46510
46657
  key: "node2Json",
46511
46658
  value: function node2Json(range, isCopy, type) {
46512
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
46513
46659
  var name = "";
46514
46660
  if (this.controlStyle === "RadioBox") name = "RB";
46515
46661
  if (this.controlStyle === "CheckBox") name = "CB";
46662
+
46663
+ if (isCopy) {
46664
+ return {
46665
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntControl */ .Jq.ntControl],
46666
+ type: "ctRadioAndCheckBox",
46667
+ controlStyle: this.controlStyle,
46668
+ id: this.id,
46669
+ dataId: this.dataId,
46670
+ name: this.name,
46671
+ text: this.text,
46672
+ title: this.title,
46673
+ styleIndex: this.styleIndex,
46674
+ checkCascadeObject: this.checkCascadeObject,
46675
+ unCheckCascadeObject: this.unCheckCascadeObject,
46676
+ tipText: this.tipText,
46677
+ isAllowDelete: this.isAllowDelete,
46678
+ groupName: this.groupName,
46679
+ isSelected: this.isSelected,
46680
+ boxAlign: this.boxAlign,
46681
+ numericValue: this.numericValue,
46682
+ additionalData: this.additionalData,
46683
+ isTransToText: this.isTransToText,
46684
+ isEditText: this.isEditText,
46685
+ appendText: this.appendText,
46686
+ readType: this.readType,
46687
+ bandDataSource: this.bandDataSource,
46688
+ remark: this.remark
46689
+ };
46690
+ }
46691
+
46692
+ var parentid = "";
46693
+
46694
+ if (this.parentNode && this.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__/* .TextInputFieldNode */ .re) {
46695
+ parentid = this.parentNode.id;
46696
+ }
46697
+
46516
46698
  var retObj = {
46517
46699
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntControl */ .Jq.ntControl],
46518
46700
  type: "ctRadioAndCheckBox",
46519
46701
  controlStyle: this.controlStyle,
46520
- //id: type === "copy" ? hoEditorFactory.gernerateCode.generateID(name) : this.id,
46521
46702
  id: this.id,
46522
- //dataId: type === "copy" ? hoEditorFactory.gernerateCode.generateID(this.controlStyle) : this.dataId,
46703
+ parentId: parentid,
46523
46704
  dataId: this.dataId,
46524
46705
  name: this.name,
46525
46706
  text: this.text,
@@ -46541,11 +46722,6 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
46541
46722
  bandDataSource: this.bandDataSource,
46542
46723
  remark: this.remark
46543
46724
  };
46544
-
46545
- if (isCopy) {
46546
- return retObj;
46547
- }
46548
-
46549
46725
  var paga = {
46550
46726
  "RadioAndCheckBoxNode": retObj
46551
46727
  };
@@ -47502,7 +47678,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
47502
47678
 
47503
47679
  this.dStyleKey = cbStyle.getStyleKey();
47504
47680
  this.dColor = cbStyle.color;
47505
- this.dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
47681
+ this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
47506
47682
  this.dCombineStyle = cbStyle;
47507
47683
  }
47508
47684
  }, {
@@ -47899,7 +48075,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
47899
48075
 
47900
48076
  this.dStyleKey = cbStyle.getStyleKey();
47901
48077
  this.dColor = cbStyle.color;
47902
- this.dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
48078
+ this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
47903
48079
  this.dCombineStyle = cbStyle;
47904
48080
  }
47905
48081
  }, {
@@ -51774,7 +51950,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
51774
51950
  for (var s = 0; s < cellNodes.length; s++) {
51775
51951
  var _node = cellNodes[s];
51776
51952
 
51777
- if (_node && JSON.stringify(_node) !== "{}") {
51953
+ if (_node && _node.nodeType) {
51778
51954
  var _rowNo = parseInt(_node.rowNo);
51779
51955
 
51780
51956
  var colNo = parseInt(_node.colNo);
@@ -51883,7 +52059,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
51883
52059
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99640);
51884
52060
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28214);
51885
52061
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35671);
51886
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(22342);
52062
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(22342);
51887
52063
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68309);
51888
52064
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__);
51889
52065
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41539);
@@ -51896,53 +52072,56 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
51896
52072
  /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_14__);
51897
52073
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38862);
51898
52074
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__);
51899
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26699);
51900
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16__);
51901
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(32023);
51902
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17__);
51903
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40561);
51904
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__);
51905
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(19601);
51906
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_19__);
51907
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(92222);
51908
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20__);
51909
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(9653);
51910
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__);
51911
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(21703);
51912
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_22__);
51913
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(74916);
51914
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_23__);
51915
- /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(23123);
51916
- /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_24__);
51917
- /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(94407);
51918
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(24093);
51919
- /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(1470);
51920
- /* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(94290);
51921
- /* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(88702);
51922
- /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(34534);
51923
- /* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(12019);
51924
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(41005);
51925
- /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(23375);
51926
- /* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(74163);
51927
- /* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(66828);
51928
- /* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2242);
51929
- /* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(8);
51930
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(50369);
51931
- /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(8395);
51932
- /* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(36395);
51933
- /* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(50161);
51934
- /* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(84844);
51935
- /* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(15868);
51936
- /* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(8623);
51937
- /* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(97724);
51938
- /* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(14208);
51939
- /* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(85028);
51940
- /* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(91715);
51941
- /* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(43010);
51942
- /* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(34450);
51943
- /* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(39869);
51944
- /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(95883);
51945
- /* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(91538);
52075
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(74916);
52076
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__);
52077
+ /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23123);
52078
+ /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_17__);
52079
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(26699);
52080
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__);
52081
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(32023);
52082
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__);
52083
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(69600);
52084
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_20__);
52085
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(40561);
52086
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__);
52087
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(19601);
52088
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_22__);
52089
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(92222);
52090
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_23__);
52091
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(9653);
52092
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__);
52093
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(21703);
52094
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_25__);
52095
+ /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(94407);
52096
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(24093);
52097
+ /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(1470);
52098
+ /* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(94290);
52099
+ /* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(88702);
52100
+ /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(34534);
52101
+ /* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(12019);
52102
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(41005);
52103
+ /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(23375);
52104
+ /* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(74163);
52105
+ /* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(66828);
52106
+ /* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(2242);
52107
+ /* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(8);
52108
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(50369);
52109
+ /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(8395);
52110
+ /* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(36395);
52111
+ /* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(50161);
52112
+ /* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(84844);
52113
+ /* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(15868);
52114
+ /* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(8623);
52115
+ /* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(97724);
52116
+ /* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(14208);
52117
+ /* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(85028);
52118
+ /* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(91715);
52119
+ /* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(43010);
52120
+ /* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(34450);
52121
+ /* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(39869);
52122
+ /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(95883);
52123
+ /* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(91538);
52124
+
51946
52125
 
51947
52126
 
51948
52127
 
@@ -51973,7 +52152,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
51973
52152
  /*
51974
52153
  * @Author: your name
51975
52154
  * @Date: 2020-11-03 15:17:54
51976
- * @LastEditTime: 2022-09-29 15:51:21
52155
+ * @LastEditTime: 2022-10-14 09:51:03
51977
52156
  * @LastEditors: liyanan 2441631434@qq.com
51978
52157
  * @Description: In User Settings Edit
51979
52158
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -52063,7 +52242,7 @@ var DownListProperty = /*#__PURE__*/function () {
52063
52242
  DownListProperty.setDefaultImportStyle(this);
52064
52243
  }
52065
52244
 
52066
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_54__/* ["default"] */ .Z)(DownListProperty, [{
52245
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_55__/* ["default"] */ .Z)(DownListProperty, [{
52067
52246
  key: "allowMultiSelected",
52068
52247
  get: function get() {
52069
52248
  return this._allowMultiSelected;
@@ -52134,11 +52313,11 @@ var DownListProperty = /*#__PURE__*/function () {
52134
52313
  value: function setDefaultImportStyle(ret) {
52135
52314
  //ret._inputFieldType = InputFieldType.text;
52136
52315
  ret._allowMultiSelected = false;
52137
- ret._splitCharacter = ""; //ret._dynamicLoadList = false;
52316
+ ret._splitCharacter = ''; //ret._dynamicLoadList = false;
52138
52317
  //ret._listContent = "";
52139
52318
 
52140
- ret._source = "";
52141
- ret._listItems = "";
52319
+ ret._source = '';
52320
+ ret._listItems = '';
52142
52321
  ret._mutexSelect = false; //ret._specialFormat = SpecialFormat.none;
52143
52322
 
52144
52323
  return ret;
@@ -52158,7 +52337,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
52158
52337
  DataVerifyFormat.setDefaultDataVerifyFormat(this);
52159
52338
  }
52160
52339
 
52161
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_54__/* ["default"] */ .Z)(DataVerifyFormat, [{
52340
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_55__/* ["default"] */ .Z)(DataVerifyFormat, [{
52162
52341
  key: "mustInputValue",
52163
52342
  get: function get() {
52164
52343
  return this._mustInputValue;
@@ -52266,7 +52445,7 @@ var BandDataSource = /*#__PURE__*/function () {
52266
52445
  BandDataSource.setDefaultBandDataSource(this);
52267
52446
  }
52268
52447
 
52269
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_54__/* ["default"] */ .Z)(BandDataSource, [{
52448
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_55__/* ["default"] */ .Z)(BandDataSource, [{
52270
52449
  key: "dataSourceEnabled",
52271
52450
  get: function get() {
52272
52451
  return this._dataSourceEnabled;
@@ -52340,9 +52519,9 @@ var BandDataSource = /*#__PURE__*/function () {
52340
52519
  key: "setDefaultBandDataSource",
52341
52520
  value: function setDefaultBandDataSource(ret) {
52342
52521
  ret._dataSourceEnabled = true;
52343
- ret._dataSource = "";
52344
- ret._format = "";
52345
- ret._visitPath = "";
52522
+ ret._dataSource = '';
52523
+ ret._format = '';
52524
+ ret._visitPath = '';
52346
52525
  ret._isReadOnly = false;
52347
52526
  ret._autoUpdate = false;
52348
52527
  ret._executeStatus = ExecuteStatus.AlwaysExec;
@@ -52365,12 +52544,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52365
52544
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
52366
52545
  _this._isSynchro = false; //是否同步
52367
52546
 
52368
- _this._labelText = "请输入"; //格式化后的显示
52547
+ _this._labelText = '请输入'; //格式化后的显示
52369
52548
 
52370
- _this._text = "";
52371
- _this._name = ""; //名称
52549
+ _this._text = '';
52550
+ _this._name = ''; //名称
52372
52551
 
52373
- _this._tipText = ""; //提示文本
52552
+ _this._tipText = ''; //提示文本
52374
52553
 
52375
52554
  _this._readOnlyStatus = ReadOnlyStatus.false; //内容只读状态
52376
52555
 
@@ -52382,12 +52561,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52382
52561
 
52383
52562
  _this._enableGlobalColor = true; //启用全局文本颜色
52384
52563
 
52385
- _this._defaultValue = ""; //默认值
52564
+ _this._defaultValue = ''; //默认值
52386
52565
 
52387
52566
  _this._alignWithBlocked = false;
52388
52567
  _this._readType = -1; //保存类型
52389
52568
 
52390
- _this._keyValue = ""; //选中项的key值
52569
+ _this._keyValue = ''; //选中项的key值
52570
+
52571
+ _this._value = ''; //选中项的value值
52391
52572
 
52392
52573
  _this._childNodes2 = []; //this._importStyle = new ImportStyle();
52393
52574
 
@@ -52454,22 +52635,22 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52454
52635
 
52455
52636
  _this.setValuesObject(valuesObject);
52456
52637
 
52457
- if (_this.labelText === "") {
52458
- if (_this.text === "" && _this.name !== "") {
52638
+ if (_this.labelText === '') {
52639
+ if (_this.text === '' && _this.name !== '') {
52459
52640
  _this.labelText = _this.name;
52460
52641
  } else {
52461
52642
  if (_this.inputFieldType === InputFieldType.dropDownList) {
52462
- _this.labelText = "请选择";
52643
+ _this.labelText = '请选择';
52463
52644
  }
52464
52645
 
52465
52646
  if (_this.inputFieldType === InputFieldType.text) {
52466
- _this.labelText = "请输入";
52647
+ _this.labelText = '请输入';
52467
52648
  }
52468
52649
  }
52469
52650
  }
52470
52651
 
52471
52652
  if (!_this._dataId) {
52472
- _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Field");
52653
+ _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
52473
52654
  } // const serialID = valuesObj["serialID"];
52474
52655
  // let name = "";
52475
52656
  // let readOnlyStatus = ReadOnlyStatus.false;
@@ -52540,7 +52721,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52540
52721
  */
52541
52722
 
52542
52723
 
52543
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_54__/* ["default"] */ .Z)(TextInputFieldNode, [{
52724
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_55__/* ["default"] */ .Z)(TextInputFieldNode, [{
52544
52725
  key: "alignWithBlocked",
52545
52726
  get: function get() {
52546
52727
  return this._alignWithBlocked;
@@ -52566,12 +52747,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52566
52747
 
52567
52748
  var assignvalue = function assignvalue(target, source) {
52568
52749
  Object.keys(source).forEach(function (value) {
52569
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == "object") {
52570
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
52750
+ if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
52751
+ if (Object.prototype.toString.call(source[value]) === '[object Object]') {
52571
52752
  assignvalue(target[value], source[value]);
52572
52753
  } else {
52573
- if (source[value] !== "" && source[value] !== null) {
52574
- assignvalue(target[value], eval("(" + source[value] + ")"));
52754
+ if (source[value] !== '' && source[value] !== null) {
52755
+ assignvalue(target[value], eval('(' + source[value] + ')'));
52575
52756
  }
52576
52757
  }
52577
52758
  } else {
@@ -52585,8 +52766,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52585
52766
  }, {
52586
52767
  key: "mouseEvent",
52587
52768
  value: function mouseEvent(event) {
52588
- if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_28__/* .DmouseEventType.detOver */ .p.detOver) this.activity(true);
52589
- if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_28__/* .DmouseEventType.detOut */ .p.detOut) this.activity(false);
52769
+ if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_29__/* .DmouseEventType.detOver */ .p.detOver) this.activity(true);
52770
+ if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_29__/* .DmouseEventType.detOut */ .p.detOut) this.activity(false);
52590
52771
  } // public activity(active: boolean) {
52591
52772
  // if (active) {
52592
52773
  // if (this.StartMarkNode.alpha != 1) {
@@ -52685,7 +52866,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52685
52866
  if (this._labelText !== value) {
52686
52867
  this._labelText = value;
52687
52868
 
52688
- if (this.text === "") {
52869
+ if (this.text === '') {
52689
52870
  this.node2DrawNodeRange(0, 0);
52690
52871
  }
52691
52872
  }
@@ -52856,10 +53037,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52856
53037
  this._keyValue = val;
52857
53038
  }
52858
53039
  }
53040
+ }, {
53041
+ key: "value",
53042
+ get: function get() {
53043
+ return this._value;
53044
+ },
53045
+ set: function set(val) {
53046
+ if (this._value !== val) {
53047
+ this._value = val;
53048
+ }
53049
+ }
52859
53050
  }, {
52860
53051
  key: "generateInnerCode",
52861
53052
  value: function generateInnerCode() {
52862
- return "";
53053
+ return '';
52863
53054
  }
52864
53055
  /**
52865
53056
  * 获取提示文本的节点
@@ -52886,15 +53077,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52886
53077
  value: function update(mode) {
52887
53078
  var _this2 = this;
52888
53079
 
52889
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53080
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
52890
53081
  /**
52891
53082
  * 内容为空,显示一个点位符
52892
53083
  */
52893
53084
 
52894
53085
  var ph = 0;
52895
53086
  var needPaint = false;
52896
- var startPath = "";
52897
- var endPath = "";
53087
+ var startPath = '';
53088
+ var endPath = '';
52898
53089
  var first = this.StartMarkNode;
52899
53090
  var last = this.EndMarkNode;
52900
53091
  /**
@@ -52912,9 +53103,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52912
53103
  case 0:
52913
53104
  //由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
52914
53105
  //熊跃龙 2021-03-19
52915
- changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_30__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_33__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
53106
+ changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_31__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
52916
53107
  changeEvent.oldEndPath = path2 || endPath;
52917
- changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
53108
+ changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_28__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
52918
53109
  _context.next = 5;
52919
53110
  return hoEditorFactory.docTree.change(changeEvent);
52920
53111
 
@@ -52938,11 +53129,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52938
53129
 
52939
53130
  if (mode == 0) {
52940
53131
  var prev = first.previousLeaf();
52941
- if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_29__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53132
+ if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_30__/* .Exception.NodeNotFound */ .P.NodeNotFound();
52942
53133
  refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
52943
53134
  setTimeout(function () {
52944
53135
  prev = first.previousLeaf();
52945
- if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_29__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53136
+ if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_30__/* .Exception.NodeNotFound */ .P.NodeNotFound();
52946
53137
  refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
52947
53138
  }, 200);
52948
53139
  return; //执行完后自行退出
@@ -52985,7 +53176,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52985
53176
 
52986
53177
  if (this.StartMarkNode.drawNodes.length > 0 && this.EndMarkNode.drawNodes.length > 0) {
52987
53178
  //不空,还原
52988
- var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__/* .DrawLine.inSameLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
53179
+ var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_26__/* .DrawLine.inSameLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
52989
53180
 
52990
53181
  if (fixWidthPix == 0 || !bInSameLine || usedWidth >= maxEmptWidth) {
52991
53182
  if (this.isEmpty()) lastWidth = 0;else lastWidth = 0;
@@ -52999,7 +53190,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52999
53190
  var _prev = last.previousLeaf();
53000
53191
 
53001
53192
  if (!_prev) {
53002
- throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_29__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53193
+ throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_30__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53003
53194
  }
53004
53195
 
53005
53196
  startPath = hoEditorFactory.docTree.getNodeLastPath(_prev);
@@ -53027,13 +53218,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53027
53218
  value: function getFieldText(isClearValue) {
53028
53219
  var _this3 = this;
53029
53220
 
53030
- var text = "";
53221
+ var text = '';
53031
53222
 
53032
53223
  var loopChildNodes = function loopChildNodes(node) {
53033
53224
  var nodes = node.childNodes.slice(1);
53034
53225
  nodes.forEach(function (childNode) {
53035
- if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R) {
53036
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
53226
+ if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
53227
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
53037
53228
  var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
53038
53229
 
53039
53230
  if (!textStyle) {
@@ -53043,34 +53234,34 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53043
53234
  if (textStyle.deleterIndex === -1 || textStyle.deleterIndex === undefined) {
53044
53235
  //text += hoEditorFactory.unitConvert.replaceAll(childNode.text, '\n', ' ');
53045
53236
  if (textStyle.script === 1) {
53046
- text += "<下标>" + childNode.text + "</下标>";
53237
+ text += '<下标>' + childNode.text + '</下标>';
53047
53238
  } else if (textStyle.script === 2) {
53048
- text += "<上标>" + childNode.text + "</上标>";
53239
+ text += '<上标>' + childNode.text + '</上标>';
53049
53240
  } else {
53050
53241
  text += childNode.text;
53051
53242
  }
53052
53243
  }
53053
- } else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_39__/* .ControlNode */ .w) {
53054
- if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_40__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
53055
- text += "";
53244
+ } else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_40__/* .ControlNode */ .w) {
53245
+ if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
53246
+ text += '';
53056
53247
  } else {
53057
53248
  text += childNode.text;
53058
53249
  }
53059
- } else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_37__/* .BaseCombineNode */ .V) {
53250
+ } else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_38__/* .BaseCombineNode */ .V) {
53060
53251
  loopChildNodes(childNode);
53061
- } else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__/* .ParagraphNode */ .C) {
53252
+ } else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C) {
53062
53253
  text += '\n';
53063
- } else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_44__/* .MedicalExpressionNode */ .H) {
53064
- var expressJson = JSON.parse("{}");
53065
- text += "<MedicalExpress>";
53254
+ } else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
53255
+ var expressJson = JSON.parse('{}');
53256
+ text += '<MedicalExpress>';
53066
53257
 
53067
- if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_45__/* .MenstrualHistoryNode */ .n) {
53258
+ if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n) {
53068
53259
  expressJson.expressStyle = childNode.expressStyle;
53069
53260
  expressJson.menseDays = childNode.menseDays;
53070
53261
  expressJson.cycleDays = childNode.cycleDays;
53071
53262
  expressJson.menarcheAge = childNode.menarcheAge;
53072
53263
  expressJson.menoPauseAge = childNode.menoPauseAge;
53073
- } else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_42__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_41__/* .FetalHeartMapNode */ .t) {
53264
+ } else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__/* .FetalHeartMapNode */ .t) {
53074
53265
  expressJson.value1 = childNode.value1;
53075
53266
  expressJson.value2 = childNode.value2;
53076
53267
  expressJson.value3 = childNode.value3;
@@ -53078,24 +53269,24 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53078
53269
  expressJson.value5 = childNode.value5;
53079
53270
  expressJson.value6 = childNode.value6;
53080
53271
 
53081
- if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PupilMapNode */ .v) {
53082
- expressJson.expressStyle = "PupilMapNode";
53272
+ if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v) {
53273
+ expressJson.expressStyle = 'PupilMapNode';
53083
53274
  expressJson.value7 = childNode.value7;
53084
- } else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_42__/* .LightLocationMapNode */ .D) {
53085
- expressJson.expressStyle = "LightLocationMapNode";
53275
+ } else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D) {
53276
+ expressJson.expressStyle = 'LightLocationMapNode';
53086
53277
  expressJson.value7 = childNode.value7;
53087
53278
  expressJson.value8 = childNode.value8;
53088
53279
  expressJson.value9 = childNode.value9;
53089
53280
  } else {
53090
- expressJson.expressStyle = "FetalHeartMapNode";
53281
+ expressJson.expressStyle = 'FetalHeartMapNode';
53091
53282
  }
53092
- } else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PrimaryTeethMapNode */ .x) {
53093
- if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PermanentTeethMapNode */ .f) {
53094
- expressJson.expressStyle = "PermanentTeethMapNode";
53283
+ } else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53284
+ if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f) {
53285
+ expressJson.expressStyle = 'PermanentTeethMapNode';
53095
53286
  }
53096
53287
 
53097
- if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PrimaryTeethMapNode */ .x) {
53098
- expressJson.expressStyle = "PrimaryTeethMapNode";
53288
+ if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53289
+ expressJson.expressStyle = 'PrimaryTeethMapNode';
53099
53290
  }
53100
53291
 
53101
53292
  expressJson.topLeftSelected = childNode.topLeftSelected;
@@ -53105,7 +53296,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53105
53296
  }
53106
53297
 
53107
53298
  text += JSON.stringify(expressJson);
53108
- text += "</MedicalExpress>";
53299
+ text += '</MedicalExpress>';
53109
53300
  }
53110
53301
  });
53111
53302
  };
@@ -53120,20 +53311,27 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53120
53311
  listItems = Array(JSON.parse(downListProperty.listItems));
53121
53312
  }
53122
53313
 
53314
+ var value = [];
53315
+ var keyValue = this.keyValue.split(',');
53316
+
53123
53317
  for (var i = 0; i < listItems.length; i++) {
53124
53318
  var listItem = listItems[i];
53125
53319
 
53126
- if (listItem.id === this.keyValue) {
53127
- if (listItem.text.includes("<元素>")) {
53128
- var index = listItem.text.indexOf("<元素>");
53129
- text = listItem.text.substring(0, index);
53130
- }
53320
+ if (keyValue.includes(listItem.id)) {
53321
+ var index = listItem.text.indexOf('<元素>');
53322
+ text += index === -1 ? listItem.text : listItem.text.substring(0, index);
53323
+ }
53324
+
53325
+ if (keyValue.includes(listItem.id)) {
53326
+ String(listItem.value) && value.push(listItem.value);
53131
53327
  }
53132
53328
  }
53329
+
53330
+ this.value = value.join(',');
53133
53331
  }
53134
53332
  }
53135
53333
 
53136
- if (text === "") {
53334
+ if (text === '') {
53137
53335
  loopChildNodes(this);
53138
53336
  } //loopChildNodes(this);
53139
53337
 
@@ -53157,7 +53355,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53157
53355
  this.keyValue = keyValue;
53158
53356
  }
53159
53357
 
53160
- if (!(value === "" && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j)) {
53358
+ if (!(value === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j)) {
53161
53359
  _context2.next = 4;
53162
53360
  break;
53163
53361
  }
@@ -53167,13 +53365,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53167
53365
  case 4:
53168
53366
  oldValue = this._canModifyContent.valueOf();
53169
53367
  this._canModifyContent = true;
53170
- hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53368
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53171
53369
  startPath = this.StartMarkNode.getNodePath();
53172
53370
  endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
53173
- aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
53371
+ aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_36__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
53174
53372
 
53175
- if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) && this.inputFieldType === 0) {
53176
- anodes = _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
53373
+ if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) && this.inputFieldType === 0) {
53374
+ anodes = _DomRange__WEBPACK_IMPORTED_MODULE_36__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
53177
53375
 
53178
53376
  for (i = 0; i < anodes.length; i++) {
53179
53377
  anode = anodes[i];
@@ -53183,17 +53381,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53183
53381
  }
53184
53382
  }
53185
53383
 
53186
- hoEditorFactory.docController.deleteRange(aRange, true, "update");
53384
+ hoEditorFactory.docController.deleteRange(aRange, true, 'update');
53187
53385
  }
53188
53386
 
53189
- if (!(value === "")) {
53387
+ if (!(value === '')) {
53190
53388
  _context2.next = 21;
53191
53389
  break;
53192
53390
  }
53193
53391
 
53194
- markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtContent */ .q.mtContent);
53392
+ markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtContent */ .q.mtContent);
53195
53393
  hoEditorFactory.undoService.begin();
53196
- hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_31__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
53394
+ hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_32__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
53197
53395
  hoEditorFactory.undoService.commit();
53198
53396
 
53199
53397
  if (this._childNodes2.length === 3) {
@@ -53259,10 +53457,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53259
53457
  value: function node2DrawNodeRange(startIndex, endIndex) {
53260
53458
  this.childNodes.length = 0;
53261
53459
  this._childNodes2.length = 0;
53262
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53460
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53263
53461
  var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
53264
53462
  var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
53265
- var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
53463
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
53266
53464
  var istart = Math.max(startIndex, 0);
53267
53465
  var iend = Math.min(endIndex, this.text.length - 1);
53268
53466
  var astyle = hoEditorFactory.docTree.styles[0];
@@ -53270,19 +53468,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53270
53468
  // index = astyle.changeStyleString("fontBackColor", "transparent");
53271
53469
  // }
53272
53470
 
53273
- this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMark */ .Jq.ntMark, "|", index, _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtStart */ .q.mtStart);
53471
+ this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart);
53274
53472
  this.StartMarkNode.isReadOnly = true;
53275
- this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtStart */ .q.mtStart;
53276
- this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMark */ .Jq.ntMark, "]", index, _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtEnd */ .q.mtEnd);
53473
+ this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart;
53474
+ this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd);
53277
53475
  this.EndMarkNode.isReadOnly = true;
53278
- this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtEnd */ .q.mtEnd;
53476
+ this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd;
53279
53477
  this.StartMarkNode.pair = this.EndMarkNode;
53280
53478
  this.EndMarkNode.pair = this.StartMarkNode;
53281
53479
 
53282
53480
  this._childNodes2.push(this.StartMarkNode);
53283
53481
 
53284
53482
  if (this.labelText.length != 0) {
53285
- this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtContent */ .q.mtContent)); // this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
53483
+ this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtContent */ .q.mtContent)); // this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
53286
53484
  // this._childNodes2.push(this._labelNode);
53287
53485
 
53288
53486
  }
@@ -53291,12 +53489,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53291
53489
 
53292
53490
  this._childNodes = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this._childNodes2);
53293
53491
 
53294
- if (this.text != "") {
53492
+ if (this.text != '') {
53295
53493
  if (this._childNodes2.length == 3) {
53296
53494
  this.childNodes.splice(1, 1);
53297
53495
  }
53298
53496
 
53299
- this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, this.text, index));
53497
+ this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, this.text, index));
53300
53498
  }
53301
53499
  }
53302
53500
  }, {
@@ -53332,16 +53530,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53332
53530
  return dline;
53333
53531
  }
53334
53532
 
53335
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53533
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53336
53534
  var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
53337
53535
  var isEnd = false;
53338
53536
 
53339
53537
  for (var index = 0; index < this.childNodes.length; index++) {
53340
53538
  var value = this.childNodes[index];
53341
53539
 
53342
- if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__/* .ParagraphNode */ .C) {
53540
+ if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C) {
53343
53541
  if (aline.paragraphNode !== value) {
53344
- if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__/* .DrawLine */ .a) {
53542
+ if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_26__/* .DrawLine */ .a) {
53345
53543
  aline.fitLines();
53346
53544
  aline.updateLineStyle();
53347
53545
  }
@@ -53356,7 +53554,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53356
53554
 
53357
53555
  paraNode = value;
53358
53556
  aline = paraNode.drawlines[0];
53359
- } else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_52__/* .TableNode */ .Fh) {
53557
+ } else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_53__/* .TableNode */ .Fh) {
53360
53558
  value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
53361
53559
  aline = value.drawTable;
53362
53560
  } else {
@@ -53369,7 +53567,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53369
53567
  }
53370
53568
 
53371
53569
  var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
53372
- var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
53570
+ var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_37__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
53373
53571
 
53374
53572
  if (cresult <= 0) {
53375
53573
  break;
@@ -53379,7 +53577,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53379
53577
  aline.fitLines();
53380
53578
  aline.updateLineStyle();
53381
53579
 
53382
- if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_25__/* .DrawLine */ .a) {
53580
+ if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_26__/* .DrawLine */ .a) {
53383
53581
  this._text = this.getFieldText();
53384
53582
  var fixWidthPix = hoEditorFactory.unitConvert.mmConversionPx(this.fixedWidth * 10, true);
53385
53583
  var restWidth = aline.dWidth - aline.paragraphNode.combineParagraph.leftMarginPixes - aline.paragraphNode.combineParagraph.rightMarginPixes - this.StartMarkNode.drawNodes[0].x; //const maxEmptWidth = Math.min(aline.calcRestWidth(), fixWidthPix);
@@ -53414,7 +53612,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53414
53612
  }, {
53415
53613
  key: "hasChildPath",
53416
53614
  value: function hasChildPath() {
53417
- if (this.labelText.length == 0 || this.text === "") {
53615
+ if (this.labelText.length == 0 || this.text === '') {
53418
53616
  return false;
53419
53617
  } else {
53420
53618
  return true;
@@ -53429,23 +53627,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53429
53627
  }, {
53430
53628
  key: "getReadyToEdit",
53431
53629
  value: function getReadyToEdit(callback) {
53432
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53630
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53433
53631
 
53434
- if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_26__/* .PaintState.psDesign */ .Dh.psDesign) {
53435
- return [false, ""];
53632
+ if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign) {
53633
+ return [false, ''];
53436
53634
  }
53437
53635
 
53438
53636
  var label = this.getLabel();
53439
53637
 
53440
53638
  if (label) {
53441
53639
  var prev = label.previousLeaf();
53442
- if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_29__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53443
- var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
53640
+ if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_30__/* .Exception.NodeNotFound */ .P.NodeNotFound();
53641
+ var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
53444
53642
  if (callback) callback(label);
53445
53643
  return [true, path];
53446
53644
  }
53447
53645
 
53448
- return [true, ""];
53646
+ return [true, ''];
53449
53647
  }
53450
53648
  /**
53451
53649
  * 校验节点中的数据是否符合校验条件
@@ -53455,7 +53653,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53455
53653
  }, {
53456
53654
  key: "verifyData",
53457
53655
  value: function verifyData() {
53458
- return [true, ""];
53656
+ return [true, ''];
53459
53657
  }
53460
53658
  /**
53461
53659
  * 绘制后所包含字符的实际宽度
@@ -53466,20 +53664,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53466
53664
  value: function getActualWidth() {
53467
53665
  var w = 0;
53468
53666
  this.childNodes.forEach(function (value) {
53469
- if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__/* .ParagraphNode */ .C)) w += value.getActualWidth();
53667
+ if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C)) w += value.getActualWidth();
53470
53668
  });
53471
53669
  return w;
53472
53670
  }
53473
53671
  }, {
53474
53672
  key: "delete",
53475
53673
  value: function _delete(operType) {
53476
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53674
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53477
53675
 
53478
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_26__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
53676
+ if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
53479
53677
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
53480
53678
  } else {
53481
- if (operType !== "update") {
53482
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
53679
+ if (operType !== 'update') {
53680
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。', '系统提示');
53483
53681
  } else {
53484
53682
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
53485
53683
  }
@@ -53509,7 +53707,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53509
53707
  return false;
53510
53708
  } else {
53511
53709
  for (var i = 0; i++; i < this.childNodes.length) {
53512
- if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_37__/* .BaseCombineNode */ .V) {
53710
+ if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_38__/* .BaseCombineNode */ .V) {
53513
53711
  if (this.childNodes[i].removeChild(node)) return true;
53514
53712
  }
53515
53713
  }
@@ -53529,10 +53727,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53529
53727
  return true;
53530
53728
  }
53531
53729
 
53532
- if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) {
53730
+ if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) {
53533
53731
  var markNode = this.childNodes[1];
53534
53732
 
53535
- if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtContent */ .q.mtContent) {
53733
+ if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtContent */ .q.mtContent) {
53536
53734
  return true;
53537
53735
  } else return false;
53538
53736
  }
@@ -53568,7 +53766,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53568
53766
 
53569
53767
  for (var i = 1; i < ilen; i++) {
53570
53768
  textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
53571
- _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
53769
+ _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
53572
53770
  }
53573
53771
 
53574
53772
  return textInputFieldNode;
@@ -53589,10 +53787,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53589
53787
  for (var i = 0; i < this.childNodes.length; i++) {
53590
53788
  var node = this.childNodes[i];
53591
53789
 
53592
- if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && node.text.substr(0, 1) !== "C")) {
53593
- if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_52__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
53790
+ if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
53791
+ if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_53__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
53594
53792
  childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
53595
- } else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N) {
53793
+ } else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
53596
53794
  if (clearSign) {
53597
53795
  if (node.isTemplate) {
53598
53796
  childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
@@ -53601,11 +53799,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53601
53799
  childArray.push(node.node2Json(undefined, isCopy));
53602
53800
  }
53603
53801
  } else {
53604
- if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R) {
53605
- if (node.text !== "") {
53802
+ if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
53803
+ if (node.text !== '') {
53606
53804
  childArray.push(node.node2Json(undefined, isCopy));
53607
53805
  }
53608
- } else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_40__/* .DateTimeNode */ .Z) {
53806
+ } else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z) {
53609
53807
  childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
53610
53808
  } else {
53611
53809
  childArray.push(node.node2Json(undefined, isCopy));
@@ -53662,7 +53860,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53662
53860
  }
53663
53861
 
53664
53862
  if (canCopy) {
53665
- if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && _node.text.substr(0, 1) === "C")) {
53863
+ if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
53666
53864
  childArray.push(_node.node2Json(rec, isCopy));
53667
53865
  }
53668
53866
  }
@@ -53673,23 +53871,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53673
53871
  }
53674
53872
 
53675
53873
  if (childArray.length > 0) {
53676
- if (childArray[0].nodeType === "ntMark" && childArray[0].type === 0) {
53677
- if (childArray[childArray.length - 1].nodeType !== "ntMark") {
53874
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
53875
+ if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
53678
53876
  childArray.splice(0, 1);
53679
53877
  }
53680
53878
 
53681
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type !== 2) {
53879
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
53682
53880
  childArray.splice(childArray.length - 1, 1);
53683
53881
  childArray.splice(0, 1);
53684
53882
  }
53685
53883
  }
53686
53884
 
53687
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type === 2) {
53688
- if (childArray[0].nodeType !== "ntMark") {
53885
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
53886
+ if (childArray[0].nodeType !== 'ntMark') {
53689
53887
  childArray.splice(childArray.length - 1, 1);
53690
53888
  }
53691
53889
 
53692
- if (childArray[0].nodeType === "ntMark" && childArray[0].type !== 0) {
53890
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
53693
53891
  childArray.splice(childArray.length - 1, 1);
53694
53892
  childArray.splice(0, 1);
53695
53893
  }
@@ -53704,25 +53902,60 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53704
53902
  item: childArray
53705
53903
  };
53706
53904
  } else {
53707
- if (type === "json") {
53905
+ if (type === 'json') {
53708
53906
  childNodes = childArray;
53709
53907
  } else {
53710
53908
  childNodes = {
53711
53909
  TempNode: childArray
53712
53910
  };
53713
53911
  }
53714
- } //childNodes = [...childArray];
53715
- //const customPropertyObj =
53716
-
53912
+ }
53717
53913
 
53718
53914
  this.text = this.getFieldText(clearSign);
53719
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53915
+
53916
+ if (isCopy) {
53917
+ return {
53918
+ nodeType: 'ntField',
53919
+ inputFieldType: InputFieldType[this.inputFieldType],
53920
+ id: this.id,
53921
+ dataId: this.dataId,
53922
+ innerIdentifier: this.innerIdentifier,
53923
+ dataMetaIdentifier: this.dataMetaIdentifier,
53924
+ identifierFormat: this.identifierFormat,
53925
+ isSynchro: this.isSynchro,
53926
+ text: this.text,
53927
+ keyValue: this.keyValue,
53928
+ value: this.value,
53929
+ name: this.name,
53930
+ tipText: this.tipText,
53931
+ labelText: this.labelText,
53932
+ readOnlyStatus: this.readOnlyStatus,
53933
+ fixedWidth: this.fixedWidth,
53934
+ canModifyContent: this.canModifyContent,
53935
+ isAllowDelete: this.isAllowDelete,
53936
+ enableGlobalColor: this.enableGlobalColor,
53937
+ defaultValue: this.defaultValue,
53938
+ downListProperty: this.downListProperty,
53939
+ dataVerifyFormat: this.dataVerifyFormat,
53940
+ bandDataSource: this.bandDataSource,
53941
+ customProperty: this.customProperty,
53942
+ alignWithBlocked: this.alignWithBlocked,
53943
+ readType: this.readType,
53944
+ childNodes: childNodes
53945
+ };
53946
+ }
53947
+
53948
+ var parentid = '';
53949
+
53950
+ if (this.parentNode && this.parentNode instanceof TextInputFieldNode) {
53951
+ parentid = this.parentNode.id;
53952
+ }
53953
+
53720
53954
  var retObj = {
53721
- nodeType: "ntField",
53955
+ nodeType: 'ntField',
53722
53956
  inputFieldType: InputFieldType[this.inputFieldType],
53723
- //id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("TF") : this.id,
53724
53957
  id: this.id,
53725
- //dataId: type === "copy" ? hoEditorFactory.gernerateCode.generateID("Field") : this.dataId,
53958
+ parentId: parentid,
53726
53959
  dataId: this.dataId,
53727
53960
  innerIdentifier: this.innerIdentifier,
53728
53961
  dataMetaIdentifier: this.dataMetaIdentifier,
@@ -53730,6 +53963,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53730
53963
  isSynchro: this.isSynchro,
53731
53964
  text: this.text,
53732
53965
  keyValue: this.keyValue,
53966
+ value: this.value,
53733
53967
  name: this.name,
53734
53968
  tipText: this.tipText,
53735
53969
  labelText: this.labelText,
@@ -53745,23 +53979,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53745
53979
  customProperty: this.customProperty,
53746
53980
  alignWithBlocked: this.alignWithBlocked,
53747
53981
  readType: this.readType,
53748
- // isMultiLinesDisplay: this.isMultiLinesDisplay,
53749
- // "childNodes": childNodes
53750
53982
  childNodes: childNodes
53751
53983
  };
53752
-
53753
- if (isCopy) {
53754
- return retObj;
53755
- }
53756
-
53757
53984
  return {
53758
- "TextInputFieldNode": retObj
53985
+ TextInputFieldNode: retObj
53759
53986
  };
53760
53987
  }
53761
53988
  }, {
53762
53989
  key: "getLeftWidth",
53763
53990
  value: function getLeftWidth() {
53764
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53991
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
53765
53992
 
53766
53993
  if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
53767
53994
  var dNode = this.StartMarkNode.drawNodes[0];
@@ -53822,19 +54049,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53822
54049
  }, {
53823
54050
  key: "getTagNameCn",
53824
54051
  value: function getTagNameCn() {
53825
- return "输入域t";
54052
+ return '输入域t';
53826
54053
  }
53827
54054
  }], [{
53828
54055
  key: "json2Node",
53829
54056
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
53830
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54057
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54058
+ var eachCount = 0;
53831
54059
  delete json.nodeType;
53832
54060
  this.transType(json);
53833
54061
 
53834
54062
  if (isPaste) {
53835
- if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
54063
+ if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
53836
54064
  //json.id = hoEditorFactory.gernerateCode.generateID("TF");
53837
- json.dataId = hoEditorFactory.gernerateCode.generateID("Field");
54065
+ json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
53838
54066
  }
53839
54067
  }
53840
54068
 
@@ -53848,34 +54076,43 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53848
54076
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
53849
54077
  json.readType = json.readType ? Number(json.readType) : -1; // json.isMultiLinesDisplay = !json.isMultiLinesDisplay ? false : json.isMultiLinesDisplay;
53850
54078
 
53851
- var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntField */ .Jq.ntField, json); // this.insertChild
54079
+ var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntField */ .Jq.ntField, json); // this.insertChild
53852
54080
 
53853
54081
  if (json.childNodes) {
53854
54082
  var nodes = new Array();
53855
54083
 
53856
54084
  var getChildNodes = function getChildNodes(item) {
54085
+ // eachCount++;
54086
+ // if(json.name === '1-1') {
54087
+ // console.time(`1-1---${eachCount}`);
54088
+ // };
53857
54089
  if (Array.isArray(item)) {
53858
54090
  //数组
53859
54091
  for (var i = 0; i < item.length; i++) {
53860
- var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
54092
+ // if(json.name === '1-1' && item[i].name) {
54093
+ // console.time(`----${i}----1-1----${item[i].name}`);
54094
+ // };
54095
+ var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign); // if(json.name === '1-1' && item[i].name) {
54096
+ // console.timeEnd(`----${i}----1-1----${item[i].name}`);
54097
+ // };
53861
54098
 
53862
54099
  if (node) {
53863
- if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R) {
53864
- if (node.text !== "") {
54100
+ if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54101
+ if (node.text !== '') {
53865
54102
  nodes.push(node);
53866
54103
  }
53867
54104
  } else {
53868
54105
  if (isClearSign) {
53869
- if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N) {
53870
- if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == "")) {
54106
+ if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54107
+ if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
53871
54108
  nodes.push(node);
53872
54109
  }
53873
54110
  } else {
53874
54111
  nodes.push(node);
53875
54112
  }
53876
54113
  } else {
53877
- if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N) {
53878
- if (!(node.number == 0 && node.type == 0 && node.name == "")) {
54114
+ if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54115
+ if (!(node.number == 0 && node.type == 0 && node.name == '')) {
53879
54116
  nodes.push(node);
53880
54117
  }
53881
54118
  } else {
@@ -53885,11 +54122,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53885
54122
  }
53886
54123
  }
53887
54124
 
53888
- if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === "C") {
54125
+ if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
53889
54126
  hoEditorFactory.structureConvert._markNodes.push(node);
53890
54127
  }
53891
54128
 
53892
- if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
54129
+ if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
53893
54130
  hoEditorFactory.structureConvert._superiorSign[0] = node;
53894
54131
  }
53895
54132
  }
@@ -53898,23 +54135,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53898
54135
  var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
53899
54136
 
53900
54137
  if (_node2) {
53901
- if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R) {
53902
- if (_node2.text !== "") {
54138
+ if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54139
+ if (_node2.text !== '') {
53903
54140
  nodes.push(_node2);
53904
54141
  }
53905
54142
  } else {
53906
54143
  //nodes.push(node);
53907
54144
  if (isClearSign) {
53908
- if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N) {
53909
- if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54145
+ if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54146
+ if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
53910
54147
  nodes.push(_node2);
53911
54148
  }
53912
54149
  } else {
53913
54150
  nodes.push(_node2);
53914
54151
  }
53915
54152
  } else {
53916
- if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N) {
53917
- if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54153
+ if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54154
+ if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
53918
54155
  nodes.push(_node2);
53919
54156
  }
53920
54157
  } else {
@@ -53924,39 +54161,38 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53924
54161
  }
53925
54162
  }
53926
54163
 
53927
- if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === "C") {
54164
+ if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
53928
54165
  hoEditorFactory.structureConvert._markNodes.push(_node2);
53929
54166
  }
53930
54167
 
53931
- if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_50__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
54168
+ if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
53932
54169
  hoEditorFactory.structureConvert._superiorSign[0] = _node2;
53933
54170
  }
53934
- }
53935
- };
54171
+ } // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
54172
+
54173
+ }; // if(json.name === '1-1') console.time("1-1--0");
54174
+
53936
54175
 
53937
54176
  if (isPaste) {
53938
54177
  if (json.childNodes.item) {
53939
54178
  getChildNodes(json.childNodes.item);
53940
- } else {
53941
- if (json.childNodes.node) {
53942
- getChildNodes(json.childNodes.node);
53943
- }
53944
- }
53945
- } else {
53946
- if (json.childNodes.node) {
54179
+ } else if (json.childNodes.node) {
53947
54180
  getChildNodes(json.childNodes.node);
53948
54181
  }
53949
- }
54182
+ } else if (json.childNodes.node) {
54183
+ getChildNodes(json.childNodes.node);
54184
+ } // if(json.name === '1-1') console.timeEnd("1-1--0");
54185
+
53950
54186
 
53951
54187
  if (nodes.length > 0) {
53952
- if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) {
54188
+ if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) {
53953
54189
  var _temp$childNodes;
53954
54190
 
53955
54191
  temp.childNodes.length = 0;
53956
54192
 
53957
54193
  (_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
53958
54194
 
53959
- if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) {
54195
+ if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) {
53960
54196
  temp._childNodes2.splice(1, 1);
53961
54197
 
53962
54198
  temp._childNodes2.splice(1, 0, temp.childNodes[1]);
@@ -53972,20 +54208,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53972
54208
  }
53973
54209
  }
53974
54210
 
53975
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_26__/* .PaintState.psDesign */ .Dh.psDesign) {
54211
+ if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign) {
53976
54212
  var sChildNode = temp.childNodes[0];
53977
54213
  var eChildNode = temp.childNodes[temp.childNodes.length - 1];
53978
54214
 
53979
- if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtStart */ .q.mtStart) {
53980
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54215
+ if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart) {
54216
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
53981
54217
  }
53982
54218
 
53983
- if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
53984
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54219
+ if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
54220
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
53985
54221
  }
53986
54222
  }
53987
54223
 
53988
- if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_51__/* .TableFormula */ .N) {
54224
+ if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_52__/* .TableFormula */ .N) {
53989
54225
  return temp;
53990
54226
  }
53991
54227
 
@@ -54008,23 +54244,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54008
54244
  temp.childNodes.splice(1, temp.childNodes.length - 2);
54009
54245
  var styleIndex = temp.childNodes[0].styleIndex;
54010
54246
 
54011
- if (temp.text !== "") {
54012
- if (temp.text.includes("\\r\\n") || temp.text.includes("\\R\\N")) {
54247
+ if (temp.text !== '') {
54248
+ if (temp.text.includes('\\r\\n') || temp.text.includes('\\R\\N')) {
54013
54249
  var lineArr = [];
54014
54250
 
54015
- if (temp.text.includes("\\r\\n")) {
54016
- lineArr = temp.text.split("\\r\\n");
54017
- } else if (temp.text.includes("\\R\\N")) {
54018
- lineArr = temp.text.split("\\R\\N");
54251
+ if (temp.text.includes('\\r\\n')) {
54252
+ lineArr = temp.text.split('\\r\\n');
54253
+ } else if (temp.text.includes('\\R\\N')) {
54254
+ lineArr = temp.text.split('\\R\\N');
54019
54255
  }
54020
54256
 
54021
54257
  for (var i = 0; i < lineArr.length; i++) {
54022
54258
  var lineText = lineArr[i];
54023
- var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
54259
+ var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
54024
54260
  temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
54025
54261
 
54026
54262
  if (i < lineArr.length - 1) {
54027
- var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
54263
+ var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
54028
54264
  paraNode.styleIndex = styleIndex;
54029
54265
  temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
54030
54266
  }
@@ -54032,10 +54268,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54032
54268
  } else {
54033
54269
  var expressArr = new Array();
54034
54270
 
54035
- if (temp.text.includes("<MedicalExpress>")) {
54271
+ if (temp.text.includes('<MedicalExpress>')) {
54036
54272
  var getAllMedicalExpress = function getAllMedicalExpress(str) {
54037
- var sIndex = str.lastIndexOf("<MedicalExpress>");
54038
- var eIndex = str.lastIndexOf("</MedicalExpress>");
54273
+ var sIndex = str.lastIndexOf('<MedicalExpress>');
54274
+ var eIndex = str.lastIndexOf('</MedicalExpress>');
54039
54275
 
54040
54276
  if (sIndex !== -1) {
54041
54277
  var obj = {
@@ -54049,7 +54285,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54049
54285
 
54050
54286
  str = str.substring(0, sIndex);
54051
54287
 
54052
- if (str.includes("<MedicalExpress>")) {
54288
+ if (str.includes('<MedicalExpress>')) {
54053
54289
  getAllMedicalExpress(str);
54054
54290
  }
54055
54291
  };
@@ -54057,7 +54293,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54057
54293
  getAllMedicalExpress(temp.text);
54058
54294
  }
54059
54295
 
54060
- var firstText = "";
54296
+ var firstText = '';
54061
54297
  expressArr = expressArr.reverse();
54062
54298
 
54063
54299
  if (expressArr.length > 0) {
@@ -54073,88 +54309,114 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54073
54309
  if (json.customProperty && json.customProperty.isRemoveLineFeed) {
54074
54310
  textArr.push(textStr);
54075
54311
  } else {
54076
- textArr = textStr.split("\n");
54312
+ textArr = textStr.split('\n');
54077
54313
  }
54078
54314
 
54079
54315
  var getText = function getText(atext) {
54080
54316
  var result = new Array();
54081
- var index1 = atext.indexOf("<上标>");
54082
- var index2 = atext.indexOf("</上标>");
54083
- result.push({
54084
- "mark": 0,
54085
- "text": atext.substring(0, index1)
54086
- });
54087
- result.push({
54088
- "mark": 1,
54089
- "text": atext.substring(index1 + 4, index2)
54090
- });
54317
+ var index1 = -1;
54318
+ var index2 = -1;
54319
+
54320
+ if (atext.indexOf('<上标>') >= 0) {
54321
+ index1 = atext.indexOf('<上标>');
54322
+ index2 = atext.indexOf('</上标>');
54323
+ result.push({
54324
+ mark: 0,
54325
+ text: atext.substring(0, index1)
54326
+ });
54327
+ result.push({
54328
+ mark: 1,
54329
+ text: atext.substring(index1 + 4, index2)
54330
+ });
54331
+ } else {
54332
+ index1 = atext.indexOf('<下标>');
54333
+ index2 = atext.indexOf('</下标>');
54334
+ result.push({
54335
+ mark: 0,
54336
+ text: atext.substring(0, index1)
54337
+ });
54338
+ result.push({
54339
+ mark: 2,
54340
+ text: atext.substring(index1 + 4, index2)
54341
+ });
54342
+ }
54343
+
54091
54344
  atext = atext.substring(index2 + 5, atext.length);
54092
54345
 
54093
- if (atext.indexOf("<上标>") >= 0) {
54346
+ if (atext.indexOf('<上标>') >= 0 || atext.indexOf('<下标>') >= 0) {
54094
54347
  getText(atext);
54095
54348
  } else {
54096
54349
  result.push({
54097
- "mark": 0,
54098
- "text": atext
54350
+ mark: 0,
54351
+ text: atext
54099
54352
  });
54100
54353
  }
54101
54354
 
54102
54355
  return result;
54103
54356
  };
54104
54357
 
54105
- if (textArr[0].indexOf("<上标>") >= 0) {
54358
+ if (textArr[0].indexOf('<上标>') >= 0 || textArr[0].indexOf('<下标>') >= 0) {
54106
54359
  var resultArr = getText(textArr[0]);
54107
54360
 
54108
54361
  for (var k = 0; k < resultArr.length; k++) {
54109
- if (resultArr[k].text != "") {
54362
+ if (resultArr[k].text != '') {
54110
54363
  var newStyleIndex = styleIndex;
54111
54364
 
54112
54365
  if (resultArr[k].mark == 1) {
54113
- var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_34__/* .TextStyle */ .pn(hoEditorFactoryID);
54366
+ var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54114
54367
  textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
54115
54368
  textStyle.script = 2;
54116
54369
  newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
54117
54370
  }
54118
54371
 
54119
- var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, resultArr[k].text, newStyleIndex);
54372
+ if (resultArr[k].mark == 2) {
54373
+ var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54374
+
54375
+ _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54376
+
54377
+ _textStyle.script = 1;
54378
+ newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54379
+ }
54380
+
54381
+ var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, resultArr[k].text, newStyleIndex);
54120
54382
  temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
54121
54383
  }
54122
54384
  }
54123
54385
  } else {
54124
- var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
54386
+ var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
54125
54387
  temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
54126
54388
  }
54127
54389
 
54128
54390
  if (textArr.length > 1) {
54129
54391
  for (var _i2 = 1; _i2 < textArr.length; _i2++) {
54130
- var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_46__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
54392
+ var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
54131
54393
  paragraNode.styleIndex = styleIndex;
54132
54394
  temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
54133
54395
 
54134
- if (textArr[_i2] !== "") {
54135
- if (textArr[_i2].indexOf("<上标>") >= 0) {
54396
+ if (textArr[_i2] !== '') {
54397
+ if (textArr[_i2].indexOf('<上标>') >= 0 || textArr[_i2].indexOf('<下标>') >= 0) {
54136
54398
  var resultArr1 = getText(textArr[_i2]);
54137
54399
 
54138
54400
  for (var _k = 0; _k < resultArr1.length; _k++) {
54139
- if (resultArr1[_k].text != "") {
54401
+ if (resultArr1[_k].text != '') {
54140
54402
  var _newStyleIndex = styleIndex;
54141
54403
 
54142
54404
  if (resultArr1[_k].mark == 1) {
54143
- var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_34__/* .TextStyle */ .pn(hoEditorFactoryID);
54405
+ var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54144
54406
 
54145
- _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54407
+ _textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
54146
54408
 
54147
- _textStyle.script = 2;
54148
- _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54409
+ _textStyle2.script = 2;
54410
+ _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
54149
54411
  }
54150
54412
 
54151
- var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
54413
+ var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
54152
54414
 
54153
54415
  temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
54154
54416
  }
54155
54417
  }
54156
54418
  } else {
54157
- var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_53__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, textArr[_i2], styleIndex);
54419
+ var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, textArr[_i2], styleIndex);
54158
54420
 
54159
54421
  temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
54160
54422
  }
@@ -54163,7 +54425,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54163
54425
  }
54164
54426
  };
54165
54427
 
54166
- if (firstText !== "") {
54428
+ if (firstText !== '') {
54167
54429
  getChildTextNodes(firstText);
54168
54430
  }
54169
54431
 
@@ -54174,7 +54436,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54174
54436
  var eIndex = expressArr[_i3].eIndex;
54175
54437
  var expressJson = temp.text.substring(sIndex + 16, eIndex);
54176
54438
  var expressObj = JSON.parse(expressJson);
54177
- var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_45__/* .ExpressStyle */ .e[expressObj.expressStyle];
54439
+ var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .ExpressStyle */ .e[expressObj.expressStyle];
54178
54440
 
54179
54441
  if (!expressStyle) {
54180
54442
  expressStyle = expressObj.expressStyle;
@@ -54182,25 +54444,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54182
54444
 
54183
54445
  var medicalExpressNode = void 0;
54184
54446
 
54185
- if (expressStyle.includes("style")) {
54447
+ if (expressStyle.includes('style')) {
54186
54448
  //经期史
54187
- medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_45__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
54449
+ medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
54188
54450
  } else {
54189
- if (expressStyle === "PupilMapNode") {
54190
- medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
54191
- } else if (expressStyle === "LightLocationMapNode") {
54192
- medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_42__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
54193
- } else if (expressStyle === "FetalHeartMapNode") {
54194
- medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_41__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
54195
- } else if (expressStyle === "PermanentTeethMapNode") {
54196
- medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
54451
+ if (expressStyle === 'PupilMapNode') {
54452
+ medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
54453
+ } else if (expressStyle === 'LightLocationMapNode') {
54454
+ medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
54455
+ } else if (expressStyle === 'FetalHeartMapNode') {
54456
+ medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
54457
+ } else if (expressStyle === 'PermanentTeethMapNode') {
54458
+ medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
54197
54459
  } else {
54198
- medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
54460
+ medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
54199
54461
  }
54200
54462
  }
54201
54463
 
54202
54464
  temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
54203
- var behindText = ""; //表达式后的文本串
54465
+ var behindText = ''; //表达式后的文本串
54204
54466
 
54205
54467
  if (_i3 < expressArr.length - 1) {
54206
54468
  behindText = temp.text.substring(eIndex + 17, expressArr[_i3 + 1].sIndex);
@@ -54223,8 +54485,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54223
54485
  } else {
54224
54486
  temp._childNodes2.splice(1, temp._childNodes2.length - 2);
54225
54487
 
54226
- var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_38__/* .NodeType.ntText */ .Jq.ntText, temp.labelText, //hoEditorFactory.docTree.curStyleIndex,
54227
- styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_43__/* .MarkNodeType.mtContent */ .q.mtContent);
54488
+ var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, temp.labelText, //hoEditorFactory.docTree.curStyleIndex,
54489
+ styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtContent */ .q.mtContent);
54228
54490
 
54229
54491
  temp._childNodes.splice(1, 0, markNode);
54230
54492
 
@@ -54252,19 +54514,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54252
54514
  }, {
54253
54515
  key: "textInpubNodeRedraw",
54254
54516
  value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
54255
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54517
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54256
54518
  var startPath = node.StartMarkNode.getNodePath();
54257
54519
  var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
54258
54520
  var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
54259
- var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_30__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_33__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, startPath, endPath);
54521
+ var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_31__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, startPath, endPath);
54260
54522
  changeEvent.oldEndPath = endPath;
54261
- changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
54523
+ changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_28__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
54262
54524
  hoEditorFactory.docTree.change(changeEvent);
54263
54525
  }
54264
54526
  }]);
54265
54527
 
54266
54528
  return TextInputFieldNode;
54267
- }(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_37__/* .BaseCombineNode */ .V);
54529
+ }(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_38__/* .BaseCombineNode */ .V);
54268
54530
 
54269
54531
  /***/ }),
54270
54532
 
@@ -54516,7 +54778,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
54516
54778
 
54517
54779
  this._dStyleKey = this._dCombineStyle.getStyleKey();
54518
54780
  this._dColor = this._dCombineStyle.color;
54519
- this._dHeight = this._dCombineStyle.getFontHeightByFontSize(this._dCombineStyle.size);
54781
+ this._dHeight = hoEditorFactory.getFontHeightByFontSize(this._dCombineStyle.size);
54520
54782
  }
54521
54783
  }, {
54522
54784
  key: "node2DrawNode",
@@ -55285,7 +55547,7 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
55285
55547
  _this._dHeight = hoEditorFactory.defaultLineHeight;
55286
55548
  var paraFontstyle = hoEditorFactory.docTree.styles[node.styleIndex];
55287
55549
  var size = paraFontstyle && paraFontstyle.size ? paraFontstyle.size : hoEditorFactory.docTree.defaultCombineStyle.size;
55288
- _this._maxFontHeight = hoEditorFactory.docTree.defaultCombineStyle.getFontHeightByFontSize(size); //this._isImgHeightForMax = false;
55550
+ _this._maxFontHeight = hoEditorFactory.getFontHeightByFontSize(size); //this._isImgHeightForMax = false;
55289
55551
 
55290
55552
  _this._charSpace = 0;
55291
55553
  _this._needUpdate = true;
@@ -55589,7 +55851,7 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
55589
55851
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._paragraphNode.hoEditorFactoryID);
55590
55852
  var paraFontstyle = hoEditorFactory.docTree.styles[this._paragraphNode.styleIndex];
55591
55853
  var size = paraFontstyle && paraFontstyle.size ? paraFontstyle.size : hoEditorFactory.docTree.defaultCombineStyle.size;
55592
- var dHeight = hoEditorFactory.docTree.defaultCombineStyle.getFontHeightByFontSize(size);
55854
+ var dHeight = hoEditorFactory.getFontHeightByFontSize(size);
55593
55855
  var dBaseY = 0; //文本节点DrawTextNode._Dtext.y的值
55594
55856
 
55595
55857
  var iCount = 0; //文本节点数量
@@ -62091,8 +62353,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62091
62353
  (0,classCallCheck/* default */.Z)(this, DrawPageCell);
62092
62354
 
62093
62355
  _this = _super.call(this, hoeditfactoryID, cellNode.rootPath, index, dLeft, dTop, dWidth, dHeight, dWidth, dHeight);
62094
- _this._drawPageTable = dPartTable;
62095
- _this._crossShape = null;
62356
+ _this._drawPageTable = dPartTable; // this._crossShape = null;
62357
+
62096
62358
  _this._backImg = new createjs.Shape();
62097
62359
  _this._touchArea = new createjs.Shape(); // this._pageIndex = pageIndex;
62098
62360
  // this._dPage = dPage;
@@ -62107,11 +62369,21 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62107
62369
  _this._dHeight = dHeight; // ((this as unknown) as DrawInfos).dHeight = dWidth;
62108
62370
 
62109
62371
  _this._discriminator = IDrawInfos/* gDrawIntfID */.t; //this._marker = new createjs.Shape();
62372
+ // this._topBorder = new createjs.Rectangle(dLeft, dTop, dWidth, 2);
62373
+ // this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
62374
+ // this._rightBorder = new createjs.Rectangle(
62375
+ // dLeft + dWidth - 2,
62376
+ // dTop,
62377
+ // 2,
62378
+ // dHeight
62379
+ // );
62380
+ // this._bottomBorder = new createjs.Rectangle(
62381
+ // dLeft,
62382
+ // dTop + dHeight - 2,
62383
+ // dWidth,
62384
+ // 2
62385
+ // );
62110
62386
 
62111
- _this._topBorder = new createjs.Rectangle(dLeft, dTop, dWidth, 2);
62112
- _this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
62113
- _this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
62114
- _this._bottomBorder = new createjs.Rectangle(dLeft, dTop + dHeight - 2, dWidth, 2);
62115
62387
  var innerTop = 0;
62116
62388
 
62117
62389
  if (_this._cell.drawCell.drawPageCells.length == 0) {
@@ -62273,10 +62545,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62273
62545
  },
62274
62546
  set: function set(value) {
62275
62547
  if (value !== this._dWidth) {
62276
- this._dWidth = value;
62277
- this._topBorder.width = value;
62278
- this._bottomBorder.width = value;
62279
- this._rightBorder.x = this._dLeft + this._dWidth - 2;
62548
+ this._dWidth = value; // this._topBorder.width = value;
62549
+ // this._bottomBorder.width = value;
62550
+ // this._rightBorder.x = this._dLeft + this._dWidth - 2;
62280
62551
  }
62281
62552
  }
62282
62553
  }, {
@@ -62286,35 +62557,30 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62286
62557
  },
62287
62558
  set: function set(value) {
62288
62559
  if (value !== this._dHeight) {
62289
- this._dHeight = value;
62290
- this._leftBorder.height = value;
62291
- this._rightBorder.height = value;
62292
- this._bottomBorder.y = this._dTop + this._dHeight - 2;
62560
+ this._dHeight = value; // this._leftBorder.height = value;
62561
+ // this._rightBorder.height = value;
62562
+ // this._bottomBorder.y = this._dTop + this._dHeight - 2;
62293
62563
  }
62294
62564
  }
62295
62565
  }, {
62296
62566
  key: "updateCrossShap",
62297
62567
  value: function updateCrossShap() {
62298
62568
  if (this._cell.cellProperty.obliqueSplitLine === TableProperty/* ObliqueSplitLine.None */.lH.None) {
62299
- if (this._crossShape && this.contains(this._crossShape)) {
62300
- this.removeChild(this._crossShape);
62301
- }
62302
-
62303
- this._crossShape = null;
62569
+ // if (this._crossShape && this.contains(this._crossShape)) {
62570
+ // this.removeChild(this._crossShape);
62571
+ // }
62572
+ // this._crossShape = null;
62304
62573
  return;
62305
62574
  } else {
62306
- if (!this._crossShape) {
62307
- this._crossShape = new createjs.Shape();
62308
- }
62309
-
62310
- this._crossShape.graphics.clear();
62311
-
62312
- this._crossShape.x = 0;
62313
- this._crossShape.y = 0;
62314
-
62315
- this._crossShape.graphics.setStrokeStyle(1);
62575
+ // if (!this._crossShape) {
62576
+ // this._crossShape = new createjs.Shape();
62577
+ // }
62578
+ // this._crossShape.graphics.clear();
62579
+ // this._crossShape.x = 0;
62580
+ // this._crossShape.y = 0;
62581
+ this._backImg.graphics.setStrokeStyle(1);
62316
62582
 
62317
- this._crossShape.graphics.beginStroke("#000000");
62583
+ this._backImg.graphics.beginStroke("#000000");
62318
62584
  /*表格边框与边编码,角的编码是0、1、2、3 边的编码是ABCD
62319
62585
  * _____A______*
62320
62586
  * |0 1 |
@@ -62327,91 +62593,90 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62327
62593
  switch (this._cell.cellProperty.obliqueSplitLine) {
62328
62594
  //02
62329
62595
  case TableProperty/* ObliqueSplitLine.TopLeftOneLine */.lH.TopLeftOneLine:
62330
- this._crossShape.graphics.moveTo(0, 0);
62596
+ this._backImg.graphics.moveTo(0, 0);
62331
62597
 
62332
- this._crossShape.graphics.lineTo(this._dWidth, this._dHeight);
62598
+ this._backImg.graphics.lineTo(this._dWidth, this._dHeight);
62333
62599
 
62334
62600
  break;
62335
62601
  //0213
62336
62602
  // case ObliqueSplitLine.ct0213:
62337
- // this._crossShape.graphics.moveTo(0, 0);
62338
- // this._crossShape.graphics.lineTo(this._dWidth, this._dHeight);
62339
- // this._crossShape.graphics.moveTo(this._dWidth, 0);
62340
- // this._crossShape.graphics.lineTo(0, this._dHeight);
62603
+ // this._backImg.graphics.moveTo(0, 0);
62604
+ // this._backImg.graphics.lineTo(this._dWidth, this._dHeight);
62605
+ // this._backImg.graphics.moveTo(this._dWidth, 0);
62606
+ // this._backImg.graphics.lineTo(0, this._dHeight);
62341
62607
  // break;
62342
62608
 
62343
62609
  case TableProperty/* ObliqueSplitLine.TopLeftTwoLine */.lH.TopLeftTwoLine:
62344
- this._crossShape.graphics.moveTo(0, 0);
62610
+ this._backImg.graphics.moveTo(0, 0);
62345
62611
 
62346
- this._crossShape.graphics.lineTo(this._dWidth, this._dHeight / 2);
62612
+ this._backImg.graphics.lineTo(this._dWidth, this._dHeight / 2);
62347
62613
 
62348
- this._crossShape.graphics.moveTo(0, 0);
62614
+ this._backImg.graphics.moveTo(0, 0);
62349
62615
 
62350
- this._crossShape.graphics.lineTo(this._dWidth / 2, this._dHeight);
62616
+ this._backImg.graphics.lineTo(this._dWidth / 2, this._dHeight);
62351
62617
 
62352
62618
  break;
62353
62619
 
62354
62620
  case TableProperty/* ObliqueSplitLine.TopRightOneLine */.lH.TopRightOneLine:
62355
- this._crossShape.graphics.moveTo(this._dWidth, 0);
62621
+ this._backImg.graphics.moveTo(this._dWidth, 0);
62356
62622
 
62357
- this._crossShape.graphics.lineTo(0, this._dHeight);
62623
+ this._backImg.graphics.lineTo(0, this._dHeight);
62358
62624
 
62359
62625
  break;
62360
62626
  //1D1C
62361
62627
 
62362
62628
  case TableProperty/* ObliqueSplitLine.TopRightTwoLine */.lH.TopRightTwoLine:
62363
- this._crossShape.graphics.moveTo(this._dWidth, 0);
62629
+ this._backImg.graphics.moveTo(this._dWidth, 0);
62364
62630
 
62365
- this._crossShape.graphics.lineTo(this._dWidth / 2, this._dHeight);
62631
+ this._backImg.graphics.lineTo(this._dWidth / 2, this._dHeight);
62366
62632
 
62367
- this._crossShape.graphics.moveTo(this._dWidth, 0);
62633
+ this._backImg.graphics.moveTo(this._dWidth, 0);
62368
62634
 
62369
- this._crossShape.graphics.lineTo(0, this._dHeight / 2);
62635
+ this._backImg.graphics.lineTo(0, this._dHeight / 2);
62370
62636
 
62371
62637
  break;
62372
62638
  //ct2A2D
62373
62639
 
62374
62640
  case TableProperty/* ObliqueSplitLine.BottomRightOneLine */.lH.BottomRightOneLine:
62375
- this._crossShape.graphics.moveTo(0, 0);
62641
+ this._backImg.graphics.moveTo(0, 0);
62376
62642
 
62377
- this._crossShape.graphics.lineTo(this._dWidth, this._dHeight);
62643
+ this._backImg.graphics.lineTo(this._dWidth, this._dHeight);
62378
62644
 
62379
62645
  break;
62380
62646
 
62381
62647
  case TableProperty/* ObliqueSplitLine.BottomRightTwoLine */.lH.BottomRightTwoLine:
62382
- this._crossShape.graphics.moveTo(this._dWidth, this._dHeight);
62648
+ this._backImg.graphics.moveTo(this._dWidth, this._dHeight);
62383
62649
 
62384
- this._crossShape.graphics.lineTo(0, this._dHeight / 2);
62650
+ this._backImg.graphics.lineTo(0, this._dHeight / 2);
62385
62651
 
62386
- this._crossShape.graphics.moveTo(this._dWidth, this._dHeight);
62652
+ this._backImg.graphics.moveTo(this._dWidth, this._dHeight);
62387
62653
 
62388
- this._crossShape.graphics.lineTo(this._dWidth / 2, 0);
62654
+ this._backImg.graphics.lineTo(this._dWidth / 2, 0);
62389
62655
 
62390
62656
  break;
62391
62657
 
62392
62658
  case TableProperty/* ObliqueSplitLine.BottomLeftOneLine */.lH.BottomLeftOneLine:
62393
- this._crossShape.graphics.moveTo(0, this._dHeight);
62659
+ this._backImg.graphics.moveTo(0, this._dHeight);
62394
62660
 
62395
- this._crossShape.graphics.lineTo(this._dWidth, 0);
62661
+ this._backImg.graphics.lineTo(this._dWidth, 0);
62396
62662
 
62397
62663
  break;
62398
62664
 
62399
62665
  case TableProperty/* ObliqueSplitLine.BottomLeftTwoLine */.lH.BottomLeftTwoLine:
62400
- this._crossShape.graphics.moveTo(0, this._dHeight);
62666
+ this._backImg.graphics.moveTo(0, this._dHeight);
62401
62667
 
62402
- this._crossShape.graphics.lineTo(this._dWidth / 2, 0);
62668
+ this._backImg.graphics.lineTo(this._dWidth / 2, 0);
62403
62669
 
62404
- this._crossShape.graphics.moveTo(0, this._dHeight);
62670
+ this._backImg.graphics.moveTo(0, this._dHeight);
62405
62671
 
62406
- this._crossShape.graphics.lineTo(this._dWidth, this._dHeight / 2);
62672
+ this._backImg.graphics.lineTo(this._dWidth, this._dHeight / 2);
62407
62673
 
62408
62674
  break;
62409
62675
  }
62410
- }
62676
+ } // if (this._crossShape && !this.contains(this._crossShape)) {
62677
+ // this.addChildAt(this._crossShape, 1);
62678
+ // }
62411
62679
 
62412
- if (this._crossShape && !this.contains(this._crossShape)) {
62413
- this.addChildAt(this._crossShape, 1);
62414
- }
62415
62680
  }
62416
62681
  }, {
62417
62682
  key: "isFinishedPaint",
@@ -62463,9 +62728,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62463
62728
  _get$call2 = (0,slicedToArray/* default */.Z)(_get$call, 3),
62464
62729
  bret = _get$call2[0],
62465
62730
  aTop = _get$call2[1],
62466
- aRestHeight = _get$call2[2];
62731
+ aRestHeight = _get$call2[2]; // this._docHeight -= dTop;
62732
+
62467
62733
 
62468
- this._docHeight -= dTop;
62469
62734
  this.updateDHeight();
62470
62735
 
62471
62736
  var _this$_cell$table$get = this._cell.table.getCellRowCol(this._cell),
@@ -62558,14 +62823,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62558
62823
  }, {
62559
62824
  key: "startPaintBackGround",
62560
62825
  value: function startPaintBackGround() {
62561
- this._backImg.uncache();
62562
-
62826
+ //this._backImg.uncache();
62563
62827
  this._backImg.graphics.clear();
62564
62828
  }
62565
62829
  }, {
62566
62830
  key: "endPaintBackGround",
62567
- value: function endPaintBackGround(newHeight) {
62568
- this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
62831
+ value: function endPaintBackGround(newHeight) {// this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
62569
62832
  }
62570
62833
  }, {
62571
62834
  key: "paintMarker",
@@ -62630,7 +62893,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62630
62893
  var dWidth = this._dWidth - 0.5;
62631
62894
  var height = newHeight - 0.5;
62632
62895
 
62633
- this._backImg.graphics.setStrokeStyle(1);
62896
+ this._backImg.graphics.setStrokeStyle(0.5);
62634
62897
 
62635
62898
  if (r > this._drawPageTable.startRow) {
62636
62899
  y = -0.5;
@@ -62646,6 +62909,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62646
62909
  }
62647
62910
  }
62648
62911
 
62912
+ this._backImg.graphics.endStroke();
62913
+
62649
62914
  if (!this.contains(this._backImg)) {
62650
62915
  this.addChildAt(this._backImg, 0);
62651
62916
  } else {
@@ -62763,9 +63028,12 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62763
63028
  if (_newValignTop != this._valignTop) {
62764
63029
  this._valignTop = _newValignTop;
62765
63030
  var childCount = this._cell.drawCell.drawLines.length;
63031
+ var dPageCell = this._cell.drawCell.drawPageCells[this._cell.drawCell.drawPageCells.length - 1];
63032
+
63033
+ var pageTableIndex = this._cell.table.drawTable.drawPageTables.indexOf(dPageCell._drawPageTable);
63034
+
62766
63035
  var pageCellIndex = this._cell.drawCell.drawPageCells.length - 1;
62767
- var dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
62768
- var cellrestHeight = rowHeightArr[pageCellIndex];
63036
+ var cellrestHeight = rowHeightArr[pageTableIndex][0];
62769
63037
 
62770
63038
  for (var _i = childCount - 1; _i >= 0; _i--) {
62771
63039
  var dObj = this._cell.drawCell.drawLines[_i];
@@ -62774,7 +63042,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62774
63042
  while (pageCellIndex > 0 && cellrestHeight < dObj.dHeight) {
62775
63043
  pageCellIndex -= 1;
62776
63044
  dPageCell = this._cell.drawCell.drawPageCells[pageCellIndex];
62777
- cellrestHeight = rowHeightArr[pageCellIndex];
63045
+ pageTableIndex = this._cell.table.drawTable.drawPageTables.indexOf(dPageCell._drawPageTable);
63046
+ cellrestHeight = rowHeightArr[pageTableIndex][0];
62778
63047
  }
62779
63048
 
62780
63049
  if (!dPageCell.contains(dObj) && dObj.parent && dObj.parent.contains(dObj)) {
@@ -62810,7 +63079,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62810
63079
  var index = this.cell.drawCell.drawPageCells.indexOf(this);
62811
63080
  var innerTop = 0;
62812
63081
  var toparr = new Array();
62813
- var aHeight = 0;
63082
+ var pageHeight = 0;
63083
+ var drawTreeHeight = 0;
62814
63084
  var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
62815
63085
 
62816
63086
  if (index == 0) {
@@ -62824,27 +63094,38 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62824
63094
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
62825
63095
  var _this$calcCellHeight = this.calcCellHeight();
62826
63096
 
62827
- var _this$calcCellHeight2 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight, 2);
63097
+ var _this$calcCellHeight2 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight, 3);
62828
63098
 
62829
- aHeight = _this$calcCellHeight2[0];
62830
- toparr = _this$calcCellHeight2[1];
62831
- if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
63099
+ drawTreeHeight = _this$calcCellHeight2[0];
63100
+ pageHeight = _this$calcCellHeight2[1];
63101
+ toparr = _this$calcCellHeight2[2];
63102
+ if (pageHeight > this._cell.drawCell.docHeight) valignTop = (pageHeight - this._cell.drawCell.docHeight) / 2;
62832
63103
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
62833
63104
  var _this$calcCellHeight3 = this.calcCellHeight();
62834
63105
 
62835
- var _this$calcCellHeight4 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight3, 2);
63106
+ var _this$calcCellHeight4 = (0,slicedToArray/* default */.Z)(_this$calcCellHeight3, 3);
63107
+
63108
+ drawTreeHeight = _this$calcCellHeight4[0];
63109
+ pageHeight = _this$calcCellHeight4[1];
63110
+ toparr = _this$calcCellHeight4[2];
63111
+
63112
+ var pageTableIndex = this._cell.table.drawTable.drawPageTables.indexOf(this._drawPageTable);
62836
63113
 
62837
- aHeight = _this$calcCellHeight4[0];
62838
- toparr = _this$calcCellHeight4[1];
62839
63114
  var innerBottom = hoeditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
62840
- var restRowHeight = 0;
63115
+ var restRowHeight = 0; //当前表格后续页剩余高度
63116
+
63117
+ var prevDocHeight = 0; //当前表格之前的页占用的文档高度
63118
+
63119
+ for (var r = pageTableIndex + 1; r < toparr.length; r++) {
63120
+ restRowHeight += toparr[r][0];
63121
+ }
62841
63122
 
62842
- for (var r = index; r < toparr.length; r++) {
62843
- restRowHeight += toparr[r];
63123
+ for (var _r = 0; _r < pageTableIndex; _r++) {
63124
+ prevDocHeight += toparr[_r][1];
62844
63125
  }
62845
63126
 
62846
- if (aHeight > this._cell.drawCell.docHeight && this._cell.drawCell.docHeight < restRowHeight) {
62847
- valignTop = restRowHeight - this._cell.drawCell.docHeight - innerBottom;
63127
+ if (drawTreeHeight > this._cell.drawCell.docHeight) {
63128
+ valignTop = pageHeight - Math.max(0, this._cell.drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight);
62848
63129
  }
62849
63130
  }
62850
63131
 
@@ -62877,6 +63158,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62877
63158
  *
62878
63159
  * @returns
62879
63160
  * 返回单元格在所有分页上的总高度,以及每页高度数组
63161
+ * toalHeight pageHeight partCell.dHeight partCell.docHeight
62880
63162
  */
62881
63163
 
62882
63164
  }, {
@@ -62890,6 +63172,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62890
63172
  var ret = 0;
62891
63173
  var hoeditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID);
62892
63174
  var dTopArr = new Array();
63175
+ var pageHeight = 0;
62893
63176
 
62894
63177
  if (this._cell.cellProperty.align == TableProperty/* VAlign.vabottom */.TR.vabottom) {
62895
63178
  ret = 0;
@@ -62904,39 +63187,43 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
62904
63187
 
62905
63188
  var icount = this._cell.table.drawTable.drawPageTables.length;
62906
63189
  var index = 0;
62907
- var pageHeight = 0;
62908
63190
 
62909
63191
  for (var i = 0; i < icount; i++) {
62910
- dTopArr[index] = 0;
63192
+ dTopArr.push([0, 0]);
62911
63193
 
62912
- for (var _r = row, _count = this._cell.rowSpan + row - 1; _r <= _count; _r++) {
62913
- var dTable = this._cell.table.drawTable.drawPageTables[i];
63194
+ for (var _r2 = row, _count = this._cell.rowSpan + row - 1; _r2 <= _count; _r2++) {
63195
+ var dTable = this._cell.table.drawTable.drawPageTables[i]; //if (dTable.parent&&dTable.parent.contains(dTable) ){
62914
63196
 
62915
- if (dTable.parent && dTable.parent.contains(dTable)) {
62916
- var _rowInfos = dTable.partRowHeights.get(_r);
63197
+ var _rowInfos = dTable.partRowHeights.get(_r2);
62917
63198
 
62918
- if (_rowInfos) {
62919
- if (pageHeight < ret) {
62920
- pageHeight += _rowInfos.rowHeight;
62921
- dTopArr[index] += _rowInfos.rowHeight;
62922
- }
62923
- }
63199
+ if (_rowInfos) {
63200
+ dTopArr[index][0] += _rowInfos.rowHeight; // }
63201
+ }
63202
+
63203
+ var partCell = this._cell.drawCell.getDrawPageCell(dTable);
63204
+
63205
+ if (partCell) {
63206
+ dTopArr[index][1] = partCell.docHeight;
62924
63207
  }
62925
63208
 
62926
63209
  index += 1;
62927
63210
  }
62928
63211
  }
63212
+
63213
+ var dPageIndex = this._cell.table.drawTable.drawPageTables.indexOf(this._drawPageTable);
63214
+
63215
+ pageHeight = dTopArr[dPageIndex][0];
62929
63216
  } else if (this._cell.cellProperty.align == TableProperty/* VAlign.vacenter */.TR.vacenter) {
62930
- for (var _r2 = row, _count2 = this._cell.rowSpan + row - 1; _r2 <= _count2; _r2++) {
62931
- var _rowInfos2 = this._drawPageTable.partRowHeights.get(_r2);
63217
+ for (var _r3 = row, _count2 = this._cell.rowSpan + row - 1; _r3 <= _count2; _r3++) {
63218
+ var _rowInfos2 = this._drawPageTable.partRowHeights.get(_r3);
62932
63219
 
62933
63220
  if (_rowInfos2) {
62934
- ret += _rowInfos2.rowHeight;
63221
+ pageHeight += _rowInfos2.rowHeight;
62935
63222
  }
62936
63223
  }
62937
63224
  }
62938
63225
 
62939
- return [ret, dTopArr];
63226
+ return [ret, pageHeight, dTopArr];
62940
63227
  }
62941
63228
  }]);
62942
63229
 
@@ -63756,8 +64043,9 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
63756
64043
  }
63757
64044
 
63758
64045
  partCell.paintCellBackground(newHeight, r, c);
63759
- partCell.endPaintBackGround(newHeight);
63760
64046
  partCell.updateCrossShap();
64047
+ partCell.endPaintBackGround(newHeight); // partCell.updateCrossShap();
64048
+
63761
64049
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
63762
64050
 
63763
64051
  if (hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__/* .PaintState.psPrint */ .Dh.psPrint) {
@@ -64654,7 +64942,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
64654
64942
  _cell2.drawCell.drawPageCells.push(dPartCell);
64655
64943
 
64656
64944
  dPartCell.y = cellRowTop;
64657
- dPartCell.x = aleft; //this.drawItems.push(dPartCell);
64945
+
64946
+ if (_mc3 > 0) {
64947
+ dPartCell.x = aleft;
64948
+ } //this.drawItems.push(dPartCell);
64949
+
64658
64950
 
64659
64951
  this.addChild(dPartCell);
64660
64952
  var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
@@ -67403,16 +67695,21 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67403
67695
  _this = _super.call(this, "", font, color);
67404
67696
  _this._startIndex = startIndex;
67405
67697
  var lineUsedWidth = 0;
67406
- _this._chinesWordWidth = _this._getMeasuredWidth("中");
67698
+ _this._node = node;
67699
+
67700
+ if (node.dCombineStyle.chineseWidth == 0) {
67701
+ node.dCombineStyle.chineseWidth = _this._getMeasuredWidth("中");
67702
+ }
67703
+
67704
+ _this._chinesWordWidth = node.dCombineStyle.chineseWidth;
67407
67705
  _this._endIndex = -1;
67408
67706
  _this._docWidth = 0;
67409
67707
  var isFullLine = false;
67410
67708
  var lastTextWidth = 0;
67709
+ _this._maxWidth = maxWidth;
67411
67710
 
67412
67711
  for (var j = startIndex, jl = text.length; j < jl; j++) {
67413
- if (text.charCodeAt(j) >= 10000) {
67414
- lastTextWidth = _this._chinesWordWidth;
67415
- } else lastTextWidth = _this._getMeasuredWidth(text[j]);
67712
+ lastTextWidth = _this.getCharWidth(null, text[j]);
67416
67713
 
67417
67714
  if (lineUsedWidth + lastTextWidth > maxWidth && (j > 0 || !bPuctuation)) {
67418
67715
  isFullLine = true;
@@ -67433,7 +67730,7 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67433
67730
 
67434
67731
  if (UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText) && dLine && !_this.isFullLineNumEnglish(dLine, text.substr(startIndex, _this.endIndex - startIndex + 1))) {
67435
67732
  while (_this.endIndex >= startIndex && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText)) {
67436
- lastTextWidth = _this._getMeasuredWidth(endText);
67733
+ lastTextWidth = _this.getCharWidth(null, endText);
67437
67734
  _this.endIndex -= 1;
67438
67735
  _this._docWidth -= lastTextWidth;
67439
67736
  lineUsedWidth = lineUsedWidth - lastTextWidth - spacing;
@@ -67455,11 +67752,11 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67455
67752
  _this._endIndex = text.length - 1;
67456
67753
  }
67457
67754
 
67458
- _this._node = node;
67459
67755
  _this._dWidth = lineUsedWidth > 0 ? lineUsedWidth - spacing : 0;
67460
67756
 
67461
67757
  if (_this.endIndex > -1) {
67462
- _this._firstCharWidth = _this._getMeasuredWidth(node.text[startIndex]);
67758
+ _this._firstCharWidth = _this.getCharWidth(null, node.text[startIndex]); // (this as any)._getMeasuredWidth(node.text[startIndex]);
67759
+
67463
67760
  _this.text = node.text.substr(startIndex, _this._endIndex - startIndex + 1);
67464
67761
  _this._letterSpacing = spacing;
67465
67762
  } else {
@@ -67527,6 +67824,29 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67527
67824
  ctx.miterLimit = 10;
67528
67825
  return ctx;
67529
67826
  }
67827
+ }, {
67828
+ key: "getCharWidth",
67829
+ value: function getCharWidth(ctx, akey) {
67830
+ var wordW = 0;
67831
+
67832
+ if (akey.charCodeAt(0) >= 10000) {
67833
+ wordW = this._chinesWordWidth;
67834
+ } else {
67835
+ wordW = this._node.dCombineStyle.getEnglishWidth(akey);
67836
+
67837
+ if (wordW == 0) {
67838
+ if (ctx) {
67839
+ wordW = ctx.measureText(akey).width;
67840
+ } else {
67841
+ wordW = this._getMeasuredWidth(akey);
67842
+ }
67843
+
67844
+ this._node.dCombineStyle.setEnglishWidth(akey, wordW);
67845
+ }
67846
+ }
67847
+
67848
+ return wordW;
67849
+ }
67530
67850
  }, {
67531
67851
  key: "_drawText",
67532
67852
  value: function _drawText(ctx, o, lines) {
@@ -67565,21 +67885,16 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67565
67885
  // let spaceCharAfter = 0;
67566
67886
  // let brecordSpace = true;
67567
67887
 
67568
- this._firstCharWidth = this._getMeasuredWidth(str[0]);
67888
+ this._firstCharWidth = this.getCharWidth(ctx, str[0]);
67569
67889
 
67570
67890
  for (var j = 0, jl = str.length; j < jl; j++) {
67571
67891
  // Line needs to wrap:
67572
- var wordW = 0;
67573
-
67574
- if (str.charCodeAt(j) >= 10000) {
67575
- wordW = this._chinesWordWidth;
67576
- } else wordW = this._getMeasuredWidth(str[j]); // if (brecordSpace && (str[j] ==' '||str[j] ==' '||str[j] ==' ' )) {
67892
+ var wordW = this.getCharWidth(ctx, str[j]); // if (brecordSpace && (str[j] ==' '||str[j] ==' '||str[j] ==' ' )) {
67577
67893
  // charStart += 1;
67578
67894
  // } else {
67579
67895
  // brecordSpace = false;
67580
67896
  // }
67581
67897
 
67582
-
67583
67898
  if (ctx instanceof CanvasRenderingContext2D) {
67584
67899
  //if ((ctx as any).name ==undefined ||(ctx as any).name!=='canvas2svg') {
67585
67900
  if (this.outline) {
@@ -67619,9 +67934,9 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67619
67934
  // }
67620
67935
  // }
67621
67936
  if (this.outline) {
67622
- ctx.strokeText(str, 0, 0, docWidth || 0xffff);
67937
+ ctx.strokeText(str, 0, 0, docWidth || this._maxWidth);
67623
67938
  } else {
67624
- ctx.fillText(str, 0, 0, docWidth || 0xffff);
67939
+ ctx.fillText(str, 0, 0, docWidth || this._maxWidth);
67625
67940
  }
67626
67941
  }
67627
67942
 
@@ -67646,11 +67961,7 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67646
67961
  var str = this.text;
67647
67962
 
67648
67963
  for (var i = 0, len = this.text.length; i < len; i++) {
67649
- var wordW = 0;
67650
-
67651
- if (str.charCodeAt(i) >= 10000) {
67652
- wordW = this._chinesWordWidth;
67653
- } else wordW = this._getMeasuredWidth(str[i]);
67964
+ var wordW = this.getCharWidth(null, str[i]);
67654
67965
 
67655
67966
  if (x < left + wordW + this._letterSpacing) {
67656
67967
  var mid = left + (wordW + this._letterSpacing) / 2;
@@ -67675,9 +67986,9 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
67675
67986
  var totalWidth = 0;
67676
67987
 
67677
67988
  for (var i = 0; i <= end; i++) {
67678
- if (this.text.charCodeAt(i) >= 10000) {
67679
- textWidth = this._chinesWordWidth;
67680
- } else textWidth = this._getMeasuredWidth(this.text[i]);
67989
+ textWidth = this.getCharWidth(null, this.text[i]); // if (this.text.charCodeAt(i) >= 10000) {
67990
+ // textWidth = this._chinesWordWidth;
67991
+ // } else textWidth = (this as any)._getMeasuredWidth(this.text[i]);
67681
67992
 
67682
67993
  totalWidth = totalWidth + textWidth + this._letterSpacing;
67683
67994
  }
@@ -75951,6 +76262,8 @@ var web_dom_collections_for_each = __webpack_require__(54747);
75951
76262
  var es_error_cause = __webpack_require__(21703);
75952
76263
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
75953
76264
  var es_array_concat = __webpack_require__(92222);
76265
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
76266
+ var es_array_splice = __webpack_require__(40561);
75954
76267
  // EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
75955
76268
  var DocTree = __webpack_require__(23375);
75956
76269
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
@@ -76100,6 +76413,7 @@ var ParagraphNode = __webpack_require__(14208);
76100
76413
 
76101
76414
 
76102
76415
 
76416
+
76103
76417
 
76104
76418
 
76105
76419
  var Operate = /*#__PURE__*/(0,createClass/* default */.Z)(function Operate(act, ext) {
@@ -76332,7 +76646,16 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
76332
76646
 
76333
76647
 
76334
76648
  this.spliteNode(range.clone());
76335
- var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, this._oldpairs.start, this._newpairs.end); // console.log(nodes);
76649
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, this._oldpairs.start, this._newpairs.end);
76650
+
76651
+ if (nodes.length > 0) {
76652
+ var preNode = nodes[0].previousLeaf();
76653
+
76654
+ if (preNode instanceof ParagraphNode/* ParagraphNode */.C) {
76655
+ nodes.splice(0, 0, preNode);
76656
+ }
76657
+ } // console.log(nodes);
76658
+
76336
76659
 
76337
76660
  var aOperate = this._operate;
76338
76661
 
@@ -114592,7 +114915,7 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
114592
114915
  */Context2D.prototype.fillText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!=="string"){console.error("jsPDF.context2d.fillText: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.fillText");}maxWidth=isNaN(maxWidth)?undefined:maxWidth;if(isFillTransparent.call(this)){return;}var degs=rad2deg(this.ctx.transform.rotation);// We only use X axis as scale hint
114593
114916
  var scale=this.ctx.transform.scaleX;var acharSpace=this.letterSpacing?parseFloat(this.letterSpacing):0.0;//自定义修改 以处理宋体粗体
114594
114917
  if(this.font.indexOf("SimSun")>=0&&this.font.indexOf("bold")>=0){//renderingMode: "stroke",
114595
- putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,renderingMode:"fillThenStroke",charSpace:acharSpace+1});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
114918
+ putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,renderingMode:"fillThenStroke",charSpace:acharSpace+0.35});}else{putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth,charSpace:acharSpace});}};/**
114596
114919
  * Draws text on the canvas (no fill)
114597
114920
  *
114598
114921
  * @name strokeText
@@ -209182,15 +209505,15 @@ var map = {
209182
209505
  "./pageInfoes/PageInfoes.vue": 67977,
209183
209506
  "./paragraph/ParagraphDialog.vue": 32679,
209184
209507
  "./poperSelect/PoperMark.vue": 93069,
209185
- "./poperSelect/PoperSelect.vue": 42498,
209508
+ "./poperSelect/PoperSelect.vue": 64696,
209186
209509
  "./poperTipText/PoperTipText.vue": 44523,
209187
209510
  "./popers/Poper.vue": 25425,
209188
209511
  "./popers/Title.vue": 40168,
209189
209512
  "./printstyle/PrintLineStyle.vue": 90069,
209190
209513
  "./qrCode/QrCode.vue": 67776,
209191
209514
  "./radioCheckBox/RadioCheckbox.vue": 48961,
209192
- "./selectDialog/SelectDialog.vue": 54891,
209193
- "./sign/Sign.vue": 37542,
209515
+ "./selectDialog/SelectDialog.vue": 89365,
209516
+ "./sign/Sign.vue": 28663,
209194
209517
  "./table/TableCellPoper.vue": 43529,
209195
209518
  "./table/TableCellProperty.vue": 52445,
209196
209519
  "./table/TableColProperty.vue": 17479,
@@ -210919,9 +211242,9 @@ var es_string_match = __webpack_require__(4723);
210919
211242
  var es_number_constructor = __webpack_require__(9653);
210920
211243
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
210921
211244
  var es_json_stringify = __webpack_require__(38862);
210922
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=6e6c8103&
210923
- var HoDocvue_type_template_id_6e6c8103_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
210924
- var HoDocvue_type_template_id_6e6c8103_staticRenderFns = []
211245
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=9c9d5b12&
211246
+ var HoDocvue_type_template_id_9c9d5b12_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本:   "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
211247
+ var HoDocvue_type_template_id_9c9d5b12_staticRenderFns = []
210925
211248
 
210926
211249
 
210927
211250
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
@@ -211614,7 +211937,10 @@ var DrawSelectLevel = /*#__PURE__*/function () {
211614
211937
  // }
211615
211938
  hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
211616
211939
  hoeditorfactory.drawTree.selectRange.spEnd = endPos;
211617
- hoeditorfactory.drawTree.drawSelectRange();
211940
+
211941
+ if (endPos.path != '') {
211942
+ hoeditorfactory.drawTree.drawSelectRange();
211943
+ }
211618
211944
  }
211619
211945
  }
211620
211946
  } //return true;
@@ -212850,7 +213176,7 @@ var DrawPage = __webpack_require__(65870);
212850
213176
  // EXTERNAL MODULE: ./src/plugins/util.ts
212851
213177
  var util = __webpack_require__(33913);
212852
213178
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
212853
- var PoperSelect = __webpack_require__(42498);
213179
+ var PoperSelect = __webpack_require__(64696);
212854
213180
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
212855
213181
  var PoperMark = __webpack_require__(93069);
212856
213182
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -214562,7 +214888,7 @@ var SignNode = __webpack_require__(34450);
214562
214888
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
214563
214889
  var ParagraphNode = __webpack_require__(14208);
214564
214890
  ;// CONCATENATED MODULE: ./src/components/version.ts
214565
- /* harmony default export */ var version = ('2.0.107');
214891
+ /* harmony default export */ var version = ('2.0.109');
214566
214892
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
214567
214893
  var PoperTipText = __webpack_require__(44523);
214568
214894
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -214927,19 +215253,27 @@ var ImageNode = __webpack_require__(88389);
214927
215253
  if (dPage && dPage.needUpdateStage && dPage.drawDomLevel) {
214928
215254
  hoEditorFactory.drawPageTree.updateDrawPage(dPage.pageIndex);
214929
215255
  dPage.needUpdateStage = false;
215256
+ } // intersectionRatio <= 0 代表目标页不在文档可视区内
215257
+ // isIntersecting = true 代表目标页进入可视区 false代表离开可视区
215258
+
215259
+
215260
+ if (v.isIntersecting && v.intersectionRatio == 0) {
215261
+ console.warn('进入可视区但是相交区域=0');
214930
215262
  }
214931
215263
 
214932
- if (v.intersectionRatio === 0) {
214933
- inViewPages = inViewPages.filter(function (v) {
214934
- return v !== pageIndex;
215264
+ if (v.intersectionRatio <= 0 && !v.isIntersecting) {
215265
+ inViewPages = inViewPages.filter(function (m) {
215266
+ return m !== pageIndex;
214935
215267
  });
214936
- } else {
214937
- inViewPages.includes(dPage.pageIndex) ? null : inViewPages.push(dPage.pageIndex);
215268
+ } else if (!inViewPages.includes(pageIndex)) {
215269
+ inViewPages.push(pageIndex);
214938
215270
  }
214939
215271
 
214940
- inViewPages = inViewPages.filter(function (v) {
214941
- return v < len;
214942
- }).sort();
215272
+ inViewPages = inViewPages.filter(function (m) {
215273
+ return m < len;
215274
+ }).sort(function (a, b) {
215275
+ return a < b;
215276
+ });
214943
215277
  });
214944
215278
  _this3.inViewPages = (0,toConsumableArray/* default */.Z)(inViewPages);
214945
215279
  hoEditorFactory.drawTree.inViewPages = (0,toConsumableArray/* default */.Z)(inViewPages);
@@ -214948,7 +215282,7 @@ var ImageNode = __webpack_require__(88389);
214948
215282
  }, {
214949
215283
  root: null,
214950
215284
  rootMargin: '0px',
214951
- threshold: [0, 1]
215285
+ threshold: [0, 0.8]
214952
215286
  });
214953
215287
  },
214954
215288
  setActiveDocIndex: function setActiveDocIndex(hoEditorId) {
@@ -215346,8 +215680,8 @@ var ImageNode = __webpack_require__(88389);
215346
215680
 
215347
215681
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
215348
215682
  components_HoDocvue_type_script_lang_js_,
215349
- HoDocvue_type_template_id_6e6c8103_render,
215350
- HoDocvue_type_template_id_6e6c8103_staticRenderFns,
215683
+ HoDocvue_type_template_id_9c9d5b12_render,
215684
+ HoDocvue_type_template_id_9c9d5b12_staticRenderFns,
215351
215685
  false,
215352
215686
  null,
215353
215687
  null,
@@ -216270,8 +216604,11 @@ var DrawPageTree = /*#__PURE__*/function () {
216270
216604
  }
216271
216605
  }
216272
216606
 
216273
- if (hoEditorFactory.isUseDrawingOptimization && drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && dRoots.length > 1) {
216607
+ if (hoEditorFactory.isUseDrawingOptimization && !callFromPaint && drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && dRoots.length > 1) {
216274
216608
  startLine = this.calcStartLine(drawArea);
216609
+ startIndex = startLine;
216610
+ nextDlineTop = 0;
216611
+ dTop = 0;
216275
216612
  drawArea.removeAllChildren();
216276
216613
  } //----------
216277
216614
 
@@ -217344,6 +217681,10 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217344
217681
  size = size / 96 * 72;
217345
217682
  }
217346
217683
 
217684
+ if (size == 11) {
217685
+ size = 12;
217686
+ }
217687
+
217347
217688
  tmp.size = size;
217348
217689
  }
217349
217690
  }
@@ -217547,8 +217888,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217547
217888
 
217548
217889
  for (var j = 0; j < trs.length; j++) {
217549
217890
  //for (let j = 0; j < rows.length; j++) {
217550
- var rowProperty = new TableProperty/* RowProperty */.Nr("");
217551
- rowProperty.isSpecifyHeight = true;
217891
+ var rowProperty = new TableProperty/* RowProperty */.Nr(""); //rowProperty.isSpecifyHeight = true;
217892
+
217552
217893
  var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
217553
217894
  var height = jquery_default()(trs[j]).css("height");
217554
217895
 
@@ -217628,30 +217969,27 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217628
217969
  if (td) {
217629
217970
  width = calcColWidth(td);
217630
217971
  } else {
217631
- var valArr = new Array();
217632
-
217633
- for (var m = 0; m < rows.length; m++) {
217634
- if (m != maxcol && rows[m][k]) {
217635
- var colWidth = calcColWidth(rows[m][k]);
217636
- valArr.push(colWidth);
217637
- }
217638
- }
217639
-
217640
- if (valArr.length == 0) {
217641
- width = 30;
217642
- } else if (valArr.length == 1) {
217643
- width = valArr[0];
217644
- } else {
217645
- var minVal = valArr[0];
217646
-
217647
- for (var h = 1; h < valArr.length; h++) {
217648
- if (minVal > valArr[h]) {
217649
- minVal = valArr[h];
217650
- }
217651
- }
217652
-
217653
- width = minVal;
217654
- }
217972
+ // let valArr = new Array<number>();
217973
+ // for (let m = 0; m < rows.length; m++) {
217974
+ // if (m != maxcol && rows[m][k]) {
217975
+ // const colWidth = calcColWidth(rows[m][k] as ChildNode);
217976
+ // valArr.push(colWidth);
217977
+ // }
217978
+ // }
217979
+ // if (valArr.length == 0) {
217980
+ // width = 30;
217981
+ // } else if (valArr.length == 1) {
217982
+ // width = valArr[0];
217983
+ // } else {
217984
+ // let minVal = valArr[0];
217985
+ // for (let h = 1; h < valArr.length; h++) {
217986
+ // if (minVal > valArr[h]) {
217987
+ // minVal = valArr[h];
217988
+ // }
217989
+ // }
217990
+ // width = minVal;
217991
+ // }
217992
+ width = 30;
217655
217993
  }
217656
217994
 
217657
217995
  if (width == 0) {
@@ -217898,19 +218236,36 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217898
218236
  var result = new Array();
217899
218237
 
217900
218238
  var getText = function getText(text) {
217901
- var index1 = text.indexOf("<上标>");
217902
- var index2 = text.indexOf("<上标/>");
217903
- result.push({
217904
- "mark": 0,
217905
- "text": text.substring(0, index1)
217906
- });
217907
- result.push({
217908
- "mark": 1,
217909
- "text": text.substring(index1 + 4, index2)
217910
- });
217911
- text = text.substring(index2 + 5, text.length);
218239
+ var index1 = -1;
218240
+ var index2 = -1;
217912
218241
 
217913
218242
  if (text.indexOf("<上标>") >= 0) {
218243
+ index1 = text.indexOf("<上标>");
218244
+ index2 = text.indexOf("<上标/>");
218245
+ result.push({
218246
+ "mark": 0,
218247
+ "text": text.substring(0, index1)
218248
+ });
218249
+ result.push({
218250
+ "mark": 1,
218251
+ "text": text.substring(index1 + 4, index2)
218252
+ });
218253
+ } else {
218254
+ index1 = text.indexOf("<下标>");
218255
+ index2 = text.indexOf("<下标/>");
218256
+ result.push({
218257
+ "mark": 0,
218258
+ "text": text.substring(0, index1)
218259
+ });
218260
+ result.push({
218261
+ "mark": 2,
218262
+ "text": text.substring(index1 + 4, index2)
218263
+ });
218264
+ }
218265
+
218266
+ text = text.substring(index2 + 5, text.length);
218267
+
218268
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
217914
218269
  getText(text);
217915
218270
  } else {
217916
218271
  result.push({
@@ -217920,7 +218275,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217920
218275
  }
217921
218276
  };
217922
218277
 
217923
- if (text.indexOf("<上标>") >= 0) {
218278
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
217924
218279
  getText(text);
217925
218280
  }
217926
218281
 
@@ -217929,6 +218284,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217929
218284
  result.forEach(function (value, key) {
217930
218285
  if (value.mark === 1) {
217931
218286
  styleobj["vertical_align"] = "super";
218287
+ } else if (value.mark === 2) {
218288
+ styleobj["vertical_align"] = "sub";
217932
218289
  } else {
217933
218290
  styleobj["vertical_align"] = "";
217934
218291
  }
@@ -217990,8 +218347,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
217990
218347
  var node = table.rows[r][c];
217991
218348
 
217992
218349
  if (node) {
217993
- var _node$childNodes;
217994
-
217995
218350
  node.rowSpan = parseInt(jquery_default()(jnode).attr('rowSpan') || '1') || 1;
217996
218351
  node.colSpan = parseInt(jquery_default()(jnode).attr('colSpan') || '1') || 1;
217997
218352
  var styleobject = this.mergestyle(jquery_default()(jnode).attr("style") || '', '');
@@ -218020,22 +218375,29 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218020
218375
  }
218021
218376
 
218022
218377
  if (tmp.length > 0 && tmp[0] instanceof ParagraphNode/* ParagraphNode */.C) {
218023
- node.childNodes.splice(0, node.childNodes.length);
218378
+ node.childNodes.splice(1, node.childNodes.length);
218024
218379
  }
218025
218380
 
218026
- tmp.forEach(function (value) {
218027
- value.parentNode = node; //FIXME:这里没有考虑表格嵌套时候
218381
+ for (var h = 0; h < tmp.length; h++) {
218382
+ var anode = tmp[h];
218383
+
218384
+ if (h == 0 && anode instanceof ParagraphNode/* ParagraphNode */.C) {
218385
+ node.childNodes[0].styleIndex = anode.styleIndex;
218386
+ continue;
218387
+ }
218388
+
218389
+ anode.parentNode = node; //FIXME:这里没有考虑表格嵌套时候
218028
218390
 
218029
- if (value instanceof ParagraphNode/* ParagraphNode */.C) {
218030
- value.drawlines.forEach(function (value) {
218031
- value.dWidth = table.colInfos[c].colWidth;
218391
+ if (anode instanceof ParagraphNode/* ParagraphNode */.C) {
218392
+ anode.drawlines.forEach(function (value) {
218393
+ value.dWidth = table.colInfos[c].colWidth; //value.dHeight = table.rowInfos[r].rowHeight;
218032
218394
  });
218033
218395
  }
218034
- });
218035
218396
 
218036
- (_node$childNodes = node.childNodes).push.apply(_node$childNodes, tmp);
218397
+ node.childNodes.push(anode);
218398
+ } //node.childNodes.push(...tmp);
218399
+ //node.cell2DrawNode(r, c);
218037
218400
 
218038
- node.cell2DrawNode(r, c);
218039
218401
  }
218040
218402
  }
218041
218403
  }]);
@@ -219112,78 +219474,31 @@ var StructureConvert = /*#__PURE__*/function () {
219112
219474
  }, {
219113
219475
  key: "xml2Doc",
219114
219476
  value: function xml2Doc(xml, isClearSign) {
219115
- // xml = this.replaceNodesName(xml);
219116
- // const x2js = new X2JS({ stripWhitespaces: false });
219117
- // const object = x2js.xml2js(xml);
219118
- // const json = JSON.parse(JSON.stringify(object));
219119
- // if (!json.root && !json.rvxml) {
219120
- // return;
219121
- // }
219122
- // if (json.root) {
219123
- // const root = json.root;
219124
- // //处理页眉
219125
- // let headers = root.headers.header;
219126
- // if (headers.length === undefined) {
219127
- // headers = Array(root.headers.header);
219128
- // }
219129
- // const headerArrays = new Array<Array<any>>();
219130
- // for (let hi = 0; hi < headers.length; hi++) {
219131
- // const index = parseInt(headers[hi].index);
219132
- // let headerNodes = headers[hi].node;
219133
- // if (headerNodes.length === undefined) {
219134
- // headerNodes = Array(headers[hi].node);
219135
- // }
219136
- // for (let hj = 0; hj < headerNodes.length; hj++) {
219137
- // const node = headerNodes[hj];
219138
- // if (!headerArrays[index]) {
219139
- // headerArrays[index] = new Array<any>();
219140
- // }
219141
- // headerArrays[index][hj] = node;
219142
- // }
219143
- // }
219144
- // let footers = root.footers.footer;
219145
- // if (footers.length === undefined) {
219146
- // footers = Array(root.footers.footer);
219147
- // }
219148
- // const footerArrays = new Array<Array<any>>();
219149
- // for (let fi = 0; fi < footers.length; fi++) {
219150
- // const index = parseInt(footers[fi].index);
219151
- // let footerNodes = footers[fi].node;
219152
- // if (footerNodes.length === undefined) {
219153
- // footerNodes = Array(footers[fi].node);
219154
- // }
219155
- // for (let fj = 0; fj < footerNodes.length; fj++) {
219156
- // const node = footerNodes[fj];
219157
- // if (!footerArrays[index]) {
219158
- // footerArrays[index] = new Array<any>();
219159
- // }
219160
- // footerArrays[index][fj] = node;
219161
- // }
219162
- // }
219163
- //this.xmlBeauty(xml)
219164
219477
  var aobject = this.xml2Object(xml);
219165
219478
 
219166
219479
  if (aobject) {
219167
219480
  return this.json2Doc(aobject, isClearSign);
219168
- } // if (json.rvxml) {
219169
- // const rvxml = json.rvxml;
219170
- // return;
219171
- // }
219172
-
219481
+ }
219173
219482
  }
219174
219483
  }, {
219175
219484
  key: "xml2Object",
219176
219485
  value: function xml2Object(xml) {
219177
- xml = this.replaceNodesName(xml);
219486
+ // console.time("replaceNodesName");
219487
+ xml = this.replaceNodesName(xml); // console.timeEnd("replaceNodesName");
219488
+
219178
219489
  var x2js = new (x2js_default())({
219179
219490
  stripWhitespaces: false
219180
- });
219181
- var object = x2js.xml2js(xml);
219182
- var json = JSON.parse(JSON.stringify(object));
219491
+ }); // console.time("xml2js");
219492
+
219493
+ var object = x2js.xml2js(xml); // console.timeEnd("xml2js");
219494
+ // const json = JSON.parse(JSON.stringify(object));
219495
+
219496
+ var json = object;
219183
219497
 
219184
219498
  if (!json.root && !json.rvxml) {
219185
219499
  return null;
219186
- }
219500
+ } // console.time("return");
219501
+
219187
219502
 
219188
219503
  if (json.root) {
219189
219504
  var root = json.root; //处理页眉
@@ -219263,7 +219578,8 @@ var StructureConvert = /*#__PURE__*/function () {
219263
219578
  }
219264
219579
  }
219265
219580
 
219266
- var footerSubDocTree = new Array();
219581
+ var footerSubDocTree = new Array(); // console.timeEnd("return");
219582
+
219267
219583
  return {
219268
219584
  docProperty: root.docProperty,
219269
219585
  pageSettings: root.pageSettings,
@@ -219769,51 +220085,8 @@ var StructureConvert = /*#__PURE__*/function () {
219769
220085
  }, {
219770
220086
  key: "json2Doc",
219771
220087
  value: function json2Doc(xx, isClearSign) {
220088
+ // console.time("json2Doc");
219772
220089
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219773
- /*
219774
- const pushChildNodes = (
219775
- node: BaseNode | undefined,
219776
- temp: any,
219777
- rootNodes: any,
219778
- nodes: BaseNode[]
219779
- ) => {
219780
- if (node instanceof TextInputFieldNode) {
219781
- let childNodes = temp.childNodes.node;
219782
- if (childNodes.length === undefined) {
219783
- childNodes = Array(temp.childNodes.node);
219784
- }
219785
- if (childNodes) {
219786
- let childsMap = new Map<any, any>();
219787
- childsMap.set(childNodes, node);
219788
- do {
219789
- const childMap = new Map<any, any>();
219790
- childsMap.forEach((value, key) => {
219791
- childMap.clear();
219792
- for (let mj = 0; mj < key.length; mj++) {
219793
- const childNode = hoEditorFactory.structureConvert.convertNode(
219794
- key[mj],
219795
- rootNodes,
219796
- value
219797
- );
219798
- if (childNode) {
219799
- if (childNode instanceof BaseCombineNode) {
219800
- childNode.childNodes.forEach((value, key) => {
219801
- childNode.removeChild(value);
219802
- });
219803
- childMap.set(key[mj].childNodes.childNode, childNode);
219804
- }
219805
- nodes.push(childNode);
219806
- }
219807
- }
219808
- });
219809
- childsMap.clear();
219810
- childsMap = childMap;
219811
- } while (childsMap.size > 0);
219812
- }
219813
- }
219814
- };
219815
- */
219816
-
219817
220090
  var propertyJson = xx.docProperty;
219818
220091
 
219819
220092
  if (propertyJson) {
@@ -219876,23 +220149,7 @@ var StructureConvert = /*#__PURE__*/function () {
219876
220149
  if (!isClearSign) {
219877
220150
  var comments = xx.comments;
219878
220151
  this._comments = comments.comment;
219879
- } // if (xx.logs) {
219880
- // const logs = xx.logs;
219881
- // let logsArr = [];
219882
- // if (logs.log.length === undefined) {
219883
- // logsArr = Array(logs.log);
219884
- // } else {
219885
- // logsArr = logs.log;
219886
- // }
219887
- // hoEditorFactory.docTree.logRecords = [];
219888
- // for (let l = 0; l < logsArr.length; l++) {
219889
- // const log = new LogRecord();
219890
- // log.operator = logsArr[l].operator;
219891
- // log.operTime = logsArr[l].operTime;
219892
- // log.operType = logsArr[l].operType;
219893
- // hoEditorFactory.docTree.logRecords.push(log);
219894
- // }
219895
- // }
220152
+ } // console.time("histories");
219896
220153
 
219897
220154
 
219898
220155
  hoEditorFactory.docTree.userHistories = [];
@@ -219909,7 +220166,9 @@ var StructureConvert = /*#__PURE__*/function () {
219909
220166
  Object.assign(history, historyObj);
219910
220167
  history.permissionLevel = Number(historyObj.permissionLevel);
219911
220168
  hoEditorFactory.docTree.userHistories.push(history);
219912
- }
220169
+ } // console.timeEnd("histories");
220170
+ // console.time("styles");
220171
+
219913
220172
 
219914
220173
  var styles = xx.styles;
219915
220174
  hoEditorFactory.docTree.styles = [];
@@ -219938,84 +220197,17 @@ var StructureConvert = /*#__PURE__*/function () {
219938
220197
  v.font = '宋体';
219939
220198
  }
219940
220199
  });
219941
- } // for (let i = 0; i < fontStyles.length; i++) {
219942
- // const fontStyle = fontStyles[i];
219943
- // const textStyle = new TextStyle(this._hoEditorFactoryID);
219944
- // //Object.assign(textStyle, fontStyle);
219945
- // if (typeof fontStyle["size"] !== "undefined") {
219946
- // textStyle.size = parseInt(fontStyle["size"]);
219947
- // }
219948
- // if (typeof fontStyle["font"] !== "undefined") {
219949
- // textStyle.font = fontStyle["font"];
219950
- // }
219951
- // if (typeof fontStyle["color"] !== "undefined") {
219952
- // textStyle.color = fontStyle["color"];
219953
- // }
219954
- // if (typeof fontStyle["backColor"] !== "undefined") {
219955
- // textStyle.backColor = fontStyle["backColor"];
219956
- // }
219957
- // if (typeof fontStyle["bold"] !== "undefined") {
219958
- // textStyle.bold = fontStyle["bold"] === "true" ? true : false;
219959
- // }
219960
- // if (typeof fontStyle["italic"] !== "undefined") {
219961
- // textStyle.italic = fontStyle["italic"] === "true" ? true : false;
219962
- // }
219963
- // if (typeof fontStyle["underline"] !== "undefined") {
219964
- // textStyle.underline = fontStyle["underline"] === "true" ? true : false;
219965
- // }
219966
- // if (typeof fontStyle["strikeout"] !== "undefined") {
219967
- // textStyle.strikeout = fontStyle["strikeout"] === "true" ? true : false;
219968
- // }
219969
- // if (typeof fontStyle["script"] !== "undefined") {
219970
- // textStyle.script = parseInt(fontStyle["script"]);
219971
- // }
219972
- // if (typeof fontStyle["creatorIndex"] !== "undefined") {
219973
- // textStyle.creatorIndex = parseInt(fontStyle["creatorIndex"]);
219974
- // }
219975
- // if (typeof fontStyle["deleterIndex"] !== "undefined") {
219976
- // textStyle.deleterIndex = parseInt(fontStyle["deleterIndex"]);
219977
- // }
219978
- // if (typeof fontStyle["commentID"] !== "undefined") {
219979
- // textStyle.commentID = fontStyle["commentID"];
219980
- // }
219981
- // hoEditorFactory.docTree.styles.push(textStyle);
219982
- // }
219983
-
220200
+ }
219984
220201
 
219985
220202
  if (fontStyles) {
219986
220203
  var textStyles = this.getDocStyles("font", fontStyles);
219987
220204
  hoEditorFactory.docTree.styles = hoEditorFactory.docTree.styles.concat(textStyles);
219988
- }
220205
+ } // console.timeEnd("styles");
220206
+
219989
220207
 
219990
220208
  hoEditorFactory.docTree.paragraphs = [];
219991
220209
  var defaultParaStyle = new Paragraph/* Paragraph */.nv(this._hoEditorFactoryID);
219992
220210
  hoEditorFactory.docTree.paragraphs.push(defaultParaStyle); //先把默认的样式放进去
219993
- // for (let i = 0; i < paraStyles.length; i++) {
219994
- // const paraStyle = paraStyles[i];
219995
- // const paragraph: Paragraph = new Paragraph(this._hoEditorFactoryID);
219996
- // if (typeof paraStyle["leftMarginMm"] !== "undefined") {
219997
- // paragraph.leftMargin = parseInt(paraStyle["leftMarginMm"]);
219998
- // }
219999
- // if (typeof paraStyle["rightMarginMm"] !== "undefined") {
220000
- // paragraph.rightMargin = parseInt(paraStyle["rightMarginMm"]);
220001
- // }
220002
- // if (typeof paraStyle["topMarginMm"] !== "undefined") {
220003
- // paragraph.topMargin = parseInt(paraStyle["topMarginMm"]);
220004
- // }
220005
- // if (typeof paraStyle["bottomMarginMm"] !== "undefined") {
220006
- // paragraph.bottomMargin = parseInt(paraStyle["bottomMarginMm"]);
220007
- // }
220008
- // if (typeof paraStyle["align"] !== "undefined") {
220009
- // paragraph.align = parseInt(paraStyle["align"]);
220010
- // }
220011
- // if (typeof paraStyle["charSpace"] !== "undefined") {
220012
- // paragraph.charSpace = parseInt(paraStyle["charSpace"]);
220013
- // }
220014
- // if (typeof paraStyle["lineSpace"] !== "undefined") {
220015
- // paragraph.lineSpace = parseInt(paraStyle["lineSpace"]);
220016
- // }
220017
- // hoEditorFactory.docTree.paragraphs.push(paragraph);
220018
- // }
220019
220211
 
220020
220212
  if (paraStyles) {
220021
220213
  var parasStyles = this.getDocStyles("para", paraStyles);
@@ -220023,7 +220215,7 @@ var StructureConvert = /*#__PURE__*/function () {
220023
220215
  }
220024
220216
 
220025
220217
  var headersArray = xx.header;
220026
- var headerNodes = new Array();
220218
+ var headerNodes = new Array(); // console.time("headersArray");
220027
220219
 
220028
220220
  if (headersArray) {
220029
220221
  for (var hi = 0; hi < headersArray.length; hi++) {
@@ -220080,7 +220272,9 @@ var StructureConvert = /*#__PURE__*/function () {
220080
220272
  }
220081
220273
  }
220082
220274
  }
220083
- }
220275
+ } // console.timeEnd("headersArray");
220276
+ // console.time("footersArray");
220277
+
220084
220278
 
220085
220279
  var footersArray = xx.footer; // console.log(footersArray)
220086
220280
 
@@ -220142,7 +220336,9 @@ var StructureConvert = /*#__PURE__*/function () {
220142
220336
  }
220143
220337
  }
220144
220338
  }
220145
- }
220339
+ } // console.timeEnd("footersArray");
220340
+ // console.time("mainArray");
220341
+
220146
220342
 
220147
220343
  var mainArray = xx.main;
220148
220344
  var mainNodes = new Array();
@@ -220152,9 +220348,16 @@ var StructureConvert = /*#__PURE__*/function () {
220152
220348
 
220153
220349
  if (!temp) {
220154
220350
  continue;
220155
- }
220351
+ } // if([2,10,14,19,24,40,54,65].includes(mi)) {
220352
+ // console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
220353
+ // }
220354
+
220355
+
220356
+ var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign); // if([2,10,14,19,24,40,54,65].includes(mi)) {
220357
+ // console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
220358
+ // console.log(temp);
220359
+ // }
220156
220360
 
220157
- var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
220158
220361
 
220159
220362
  if (_node3) {
220160
220363
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -220165,28 +220368,14 @@ var StructureConvert = /*#__PURE__*/function () {
220165
220368
  mainNodes.push(_node3);
220166
220369
  } //pushChildNodes(node, temp,hoEditorFactory.docTree.mainNodes, mainNodes);
220167
220370
 
220168
- } // const headerDocTree= new Array<SubDocTree>();
220169
- // const footerDocTree= new Array<SubDocTree>();
220170
- // for (let h=0;h<headerNodes.length;h++){
220171
- // if (headerNodes[h]){
220172
- // const subDocTree= new SubDocTree(h,"");
220173
- // subDocTree.subDocNodes=headerNodes[h];
220174
- // headerDocTree.push(subDocTree);
220175
- // }
220176
- // }
220177
- // for (let f=0;f<footerNodes.length;f++){
220178
- // if (footerNodes[f]){
220179
- // const subDocTree= new SubDocTree(f,"");
220180
- // subDocTree.subDocNodes=footerNodes[f];
220181
- // footerDocTree.push(subDocTree);
220182
- // }
220183
- // }
220371
+ } // console.timeEnd("mainArray");
220184
220372
 
220185
220373
 
220186
220374
  var rtn = new Map();
220187
220375
  rtn.set("header", headerNodes);
220188
220376
  rtn.set("footer", footerNodes);
220189
- rtn.set("main", mainNodes);
220377
+ rtn.set("main", mainNodes); // console.timeEnd("json2Doc");
220378
+
220190
220379
  return rtn;
220191
220380
  }
220192
220381
  }, {
@@ -220306,31 +220495,11 @@ var StructureConvert = /*#__PURE__*/function () {
220306
220495
  temp.nodeType = BaseNode/* NodeType */.Jq[temp.nodeType];
220307
220496
 
220308
220497
  if (temp.nodeType == BaseNode/* NodeType.ntTable */.Jq.ntTable) {
220309
- // const cnode =hoEditorFactory.docTree.curDomRange.normalize().npStart;
220310
- // let paragraNode;
220311
- // if (cnode.node instanceof ParagraphNode) {
220312
- // paragraNode = cnode.node;
220313
- // } else {
220314
- // paragraNode = new ParagraphNode(
220315
- // this._hoEditorFactoryID,
220316
- // hoEditorFactory.docTree.activeNodes,
220317
- // hoEditorFactory.docTree.getParentNode(cnode.path),
220318
- // 0
220319
- // )
220320
- // }
220321
- // const paragraNode = nodes
220322
- // ? (nodes[nodes.length - 1] as ParagraphNode)
220323
- // : null;
220324
- //console.log("table", temp);
220325
220498
  if (isPaste && parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220326
220499
  message_box_default().alert("不允许将表格粘贴到文本域");
220327
220500
 
220328
220501
  return undefined;
220329
- } // if (isPaste && parentNode instanceof CellNode) {
220330
- // MessageBox.alert("不允许将表格粘贴到表格");
220331
- // return undefined;
220332
- // }
220333
-
220502
+ }
220334
220503
 
220335
220504
  var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
220336
220505
  return node;
@@ -220487,11 +220656,12 @@ var StructureConvert = /*#__PURE__*/function () {
220487
220656
 
220488
220657
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220489
220658
  this._superiorSign = [];
220490
- hoEditorFactory.isThrowError = false;
220491
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
220492
- Promise.resolve().then(function () {
220493
- hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220659
+ hoEditorFactory.isThrowError = false; // console.time("xml2Doc");
220660
+
220661
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign); // console.timeEnd("xml2Doc");
220494
220662
 
220663
+ Promise.resolve().then(function () {
220664
+ // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220495
220665
  _this4.openJson2Doc(nodes, callback, isDelBlockLine);
220496
220666
  });
220497
220667
  }
@@ -220504,7 +220674,7 @@ var StructureConvert = /*#__PURE__*/function () {
220504
220674
  callback && callback({
220505
220675
  text: hoEditorFactory.vueController.getDocTitle(),
220506
220676
  count: 0
220507
- });
220677
+ }); // console.time("openJson2Doc");
220508
220678
 
220509
220679
  if (nodes) {
220510
220680
  var insertNode = function insertNode(array, prevNode) {
@@ -220572,32 +220742,7 @@ var StructureConvert = /*#__PURE__*/function () {
220572
220742
  _this5._superiorSign[0] = aNode;
220573
220743
  }
220574
220744
  }
220575
- }; // 1
220576
- //先删除全部header节点
220577
- // const headersArr =hoEditorFactory.docTree.headerNodes;
220578
- // if (headersArr.length > 0) {
220579
- // for (let i = 0; i < headersArr.length; i++) {
220580
- // const headerArr = headersArr[i];
220581
- // if (headerArr.length > 1) {
220582
- // const lastNode =hoEditorFactory.docTree.headerNodes[i][
220583
- // headerArr.length - 1
220584
- // ];
220585
- // const endPathH =hoEditorFactory.docTree.getNodeLastPath(
220586
- // lastNode
220587
- // );
220588
- // undoService.begin();
220589
- // undoService.add(
220590
- // new NodesDeleteUndoUnit(
220591
- // this._hoEditorFactoryID,
220592
- // "header/" + i.toString() + "/0/0",
220593
- // endPathH
220594
- // )
220595
- // );
220596
- // undoService.commit();
220597
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.headerNodes[i].splice(1, headerArr.length - 1);
220598
- // }
220599
- // }
220600
- // }
220745
+ }; // console.time("openJson2Doc--headersArray");
220601
220746
  //添加header节点
220602
220747
 
220603
220748
 
@@ -220634,46 +220779,9 @@ var StructureConvert = /*#__PURE__*/function () {
220634
220779
  //hoEditorFactory.drawPageTree.drawHeaders[i].stage?.update();
220635
220780
 
220636
220781
  }
220637
- } //先删除全部mainDoc节点
220638
- // const rootNodes =hoEditorFactory.docTree.mainNodes;
220639
- // if (rootNodes.length > 1) {
220640
- // const endPathM =hoEditorFactory.docTree.getNodeLastPath(
220641
- // hoEditorFactory.docTree.mainNodes[rootNodes.length - 1]
220642
- // );
220643
- // undoService.begin();
220644
- // undoService.add(
220645
- // new NodesDeleteUndoUnit(this._hoEditorFactoryID, "main/0/0", endPathM)
220646
- // );
220647
- // undoService.commit();
220648
- // //hoEditorFactory.docTree.mainNodes.splice(1,hoEditorFactory.docTree.mainNodes.length - 1);
220649
- // }
220650
- //添加mainDoc节点
220651
- //先删除全部footer节点
220652
- // const footersArr =hoEditorFactory.docTree.footerNodes;
220653
- // if (footersArr.length > 0) {
220654
- // for (let i = 0; i < footersArr.length; i++) {
220655
- // const footerArr = footersArr[i];
220656
- // if (footerArr.length > 1) {
220657
- // const endPathF =hoEditorFactory.docTree.getNodeLastPath(
220658
- // hoEditorFactory.docTree.footerNodes[i][
220659
- // footerArr.length - 1
220660
- // ]
220661
- // );
220662
- // undoService.begin();
220663
- // undoService.add(
220664
- // new NodesDeleteUndoUnit(
220665
- // this._hoEditorFactoryID,
220666
- // "footer/" + i.toString() + "/0/0",
220667
- // endPathF
220668
- // )
220669
- // );
220670
- // undoService.commit();
220671
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.footerNodes[i].splice(1, footerArr.length - 1);
220672
- // }
220673
- // }
220674
- // }
220782
+ } // console.timeEnd("openJson2Doc--headersArray");
220783
+ // console.time("openJson2Doc--footersArray");
220675
220784
  //添加footer节点
220676
- //const footersArray = nodes.get("footer");
220677
220785
 
220678
220786
 
220679
220787
  var footersArray = nodes.get("footer");
@@ -220710,10 +220818,8 @@ var StructureConvert = /*#__PURE__*/function () {
220710
220818
  // );
220711
220819
 
220712
220820
  }
220713
- } // for (let i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
220714
- // hoEditorFactory.drawPageTree.calcMainDocPosition(i);
220715
- // hoEditorFactory.drawTree.drawPages[i].reFreshBounds();
220716
- // }
220821
+ } // console.timeEnd("openJson2Doc--footersArray");
220822
+ //main
220717
220823
 
220718
220824
 
220719
220825
  var main = nodes.get("main");
@@ -220725,13 +220831,15 @@ var StructureConvert = /*#__PURE__*/function () {
220725
220831
 
220726
220832
  insertNode(main, mPrevNode);
220727
220833
  var mLength = hoEditorFactory.docTree.mainNodes.length - 1;
220728
- var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]);
220834
+ var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); // console.time("openJson2Doc--change");
220835
+
220729
220836
  var mChangeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daInsert */.gk.daInsert, "main/0", mEndPath); // mChangeEvent.oldEndPath = mEndPath;
220730
220837
  // mChangeEvent.oldDrawTreeLines = new SelectRange(
220731
220838
  // this._hoEditorFactory
220732
220839
  // ).getRangeDrawTreeLines("main/0", mEndPath);
220733
220840
 
220734
- hoEditorFactory.docTree.change(mChangeEvent);
220841
+ hoEditorFactory.docTree.change(mChangeEvent); // console.timeEnd("openJson2Doc--change");
220842
+
220735
220843
  var comments = [];
220736
220844
 
220737
220845
  if (this._comments.length === undefined) {
@@ -220792,7 +220900,9 @@ var StructureConvert = /*#__PURE__*/function () {
220792
220900
 
220793
220901
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
220794
220902
  formularNodes.forEach(function (value, key) {
220795
- if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
220903
+ if ( //value.formularType === FormularType.ftSum
220904
+ //|| value.formularType === FormularType.ftFormular
220905
+ value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
220796
220906
  value.updateResult();
220797
220907
  value.getParentCell().drawCell.needUpdate = true;
220798
220908
  var prevNode = value.previousLeaf();
@@ -220818,7 +220928,7 @@ var StructureConvert = /*#__PURE__*/function () {
220818
220928
  text: hoEditorFactory.vueController.getDocTitle(),
220819
220929
  count: 0
220820
220930
  });
220821
- hoEditorFactory.isThrowError = true;
220931
+ hoEditorFactory.isThrowError = true; // console.timeEnd("openJson2Doc");
220822
220932
  }
220823
220933
  }
220824
220934
  }, {
@@ -225149,6 +225259,7 @@ var VueController = /*#__PURE__*/function () {
225149
225259
  value: function insertHtmlText(strHtml) {
225150
225260
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
225151
225261
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</上标>", "<上标/>");
225262
+ strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</下标>", "<下标/>");
225152
225263
  var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
225153
225264
 
225154
225265
  if (result) {
@@ -227804,7 +227915,7 @@ var VueController = /*#__PURE__*/function () {
227804
227915
 
227805
227916
  do {
227806
227917
  if (aNode) {
227807
- if (aNode instanceof TextNode/* TextNode */.R) {
227918
+ if (aNode instanceof TextNode/* TextNode */.R || aNode instanceof MarkNode/* MarkNode */.j) {
227808
227919
  if (mark === -1) {
227809
227920
  if (content.length > 0) {
227810
227921
  paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
@@ -227815,10 +227926,12 @@ var VueController = /*#__PURE__*/function () {
227815
227926
  }
227816
227927
  }
227817
227928
 
227818
- var nodePath = hoEditorFactory.docTree.getNodeFirstPath(aNode);
227819
- nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + content.length, nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
227929
+ if (aNode instanceof TextNode/* TextNode */.R) {
227930
+ var nodePath = hoEditorFactory.docTree.getNodeFirstPath(aNode);
227931
+ nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + content.length, nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
227932
+ }
227820
227933
 
227821
- content = content + aNode.text;
227934
+ content = content + (aNode instanceof MarkNode/* MarkNode */.j ? "" : aNode.text);
227822
227935
  } else if (aNode instanceof ControlNode/* ControlNode */.w) {
227823
227936
  if (content.length > 0) {
227824
227937
  paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
@@ -227956,15 +228069,26 @@ var VueController = /*#__PURE__*/function () {
227956
228069
  }
227957
228070
 
227958
228071
  if (path === nodeLastPath) {
227959
- var _np$node, _np$node2;
228072
+ (function () {
228073
+ var getNextNode = function getNextNode(curNode) {
228074
+ var nextNode = curNode.nextLeaf();
228075
+
228076
+ if (nextNode instanceof TextNode/* TextNode */.R) {
228077
+ return nextNode;
228078
+ } else {
228079
+ return getNextNode(nextNode);
228080
+ }
228081
+ };
227960
228082
 
227961
- path = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
227962
- nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
228083
+ var nNode = getNextNode(np.node);
228084
+ path = hoEditorFactory.docTree.getNodeFirstPath(nNode);
228085
+ nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(nNode);
228086
+ })();
227963
228087
  } else {
227964
- var pathArr = path.split('/');
228088
+ var pathArr = path.split("/");
227965
228089
  var value = parseInt(pathArr[pathArr.length - 1]);
227966
228090
  pathArr[pathArr.length - 1] = (value + 1).toString();
227967
- path = pathArr.join('/');
228091
+ path = pathArr.join("/");
227968
228092
  }
227969
228093
  }
227970
228094
 
@@ -232613,6 +232737,11 @@ var HoLocalStorage = /*#__PURE__*/function () {
232613
232737
 
232614
232738
 
232615
232739
 
232740
+
232741
+
232742
+
232743
+
232744
+
232616
232745
 
232617
232746
 
232618
232747
 
@@ -232659,6 +232788,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
232659
232788
 
232660
232789
  this._notAllowCrossPatiPaste = false; //不允许跨病人粘贴
232661
232790
 
232791
+ this._fontSizeMap = new Map();
232662
232792
  this._hoEditorFactoryId = id;
232663
232793
  }
232664
232794
  /**
@@ -233476,6 +233606,19 @@ var HOEditorFactory = /*#__PURE__*/function () {
233476
233606
  this._drawTree = null;
233477
233607
  }
233478
233608
  }
233609
+ }, {
233610
+ key: "getFontHeightByFontSize",
233611
+ value: function getFontHeightByFontSize(isize) {
233612
+ var val = this._fontSizeMap.get(isize);
233613
+
233614
+ if (!val) {
233615
+ val = this.docTree.defaultCombineStyle.getFontHeightByFontSize(isize);
233616
+
233617
+ this._fontSizeMap.set(isize, val);
233618
+ }
233619
+
233620
+ return val;
233621
+ }
233479
233622
  }]);
233480
233623
 
233481
233624
  return HOEditorFactory;
@@ -234406,54 +234549,68 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
234406
234549
  var tableNodeInfo = this.getTableNodeInfo(nodes === null || nodes === void 0 ? void 0 : nodes.node);
234407
234550
 
234408
234551
  if (tableNodeInfo) {
234409
- var _dPage$drawDomLevel;
234410
-
234411
- var dPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.caret.pageIndex];
234412
- var dPageElementNode = (_dPage$drawDomLevel = dPage.drawDomLevel) === null || _dPage$drawDomLevel === void 0 ? void 0 : _dPage$drawDomLevel.domCanvas.parentElement;
234413
- var tableBounds = {
234414
- x: hoEditorFactory.pageProperty.leftMarginPixes + tableNodeInfo.tableNode.drawTable.x,
234415
- y: 0,
234416
- width: tableNodeInfo.tableNode.drawTable.dWidth,
234417
- height: 0,
234418
- cellWidth: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dWidth,
234419
- cellHeight: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dHeight,
234420
- cellY: 20,
234421
- cellX: 0
234422
- }; // 取当前页的表格 处理跨页情况
234423
-
234424
- var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
234425
- var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
234426
- var currentPageIndex = dPage.drawMainDoc.pageIndex;
234427
- tableBounds.cellX = drawPageCells[currentPageIndex].x + 20;
234428
- tableBounds.cellY = drawPageCells[currentPageIndex].y + 20;
234429
- tableBounds.cellWidth = drawPageCells[currentPageIndex].dWidth;
234430
- tableBounds.cellHeight = drawPageCells[currentPageIndex].dHeight;
234431
- drawPageTables.forEach(function (v, key) {
234432
- if (v.parent.pageIndex === currentPageIndex) {
234433
- tableBounds.height = v.dHeight;
234434
- tableBounds.y = dPage.drawMainDoc.y + v.y;
234435
-
234436
- if (drawPageCells.length === drawPageTables.length) {
234437
- tableBounds.cellHeight = drawPageCells[key].dHeight;
234552
+ var dNode = hoEditorFactory.drawTree.getDNodeByPath(hoEditorFactory.docTree.curDomRange.startPath);
234553
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
234554
+ var dPage = hoEditorFactory.drawPageTree.getDrawPageByDNode(dline);
234555
+
234556
+ if (dPage) {
234557
+ var _dPage$drawDomLevel;
234558
+
234559
+ var dPageElementNode = (_dPage$drawDomLevel = dPage.drawDomLevel) === null || _dPage$drawDomLevel === void 0 ? void 0 : _dPage$drawDomLevel.domCanvas.parentElement;
234560
+ var tableBounds = {
234561
+ x: hoEditorFactory.pageProperty.leftMarginPixes + tableNodeInfo.tableNode.drawTable.x,
234562
+ y: 0,
234563
+ width: tableNodeInfo.tableNode.drawTable.dWidth,
234564
+ height: 0,
234565
+ cellWidth: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dWidth,
234566
+ cellHeight: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dHeight,
234567
+ cellY: 20,
234568
+ cellX: 0
234569
+ }; // 取当前页的表格 处理跨页情况
234570
+
234571
+ var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
234572
+ var currentPageIndex = dPage.drawMainDoc.pageIndex;
234573
+ var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
234574
+ var drawPageTable = tableNodeInfo.tableNode.drawTable.getDrawTableByPageIndex(currentPageIndex);
234575
+
234576
+ if (drawPageTable) {
234577
+ var drawPageCell = tableNodeInfo.cellNode.drawCell.getDrawPageCell(drawPageTable);
234578
+
234579
+ if (drawPageCell) {
234580
+ tableBounds.cellX = drawPageCell.x + 20;
234581
+ tableBounds.cellY = drawPageCell.y + 20;
234582
+ tableBounds.cellWidth = drawPageCell.dWidth;
234583
+ tableBounds.cellHeight = drawPageCell.dHeight;
234584
+ }
234585
+ }
234586
+
234587
+ drawPageTables.forEach(function (v, key) {
234588
+ if (v.parent.pageIndex === currentPageIndex) {
234589
+ tableBounds.height = v.dHeight;
234590
+ tableBounds.y = dPage.drawMainDoc.y + v.y;
234591
+
234592
+ if (drawPageCells.length === drawPageTables.length) {
234593
+ tableBounds.cellHeight = drawPageCells[key].dHeight;
234594
+ }
234438
234595
  }
234439
- }
234440
- });
234441
- var aDiv = document.createElement('div');
234442
- aDiv.id = 'ho_table_auxiliary';
234443
- aDiv.style.position = 'absolute';
234444
- aDiv.style.left = hoEditorFactory.pageProperty.leftMarginPixes - 20 + 'px';
234445
- aDiv.style.top = tableBounds.y - 20 + 'px';
234446
- aDiv.style.height = hoEditorFactory.pageProperty.heightPixes - tableBounds.y - hoEditorFactory.pageProperty.footerYPixes + 'px';
234447
- aDiv.innerHTML = "\n <div id=\"ho_table_auxiliary_left\" style=\"height: ".concat(tableBounds.height, "px\"></div>\n <div id=\"ho_table_auxiliary_left_active\" style=\"height: ").concat(tableBounds.cellHeight, "px; top: ").concat(tableBounds.cellY, "px;\"></div>\n ");
234448
- /**
234449
- * 上方隐藏 只处理左侧提示
234450
- `
234451
- <div id="ho_table_auxiliary_top" style="width: ${tableBounds.width}px"></div>
234452
- <div id="ho_table_auxiliary_top_active" style="width: ${tableBounds.cellWidth}px;left: ${tableBounds.cellX}px;"></div>
234453
- `
234454
- */
234596
+ });
234597
+ var aDiv = document.createElement('div');
234598
+ aDiv.id = 'ho_table_auxiliary';
234599
+ aDiv.style.position = 'absolute';
234600
+ aDiv.style.left = hoEditorFactory.pageProperty.leftMarginPixes - 20 + 'px';
234601
+ aDiv.style.top = tableBounds.y - 20 + 'px';
234602
+ aDiv.style.height = hoEditorFactory.pageProperty.heightPixes - tableBounds.y - hoEditorFactory.pageProperty.footerYPixes + 'px';
234603
+ aDiv.innerHTML = "\n <div id=\"ho_table_auxiliary_left\" style=\"height: ".concat(tableBounds.height, "px\"></div>\n <div id=\"ho_table_auxiliary_left_active\" style=\"height: ").concat(tableBounds.cellHeight, "px; top: ").concat(tableBounds.cellY, "px;\"></div>\n ");
234604
+ /**
234605
+ * 上方隐藏 只处理左侧提示
234606
+ `
234607
+ <div id="ho_table_auxiliary_top" style="width: ${tableBounds.width}px"></div>
234608
+ <div id="ho_table_auxiliary_top_active" style="width: ${tableBounds.cellWidth}px;left: ${tableBounds.cellX}px;"></div>
234609
+ `
234610
+ */
234455
234611
 
234456
- dPageElementNode === null || dPageElementNode === void 0 ? void 0 : dPageElementNode.appendChild(aDiv);
234612
+ dPageElementNode === null || dPageElementNode === void 0 ? void 0 : dPageElementNode.appendChild(aDiv);
234613
+ }
234457
234614
  }
234458
234615
  }
234459
234616
  }, {
@@ -234498,9 +234655,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
234498
234655
  canDeleteRow: tableNode.tableProperty.canDeleteRow
234499
234656
  };
234500
234657
 
234501
- if (tableNode.tableProperty.isAutoChangeLine && nodes) {
234502
- this.createTable(hoEditorFactory, nodes);
234503
- } else if (hoEditorFactory.isCanUseTableProperty && nodes) {
234658
+ if ((hoEditorFactory.isCanUseTableProperty || tableNode.tableProperty.isAutoChangeLine) && nodes) {
234504
234659
  this.createTable(hoEditorFactory, nodes);
234505
234660
  }
234506
234661
  }
@@ -241427,7 +241582,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
241427
241582
  _this.emrDebug = false; // 获取全局变量 emrDebug0331
241428
241583
 
241429
241584
  _this.formularType = {
241430
- sum: '求和公式',
241585
+ sum: '表格行列求和公式',
241431
241586
  formula: '四则运算公式',
241432
241587
  bmi: 'bmi计算公式',
241433
241588
  labor: '产程公式',