hoeditor-web 2.0.63 → 2.0.66

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.
@@ -11668,6 +11668,8 @@ var Print = /*#__PURE__*/function () {
11668
11668
 
11669
11669
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11670
11670
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
11671
+ ctx.posX = svg2pdfOptions.x;
11672
+ ctx.posY = svg2pdfOptions.y;
11671
11673
  window.printBlack = hoEditorFactory.printBlack;
11672
11674
 
11673
11675
  if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
@@ -11676,11 +11678,11 @@ var Print = /*#__PURE__*/function () {
11676
11678
  ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
11677
11679
 
11678
11680
  ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
11681
+ // ctx.posX = 0;
11682
+ // ctx.posY = 1122 / 2;
11679
11683
  }
11680
11684
  }
11681
11685
 
11682
- ctx.posX = svg2pdfOptions.x;
11683
- ctx.posY = svg2pdfOptions.y;
11684
11686
  ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
11685
11687
  ctx = null;
11686
11688
  _context3.next = 57;
@@ -22241,7 +22243,7 @@ var CellProperty = /*#__PURE__*/function () {
22241
22243
  /*
22242
22244
  * @Author: your name
22243
22245
  * @Date: 2021-01-20 10:18:55
22244
- * @LastEditTime: 2022-05-20 18:56:55
22246
+ * @LastEditTime: 2022-07-08 13:55:38
22245
22247
  * @LastEditors: liyanan 2441631434@qq.com
22246
22248
  * @Description: In User Settings Edit
22247
22249
  * @FilePath: \hoeditor-web\src\editor\dom\domNode\Comment.ts
@@ -27271,7 +27273,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
27271
27273
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
27272
27274
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
27273
27275
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35671);
27274
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(22342);
27276
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(22342);
27275
27277
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
27276
27278
  /* 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__);
27277
27279
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
@@ -27284,16 +27286,25 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
27284
27286
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_8__);
27285
27287
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40561);
27286
27288
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__);
27287
- /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38862);
27288
- /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_10__);
27289
- /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(63756);
27290
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(98199);
27291
- /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(1470);
27292
- /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34534);
27293
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(41005);
27294
- /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(23375);
27295
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(50369);
27296
- /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8395);
27289
+ /* harmony import */ var core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27852);
27290
+ /* harmony import */ var core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_10__);
27291
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74916);
27292
+ /* 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__);
27293
+ /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23123);
27294
+ /* 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__);
27295
+ /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38862);
27296
+ /* 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__);
27297
+ /* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(63756);
27298
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(98199);
27299
+ /* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1470);
27300
+ /* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34534);
27301
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(41005);
27302
+ /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(23375);
27303
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(50369);
27304
+ /* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8395);
27305
+
27306
+
27307
+
27297
27308
 
27298
27309
 
27299
27310
 
@@ -27342,7 +27353,7 @@ var BandDataSource = /*#__PURE__*/function () {
27342
27353
  this.execState = ""; //执行状态
27343
27354
  }
27344
27355
 
27345
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(BandDataSource, [{
27356
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(BandDataSource, [{
27346
27357
  key: "DataSourceEnabled",
27347
27358
  get: function get() {
27348
27359
  return this.dataSourceEnabled;
@@ -27431,7 +27442,7 @@ var DownListNodeInstance = /*#__PURE__*/function () {
27431
27442
  this.allowMultiSelect = false;
27432
27443
  }
27433
27444
 
27434
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(DownListNodeInstance, [{
27445
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNodeInstance, [{
27435
27446
  key: "Id",
27436
27447
  get: function get() {
27437
27448
  return this.id;
@@ -27567,7 +27578,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27567
27578
  // this._id = valuesObj["id"];
27568
27579
  // }
27569
27580
 
27570
- _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_18__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
27581
+ _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
27571
27582
  // this._name = valuesObj["name"];
27572
27583
  // }
27573
27584
  // if (valuesObj["title"] !== undefined) {
@@ -27640,7 +27651,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27640
27651
  _this.setValuesObject(valuesObject);
27641
27652
 
27642
27653
  if (!_this.dataId) {
27643
- _this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
27654
+ _this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
27644
27655
  }
27645
27656
 
27646
27657
  if (_this._text === "") {
@@ -27661,7 +27672,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27661
27672
  return _this;
27662
27673
  }
27663
27674
 
27664
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(DownListNode, [{
27675
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNode, [{
27665
27676
  key: "setValuesObject",
27666
27677
  value: function setValuesObject(valuesObject) {
27667
27678
  var valuesObj = eval("(" + valuesObject + ")");
@@ -27798,12 +27809,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27798
27809
  }, {
27799
27810
  key: "setDownListText",
27800
27811
  value: function setDownListText(text) {
27801
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27812
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27802
27813
  var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
27803
27814
  var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
27804
- var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_14__/* .NodeChangeEvent */ .G(this.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_16__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
27815
+ 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);
27805
27816
  changeEvent.oldEndPath = ePath;
27806
- changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_13__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
27817
+ changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
27807
27818
  this._text = text;
27808
27819
 
27809
27820
  if (this._text === "") {
@@ -27825,7 +27836,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27825
27836
  value: function node2DrawNodeRange(startIndex, endIndex) {
27826
27837
  // const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
27827
27838
  // .combineStyle;
27828
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27839
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27829
27840
  var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
27830
27841
  var cbStyle;
27831
27842
 
@@ -27842,7 +27853,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27842
27853
  }
27843
27854
 
27844
27855
  var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
27845
- var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_11__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
27856
+ var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
27846
27857
 
27847
27858
  this._drawNodes.push(dNode);
27848
27859
  }
@@ -27870,10 +27881,10 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27870
27881
  return dline;
27871
27882
  }
27872
27883
 
27873
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27884
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27874
27885
  var isDisPlay = true;
27875
27886
 
27876
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_12__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_12__/* .PaintState.psPrint */ .Dh.psPrint) {
27887
+ 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) {
27877
27888
  isDisPlay = false;
27878
27889
  }
27879
27890
 
@@ -27891,7 +27902,50 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27891
27902
  var color = hoEditorFactory.option.getColorByLevel(120);
27892
27903
 
27893
27904
  if (this.keyValue !== "") {
27894
- color = hoEditorFactory.option.getColorByLevel(12);
27905
+ if (hoEditorFactory.isSameColorWithEmptyVlaue) {
27906
+ var isDefault = false;
27907
+
27908
+ if (this._allowMultiSelect) {
27909
+ var defaultValues = "";
27910
+
27911
+ for (var _i = 0; _i < this.downListContent.length; _i++) {
27912
+ var item1 = this.downListContent[_i];
27913
+
27914
+ if (item1.default) {
27915
+ defaultValues += item1.id + ",";
27916
+ }
27917
+ }
27918
+
27919
+ if (defaultValues.endsWith(',')) {
27920
+ defaultValues = defaultValues.substring(0, defaultValues.length - 1);
27921
+ }
27922
+
27923
+ var keyValue = this.keyValue;
27924
+
27925
+ if (keyValue.endsWith(',')) {
27926
+ keyValue = keyValue.substring(0, keyValue.length - 1);
27927
+ }
27928
+
27929
+ if (defaultValues === keyValue) {
27930
+ isDefault = true;
27931
+ }
27932
+ } else {
27933
+ for (var j = 0; j < this.downListContent.length; j++) {
27934
+ var item2 = this.downListContent[j];
27935
+
27936
+ if (item2.id === this.keyValue.split(',')[0] && item2.default) {
27937
+ isDefault = true;
27938
+ break;
27939
+ }
27940
+ }
27941
+ }
27942
+
27943
+ if (!isDefault) {
27944
+ color = hoEditorFactory.option.getColorByLevel(12);
27945
+ }
27946
+ } else {
27947
+ color = hoEditorFactory.option.getColorByLevel(12);
27948
+ }
27895
27949
  }
27896
27950
 
27897
27951
  var backColor = new createjs.Shape();
@@ -27903,9 +27957,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27903
27957
  if (this.keyValue === "") {
27904
27958
  drawNode.alpha = 0;
27905
27959
  } else {
27906
- for (var _i = drawNode.children.length - 1; _i >= 0; _i--) {
27907
- if (drawNode.children[_i].name === "backColor") {
27908
- drawNode.children.splice(_i, 1);
27960
+ for (var _i2 = drawNode.children.length - 1; _i2 >= 0; _i2--) {
27961
+ if (drawNode.children[_i2].name === "backColor") {
27962
+ drawNode.children.splice(_i2, 1);
27909
27963
  }
27910
27964
  }
27911
27965
  }
@@ -27923,9 +27977,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27923
27977
  var downLists = {
27924
27978
  item: this.downListContent
27925
27979
  };
27926
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27980
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
27927
27981
  var retObj = {
27928
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_17__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_17__/* .NodeType.ntControl */ .Jq.ntControl],
27982
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
27929
27983
  type: "ctDownList",
27930
27984
  //id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DL") : this.id,
27931
27985
  id: this.id,
@@ -27936,7 +27990,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27936
27990
  identifierFormat: this.identifierFormat,
27937
27991
  isSynchro: this.isSynchro,
27938
27992
  name: this.name,
27939
- text: this.text,
27993
+ text: this.keyValue == "" ? "" : this.text,
27940
27994
  keyValue: this.keyValue,
27941
27995
  title: this.title,
27942
27996
  styleIndex: this.styleIndex,
@@ -27973,7 +28027,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27973
28027
  this.transType(json);
27974
28028
 
27975
28029
  if (isPaste) {
27976
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_15__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
28030
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
27977
28031
 
27978
28032
  if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
27979
28033
  //json.id = hoEditorFactory.gernerateCode.generateID("DL");
@@ -27985,7 +28039,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27985
28039
  json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
27986
28040
  json.mutexSelect = !json.mutexSelect ? false : json.mutexSelect;
27987
28041
  json.allowMultiSelect = !json.allowMultiSelect ? false : json.allowMultiSelect;
27988
- json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_18__/* .ControlType */ .C[json.type]);
28042
+ json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
27989
28043
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
27990
28044
  json.readType = json.readType ? Number(json.readType) : -1;
27991
28045
  var downListContent = [];
@@ -27994,12 +28048,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
27994
28048
  downListContent.push(json.downLists.item[i]);
27995
28049
  }
27996
28050
 
27997
- return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_17__/* .NodeType.ntControl */ .Jq.ntControl, JSON.stringify(json), downListContent, Number(json.styleIndex));
28051
+ return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl, JSON.stringify(json), downListContent, Number(json.styleIndex));
27998
28052
  }
27999
28053
  }]);
28000
28054
 
28001
28055
  return DownListNode;
28002
- }(_ControlNode__WEBPACK_IMPORTED_MODULE_18__/* .ControlNode */ .w);
28056
+ }(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlNode */ .w);
28003
28057
 
28004
28058
  /***/ }),
28005
28059
 
@@ -44495,15 +44549,24 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44495
44549
  }
44496
44550
  }, {
44497
44551
  key: "removeComment",
44498
- value: function removeComment(comment) {
44499
- for (var i = this.children.length - 1; i >= 0; i--) {
44500
- var child = this.children[i];
44552
+ value: function removeComment(comment, isRecord) {
44553
+ if (isRecord) {
44554
+ for (var i = this.children.length - 1; i >= 0; i--) {
44555
+ var child = this.children[i];
44501
44556
 
44502
- if (child.name === comment.id) {
44503
- this.children.splice(i, 1);
44557
+ if (child.name && child.name === "record" + comment.id) {
44558
+ this.children.splice(i, 1);
44559
+ }
44504
44560
  }
44505
- } //this.stage.update();
44561
+ } else {
44562
+ for (var _i = this.children.length - 1; _i >= 0; _i--) {
44563
+ var _child = this.children[_i];
44506
44564
 
44565
+ if (_child.name && _child.name === comment.id) {
44566
+ this.children.splice(_i, 1);
44567
+ }
44568
+ }
44569
+ }
44507
44570
 
44508
44571
  _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
44509
44572
  }
@@ -44615,12 +44678,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44615
44678
  var minValue = getStagePos(bottomComments[0])[1];
44616
44679
  var _tempComment = bottomComments[0];
44617
44680
 
44618
- for (var _i = 1; _i < bottomComments.length; _i++) {
44619
- var _stageY2 = getStagePos(bottomComments[_i])[1];
44681
+ for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
44682
+ var _stageY2 = getStagePos(bottomComments[_i2])[1];
44620
44683
 
44621
44684
  if (_stageY2 < minValue) {
44622
44685
  minValue = _stageY2;
44623
- _tempComment = bottomComments[_i];
44686
+ _tempComment = bottomComments[_i2];
44624
44687
  }
44625
44688
  }
44626
44689
 
@@ -44765,13 +44828,14 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44765
44828
  value: function repaintRecored(comments, comment, nPath, spX, spY) {
44766
44829
  var _this5 = this;
44767
44830
 
44831
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
44768
44832
  var topComments = new Array();
44769
44833
  var bottomComments = new Array();
44770
44834
  var tempArr = new Array();
44771
44835
 
44772
44836
  var getStagePos = function getStagePos(comment) {
44773
44837
  var endDrawNode = comment.eNode.drawNodes[0];
44774
- var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this5._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44838
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44775
44839
 
44776
44840
  var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
44777
44841
 
@@ -44784,7 +44848,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44784
44848
  var commentY = spY;
44785
44849
  comments.forEach(function (value) {
44786
44850
  if (value.id !== comment.id) {
44787
- tempArr.push(value);
44851
+ var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
44852
+
44853
+ if (area && area.index == _this5.index) {
44854
+ tempArr.push(value);
44855
+ }
44788
44856
  }
44789
44857
  });
44790
44858
  tempArr.forEach(function (value) {
@@ -44843,7 +44911,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44843
44911
  commentY = nodeY;
44844
44912
  }
44845
44913
 
44846
- _this5.removeComment(commentObj);
44914
+ _this5.removeComment(commentObj, true);
44847
44915
 
44848
44916
  _this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
44849
44917
 
@@ -44867,12 +44935,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44867
44935
  var minValue = getStagePos(bottomComments[0])[1];
44868
44936
  var _tempComment3 = bottomComments[0];
44869
44937
 
44870
- for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
44871
- var _stageY4 = getStagePos(bottomComments[_i2])[1];
44938
+ for (var _i3 = 1; _i3 < bottomComments.length; _i3++) {
44939
+ var _stageY4 = getStagePos(bottomComments[_i3])[1];
44872
44940
 
44873
44941
  if (_stageY4 < minValue) {
44874
44942
  minValue = _stageY4;
44875
- _tempComment3 = bottomComments[_i2];
44943
+ _tempComment3 = bottomComments[_i3];
44876
44944
  }
44877
44945
  }
44878
44946
 
@@ -52942,6 +53010,8 @@ var createSuper = __webpack_require__(28214);
52942
53010
  var es_regexp_exec = __webpack_require__(74916);
52943
53011
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
52944
53012
  var es_string_split = __webpack_require__(23123);
53013
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
53014
+ var es_string_ends_with = __webpack_require__(27852);
52945
53015
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
52946
53016
  var es_string_italics = __webpack_require__(58734);
52947
53017
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
@@ -53391,6 +53461,7 @@ var GestationNode = __webpack_require__(74873);
53391
53461
 
53392
53462
 
53393
53463
 
53464
+
53394
53465
  // import {DrawNode} from "./DrawSimpleNode"
53395
53466
 
53396
53467
 
@@ -53612,17 +53683,68 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53612
53683
 
53613
53684
  if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
53614
53685
  if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
53615
- if (this.node.parentNode.inputFieldType === 0) {
53686
+ var parentNode = this.node.parentNode;
53687
+
53688
+ if (parentNode.inputFieldType === 0) {
53616
53689
  if (backColor === hoEditorFactory.pageProperty.backColor) {
53617
53690
  backColor = hoEditorFactory.option.getColorByLevel(10);
53618
53691
  }
53619
53692
  } else {
53620
- if (this.node.parentNode.keyValue == "") {
53693
+ if (parentNode.keyValue == "") {
53621
53694
  backColor = hoEditorFactory.option.getColorByLevel(120);
53622
53695
  } else {
53623
- backColor = hoEditorFactory.option.getColorByLevel(12);
53696
+ var downListProperty = parentNode.downListProperty;
53697
+
53698
+ if (hoEditorFactory.isSameColorWithEmptyVlaue && downListProperty.listItems) {
53699
+ var isDefault = false;
53700
+ var listItems = JSON.parse(downListProperty.listItems);
53701
+
53702
+ if (downListProperty.allowMultiSelected) {
53703
+ var defaultValues = "";
53704
+
53705
+ for (var i = 0; i < listItems.length; i++) {
53706
+ var item1 = listItems[i];
53707
+
53708
+ if (item1.default) {
53709
+ defaultValues += item1.id + ",";
53710
+ }
53711
+ }
53712
+
53713
+ if (defaultValues.endsWith(',')) {
53714
+ defaultValues = defaultValues.substring(0, defaultValues.length - 1);
53715
+ }
53716
+
53717
+ var keyValue = parentNode.keyValue;
53718
+
53719
+ if (keyValue.endsWith(',')) {
53720
+ keyValue = keyValue.substring(0, keyValue.length - 1);
53721
+ }
53722
+
53723
+ if (defaultValues === keyValue) {
53724
+ isDefault = true;
53725
+ }
53726
+ } else {
53727
+ for (var j = 0; j < listItems.length; j++) {
53728
+ var item2 = listItems[j];
53729
+
53730
+ if (item2.id === parentNode.keyValue.split(',')[0] && item2.default) {
53731
+ isDefault = true;
53732
+ break;
53733
+ }
53734
+ }
53735
+ }
53736
+
53737
+ if (isDefault) {
53738
+ backColor = hoEditorFactory.option.getColorByLevel(120);
53739
+ } else {
53740
+ backColor = hoEditorFactory.option.getColorByLevel(12);
53741
+ }
53742
+ } else {
53743
+ backColor = hoEditorFactory.option.getColorByLevel(12);
53744
+ }
53624
53745
  }
53625
- }
53746
+ } //hoEditorFactory.isEnabledGlobalColor = true;
53747
+
53626
53748
 
53627
53749
  if (hoEditorFactory.isEnabledGlobalColor) {
53628
53750
  if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
@@ -63122,7 +63244,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63122
63244
  //if(nodes.length == 0) return;
63123
63245
 
63124
63246
  if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
63125
- _context.next = 33;
63247
+ _context.next = 34;
63126
63248
  break;
63127
63249
  }
63128
63250
 
@@ -63130,7 +63252,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63130
63252
 
63131
63253
  case 13:
63132
63254
  if (!(n < nodes.length)) {
63133
- _context.next = 33;
63255
+ _context.next = 34;
63134
63256
  break;
63135
63257
  }
63136
63258
 
@@ -63146,13 +63268,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63146
63268
  return _context.abrupt("return", 0);
63147
63269
 
63148
63270
  case 18:
63271
+ if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
63272
+ hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
63273
+ }
63274
+
63149
63275
  if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
63150
- _context.next = 27;
63276
+ _context.next = 28;
63151
63277
  break;
63152
63278
  }
63153
63279
 
63154
63280
  if (node.isAllowDelete) {
63155
- _context.next = 27;
63281
+ _context.next = 28;
63156
63282
  break;
63157
63283
  }
63158
63284
 
@@ -63178,9 +63304,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63178
63304
 
63179
63305
  return _context.abrupt("return", 0);
63180
63306
 
63181
- case 27:
63307
+ case 28:
63182
63308
  if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
63183
- _context.next = 30;
63309
+ _context.next = 31;
63184
63310
  break;
63185
63311
  }
63186
63312
 
@@ -63188,16 +63314,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63188
63314
 
63189
63315
  return _context.abrupt("return", 0);
63190
63316
 
63191
- case 30:
63317
+ case 31:
63192
63318
  n++;
63193
63319
  _context.next = 13;
63194
63320
  break;
63195
63321
 
63196
- case 33:
63322
+ case 34:
63197
63323
  pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
63198
63324
 
63199
63325
  if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
63200
- _context.next = 39;
63326
+ _context.next = 40;
63201
63327
  break;
63202
63328
  }
63203
63329
 
@@ -63210,24 +63336,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63210
63336
  });
63211
63337
 
63212
63338
  if (_res[0]) {
63213
- _context.next = 39;
63339
+ _context.next = 40;
63214
63340
  break;
63215
63341
  }
63216
63342
 
63217
63343
  return _context.abrupt("return");
63218
63344
 
63219
- case 39:
63345
+ case 40:
63220
63346
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
63221
63347
  // hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
63222
63348
 
63223
63349
  if (currRange.npStart.node && currRange.npEnd.node) {
63224
- _context.next = 42;
63350
+ _context.next = 43;
63225
63351
  break;
63226
63352
  }
63227
63353
 
63228
63354
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
63229
63355
 
63230
- case 42:
63356
+ case 43:
63231
63357
  // const [startPath, endPath] = DomRange.skipStartEndTablePath(
63232
63358
  // this._hoEditorFactory,
63233
63359
  // currRange.startPath,
@@ -63240,33 +63366,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63240
63366
  res = this.deleteRange(currRange.endPath, currRange.startPath);
63241
63367
 
63242
63368
  if (!(res == 1)) {
63243
- _context.next = 54;
63369
+ _context.next = 55;
63244
63370
  break;
63245
63371
  }
63246
63372
 
63247
63373
  changeEvent.beforeChangePath = startPath;
63248
63374
  changeEvent.afterChangePath = this._tmp.start;
63249
- _context.next = 52;
63375
+ _context.next = 53;
63250
63376
  return hoEditorFactory.docTree.change(changeEvent);
63251
63377
 
63252
- case 52:
63378
+ case 53:
63253
63379
  cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
63254
63380
  hoEditorFactory.docTree.selectChange(cgEvent);
63255
63381
 
63256
- case 54:
63382
+ case 55:
63257
63383
  hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
63258
63384
  hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
63259
63385
  aNode = currRange.npStart.node;
63260
63386
 
63261
63387
  if (!(aNode && pnode)) {
63262
- _context.next = 60;
63388
+ _context.next = 61;
63263
63389
  break;
63264
63390
  }
63265
63391
 
63266
- _context.next = 60;
63392
+ _context.next = 61;
63267
63393
  return this.ParentRepaint(pnode);
63268
63394
 
63269
- case 60:
63395
+ case 61:
63270
63396
  case "end":
63271
63397
  return _context.stop();
63272
63398
  }
@@ -99547,7 +99673,8 @@ if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.get
99547
99673
  if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
99548
99674
  var tmpImageData=jsPDFAPI.loadFile(src,true);if(tmpImageData!==undefined){return tmpImageData;}}if(element.nodeName==="CANVAS"){if(element.width===0||element.height===0){throw new Error("Given canvas must have data. Canvas width: "+element.width+", height: "+element.height);}var mimeType;switch(format){case"PNG":mimeType="image/png";break;case"WEBP":mimeType="image/webp";break;case"JPEG":case"JPG":default:mimeType="image/jpeg";break;}return atob(element.toDataURL(mimeType,1.0).split("base64,").pop());}};var checkImagesForAlias=function checkImagesForAlias(alias){var images=this.internal.collections[namespace+"images"];if(images){for(var e in images){if(alias===images[e].alias){return images[e];}}}};var determineWidthAndHeight=function determineWidthAndHeight(width,height,image){if(!width&&!height){width=-96;height=-96;}if(width<0){width=-1*image.width*72/width/this.internal.scaleFactor;}if(height<0){height=-1*image.height*72/height/this.internal.scaleFactor;}if(width===0){width=height*image.width/image.height;}if(height===0){height=width*image.height/image.width;}return[width,height];};var writeImageToPDF=function writeImageToPDF(x,y,width,height,image,rotation){var dims=determineWidthAndHeight.call(this,width,height,image),coord=this.internal.getCoordinateString,vcoord=this.internal.getVerticalCoordinateString;var images=getImages.call(this);width=dims[0];height=dims[1];images[image.index]=image;if(rotation){rotation*=Math.PI/180;var c=Math.cos(rotation);var s=Math.sin(rotation);//like in pdf Reference do it 4 digits instead of 2
99549
99675
  var f4=function f4(number){return number.toFixed(4);};var rotationTransformationMatrix=[f4(c),f4(s),f4(s*-1),f4(c),0,0,"cm"];}this.internal.write("q");//Save graphics state
99550
- if(rotation){this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
99676
+ if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
99677
+ x+=Number(coord(width));y-=height;console.log(width,height,coord(width),coord(height));this.internal.write([1,"0","0",1,coord(x),vcoord(y+height),"cm"].join(" "));//Translate
99551
99678
  this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
99552
99679
  this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
99553
99680
  }else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
@@ -99657,7 +99784,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
99657
99784
  *
99658
99785
  * @returns jsPDF
99659
99786
  */jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
99660
- var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
99787
+ var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}console.log(rotation);if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
99661
99788
  var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
99662
99789
  compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
99663
99790
  // if(posY) y += posY;
@@ -100458,7 +100585,8 @@ a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isN
100458
100585
  * @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
100459
100586
  */Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img);var factorX=1;var factorY=1;var clipFactorX=1;var clipFactorY=1;if(typeof swidth!=="undefined"&&typeof width!=="undefined"){clipFactorX=width/swidth;clipFactorY=height/sheight;factorX=imageProperties.width/swidth*width/swidth;factorY=imageProperties.height/sheight*height/sheight;}//is sx and sy are set and x and y not, set x and y with values of sx and sy
100460
100587
  if(typeof x==="undefined"){x=sx;y=sy;sx=0;sy=0;}if(typeof swidth!=="undefined"&&typeof width==="undefined"){width=swidth;height=sheight;}if(typeof swidth==="undefined"&&typeof width==="undefined"){width=imageProperties.width;height=imageProperties.height;}var decomposedTransformationMatrix=this.ctx.transform.decompose();// console.log("transform.decompose",decomposedTransformationMatrix.scale);
100461
- var angle=rad2deg(decomposedTransformationMatrix.rotate.shx);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
100588
+ // 自定义修改 修复图片旋转角度错误问题
100589
+ var angle=rad2deg(decomposedTransformationMatrix.rotate.rotation);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
100462
100590
  if(img.nodeName&&img.nodeName=="CANVAS"){xRect=matrix.applyToRectangle(new Rectangle(x+this.posX-sx*clipFactorX,y+this.posY-sy*clipFactorY,swidth*factorX,sheight*factorY));}else{xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY));}var pageArray=getPagesByPath.call(this,xRect);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath;if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.addImage(img,"JPEG",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,null,angle);if(needsClipping){this.pdf.restoreGraphicsState();}}}else{if(img.nodeName&&img.nodeName=="CANVAS"){// 自定义修改
100463
100591
  this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
100464
100592
  this.pdf.addImage(img,"JPEG",xRect.x+this.posX,xRect.y+this.posY,xRect.w,xRect.h,null,null,angle,this.posX,this.posY);}}};var getPagesByPath=function getPagesByPath(path,pageWrapX,pageWrapY){var result=[];pageWrapX=pageWrapX||this.pdf.internal.pageSize.width;pageWrapY=pageWrapY||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yOffset=this.posY+this.ctx.prevPageLastElemOffset;switch(path.type){default:case"mt":case"lt":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);break;case"arc":result.push(Math.floor((path.y+yOffset-path.radius)/pageWrapY)+1);result.push(Math.floor((path.y+yOffset+path.radius)/pageWrapY)+1);break;case"qct":var rectOfQuadraticCurve=getQuadraticCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x,path.y);result.push(Math.floor((rectOfQuadraticCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfQuadraticCurve.y+rectOfQuadraticCurve.h+yOffset)/pageWrapY)+1);break;case"bct":var rectOfBezierCurve=getBezierCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x2,path.y2,path.x,path.y);result.push(Math.floor((rectOfBezierCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfBezierCurve.y+rectOfBezierCurve.h+yOffset)/pageWrapY)+1);break;case"rect":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);result.push(Math.floor((path.y+path.h+yOffset)/pageWrapY)+1);}for(var i=0;i<result.length;i+=1){while(this.pdf.internal.getNumberOfPages()<result[i]){addPage.call(this);}}return result;};var addPage=function addPage(){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var font=this.font;var lineCap=this.lineCap;var lineWidth=this.lineWidth;var lineJoin=this.lineJoin;this.pdf.addPage();this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.font=font;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;};var pathPositionRedo=function pathPositionRedo(paths,x,y){for(var i=0;i<paths.length;i++){switch(paths[i].type){case"bct":paths[i].x2+=x;paths[i].y2+=y;case"qct":paths[i].x1+=x;paths[i].y1+=y;case"mt":case"lt":case"arc":default:paths[i].x+=x;paths[i].y+=y;}}return paths;};var sortPages=function sortPages(pages){return pages.sort(function(a,b){return a-b;});};var pathPreProcess=function pathPreProcess(rule,isClip){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var lineCap=this.lineCap;var oldLineWidth=this.lineWidth;var lineWidth=Math.abs(oldLineWidth*this.ctx.transform.scaleX);var lineJoin=this.lineJoin;var origPath=JSON.parse(JSON.stringify(this.path));var xPath=JSON.parse(JSON.stringify(this.path));var clipPath;var tmpPath;var pages=[];for(var i=0;i<xPath.length;i++){if(typeof xPath[i].x!=="undefined"){var page=getPagesByPath.call(this,xPath[i]);for(var ii=0;ii<page.length;ii+=1){if(pages.indexOf(page[ii])===-1){pages.push(page[ii]);}}}}for(var j=0;j<pages.length;j++){while(this.pdf.internal.getNumberOfPages()<pages[j]){addPage.call(this);}}sortPages(pages);if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var k=min;k<max+1;k++){this.pdf.setPage(k);this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=k===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=k===1?0:firstPageHeight+(k-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,rule,true);this.path=tmpPaths;}tmpPath=JSON.parse(JSON.stringify(origPath));this.path=pathPositionRedo(tmpPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);if(isClip===false||k===0){var needsClipping=(k>min||k<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}drawPaths.call(this,rule,isClip);if(needsClipping){this.pdf.restoreGraphicsState();}}this.lineWidth=oldLineWidth;}}else{this.lineWidth=lineWidth;drawPaths.call(this,rule,isClip);this.lineWidth=oldLineWidth;}this.path=origPath;};/**
@@ -199158,7 +199286,7 @@ var es_function_name = __webpack_require__(68309);
199158
199286
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
199159
199287
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
199160
199288
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
199161
- ;// 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/HoDocs.vue?vue&type=template&id=83a638fc&
199289
+ ;// 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/HoDocs.vue?vue&type=template&id=77aa5c8d&
199162
199290
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
199163
199291
  var staticRenderFns = []
199164
199292
 
@@ -201942,11 +202070,11 @@ var HoToPage_component = normalizeComponent(
201942
202070
  /* harmony default export */ var backToPage = (HoToPage);
201943
202071
  // EXTERNAL MODULE: ./src/plugins/util.ts
201944
202072
  var util = __webpack_require__(33913);
201945
- ;// 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=aa143c0a&scoped=true&
201946
- var PoperSelectvue_type_template_id_aa143c0a_scoped_true_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){
202073
+ ;// 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=0c390485&scoped=true&
202074
+ var PoperSelectvue_type_template_id_0c390485_scoped_true_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){
201947
202075
  var item = ref.item;
201948
202076
  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',{on:{"change":_vm.selectItemsChange},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}},[_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',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_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("取消")])],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.sureDate}},[_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"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
201949
- var PoperSelectvue_type_template_id_aa143c0a_scoped_true_staticRenderFns = []
202077
+ var PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns = []
201950
202078
 
201951
202079
 
201952
202080
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
@@ -204648,12 +204776,12 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204648
204776
  // } else {
204649
204777
  v.id = String(v.id); // }
204650
204778
 
204651
- v.default = false;
204779
+ v.selected = false;
204652
204780
 
204653
204781
  if (selectedString.length > 0 && selectedString.filter(function (m) {
204654
204782
  return v.id == m;
204655
204783
  }).length === 1) {
204656
- v.default = true;
204784
+ v.selected = true;
204657
204785
 
204658
204786
  if (_this2.isAllowMultiSelect && _this2.poperSelectList.length >= 20) {
204659
204787
  _this2.selectedList[selectedString.indexOf(v.id)] = v;
@@ -204860,7 +204988,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204860
204988
  selectItemIndex = index;
204861
204989
  }
204862
204990
  });
204863
- item.default = false;
204991
+ item.selected = false;
204864
204992
  this.poperSelectList.splice(selectItemIndex, 1, item); // this.selectedList.splice(key, 1, item);
204865
204993
 
204866
204994
  this.currentList = this.currentList.filter(function (m) {
@@ -204886,16 +205014,16 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204886
205014
  if (value.length > 0) {
204887
205015
  this.poperSelectList.forEach(function (v) {
204888
205016
  if (value.includes(v.id)) {
204889
- v.default = true;
205017
+ v.selected = true;
204890
205018
  _this5.mutexType = String(v.type);
204891
205019
  } else {
204892
- v.default = false;
205020
+ v.selected = false;
204893
205021
  }
204894
205022
  });
204895
205023
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
204896
205024
  } else if (value.length === 0) {
204897
205025
  this.poperSelectList.forEach(function (v) {
204898
- v.default = false;
205026
+ v.selected = false;
204899
205027
  _this5.mutexType = "";
204900
205028
  });
204901
205029
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
@@ -204914,21 +205042,21 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204914
205042
  var item = {};
204915
205043
  var selectItemIndex = 0;
204916
205044
  this.poperSelectList.forEach(function (v, index) {
204917
- v.default = false;
205045
+ v.selected = false;
204918
205046
 
204919
205047
  if (v.id == value) {
204920
205048
  item = v;
204921
205049
  selectItemIndex = index;
204922
205050
  }
204923
205051
  });
204924
- item.default = !item.default;
205052
+ item.selected = !item.selected;
204925
205053
  this.poperSelectList.splice(selectItemIndex, 1, item);
204926
205054
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
204927
205055
  this.sureSelect();
204928
205056
  } else {
204929
205057
  this.poperSelectList.forEach(function (v) {
204930
205058
  if (value.includes(v.id)) {
204931
- v.default = true;
205059
+ v.selected = true;
204932
205060
 
204933
205061
  if (_this6.isCanSearch && _this6.selectedList.filter(function (m) {
204934
205062
  return m.id == v.id;
@@ -204936,7 +205064,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204936
205064
  _this6.selectedList.push(v);
204937
205065
  }
204938
205066
  } else {
204939
- v.default = false;
205067
+ v.selected = false;
204940
205068
  if (_this6.isCanSearch) _this6.selectedList = _this6.selectedList.filter(function (m) {
204941
205069
  return m.id != v.id;
204942
205070
  });
@@ -204953,19 +205081,19 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204953
205081
 
204954
205082
  if (!this.isAllowMultiSelect) {
204955
205083
  this.poperSelectList.forEach(function (v) {
204956
- v.default = false;
205084
+ v.selected = false;
204957
205085
  });
204958
- item.default = !item.default;
205086
+ item.selected = !item.selected;
204959
205087
  this.poperSelectList.splice(index, 1, item);
204960
205088
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
204961
205089
  this.sureSelect();
204962
205090
  } else {
204963
205091
  this.poperSelectList.forEach(function (v) {
204964
205092
  if (v.id == item.id) {
204965
- v.default = !v.default;
205093
+ v.selected = !v.selected;
204966
205094
  }
204967
205095
 
204968
- if (v.default) {
205096
+ if (v.selected) {
204969
205097
  if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
204970
205098
  return m.id == v.id;
204971
205099
  }).length == 0) {
@@ -204986,7 +205114,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
204986
205114
  key: "cancelSelect",
204987
205115
  value: function cancelSelect() {
204988
205116
  this.poperSelectList.forEach(function (v) {
204989
- v.default = false;
205117
+ v.selected = false;
204990
205118
  });
204991
205119
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
204992
205120
  this.selectedList = [];
@@ -205010,7 +205138,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
205010
205138
  var keyValue = "";
205011
205139
  var currentPoperNode = this.getCurrentPoperNode();
205012
205140
  var selected = this.isAllowMultiSelect && this.isCanSearch ? this.selectedList : this.poperSelectList.filter(function (v) {
205013
- return v.default;
205141
+ return v.selected;
205014
205142
  });
205015
205143
  var len = selected.length;
205016
205144
 
@@ -205168,10 +205296,10 @@ PoperSelectModal = __decorate([vue_class_component_esm({
205168
205296
  /* harmony default export */ var PoperSelectvue_type_script_lang_ts_ = (PoperSelectModal);
205169
205297
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=ts&
205170
205298
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_ts_ = (PoperSelectvue_type_script_lang_ts_);
205171
- ;// 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=aa143c0a&lang=scss&scoped=true&
205299
+ ;// 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=0c390485&lang=scss&scoped=true&
205172
205300
  // extracted by mini-css-extract-plugin
205173
205301
 
205174
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=aa143c0a&lang=scss&scoped=true&
205302
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=0c390485&lang=scss&scoped=true&
205175
205303
 
205176
205304
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue
205177
205305
 
@@ -205184,11 +205312,11 @@ PoperSelectModal = __decorate([vue_class_component_esm({
205184
205312
 
205185
205313
  var PoperSelect_component = normalizeComponent(
205186
205314
  poperSelect_PoperSelectvue_type_script_lang_ts_,
205187
- PoperSelectvue_type_template_id_aa143c0a_scoped_true_render,
205188
- PoperSelectvue_type_template_id_aa143c0a_scoped_true_staticRenderFns,
205315
+ PoperSelectvue_type_template_id_0c390485_scoped_true_render,
205316
+ PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns,
205189
205317
  false,
205190
205318
  null,
205191
- "aa143c0a",
205319
+ "0c390485",
205192
205320
  null
205193
205321
 
205194
205322
  )
@@ -207141,7 +207269,7 @@ var SignNode = __webpack_require__(34450);
207141
207269
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207142
207270
  var ParagraphNode = __webpack_require__(14208);
207143
207271
  ;// CONCATENATED MODULE: ./src/components/version.ts
207144
- /* harmony default export */ var version = ('2.0.63');
207272
+ /* harmony default export */ var version = ('2.0.66');
207145
207273
  ;// 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/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
207146
207274
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
207147
207275
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -209652,8 +209780,8 @@ var UserInfo = __webpack_require__(75013);
209652
209780
  /*
209653
209781
  * @Author: your name
209654
209782
  * @Date: 2021-06-21 17:47:51
209655
- * @LastEditTime: 2022-04-22 14:24:28
209656
- * @LastEditors: Please set LastEditors
209783
+ * @LastEditTime: 2022-07-08 23:50:19
209784
+ * @LastEditors: liyanan 2441631434@qq.com
209657
209785
  * @Description: In User Settings Edit
209658
209786
  * @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
209659
209787
  */
@@ -209673,7 +209801,7 @@ var Option = /*#__PURE__*/function () {
209673
209801
 
209674
209802
  this._downListColor = "#D2ECB1"; //下拉列表元素颜色//#D2ECB1
209675
209803
 
209676
- this._downListColor2 = "#D2ECB1"; //下拉列表默认元素颜色
209804
+ this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
209677
209805
 
209678
209806
  this._hoEditorFactoryID = hoEditorFactoryID;
209679
209807
  }
@@ -220917,10 +221045,17 @@ var VueController = /*#__PURE__*/function () {
220917
221045
 
220918
221046
  for (var j = 0; j < elements.length; j++) {
220919
221047
  var element = elements[j];
221048
+ var commentID = hoEditorFactory.gernerateCode.generateID("C");
221049
+ var comment = void 0;
220920
221050
 
220921
221051
  if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220922
- var commentID = hoEditorFactory.gernerateCode.generateID("C");
220923
- var comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
221052
+ comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
221053
+ comment.lineHeight = comment.lineHeight - 20;
221054
+ comments.push(comment);
221055
+ }
221056
+
221057
+ if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
221058
+ comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
220924
221059
  comment.lineHeight = comment.lineHeight - 20;
220925
221060
  comments.push(comment);
220926
221061
  }
@@ -220939,9 +221074,13 @@ var VueController = /*#__PURE__*/function () {
220939
221074
 
220940
221075
  var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
220941
221076
  var spY = localPos.y;
220942
- drawArea.removeComment(comment);
221077
+ drawArea.removeComment(comment, true);
220943
221078
  var path = comment.eNode.getNodePath();
220944
221079
 
221080
+ if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
221081
+ spX = spX + comment.eNode.drawNodes[0].dWidth;
221082
+ }
221083
+
220945
221084
  if (index === 1) {
220946
221085
  drawArea.drawEditRecords(comment, spX, spY, spY);
220947
221086
  }
@@ -224665,6 +224804,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
224665
224804
 
224666
224805
  this._isEnabledGlobalColor = false; //是否启用全局颜色
224667
224806
 
224807
+ this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
224808
+
224668
224809
  this._hoEditorFactoryId = id;
224669
224810
  }
224670
224811
  /**
@@ -225372,6 +225513,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
225372
225513
  this._isEnabledGlobalColor = value;
225373
225514
  }
225374
225515
  }
225516
+ }, {
225517
+ key: "isSameColorWithEmptyVlaue",
225518
+ get: function get() {
225519
+ return this._isSameColorWithEmptyVlaue;
225520
+ },
225521
+ set: function set(value) {
225522
+ if (this._isSameColorWithEmptyVlaue !== value) {
225523
+ this._isSameColorWithEmptyVlaue = value;
225524
+ }
225525
+ }
225375
225526
  }, {
225376
225527
  key: "clear",
225377
225528
  value: function clear() {
@@ -225733,9 +225884,9 @@ var ControlModalvue_type_template_id_36fbe7eb_render = function () {var _vm=this
225733
225884
  var ControlModalvue_type_template_id_36fbe7eb_staticRenderFns = []
225734
225885
 
225735
225886
 
225736
- ;// 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=3b6d4c1e&scoped=true&
225737
- var SelectDialogvue_type_template_id_3b6d4c1e_scoped_true_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)])}
225738
- var SelectDialogvue_type_template_id_3b6d4c1e_scoped_true_staticRenderFns = []
225887
+ ;// 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=62e16cb5&scoped=true&
225888
+ var SelectDialogvue_type_template_id_62e16cb5_scoped_true_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)])}
225889
+ var SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns = []
225739
225890
 
225740
225891
 
225741
225892
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=ts&
@@ -225827,13 +225978,12 @@ var SelectDialog = /*#__PURE__*/function (_Vue) {
225827
225978
  this.downListContent = (0,toConsumableArray/* default */.Z)(this.downListContent.map(function (v, index) {
225828
225979
  if (v.id === undefined) {
225829
225980
  v.id = _this2.getKeyId(index);
225830
- }
225981
+ } // if(updateNode.keyValue.includes(v.id)) {
225982
+ // v.default = true;
225983
+ // } else {
225984
+ // v.default = false;
225985
+ // }
225831
225986
 
225832
- if (updateNode.keyValue.includes(v.id)) {
225833
- v.default = true;
225834
- } else {
225835
- v.default = false;
225836
- }
225837
225987
 
225838
225988
  return v;
225839
225989
  }));
@@ -226076,10 +226226,10 @@ SelectDialog = __decorate([vue_class_component_esm({
226076
226226
  /* harmony default export */ var SelectDialogvue_type_script_lang_ts_ = (SelectDialog);
226077
226227
  ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=ts&
226078
226228
  /* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_ts_ = (SelectDialogvue_type_script_lang_ts_);
226079
- ;// 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=3b6d4c1e&lang=scss&scoped=true&
226229
+ ;// 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=62e16cb5&lang=scss&scoped=true&
226080
226230
  // extracted by mini-css-extract-plugin
226081
226231
 
226082
- ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=3b6d4c1e&lang=scss&scoped=true&
226232
+ ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=62e16cb5&lang=scss&scoped=true&
226083
226233
 
226084
226234
  ;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue
226085
226235
 
@@ -226092,11 +226242,11 @@ SelectDialog = __decorate([vue_class_component_esm({
226092
226242
 
226093
226243
  var SelectDialog_component = normalizeComponent(
226094
226244
  selectDialog_SelectDialogvue_type_script_lang_ts_,
226095
- SelectDialogvue_type_template_id_3b6d4c1e_scoped_true_render,
226096
- SelectDialogvue_type_template_id_3b6d4c1e_scoped_true_staticRenderFns,
226245
+ SelectDialogvue_type_template_id_62e16cb5_scoped_true_render,
226246
+ SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns,
226097
226247
  false,
226098
226248
  null,
226099
- "3b6d4c1e",
226249
+ "62e16cb5",
226100
226250
  null
226101
226251
 
226102
226252
  )
@@ -226889,9 +227039,9 @@ var QrCode_component = normalizeComponent(
226889
227039
  ;// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
226890
227040
 
226891
227041
  /* harmony default export */ var qrCode = (QrCode);
226892
- ;// 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/textDialog/TextDialog.vue?vue&type=template&id=75c07514&
226893
- var TextDialogvue_type_template_id_75c07514_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('tabs',{attrs:{"tabKey":_vm.textActiveName}},[_c('tab-pane',{attrs:{"label":"基本属性","notHover":false,"name":"first"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("直接输入文本数据")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("下拉列表方式")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.textParam.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.textParam.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "innerIdentifier", $$v)},expression:"textParam.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.textParam.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "dataMetaIdentifier", $$v)},expression:"textParam.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.textParam.identifierFormat),callback:function ($$v) {_vm.$set(_vm.textParam, "identifierFormat", $$v)},expression:"textParam.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.textParam.name),callback:function ($$v) {_vm.$set(_vm.textParam, "name", $$v)},expression:"textParam.name"}})],1),_c('li',{staticClass:"line"}),(_vm.textParam.inputFieldType === 0)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本内容")]),_c('el-input',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"mini","placeholder":"文本内容"},model:{value:(_vm.textParam.text),callback:function ($$v) {_vm.$set(_vm.textParam, "text", $$v)},expression:"textParam.text"}})],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("下拉列表")]),_c('el-input',{attrs:{"size":"mini","disabled":true,"placeholder":"下拉列表项"},model:{value:(_vm.textParam.downListProperty.source),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "source", $$v)},expression:"textParam.downListProperty.source"}}),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.openListArrModel.apply(null, arguments)}}},[_vm._v("浏览")])],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否多选")]),_c('div',{staticStyle:{"width":"40%"}},[_c('el-checkbox',{on:{"change":_vm.allowMultiSelectChange},model:{value:(_vm.textParam.downListProperty.allowMultiSelected),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "allowMultiSelected", $$v)},expression:"textParam.downListProperty.allowMultiSelected"}},[_vm._v("允许多选")]),_c('el-checkbox',{model:{value:(_vm.textParam.downListProperty.mutexSelect),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "mutexSelect", $$v)},expression:"textParam.downListProperty.mutexSelect"}},[_vm._v("选项互斥")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"60px"}},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.textParam.downListProperty.splitCharacter),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "splitCharacter", $$v)},expression:"textParam.downListProperty.splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_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)]):_vm._e(),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","placeholder":"提示文本"},model:{value:(_vm.textParam.tipText),callback:function ($$v) {_vm.$set(_vm.textParam, "tipText", $$v)},expression:"textParam.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内容只读状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"placeholder":"请选择","size":"mini"},model:{value:(_vm.textParam.readOnlyStatus),callback:function ($$v) {_vm.$set(_vm.textParam, "readOnlyStatus", $$v)},expression:"textParam.readOnlyStatus"}},[_c('el-option',{attrs:{"label":"继承父元素","value":2}}),_c('el-option',{attrs:{"label":"是","value":0}}),_c('el-option',{attrs:{"label":"否","value":1}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("固定宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.textParam.fixedWidth),callback:function ($$v) {_vm.$set(_vm.textParam, "fixedWidth", $$v)},expression:"textParam.fixedWidth"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("厘米")])],1),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.canModifyContent),callback:function ($$v) {_vm.$set(_vm.textParam, "canModifyContent", $$v)},expression:"textParam.canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.textParam, "isAllowDelete", $$v)},expression:"textParam.isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.enableGlobalColor),callback:function ($$v) {_vm.$set(_vm.textParam, "enableGlobalColor", $$v)},expression:"textParam.enableGlobalColor"}},[_vm._v("启用全局文本颜色")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.alignWithBlocked),callback:function ($$v) {_vm.$set(_vm.textParam, "alignWithBlocked", $$v)},expression:"textParam.alignWithBlocked"}},[_vm._v("文本域中的段落使用块对齐(诊断专用)")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[_c('el-checkbox',{model:{value:(_vm.textParam.readType),callback:function ($$v) {_vm.$set(_vm.textParam, "readType", $$v)},expression:"textParam.readType"}},[_vm._v("自动回填")])],1)])])]),_c('tab-pane',{attrs:{"label":"其他属性","notHover":false,"name":"third"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)])]),_vm._t("hoTextFieldModal")],2)],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)])}
226894
- var TextDialogvue_type_template_id_75c07514_staticRenderFns = []
227042
+ ;// 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/textDialog/TextDialog.vue?vue&type=template&id=52be23a2&
227043
+ var TextDialogvue_type_template_id_52be23a2_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('tabs',{attrs:{"tabKey":_vm.textActiveName}},[_c('tab-pane',{attrs:{"label":"基本属性","notHover":false,"name":"first"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("直接输入文本数据")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("下拉列表方式")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.textParam.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.textParam.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "innerIdentifier", $$v)},expression:"textParam.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.textParam.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "dataMetaIdentifier", $$v)},expression:"textParam.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.textParam.identifierFormat),callback:function ($$v) {_vm.$set(_vm.textParam, "identifierFormat", $$v)},expression:"textParam.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.textParam.name),callback:function ($$v) {_vm.$set(_vm.textParam, "name", $$v)},expression:"textParam.name"}})],1),_c('li',{staticClass:"line"}),(_vm.textParam.inputFieldType === 0)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本内容")]),_c('el-input',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"mini","placeholder":"文本内容"},model:{value:(_vm.textParam.text),callback:function ($$v) {_vm.$set(_vm.textParam, "text", $$v)},expression:"textParam.text"}})],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("下拉列表")]),_c('el-input',{attrs:{"size":"mini","disabled":true,"placeholder":"下拉列表项"},model:{value:(_vm.textParam.downListProperty.source),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "source", $$v)},expression:"textParam.downListProperty.source"}}),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.openListArrModel.apply(null, arguments)}}},[_vm._v("浏览")])],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否多选")]),_c('div',{staticStyle:{"width":"40%"}},[_c('el-checkbox',{on:{"change":_vm.allowMultiSelectChange},model:{value:(_vm.textParam.downListProperty.allowMultiSelected),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "allowMultiSelected", $$v)},expression:"textParam.downListProperty.allowMultiSelected"}},[_vm._v("允许多选")]),_c('el-checkbox',{model:{value:(_vm.textParam.downListProperty.mutexSelect),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "mutexSelect", $$v)},expression:"textParam.downListProperty.mutexSelect"}},[_vm._v("选项互斥")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"60px"}},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.textParam.downListProperty.splitCharacter),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "splitCharacter", $$v)},expression:"textParam.downListProperty.splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_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)]):_vm._e(),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","placeholder":"提示文本"},model:{value:(_vm.textParam.tipText),callback:function ($$v) {_vm.$set(_vm.textParam, "tipText", $$v)},expression:"textParam.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内容只读状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"placeholder":"请选择","size":"mini"},model:{value:(_vm.textParam.readOnlyStatus),callback:function ($$v) {_vm.$set(_vm.textParam, "readOnlyStatus", $$v)},expression:"textParam.readOnlyStatus"}},[_c('el-option',{attrs:{"label":"继承父元素","value":2}}),_c('el-option',{attrs:{"label":"是","value":0}}),_c('el-option',{attrs:{"label":"否","value":1}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("固定宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.textParam.fixedWidth),callback:function ($$v) {_vm.$set(_vm.textParam, "fixedWidth", $$v)},expression:"textParam.fixedWidth"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("厘米")])],1),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.canModifyContent),callback:function ($$v) {_vm.$set(_vm.textParam, "canModifyContent", $$v)},expression:"textParam.canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.textParam, "isAllowDelete", $$v)},expression:"textParam.isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.enableGlobalColor),callback:function ($$v) {_vm.$set(_vm.textParam, "enableGlobalColor", $$v)},expression:"textParam.enableGlobalColor"}},[_vm._v("启用全局文本颜色")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.alignWithBlocked),callback:function ($$v) {_vm.$set(_vm.textParam, "alignWithBlocked", $$v)},expression:"textParam.alignWithBlocked"}},[_vm._v("文本域中的段落使用块对齐(诊断专用)")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[_c('el-checkbox',{model:{value:(_vm.textParam.readType),callback:function ($$v) {_vm.$set(_vm.textParam, "readType", $$v)},expression:"textParam.readType"}},[_vm._v("自动回填")])],1)])])]),_c('tab-pane',{attrs:{"label":"其他属性","notHover":false,"name":"third"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)])]),_vm._t("hoTextFieldModal")],2)],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)])}
227044
+ var TextDialogvue_type_template_id_52be23a2_staticRenderFns = []
226895
227045
 
226896
227046
 
226897
227047
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=ts&
@@ -226933,12 +227083,12 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
226933
227083
 
226934
227084
  _this = _super.apply(this, arguments);
226935
227085
  _this.textParam = Object.assign({}, textParams);
226936
- _this.textActiveName = "first";
227086
+ _this.textActiveName = 'first';
226937
227087
  _this.isMinLenth = false;
226938
227088
  _this.isMaxLenth = false;
226939
227089
  _this.isMin = false;
226940
227090
  _this.isMax = false;
226941
- _this.animationClassNames = "control-modal-contents text-modal animation-in";
227091
+ _this.animationClassNames = 'control-modal-contents text-modal animation-in';
226942
227092
  _this.customPropertyValue = new Object();
226943
227093
  _this.endPath = '';
226944
227094
  return _this;
@@ -226974,15 +227124,15 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
226974
227124
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
226975
227125
  this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
226976
227126
 
226977
- if (this.controlStatus === "update") {
227127
+ if (this.controlStatus === 'update') {
226978
227128
  var updateNode = this.getTextNode();
226979
227129
  Object.keys(this.textParam).forEach(function (v) {
226980
- var key = v.replace(/_/g, "");
227130
+ var key = v.replace(/_/g, '');
226981
227131
 
226982
227132
  if (Object.prototype.hasOwnProperty.call(_this2.textParam, key)) {
226983
- if (key === "readOnlyStatus") {
227133
+ if (key === 'readOnlyStatus') {
226984
227134
  _this2.textParam.readOnlyStatus = Number(updateNode.readOnlyStatus);
226985
- } else if (key === "customProperty") {
227135
+ } else if (key === 'customProperty') {
226986
227136
  if ((0,type/* isObject */.Kn)(updateNode[key])) {
226987
227137
  _this2.textParam.customProperty = updateNode.customProperty;
226988
227138
  } else {
@@ -226994,7 +227144,7 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
226994
227144
  property[key] = _this2.textParam.customProperty[key];
226995
227145
  });
226996
227146
  _this2.customPropertyValue = _objectSpread2({}, property);
226997
- } else if (key === "readType") {
227147
+ } else if (key === 'readType') {
226998
227148
  _this2.textParam.readType = updateNode.readType == 1 ? true : false;
226999
227149
  } else {
227000
227150
  _this2.textParam[key] = updateNode[key];
@@ -227010,8 +227160,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
227010
227160
  this.textParam.inputFieldType = 0;
227011
227161
  }
227012
227162
  } else {
227013
- this.textParam.id = this.vueController.generateID("TF");
227014
- this.textParam.downListProperty.splitCharacter = ",";
227163
+ this.textParam.id = this.vueController.generateID('TF');
227164
+ this.textParam.downListProperty.splitCharacter = ',';
227015
227165
  }
227016
227166
  }
227017
227167
  }, {
@@ -227086,6 +227236,13 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
227086
227236
  if (v.default) textArr.push(v.text);
227087
227237
  });
227088
227238
  this.textParam.text = textArr.join(',');
227239
+ var value = '';
227240
+ this.getListStyle().forEach(function (v, index) {
227241
+ if (v.default) {
227242
+ value += v.id + ',';
227243
+ }
227244
+ });
227245
+ this.textParam.keyValue = value;
227089
227246
  } else {
227090
227247
  this.textParam.downListProperty = new TextInputFieldNode/* DownListProperty */.OL();
227091
227248
  }
@@ -227093,18 +227250,18 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
227093
227250
  this.textParam.bandDataSource = this.dataSource;
227094
227251
 
227095
227252
  if (this.textParam.inputFieldType === 0) {
227096
- this.textParam.name = this.textParam.name ? this.textParam.name : "请输入";
227253
+ this.textParam.name = this.textParam.name ? this.textParam.name : '请输入';
227097
227254
  } else if (this.textParam.inputFieldType === 1) {
227098
- this.textParam.name = this.textParam.name ? this.textParam.name : "请选择";
227255
+ this.textParam.name = this.textParam.name ? this.textParam.name : '请选择';
227099
227256
  }
227100
227257
 
227101
227258
  this.textParam.labelText = this.textParam.name;
227102
227259
  this.textParam.customProperty = _objectSpread2({}, this.customProperty);
227103
227260
  this.textParam.readType ? this.textParam.readType = 1 : this.textParam.readType = 0;
227104
227261
 
227105
- if (this.controlStatus === "add") {
227262
+ if (this.controlStatus === 'add') {
227106
227263
  this.vueController.insertTextInputField(this.controlStatus, this.textParam);
227107
- } else if (this.controlStatus === "update") {
227264
+ } else if (this.controlStatus === 'update') {
227108
227265
  this.vueController.updateTextInputField(this.textParam);
227109
227266
  }
227110
227267
 
@@ -227113,8 +227270,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
227113
227270
  }, {
227114
227271
  key: "handleClose",
227115
227272
  value: function handleClose() {
227116
- this.animationClassNames = "control-modal-contents text-modal animation-out";
227117
- this.$emit("closed");
227273
+ this.animationClassNames = 'control-modal-contents text-modal animation-out';
227274
+ this.$emit('closed');
227118
227275
  this.endPath = '';
227119
227276
  }
227120
227277
  }]);
@@ -227130,28 +227287,28 @@ __decorate([Prop()], TextDialog.prototype, "controlStatus", void 0);
227130
227287
 
227131
227288
  __decorate([Prop()], TextDialog.prototype, "vueController", void 0);
227132
227289
 
227133
- __decorate([Inject("setIsDataSource")], TextDialog.prototype, "setIsDataSource", void 0);
227290
+ __decorate([Inject('setIsDataSource')], TextDialog.prototype, "setIsDataSource", void 0);
227134
227291
 
227135
- __decorate([Inject("getDataSource")], TextDialog.prototype, "getDataSource", void 0);
227292
+ __decorate([Inject('getDataSource')], TextDialog.prototype, "getDataSource", void 0);
227136
227293
 
227137
- __decorate([Inject("setIsCustoms")], TextDialog.prototype, "setIsCustoms", void 0);
227294
+ __decorate([Inject('setIsCustoms')], TextDialog.prototype, "setIsCustoms", void 0);
227138
227295
 
227139
- __decorate([Inject("getCustomsValue")], TextDialog.prototype, "getCustomsValue", void 0);
227296
+ __decorate([Inject('getCustomsValue')], TextDialog.prototype, "getCustomsValue", void 0);
227140
227297
 
227141
- __decorate([Inject("setListAllowMultiSelected")], TextDialog.prototype, "setListAllowMultiSelected", void 0);
227298
+ __decorate([Inject('setListAllowMultiSelected')], TextDialog.prototype, "setListAllowMultiSelected", void 0);
227142
227299
 
227143
- __decorate([Inject("setIsListStyle")], TextDialog.prototype, "setIsListStyle", void 0);
227300
+ __decorate([Inject('setIsListStyle')], TextDialog.prototype, "setIsListStyle", void 0);
227144
227301
 
227145
- __decorate([Inject("getListStyle")], TextDialog.prototype, "getListStyle", void 0);
227302
+ __decorate([Inject('getListStyle')], TextDialog.prototype, "getListStyle", void 0);
227146
227303
 
227147
- __decorate([Inject("getListArrSource")], TextDialog.prototype, "getListArrSource", void 0);
227304
+ __decorate([Inject('getListArrSource')], TextDialog.prototype, "getListArrSource", void 0);
227148
227305
 
227149
- __decorate([Inject("setListStyle")], TextDialog.prototype, "setListStyle", void 0);
227306
+ __decorate([Inject('setListStyle')], TextDialog.prototype, "setListStyle", void 0);
227150
227307
 
227151
- __decorate([Inject("getCustomProperty")], TextDialog.prototype, "getCustomProperty", void 0);
227308
+ __decorate([Inject('getCustomProperty')], TextDialog.prototype, "getCustomProperty", void 0);
227152
227309
 
227153
227310
  TextDialog = __decorate([vue_class_component_esm({
227154
- name: "TextDialog",
227311
+ name: 'TextDialog',
227155
227312
  components: {
227156
227313
  Tabs: Tab
227157
227314
  }
@@ -227175,8 +227332,8 @@ TextDialog = __decorate([vue_class_component_esm({
227175
227332
 
227176
227333
  var TextDialog_component = normalizeComponent(
227177
227334
  textDialog_TextDialogvue_type_script_lang_ts_,
227178
- TextDialogvue_type_template_id_75c07514_render,
227179
- TextDialogvue_type_template_id_75c07514_staticRenderFns,
227335
+ TextDialogvue_type_template_id_52be23a2_render,
227336
+ TextDialogvue_type_template_id_52be23a2_staticRenderFns,
227180
227337
  false,
227181
227338
  null,
227182
227339
  null,
@@ -233152,6 +233309,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
233152
233309
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
233153
233310
  hoEditorFactory && (hoEditorFactory.isEnabledGlobalColor = this.isEnabledGlobalColor);
233154
233311
  }
233312
+ }, {
233313
+ key: "isSameColorWithEmptyVlaueChange",
233314
+ value: function isSameColorWithEmptyVlaueChange() {
233315
+ var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
233316
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
233317
+ hoEditorFactory && (hoEditorFactory.isSameColorWithEmptyVlaue = this.isSameColorWithEmptyVlaue);
233318
+ }
233155
233319
  }, {
233156
233320
  key: "created",
233157
233321
  value: function created() {
@@ -233203,6 +233367,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
233203
233367
  hoEditor.isUseForm = _this3.isUseForm;
233204
233368
  hoEditor.printBlack = _this3.printBlack;
233205
233369
  hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
233370
+ hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
233206
233371
  hoEditor.contentIsModify = _this3.contentIsModify;
233207
233372
  hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
233208
233373
  hoEditor.docTree.docProperty = _this3.defaultDocProperty;
@@ -233582,6 +233747,10 @@ __decorate([Prop({
233582
233747
  default: false
233583
233748
  })], HoDocs.prototype, "isEnabledGlobalColor", void 0);
233584
233749
 
233750
+ __decorate([Prop({
233751
+ default: false
233752
+ })], HoDocs.prototype, "isSameColorWithEmptyVlaue", void 0);
233753
+
233585
233754
  __decorate([Watch('contentIsModify', {
233586
233755
  deep: true
233587
233756
  })], HoDocs.prototype, "contentIsModifyChange", null);
@@ -233632,6 +233801,8 @@ __decorate([Watch('printBlack')], HoDocs.prototype, "printBlackChange", null);
233632
233801
 
233633
233802
  __decorate([Watch('isEnabledGlobalColor')], HoDocs.prototype, "isEnabledGlobalColorChange", null);
233634
233803
 
233804
+ __decorate([Watch('isSameColorWithEmptyVlaue')], HoDocs.prototype, "isSameColorWithEmptyVlaueChange", null);
233805
+
233635
233806
  HoDocs = __decorate([vue_class_component_esm({
233636
233807
  name: 'HoDocs',
233637
233808
  components: {