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.umd.js
CHANGED
|
@@ -11968,7 +11968,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11968
11968
|
|
|
11969
11969
|
/***/ }),
|
|
11970
11970
|
|
|
11971
|
-
/***/
|
|
11971
|
+
/***/ 73820:
|
|
11972
11972
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11973
11973
|
|
|
11974
11974
|
"use strict";
|
|
@@ -11980,7 +11980,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11980
11980
|
"default": function() { return /* binding */ TableColProperty; }
|
|
11981
11981
|
});
|
|
11982
11982
|
|
|
11983
|
-
;// 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=
|
|
11983
|
+
;// 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&
|
|
11984
11984
|
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)])}
|
|
11985
11985
|
var staticRenderFns = []
|
|
11986
11986
|
|
|
@@ -12181,6 +12181,7 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12181
12181
|
//
|
|
12182
12182
|
//
|
|
12183
12183
|
//
|
|
12184
|
+
//
|
|
12184
12185
|
|
|
12185
12186
|
|
|
12186
12187
|
|
|
@@ -16404,6 +16405,8 @@ var Caret = /*#__PURE__*/function () {
|
|
|
16404
16405
|
}, {
|
|
16405
16406
|
key: "moveTo",
|
|
16406
16407
|
value: function moveTo(pageIndex, x, y) {
|
|
16408
|
+
var _this = this;
|
|
16409
|
+
|
|
16407
16410
|
this.div_cursor.className = "";
|
|
16408
16411
|
this.x = x;
|
|
16409
16412
|
this.y = y;
|
|
@@ -16417,10 +16420,13 @@ var Caret = /*#__PURE__*/function () {
|
|
|
16417
16420
|
|
|
16418
16421
|
this.div_cursor.style.left = x + "px";
|
|
16419
16422
|
this.div_cursor.style.top = y + "px";
|
|
16420
|
-
this.div_cursor.style.opacity = "1";
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
|
|
16423
|
+
this.div_cursor.style.opacity = "1"; // this.div_cursor.style.width = "0.1px";
|
|
16424
|
+
|
|
16425
|
+
setTimeout(function () {
|
|
16426
|
+
_this.updateCaret();
|
|
16427
|
+
|
|
16428
|
+
_this.setPage(pageIndex);
|
|
16429
|
+
}, 300);
|
|
16424
16430
|
}
|
|
16425
16431
|
}]);
|
|
16426
16432
|
|
|
@@ -34849,6 +34855,7 @@ var EditorProperty;
|
|
|
34849
34855
|
EditorProperty[EditorProperty["DownList"] = 1] = "DownList";
|
|
34850
34856
|
EditorProperty[EditorProperty["DateTime"] = 2] = "DateTime";
|
|
34851
34857
|
EditorProperty[EditorProperty["Number"] = 3] = "Number";
|
|
34858
|
+
EditorProperty[EditorProperty["Sign"] = 4] = "Sign";
|
|
34852
34859
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值}
|
|
34853
34860
|
|
|
34854
34861
|
|
|
@@ -48556,23 +48563,31 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48556
48563
|
if (row >= 0 && col >= 0) {
|
|
48557
48564
|
var cell = table.rows[row][col];
|
|
48558
48565
|
|
|
48559
|
-
if (cell) {
|
|
48560
|
-
var scoreText = cell.getCellText();
|
|
48566
|
+
if (cell && cell.childNodes[1] instanceof TableFormula) {
|
|
48567
|
+
var tableFormular = cell.childNodes[1]; //const scoreText = cell.getCellText();
|
|
48561
48568
|
|
|
48562
|
-
|
|
48563
|
-
var score = Number(scoreText);
|
|
48569
|
+
var scoreText = tableFormular.text;
|
|
48564
48570
|
|
|
48565
|
-
|
|
48566
|
-
|
|
48567
|
-
|
|
48568
|
-
var range = item.range.split('-');
|
|
48569
|
-
var from = Number(range[0]);
|
|
48570
|
-
var to = Number(range[1]);
|
|
48571
|
+
if (scoreText == "" || scoreText == " ") {
|
|
48572
|
+
return strRet;
|
|
48573
|
+
}
|
|
48571
48574
|
|
|
48572
|
-
|
|
48573
|
-
|
|
48574
|
-
|
|
48575
|
-
|
|
48575
|
+
if (tableFormular.hideZero && (scoreText == "0" || scoreText == "0.00")) {
|
|
48576
|
+
return strRet;
|
|
48577
|
+
}
|
|
48578
|
+
|
|
48579
|
+
var score = Number(scoreText);
|
|
48580
|
+
|
|
48581
|
+
if (items.length > 0) {
|
|
48582
|
+
for (var i = 0; i < items.length; i++) {
|
|
48583
|
+
var item = items[i];
|
|
48584
|
+
var range = item.range.split('-');
|
|
48585
|
+
var from = Number(range[0]);
|
|
48586
|
+
var to = Number(range[1]);
|
|
48587
|
+
|
|
48588
|
+
if (score >= from && score <= to) {
|
|
48589
|
+
strRet = item.text;
|
|
48590
|
+
return strRet;
|
|
48576
48591
|
}
|
|
48577
48592
|
}
|
|
48578
48593
|
}
|
|
@@ -65398,10 +65413,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65398
65413
|
};
|
|
65399
65414
|
|
|
65400
65415
|
fingerImage.onload = function () {
|
|
65401
|
-
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
65416
|
+
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height; // 存在自定义指纹图片高度时
|
|
65417
|
+
|
|
65418
|
+
if (hoEditorFactory.patientFingerHeight != 0) {
|
|
65419
|
+
fingerscale = hoEditorFactory.patientFingerHeight / fingerHeight;
|
|
65420
|
+
}
|
|
65421
|
+
|
|
65402
65422
|
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
65403
65423
|
fingerBitmap.x = 0;
|
|
65404
65424
|
node.imgHeight = fingerHeight * fingerscale;
|
|
65425
|
+
node.imgWidth = fingerWidth * fingerscale;
|
|
65426
|
+
_this2._dWidth = node.imgWidth;
|
|
65405
65427
|
_this2._dHeight = node.imgHeight;
|
|
65406
65428
|
node.type = 3;
|
|
65407
65429
|
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
@@ -65448,6 +65470,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65448
65470
|
|
|
65449
65471
|
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
65450
65472
|
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
65473
|
+
} // 存在自定义签字图片高度时
|
|
65474
|
+
|
|
65475
|
+
|
|
65476
|
+
if (hoEditorFactory.patientSignHeight != 0) {
|
|
65477
|
+
scale = hoEditorFactory.patientSignHeight / hitHeight;
|
|
65451
65478
|
}
|
|
65452
65479
|
|
|
65453
65480
|
_this2._dWidth = hitWidth * scale;
|
|
@@ -65460,6 +65487,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65460
65487
|
|
|
65461
65488
|
if (fingerWidth !== 256) {
|
|
65462
65489
|
fingerscale = 1;
|
|
65490
|
+
} // 存在自定义指纹图片高度时
|
|
65491
|
+
|
|
65492
|
+
|
|
65493
|
+
if (hoEditorFactory.patientFingerHeight != 0) {
|
|
65494
|
+
fingerscale = hoEditorFactory.patientFingerHeight / fingerHeight;
|
|
65463
65495
|
}
|
|
65464
65496
|
|
|
65465
65497
|
_fingerBitmap.scaleX = fingerscale;
|
|
@@ -65527,7 +65559,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65527
65559
|
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftFoot */ .pi.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
65528
65560
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
65529
65561
|
}
|
|
65530
|
-
} // hoEditorFactory.
|
|
65562
|
+
} // hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
65531
65563
|
|
|
65532
65564
|
|
|
65533
65565
|
hoEditorFactory.drawTree.rebuildArea('main', false);
|
|
@@ -212122,7 +212154,7 @@ var map = {
|
|
|
212122
212154
|
"./sign/Sign.vue": 43733,
|
|
212123
212155
|
"./table/TableCellPoper.vue": 17894,
|
|
212124
212156
|
"./table/TableCellProperty.vue": 73075,
|
|
212125
|
-
"./table/TableColProperty.vue":
|
|
212157
|
+
"./table/TableColProperty.vue": 73820,
|
|
212126
212158
|
"./table/TableProperty.vue": 1364,
|
|
212127
212159
|
"./table/TableRowProperty.vue": 45462,
|
|
212128
212160
|
"./textDialog/TextDialog.vue": 97892,
|
|
@@ -213639,7 +213671,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213639
213671
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213640
213672
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
213641
213673
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213642
|
-
;// 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=
|
|
213674
|
+
;// 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&
|
|
213643
213675
|
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()}
|
|
213644
213676
|
var staticRenderFns = []
|
|
213645
213677
|
|
|
@@ -213666,9 +213698,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213666
213698
|
var es_number_constructor = __webpack_require__(9653);
|
|
213667
213699
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213668
213700
|
var es_json_stringify = __webpack_require__(38862);
|
|
213669
|
-
;// 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=
|
|
213670
|
-
var
|
|
213671
|
-
var
|
|
213701
|
+
;// 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&
|
|
213702
|
+
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)}
|
|
213703
|
+
var HoDocvue_type_template_id_5af72bf0_staticRenderFns = []
|
|
213672
213704
|
|
|
213673
213705
|
|
|
213674
213706
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -214113,10 +214145,10 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
214113
214145
|
case 43:
|
|
214114
214146
|
colProperty = colInfos.colProperty;
|
|
214115
214147
|
|
|
214116
|
-
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
214148
|
+
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList || colProperty.editorProperty === TableProperty/* EditorProperty.Sign */.YS.Sign) {
|
|
214117
214149
|
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
214118
214150
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent);
|
|
214119
|
-
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
214151
|
+
} 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) {
|
|
214120
214152
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
214121
214153
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
214122
214154
|
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
@@ -216990,7 +217022,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
216990
217022
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
216991
217023
|
var ParagraphNode = __webpack_require__(13880);
|
|
216992
217024
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
216993
|
-
/* harmony default export */ var version = ('2.0.
|
|
217025
|
+
/* harmony default export */ var version = ('2.0.83');
|
|
216994
217026
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
216995
217027
|
var PoperTipText = __webpack_require__(19707);
|
|
216996
217028
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217586,6 +217618,16 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217586
217618
|
}
|
|
217587
217619
|
}
|
|
217588
217620
|
|
|
217621
|
+
if (colProperty.editorProperty === 4) {
|
|
217622
|
+
this.$emit('dblNodeClick', {
|
|
217623
|
+
node: null,
|
|
217624
|
+
type: 'table-sign'
|
|
217625
|
+
});
|
|
217626
|
+
isCreatePoper = false;
|
|
217627
|
+
this.poperType = '';
|
|
217628
|
+
return;
|
|
217629
|
+
}
|
|
217630
|
+
|
|
217589
217631
|
if (isCreatePoper) {
|
|
217590
217632
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
217591
217633
|
this.nodeValue = node.text;
|
|
@@ -217717,8 +217759,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217717
217759
|
|
|
217718
217760
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
217719
217761
|
components_HoDocvue_type_script_lang_js_,
|
|
217720
|
-
|
|
217721
|
-
|
|
217762
|
+
HoDocvue_type_template_id_5af72bf0_render,
|
|
217763
|
+
HoDocvue_type_template_id_5af72bf0_staticRenderFns,
|
|
217722
217764
|
false,
|
|
217723
217765
|
null,
|
|
217724
217766
|
null,
|
|
@@ -234824,8 +234866,27 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234824
234866
|
if (this._signHeight !== value) {
|
|
234825
234867
|
this._signHeight = value;
|
|
234826
234868
|
}
|
|
234827
|
-
}
|
|
234828
|
-
|
|
234869
|
+
}
|
|
234870
|
+
}, {
|
|
234871
|
+
key: "patientSignHeight",
|
|
234872
|
+
get: function get() {
|
|
234873
|
+
return this._patientSignHeight;
|
|
234874
|
+
},
|
|
234875
|
+
set: function set(value) {
|
|
234876
|
+
if (this._patientSignHeight !== value) {
|
|
234877
|
+
this._patientSignHeight = value;
|
|
234878
|
+
}
|
|
234879
|
+
}
|
|
234880
|
+
}, {
|
|
234881
|
+
key: "patientFingerHeight",
|
|
234882
|
+
get: function get() {
|
|
234883
|
+
return this._patientFingerHeight;
|
|
234884
|
+
},
|
|
234885
|
+
set: function set(value) {
|
|
234886
|
+
if (this._patientFingerHeight !== value) {
|
|
234887
|
+
this._patientFingerHeight = value;
|
|
234888
|
+
}
|
|
234889
|
+
}
|
|
234829
234890
|
}, {
|
|
234830
234891
|
key: "pasteBase",
|
|
234831
234892
|
get: function get() {
|
|
@@ -236614,16 +236675,20 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236614
236675
|
}
|
|
236615
236676
|
}
|
|
236616
236677
|
},
|
|
236617
|
-
provide: {
|
|
236618
|
-
|
|
236619
|
-
|
|
236620
|
-
|
|
236621
|
-
|
|
236622
|
-
|
|
236623
|
-
|
|
236678
|
+
provide: function provide() {
|
|
236679
|
+
var _this2 = this;
|
|
236680
|
+
|
|
236681
|
+
return {
|
|
236682
|
+
getCustomProperty: function getCustomProperty() {
|
|
236683
|
+
return _this2.customProperty;
|
|
236684
|
+
},
|
|
236685
|
+
getParagraphCustomProperty: function getParagraphCustomProperty() {
|
|
236686
|
+
return _this2.paragraphCustomProperty;
|
|
236687
|
+
}
|
|
236688
|
+
};
|
|
236624
236689
|
},
|
|
236625
236690
|
created: function created() {
|
|
236626
|
-
var
|
|
236691
|
+
var _this3 = this;
|
|
236627
236692
|
|
|
236628
236693
|
// 禁掉默认的左键菜单
|
|
236629
236694
|
window.oncontextmenu = function (e) {
|
|
@@ -236631,19 +236696,19 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236631
236696
|
};
|
|
236632
236697
|
|
|
236633
236698
|
this.$nextTick(function () {
|
|
236634
|
-
if (
|
|
236699
|
+
if (_this3.editJson && _this3.editJson.findModal) {
|
|
236635
236700
|
document.onkeydown = function (event) {
|
|
236636
236701
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
236637
236702
|
var ctrlKey = event.ctrlKey || event.metaKey; // ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
236638
236703
|
|
|
236639
236704
|
if (ctrlKey && keyCode === 70) {
|
|
236640
236705
|
event.preventDefault();
|
|
236641
|
-
|
|
236706
|
+
_this3.controlFindType = !_this3.controlFindType;
|
|
236642
236707
|
} // esc快捷键 自动关闭查询替换弹窗
|
|
236643
236708
|
|
|
236644
236709
|
|
|
236645
236710
|
if (keyCode === 27) {
|
|
236646
|
-
|
|
236711
|
+
_this3.controlFindType = false;
|
|
236647
236712
|
}
|
|
236648
236713
|
};
|
|
236649
236714
|
}
|
|
@@ -236653,28 +236718,28 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236653
236718
|
var id = (0,util/* generateID */.y)('HO');
|
|
236654
236719
|
var hoEditor = new HOEditorFactory(id);
|
|
236655
236720
|
|
|
236656
|
-
|
|
236721
|
+
_this3.hoEditorFactoryIdList.push(id);
|
|
236657
236722
|
|
|
236658
|
-
if (Array.isArray(
|
|
236659
|
-
hoEditor.superiorSigns = (0,toConsumableArray/* default */.Z)(
|
|
236723
|
+
if (Array.isArray(_this3.superiorSigns) && _this3.superiorSigns.length > 0) {
|
|
236724
|
+
hoEditor.superiorSigns = (0,toConsumableArray/* default */.Z)(_this3.superiorSigns);
|
|
236660
236725
|
}
|
|
236661
236726
|
|
|
236662
|
-
if (
|
|
236727
|
+
if (_this3.isFixedPrintToA4 === true) {
|
|
236663
236728
|
hoEditor.isFixedPrintToA4 = '1';
|
|
236664
|
-
} else if (
|
|
236729
|
+
} else if (_this3.isFixedPrintToA4 === false) {
|
|
236665
236730
|
hoEditor.isFixedPrintToA4 = '';
|
|
236666
236731
|
} else {
|
|
236667
|
-
hoEditor.isFixedPrintToA4 =
|
|
236732
|
+
hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
|
|
236668
236733
|
}
|
|
236669
236734
|
|
|
236670
|
-
hoEditor.isUseImagePrint =
|
|
236671
|
-
hoEditor.isUseForm =
|
|
236672
|
-
hoEditor.printBlack =
|
|
236673
|
-
hoEditor.isEnabledGlobalColor =
|
|
236674
|
-
hoEditor.isSameColorWithEmptyVlaue =
|
|
236675
|
-
hoEditor.contentIsModify =
|
|
236676
|
-
hoEditor.isCanEditHeadFoot =
|
|
236677
|
-
hoEditor.docTree.docProperty =
|
|
236735
|
+
hoEditor.isUseImagePrint = _this3.isUseImagePrint;
|
|
236736
|
+
hoEditor.isUseForm = _this3.isUseForm;
|
|
236737
|
+
hoEditor.printBlack = _this3.printBlack;
|
|
236738
|
+
hoEditor.isEnabledGlobalColor = _this3.isEnabledGlobalColor;
|
|
236739
|
+
hoEditor.isSameColorWithEmptyVlaue = _this3.isSameColorWithEmptyVlaue;
|
|
236740
|
+
hoEditor.contentIsModify = _this3.contentIsModify;
|
|
236741
|
+
hoEditor.isCanEditHeadFoot = _this3.isCanEditHeadFoot;
|
|
236742
|
+
hoEditor.docTree.docProperty = _this3.defaultDocProperty;
|
|
236678
236743
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
236679
236744
|
}); // 监听编辑器删除的url图片节点变化
|
|
236680
236745
|
|
|
@@ -236683,7 +236748,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236683
236748
|
|
|
236684
236749
|
this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
|
|
236685
236750
|
this.$nextTick(function () {
|
|
236686
|
-
if (
|
|
236751
|
+
if (_this3.pageProperty) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
|
|
236687
236752
|
});
|
|
236688
236753
|
},
|
|
236689
236754
|
methods: {
|
|
@@ -236691,7 +236756,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236691
236756
|
* 右键菜单触发
|
|
236692
236757
|
*/
|
|
236693
236758
|
rightClickEvent: function rightClickEvent(rightPosition) {
|
|
236694
|
-
var
|
|
236759
|
+
var _this4 = this;
|
|
236695
236760
|
|
|
236696
236761
|
var nodeInfoes = this.getRightClickNodeValue();
|
|
236697
236762
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
@@ -236702,7 +236767,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236702
236767
|
nodeInfoes.labelNode = function () {
|
|
236703
236768
|
var labelNode = [];
|
|
236704
236769
|
var isIncludes = '';
|
|
236705
|
-
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(
|
|
236770
|
+
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.activeDocId);
|
|
236706
236771
|
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
236707
236772
|
|
|
236708
236773
|
if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
|
|
@@ -236714,7 +236779,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236714
236779
|
isIncludes = 'toLabel';
|
|
236715
236780
|
var startPath = currentDomRange.startPath;
|
|
236716
236781
|
var endPath = currentDomRange.endPath;
|
|
236717
|
-
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(
|
|
236782
|
+
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this4.activeDocId, startPath, endPath, true)[0];
|
|
236718
236783
|
|
|
236719
236784
|
if (selectNodes.length > 0) {
|
|
236720
236785
|
selectNodes.forEach(function (v) {
|
|
@@ -236765,7 +236830,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236765
236830
|
nodeInfoes.getParagraphNode = function () {
|
|
236766
236831
|
var _hoEditorFactory$vueC;
|
|
236767
236832
|
|
|
236768
|
-
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(
|
|
236833
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(_this4.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
236769
236834
|
|
|
236770
236835
|
if (node) {
|
|
236771
236836
|
return hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
@@ -236782,7 +236847,7 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236782
236847
|
* 初始化事件
|
|
236783
236848
|
*/
|
|
236784
236849
|
initListener: function initListener() {
|
|
236785
|
-
var
|
|
236850
|
+
var _this5 = this;
|
|
236786
236851
|
|
|
236787
236852
|
// 禁掉默认的左键菜单
|
|
236788
236853
|
window.oncontextmenu = function (e) {
|
|
@@ -236790,19 +236855,19 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236790
236855
|
};
|
|
236791
236856
|
|
|
236792
236857
|
this.$nextTick(function () {
|
|
236793
|
-
if (
|
|
236858
|
+
if (_this5.editJson.findModal) {
|
|
236794
236859
|
document.onkeydown = function (event) {
|
|
236795
236860
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
236796
236861
|
var ctrlKey = event.ctrlKey || event.metaKey; // ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
236797
236862
|
|
|
236798
236863
|
if (ctrlKey && keyCode === 70) {
|
|
236799
236864
|
event.preventDefault();
|
|
236800
|
-
|
|
236865
|
+
_this5.controlFindType = !_this5.controlFindType;
|
|
236801
236866
|
} // esc快捷键 自动关闭查询替换弹窗
|
|
236802
236867
|
|
|
236803
236868
|
|
|
236804
236869
|
if (keyCode === 27) {
|
|
236805
|
-
|
|
236870
|
+
_this5.controlFindType = false;
|
|
236806
236871
|
}
|
|
236807
236872
|
};
|
|
236808
236873
|
}
|