hoeditor-web 2.0.64 → 2.0.67
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.
- package/lib/hoeditor.common.js +303 -139
- package/lib/hoeditor.css +855 -2
- package/lib/hoeditor.umd.js +303 -139
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -27273,7 +27273,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27273
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);
|
|
27274
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);
|
|
27275
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);
|
|
27276
|
-
/* harmony import */ var
|
|
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);
|
|
27277
27277
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
|
|
27278
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__);
|
|
27279
27279
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -27286,16 +27286,25 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27286
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__);
|
|
27287
27287
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40561);
|
|
27288
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__);
|
|
27289
|
-
/* harmony import */ var
|
|
27290
|
-
/* harmony import */ var
|
|
27291
|
-
/* harmony import */ var
|
|
27292
|
-
/* harmony import */ var
|
|
27293
|
-
/* harmony import */ var
|
|
27294
|
-
/* harmony import */ var
|
|
27295
|
-
/* harmony import */ var
|
|
27296
|
-
/* harmony import */ var
|
|
27297
|
-
/* harmony import */ var
|
|
27298
|
-
/* harmony import */ var
|
|
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
|
+
|
|
27299
27308
|
|
|
27300
27309
|
|
|
27301
27310
|
|
|
@@ -27344,7 +27353,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
27344
27353
|
this.execState = ""; //执行状态
|
|
27345
27354
|
}
|
|
27346
27355
|
|
|
27347
|
-
(0,
|
|
27356
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(BandDataSource, [{
|
|
27348
27357
|
key: "DataSourceEnabled",
|
|
27349
27358
|
get: function get() {
|
|
27350
27359
|
return this.dataSourceEnabled;
|
|
@@ -27433,7 +27442,7 @@ var DownListNodeInstance = /*#__PURE__*/function () {
|
|
|
27433
27442
|
this.allowMultiSelect = false;
|
|
27434
27443
|
}
|
|
27435
27444
|
|
|
27436
|
-
(0,
|
|
27445
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNodeInstance, [{
|
|
27437
27446
|
key: "Id",
|
|
27438
27447
|
get: function get() {
|
|
27439
27448
|
return this.id;
|
|
@@ -27569,7 +27578,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27569
27578
|
// this._id = valuesObj["id"];
|
|
27570
27579
|
// }
|
|
27571
27580
|
|
|
27572
|
-
_this._type =
|
|
27581
|
+
_this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
|
|
27573
27582
|
// this._name = valuesObj["name"];
|
|
27574
27583
|
// }
|
|
27575
27584
|
// if (valuesObj["title"] !== undefined) {
|
|
@@ -27642,7 +27651,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27642
27651
|
_this.setValuesObject(valuesObject);
|
|
27643
27652
|
|
|
27644
27653
|
if (!_this.dataId) {
|
|
27645
|
-
_this.dataId =
|
|
27654
|
+
_this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
|
|
27646
27655
|
}
|
|
27647
27656
|
|
|
27648
27657
|
if (_this._text === "") {
|
|
@@ -27663,7 +27672,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27663
27672
|
return _this;
|
|
27664
27673
|
}
|
|
27665
27674
|
|
|
27666
|
-
(0,
|
|
27675
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNode, [{
|
|
27667
27676
|
key: "setValuesObject",
|
|
27668
27677
|
value: function setValuesObject(valuesObject) {
|
|
27669
27678
|
var valuesObj = eval("(" + valuesObject + ")");
|
|
@@ -27800,12 +27809,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27800
27809
|
}, {
|
|
27801
27810
|
key: "setDownListText",
|
|
27802
27811
|
value: function setDownListText(text) {
|
|
27803
|
-
var hoEditorFactory =
|
|
27812
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27804
27813
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
|
|
27805
27814
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
27806
|
-
var changeEvent = new
|
|
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);
|
|
27807
27816
|
changeEvent.oldEndPath = ePath;
|
|
27808
|
-
changeEvent.oldDrawLines = new
|
|
27817
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
27809
27818
|
this._text = text;
|
|
27810
27819
|
|
|
27811
27820
|
if (this._text === "") {
|
|
@@ -27827,7 +27836,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27827
27836
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
27828
27837
|
// const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
|
|
27829
27838
|
// .combineStyle;
|
|
27830
|
-
var hoEditorFactory =
|
|
27839
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27831
27840
|
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
27832
27841
|
var cbStyle;
|
|
27833
27842
|
|
|
@@ -27844,7 +27853,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27844
27853
|
}
|
|
27845
27854
|
|
|
27846
27855
|
var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
|
|
27847
|
-
var dNode = new
|
|
27856
|
+
var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
|
|
27848
27857
|
|
|
27849
27858
|
this._drawNodes.push(dNode);
|
|
27850
27859
|
}
|
|
@@ -27872,10 +27881,10 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27872
27881
|
return dline;
|
|
27873
27882
|
}
|
|
27874
27883
|
|
|
27875
|
-
var hoEditorFactory =
|
|
27884
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27876
27885
|
var isDisPlay = true;
|
|
27877
27886
|
|
|
27878
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
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) {
|
|
27879
27888
|
isDisPlay = false;
|
|
27880
27889
|
}
|
|
27881
27890
|
|
|
@@ -27893,7 +27902,50 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27893
27902
|
var color = hoEditorFactory.option.getColorByLevel(120);
|
|
27894
27903
|
|
|
27895
27904
|
if (this.keyValue !== "") {
|
|
27896
|
-
|
|
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
|
+
}
|
|
27897
27949
|
}
|
|
27898
27950
|
|
|
27899
27951
|
var backColor = new createjs.Shape();
|
|
@@ -27905,9 +27957,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27905
27957
|
if (this.keyValue === "") {
|
|
27906
27958
|
drawNode.alpha = 0;
|
|
27907
27959
|
} else {
|
|
27908
|
-
for (var
|
|
27909
|
-
if (drawNode.children[
|
|
27910
|
-
drawNode.children.splice(
|
|
27960
|
+
for (var _i2 = drawNode.children.length - 1; _i2 >= 0; _i2--) {
|
|
27961
|
+
if (drawNode.children[_i2].name === "backColor") {
|
|
27962
|
+
drawNode.children.splice(_i2, 1);
|
|
27911
27963
|
}
|
|
27912
27964
|
}
|
|
27913
27965
|
}
|
|
@@ -27925,9 +27977,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27925
27977
|
var downLists = {
|
|
27926
27978
|
item: this.downListContent
|
|
27927
27979
|
};
|
|
27928
|
-
var hoEditorFactory =
|
|
27980
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27929
27981
|
var retObj = {
|
|
27930
|
-
nodeType:
|
|
27982
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
|
|
27931
27983
|
type: "ctDownList",
|
|
27932
27984
|
//id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DL") : this.id,
|
|
27933
27985
|
id: this.id,
|
|
@@ -27938,7 +27990,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27938
27990
|
identifierFormat: this.identifierFormat,
|
|
27939
27991
|
isSynchro: this.isSynchro,
|
|
27940
27992
|
name: this.name,
|
|
27941
|
-
text: this.text,
|
|
27993
|
+
text: this.keyValue == "" ? "" : this.text,
|
|
27942
27994
|
keyValue: this.keyValue,
|
|
27943
27995
|
title: this.title,
|
|
27944
27996
|
styleIndex: this.styleIndex,
|
|
@@ -27975,7 +28027,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27975
28027
|
this.transType(json);
|
|
27976
28028
|
|
|
27977
28029
|
if (isPaste) {
|
|
27978
|
-
var hoEditorFactory =
|
|
28030
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
27979
28031
|
|
|
27980
28032
|
if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
27981
28033
|
//json.id = hoEditorFactory.gernerateCode.generateID("DL");
|
|
@@ -27987,7 +28039,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27987
28039
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
27988
28040
|
json.mutexSelect = !json.mutexSelect ? false : json.mutexSelect;
|
|
27989
28041
|
json.allowMultiSelect = !json.allowMultiSelect ? false : json.allowMultiSelect;
|
|
27990
|
-
json.type = parseInt(
|
|
28042
|
+
json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
|
|
27991
28043
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
27992
28044
|
json.readType = json.readType ? Number(json.readType) : -1;
|
|
27993
28045
|
var downListContent = [];
|
|
@@ -27996,12 +28048,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27996
28048
|
downListContent.push(json.downLists.item[i]);
|
|
27997
28049
|
}
|
|
27998
28050
|
|
|
27999
|
-
return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
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));
|
|
28000
28052
|
}
|
|
28001
28053
|
}]);
|
|
28002
28054
|
|
|
28003
28055
|
return DownListNode;
|
|
28004
|
-
}(
|
|
28056
|
+
}(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlNode */ .w);
|
|
28005
28057
|
|
|
28006
28058
|
/***/ }),
|
|
28007
28059
|
|
|
@@ -44445,7 +44497,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44445
44497
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(markDrawNode);
|
|
44446
44498
|
|
|
44447
44499
|
if (curArea) {
|
|
44448
|
-
if (curArea.topDline ===
|
|
44500
|
+
// if (curArea.topDline === this.topDline) {
|
|
44501
|
+
// comments.set(value.id, value);
|
|
44502
|
+
// }
|
|
44503
|
+
if (curArea.index === _this2.index) {
|
|
44449
44504
|
comments.set(value.id, value);
|
|
44450
44505
|
}
|
|
44451
44506
|
}
|
|
@@ -44523,6 +44578,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44523
44578
|
value: function repaint(comment, nPath, spX, spY) {
|
|
44524
44579
|
var _this3 = this;
|
|
44525
44580
|
|
|
44581
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44526
44582
|
var comments = this.areaComments;
|
|
44527
44583
|
var topComments = new Array();
|
|
44528
44584
|
var bottomComments = new Array();
|
|
@@ -44530,7 +44586,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44530
44586
|
|
|
44531
44587
|
var getStagePos = function getStagePos(comment) {
|
|
44532
44588
|
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44533
|
-
var dline =
|
|
44589
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44534
44590
|
|
|
44535
44591
|
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44536
44592
|
|
|
@@ -44543,7 +44599,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44543
44599
|
var commentY = spY;
|
|
44544
44600
|
comments.forEach(function (value) {
|
|
44545
44601
|
if (value.id !== comment.id) {
|
|
44546
|
-
|
|
44602
|
+
var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
|
|
44603
|
+
|
|
44604
|
+
if (area && area.index == _this3.index) {
|
|
44605
|
+
tempArr.push(value);
|
|
44606
|
+
}
|
|
44547
44607
|
}
|
|
44548
44608
|
});
|
|
44549
44609
|
tempArr.forEach(function (value) {
|
|
@@ -52958,6 +53018,8 @@ var createSuper = __webpack_require__(28214);
|
|
|
52958
53018
|
var es_regexp_exec = __webpack_require__(74916);
|
|
52959
53019
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
52960
53020
|
var es_string_split = __webpack_require__(23123);
|
|
53021
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
53022
|
+
var es_string_ends_with = __webpack_require__(27852);
|
|
52961
53023
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
52962
53024
|
var es_string_italics = __webpack_require__(58734);
|
|
52963
53025
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -53407,6 +53469,7 @@ var GestationNode = __webpack_require__(74873);
|
|
|
53407
53469
|
|
|
53408
53470
|
|
|
53409
53471
|
|
|
53472
|
+
|
|
53410
53473
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
53411
53474
|
|
|
53412
53475
|
|
|
@@ -53628,17 +53691,68 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53628
53691
|
|
|
53629
53692
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53630
53693
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53631
|
-
|
|
53694
|
+
var parentNode = this.node.parentNode;
|
|
53695
|
+
|
|
53696
|
+
if (parentNode.inputFieldType === 0) {
|
|
53632
53697
|
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53633
53698
|
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53634
53699
|
}
|
|
53635
53700
|
} else {
|
|
53636
|
-
if (
|
|
53701
|
+
if (parentNode.keyValue == "") {
|
|
53637
53702
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53638
53703
|
} else {
|
|
53639
|
-
|
|
53704
|
+
var downListProperty = parentNode.downListProperty;
|
|
53705
|
+
|
|
53706
|
+
if (hoEditorFactory.isSameColorWithEmptyVlaue && downListProperty.listItems) {
|
|
53707
|
+
var isDefault = false;
|
|
53708
|
+
var listItems = JSON.parse(downListProperty.listItems);
|
|
53709
|
+
|
|
53710
|
+
if (downListProperty.allowMultiSelected) {
|
|
53711
|
+
var defaultValues = "";
|
|
53712
|
+
|
|
53713
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
53714
|
+
var item1 = listItems[i];
|
|
53715
|
+
|
|
53716
|
+
if (item1.default) {
|
|
53717
|
+
defaultValues += item1.id + ",";
|
|
53718
|
+
}
|
|
53719
|
+
}
|
|
53720
|
+
|
|
53721
|
+
if (defaultValues.endsWith(',')) {
|
|
53722
|
+
defaultValues = defaultValues.substring(0, defaultValues.length - 1);
|
|
53723
|
+
}
|
|
53724
|
+
|
|
53725
|
+
var keyValue = parentNode.keyValue;
|
|
53726
|
+
|
|
53727
|
+
if (keyValue.endsWith(',')) {
|
|
53728
|
+
keyValue = keyValue.substring(0, keyValue.length - 1);
|
|
53729
|
+
}
|
|
53730
|
+
|
|
53731
|
+
if (defaultValues === keyValue) {
|
|
53732
|
+
isDefault = true;
|
|
53733
|
+
}
|
|
53734
|
+
} else {
|
|
53735
|
+
for (var j = 0; j < listItems.length; j++) {
|
|
53736
|
+
var item2 = listItems[j];
|
|
53737
|
+
|
|
53738
|
+
if (item2.id === parentNode.keyValue.split(',')[0] && item2.default) {
|
|
53739
|
+
isDefault = true;
|
|
53740
|
+
break;
|
|
53741
|
+
}
|
|
53742
|
+
}
|
|
53743
|
+
}
|
|
53744
|
+
|
|
53745
|
+
if (isDefault) {
|
|
53746
|
+
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53747
|
+
} else {
|
|
53748
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53749
|
+
}
|
|
53750
|
+
} else {
|
|
53751
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53752
|
+
}
|
|
53640
53753
|
}
|
|
53641
|
-
}
|
|
53754
|
+
} //hoEditorFactory.isEnabledGlobalColor = true;
|
|
53755
|
+
|
|
53642
53756
|
|
|
53643
53757
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
53644
53758
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
@@ -53652,7 +53766,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53652
53766
|
}
|
|
53653
53767
|
}
|
|
53654
53768
|
|
|
53655
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
53769
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReadOnly */.Dh.psReadOnly && !hoEditorFactory.isHideComments) {
|
|
53656
53770
|
var commentID = this._textNode.dCombineStyle.commentID;
|
|
53657
53771
|
var createID = this._textNode.dCombineStyle.creatorIndex;
|
|
53658
53772
|
var deleteID = this._textNode.dCombineStyle.deleterIndex;
|
|
@@ -63138,7 +63252,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63138
63252
|
//if(nodes.length == 0) return;
|
|
63139
63253
|
|
|
63140
63254
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63141
|
-
_context.next =
|
|
63255
|
+
_context.next = 34;
|
|
63142
63256
|
break;
|
|
63143
63257
|
}
|
|
63144
63258
|
|
|
@@ -63146,7 +63260,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63146
63260
|
|
|
63147
63261
|
case 13:
|
|
63148
63262
|
if (!(n < nodes.length)) {
|
|
63149
|
-
_context.next =
|
|
63263
|
+
_context.next = 34;
|
|
63150
63264
|
break;
|
|
63151
63265
|
}
|
|
63152
63266
|
|
|
@@ -63162,13 +63276,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63162
63276
|
return _context.abrupt("return", 0);
|
|
63163
63277
|
|
|
63164
63278
|
case 18:
|
|
63279
|
+
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) {
|
|
63280
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
63281
|
+
}
|
|
63282
|
+
|
|
63165
63283
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63166
|
-
_context.next =
|
|
63284
|
+
_context.next = 28;
|
|
63167
63285
|
break;
|
|
63168
63286
|
}
|
|
63169
63287
|
|
|
63170
63288
|
if (node.isAllowDelete) {
|
|
63171
|
-
_context.next =
|
|
63289
|
+
_context.next = 28;
|
|
63172
63290
|
break;
|
|
63173
63291
|
}
|
|
63174
63292
|
|
|
@@ -63194,9 +63312,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63194
63312
|
|
|
63195
63313
|
return _context.abrupt("return", 0);
|
|
63196
63314
|
|
|
63197
|
-
case
|
|
63315
|
+
case 28:
|
|
63198
63316
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63199
|
-
_context.next =
|
|
63317
|
+
_context.next = 31;
|
|
63200
63318
|
break;
|
|
63201
63319
|
}
|
|
63202
63320
|
|
|
@@ -63204,16 +63322,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63204
63322
|
|
|
63205
63323
|
return _context.abrupt("return", 0);
|
|
63206
63324
|
|
|
63207
|
-
case
|
|
63325
|
+
case 31:
|
|
63208
63326
|
n++;
|
|
63209
63327
|
_context.next = 13;
|
|
63210
63328
|
break;
|
|
63211
63329
|
|
|
63212
|
-
case
|
|
63330
|
+
case 34:
|
|
63213
63331
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63214
63332
|
|
|
63215
63333
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63216
|
-
_context.next =
|
|
63334
|
+
_context.next = 40;
|
|
63217
63335
|
break;
|
|
63218
63336
|
}
|
|
63219
63337
|
|
|
@@ -63226,24 +63344,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63226
63344
|
});
|
|
63227
63345
|
|
|
63228
63346
|
if (_res[0]) {
|
|
63229
|
-
_context.next =
|
|
63347
|
+
_context.next = 40;
|
|
63230
63348
|
break;
|
|
63231
63349
|
}
|
|
63232
63350
|
|
|
63233
63351
|
return _context.abrupt("return");
|
|
63234
63352
|
|
|
63235
|
-
case
|
|
63353
|
+
case 40:
|
|
63236
63354
|
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函数完成后调用这个
|
|
63237
63355
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63238
63356
|
|
|
63239
63357
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
63240
|
-
_context.next =
|
|
63358
|
+
_context.next = 43;
|
|
63241
63359
|
break;
|
|
63242
63360
|
}
|
|
63243
63361
|
|
|
63244
63362
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63245
63363
|
|
|
63246
|
-
case
|
|
63364
|
+
case 43:
|
|
63247
63365
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
63248
63366
|
// this._hoEditorFactory,
|
|
63249
63367
|
// currRange.startPath,
|
|
@@ -63256,33 +63374,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63256
63374
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63257
63375
|
|
|
63258
63376
|
if (!(res == 1)) {
|
|
63259
|
-
_context.next =
|
|
63377
|
+
_context.next = 55;
|
|
63260
63378
|
break;
|
|
63261
63379
|
}
|
|
63262
63380
|
|
|
63263
63381
|
changeEvent.beforeChangePath = startPath;
|
|
63264
63382
|
changeEvent.afterChangePath = this._tmp.start;
|
|
63265
|
-
_context.next =
|
|
63383
|
+
_context.next = 53;
|
|
63266
63384
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63267
63385
|
|
|
63268
|
-
case
|
|
63386
|
+
case 53:
|
|
63269
63387
|
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));
|
|
63270
63388
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63271
63389
|
|
|
63272
|
-
case
|
|
63390
|
+
case 55:
|
|
63273
63391
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63274
63392
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
63275
63393
|
aNode = currRange.npStart.node;
|
|
63276
63394
|
|
|
63277
63395
|
if (!(aNode && pnode)) {
|
|
63278
|
-
_context.next =
|
|
63396
|
+
_context.next = 61;
|
|
63279
63397
|
break;
|
|
63280
63398
|
}
|
|
63281
63399
|
|
|
63282
|
-
_context.next =
|
|
63400
|
+
_context.next = 61;
|
|
63283
63401
|
return this.ParentRepaint(pnode);
|
|
63284
63402
|
|
|
63285
|
-
case
|
|
63403
|
+
case 61:
|
|
63286
63404
|
case "end":
|
|
63287
63405
|
return _context.stop();
|
|
63288
63406
|
}
|
|
@@ -99564,7 +99682,7 @@ if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").po
|
|
|
99564
99682
|
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
|
|
99565
99683
|
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
|
|
99566
99684
|
if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
99567
|
-
x+=width
|
|
99685
|
+
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
|
|
99568
99686
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
99569
99687
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
99570
99688
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -199176,7 +199294,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199176
199294
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199177
199295
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199178
199296
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199179
|
-
;// 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=
|
|
199297
|
+
;// 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&
|
|
199180
199298
|
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()}
|
|
199181
199299
|
var staticRenderFns = []
|
|
199182
199300
|
|
|
@@ -201960,11 +202078,11 @@ var HoToPage_component = normalizeComponent(
|
|
|
201960
202078
|
/* harmony default export */ var backToPage = (HoToPage);
|
|
201961
202079
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
201962
202080
|
var util = __webpack_require__(33913);
|
|
201963
|
-
;// 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=
|
|
201964
|
-
var
|
|
202081
|
+
;// 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&
|
|
202082
|
+
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){
|
|
201965
202083
|
var item = ref.item;
|
|
201966
202084
|
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()])}
|
|
201967
|
-
var
|
|
202085
|
+
var PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns = []
|
|
201968
202086
|
|
|
201969
202087
|
|
|
201970
202088
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -204666,12 +204784,12 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204666
204784
|
// } else {
|
|
204667
204785
|
v.id = String(v.id); // }
|
|
204668
204786
|
|
|
204669
|
-
v.
|
|
204787
|
+
v.selected = false;
|
|
204670
204788
|
|
|
204671
204789
|
if (selectedString.length > 0 && selectedString.filter(function (m) {
|
|
204672
204790
|
return v.id == m;
|
|
204673
204791
|
}).length === 1) {
|
|
204674
|
-
v.
|
|
204792
|
+
v.selected = true;
|
|
204675
204793
|
|
|
204676
204794
|
if (_this2.isAllowMultiSelect && _this2.poperSelectList.length >= 20) {
|
|
204677
204795
|
_this2.selectedList[selectedString.indexOf(v.id)] = v;
|
|
@@ -204878,7 +204996,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204878
204996
|
selectItemIndex = index;
|
|
204879
204997
|
}
|
|
204880
204998
|
});
|
|
204881
|
-
item.
|
|
204999
|
+
item.selected = false;
|
|
204882
205000
|
this.poperSelectList.splice(selectItemIndex, 1, item); // this.selectedList.splice(key, 1, item);
|
|
204883
205001
|
|
|
204884
205002
|
this.currentList = this.currentList.filter(function (m) {
|
|
@@ -204904,16 +205022,16 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204904
205022
|
if (value.length > 0) {
|
|
204905
205023
|
this.poperSelectList.forEach(function (v) {
|
|
204906
205024
|
if (value.includes(v.id)) {
|
|
204907
|
-
v.
|
|
205025
|
+
v.selected = true;
|
|
204908
205026
|
_this5.mutexType = String(v.type);
|
|
204909
205027
|
} else {
|
|
204910
|
-
v.
|
|
205028
|
+
v.selected = false;
|
|
204911
205029
|
}
|
|
204912
205030
|
});
|
|
204913
205031
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204914
205032
|
} else if (value.length === 0) {
|
|
204915
205033
|
this.poperSelectList.forEach(function (v) {
|
|
204916
|
-
v.
|
|
205034
|
+
v.selected = false;
|
|
204917
205035
|
_this5.mutexType = "";
|
|
204918
205036
|
});
|
|
204919
205037
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
@@ -204932,21 +205050,21 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204932
205050
|
var item = {};
|
|
204933
205051
|
var selectItemIndex = 0;
|
|
204934
205052
|
this.poperSelectList.forEach(function (v, index) {
|
|
204935
|
-
v.
|
|
205053
|
+
v.selected = false;
|
|
204936
205054
|
|
|
204937
205055
|
if (v.id == value) {
|
|
204938
205056
|
item = v;
|
|
204939
205057
|
selectItemIndex = index;
|
|
204940
205058
|
}
|
|
204941
205059
|
});
|
|
204942
|
-
item.
|
|
205060
|
+
item.selected = !item.selected;
|
|
204943
205061
|
this.poperSelectList.splice(selectItemIndex, 1, item);
|
|
204944
205062
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204945
205063
|
this.sureSelect();
|
|
204946
205064
|
} else {
|
|
204947
205065
|
this.poperSelectList.forEach(function (v) {
|
|
204948
205066
|
if (value.includes(v.id)) {
|
|
204949
|
-
v.
|
|
205067
|
+
v.selected = true;
|
|
204950
205068
|
|
|
204951
205069
|
if (_this6.isCanSearch && _this6.selectedList.filter(function (m) {
|
|
204952
205070
|
return m.id == v.id;
|
|
@@ -204954,7 +205072,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204954
205072
|
_this6.selectedList.push(v);
|
|
204955
205073
|
}
|
|
204956
205074
|
} else {
|
|
204957
|
-
v.
|
|
205075
|
+
v.selected = false;
|
|
204958
205076
|
if (_this6.isCanSearch) _this6.selectedList = _this6.selectedList.filter(function (m) {
|
|
204959
205077
|
return m.id != v.id;
|
|
204960
205078
|
});
|
|
@@ -204971,19 +205089,19 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204971
205089
|
|
|
204972
205090
|
if (!this.isAllowMultiSelect) {
|
|
204973
205091
|
this.poperSelectList.forEach(function (v) {
|
|
204974
|
-
v.
|
|
205092
|
+
v.selected = false;
|
|
204975
205093
|
});
|
|
204976
|
-
item.
|
|
205094
|
+
item.selected = !item.selected;
|
|
204977
205095
|
this.poperSelectList.splice(index, 1, item);
|
|
204978
205096
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204979
205097
|
this.sureSelect();
|
|
204980
205098
|
} else {
|
|
204981
205099
|
this.poperSelectList.forEach(function (v) {
|
|
204982
205100
|
if (v.id == item.id) {
|
|
204983
|
-
v.
|
|
205101
|
+
v.selected = !v.selected;
|
|
204984
205102
|
}
|
|
204985
205103
|
|
|
204986
|
-
if (v.
|
|
205104
|
+
if (v.selected) {
|
|
204987
205105
|
if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
|
|
204988
205106
|
return m.id == v.id;
|
|
204989
205107
|
}).length == 0) {
|
|
@@ -205004,7 +205122,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205004
205122
|
key: "cancelSelect",
|
|
205005
205123
|
value: function cancelSelect() {
|
|
205006
205124
|
this.poperSelectList.forEach(function (v) {
|
|
205007
|
-
v.
|
|
205125
|
+
v.selected = false;
|
|
205008
205126
|
});
|
|
205009
205127
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205010
205128
|
this.selectedList = [];
|
|
@@ -205028,7 +205146,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205028
205146
|
var keyValue = "";
|
|
205029
205147
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
205030
205148
|
var selected = this.isAllowMultiSelect && this.isCanSearch ? this.selectedList : this.poperSelectList.filter(function (v) {
|
|
205031
|
-
return v.
|
|
205149
|
+
return v.selected;
|
|
205032
205150
|
});
|
|
205033
205151
|
var len = selected.length;
|
|
205034
205152
|
|
|
@@ -205186,10 +205304,10 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205186
205304
|
/* harmony default export */ var PoperSelectvue_type_script_lang_ts_ = (PoperSelectModal);
|
|
205187
205305
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=ts&
|
|
205188
205306
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_ts_ = (PoperSelectvue_type_script_lang_ts_);
|
|
205189
|
-
;// 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=
|
|
205307
|
+
;// 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&
|
|
205190
205308
|
// extracted by mini-css-extract-plugin
|
|
205191
205309
|
|
|
205192
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
205310
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=0c390485&lang=scss&scoped=true&
|
|
205193
205311
|
|
|
205194
205312
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue
|
|
205195
205313
|
|
|
@@ -205202,11 +205320,11 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205202
205320
|
|
|
205203
205321
|
var PoperSelect_component = normalizeComponent(
|
|
205204
205322
|
poperSelect_PoperSelectvue_type_script_lang_ts_,
|
|
205205
|
-
|
|
205206
|
-
|
|
205323
|
+
PoperSelectvue_type_template_id_0c390485_scoped_true_render,
|
|
205324
|
+
PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns,
|
|
205207
205325
|
false,
|
|
205208
205326
|
null,
|
|
205209
|
-
"
|
|
205327
|
+
"0c390485",
|
|
205210
205328
|
null
|
|
205211
205329
|
|
|
205212
205330
|
)
|
|
@@ -207159,7 +207277,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207159
207277
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207160
207278
|
var ParagraphNode = __webpack_require__(14208);
|
|
207161
207279
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207162
|
-
/* harmony default export */ var version = ('2.0.
|
|
207280
|
+
/* harmony default export */ var version = ('2.0.67');
|
|
207163
207281
|
;// 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&
|
|
207164
207282
|
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)}
|
|
207165
207283
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209670,8 +209788,8 @@ var UserInfo = __webpack_require__(75013);
|
|
|
209670
209788
|
/*
|
|
209671
209789
|
* @Author: your name
|
|
209672
209790
|
* @Date: 2021-06-21 17:47:51
|
|
209673
|
-
* @LastEditTime: 2022-
|
|
209674
|
-
* @LastEditors:
|
|
209791
|
+
* @LastEditTime: 2022-07-08 23:50:19
|
|
209792
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
209675
209793
|
* @Description: In User Settings Edit
|
|
209676
209794
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
209677
209795
|
*/
|
|
@@ -209691,7 +209809,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209691
209809
|
|
|
209692
209810
|
this._downListColor = "#D2ECB1"; //下拉列表元素颜色//#D2ECB1
|
|
209693
209811
|
|
|
209694
|
-
this._downListColor2 = "#
|
|
209812
|
+
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209695
209813
|
|
|
209696
209814
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209697
209815
|
}
|
|
@@ -220926,6 +221044,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220926
221044
|
value: function showElementsEditRecord(objects) {
|
|
220927
221045
|
var comments = [];
|
|
220928
221046
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221047
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221048
|
+
commentWidthMm: 50
|
|
221049
|
+
}));
|
|
220929
221050
|
|
|
220930
221051
|
for (var i = 0; i < objects.length; i++) {
|
|
220931
221052
|
var object = objects[i];
|
|
@@ -220984,6 +221105,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220984
221105
|
key: "clearEditRecords",
|
|
220985
221106
|
value: function clearEditRecords() {
|
|
220986
221107
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221108
|
+
hoEditorFactory.vueController.setPageProperty(JSON.stringify({
|
|
221109
|
+
commentWidthMm: 0
|
|
221110
|
+
}));
|
|
220987
221111
|
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
220988
221112
|
|
|
220989
221113
|
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
@@ -223433,8 +223557,16 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223433
223557
|
hoEditorFactory.vueController.openXml(xml);
|
|
223434
223558
|
} else {
|
|
223435
223559
|
hoEditorFactory.drawTree.paintStatus = beforeStatus;
|
|
223436
|
-
hoEditorFactory.
|
|
223437
|
-
|
|
223560
|
+
hoEditorFactory.drawTree.drawPages.forEach(function (dPage) {
|
|
223561
|
+
var _dPage$selectContaine;
|
|
223562
|
+
|
|
223563
|
+
if (dPage.drawSelectLevel && !dPage.drawSelectLevel.stage) {
|
|
223564
|
+
dPage.drawSelectLevel.bindStage();
|
|
223565
|
+
}
|
|
223566
|
+
|
|
223567
|
+
dPage.selectContainer.children = [];
|
|
223568
|
+
(_dPage$selectContaine = dPage.selectContainer.stage) === null || _dPage$selectContaine === void 0 ? void 0 : _dPage$selectContaine.update();
|
|
223569
|
+
});
|
|
223438
223570
|
hoEditorFactory.vueController.rebuildAll(true);
|
|
223439
223571
|
}
|
|
223440
223572
|
}
|
|
@@ -224694,6 +224826,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224694
224826
|
|
|
224695
224827
|
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224696
224828
|
|
|
224829
|
+
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
224830
|
+
|
|
224697
224831
|
this._hoEditorFactoryId = id;
|
|
224698
224832
|
}
|
|
224699
224833
|
/**
|
|
@@ -225401,6 +225535,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225401
225535
|
this._isEnabledGlobalColor = value;
|
|
225402
225536
|
}
|
|
225403
225537
|
}
|
|
225538
|
+
}, {
|
|
225539
|
+
key: "isSameColorWithEmptyVlaue",
|
|
225540
|
+
get: function get() {
|
|
225541
|
+
return this._isSameColorWithEmptyVlaue;
|
|
225542
|
+
},
|
|
225543
|
+
set: function set(value) {
|
|
225544
|
+
if (this._isSameColorWithEmptyVlaue !== value) {
|
|
225545
|
+
this._isSameColorWithEmptyVlaue = value;
|
|
225546
|
+
}
|
|
225547
|
+
}
|
|
225404
225548
|
}, {
|
|
225405
225549
|
key: "clear",
|
|
225406
225550
|
value: function clear() {
|
|
@@ -225762,9 +225906,9 @@ var ControlModalvue_type_template_id_36fbe7eb_render = function () {var _vm=this
|
|
|
225762
225906
|
var ControlModalvue_type_template_id_36fbe7eb_staticRenderFns = []
|
|
225763
225907
|
|
|
225764
225908
|
|
|
225765
|
-
;// 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=
|
|
225766
|
-
var
|
|
225767
|
-
var
|
|
225909
|
+
;// 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&
|
|
225910
|
+
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)])}
|
|
225911
|
+
var SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns = []
|
|
225768
225912
|
|
|
225769
225913
|
|
|
225770
225914
|
;// 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&
|
|
@@ -225856,13 +226000,12 @@ var SelectDialog = /*#__PURE__*/function (_Vue) {
|
|
|
225856
226000
|
this.downListContent = (0,toConsumableArray/* default */.Z)(this.downListContent.map(function (v, index) {
|
|
225857
226001
|
if (v.id === undefined) {
|
|
225858
226002
|
v.id = _this2.getKeyId(index);
|
|
225859
|
-
}
|
|
226003
|
+
} // if(updateNode.keyValue.includes(v.id)) {
|
|
226004
|
+
// v.default = true;
|
|
226005
|
+
// } else {
|
|
226006
|
+
// v.default = false;
|
|
226007
|
+
// }
|
|
225860
226008
|
|
|
225861
|
-
if (updateNode.keyValue.includes(v.id)) {
|
|
225862
|
-
v.default = true;
|
|
225863
|
-
} else {
|
|
225864
|
-
v.default = false;
|
|
225865
|
-
}
|
|
225866
226009
|
|
|
225867
226010
|
return v;
|
|
225868
226011
|
}));
|
|
@@ -226105,10 +226248,10 @@ SelectDialog = __decorate([vue_class_component_esm({
|
|
|
226105
226248
|
/* harmony default export */ var SelectDialogvue_type_script_lang_ts_ = (SelectDialog);
|
|
226106
226249
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=ts&
|
|
226107
226250
|
/* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_ts_ = (SelectDialogvue_type_script_lang_ts_);
|
|
226108
|
-
;// 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=
|
|
226251
|
+
;// 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&
|
|
226109
226252
|
// extracted by mini-css-extract-plugin
|
|
226110
226253
|
|
|
226111
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
226254
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=62e16cb5&lang=scss&scoped=true&
|
|
226112
226255
|
|
|
226113
226256
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue
|
|
226114
226257
|
|
|
@@ -226121,11 +226264,11 @@ SelectDialog = __decorate([vue_class_component_esm({
|
|
|
226121
226264
|
|
|
226122
226265
|
var SelectDialog_component = normalizeComponent(
|
|
226123
226266
|
selectDialog_SelectDialogvue_type_script_lang_ts_,
|
|
226124
|
-
|
|
226125
|
-
|
|
226267
|
+
SelectDialogvue_type_template_id_62e16cb5_scoped_true_render,
|
|
226268
|
+
SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns,
|
|
226126
226269
|
false,
|
|
226127
226270
|
null,
|
|
226128
|
-
"
|
|
226271
|
+
"62e16cb5",
|
|
226129
226272
|
null
|
|
226130
226273
|
|
|
226131
226274
|
)
|
|
@@ -226918,9 +227061,9 @@ var QrCode_component = normalizeComponent(
|
|
|
226918
227061
|
;// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
|
|
226919
227062
|
|
|
226920
227063
|
/* harmony default export */ var qrCode = (QrCode);
|
|
226921
|
-
;// 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=
|
|
226922
|
-
var
|
|
226923
|
-
var
|
|
227064
|
+
;// 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&
|
|
227065
|
+
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)])}
|
|
227066
|
+
var TextDialogvue_type_template_id_52be23a2_staticRenderFns = []
|
|
226924
227067
|
|
|
226925
227068
|
|
|
226926
227069
|
;// 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&
|
|
@@ -226962,12 +227105,12 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226962
227105
|
|
|
226963
227106
|
_this = _super.apply(this, arguments);
|
|
226964
227107
|
_this.textParam = Object.assign({}, textParams);
|
|
226965
|
-
_this.textActiveName =
|
|
227108
|
+
_this.textActiveName = 'first';
|
|
226966
227109
|
_this.isMinLenth = false;
|
|
226967
227110
|
_this.isMaxLenth = false;
|
|
226968
227111
|
_this.isMin = false;
|
|
226969
227112
|
_this.isMax = false;
|
|
226970
|
-
_this.animationClassNames =
|
|
227113
|
+
_this.animationClassNames = 'control-modal-contents text-modal animation-in';
|
|
226971
227114
|
_this.customPropertyValue = new Object();
|
|
226972
227115
|
_this.endPath = '';
|
|
226973
227116
|
return _this;
|
|
@@ -227003,15 +227146,15 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227003
227146
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
227004
227147
|
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
227005
227148
|
|
|
227006
|
-
if (this.controlStatus ===
|
|
227149
|
+
if (this.controlStatus === 'update') {
|
|
227007
227150
|
var updateNode = this.getTextNode();
|
|
227008
227151
|
Object.keys(this.textParam).forEach(function (v) {
|
|
227009
|
-
var key = v.replace(/_/g,
|
|
227152
|
+
var key = v.replace(/_/g, '');
|
|
227010
227153
|
|
|
227011
227154
|
if (Object.prototype.hasOwnProperty.call(_this2.textParam, key)) {
|
|
227012
|
-
if (key ===
|
|
227155
|
+
if (key === 'readOnlyStatus') {
|
|
227013
227156
|
_this2.textParam.readOnlyStatus = Number(updateNode.readOnlyStatus);
|
|
227014
|
-
} else if (key ===
|
|
227157
|
+
} else if (key === 'customProperty') {
|
|
227015
227158
|
if ((0,type/* isObject */.Kn)(updateNode[key])) {
|
|
227016
227159
|
_this2.textParam.customProperty = updateNode.customProperty;
|
|
227017
227160
|
} else {
|
|
@@ -227023,7 +227166,7 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227023
227166
|
property[key] = _this2.textParam.customProperty[key];
|
|
227024
227167
|
});
|
|
227025
227168
|
_this2.customPropertyValue = _objectSpread2({}, property);
|
|
227026
|
-
} else if (key ===
|
|
227169
|
+
} else if (key === 'readType') {
|
|
227027
227170
|
_this2.textParam.readType = updateNode.readType == 1 ? true : false;
|
|
227028
227171
|
} else {
|
|
227029
227172
|
_this2.textParam[key] = updateNode[key];
|
|
@@ -227039,8 +227182,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227039
227182
|
this.textParam.inputFieldType = 0;
|
|
227040
227183
|
}
|
|
227041
227184
|
} else {
|
|
227042
|
-
this.textParam.id = this.vueController.generateID(
|
|
227043
|
-
this.textParam.downListProperty.splitCharacter =
|
|
227185
|
+
this.textParam.id = this.vueController.generateID('TF');
|
|
227186
|
+
this.textParam.downListProperty.splitCharacter = ',';
|
|
227044
227187
|
}
|
|
227045
227188
|
}
|
|
227046
227189
|
}, {
|
|
@@ -227115,6 +227258,13 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227115
227258
|
if (v.default) textArr.push(v.text);
|
|
227116
227259
|
});
|
|
227117
227260
|
this.textParam.text = textArr.join(',');
|
|
227261
|
+
var value = '';
|
|
227262
|
+
this.getListStyle().forEach(function (v, index) {
|
|
227263
|
+
if (v.default) {
|
|
227264
|
+
value += v.id + ',';
|
|
227265
|
+
}
|
|
227266
|
+
});
|
|
227267
|
+
this.textParam.keyValue = value;
|
|
227118
227268
|
} else {
|
|
227119
227269
|
this.textParam.downListProperty = new TextInputFieldNode/* DownListProperty */.OL();
|
|
227120
227270
|
}
|
|
@@ -227122,18 +227272,18 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227122
227272
|
this.textParam.bandDataSource = this.dataSource;
|
|
227123
227273
|
|
|
227124
227274
|
if (this.textParam.inputFieldType === 0) {
|
|
227125
|
-
this.textParam.name = this.textParam.name ? this.textParam.name :
|
|
227275
|
+
this.textParam.name = this.textParam.name ? this.textParam.name : '请输入';
|
|
227126
227276
|
} else if (this.textParam.inputFieldType === 1) {
|
|
227127
|
-
this.textParam.name = this.textParam.name ? this.textParam.name :
|
|
227277
|
+
this.textParam.name = this.textParam.name ? this.textParam.name : '请选择';
|
|
227128
227278
|
}
|
|
227129
227279
|
|
|
227130
227280
|
this.textParam.labelText = this.textParam.name;
|
|
227131
227281
|
this.textParam.customProperty = _objectSpread2({}, this.customProperty);
|
|
227132
227282
|
this.textParam.readType ? this.textParam.readType = 1 : this.textParam.readType = 0;
|
|
227133
227283
|
|
|
227134
|
-
if (this.controlStatus ===
|
|
227284
|
+
if (this.controlStatus === 'add') {
|
|
227135
227285
|
this.vueController.insertTextInputField(this.controlStatus, this.textParam);
|
|
227136
|
-
} else if (this.controlStatus ===
|
|
227286
|
+
} else if (this.controlStatus === 'update') {
|
|
227137
227287
|
this.vueController.updateTextInputField(this.textParam);
|
|
227138
227288
|
}
|
|
227139
227289
|
|
|
@@ -227142,8 +227292,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227142
227292
|
}, {
|
|
227143
227293
|
key: "handleClose",
|
|
227144
227294
|
value: function handleClose() {
|
|
227145
|
-
this.animationClassNames =
|
|
227146
|
-
this.$emit(
|
|
227295
|
+
this.animationClassNames = 'control-modal-contents text-modal animation-out';
|
|
227296
|
+
this.$emit('closed');
|
|
227147
227297
|
this.endPath = '';
|
|
227148
227298
|
}
|
|
227149
227299
|
}]);
|
|
@@ -227159,28 +227309,28 @@ __decorate([Prop()], TextDialog.prototype, "controlStatus", void 0);
|
|
|
227159
227309
|
|
|
227160
227310
|
__decorate([Prop()], TextDialog.prototype, "vueController", void 0);
|
|
227161
227311
|
|
|
227162
|
-
__decorate([Inject(
|
|
227312
|
+
__decorate([Inject('setIsDataSource')], TextDialog.prototype, "setIsDataSource", void 0);
|
|
227163
227313
|
|
|
227164
|
-
__decorate([Inject(
|
|
227314
|
+
__decorate([Inject('getDataSource')], TextDialog.prototype, "getDataSource", void 0);
|
|
227165
227315
|
|
|
227166
|
-
__decorate([Inject(
|
|
227316
|
+
__decorate([Inject('setIsCustoms')], TextDialog.prototype, "setIsCustoms", void 0);
|
|
227167
227317
|
|
|
227168
|
-
__decorate([Inject(
|
|
227318
|
+
__decorate([Inject('getCustomsValue')], TextDialog.prototype, "getCustomsValue", void 0);
|
|
227169
227319
|
|
|
227170
|
-
__decorate([Inject(
|
|
227320
|
+
__decorate([Inject('setListAllowMultiSelected')], TextDialog.prototype, "setListAllowMultiSelected", void 0);
|
|
227171
227321
|
|
|
227172
|
-
__decorate([Inject(
|
|
227322
|
+
__decorate([Inject('setIsListStyle')], TextDialog.prototype, "setIsListStyle", void 0);
|
|
227173
227323
|
|
|
227174
|
-
__decorate([Inject(
|
|
227324
|
+
__decorate([Inject('getListStyle')], TextDialog.prototype, "getListStyle", void 0);
|
|
227175
227325
|
|
|
227176
|
-
__decorate([Inject(
|
|
227326
|
+
__decorate([Inject('getListArrSource')], TextDialog.prototype, "getListArrSource", void 0);
|
|
227177
227327
|
|
|
227178
|
-
__decorate([Inject(
|
|
227328
|
+
__decorate([Inject('setListStyle')], TextDialog.prototype, "setListStyle", void 0);
|
|
227179
227329
|
|
|
227180
|
-
__decorate([Inject(
|
|
227330
|
+
__decorate([Inject('getCustomProperty')], TextDialog.prototype, "getCustomProperty", void 0);
|
|
227181
227331
|
|
|
227182
227332
|
TextDialog = __decorate([vue_class_component_esm({
|
|
227183
|
-
name:
|
|
227333
|
+
name: 'TextDialog',
|
|
227184
227334
|
components: {
|
|
227185
227335
|
Tabs: Tab
|
|
227186
227336
|
}
|
|
@@ -227204,8 +227354,8 @@ TextDialog = __decorate([vue_class_component_esm({
|
|
|
227204
227354
|
|
|
227205
227355
|
var TextDialog_component = normalizeComponent(
|
|
227206
227356
|
textDialog_TextDialogvue_type_script_lang_ts_,
|
|
227207
|
-
|
|
227208
|
-
|
|
227357
|
+
TextDialogvue_type_template_id_52be23a2_render,
|
|
227358
|
+
TextDialogvue_type_template_id_52be23a2_staticRenderFns,
|
|
227209
227359
|
false,
|
|
227210
227360
|
null,
|
|
227211
227361
|
null,
|
|
@@ -233181,6 +233331,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233181
233331
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
233182
233332
|
hoEditorFactory && (hoEditorFactory.isEnabledGlobalColor = this.isEnabledGlobalColor);
|
|
233183
233333
|
}
|
|
233334
|
+
}, {
|
|
233335
|
+
key: "isSameColorWithEmptyVlaueChange",
|
|
233336
|
+
value: function isSameColorWithEmptyVlaueChange() {
|
|
233337
|
+
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
233338
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
233339
|
+
hoEditorFactory && (hoEditorFactory.isSameColorWithEmptyVlaue = this.isSameColorWithEmptyVlaue);
|
|
233340
|
+
}
|
|
233184
233341
|
}, {
|
|
233185
233342
|
key: "created",
|
|
233186
233343
|
value: function created() {
|
|
@@ -233232,6 +233389,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233232
233389
|
hoEditor.isUseForm = _this3.isUseForm;
|
|
233233
233390
|
hoEditor.printBlack = _this3.printBlack;
|
|
233234
233391
|
hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
|
|
233392
|
+
hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
|
|
233235
233393
|
hoEditor.contentIsModify = _this3.contentIsModify;
|
|
233236
233394
|
hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
|
|
233237
233395
|
hoEditor.docTree.docProperty = _this3.defaultDocProperty;
|
|
@@ -233611,6 +233769,10 @@ __decorate([Prop({
|
|
|
233611
233769
|
default: false
|
|
233612
233770
|
})], HoDocs.prototype, "isEnabledGlobalColor", void 0);
|
|
233613
233771
|
|
|
233772
|
+
__decorate([Prop({
|
|
233773
|
+
default: false
|
|
233774
|
+
})], HoDocs.prototype, "isSameColorWithEmptyVlaue", void 0);
|
|
233775
|
+
|
|
233614
233776
|
__decorate([Watch('contentIsModify', {
|
|
233615
233777
|
deep: true
|
|
233616
233778
|
})], HoDocs.prototype, "contentIsModifyChange", null);
|
|
@@ -233661,6 +233823,8 @@ __decorate([Watch('printBlack')], HoDocs.prototype, "printBlackChange", null);
|
|
|
233661
233823
|
|
|
233662
233824
|
__decorate([Watch('isEnabledGlobalColor')], HoDocs.prototype, "isEnabledGlobalColorChange", null);
|
|
233663
233825
|
|
|
233826
|
+
__decorate([Watch('isSameColorWithEmptyVlaue')], HoDocs.prototype, "isSameColorWithEmptyVlaueChange", null);
|
|
233827
|
+
|
|
233664
233828
|
HoDocs = __decorate([vue_class_component_esm({
|
|
233665
233829
|
name: 'HoDocs',
|
|
233666
233830
|
components: {
|