hoeditor-web 3.1.174 → 3.1.176

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.
@@ -9655,7 +9655,7 @@ var component = (0,componentNormalizer/* default */.Z)(
9655
9655
 
9656
9656
  /***/ }),
9657
9657
 
9658
- /***/ 10812:
9658
+ /***/ 70753:
9659
9659
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9660
9660
 
9661
9661
  "use strict";
@@ -9675,7 +9675,7 @@ var es_string_includes = __webpack_require__(32023);
9675
9675
  var es_regexp_exec = __webpack_require__(74916);
9676
9676
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
9677
9677
  var es_string_replace = __webpack_require__(15306);
9678
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=039de5ee&
9678
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=46342294&
9679
9679
 
9680
9680
 
9681
9681
 
@@ -9735,8 +9735,10 @@ var render = function render() {
9735
9735
  staticClass: "list"
9736
9736
  }, [_c('li', {
9737
9737
  staticStyle: {
9738
+ "display": "block",
9739
+ "width": "100%",
9738
9740
  "text-align": "center",
9739
- "line-height": "30px"
9741
+ "line-height": "50px"
9740
9742
  }
9741
9743
  }, [_vm._v("无选项")])]) : _vm._e(), _vm.isShowTitle && _vm.currentList.length > 0 ? [_vm.isAllowMultiSelect ? [_c('a-table', {
9742
9744
  staticStyle: {
@@ -9876,7 +9878,44 @@ var render = function render() {
9876
9878
  }, [_c('span', {
9877
9879
  staticClass: "ant-checkbox-texts"
9878
9880
  }, [_vm._v(_vm._s(item.showText))])])];
9879
- })], 2)] : _vm._e(), !_vm.insCheckSyncUpdateList && !_vm.isAllowMultiSelect ? _c('a-radio-group', {
9881
+ })], 2)] : _vm._e(), !_vm.insCheckSyncUpdateList && !_vm.isAllowMultiSelect ? [_vm.currentList.length > 50 ? _c('div', {
9882
+ staticClass: "ant-checkbox-group"
9883
+ }, [_c('DynamicScroller', {
9884
+ staticClass: "scroller",
9885
+ attrs: {
9886
+ "items": _vm.currentList,
9887
+ "min-item-size": 26,
9888
+ "key-field": "id"
9889
+ },
9890
+ scopedSlots: _vm._u([{
9891
+ key: "default",
9892
+ fn: function fn(_ref2) {
9893
+ var item = _ref2.item,
9894
+ index = _ref2.index,
9895
+ active = _ref2.active;
9896
+ return [_c('DynamicScrollerItem', {
9897
+ attrs: {
9898
+ "item": item,
9899
+ "active": active,
9900
+ "data-index": index
9901
+ }
9902
+ }, [_c('a-radio', {
9903
+ key: item.id + Math.random(),
9904
+ attrs: {
9905
+ "id": item.id,
9906
+ "checked": item.selected
9907
+ },
9908
+ on: {
9909
+ "change": function change($event) {
9910
+ return _vm.selectItemsChange(item);
9911
+ }
9912
+ }
9913
+ }, [_c('span', {
9914
+ staticClass: "ant-checkbox-texts"
9915
+ }, [_vm._v(_vm._s(item.showText))])])], 1)];
9916
+ }
9917
+ }], null, false, 2524184313)
9918
+ })], 1) : [_c('a-radio-group', {
9880
9919
  model: {
9881
9920
  value: _vm.selectedId,
9882
9921
  callback: function callback($$v) {
@@ -9900,7 +9939,7 @@ var render = function render() {
9900
9939
  }
9901
9940
  }
9902
9941
  }, [_vm._v(" " + _vm._s(item.showText) + " ")]);
9903
- }), 1) : _vm._e()] : _vm._e(), _vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.insCheckSyncUpdateList && !_vm.mutexSelect && _vm.isCanSearch ? _c('transition-group', {
9942
+ }), 1)]] : _vm._e()] : _vm._e(), _vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.insCheckSyncUpdateList && !_vm.mutexSelect && _vm.isCanSearch ? _c('transition-group', {
9904
9943
  staticClass: "list",
9905
9944
  attrs: {
9906
9945
  "name": "drag",
@@ -9909,6 +9948,7 @@ var render = function render() {
9909
9948
  }, [_c('li', {
9910
9949
  key: "已选择",
9911
9950
  staticStyle: {
9951
+ "width": "270px",
9912
9952
  "position": "absolute",
9913
9953
  "top": "0px",
9914
9954
  "z-index": "111",
@@ -10141,7 +10181,7 @@ var render = function render() {
10141
10181
  };
10142
10182
  var staticRenderFns = [];
10143
10183
 
10144
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=039de5ee&
10184
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=46342294&
10145
10185
 
10146
10186
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
10147
10187
  var toConsumableArray = __webpack_require__(61748);
@@ -10157,6 +10197,8 @@ var web_dom_collections_for_each = __webpack_require__(54747);
10157
10197
  var es_array_filter = __webpack_require__(57327);
10158
10198
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
10159
10199
  var es_array_push = __webpack_require__(57658);
10200
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.freeze.js
10201
+ var es_object_freeze = __webpack_require__(43371);
10160
10202
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
10161
10203
  var es_json_stringify = __webpack_require__(38862);
10162
10204
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
@@ -12151,6 +12193,7 @@ var type = __webpack_require__(41542);
12151
12193
 
12152
12194
 
12153
12195
 
12196
+
12154
12197
 
12155
12198
 
12156
12199
  var columns = [{
@@ -12379,7 +12422,7 @@ var columns = [{
12379
12422
  });
12380
12423
  this.currentListNameText = currentPoperNode.name;
12381
12424
  if (this.poperSelectList && this.poperSelectList.length >= 20) this.isCanSearch = true;
12382
- this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12425
+ this.currentList = Object.freeze((0,toConsumableArray/* default */.Z)(this.poperSelectList));
12383
12426
  }
12384
12427
  },
12385
12428
  mounted: function mounted() {
@@ -12682,7 +12725,7 @@ var columns = [{
12682
12725
  arr.push(v);
12683
12726
  }
12684
12727
  });
12685
- this.currentList = [].concat(arr);
12728
+ this.currentList = Object.freeze([].concat(arr));
12686
12729
  console.timeEnd('搜索时间');
12687
12730
  },
12688
12731
  /**
@@ -12771,7 +12814,7 @@ var columns = [{
12771
12814
  }
12772
12815
  return v;
12773
12816
  });
12774
- this.currentList = [].concat(arr);
12817
+ this.currentList = Object.freeze([].concat(arr));
12775
12818
  console.timeEnd('搜索时间');
12776
12819
  }
12777
12820
  },
@@ -12812,7 +12855,7 @@ var columns = [{
12812
12855
  this.isSelected = true;
12813
12856
  item.selected = !item.selected;
12814
12857
  this.poperSelectList.splice(index, 1, item);
12815
- this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12858
+ this.currentList = Object.freeze((0,toConsumableArray/* default */.Z)(this.poperSelectList));
12816
12859
  this.sureSelect();
12817
12860
  } else {
12818
12861
  this.poperSelectList.forEach(function (v) {
@@ -12831,7 +12874,7 @@ var columns = [{
12831
12874
  });
12832
12875
  }
12833
12876
  });
12834
- this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12877
+ this.currentList = Object.freeze((0,toConsumableArray/* default */.Z)(this.poperSelectList));
12835
12878
  if (this.isCanSearch) this.searchList(this.input);
12836
12879
  }
12837
12880
  },
@@ -12844,14 +12887,14 @@ var columns = [{
12844
12887
  _this11.selectedList.push(v);
12845
12888
  _this11.selectedIds.push(v.id);
12846
12889
  });
12847
- this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12890
+ this.currentList = Object.freeze((0,toConsumableArray/* default */.Z)(this.poperSelectList));
12848
12891
  },
12849
12892
  // 取消选中
12850
12893
  cancelSelect: function cancelSelect() {
12851
12894
  this.poperSelectList.forEach(function (v) {
12852
12895
  v.selected = false;
12853
12896
  });
12854
- this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12897
+ this.currentList = Object.freeze((0,toConsumableArray/* default */.Z)(this.poperSelectList));
12855
12898
  this.selectedList = [];
12856
12899
  if (this.isAllowMultiSelect && this.isCanSearch) {
12857
12900
  this.searchList(this.input);
@@ -13016,6 +13059,7 @@ var columns = [{
13016
13059
  this.poppernIstance && this.poppernIstance.update();
13017
13060
  },
13018
13061
  handleClose: function handleClose() {
13062
+ this.currentList = [];
13019
13063
  this.isSelected = false;
13020
13064
  this.removeListerner();
13021
13065
  this.$emit('poperClose');
@@ -13042,10 +13086,10 @@ var columns = [{
13042
13086
  });
13043
13087
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
13044
13088
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
13045
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=039de5ee&prod&lang=less&
13089
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=46342294&prod&lang=less&
13046
13090
  // extracted by mini-css-extract-plugin
13047
13091
 
13048
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=039de5ee&prod&lang=less&
13092
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=46342294&prod&lang=less&
13049
13093
 
13050
13094
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
13051
13095
  var componentNormalizer = __webpack_require__(70713);
@@ -131605,6 +131649,32 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
131605
131649
  });
131606
131650
 
131607
131651
 
131652
+ /***/ }),
131653
+
131654
+ /***/ 43371:
131655
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
131656
+
131657
+ "use strict";
131658
+
131659
+ var $ = __webpack_require__(82109);
131660
+ var FREEZING = __webpack_require__(76677);
131661
+ var fails = __webpack_require__(47293);
131662
+ var isObject = __webpack_require__(70111);
131663
+ var onFreeze = (__webpack_require__(62423).onFreeze);
131664
+
131665
+ // eslint-disable-next-line es/no-object-freeze -- safe
131666
+ var $freeze = Object.freeze;
131667
+ var FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });
131668
+
131669
+ // `Object.freeze` method
131670
+ // https://tc39.es/ecma262/#sec-object.freeze
131671
+ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
131672
+ freeze: function freeze(it) {
131673
+ return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;
131674
+ }
131675
+ });
131676
+
131677
+
131608
131678
  /***/ }),
131609
131679
 
131610
131680
  /***/ 38880:
@@ -168484,7 +168554,7 @@ var map = {
168484
168554
  "./pageInfoes/PageInfoes.vue": 99749,
168485
168555
  "./paragraph/ParagraphDialog.vue": 58874,
168486
168556
  "./poperSelect/PoperMark.vue": 20734,
168487
- "./poperSelect/PoperSelect.vue": 10812,
168557
+ "./poperSelect/PoperSelect.vue": 70753,
168488
168558
  "./poperTipText/PoperTipText.vue": 84531,
168489
168559
  "./popers/Poper.vue": 57937,
168490
168560
  "./popers/Title.vue": 31276,
@@ -205948,8 +206018,8 @@ var es_string_match = __webpack_require__(4723);
205948
206018
  var es_number_constructor = __webpack_require__(9653);
205949
206019
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
205950
206020
  var es_json_stringify = __webpack_require__(38862);
205951
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=aab4ec98&
205952
- var HoDocvue_type_template_id_aab4ec98_render = function render() {
206021
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=bd89c832&
206022
+ var HoDocvue_type_template_id_bd89c832_render = function render() {
205953
206023
  var _vm = this,
205954
206024
  _c = _vm._self._c;
205955
206025
  return _c('div', {
@@ -206150,7 +206220,7 @@ var HoDocvue_type_template_id_aab4ec98_render = function render() {
206150
206220
  }
206151
206221
  }, [_vm._v("v " + _vm._s(_vm.version))])])], 2)], 1);
206152
206222
  };
206153
- var HoDocvue_type_template_id_aab4ec98_staticRenderFns = [];
206223
+ var HoDocvue_type_template_id_bd89c832_staticRenderFns = [];
206154
206224
 
206155
206225
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
206156
206226
  var es_array_filter = __webpack_require__(57327);
@@ -206160,6 +206230,8 @@ var es_string_includes = __webpack_require__(32023);
206160
206230
  var es_array_sort = __webpack_require__(2707);
206161
206231
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
206162
206232
  var es_string_replace = __webpack_require__(15306);
206233
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.freeze.js
206234
+ var es_object_freeze = __webpack_require__(43371);
206163
206235
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
206164
206236
  var es_array_map = __webpack_require__(21249);
206165
206237
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=ff41b2c0&
@@ -207729,7 +207801,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
207729
207801
  // EXTERNAL MODULE: ./src/plugins/util.ts
207730
207802
  var plugins_util = __webpack_require__(62783);
207731
207803
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
207732
- var PoperSelect = __webpack_require__(10812);
207804
+ var PoperSelect = __webpack_require__(70753);
207733
207805
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
207734
207806
  var PoperMark = __webpack_require__(20734);
207735
207807
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -209134,7 +209206,7 @@ var TextNode = __webpack_require__(27198);
209134
209206
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
209135
209207
  var ParagraphNode = __webpack_require__(67945);
209136
209208
  ;// CONCATENATED MODULE: ./src/components/version.ts
209137
- /* harmony default export */ var version = ('3.1.174');
209209
+ /* harmony default export */ var version = ('3.1.176');
209138
209210
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
209139
209211
  var PoperTipText = __webpack_require__(84531);
209140
209212
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -209186,6 +209258,7 @@ var TextBorderNode = __webpack_require__(11596);
209186
209258
 
209187
209259
 
209188
209260
 
209261
+
209189
209262
 
209190
209263
 
209191
209264
  var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
@@ -209371,6 +209444,14 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
209371
209444
  }
209372
209445
  }, 300);
209373
209446
  }
209447
+ },
209448
+ 'hoEditorProvider.customParams': {
209449
+ deep: true,
209450
+ handler: function handler(value) {
209451
+ if (value && value.docRightVisible == false) {
209452
+ this.isCreateRightMenuModal = false;
209453
+ }
209454
+ }
209374
209455
  }
209375
209456
  },
209376
209457
  inject: ['hoEditorProvider'],
@@ -209481,6 +209562,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
209481
209562
  poperClose: function poperClose() {
209482
209563
  this.poperType = '';
209483
209564
  this.nodeValue = '';
209565
+ this.poperSelectList = [];
209484
209566
  if (this.isAutoPoper) {
209485
209567
  this.hoEditorProvider.autoSelectElementId = '';
209486
209568
  this.isAutoPoper = false;
@@ -209832,7 +209914,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
209832
209914
  var callback = function callback(list) {
209833
209915
  _this6.computedPoperPosition(node, pageIndex);
209834
209916
  if (Array.isArray(list) && list.length > 0) {
209835
- _this6.poperSelectList = list;
209917
+ _this6.poperSelectList = Object.freeze(list);
209836
209918
  } else {
209837
209919
  _this6.poperSelectList = node.downListContent ? node.downListContent : [];
209838
209920
  }
@@ -209881,7 +209963,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
209881
209963
  var callback = function callback(list) {
209882
209964
  _this7.computedPoperPosition(node, pageIndex);
209883
209965
  if (Array.isArray(list) && list.length > 0) {
209884
- _this7.poperSelectList = list;
209966
+ _this7.poperSelectList = Object.freeze(list);
209885
209967
  } else {
209886
209968
  _this7.poperSelectList = lists.filter(function (v) {
209887
209969
  return v.value || v.text;
@@ -210180,10 +210262,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
210180
210262
  });
210181
210263
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
210182
210264
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
210183
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=aab4ec98&prod&lang=less&
210265
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=bd89c832&prod&lang=less&
210184
210266
  // extracted by mini-css-extract-plugin
210185
210267
 
210186
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=aab4ec98&prod&lang=less&
210268
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=bd89c832&prod&lang=less&
210187
210269
 
210188
210270
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
210189
210271
 
@@ -210196,8 +210278,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
210196
210278
 
210197
210279
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
210198
210280
  components_HoDocvue_type_script_lang_js_,
210199
- HoDocvue_type_template_id_aab4ec98_render,
210200
- HoDocvue_type_template_id_aab4ec98_staticRenderFns,
210281
+ HoDocvue_type_template_id_bd89c832_render,
210282
+ HoDocvue_type_template_id_bd89c832_staticRenderFns,
210201
210283
  false,
210202
210284
  null,
210203
210285
  null,
@@ -217640,6 +217722,8 @@ Modal.install = function (Vue) {
217640
217722
  };
217641
217723
 
217642
217724
  /* harmony default export */ var modal = (Modal);
217725
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.repeat.js
217726
+ var es_string_repeat = __webpack_require__(82481);
217643
217727
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
217644
217728
  var web_url = __webpack_require__(60285);
217645
217729
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
@@ -218290,6 +218374,8 @@ var ExpressionCalculator = __webpack_require__(71115);
218290
218374
 
218291
218375
 
218292
218376
 
218377
+
218378
+
218293
218379
 
218294
218380
 
218295
218381
 
@@ -219682,7 +219768,7 @@ var VueController = /*#__PURE__*/function () {
219682
219768
  var endPath = _curDomRange.normalize().endPath;
219683
219769
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertQrcode);
219684
219770
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219685
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
219771
+ hoEditorFactory.docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
219686
219772
  }
219687
219773
  }
219688
219774
  /**
@@ -221089,6 +221175,145 @@ var VueController = /*#__PURE__*/function () {
221089
221175
  }
221090
221176
  }
221091
221177
  }
221178
+ /**
221179
+ * 插入文本(包括大段文本)
221180
+ * @param text 文本
221181
+ * @param isAppentText 追加文本内容开头为换行符时是否处理换行
221182
+ * @param canModifyContent 判断当前位置元素是否可编辑
221183
+ */
221184
+ }, {
221185
+ key: "insertArrText",
221186
+ value: function insertArrText(textList) {
221187
+ var _this$_combineStyle,
221188
+ _this3 = this;
221189
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
221190
+ var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
221191
+ var canvasElement = document.createElement('canvas');
221192
+ var ctx = canvasElement === null || canvasElement === void 0 ? void 0 : canvasElement.getContext('2d');
221193
+ var fontSize = ((_this$_combineStyle = this._combineStyle) === null || _this$_combineStyle === void 0 ? void 0 : _this$_combineStyle.size) || 12;
221194
+ if (result && ctx) {
221195
+ ctx.font = "".concat(fontSize, "pt SimSun");
221196
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
221197
+ if (!curDomRange.isEmpty) {
221198
+ hoEditorFactory.docController.deleteRange(curDomRange, true);
221199
+ }
221200
+ var npStart = curDomRange.npStart;
221201
+ if (npStart && npStart.node) {
221202
+ var parentDNode = npStart.node.parentNode;
221203
+ var nodes = [];
221204
+ var spaceWidth = ctx.measureText(' ').width;
221205
+ hoEditorFactory.docTree.curDomRange.setSamePath(curDomRange.startPath);
221206
+ var docWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
221207
+ var dLine = hoEditorFactory.drawTree.getDrawLineByDNode(npStart.node.drawNodes[0]);
221208
+ var dLineX = dLine.x;
221209
+ if (dLine.parent instanceof DrawPageCell/* DrawPageCell */.k) {
221210
+ docWidth = Math.max(dLine.parent.dWidth, dLine.parent.maxWidth, dLine.dWidth);
221211
+ // dLineX = dLine.parent.x;
221212
+ }
221213
+
221214
+ var suffixSpace = ""; // 前补空格
221215
+ var newLine = false;
221216
+ if (parentDNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
221217
+ var parentNodeX = parentDNode.StartMarkNode.drawNodes[0].x;
221218
+ if (parentDNode.text == '') {
221219
+ dLineX = parentNodeX;
221220
+ if (!parentDNode.alignWithBlocked) {
221221
+ suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221222
+ }
221223
+ } else {
221224
+ newLine = true;
221225
+ if (parentDNode.alignWithBlocked) {
221226
+ dLineX = parentNodeX;
221227
+ suffixSpace = " ".repeat(Math.floor((dLineX - parentNodeX) / spaceWidth));
221228
+ }
221229
+ }
221230
+ } else if (npStart.node instanceof TextNode/* TextNode */.R) {
221231
+ var dTextWidth = ctx.measureText(npStart.node.text).width;
221232
+ dLineX = dTextWidth + npStart.node.drawNodes[0].x;
221233
+ if (dLineX > 0) {
221234
+ suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221235
+ }
221236
+ }
221237
+ docWidth = docWidth - dLineX;
221238
+ var minCount = 0;
221239
+ var _loop = function _loop() {
221240
+ var text = textList[k];
221241
+ if (Array.isArray(text)) {
221242
+ var list = text.slice(0, text.length - 1);
221243
+ var maxItemWidth = 0;
221244
+ list.forEach(function (item) {
221245
+ maxItemWidth = Math.max(ctx.measureText(item).width, maxItemWidth);
221246
+ });
221247
+ var count = docWidth / maxItemWidth > 4 ? 4 : Math.floor(docWidth / maxItemWidth);
221248
+ if (minCount == 0) {
221249
+ minCount = count;
221250
+ } else {
221251
+ minCount = Math.min(minCount, count);
221252
+ }
221253
+ }
221254
+ };
221255
+ for (var k = 0; k < textList.length; k++) {
221256
+ _loop();
221257
+ }
221258
+ var _loop2 = function _loop2(_k5) {
221259
+ var text = textList[_k5];
221260
+ if (Array.isArray(text)) {
221261
+ if (_k5 == 0 && newLine) {
221262
+ var _nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221263
+ nodes.push(_nextParagraphNode);
221264
+ }
221265
+ var list = text.slice(0, text.length - 1);
221266
+ var resultList = [];
221267
+ for (var i = 0; i < list.length; i += minCount) {
221268
+ resultList.push(list.slice(i, i + minCount));
221269
+ }
221270
+ resultList.forEach(function (item, key) {
221271
+ var textValue = "";
221272
+ item.forEach(function (txt, index) {
221273
+ var spaceCount = (docWidth / minCount - ctx.measureText(txt).width) / spaceWidth;
221274
+ if (spaceCount < 0) spaceCount = 0;
221275
+ if ((key !== 0 || _k5 > 0) && index == 0) {
221276
+ textValue += suffixSpace + txt + ' '.repeat(spaceCount);
221277
+ } else {
221278
+ textValue += txt + ' '.repeat(spaceCount);
221279
+ }
221280
+ });
221281
+ if (npStart.node) {
221282
+ var _textNode = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, textValue, hoEditorFactory.docTree.curStyleIndex);
221283
+ nodes.push(_textNode);
221284
+ var paragraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221285
+ nodes.push(paragraphNode);
221286
+ }
221287
+ });
221288
+ var endText = text[text.length - 1];
221289
+ var endSpaceCount = (docWidth - ctx.measureText(endText).width) / spaceWidth;
221290
+ if (endSpaceCount < 0) endSpaceCount = 0;
221291
+ endText = suffixSpace + ' '.repeat(endSpaceCount) + endText;
221292
+ var textNode = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, endText, hoEditorFactory.docTree.curStyleIndex);
221293
+ var nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221294
+ nodes.push(textNode);
221295
+ nodes.push(nextParagraphNode);
221296
+ } else if (typeof text === "string") {
221297
+ var lines = text.split('\n');
221298
+ for (var _i3 = 0; _i3 < lines.length; _i3++) {
221299
+ if (lines[_i3] != '') {
221300
+ var _textNode2 = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, lines[_i3], hoEditorFactory.docTree.curStyleIndex);
221301
+ nodes.push(_textNode2);
221302
+ if (_i3 < lines.length - 2 || _i3 == lines.length - 2 && lines[lines.length - 1] != "") {
221303
+ var paragraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221304
+ nodes.push(paragraphNode);
221305
+ }
221306
+ }
221307
+ }
221308
+ }
221309
+ };
221310
+ for (var _k5 = 0; _k5 < textList.length; _k5++) {
221311
+ _loop2(_k5);
221312
+ }
221313
+ hoEditorFactory.docController.parseNodeData(nodes);
221314
+ }
221315
+ }
221316
+ }
221092
221317
  /**
221093
221318
  * 删除文本或者元素
221094
221319
  */
@@ -221872,8 +222097,8 @@ var VueController = /*#__PURE__*/function () {
221872
222097
  }
221873
222098
  //更新xml各节点在当前文档的样式索引
221874
222099
  var iteratesNode = function iteratesNode(nodes) {
221875
- for (var _i3 = 0; _i3 < nodes.length; _i3++) {
221876
- var node = nodes[_i3];
222100
+ for (var _i4 = 0; _i4 < nodes.length; _i4++) {
222101
+ var node = nodes[_i4];
221877
222102
  if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
221878
222103
  if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
221879
222104
  iteratesNode(node.childNodes.node);
@@ -222211,7 +222436,7 @@ var VueController = /*#__PURE__*/function () {
222211
222436
  key: "openDocsForPrint",
222212
222437
  value: function () {
222213
222438
  var _openDocsForPrint = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(list) {
222214
- var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, arrFontString, arrParaString, getDetailStyle, mergeObject, tdefault, pdefault, si, style, sstyle, pi, _style, updateNodesStyle, _loop, i, nodes;
222439
+ var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, arrFontString, arrParaString, getDetailStyle, mergeObject, tdefault, pdefault, si, style, sstyle, pi, _style, updateNodesStyle, _loop3, i, nodes;
222215
222440
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
222216
222441
  while (1) switch (_context5.prev = _context5.next) {
222217
222442
  case 0:
@@ -222412,9 +222637,9 @@ var VueController = /*#__PURE__*/function () {
222412
222637
  }
222413
222638
  }
222414
222639
  };
222415
- _loop = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop() {
222640
+ _loop3 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop3() {
222416
222641
  var fontStyleMap, paraStyleMap, xmlobj, fontStyle, defaultFontStyle, strDefaultFont, index1, jobjFontStyle, is, detailStyle, strFont, findex, paraStyle, defaultParaStyle, strDefaultPara, index2, getParaDetailStyle, jobjParaStyle, ps, detailParaStyle, strPara, pindex, ilen, strID, _strID, _mergeObject$main, _mergeObject$main2;
222417
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(_context4) {
222642
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop3$(_context4) {
222418
222643
  while (1) switch (_context4.prev = _context4.next) {
222419
222644
  case 0:
222420
222645
  fontStyleMap = new Map();
@@ -222559,7 +222784,7 @@ var VueController = /*#__PURE__*/function () {
222559
222784
  case "end":
222560
222785
  return _context4.stop();
222561
222786
  }
222562
- }, _loop);
222787
+ }, _loop3);
222563
222788
  });
222564
222789
  i = 1;
222565
222790
  case 46:
@@ -222567,7 +222792,7 @@ var VueController = /*#__PURE__*/function () {
222567
222792
  _context5.next = 51;
222568
222793
  break;
222569
222794
  }
222570
- return _context5.delegateYield(_loop(), "t0", 48);
222795
+ return _context5.delegateYield(_loop3(), "t0", 48);
222571
222796
  case 48:
222572
222797
  i++;
222573
222798
  _context5.next = 46;
@@ -223514,7 +223739,7 @@ var VueController = /*#__PURE__*/function () {
223514
223739
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
223515
223740
  var ret = [];
223516
223741
  var getAllNodes = function getAllNodes(nodes) {
223517
- var _loop2 = function _loop2() {
223742
+ var _loop4 = function _loop4() {
223518
223743
  var node = nodes[i];
223519
223744
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
223520
223745
  var elementObj = {
@@ -223585,7 +223810,7 @@ var VueController = /*#__PURE__*/function () {
223585
223810
  }
223586
223811
  };
223587
223812
  for (var i = 0; i < nodes.length; i++) {
223588
- _loop2();
223813
+ _loop4();
223589
223814
  }
223590
223815
  };
223591
223816
  if (area == undefined || area == 'header') {
@@ -223692,7 +223917,7 @@ var VueController = /*#__PURE__*/function () {
223692
223917
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
223693
223918
  var allArr = [];
223694
223919
  var getAllNodes = function getAllNodes(nodes, arr) {
223695
- var _loop3 = function _loop3() {
223920
+ var _loop5 = function _loop5() {
223696
223921
  var node = nodes[i];
223697
223922
  if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
223698
223923
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
@@ -223730,7 +223955,7 @@ var VueController = /*#__PURE__*/function () {
223730
223955
  }
223731
223956
  };
223732
223957
  for (var i = 0; i < nodes.length; i++) {
223733
- _loop3();
223958
+ _loop5();
223734
223959
  }
223735
223960
  };
223736
223961
  var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
@@ -223906,8 +224131,8 @@ var VueController = /*#__PURE__*/function () {
223906
224131
  key: "updateElementTextById",
223907
224132
  value: function () {
223908
224133
  var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(id, text) {
223909
- var _this3 = this;
223910
- var nodes, _loop4, _ret2, i;
224134
+ var _this4 = this;
224135
+ var nodes, _loop6, _ret2, i;
223911
224136
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context11) {
223912
224137
  while (1) switch (_context11.prev = _context11.next) {
223913
224138
  case 0:
@@ -223916,9 +224141,9 @@ var VueController = /*#__PURE__*/function () {
223916
224141
  _context11.next = 16;
223917
224142
  break;
223918
224143
  }
223919
- _loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
224144
+ _loop6 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop6() {
223920
224145
  var node, _hoEditorFactory, _node$childNodes, xml, x2js, object, json, childNodes, getChildNodes, spath, epath, range, _nodes4, k, _xml, _x2js, _object, _json, _xml2, _x2js2, _object2, _json2;
223921
- return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop4$(_context10) {
224146
+ return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop6$(_context10) {
223922
224147
  while (1) switch (_context10.prev = _context10.next) {
223923
224148
  case 0:
223924
224149
  node = nodes[i];
@@ -223936,7 +224161,7 @@ var VueController = /*#__PURE__*/function () {
223936
224161
  }
223937
224162
  return _context10.abrupt("return", 0);
223938
224163
  case 5:
223939
- _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this3._hoEditorFactoryID);
224164
+ _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this4._hoEditorFactoryID);
223940
224165
  if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
223941
224166
  _context10.next = 33;
223942
224167
  break;
@@ -223955,8 +224180,8 @@ var VueController = /*#__PURE__*/function () {
223955
224180
  getChildNodes = function getChildNodes(item) {
223956
224181
  if (Array.isArray(item)) {
223957
224182
  //数组
223958
- for (var _i4 = 1; _i4 < item.length - 1; _i4++) {
223959
- var anode = _hoEditorFactory.structureConvert.convertNode(item[_i4], node.rootNodes, node);
224183
+ for (var _i5 = 1; _i5 < item.length - 1; _i5++) {
224184
+ var anode = _hoEditorFactory.structureConvert.convertNode(item[_i5], node.rootNodes, node);
223960
224185
  if (anode) {
223961
224186
  if (anode instanceof TextNode/* TextNode */.R) {
223962
224187
  if (anode.text.length > (0,esm_toConsumableArray/* default */.Z)(anode.text).length) {
@@ -223996,7 +224221,7 @@ var VueController = /*#__PURE__*/function () {
223996
224221
  getChildNodes(json.node.childNodes.node);
223997
224222
  spath = node.StartMarkNode.getNodePath();
223998
224223
  epath = node.EndMarkNode.getNodePath();
223999
- range = new DomRange/* DomRange */.a(_this3._hoEditorFactoryID, spath, epath);
224224
+ range = new DomRange/* DomRange */.a(_this4._hoEditorFactoryID, spath, epath);
224000
224225
  _hoEditorFactory.docController.deleteRange(range, true, "update");
224001
224226
  (_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
224002
224227
  node.update(0);
@@ -224008,7 +224233,7 @@ var VueController = /*#__PURE__*/function () {
224008
224233
  break;
224009
224234
  }
224010
224235
  node.childNodes.splice(1, node.childNodes.length - 2);
224011
- _nodes4 = _this3.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
224236
+ _nodes4 = _this4.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
224012
224237
  for (k = 0; k < _nodes4.length; k++) {
224013
224238
  node.childNodes.splice(1 + k, 0, _nodes4[k]);
224014
224239
  }
@@ -224065,7 +224290,7 @@ var VueController = /*#__PURE__*/function () {
224065
224290
  case "end":
224066
224291
  return _context10.stop();
224067
224292
  }
224068
- }, _loop4);
224293
+ }, _loop6);
224069
224294
  });
224070
224295
  i = nodes.length - 1;
224071
224296
  case 4:
@@ -224073,7 +224298,7 @@ var VueController = /*#__PURE__*/function () {
224073
224298
  _context11.next = 14;
224074
224299
  break;
224075
224300
  }
224076
- return _context11.delegateYield(_loop4(), "t0", 6);
224301
+ return _context11.delegateYield(_loop6(), "t0", 6);
224077
224302
  case 6:
224078
224303
  _ret2 = _context11.t0;
224079
224304
  if (!(_ret2 === 0)) {
@@ -224146,7 +224371,7 @@ var VueController = /*#__PURE__*/function () {
224146
224371
  }, {
224147
224372
  key: "createPNG",
224148
224373
  value: function createPNG(quality, type, callback) {
224149
- var _this4 = this;
224374
+ var _this5 = this;
224150
224375
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
224151
224376
  var createElementNodes = function createElementNodes() {
224152
224377
  var drawpages = hoEditorFactory.drawTree.drawPages;
@@ -224187,7 +224412,7 @@ var VueController = /*#__PURE__*/function () {
224187
224412
  document.body.appendChild(pngBox);
224188
224413
  callback && callback();
224189
224414
  document.querySelector('#hoDownLoadImageBtn').onclick = function () {
224190
- _this4.downLoadPNGHTML();
224415
+ _this5.downLoadPNGHTML();
224191
224416
  };
224192
224417
  };
224193
224418
  if (hoEditorFactory.loadImageCount <= 0) {
@@ -224244,7 +224469,7 @@ var VueController = /*#__PURE__*/function () {
224244
224469
  }, {
224245
224470
  key: "createPDF",
224246
224471
  value: function createPDF() {
224247
- var _this5 = this;
224472
+ var _this6 = this;
224248
224473
  var btn = document.createElement('button');
224249
224474
  btn.id = 'hoDownLoadPDFBtn';
224250
224475
  btn.style.position = 'fixed';
@@ -224256,7 +224481,7 @@ var VueController = /*#__PURE__*/function () {
224256
224481
  btn.style.outline = 'none';
224257
224482
  document.body.appendChild(btn);
224258
224483
  document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
224259
- _this5.saveAsPDF();
224484
+ _this6.saveAsPDF();
224260
224485
  };
224261
224486
  }
224262
224487
  /*
@@ -224387,6 +224612,11 @@ var VueController = /*#__PURE__*/function () {
224387
224612
  result.ptTop = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight);
224388
224613
  result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight * 2);
224389
224614
  }
224615
+ } else {
224616
+ result.ptLeft = result.ptX;
224617
+ result.ptRight = result.ptX + hoEditorFactory.unitConvert.pxToPt(hoEditorFactory.signHeight * 2);
224618
+ result.ptTop = result.ptY;
224619
+ result.ptBottom = result.ptY - hoEditorFactory.unitConvert.pxToPt(hoEditorFactory.signHeight);
224390
224620
  }
224391
224621
  return result;
224392
224622
  }
@@ -224666,7 +224896,7 @@ var VueController = /*#__PURE__*/function () {
224666
224896
  }, {
224667
224897
  key: "setBackgroundByName",
224668
224898
  value: function setBackgroundByName(items) {
224669
- var _this6 = this;
224899
+ var _this7 = this;
224670
224900
  var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
224671
224901
  var selectRangeArr = [];
224672
224902
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
@@ -224679,16 +224909,16 @@ var VueController = /*#__PURE__*/function () {
224679
224909
  var isCurrent = item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId || item.innerIdentifier === anode.innerIdentifier;
224680
224910
  // console.log(isCurrent, anode.name, anode.innerIdentifier)
224681
224911
  if (item.text !== '' && isCurrent && anode.text.includes(item.text)) {
224682
- var range = _this6.search(anode, item.text);
224912
+ var range = _this7.search(anode, item.text);
224683
224913
  if (range.length > 0) {
224684
224914
  selectRangeArr = selectRangeArr.concat(range);
224685
224915
  }
224686
224916
  } else if ((item.text === '' || item.text == undefined) && isCurrent) {
224687
224917
  var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
224688
224918
  var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
224689
- var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, sPath);
224690
- var pEndPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, ePath);
224691
- var selectRange = new SelectRange/* SelectRange */.E(_this6.hoEditorFactoryID);
224919
+ var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this7._hoEditorFactoryID, sPath);
224920
+ var pEndPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this7._hoEditorFactoryID, ePath);
224921
+ var selectRange = new SelectRange/* SelectRange */.E(_this7.hoEditorFactoryID);
224692
224922
  selectRange.spStart = pStartPoint;
224693
224923
  selectRange.spEnd = pEndPoint;
224694
224924
  selectRangeArr.push(selectRange);
@@ -224866,7 +225096,7 @@ var VueController = /*#__PURE__*/function () {
224866
225096
  var returnPath = textNodesPaths[j];
224867
225097
  var path = returnPath;
224868
225098
  var nodeLastPath = returnPath;
224869
- var _loop5 = function _loop5() {
225099
+ var _loop7 = function _loop7() {
224870
225100
  var np = hoEditorFactory.docTree.findNodePositionByPath(path);
224871
225101
  if (np && np.node) {
224872
225102
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -224890,8 +225120,8 @@ var VueController = /*#__PURE__*/function () {
224890
225120
  path = pathArr.join('/');
224891
225121
  }
224892
225122
  };
224893
- for (var _i5 = 0; _i5 < text.length; _i5++) {
224894
- _loop5();
225123
+ for (var _i6 = 0; _i6 < text.length; _i6++) {
225124
+ _loop7();
224895
225125
  }
224896
225126
  var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
224897
225127
  var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(this._hoEditorFactoryID, returnPath);
@@ -225404,7 +225634,7 @@ var VueController = /*#__PURE__*/function () {
225404
225634
  }, {
225405
225635
  key: "showElementsEditRecord",
225406
225636
  value: function showElementsEditRecord(objects, id) {
225407
- var _this7 = this;
225637
+ var _this8 = this;
225408
225638
  var comments = [];
225409
225639
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
225410
225640
  if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
@@ -225443,7 +225673,7 @@ var VueController = /*#__PURE__*/function () {
225443
225673
  arr[pos[0]] = [];
225444
225674
  }
225445
225675
  var obj = {
225446
- editorId: id ? id : _this7._hoEditorFactoryID,
225676
+ editorId: id ? id : _this8._hoEditorFactoryID,
225447
225677
  id: comment.id,
225448
225678
  lineHeight: comment.lineHeight,
225449
225679
  permissionLevel: comment.permissionLevel,
@@ -225573,13 +225803,13 @@ var VueController = /*#__PURE__*/function () {
225573
225803
  }, {
225574
225804
  key: "getAllSignNodeList",
225575
225805
  value: function getAllSignNodeList(bce01, showNode) {
225576
- var _this8 = this;
225806
+ var _this9 = this;
225577
225807
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225578
225808
  var signList = [];
225579
225809
  var patientSignList = [];
225580
225810
  var bce01List = [];
225581
225811
  var getAllNodes = function getAllNodes(nodes) {
225582
- var _loop6 = function _loop6() {
225812
+ var _loop8 = function _loop8() {
225583
225813
  var node = nodes[i];
225584
225814
  if (node instanceof SignNode/* SignNode */.N) {
225585
225815
  if (node.parentNode instanceof CellNode/* CellNode */.D) {
@@ -225641,7 +225871,7 @@ var VueController = /*#__PURE__*/function () {
225641
225871
  }
225642
225872
  });
225643
225873
  if (signColList.length > 0) {
225644
- var firstDataRowIndex = _this8.getTableTitleMaxRowIndex(node) + 1;
225874
+ var firstDataRowIndex = _this9.getTableTitleMaxRowIndex(node) + 1;
225645
225875
  node.rows.forEach(function (rows, rowIndex) {
225646
225876
  if (rowIndex >= firstDataRowIndex) {
225647
225877
  rows.forEach(function (cellNode, colIndex) {
@@ -225679,7 +225909,7 @@ var VueController = /*#__PURE__*/function () {
225679
225909
  }
225680
225910
  };
225681
225911
  for (var i = 0; i < nodes.length; i++) {
225682
- if (_loop6()) continue;
225912
+ if (_loop8()) continue;
225683
225913
  }
225684
225914
  };
225685
225915
  var mainNodes = hoEditorFactory.docTree.mainNodes;
@@ -225694,9 +225924,9 @@ var VueController = /*#__PURE__*/function () {
225694
225924
  }
225695
225925
  }
225696
225926
  } else {
225697
- for (var _i6 = index; _i6 >= 0; _i6--) {
225698
- if (signList[_i6] && signList[_i6].number == 1) {
225699
- sign.isTemplate = signList[_i6].isTemplate;
225927
+ for (var _i7 = index; _i7 >= 0; _i7--) {
225928
+ if (signList[_i7] && signList[_i7].number == 1) {
225929
+ sign.isTemplate = signList[_i7].isTemplate;
225700
225930
  break;
225701
225931
  }
225702
225932
  }
@@ -225763,7 +225993,7 @@ var VueController = /*#__PURE__*/function () {
225763
225993
  }, {
225764
225994
  key: "getSignNodeAndText",
225765
225995
  value: function getSignNodeAndText() {
225766
- var _this9 = this;
225996
+ var _this10 = this;
225767
225997
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225768
225998
  var signList = [];
225769
225999
  var getAllNodes = function getAllNodes(nodes) {
@@ -225783,7 +226013,7 @@ var VueController = /*#__PURE__*/function () {
225783
226013
  dataId: _node8.dataId,
225784
226014
  name: _node8.name
225785
226015
  };
225786
- sign.previousText = _this9.getPreviousText(_node8);
226016
+ sign.previousText = _this10.getPreviousText(_node8);
225787
226017
  signList.push(sign);
225788
226018
  }
225789
226019
  }
@@ -225799,10 +226029,9 @@ var VueController = /*#__PURE__*/function () {
225799
226029
  }
225800
226030
  }, {
225801
226031
  key: "getSignNodeList",
225802
- value: function getSignNodeList(nodeDataId, bce01) {
226032
+ value: function getSignNodeList(nodeDataId, bce01, path) {
225803
226033
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225804
226034
  var signList = [];
225805
- var count = 0;
225806
226035
  var arr = [];
225807
226036
  var getAllNodes = function getAllNodes(nodes) {
225808
226037
  for (var i = 0; i < nodes.length; i++) {
@@ -225827,6 +226056,7 @@ var VueController = /*#__PURE__*/function () {
225827
226056
  // sign.previousText = this.getPreviousText(node);
225828
226057
  if (_node9.imgSrc || _node9.fingerPrintSrc) {
225829
226058
  sign.signed = true;
226059
+ sign.path = _node9.getNodePath();
225830
226060
  }
225831
226061
  var reset = false;
225832
226062
  if (_node9.attribute == 1) {
@@ -225880,7 +226110,7 @@ var VueController = /*#__PURE__*/function () {
225880
226110
  var isSigned = false;
225881
226111
  signList.forEach(function (m) {
225882
226112
  if (m.filter(function (v) {
225883
- return v.dataId == nodeDataId;
226113
+ return v.dataId == nodeDataId && (!path || v.path == path);
225884
226114
  }).length == 1) {
225885
226115
  signCount = m.filter(function (v) {
225886
226116
  return v.signed;
@@ -225940,13 +226170,13 @@ var VueController = /*#__PURE__*/function () {
225940
226170
  }, {
225941
226171
  key: "html2Xml",
225942
226172
  value: function html2Xml(json) {
225943
- var _this10 = this;
226173
+ var _this11 = this;
225944
226174
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225945
226175
  var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
225946
226176
  var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
225947
226177
  var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
225948
226178
  var insertParaNode = function insertParaNode(area, index) {
225949
- var node = new ParagraphNode/* ParagraphNode */.C(_this10._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
226179
+ var node = new ParagraphNode/* ParagraphNode */.C(_this11._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
225950
226180
  if (area == 'header') {
225951
226181
  node.rootPath = 'header/0';
225952
226182
  headerNodes.splice(index, 0, node);
@@ -226068,8 +226298,8 @@ var VueController = /*#__PURE__*/function () {
226068
226298
  var rowInfosArray = new Array();
226069
226299
  var rows = node.rowInfos.length - 1;
226070
226300
  var cols = node.colInfos.length - 1;
226071
- for (var _i7 = 0; _i7 <= rows; _i7++) {
226072
- var rowInfo = node.rowInfos[_i7];
226301
+ for (var _i8 = 0; _i8 <= rows; _i8++) {
226302
+ var rowInfo = node.rowInfos[_i8];
226073
226303
  var _customProperties = {
226074
226304
  customProperty: Array(rowInfo.rowProperty.customProperties)
226075
226305
  };
@@ -226090,8 +226320,8 @@ var VueController = /*#__PURE__*/function () {
226090
226320
  };
226091
226321
  var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
226092
226322
  var keysName = Object.keys(defaultRowProp);
226093
- for (var _k5 = 0; _k5 < keysName.length; _k5++) {
226094
- if (keysName[_k5] === 'customProperties') {
226323
+ for (var _k6 = 0; _k6 < keysName.length; _k6++) {
226324
+ if (keysName[_k6] === 'customProperties') {
226095
226325
  if (rowInfo.rowProperty.customProperties.length === 0) {
226096
226326
  delete rowPropertyJson['customProperties'];
226097
226327
  }
@@ -226102,8 +226332,8 @@ var VueController = /*#__PURE__*/function () {
226102
226332
  // }
226103
226333
  // }
226104
226334
  else {
226105
- if (rowPropertyJson[keysName[_k5]] === defaultRowPropJson[keysName[_k5]]) {
226106
- delete rowPropertyJson[keysName[_k5]];
226335
+ if (rowPropertyJson[keysName[_k6]] === defaultRowPropJson[keysName[_k6]]) {
226336
+ delete rowPropertyJson[keysName[_k6]];
226107
226337
  }
226108
226338
  }
226109
226339
  }
@@ -226129,8 +226359,8 @@ var VueController = /*#__PURE__*/function () {
226129
226359
  var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
226130
226360
  //处理列宽
226131
226361
  var colInfosArray = new Array();
226132
- for (var _i8 = 0; _i8 <= cols; _i8++) {
226133
- var colInfo = node.colInfos[_i8];
226362
+ for (var _i9 = 0; _i9 <= cols; _i9++) {
226363
+ var colInfo = node.colInfos[_i9];
226134
226364
  var _customProperties2 = {
226135
226365
  customProperty: Array(colInfo.colProperty.customProperties)
226136
226366
  };
@@ -226149,9 +226379,9 @@ var VueController = /*#__PURE__*/function () {
226149
226379
  };
226150
226380
  var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
226151
226381
  var colKeysName = Object.keys(defaultColProp);
226152
- for (var _k6 = 0; _k6 < colKeysName.length; _k6++) {
226153
- if (colPropertyJson[colKeysName[_k6]] === defaultColPropJson[colKeysName[_k6]]) {
226154
- delete colPropertyJson[colKeysName[_k6]];
226382
+ for (var _k7 = 0; _k7 < colKeysName.length; _k7++) {
226383
+ if (colPropertyJson[colKeysName[_k7]] === defaultColPropJson[colKeysName[_k7]]) {
226384
+ delete colPropertyJson[colKeysName[_k7]];
226155
226385
  }
226156
226386
  }
226157
226387
  colInfosArray.push({
@@ -226258,8 +226488,8 @@ var VueController = /*#__PURE__*/function () {
226258
226488
  if (node instanceof CellNode/* CellNode */.D) {
226259
226489
  //处理子节点
226260
226490
  var childArray = new Array();
226261
- for (var _i9 = 0; _i9 < node.childNodes.length; _i9++) {
226262
- var anode = node.childNodes[_i9];
226491
+ for (var _i10 = 0; _i10 < node.childNodes.length; _i10++) {
226492
+ var anode = node.childNodes[_i10];
226263
226493
  var nodeJson = void 0;
226264
226494
  if (anode instanceof TextNode/* TextNode */.R) {
226265
226495
  if (anode.text !== '') {
@@ -226303,22 +226533,22 @@ var VueController = /*#__PURE__*/function () {
226303
226533
  };
226304
226534
  var cellPropertyJson = JSON.parse(JSON.stringify(cellProperty));
226305
226535
  var _keysName = Object.keys(defaultCellPropJson);
226306
- for (var _k7 = 0; _k7 < _keysName.length; _k7++) {
226307
- if (_keysName[_k7] === 'customProperties') {
226536
+ for (var _k8 = 0; _k8 < _keysName.length; _k8++) {
226537
+ if (_keysName[_k8] === 'customProperties') {
226308
226538
  if (!node.cellProperty.customProperties) {
226309
226539
  delete cellPropertyJson['customProperties'];
226310
226540
  } else if (node.cellProperty.customProperties.length === 0) {
226311
226541
  delete cellPropertyJson['customProperties'];
226312
226542
  }
226313
- } else if (_keysName[_k7] === 'cellInnerMargin') {
226543
+ } else if (_keysName[_k8] === 'cellInnerMargin') {
226314
226544
  if (cellPropertyJson['cellInnerMargin'] === '0,0,0.1,0.1') {
226315
226545
  delete cellPropertyJson['cellInnerMargin'];
226316
226546
  }
226317
- } else if (_keysName[_k7] === 'gridLinesColor') {
226547
+ } else if (_keysName[_k8] === 'gridLinesColor') {
226318
226548
  if (cellPropertyJson['gridLinesColor'] === '#000000,#000000,#000000,#000000') {
226319
226549
  delete cellPropertyJson['gridLinesColor'];
226320
226550
  }
226321
- } else if (_keysName[_k7] === 'gridLineDisplay') {
226551
+ } else if (_keysName[_k8] === 'gridLineDisplay') {
226322
226552
  if (cellPropertyJson['gridLineDisplay'] === 'true,true,true,true') {
226323
226553
  delete cellPropertyJson['gridLineDisplay'];
226324
226554
  }
@@ -226329,8 +226559,8 @@ var VueController = /*#__PURE__*/function () {
226329
226559
  // }
226330
226560
  // }
226331
226561
  else {
226332
- if (cellPropertyJson[_keysName[_k7]] === defaultCellPropJson[_keysName[_k7]]) {
226333
- delete cellPropertyJson[_keysName[_k7]];
226562
+ if (cellPropertyJson[_keysName[_k8]] === defaultCellPropJson[_keysName[_k8]]) {
226563
+ delete cellPropertyJson[_keysName[_k8]];
226334
226564
  }
226335
226565
  }
226336
226566
  }
@@ -226375,8 +226605,8 @@ var VueController = /*#__PURE__*/function () {
226375
226605
  };
226376
226606
  var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
226377
226607
  var doc2XmlJson = function doc2XmlJson(nodes) {
226378
- for (var _i10 = 0; _i10 < nodes.length; _i10++) {
226379
- var _node11 = nodes[_i10];
226608
+ for (var _i11 = 0; _i11 < nodes.length; _i11++) {
226609
+ var _node11 = nodes[_i11];
226380
226610
  if (_node11 instanceof TextNode/* TextNode */.R || _node11 instanceof ParagraphNode/* ParagraphNode */.C || _node11 instanceof TableNode/* TableNode */.Fh || _node11 instanceof ImageNode/* ImageNode */.H) {
226381
226611
  var nodeJson = node2Json(_node11);
226382
226612
  xmlRoot += x2js.js2xml(nodeJson);
@@ -226444,7 +226674,7 @@ var VueController = /*#__PURE__*/function () {
226444
226674
  }, {
226445
226675
  key: "updateNurseRecord",
226446
226676
  value: function updateNurseRecord(table, operType, rowIndex, data) {
226447
- var _this11 = this;
226677
+ var _this12 = this;
226448
226678
  var keys = Object.keys(data);
226449
226679
  var backfill = function backfill(r) {
226450
226680
  for (var i = 0; i < keys.length; i++) {
@@ -226453,7 +226683,7 @@ var VueController = /*#__PURE__*/function () {
226453
226683
  if (cell) {
226454
226684
  var text = data[keys[i]];
226455
226685
  cell.childNodes.splice(1, cell.childNodes.length);
226456
- var textNode = new TextNode/* TextNode */.R(_this11._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
226686
+ var textNode = new TextNode/* TextNode */.R(_this12._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
226457
226687
  cell.drawCell.needUpdate = true;
226458
226688
  cell.childNodes.push(textNode);
226459
226689
  }
@@ -226703,7 +226933,7 @@ var VueController = /*#__PURE__*/function () {
226703
226933
  }, {
226704
226934
  key: "updateAllCodeElements",
226705
226935
  value: function updateAllCodeElements(element) {
226706
- var _this12 = this;
226936
+ var _this13 = this;
226707
226937
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226708
226938
  var ret = [];
226709
226939
  var getAllNodes = function getAllNodes(nodes) {
@@ -226732,7 +226962,7 @@ var VueController = /*#__PURE__*/function () {
226732
226962
  if (ret.length > 0) {
226733
226963
  ret.forEach(function (v) {
226734
226964
  if (v.name === element.name) {
226735
- _this12.updateCodeContent(v, element.content);
226965
+ _this13.updateCodeContent(v, element.content);
226736
226966
  }
226737
226967
  });
226738
226968
  this.rebuildAll(false);
@@ -226806,7 +227036,7 @@ var VueController = /*#__PURE__*/function () {
226806
227036
  for (var j = 0; j < pathArr.length; j++) {
226807
227037
  var apath = pathArr[j];
226808
227038
  var nodeLastPath = pathArr[j];
226809
- for (var _i11 = 0; _i11 < findText.length; _i11++) {
227039
+ for (var _i12 = 0; _i12 < findText.length; _i12++) {
226810
227040
  var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
226811
227041
  if (np && np.node) {
226812
227042
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
@@ -227137,8 +227367,8 @@ var VueController = /*#__PURE__*/function () {
227137
227367
  }
227138
227368
  }
227139
227369
  }
227140
- for (var _k8 = rowCellNum; _k8 < table.childNodes.length; _k8++) {
227141
- var cell = table.childNodes[_k8];
227370
+ for (var _k9 = rowCellNum; _k9 < table.childNodes.length; _k9++) {
227371
+ var cell = table.childNodes[_k9];
227142
227372
  if (cell.childNodes.length > 1) {
227143
227373
  cell.childNodes.splice(1, cell.childNodes.length);
227144
227374
  cell.drawCell.needUpdate = true;
@@ -227168,9 +227398,9 @@ var VueController = /*#__PURE__*/function () {
227168
227398
  var result = this.clacFormula(_cell, formulaStr);
227169
227399
  if (result !== "") {
227170
227400
  _cell.childNodes.splice(1, _cell.childNodes.length);
227171
- var _textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
227401
+ var _textNode3 = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
227172
227402
  _cell.drawCell.needUpdate = true;
227173
- _cell.childNodes.push(_textNode);
227403
+ _cell.childNodes.push(_textNode3);
227174
227404
  _cell.cellProperty.oldValue = result;
227175
227405
  }
227176
227406
  }
@@ -227245,12 +227475,12 @@ var VueController = /*#__PURE__*/function () {
227245
227475
  }, {
227246
227476
  key: "markRed",
227247
227477
  value: function markRed(cell, text) {
227248
- var _this13 = this;
227478
+ var _this14 = this;
227249
227479
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
227250
227480
  var repaint = function repaint(type) {
227251
227481
  var styleIndex = cell.childNodes[0].styleIndex;
227252
227482
  var curStyle = hoEditorFactory.docTree.styles[styleIndex];
227253
- var newStyle = new TextStyle/* TextStyle */.pn(_this13._hoEditorFactoryID);
227483
+ var newStyle = new TextStyle/* TextStyle */.pn(_this14._hoEditorFactoryID);
227254
227484
  newStyle.copyProperty(curStyle, newStyle);
227255
227485
  if (type === 1) {
227256
227486
  newStyle.color = "red";
@@ -227259,7 +227489,7 @@ var VueController = /*#__PURE__*/function () {
227259
227489
  }
227260
227490
  var newIndex = hoEditorFactory.docTree.styleCompare(newStyle);
227261
227491
  cell.childNodes.splice(1, cell.childNodes.length);
227262
- var textNode = new TextNode/* TextNode */.R(_this13._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
227492
+ var textNode = new TextNode/* TextNode */.R(_this14._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
227263
227493
  cell.childNodes.push(textNode);
227264
227494
  };
227265
227495
  if (text !== cell.cellProperty.oldValue) {
@@ -227348,7 +227578,7 @@ var VueController = /*#__PURE__*/function () {
227348
227578
  }, {
227349
227579
  key: "getElementChangeRecords",
227350
227580
  value: function getElementChangeRecords() {
227351
- var _this14 = this;
227581
+ var _this15 = this;
227352
227582
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
227353
227583
  var recordArr = new Array();
227354
227584
  var records = hoEditorFactory.docTree.elementChangeRecords;
@@ -227364,7 +227594,7 @@ var VueController = /*#__PURE__*/function () {
227364
227594
  "id": key.split("|")[0],
227365
227595
  "dataid": key.split("|")[1]
227366
227596
  };
227367
- var _node16 = _this14.getNodeByDataID('all', key.split("|")[1]);
227597
+ var _node16 = _this15.getNodeByDataID('all', key.split("|")[1]);
227368
227598
  if (_node16 == null) {
227369
227599
  recordArr.push(obj);
227370
227600
  }
@@ -227386,7 +227616,7 @@ var VueController = /*#__PURE__*/function () {
227386
227616
  });
227387
227617
  }
227388
227618
  if (value[1].nodeTypes == 'sign') {
227389
- var _node17 = _this14.getNodeByDataID('main', key.replace('|', ''));
227619
+ var _node17 = _this15.getNodeByDataID('main', key.replace('|', ''));
227390
227620
  if (_node17 instanceof SignNode/* SignNode */.N) {
227391
227621
  var signJsons = _node17.node2Json();
227392
227622
  var signXml = x2js.js2xml(signJsons);
@@ -227414,7 +227644,7 @@ var VueController = /*#__PURE__*/function () {
227414
227644
  }
227415
227645
  } else {
227416
227646
  var id = key.split("|")[0];
227417
- var _node18 = _this14.getNodeByID('all', id);
227647
+ var _node18 = _this15.getNodeByID('all', id);
227418
227648
  }
227419
227649
  });
227420
227650
  return recordArr;
@@ -248116,7 +248346,14 @@ function HoEditorProvidevue_type_script_lang_js_getWatch() {
248116
248346
  }
248117
248347
  /* harmony default export */ var HoEditorProvidevue_type_script_lang_js_ = ({
248118
248348
  name: 'HoEditorProvide',
248119
- props: {},
248349
+ props: {
248350
+ customParams: {
248351
+ type: Object,
248352
+ default: function _default() {
248353
+ return {};
248354
+ }
248355
+ }
248356
+ },
248120
248357
  provide: function provide() {
248121
248358
  var _self = this;
248122
248359
  this._proxyVm = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
@@ -248128,7 +248365,7 @@ function HoEditorProvidevue_type_script_lang_js_getWatch() {
248128
248365
  hoEditorProvider: this._proxyVm._data
248129
248366
  };
248130
248367
  },
248131
- watch: (0,objectSpread2/* default */.Z)({}, HoEditorProvidevue_type_script_lang_js_getWatch(['textStyle'])),
248368
+ watch: (0,objectSpread2/* default */.Z)({}, HoEditorProvidevue_type_script_lang_js_getWatch(['textStyle', 'customParams'])),
248132
248369
  methods: {},
248133
248370
  render: function render() {
248134
248371
  return this.$slots.default ? this.$slots.default[0] : null;