hoeditor-web 2.0.82 → 2.0.83
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 +133 -68
- package/lib/hoeditor.css +2 -826
- package/lib/hoeditor.umd.js +133 -68
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -11958,7 +11958,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11958
11958
|
|
|
11959
11959
|
/***/ }),
|
|
11960
11960
|
|
|
11961
|
-
/***/
|
|
11961
|
+
/***/ 89496:
|
|
11962
11962
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11963
11963
|
|
|
11964
11964
|
"use strict";
|
|
@@ -11970,7 +11970,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11970
11970
|
"default": function() { return /* binding */ TableColProperty; }
|
|
11971
11971
|
});
|
|
11972
11972
|
|
|
11973
|
-
;// 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/table/TableColProperty.vue?vue&type=template&id=
|
|
11973
|
+
;// 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/table/TableColProperty.vue?vue&type=template&id=9e2ca066&
|
|
11974
11974
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_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('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyWidth),callback:function ($$v) {_vm.isSpecifyWidth=$$v},expression:"isSpecifyWidth"}},[_vm._v("指定宽度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyWidth,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示宽度 "+_vm._s(_vm.colWidth)+" 厘米")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("垂直对齐方式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"垂直对齐方式","size":"mini"},model:{value:(_vm.align),callback:function ($$v) {_vm.align=$$v},expression:"align"}},[_c('el-option',{attrs:{"label":"靠上","value":0}}),_c('el-option',{attrs:{"label":"居中","value":1}}),_c('el-option',{attrs:{"label":"靠下","value":2}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编辑器属性")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"编辑器属性","size":"mini"},on:{"change":_vm.editorPropertyChange},model:{value:(_vm.editorProperty),callback:function ($$v) {_vm.editorProperty=$$v},expression:"editorProperty"}},[_c('el-option',{attrs:{"label":"无","value":0}}),_c('el-option',{attrs:{"label":"下拉列表","value":1}}),_c('el-option',{attrs:{"label":"日期","value":2}}),_c('el-option',{attrs:{"label":"数值","value":3}})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.splitCharacter),callback:function ($$v) {_vm.splitCharacter=$$v},expression:"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":"-"}})],1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.allowMultiSelected),callback:function ($$v) {_vm.allowMultiSelected=$$v},expression:"allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAllowDel),callback:function ($$v) {_vm.isAllowDel=$$v},expression:"isAllowDel"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.canModifyContent),callback:function ($$v) {_vm.canModifyContent=$$v},expression:"canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listItems,"max-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":"small"},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":"small"},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',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return (scope.$index !== _vm.listItems.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("删除")])]:undefined}}],null,true)})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期格式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.inputStyle),callback:function ($$v) {_vm.inputStyle=$$v},expression:"inputStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 3),expression:"editorProperty === 3"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最小值")]),_c('el-input-number',{attrs:{"size":"mini","max":Number(_vm.maxNumVal),"min":0,"step":10,"controls":false},model:{value:(_vm.minNumVal),callback:function ($$v) {_vm.minNumVal=$$v},expression:"minNumVal"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最大值")]),_c('el-input-number',{attrs:{"size":"mini","min":Number(_vm.minNumVal),"step":10,"controls":false},model:{value:(_vm.maxNumVal),callback:function ($$v) {_vm.maxNumVal=$$v},expression:"maxNumVal"}})],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)])}
|
|
11975
11975
|
var staticRenderFns = []
|
|
11976
11976
|
|
|
@@ -12171,6 +12171,7 @@ var getCellNode = __webpack_require__(86257);
|
|
|
12171
12171
|
//
|
|
12172
12172
|
//
|
|
12173
12173
|
//
|
|
12174
|
+
//
|
|
12174
12175
|
|
|
12175
12176
|
|
|
12176
12177
|
|
|
@@ -16394,6 +16395,8 @@ var Caret = /*#__PURE__*/function () {
|
|
|
16394
16395
|
}, {
|
|
16395
16396
|
key: "moveTo",
|
|
16396
16397
|
value: function moveTo(pageIndex, x, y) {
|
|
16398
|
+
var _this = this;
|
|
16399
|
+
|
|
16397
16400
|
this.div_cursor.className = "";
|
|
16398
16401
|
this.x = x;
|
|
16399
16402
|
this.y = y;
|
|
@@ -16407,10 +16410,13 @@ var Caret = /*#__PURE__*/function () {
|
|
|
16407
16410
|
|
|
16408
16411
|
this.div_cursor.style.left = x + "px";
|
|
16409
16412
|
this.div_cursor.style.top = y + "px";
|
|
16410
|
-
this.div_cursor.style.opacity = "1";
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16413
|
+
this.div_cursor.style.opacity = "1"; // this.div_cursor.style.width = "0.1px";
|
|
16414
|
+
|
|
16415
|
+
setTimeout(function () {
|
|
16416
|
+
_this.updateCaret();
|
|
16417
|
+
|
|
16418
|
+
_this.setPage(pageIndex);
|
|
16419
|
+
}, 300);
|
|
16414
16420
|
}
|
|
16415
16421
|
}]);
|
|
16416
16422
|
|
|
@@ -34839,6 +34845,7 @@ var EditorProperty;
|
|
|
34839
34845
|
EditorProperty[EditorProperty["DownList"] = 1] = "DownList";
|
|
34840
34846
|
EditorProperty[EditorProperty["DateTime"] = 2] = "DateTime";
|
|
34841
34847
|
EditorProperty[EditorProperty["Number"] = 3] = "Number";
|
|
34848
|
+
EditorProperty[EditorProperty["Sign"] = 4] = "Sign";
|
|
34842
34849
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值}
|
|
34843
34850
|
|
|
34844
34851
|
|
|
@@ -48546,23 +48553,31 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48546
48553
|
if (row >= 0 && col >= 0) {
|
|
48547
48554
|
var cell = table.rows[row][col];
|
|
48548
48555
|
|
|
48549
|
-
if (cell) {
|
|
48550
|
-
var scoreText = cell.getCellText();
|
|
48556
|
+
if (cell && cell.childNodes[1] instanceof TableFormula) {
|
|
48557
|
+
var tableFormular = cell.childNodes[1]; //const scoreText = cell.getCellText();
|
|
48551
48558
|
|
|
48552
|
-
|
|
48553
|
-
var score = Number(scoreText);
|
|
48559
|
+
var scoreText = tableFormular.text;
|
|
48554
48560
|
|
|
48555
|
-
|
|
48556
|
-
|
|
48557
|
-
|
|
48558
|
-
var range = item.range.split('-');
|
|
48559
|
-
var from = Number(range[0]);
|
|
48560
|
-
var to = Number(range[1]);
|
|
48561
|
+
if (scoreText == "" || scoreText == " ") {
|
|
48562
|
+
return strRet;
|
|
48563
|
+
}
|
|
48561
48564
|
|
|
48562
|
-
|
|
48563
|
-
|
|
48564
|
-
|
|
48565
|
-
|
|
48565
|
+
if (tableFormular.hideZero && (scoreText == "0" || scoreText == "0.00")) {
|
|
48566
|
+
return strRet;
|
|
48567
|
+
}
|
|
48568
|
+
|
|
48569
|
+
var score = Number(scoreText);
|
|
48570
|
+
|
|
48571
|
+
if (items.length > 0) {
|
|
48572
|
+
for (var i = 0; i < items.length; i++) {
|
|
48573
|
+
var item = items[i];
|
|
48574
|
+
var range = item.range.split('-');
|
|
48575
|
+
var from = Number(range[0]);
|
|
48576
|
+
var to = Number(range[1]);
|
|
48577
|
+
|
|
48578
|
+
if (score >= from && score <= to) {
|
|
48579
|
+
strRet = item.text;
|
|
48580
|
+
return strRet;
|
|
48566
48581
|
}
|
|
48567
48582
|
}
|
|
48568
48583
|
}
|
|
@@ -65388,10 +65403,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65388
65403
|
};
|
|
65389
65404
|
|
|
65390
65405
|
fingerImage.onload = function () {
|
|
65391
|
-
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
65406
|
+
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height; // 存在自定义指纹图片高度时
|
|
65407
|
+
|
|
65408
|
+
if (hoEditorFactory.patientFingerHeight != 0) {
|
|
65409
|
+
fingerscale = hoEditorFactory.patientFingerHeight / fingerHeight;
|
|
65410
|
+
}
|
|
65411
|
+
|
|
65392
65412
|
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
65393
65413
|
fingerBitmap.x = 0;
|
|
65394
65414
|
node.imgHeight = fingerHeight * fingerscale;
|
|
65415
|
+
node.imgWidth = fingerWidth * fingerscale;
|
|
65416
|
+
_this2._dWidth = node.imgWidth;
|
|
65395
65417
|
_this2._dHeight = node.imgHeight;
|
|
65396
65418
|
node.type = 3;
|
|
65397
65419
|
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
@@ -65438,6 +65460,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65438
65460
|
|
|
65439
65461
|
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
65440
65462
|
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
65463
|
+
} // 存在自定义签字图片高度时
|
|
65464
|
+
|
|
65465
|
+
|
|
65466
|
+
if (hoEditorFactory.patientSignHeight != 0) {
|
|
65467
|
+
scale = hoEditorFactory.patientSignHeight / hitHeight;
|
|
65441
65468
|
}
|
|
65442
65469
|
|
|
65443
65470
|
_this2._dWidth = hitWidth * scale;
|
|
@@ -65450,6 +65477,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65450
65477
|
|
|
65451
65478
|
if (fingerWidth !== 256) {
|
|
65452
65479
|
fingerscale = 1;
|
|
65480
|
+
} // 存在自定义指纹图片高度时
|
|
65481
|
+
|
|
65482
|
+
|
|
65483
|
+
if (hoEditorFactory.patientFingerHeight != 0) {
|
|
65484
|
+
fingerscale = hoEditorFactory.patientFingerHeight / fingerHeight;
|
|
65453
65485
|
}
|
|
65454
65486
|
|
|
65455
65487
|
_fingerBitmap.scaleX = fingerscale;
|
|
@@ -65517,7 +65549,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65517
65549
|
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftFoot */ .pi.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
65518
65550
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
65519
65551
|
}
|
|
65520
|
-
} // hoEditorFactory.
|
|
65552
|
+
} // hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
65521
65553
|
|
|
65522
65554
|
|
|
65523
65555
|
hoEditorFactory.drawTree.rebuildArea('main', false);
|
|
@@ -212112,7 +212144,7 @@ var map = {
|
|
|
212112
212144
|
"./sign/Sign.vue": 33119,
|
|
212113
212145
|
"./table/TableCellPoper.vue": 29434,
|
|
212114
212146
|
"./table/TableCellProperty.vue": 45703,
|
|
212115
|
-
"./table/TableColProperty.vue":
|
|
212147
|
+
"./table/TableColProperty.vue": 89496,
|
|
212116
212148
|
"./table/TableProperty.vue": 59387,
|
|
212117
212149
|
"./table/TableRowProperty.vue": 33224,
|
|
212118
212150
|
"./textDialog/TextDialog.vue": 77367,
|
|
@@ -213629,7 +213661,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213629
213661
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213630
213662
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
213631
213663
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213632
|
-
;// 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=
|
|
213664
|
+
;// 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=144172f5&
|
|
213633
213665
|
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()}
|
|
213634
213666
|
var staticRenderFns = []
|
|
213635
213667
|
|
|
@@ -213656,9 +213688,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213656
213688
|
var es_number_constructor = __webpack_require__(9653);
|
|
213657
213689
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213658
213690
|
var es_json_stringify = __webpack_require__(38862);
|
|
213659
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
213660
|
-
var
|
|
213661
|
-
var
|
|
213691
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=5af72bf0&
|
|
213692
|
+
var HoDocvue_type_template_id_5af72bf0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
213693
|
+
var HoDocvue_type_template_id_5af72bf0_staticRenderFns = []
|
|
213662
213694
|
|
|
213663
213695
|
|
|
213664
213696
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -214103,10 +214135,10 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
214103
214135
|
case 43:
|
|
214104
214136
|
colProperty = colInfos.colProperty;
|
|
214105
214137
|
|
|
214106
|
-
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
214138
|
+
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList || colProperty.editorProperty === TableProperty/* EditorProperty.Sign */.YS.Sign) {
|
|
214107
214139
|
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
214108
214140
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent);
|
|
214109
|
-
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
214141
|
+
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.Sign */.YS.Sign) {
|
|
214110
214142
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
214111
214143
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
214112
214144
|
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
@@ -216980,7 +217012,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
216980
217012
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
216981
217013
|
var ParagraphNode = __webpack_require__(14208);
|
|
216982
217014
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
216983
|
-
/* harmony default export */ var version = ('2.0.
|
|
217015
|
+
/* harmony default export */ var version = ('2.0.83');
|
|
216984
217016
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
216985
217017
|
var PoperTipText = __webpack_require__(72388);
|
|
216986
217018
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217576,6 +217608,16 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217576
217608
|
}
|
|
217577
217609
|
}
|
|
217578
217610
|
|
|
217611
|
+
if (colProperty.editorProperty === 4) {
|
|
217612
|
+
this.$emit('dblNodeClick', {
|
|
217613
|
+
node: null,
|
|
217614
|
+
type: 'table-sign'
|
|
217615
|
+
});
|
|
217616
|
+
isCreatePoper = false;
|
|
217617
|
+
this.poperType = '';
|
|
217618
|
+
return;
|
|
217619
|
+
}
|
|
217620
|
+
|
|
217579
217621
|
if (isCreatePoper) {
|
|
217580
217622
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
217581
217623
|
this.nodeValue = node.text;
|
|
@@ -217707,8 +217749,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217707
217749
|
|
|
217708
217750
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
217709
217751
|
components_HoDocvue_type_script_lang_js_,
|
|
217710
|
-
|
|
217711
|
-
|
|
217752
|
+
HoDocvue_type_template_id_5af72bf0_render,
|
|
217753
|
+
HoDocvue_type_template_id_5af72bf0_staticRenderFns,
|
|
217712
217754
|
false,
|
|
217713
217755
|
null,
|
|
217714
217756
|
null,
|
|
@@ -234814,8 +234856,27 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234814
234856
|
if (this._signHeight !== value) {
|
|
234815
234857
|
this._signHeight = value;
|
|
234816
234858
|
}
|
|
234817
|
-
}
|
|
234818
|
-
|
|
234859
|
+
}
|
|
234860
|
+
}, {
|
|
234861
|
+
key: "patientSignHeight",
|
|
234862
|
+
get: function get() {
|
|
234863
|
+
return this._patientSignHeight;
|
|
234864
|
+
},
|
|
234865
|
+
set: function set(value) {
|
|
234866
|
+
if (this._patientSignHeight !== value) {
|
|
234867
|
+
this._patientSignHeight = value;
|
|
234868
|
+
}
|
|
234869
|
+
}
|
|
234870
|
+
}, {
|
|
234871
|
+
key: "patientFingerHeight",
|
|
234872
|
+
get: function get() {
|
|
234873
|
+
return this._patientFingerHeight;
|
|
234874
|
+
},
|
|
234875
|
+
set: function set(value) {
|
|
234876
|
+
if (this._patientFingerHeight !== value) {
|
|
234877
|
+
this._patientFingerHeight = value;
|
|
234878
|
+
}
|
|
234879
|
+
}
|
|
234819
234880
|
}, {
|
|
234820
234881
|
key: "pasteBase",
|
|
234821
234882
|
get: function get() {
|
|
@@ -236604,16 +236665,20 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236604
236665
|
}
|
|
236605
236666
|
}
|
|
236606
236667
|
},
|
|
236607
|
-
provide: {
|
|
236608
|
-
|
|
236609
|
-
|
|
236610
|
-
|
|
236611
|
-
|
|
236612
|
-
|
|
236613
|
-
|
|
236668
|
+
provide: function provide() {
|
|
236669
|
+
var _this2 = this;
|
|
236670
|
+
|
|
236671
|
+
return {
|
|
236672
|
+
getCustomProperty: function getCustomProperty() {
|
|
236673
|
+
return _this2.customProperty;
|
|
236674
|
+
},
|
|
236675
|
+
getParagraphCustomProperty: function getParagraphCustomProperty() {
|
|
236676
|
+
return _this2.paragraphCustomProperty;
|
|
236677
|
+
}
|
|
236678
|
+
};
|
|
236614
236679
|
},
|
|
236615
236680
|
created: function created() {
|
|
236616
|
-
var
|
|
236681
|
+
var _this3 = this;
|
|
236617
236682
|
|
|
236618
236683
|
// 禁掉默认的左键菜单
|
|
236619
236684
|
window.oncontextmenu = function (e) {
|
|
@@ -236621,19 +236686,19 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236621
236686
|
};
|
|
236622
236687
|
|
|
236623
236688
|
this.$nextTick(function () {
|
|
236624
|
-
if (
|
|
236689
|
+
if (_this3.editJson && _this3.editJson.findModal) {
|
|
236625
236690
|
document.onkeydown = function (event) {
|
|
236626
236691
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
236627
236692
|
var ctrlKey = event.ctrlKey || event.metaKey; // ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
236628
236693
|
|
|
236629
236694
|
if (ctrlKey && keyCode === 70) {
|
|
236630
236695
|
event.preventDefault();
|
|
236631
|
-
|
|
236696
|
+
_this3.controlFindType = !_this3.controlFindType;
|
|
236632
236697
|
} // esc快捷键 自动关闭查询替换弹窗
|
|
236633
236698
|
|
|
236634
236699
|
|
|
236635
236700
|
if (keyCode === 27) {
|
|
236636
|
-
|
|
236701
|
+
_this3.controlFindType = false;
|
|
236637
236702
|
}
|
|
236638
236703
|
};
|
|
236639
236704
|
}
|
|
@@ -236643,28 +236708,28 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236643
236708
|
var id = (0,util/* generateID */.y)('HO');
|
|
236644
236709
|
var hoEditor = new HOEditorFactory(id);
|
|
236645
236710
|
|
|
236646
|
-
|
|
236711
|
+
_this3.hoEditorFactoryIdList.push(id);
|
|
236647
236712
|
|
|
236648
|
-
if (Array.isArray(
|
|
236649
|
-
hoEditor.superiorSigns = (0,toConsumableArray/* default */.Z)(
|
|
236713
|
+
if (Array.isArray(_this3.superiorSigns) && _this3.superiorSigns.length > 0) {
|
|
236714
|
+
hoEditor.superiorSigns = (0,toConsumableArray/* default */.Z)(_this3.superiorSigns);
|
|
236650
236715
|
}
|
|
236651
236716
|
|
|
236652
|
-
if (
|
|
236717
|
+
if (_this3.isFixedPrintToA4 === true) {
|
|
236653
236718
|
hoEditor.isFixedPrintToA4 = '1';
|
|
236654
|
-
} else if (
|
|
236719
|
+
} else if (_this3.isFixedPrintToA4 === false) {
|
|
236655
236720
|
hoEditor.isFixedPrintToA4 = '';
|
|
236656
236721
|
} else {
|
|
236657
|
-
hoEditor.isFixedPrintToA4 =
|
|
236722
|
+
hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
|
|
236658
236723
|
}
|
|
236659
236724
|
|
|
236660
|
-
hoEditor.isUseImagePrint =
|
|
236661
|
-
hoEditor.isUseForm =
|
|
236662
|
-
hoEditor.printBlack =
|
|
236663
|
-
hoEditor.isEnabledGlobalColor =
|
|
236664
|
-
hoEditor.isSameColorWithEmptyVlaue =
|
|
236665
|
-
hoEditor.contentIsModify =
|
|
236666
|
-
hoEditor.isCanEditHeadFoot =
|
|
236667
|
-
hoEditor.docTree.docProperty =
|
|
236725
|
+
hoEditor.isUseImagePrint = _this3.isUseImagePrint;
|
|
236726
|
+
hoEditor.isUseForm = _this3.isUseForm;
|
|
236727
|
+
hoEditor.printBlack = _this3.printBlack;
|
|
236728
|
+
hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
|
|
236729
|
+
hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
|
|
236730
|
+
hoEditor.contentIsModify = _this3.contentIsModify;
|
|
236731
|
+
hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
|
|
236732
|
+
hoEditor.docTree.docProperty = _this3.defaultDocProperty;
|
|
236668
236733
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
236669
236734
|
}); // 监听编辑器删除的url图片节点变化
|
|
236670
236735
|
|
|
@@ -236673,7 +236738,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236673
236738
|
|
|
236674
236739
|
this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
|
|
236675
236740
|
this.$nextTick(function () {
|
|
236676
|
-
if (
|
|
236741
|
+
if (_this3.pageProperty) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
|
|
236677
236742
|
});
|
|
236678
236743
|
},
|
|
236679
236744
|
methods: {
|
|
@@ -236681,7 +236746,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236681
236746
|
* 右键菜单触发
|
|
236682
236747
|
*/
|
|
236683
236748
|
rightClickEvent: function rightClickEvent(rightPosition) {
|
|
236684
|
-
var
|
|
236749
|
+
var _this4 = this;
|
|
236685
236750
|
|
|
236686
236751
|
var nodeInfoes = this.getRightClickNodeValue();
|
|
236687
236752
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
@@ -236692,7 +236757,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236692
236757
|
nodeInfoes.labelNode = function () {
|
|
236693
236758
|
var labelNode = [];
|
|
236694
236759
|
var isIncludes = '';
|
|
236695
|
-
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(
|
|
236760
|
+
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.activeDocId);
|
|
236696
236761
|
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
236697
236762
|
|
|
236698
236763
|
if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
|
|
@@ -236704,7 +236769,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236704
236769
|
isIncludes = 'toLabel';
|
|
236705
236770
|
var startPath = currentDomRange.startPath;
|
|
236706
236771
|
var endPath = currentDomRange.endPath;
|
|
236707
|
-
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(
|
|
236772
|
+
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this4.activeDocId, startPath, endPath, true)[0];
|
|
236708
236773
|
|
|
236709
236774
|
if (selectNodes.length > 0) {
|
|
236710
236775
|
selectNodes.forEach(function (v) {
|
|
@@ -236755,7 +236820,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236755
236820
|
nodeInfoes.getParagraphNode = function () {
|
|
236756
236821
|
var _hoEditorFactory$vueC;
|
|
236757
236822
|
|
|
236758
|
-
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(
|
|
236823
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(_this4.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
236759
236824
|
|
|
236760
236825
|
if (node) {
|
|
236761
236826
|
return hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
@@ -236772,7 +236837,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236772
236837
|
* 初始化事件
|
|
236773
236838
|
*/
|
|
236774
236839
|
initListener: function initListener() {
|
|
236775
|
-
var
|
|
236840
|
+
var _this5 = this;
|
|
236776
236841
|
|
|
236777
236842
|
// 禁掉默认的左键菜单
|
|
236778
236843
|
window.oncontextmenu = function (e) {
|
|
@@ -236780,19 +236845,19 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236780
236845
|
};
|
|
236781
236846
|
|
|
236782
236847
|
this.$nextTick(function () {
|
|
236783
|
-
if (
|
|
236848
|
+
if (_this5.editJson.findModal) {
|
|
236784
236849
|
document.onkeydown = function (event) {
|
|
236785
236850
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
236786
236851
|
var ctrlKey = event.ctrlKey || event.metaKey; // ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
236787
236852
|
|
|
236788
236853
|
if (ctrlKey && keyCode === 70) {
|
|
236789
236854
|
event.preventDefault();
|
|
236790
|
-
|
|
236855
|
+
_this5.controlFindType = !_this5.controlFindType;
|
|
236791
236856
|
} // esc快捷键 自动关闭查询替换弹窗
|
|
236792
236857
|
|
|
236793
236858
|
|
|
236794
236859
|
if (keyCode === 27) {
|
|
236795
|
-
|
|
236860
|
+
_this5.controlFindType = false;
|
|
236796
236861
|
}
|
|
236797
236862
|
};
|
|
236798
236863
|
}
|