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.
- package/lib/hoeditor.common.js +327 -156
- package/lib/hoeditor.css +2 -855
- package/lib/hoeditor.umd.js +327 -156
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -11678,6 +11678,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
11678
11678
|
|
|
11679
11679
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11680
11680
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11681
|
+
ctx.posX = svg2pdfOptions.x;
|
|
11682
|
+
ctx.posY = svg2pdfOptions.y;
|
|
11681
11683
|
window.printBlack = hoEditorFactory.printBlack;
|
|
11682
11684
|
|
|
11683
11685
|
if (hoEditorFactory.isFixedPrintToA4 == '2' && format) {
|
|
@@ -11686,11 +11688,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
11686
11688
|
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
11687
11689
|
|
|
11688
11690
|
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
11691
|
+
// ctx.posX = 0;
|
|
11692
|
+
// ctx.posY = 1122 / 2;
|
|
11689
11693
|
}
|
|
11690
11694
|
}
|
|
11691
11695
|
|
|
11692
|
-
ctx.posX = svg2pdfOptions.x;
|
|
11693
|
-
ctx.posY = svg2pdfOptions.y;
|
|
11694
11696
|
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));
|
|
11695
11697
|
ctx = null;
|
|
11696
11698
|
_context3.next = 57;
|
|
@@ -22251,7 +22253,7 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
22251
22253
|
/*
|
|
22252
22254
|
* @Author: your name
|
|
22253
22255
|
* @Date: 2021-01-20 10:18:55
|
|
22254
|
-
* @LastEditTime: 2022-
|
|
22256
|
+
* @LastEditTime: 2022-07-08 13:55:38
|
|
22255
22257
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
22256
22258
|
* @Description: In User Settings Edit
|
|
22257
22259
|
* @FilePath: \hoeditor-web\src\editor\dom\domNode\Comment.ts
|
|
@@ -27281,7 +27283,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27281
27283
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83964);
|
|
27282
27284
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46455);
|
|
27283
27285
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42015);
|
|
27284
|
-
/* harmony import */ var
|
|
27286
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(16296);
|
|
27285
27287
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
|
|
27286
27288
|
/* 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__);
|
|
27287
27289
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -27294,16 +27296,25 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27294
27296
|
/* 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__);
|
|
27295
27297
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40561);
|
|
27296
27298
|
/* 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__);
|
|
27297
|
-
/* harmony import */ var
|
|
27298
|
-
/* harmony import */ var
|
|
27299
|
-
/* harmony import */ var
|
|
27300
|
-
/* harmony import */ var
|
|
27301
|
-
/* harmony import */ var
|
|
27302
|
-
/* harmony import */ var
|
|
27303
|
-
/* harmony import */ var
|
|
27304
|
-
/* harmony import */ var
|
|
27305
|
-
/* harmony import */ var
|
|
27306
|
-
/* harmony import */ var
|
|
27299
|
+
/* harmony import */ var core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27852);
|
|
27300
|
+
/* 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__);
|
|
27301
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74916);
|
|
27302
|
+
/* 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__);
|
|
27303
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23123);
|
|
27304
|
+
/* 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__);
|
|
27305
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38862);
|
|
27306
|
+
/* 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__);
|
|
27307
|
+
/* harmony import */ var _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(19459);
|
|
27308
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27356);
|
|
27309
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62938);
|
|
27310
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(35657);
|
|
27311
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(28831);
|
|
27312
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71080);
|
|
27313
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(92178);
|
|
27314
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(99964);
|
|
27315
|
+
|
|
27316
|
+
|
|
27317
|
+
|
|
27307
27318
|
|
|
27308
27319
|
|
|
27309
27320
|
|
|
@@ -27352,7 +27363,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
27352
27363
|
this.execState = ""; //执行状态
|
|
27353
27364
|
}
|
|
27354
27365
|
|
|
27355
|
-
(0,
|
|
27366
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(BandDataSource, [{
|
|
27356
27367
|
key: "DataSourceEnabled",
|
|
27357
27368
|
get: function get() {
|
|
27358
27369
|
return this.dataSourceEnabled;
|
|
@@ -27441,7 +27452,7 @@ var DownListNodeInstance = /*#__PURE__*/function () {
|
|
|
27441
27452
|
this.allowMultiSelect = false;
|
|
27442
27453
|
}
|
|
27443
27454
|
|
|
27444
|
-
(0,
|
|
27455
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNodeInstance, [{
|
|
27445
27456
|
key: "Id",
|
|
27446
27457
|
get: function get() {
|
|
27447
27458
|
return this.id;
|
|
@@ -27577,7 +27588,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27577
27588
|
// this._id = valuesObj["id"];
|
|
27578
27589
|
// }
|
|
27579
27590
|
|
|
27580
|
-
_this._type =
|
|
27591
|
+
_this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType.ctDownList */ .C.ctDownList; // if (valuesObj["name"] !== undefined) {
|
|
27581
27592
|
// this._name = valuesObj["name"];
|
|
27582
27593
|
// }
|
|
27583
27594
|
// if (valuesObj["title"] !== undefined) {
|
|
@@ -27650,7 +27661,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27650
27661
|
_this.setValuesObject(valuesObject);
|
|
27651
27662
|
|
|
27652
27663
|
if (!_this.dataId) {
|
|
27653
|
-
_this.dataId =
|
|
27664
|
+
_this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("DownList");
|
|
27654
27665
|
}
|
|
27655
27666
|
|
|
27656
27667
|
if (_this._text === "") {
|
|
@@ -27671,7 +27682,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27671
27682
|
return _this;
|
|
27672
27683
|
}
|
|
27673
27684
|
|
|
27674
|
-
(0,
|
|
27685
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(DownListNode, [{
|
|
27675
27686
|
key: "setValuesObject",
|
|
27676
27687
|
value: function setValuesObject(valuesObject) {
|
|
27677
27688
|
var valuesObj = eval("(" + valuesObject + ")");
|
|
@@ -27808,12 +27819,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27808
27819
|
}, {
|
|
27809
27820
|
key: "setDownListText",
|
|
27810
27821
|
value: function setDownListText(text) {
|
|
27811
|
-
var hoEditorFactory =
|
|
27822
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27812
27823
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
|
|
27813
27824
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
27814
|
-
var changeEvent = new
|
|
27825
|
+
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);
|
|
27815
27826
|
changeEvent.oldEndPath = ePath;
|
|
27816
|
-
changeEvent.oldDrawLines = new
|
|
27827
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_16__/* .SelectRange */ .E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
27817
27828
|
this._text = text;
|
|
27818
27829
|
|
|
27819
27830
|
if (this._text === "") {
|
|
@@ -27835,7 +27846,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27835
27846
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
27836
27847
|
// const cbStyle = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.styles[this._styleIndex === -1 ? 0 : this._styleIndex]
|
|
27837
27848
|
// .combineStyle;
|
|
27838
|
-
var hoEditorFactory =
|
|
27849
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27839
27850
|
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
27840
27851
|
var cbStyle;
|
|
27841
27852
|
|
|
@@ -27852,7 +27863,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27852
27863
|
}
|
|
27853
27864
|
|
|
27854
27865
|
var dHeight = cbStyle.getFontHeightByFontSize(cbStyle.size);
|
|
27855
|
-
var dNode = new
|
|
27866
|
+
var dNode = new _editor_draw_drawNode_DrawDownListNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawDownListNode */ .I(this._hoEditorFactoryID, this._rootPath, this, dHeight, cbStyle);
|
|
27856
27867
|
|
|
27857
27868
|
this._drawNodes.push(dNode);
|
|
27858
27869
|
}
|
|
@@ -27880,10 +27891,10 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27880
27891
|
return dline;
|
|
27881
27892
|
}
|
|
27882
27893
|
|
|
27883
|
-
var hoEditorFactory =
|
|
27894
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27884
27895
|
var isDisPlay = true;
|
|
27885
27896
|
|
|
27886
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
27897
|
+
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) {
|
|
27887
27898
|
isDisPlay = false;
|
|
27888
27899
|
}
|
|
27889
27900
|
|
|
@@ -27901,7 +27912,50 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27901
27912
|
var color = hoEditorFactory.option.getColorByLevel(120);
|
|
27902
27913
|
|
|
27903
27914
|
if (this.keyValue !== "") {
|
|
27904
|
-
|
|
27915
|
+
if (hoEditorFactory.isSameColorWithEmptyVlaue) {
|
|
27916
|
+
var isDefault = false;
|
|
27917
|
+
|
|
27918
|
+
if (this._allowMultiSelect) {
|
|
27919
|
+
var defaultValues = "";
|
|
27920
|
+
|
|
27921
|
+
for (var _i = 0; _i < this.downListContent.length; _i++) {
|
|
27922
|
+
var item1 = this.downListContent[_i];
|
|
27923
|
+
|
|
27924
|
+
if (item1.default) {
|
|
27925
|
+
defaultValues += item1.id + ",";
|
|
27926
|
+
}
|
|
27927
|
+
}
|
|
27928
|
+
|
|
27929
|
+
if (defaultValues.endsWith(',')) {
|
|
27930
|
+
defaultValues = defaultValues.substring(0, defaultValues.length - 1);
|
|
27931
|
+
}
|
|
27932
|
+
|
|
27933
|
+
var keyValue = this.keyValue;
|
|
27934
|
+
|
|
27935
|
+
if (keyValue.endsWith(',')) {
|
|
27936
|
+
keyValue = keyValue.substring(0, keyValue.length - 1);
|
|
27937
|
+
}
|
|
27938
|
+
|
|
27939
|
+
if (defaultValues === keyValue) {
|
|
27940
|
+
isDefault = true;
|
|
27941
|
+
}
|
|
27942
|
+
} else {
|
|
27943
|
+
for (var j = 0; j < this.downListContent.length; j++) {
|
|
27944
|
+
var item2 = this.downListContent[j];
|
|
27945
|
+
|
|
27946
|
+
if (item2.id === this.keyValue.split(',')[0] && item2.default) {
|
|
27947
|
+
isDefault = true;
|
|
27948
|
+
break;
|
|
27949
|
+
}
|
|
27950
|
+
}
|
|
27951
|
+
}
|
|
27952
|
+
|
|
27953
|
+
if (!isDefault) {
|
|
27954
|
+
color = hoEditorFactory.option.getColorByLevel(12);
|
|
27955
|
+
}
|
|
27956
|
+
} else {
|
|
27957
|
+
color = hoEditorFactory.option.getColorByLevel(12);
|
|
27958
|
+
}
|
|
27905
27959
|
}
|
|
27906
27960
|
|
|
27907
27961
|
var backColor = new createjs.Shape();
|
|
@@ -27913,9 +27967,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27913
27967
|
if (this.keyValue === "") {
|
|
27914
27968
|
drawNode.alpha = 0;
|
|
27915
27969
|
} else {
|
|
27916
|
-
for (var
|
|
27917
|
-
if (drawNode.children[
|
|
27918
|
-
drawNode.children.splice(
|
|
27970
|
+
for (var _i2 = drawNode.children.length - 1; _i2 >= 0; _i2--) {
|
|
27971
|
+
if (drawNode.children[_i2].name === "backColor") {
|
|
27972
|
+
drawNode.children.splice(_i2, 1);
|
|
27919
27973
|
}
|
|
27920
27974
|
}
|
|
27921
27975
|
}
|
|
@@ -27933,9 +27987,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27933
27987
|
var downLists = {
|
|
27934
27988
|
item: this.downListContent
|
|
27935
27989
|
};
|
|
27936
|
-
var hoEditorFactory =
|
|
27990
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
27937
27991
|
var retObj = {
|
|
27938
|
-
nodeType:
|
|
27992
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl],
|
|
27939
27993
|
type: "ctDownList",
|
|
27940
27994
|
//id: type === "copy" ? hoEditorFactory.gernerateCode.generateID("DL") : this.id,
|
|
27941
27995
|
id: this.id,
|
|
@@ -27946,7 +28000,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27946
28000
|
identifierFormat: this.identifierFormat,
|
|
27947
28001
|
isSynchro: this.isSynchro,
|
|
27948
28002
|
name: this.name,
|
|
27949
|
-
text: this.text,
|
|
28003
|
+
text: this.keyValue == "" ? "" : this.text,
|
|
27950
28004
|
keyValue: this.keyValue,
|
|
27951
28005
|
title: this.title,
|
|
27952
28006
|
styleIndex: this.styleIndex,
|
|
@@ -27983,7 +28037,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27983
28037
|
this.transType(json);
|
|
27984
28038
|
|
|
27985
28039
|
if (isPaste) {
|
|
27986
|
-
var hoEditorFactory =
|
|
28040
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
27987
28041
|
|
|
27988
28042
|
if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
27989
28043
|
//json.id = hoEditorFactory.gernerateCode.generateID("DL");
|
|
@@ -27995,7 +28049,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27995
28049
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
27996
28050
|
json.mutexSelect = !json.mutexSelect ? false : json.mutexSelect;
|
|
27997
28051
|
json.allowMultiSelect = !json.allowMultiSelect ? false : json.allowMultiSelect;
|
|
27998
|
-
json.type = parseInt(
|
|
28052
|
+
json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
|
|
27999
28053
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
28000
28054
|
json.readType = json.readType ? Number(json.readType) : -1;
|
|
28001
28055
|
var downListContent = [];
|
|
@@ -28004,12 +28058,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
28004
28058
|
downListContent.push(json.downLists.item[i]);
|
|
28005
28059
|
}
|
|
28006
28060
|
|
|
28007
|
-
return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
28061
|
+
return new DownListNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType.ntControl */ .Jq.ntControl, JSON.stringify(json), downListContent, Number(json.styleIndex));
|
|
28008
28062
|
}
|
|
28009
28063
|
}]);
|
|
28010
28064
|
|
|
28011
28065
|
return DownListNode;
|
|
28012
|
-
}(
|
|
28066
|
+
}(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlNode */ .w);
|
|
28013
28067
|
|
|
28014
28068
|
/***/ }),
|
|
28015
28069
|
|
|
@@ -44505,15 +44559,24 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44505
44559
|
}
|
|
44506
44560
|
}, {
|
|
44507
44561
|
key: "removeComment",
|
|
44508
|
-
value: function removeComment(comment) {
|
|
44509
|
-
|
|
44510
|
-
var
|
|
44562
|
+
value: function removeComment(comment, isRecord) {
|
|
44563
|
+
if (isRecord) {
|
|
44564
|
+
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
44565
|
+
var child = this.children[i];
|
|
44511
44566
|
|
|
44512
|
-
|
|
44513
|
-
|
|
44567
|
+
if (child.name && child.name === "record" + comment.id) {
|
|
44568
|
+
this.children.splice(i, 1);
|
|
44569
|
+
}
|
|
44514
44570
|
}
|
|
44515
|
-
}
|
|
44571
|
+
} else {
|
|
44572
|
+
for (var _i = this.children.length - 1; _i >= 0; _i--) {
|
|
44573
|
+
var _child = this.children[_i];
|
|
44516
44574
|
|
|
44575
|
+
if (_child.name && _child.name === comment.id) {
|
|
44576
|
+
this.children.splice(_i, 1);
|
|
44577
|
+
}
|
|
44578
|
+
}
|
|
44579
|
+
}
|
|
44517
44580
|
|
|
44518
44581
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
|
|
44519
44582
|
}
|
|
@@ -44625,12 +44688,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44625
44688
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44626
44689
|
var _tempComment = bottomComments[0];
|
|
44627
44690
|
|
|
44628
|
-
for (var
|
|
44629
|
-
var _stageY2 = getStagePos(bottomComments[
|
|
44691
|
+
for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
|
|
44692
|
+
var _stageY2 = getStagePos(bottomComments[_i2])[1];
|
|
44630
44693
|
|
|
44631
44694
|
if (_stageY2 < minValue) {
|
|
44632
44695
|
minValue = _stageY2;
|
|
44633
|
-
_tempComment = bottomComments[
|
|
44696
|
+
_tempComment = bottomComments[_i2];
|
|
44634
44697
|
}
|
|
44635
44698
|
}
|
|
44636
44699
|
|
|
@@ -44775,13 +44838,14 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44775
44838
|
value: function repaintRecored(comments, comment, nPath, spX, spY) {
|
|
44776
44839
|
var _this5 = this;
|
|
44777
44840
|
|
|
44841
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44778
44842
|
var topComments = new Array();
|
|
44779
44843
|
var bottomComments = new Array();
|
|
44780
44844
|
var tempArr = new Array();
|
|
44781
44845
|
|
|
44782
44846
|
var getStagePos = function getStagePos(comment) {
|
|
44783
44847
|
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44784
|
-
var dline =
|
|
44848
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44785
44849
|
|
|
44786
44850
|
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44787
44851
|
|
|
@@ -44794,7 +44858,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44794
44858
|
var commentY = spY;
|
|
44795
44859
|
comments.forEach(function (value) {
|
|
44796
44860
|
if (value.id !== comment.id) {
|
|
44797
|
-
|
|
44861
|
+
var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
|
|
44862
|
+
|
|
44863
|
+
if (area && area.index == _this5.index) {
|
|
44864
|
+
tempArr.push(value);
|
|
44865
|
+
}
|
|
44798
44866
|
}
|
|
44799
44867
|
});
|
|
44800
44868
|
tempArr.forEach(function (value) {
|
|
@@ -44853,7 +44921,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44853
44921
|
commentY = nodeY;
|
|
44854
44922
|
}
|
|
44855
44923
|
|
|
44856
|
-
_this5.removeComment(commentObj);
|
|
44924
|
+
_this5.removeComment(commentObj, true);
|
|
44857
44925
|
|
|
44858
44926
|
_this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
|
|
44859
44927
|
|
|
@@ -44877,12 +44945,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44877
44945
|
var minValue = getStagePos(bottomComments[0])[1];
|
|
44878
44946
|
var _tempComment3 = bottomComments[0];
|
|
44879
44947
|
|
|
44880
|
-
for (var
|
|
44881
|
-
var _stageY4 = getStagePos(bottomComments[
|
|
44948
|
+
for (var _i3 = 1; _i3 < bottomComments.length; _i3++) {
|
|
44949
|
+
var _stageY4 = getStagePos(bottomComments[_i3])[1];
|
|
44882
44950
|
|
|
44883
44951
|
if (_stageY4 < minValue) {
|
|
44884
44952
|
minValue = _stageY4;
|
|
44885
|
-
_tempComment3 = bottomComments[
|
|
44953
|
+
_tempComment3 = bottomComments[_i3];
|
|
44886
44954
|
}
|
|
44887
44955
|
}
|
|
44888
44956
|
|
|
@@ -52952,6 +53020,8 @@ var createSuper = __webpack_require__(46455);
|
|
|
52952
53020
|
var es_regexp_exec = __webpack_require__(74916);
|
|
52953
53021
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
52954
53022
|
var es_string_split = __webpack_require__(23123);
|
|
53023
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
53024
|
+
var es_string_ends_with = __webpack_require__(27852);
|
|
52955
53025
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
52956
53026
|
var es_string_italics = __webpack_require__(58734);
|
|
52957
53027
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -53401,6 +53471,7 @@ var GestationNode = __webpack_require__(55817);
|
|
|
53401
53471
|
|
|
53402
53472
|
|
|
53403
53473
|
|
|
53474
|
+
|
|
53404
53475
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
53405
53476
|
|
|
53406
53477
|
|
|
@@ -53622,17 +53693,68 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53622
53693
|
|
|
53623
53694
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53624
53695
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53625
|
-
|
|
53696
|
+
var parentNode = this.node.parentNode;
|
|
53697
|
+
|
|
53698
|
+
if (parentNode.inputFieldType === 0) {
|
|
53626
53699
|
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53627
53700
|
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53628
53701
|
}
|
|
53629
53702
|
} else {
|
|
53630
|
-
if (
|
|
53703
|
+
if (parentNode.keyValue == "") {
|
|
53631
53704
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53632
53705
|
} else {
|
|
53633
|
-
|
|
53706
|
+
var downListProperty = parentNode.downListProperty;
|
|
53707
|
+
|
|
53708
|
+
if (hoEditorFactory.isSameColorWithEmptyVlaue && downListProperty.listItems) {
|
|
53709
|
+
var isDefault = false;
|
|
53710
|
+
var listItems = JSON.parse(downListProperty.listItems);
|
|
53711
|
+
|
|
53712
|
+
if (downListProperty.allowMultiSelected) {
|
|
53713
|
+
var defaultValues = "";
|
|
53714
|
+
|
|
53715
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
53716
|
+
var item1 = listItems[i];
|
|
53717
|
+
|
|
53718
|
+
if (item1.default) {
|
|
53719
|
+
defaultValues += item1.id + ",";
|
|
53720
|
+
}
|
|
53721
|
+
}
|
|
53722
|
+
|
|
53723
|
+
if (defaultValues.endsWith(',')) {
|
|
53724
|
+
defaultValues = defaultValues.substring(0, defaultValues.length - 1);
|
|
53725
|
+
}
|
|
53726
|
+
|
|
53727
|
+
var keyValue = parentNode.keyValue;
|
|
53728
|
+
|
|
53729
|
+
if (keyValue.endsWith(',')) {
|
|
53730
|
+
keyValue = keyValue.substring(0, keyValue.length - 1);
|
|
53731
|
+
}
|
|
53732
|
+
|
|
53733
|
+
if (defaultValues === keyValue) {
|
|
53734
|
+
isDefault = true;
|
|
53735
|
+
}
|
|
53736
|
+
} else {
|
|
53737
|
+
for (var j = 0; j < listItems.length; j++) {
|
|
53738
|
+
var item2 = listItems[j];
|
|
53739
|
+
|
|
53740
|
+
if (item2.id === parentNode.keyValue.split(',')[0] && item2.default) {
|
|
53741
|
+
isDefault = true;
|
|
53742
|
+
break;
|
|
53743
|
+
}
|
|
53744
|
+
}
|
|
53745
|
+
}
|
|
53746
|
+
|
|
53747
|
+
if (isDefault) {
|
|
53748
|
+
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53749
|
+
} else {
|
|
53750
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53751
|
+
}
|
|
53752
|
+
} else {
|
|
53753
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53754
|
+
}
|
|
53634
53755
|
}
|
|
53635
|
-
}
|
|
53756
|
+
} //hoEditorFactory.isEnabledGlobalColor = true;
|
|
53757
|
+
|
|
53636
53758
|
|
|
53637
53759
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
53638
53760
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
@@ -63132,7 +63254,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63132
63254
|
//if(nodes.length == 0) return;
|
|
63133
63255
|
|
|
63134
63256
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63135
|
-
_context.next =
|
|
63257
|
+
_context.next = 34;
|
|
63136
63258
|
break;
|
|
63137
63259
|
}
|
|
63138
63260
|
|
|
@@ -63140,7 +63262,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63140
63262
|
|
|
63141
63263
|
case 13:
|
|
63142
63264
|
if (!(n < nodes.length)) {
|
|
63143
|
-
_context.next =
|
|
63265
|
+
_context.next = 34;
|
|
63144
63266
|
break;
|
|
63145
63267
|
}
|
|
63146
63268
|
|
|
@@ -63156,13 +63278,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63156
63278
|
return _context.abrupt("return", 0);
|
|
63157
63279
|
|
|
63158
63280
|
case 18:
|
|
63281
|
+
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) {
|
|
63282
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
63283
|
+
}
|
|
63284
|
+
|
|
63159
63285
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63160
|
-
_context.next =
|
|
63286
|
+
_context.next = 28;
|
|
63161
63287
|
break;
|
|
63162
63288
|
}
|
|
63163
63289
|
|
|
63164
63290
|
if (node.isAllowDelete) {
|
|
63165
|
-
_context.next =
|
|
63291
|
+
_context.next = 28;
|
|
63166
63292
|
break;
|
|
63167
63293
|
}
|
|
63168
63294
|
|
|
@@ -63188,9 +63314,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63188
63314
|
|
|
63189
63315
|
return _context.abrupt("return", 0);
|
|
63190
63316
|
|
|
63191
|
-
case
|
|
63317
|
+
case 28:
|
|
63192
63318
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63193
|
-
_context.next =
|
|
63319
|
+
_context.next = 31;
|
|
63194
63320
|
break;
|
|
63195
63321
|
}
|
|
63196
63322
|
|
|
@@ -63198,16 +63324,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63198
63324
|
|
|
63199
63325
|
return _context.abrupt("return", 0);
|
|
63200
63326
|
|
|
63201
|
-
case
|
|
63327
|
+
case 31:
|
|
63202
63328
|
n++;
|
|
63203
63329
|
_context.next = 13;
|
|
63204
63330
|
break;
|
|
63205
63331
|
|
|
63206
|
-
case
|
|
63332
|
+
case 34:
|
|
63207
63333
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63208
63334
|
|
|
63209
63335
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63210
|
-
_context.next =
|
|
63336
|
+
_context.next = 40;
|
|
63211
63337
|
break;
|
|
63212
63338
|
}
|
|
63213
63339
|
|
|
@@ -63220,24 +63346,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63220
63346
|
});
|
|
63221
63347
|
|
|
63222
63348
|
if (_res[0]) {
|
|
63223
|
-
_context.next =
|
|
63349
|
+
_context.next = 40;
|
|
63224
63350
|
break;
|
|
63225
63351
|
}
|
|
63226
63352
|
|
|
63227
63353
|
return _context.abrupt("return");
|
|
63228
63354
|
|
|
63229
|
-
case
|
|
63355
|
+
case 40:
|
|
63230
63356
|
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函数完成后调用这个
|
|
63231
63357
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63232
63358
|
|
|
63233
63359
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
63234
|
-
_context.next =
|
|
63360
|
+
_context.next = 43;
|
|
63235
63361
|
break;
|
|
63236
63362
|
}
|
|
63237
63363
|
|
|
63238
63364
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63239
63365
|
|
|
63240
|
-
case
|
|
63366
|
+
case 43:
|
|
63241
63367
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
63242
63368
|
// this._hoEditorFactory,
|
|
63243
63369
|
// currRange.startPath,
|
|
@@ -63250,33 +63376,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63250
63376
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63251
63377
|
|
|
63252
63378
|
if (!(res == 1)) {
|
|
63253
|
-
_context.next =
|
|
63379
|
+
_context.next = 55;
|
|
63254
63380
|
break;
|
|
63255
63381
|
}
|
|
63256
63382
|
|
|
63257
63383
|
changeEvent.beforeChangePath = startPath;
|
|
63258
63384
|
changeEvent.afterChangePath = this._tmp.start;
|
|
63259
|
-
_context.next =
|
|
63385
|
+
_context.next = 53;
|
|
63260
63386
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63261
63387
|
|
|
63262
|
-
case
|
|
63388
|
+
case 53:
|
|
63263
63389
|
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));
|
|
63264
63390
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63265
63391
|
|
|
63266
|
-
case
|
|
63392
|
+
case 55:
|
|
63267
63393
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63268
63394
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
63269
63395
|
aNode = currRange.npStart.node;
|
|
63270
63396
|
|
|
63271
63397
|
if (!(aNode && pnode)) {
|
|
63272
|
-
_context.next =
|
|
63398
|
+
_context.next = 61;
|
|
63273
63399
|
break;
|
|
63274
63400
|
}
|
|
63275
63401
|
|
|
63276
|
-
_context.next =
|
|
63402
|
+
_context.next = 61;
|
|
63277
63403
|
return this.ParentRepaint(pnode);
|
|
63278
63404
|
|
|
63279
|
-
case
|
|
63405
|
+
case 61:
|
|
63280
63406
|
case "end":
|
|
63281
63407
|
return _context.stop();
|
|
63282
63408
|
}
|
|
@@ -99557,7 +99683,8 @@ if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.get
|
|
|
99557
99683
|
if(src.indexOf("data:image/")===0){return atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
|
|
99558
99684
|
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
|
|
99559
99685
|
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
|
|
99560
|
-
if(rotation){
|
|
99686
|
+
if(rotation){// 自定义修改 修复图片旋转后位置错误问题 水平方向增加自身宽度 减去的 18px 来源未知 垂直方向减去自身高度
|
|
99687
|
+
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
|
|
99561
99688
|
this.internal.write(rotationTransformationMatrix.join(" "));//Rotate
|
|
99562
99689
|
this.internal.write([coord(width),"0","0",coord(height),"0","0","cm"].join(" "));//Scale
|
|
99563
99690
|
}else{this.internal.write([coord(width),"0","0",coord(height),coord(x),vcoord(y+height),"cm"].join(" "));//Translate and Scale
|
|
@@ -99667,7 +99794,7 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99667
99794
|
*
|
|
99668
99795
|
* @returns jsPDF
|
|
99669
99796
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99670
|
-
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
|
|
99797
|
+
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
|
|
99671
99798
|
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99672
99799
|
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99673
99800
|
// if(posY) y += posY;
|
|
@@ -100468,7 +100595,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
|
|
|
100468
100595
|
* @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
|
|
100469
100596
|
*/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
|
|
100470
100597
|
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);
|
|
100471
|
-
|
|
100598
|
+
// 自定义修改 修复图片旋转角度错误问题
|
|
100599
|
+
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;// 自定义修改 处理签名图片打印和普通图片打印
|
|
100472
100600
|
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"){// 自定义修改
|
|
100473
100601
|
this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
|
|
100474
100602
|
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;};/**
|
|
@@ -199168,7 +199296,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199168
199296
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199169
199297
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
199170
199298
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199171
|
-
;// 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=
|
|
199299
|
+
;// 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&
|
|
199172
199300
|
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()}
|
|
199173
199301
|
var staticRenderFns = []
|
|
199174
199302
|
|
|
@@ -201952,11 +202080,11 @@ var HoToPage_component = normalizeComponent(
|
|
|
201952
202080
|
/* harmony default export */ var backToPage = (HoToPage);
|
|
201953
202081
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
201954
202082
|
var util = __webpack_require__(17987);
|
|
201955
|
-
;// 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=
|
|
201956
|
-
var
|
|
202083
|
+
;// 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&
|
|
202084
|
+
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){
|
|
201957
202085
|
var item = ref.item;
|
|
201958
202086
|
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()])}
|
|
201959
|
-
var
|
|
202087
|
+
var PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns = []
|
|
201960
202088
|
|
|
201961
202089
|
|
|
201962
202090
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -204658,12 +204786,12 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204658
204786
|
// } else {
|
|
204659
204787
|
v.id = String(v.id); // }
|
|
204660
204788
|
|
|
204661
|
-
v.
|
|
204789
|
+
v.selected = false;
|
|
204662
204790
|
|
|
204663
204791
|
if (selectedString.length > 0 && selectedString.filter(function (m) {
|
|
204664
204792
|
return v.id == m;
|
|
204665
204793
|
}).length === 1) {
|
|
204666
|
-
v.
|
|
204794
|
+
v.selected = true;
|
|
204667
204795
|
|
|
204668
204796
|
if (_this2.isAllowMultiSelect && _this2.poperSelectList.length >= 20) {
|
|
204669
204797
|
_this2.selectedList[selectedString.indexOf(v.id)] = v;
|
|
@@ -204870,7 +204998,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204870
204998
|
selectItemIndex = index;
|
|
204871
204999
|
}
|
|
204872
205000
|
});
|
|
204873
|
-
item.
|
|
205001
|
+
item.selected = false;
|
|
204874
205002
|
this.poperSelectList.splice(selectItemIndex, 1, item); // this.selectedList.splice(key, 1, item);
|
|
204875
205003
|
|
|
204876
205004
|
this.currentList = this.currentList.filter(function (m) {
|
|
@@ -204896,16 +205024,16 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204896
205024
|
if (value.length > 0) {
|
|
204897
205025
|
this.poperSelectList.forEach(function (v) {
|
|
204898
205026
|
if (value.includes(v.id)) {
|
|
204899
|
-
v.
|
|
205027
|
+
v.selected = true;
|
|
204900
205028
|
_this5.mutexType = String(v.type);
|
|
204901
205029
|
} else {
|
|
204902
|
-
v.
|
|
205030
|
+
v.selected = false;
|
|
204903
205031
|
}
|
|
204904
205032
|
});
|
|
204905
205033
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204906
205034
|
} else if (value.length === 0) {
|
|
204907
205035
|
this.poperSelectList.forEach(function (v) {
|
|
204908
|
-
v.
|
|
205036
|
+
v.selected = false;
|
|
204909
205037
|
_this5.mutexType = "";
|
|
204910
205038
|
});
|
|
204911
205039
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
@@ -204924,21 +205052,21 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204924
205052
|
var item = {};
|
|
204925
205053
|
var selectItemIndex = 0;
|
|
204926
205054
|
this.poperSelectList.forEach(function (v, index) {
|
|
204927
|
-
v.
|
|
205055
|
+
v.selected = false;
|
|
204928
205056
|
|
|
204929
205057
|
if (v.id == value) {
|
|
204930
205058
|
item = v;
|
|
204931
205059
|
selectItemIndex = index;
|
|
204932
205060
|
}
|
|
204933
205061
|
});
|
|
204934
|
-
item.
|
|
205062
|
+
item.selected = !item.selected;
|
|
204935
205063
|
this.poperSelectList.splice(selectItemIndex, 1, item);
|
|
204936
205064
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204937
205065
|
this.sureSelect();
|
|
204938
205066
|
} else {
|
|
204939
205067
|
this.poperSelectList.forEach(function (v) {
|
|
204940
205068
|
if (value.includes(v.id)) {
|
|
204941
|
-
v.
|
|
205069
|
+
v.selected = true;
|
|
204942
205070
|
|
|
204943
205071
|
if (_this6.isCanSearch && _this6.selectedList.filter(function (m) {
|
|
204944
205072
|
return m.id == v.id;
|
|
@@ -204946,7 +205074,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204946
205074
|
_this6.selectedList.push(v);
|
|
204947
205075
|
}
|
|
204948
205076
|
} else {
|
|
204949
|
-
v.
|
|
205077
|
+
v.selected = false;
|
|
204950
205078
|
if (_this6.isCanSearch) _this6.selectedList = _this6.selectedList.filter(function (m) {
|
|
204951
205079
|
return m.id != v.id;
|
|
204952
205080
|
});
|
|
@@ -204963,19 +205091,19 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204963
205091
|
|
|
204964
205092
|
if (!this.isAllowMultiSelect) {
|
|
204965
205093
|
this.poperSelectList.forEach(function (v) {
|
|
204966
|
-
v.
|
|
205094
|
+
v.selected = false;
|
|
204967
205095
|
});
|
|
204968
|
-
item.
|
|
205096
|
+
item.selected = !item.selected;
|
|
204969
205097
|
this.poperSelectList.splice(index, 1, item);
|
|
204970
205098
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
204971
205099
|
this.sureSelect();
|
|
204972
205100
|
} else {
|
|
204973
205101
|
this.poperSelectList.forEach(function (v) {
|
|
204974
205102
|
if (v.id == item.id) {
|
|
204975
|
-
v.
|
|
205103
|
+
v.selected = !v.selected;
|
|
204976
205104
|
}
|
|
204977
205105
|
|
|
204978
|
-
if (v.
|
|
205106
|
+
if (v.selected) {
|
|
204979
205107
|
if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
|
|
204980
205108
|
return m.id == v.id;
|
|
204981
205109
|
}).length == 0) {
|
|
@@ -204996,7 +205124,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
204996
205124
|
key: "cancelSelect",
|
|
204997
205125
|
value: function cancelSelect() {
|
|
204998
205126
|
this.poperSelectList.forEach(function (v) {
|
|
204999
|
-
v.
|
|
205127
|
+
v.selected = false;
|
|
205000
205128
|
});
|
|
205001
205129
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205002
205130
|
this.selectedList = [];
|
|
@@ -205020,7 +205148,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205020
205148
|
var keyValue = "";
|
|
205021
205149
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
205022
205150
|
var selected = this.isAllowMultiSelect && this.isCanSearch ? this.selectedList : this.poperSelectList.filter(function (v) {
|
|
205023
|
-
return v.
|
|
205151
|
+
return v.selected;
|
|
205024
205152
|
});
|
|
205025
205153
|
var len = selected.length;
|
|
205026
205154
|
|
|
@@ -205178,10 +205306,10 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205178
205306
|
/* harmony default export */ var PoperSelectvue_type_script_lang_ts_ = (PoperSelectModal);
|
|
205179
205307
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=ts&
|
|
205180
205308
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_ts_ = (PoperSelectvue_type_script_lang_ts_);
|
|
205181
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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=
|
|
205309
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
205182
205310
|
// extracted by mini-css-extract-plugin
|
|
205183
205311
|
|
|
205184
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
205312
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=0c390485&lang=scss&scoped=true&
|
|
205185
205313
|
|
|
205186
205314
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue
|
|
205187
205315
|
|
|
@@ -205194,11 +205322,11 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205194
205322
|
|
|
205195
205323
|
var PoperSelect_component = normalizeComponent(
|
|
205196
205324
|
poperSelect_PoperSelectvue_type_script_lang_ts_,
|
|
205197
|
-
|
|
205198
|
-
|
|
205325
|
+
PoperSelectvue_type_template_id_0c390485_scoped_true_render,
|
|
205326
|
+
PoperSelectvue_type_template_id_0c390485_scoped_true_staticRenderFns,
|
|
205199
205327
|
false,
|
|
205200
205328
|
null,
|
|
205201
|
-
"
|
|
205329
|
+
"0c390485",
|
|
205202
205330
|
null
|
|
205203
205331
|
|
|
205204
205332
|
)
|
|
@@ -207151,7 +207279,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207151
207279
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207152
207280
|
var ParagraphNode = __webpack_require__(13880);
|
|
207153
207281
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207154
|
-
/* harmony default export */ var version = ('2.0.
|
|
207282
|
+
/* harmony default export */ var version = ('2.0.66');
|
|
207155
207283
|
;// 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&
|
|
207156
207284
|
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)}
|
|
207157
207285
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209662,8 +209790,8 @@ var UserInfo = __webpack_require__(82084);
|
|
|
209662
209790
|
/*
|
|
209663
209791
|
* @Author: your name
|
|
209664
209792
|
* @Date: 2021-06-21 17:47:51
|
|
209665
|
-
* @LastEditTime: 2022-
|
|
209666
|
-
* @LastEditors:
|
|
209793
|
+
* @LastEditTime: 2022-07-08 23:50:19
|
|
209794
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
209667
209795
|
* @Description: In User Settings Edit
|
|
209668
209796
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
209669
209797
|
*/
|
|
@@ -209683,7 +209811,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209683
209811
|
|
|
209684
209812
|
this._downListColor = "#D2ECB1"; //下拉列表元素颜色//#D2ECB1
|
|
209685
209813
|
|
|
209686
|
-
this._downListColor2 = "#
|
|
209814
|
+
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209687
209815
|
|
|
209688
209816
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209689
209817
|
}
|
|
@@ -220927,10 +221055,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220927
221055
|
|
|
220928
221056
|
for (var j = 0; j < elements.length; j++) {
|
|
220929
221057
|
var element = elements[j];
|
|
221058
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
221059
|
+
var comment = void 0;
|
|
220930
221060
|
|
|
220931
221061
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220932
|
-
|
|
220933
|
-
|
|
221062
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
221063
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
221064
|
+
comments.push(comment);
|
|
221065
|
+
}
|
|
221066
|
+
|
|
221067
|
+
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
221068
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element);
|
|
220934
221069
|
comment.lineHeight = comment.lineHeight - 20;
|
|
220935
221070
|
comments.push(comment);
|
|
220936
221071
|
}
|
|
@@ -220949,9 +221084,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220949
221084
|
|
|
220950
221085
|
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
220951
221086
|
var spY = localPos.y;
|
|
220952
|
-
drawArea.removeComment(comment);
|
|
221087
|
+
drawArea.removeComment(comment, true);
|
|
220953
221088
|
var path = comment.eNode.getNodePath();
|
|
220954
221089
|
|
|
221090
|
+
if (comment.eNode instanceof DateTimeNode/* DateTimeNode */.Z || comment.eNode instanceof DownListNode/* DownListNode */.yF) {
|
|
221091
|
+
spX = spX + comment.eNode.drawNodes[0].dWidth;
|
|
221092
|
+
}
|
|
221093
|
+
|
|
220955
221094
|
if (index === 1) {
|
|
220956
221095
|
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220957
221096
|
}
|
|
@@ -224675,6 +224814,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224675
224814
|
|
|
224676
224815
|
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224677
224816
|
|
|
224817
|
+
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
224818
|
+
|
|
224678
224819
|
this._hoEditorFactoryId = id;
|
|
224679
224820
|
}
|
|
224680
224821
|
/**
|
|
@@ -225382,6 +225523,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225382
225523
|
this._isEnabledGlobalColor = value;
|
|
225383
225524
|
}
|
|
225384
225525
|
}
|
|
225526
|
+
}, {
|
|
225527
|
+
key: "isSameColorWithEmptyVlaue",
|
|
225528
|
+
get: function get() {
|
|
225529
|
+
return this._isSameColorWithEmptyVlaue;
|
|
225530
|
+
},
|
|
225531
|
+
set: function set(value) {
|
|
225532
|
+
if (this._isSameColorWithEmptyVlaue !== value) {
|
|
225533
|
+
this._isSameColorWithEmptyVlaue = value;
|
|
225534
|
+
}
|
|
225535
|
+
}
|
|
225385
225536
|
}, {
|
|
225386
225537
|
key: "clear",
|
|
225387
225538
|
value: function clear() {
|
|
@@ -225743,9 +225894,9 @@ var ControlModalvue_type_template_id_36fbe7eb_render = function () {var _vm=this
|
|
|
225743
225894
|
var ControlModalvue_type_template_id_36fbe7eb_staticRenderFns = []
|
|
225744
225895
|
|
|
225745
225896
|
|
|
225746
|
-
;// 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=
|
|
225747
|
-
var
|
|
225748
|
-
var
|
|
225897
|
+
;// 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&
|
|
225898
|
+
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)])}
|
|
225899
|
+
var SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns = []
|
|
225749
225900
|
|
|
225750
225901
|
|
|
225751
225902
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -225837,13 +225988,12 @@ var SelectDialog = /*#__PURE__*/function (_Vue) {
|
|
|
225837
225988
|
this.downListContent = (0,toConsumableArray/* default */.Z)(this.downListContent.map(function (v, index) {
|
|
225838
225989
|
if (v.id === undefined) {
|
|
225839
225990
|
v.id = _this2.getKeyId(index);
|
|
225840
|
-
}
|
|
225991
|
+
} // if(updateNode.keyValue.includes(v.id)) {
|
|
225992
|
+
// v.default = true;
|
|
225993
|
+
// } else {
|
|
225994
|
+
// v.default = false;
|
|
225995
|
+
// }
|
|
225841
225996
|
|
|
225842
|
-
if (updateNode.keyValue.includes(v.id)) {
|
|
225843
|
-
v.default = true;
|
|
225844
|
-
} else {
|
|
225845
|
-
v.default = false;
|
|
225846
|
-
}
|
|
225847
225997
|
|
|
225848
225998
|
return v;
|
|
225849
225999
|
}));
|
|
@@ -226086,10 +226236,10 @@ SelectDialog = __decorate([vue_class_component_esm({
|
|
|
226086
226236
|
/* harmony default export */ var SelectDialogvue_type_script_lang_ts_ = (SelectDialog);
|
|
226087
226237
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=ts&
|
|
226088
226238
|
/* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_ts_ = (SelectDialogvue_type_script_lang_ts_);
|
|
226089
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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=
|
|
226239
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
226090
226240
|
// extracted by mini-css-extract-plugin
|
|
226091
226241
|
|
|
226092
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
226242
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=62e16cb5&lang=scss&scoped=true&
|
|
226093
226243
|
|
|
226094
226244
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue
|
|
226095
226245
|
|
|
@@ -226102,11 +226252,11 @@ SelectDialog = __decorate([vue_class_component_esm({
|
|
|
226102
226252
|
|
|
226103
226253
|
var SelectDialog_component = normalizeComponent(
|
|
226104
226254
|
selectDialog_SelectDialogvue_type_script_lang_ts_,
|
|
226105
|
-
|
|
226106
|
-
|
|
226255
|
+
SelectDialogvue_type_template_id_62e16cb5_scoped_true_render,
|
|
226256
|
+
SelectDialogvue_type_template_id_62e16cb5_scoped_true_staticRenderFns,
|
|
226107
226257
|
false,
|
|
226108
226258
|
null,
|
|
226109
|
-
"
|
|
226259
|
+
"62e16cb5",
|
|
226110
226260
|
null
|
|
226111
226261
|
|
|
226112
226262
|
)
|
|
@@ -226899,9 +227049,9 @@ var QrCode_component = normalizeComponent(
|
|
|
226899
227049
|
;// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
|
|
226900
227050
|
|
|
226901
227051
|
/* harmony default export */ var qrCode = (QrCode);
|
|
226902
|
-
;// 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=
|
|
226903
|
-
var
|
|
226904
|
-
var
|
|
227052
|
+
;// 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&
|
|
227053
|
+
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)])}
|
|
227054
|
+
var TextDialogvue_type_template_id_52be23a2_staticRenderFns = []
|
|
226905
227055
|
|
|
226906
227056
|
|
|
226907
227057
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -226943,12 +227093,12 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226943
227093
|
|
|
226944
227094
|
_this = _super.apply(this, arguments);
|
|
226945
227095
|
_this.textParam = Object.assign({}, textParams);
|
|
226946
|
-
_this.textActiveName =
|
|
227096
|
+
_this.textActiveName = 'first';
|
|
226947
227097
|
_this.isMinLenth = false;
|
|
226948
227098
|
_this.isMaxLenth = false;
|
|
226949
227099
|
_this.isMin = false;
|
|
226950
227100
|
_this.isMax = false;
|
|
226951
|
-
_this.animationClassNames =
|
|
227101
|
+
_this.animationClassNames = 'control-modal-contents text-modal animation-in';
|
|
226952
227102
|
_this.customPropertyValue = new Object();
|
|
226953
227103
|
_this.endPath = '';
|
|
226954
227104
|
return _this;
|
|
@@ -226984,15 +227134,15 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
226984
227134
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
226985
227135
|
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
226986
227136
|
|
|
226987
|
-
if (this.controlStatus ===
|
|
227137
|
+
if (this.controlStatus === 'update') {
|
|
226988
227138
|
var updateNode = this.getTextNode();
|
|
226989
227139
|
Object.keys(this.textParam).forEach(function (v) {
|
|
226990
|
-
var key = v.replace(/_/g,
|
|
227140
|
+
var key = v.replace(/_/g, '');
|
|
226991
227141
|
|
|
226992
227142
|
if (Object.prototype.hasOwnProperty.call(_this2.textParam, key)) {
|
|
226993
|
-
if (key ===
|
|
227143
|
+
if (key === 'readOnlyStatus') {
|
|
226994
227144
|
_this2.textParam.readOnlyStatus = Number(updateNode.readOnlyStatus);
|
|
226995
|
-
} else if (key ===
|
|
227145
|
+
} else if (key === 'customProperty') {
|
|
226996
227146
|
if ((0,type/* isObject */.Kn)(updateNode[key])) {
|
|
226997
227147
|
_this2.textParam.customProperty = updateNode.customProperty;
|
|
226998
227148
|
} else {
|
|
@@ -227004,7 +227154,7 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227004
227154
|
property[key] = _this2.textParam.customProperty[key];
|
|
227005
227155
|
});
|
|
227006
227156
|
_this2.customPropertyValue = _objectSpread2({}, property);
|
|
227007
|
-
} else if (key ===
|
|
227157
|
+
} else if (key === 'readType') {
|
|
227008
227158
|
_this2.textParam.readType = updateNode.readType == 1 ? true : false;
|
|
227009
227159
|
} else {
|
|
227010
227160
|
_this2.textParam[key] = updateNode[key];
|
|
@@ -227020,8 +227170,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227020
227170
|
this.textParam.inputFieldType = 0;
|
|
227021
227171
|
}
|
|
227022
227172
|
} else {
|
|
227023
|
-
this.textParam.id = this.vueController.generateID(
|
|
227024
|
-
this.textParam.downListProperty.splitCharacter =
|
|
227173
|
+
this.textParam.id = this.vueController.generateID('TF');
|
|
227174
|
+
this.textParam.downListProperty.splitCharacter = ',';
|
|
227025
227175
|
}
|
|
227026
227176
|
}
|
|
227027
227177
|
}, {
|
|
@@ -227096,6 +227246,13 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227096
227246
|
if (v.default) textArr.push(v.text);
|
|
227097
227247
|
});
|
|
227098
227248
|
this.textParam.text = textArr.join(',');
|
|
227249
|
+
var value = '';
|
|
227250
|
+
this.getListStyle().forEach(function (v, index) {
|
|
227251
|
+
if (v.default) {
|
|
227252
|
+
value += v.id + ',';
|
|
227253
|
+
}
|
|
227254
|
+
});
|
|
227255
|
+
this.textParam.keyValue = value;
|
|
227099
227256
|
} else {
|
|
227100
227257
|
this.textParam.downListProperty = new TextInputFieldNode/* DownListProperty */.OL();
|
|
227101
227258
|
}
|
|
@@ -227103,18 +227260,18 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227103
227260
|
this.textParam.bandDataSource = this.dataSource;
|
|
227104
227261
|
|
|
227105
227262
|
if (this.textParam.inputFieldType === 0) {
|
|
227106
|
-
this.textParam.name = this.textParam.name ? this.textParam.name :
|
|
227263
|
+
this.textParam.name = this.textParam.name ? this.textParam.name : '请输入';
|
|
227107
227264
|
} else if (this.textParam.inputFieldType === 1) {
|
|
227108
|
-
this.textParam.name = this.textParam.name ? this.textParam.name :
|
|
227265
|
+
this.textParam.name = this.textParam.name ? this.textParam.name : '请选择';
|
|
227109
227266
|
}
|
|
227110
227267
|
|
|
227111
227268
|
this.textParam.labelText = this.textParam.name;
|
|
227112
227269
|
this.textParam.customProperty = _objectSpread2({}, this.customProperty);
|
|
227113
227270
|
this.textParam.readType ? this.textParam.readType = 1 : this.textParam.readType = 0;
|
|
227114
227271
|
|
|
227115
|
-
if (this.controlStatus ===
|
|
227272
|
+
if (this.controlStatus === 'add') {
|
|
227116
227273
|
this.vueController.insertTextInputField(this.controlStatus, this.textParam);
|
|
227117
|
-
} else if (this.controlStatus ===
|
|
227274
|
+
} else if (this.controlStatus === 'update') {
|
|
227118
227275
|
this.vueController.updateTextInputField(this.textParam);
|
|
227119
227276
|
}
|
|
227120
227277
|
|
|
@@ -227123,8 +227280,8 @@ var TextDialog = /*#__PURE__*/function (_Vue) {
|
|
|
227123
227280
|
}, {
|
|
227124
227281
|
key: "handleClose",
|
|
227125
227282
|
value: function handleClose() {
|
|
227126
|
-
this.animationClassNames =
|
|
227127
|
-
this.$emit(
|
|
227283
|
+
this.animationClassNames = 'control-modal-contents text-modal animation-out';
|
|
227284
|
+
this.$emit('closed');
|
|
227128
227285
|
this.endPath = '';
|
|
227129
227286
|
}
|
|
227130
227287
|
}]);
|
|
@@ -227140,28 +227297,28 @@ __decorate([Prop()], TextDialog.prototype, "controlStatus", void 0);
|
|
|
227140
227297
|
|
|
227141
227298
|
__decorate([Prop()], TextDialog.prototype, "vueController", void 0);
|
|
227142
227299
|
|
|
227143
|
-
__decorate([Inject(
|
|
227300
|
+
__decorate([Inject('setIsDataSource')], TextDialog.prototype, "setIsDataSource", void 0);
|
|
227144
227301
|
|
|
227145
|
-
__decorate([Inject(
|
|
227302
|
+
__decorate([Inject('getDataSource')], TextDialog.prototype, "getDataSource", void 0);
|
|
227146
227303
|
|
|
227147
|
-
__decorate([Inject(
|
|
227304
|
+
__decorate([Inject('setIsCustoms')], TextDialog.prototype, "setIsCustoms", void 0);
|
|
227148
227305
|
|
|
227149
|
-
__decorate([Inject(
|
|
227306
|
+
__decorate([Inject('getCustomsValue')], TextDialog.prototype, "getCustomsValue", void 0);
|
|
227150
227307
|
|
|
227151
|
-
__decorate([Inject(
|
|
227308
|
+
__decorate([Inject('setListAllowMultiSelected')], TextDialog.prototype, "setListAllowMultiSelected", void 0);
|
|
227152
227309
|
|
|
227153
|
-
__decorate([Inject(
|
|
227310
|
+
__decorate([Inject('setIsListStyle')], TextDialog.prototype, "setIsListStyle", void 0);
|
|
227154
227311
|
|
|
227155
|
-
__decorate([Inject(
|
|
227312
|
+
__decorate([Inject('getListStyle')], TextDialog.prototype, "getListStyle", void 0);
|
|
227156
227313
|
|
|
227157
|
-
__decorate([Inject(
|
|
227314
|
+
__decorate([Inject('getListArrSource')], TextDialog.prototype, "getListArrSource", void 0);
|
|
227158
227315
|
|
|
227159
|
-
__decorate([Inject(
|
|
227316
|
+
__decorate([Inject('setListStyle')], TextDialog.prototype, "setListStyle", void 0);
|
|
227160
227317
|
|
|
227161
|
-
__decorate([Inject(
|
|
227318
|
+
__decorate([Inject('getCustomProperty')], TextDialog.prototype, "getCustomProperty", void 0);
|
|
227162
227319
|
|
|
227163
227320
|
TextDialog = __decorate([vue_class_component_esm({
|
|
227164
|
-
name:
|
|
227321
|
+
name: 'TextDialog',
|
|
227165
227322
|
components: {
|
|
227166
227323
|
Tabs: Tab
|
|
227167
227324
|
}
|
|
@@ -227185,8 +227342,8 @@ TextDialog = __decorate([vue_class_component_esm({
|
|
|
227185
227342
|
|
|
227186
227343
|
var TextDialog_component = normalizeComponent(
|
|
227187
227344
|
textDialog_TextDialogvue_type_script_lang_ts_,
|
|
227188
|
-
|
|
227189
|
-
|
|
227345
|
+
TextDialogvue_type_template_id_52be23a2_render,
|
|
227346
|
+
TextDialogvue_type_template_id_52be23a2_staticRenderFns,
|
|
227190
227347
|
false,
|
|
227191
227348
|
null,
|
|
227192
227349
|
null,
|
|
@@ -233162,6 +233319,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233162
233319
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
233163
233320
|
hoEditorFactory && (hoEditorFactory.isEnabledGlobalColor = this.isEnabledGlobalColor);
|
|
233164
233321
|
}
|
|
233322
|
+
}, {
|
|
233323
|
+
key: "isSameColorWithEmptyVlaueChange",
|
|
233324
|
+
value: function isSameColorWithEmptyVlaueChange() {
|
|
233325
|
+
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
233326
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
233327
|
+
hoEditorFactory && (hoEditorFactory.isSameColorWithEmptyVlaue = this.isSameColorWithEmptyVlaue);
|
|
233328
|
+
}
|
|
233165
233329
|
}, {
|
|
233166
233330
|
key: "created",
|
|
233167
233331
|
value: function created() {
|
|
@@ -233213,6 +233377,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233213
233377
|
hoEditor.isUseForm = _this3.isUseForm;
|
|
233214
233378
|
hoEditor.printBlack = _this3.printBlack;
|
|
233215
233379
|
hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
|
|
233380
|
+
hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
|
|
233216
233381
|
hoEditor.contentIsModify = _this3.contentIsModify;
|
|
233217
233382
|
hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
|
|
233218
233383
|
hoEditor.docTree.docProperty = _this3.defaultDocProperty;
|
|
@@ -233592,6 +233757,10 @@ __decorate([Prop({
|
|
|
233592
233757
|
default: false
|
|
233593
233758
|
})], HoDocs.prototype, "isEnabledGlobalColor", void 0);
|
|
233594
233759
|
|
|
233760
|
+
__decorate([Prop({
|
|
233761
|
+
default: false
|
|
233762
|
+
})], HoDocs.prototype, "isSameColorWithEmptyVlaue", void 0);
|
|
233763
|
+
|
|
233595
233764
|
__decorate([Watch('contentIsModify', {
|
|
233596
233765
|
deep: true
|
|
233597
233766
|
})], HoDocs.prototype, "contentIsModifyChange", null);
|
|
@@ -233642,6 +233811,8 @@ __decorate([Watch('printBlack')], HoDocs.prototype, "printBlackChange", null);
|
|
|
233642
233811
|
|
|
233643
233812
|
__decorate([Watch('isEnabledGlobalColor')], HoDocs.prototype, "isEnabledGlobalColorChange", null);
|
|
233644
233813
|
|
|
233814
|
+
__decorate([Watch('isSameColorWithEmptyVlaue')], HoDocs.prototype, "isSameColorWithEmptyVlaueChange", null);
|
|
233815
|
+
|
|
233645
233816
|
HoDocs = __decorate([vue_class_component_esm({
|
|
233646
233817
|
name: 'HoDocs',
|
|
233647
233818
|
components: {
|