hoeditor-web 3.1.0 → 3.1.2
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.css +18387 -2
- package/lib/hoeditor.umd.js +193 -90
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -20085,7 +20085,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20085
20085
|
|
|
20086
20086
|
/***/ }),
|
|
20087
20087
|
|
|
20088
|
-
/***/
|
|
20088
|
+
/***/ 89305:
|
|
20089
20089
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20090
20090
|
|
|
20091
20091
|
"use strict";
|
|
@@ -20097,7 +20097,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20097
20097
|
"default": function() { return /* binding */ TableProperty; }
|
|
20098
20098
|
});
|
|
20099
20099
|
|
|
20100
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=template&id=
|
|
20100
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=template&id=2d378d27&
|
|
20101
20101
|
var render = function render() {
|
|
20102
20102
|
var _vm = this,
|
|
20103
20103
|
_c = _vm._self._c;
|
|
@@ -20121,12 +20121,6 @@ var render = function render() {
|
|
|
20121
20121
|
staticClass: "control-item"
|
|
20122
20122
|
}, [_c('span', {
|
|
20123
20123
|
staticClass: "label"
|
|
20124
|
-
}, [_vm._v("编号")]), _c('span', {
|
|
20125
|
-
staticClass: "readonly-value"
|
|
20126
|
-
}, [_vm._v(_vm._s(_vm.id))])]), _c('li', {
|
|
20127
|
-
staticClass: "control-item"
|
|
20128
|
-
}, [_c('span', {
|
|
20129
|
-
staticClass: "label"
|
|
20130
20124
|
}, [_vm._v("自定义属性")]), _c('a-button', {
|
|
20131
20125
|
on: {
|
|
20132
20126
|
"click": _vm.openCustomsModal
|
|
@@ -20288,7 +20282,19 @@ var render = function render() {
|
|
|
20288
20282
|
},
|
|
20289
20283
|
expression: "isUsePopEdit"
|
|
20290
20284
|
}
|
|
20291
|
-
}, [_vm._v("启用表单形式编辑表格")])], 1)
|
|
20285
|
+
}, [_vm._v("启用表单形式编辑表格")])], 1), _c('div', {
|
|
20286
|
+
staticStyle: {
|
|
20287
|
+
"width": "100%"
|
|
20288
|
+
}
|
|
20289
|
+
}, [_c('a-checkbox', {
|
|
20290
|
+
model: {
|
|
20291
|
+
value: _vm.isSignLock,
|
|
20292
|
+
callback: function callback($$v) {
|
|
20293
|
+
_vm.isSignLock = $$v;
|
|
20294
|
+
},
|
|
20295
|
+
expression: "isSignLock"
|
|
20296
|
+
}
|
|
20297
|
+
}, [_vm._v("签名完成后锁定表格")])], 1)])])]), _c('footer', {
|
|
20292
20298
|
staticClass: "ho-modal-footer"
|
|
20293
20299
|
}, [_c('a-button', {
|
|
20294
20300
|
attrs: {
|
|
@@ -20357,8 +20363,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
20357
20363
|
},
|
|
20358
20364
|
data: function data() {
|
|
20359
20365
|
return {
|
|
20360
|
-
id: '',
|
|
20361
|
-
// 编号
|
|
20366
|
+
//id: '', // 编号
|
|
20362
20367
|
canAdjustRowHeight: false,
|
|
20363
20368
|
//用户可调整行高
|
|
20364
20369
|
canAdjustRowWidth: false,
|
|
@@ -20386,10 +20391,11 @@ var CellNode = __webpack_require__(68598);
|
|
|
20386
20391
|
rowHeightMm: 0,
|
|
20387
20392
|
// 当前光标所在行行高
|
|
20388
20393
|
isUsePopEdit: false,
|
|
20389
|
-
endPath: ''
|
|
20394
|
+
endPath: '',
|
|
20395
|
+
isSignLock: false
|
|
20390
20396
|
};
|
|
20391
20397
|
},
|
|
20392
|
-
inject: [
|
|
20398
|
+
inject: ['hoEditorProvider'],
|
|
20393
20399
|
computed: {
|
|
20394
20400
|
customProperties: function customProperties() {
|
|
20395
20401
|
return this.hoEditorProvider.getCustomsValue().filter(function (v) {
|
|
@@ -20403,7 +20409,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
20403
20409
|
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
20404
20410
|
var tableNode = this.getTableNodes();
|
|
20405
20411
|
if (tableNode) {
|
|
20406
|
-
this.id = tableNode.tableProperty.id ? tableNode.tableProperty.id : this.vueController.generateID('TB');
|
|
20412
|
+
//this.id = tableNode.tableProperty.id ? tableNode.tableProperty.id : this.vueController.generateID('TB');
|
|
20407
20413
|
this.canAdjustRowHeight = tableNode.tableProperty.canAdjustRowHeight;
|
|
20408
20414
|
this.canAdjustRowWidth = tableNode.tableProperty.canAdjustRowWidth;
|
|
20409
20415
|
this.canAddRow = tableNode.tableProperty.canAddRow;
|
|
@@ -20417,6 +20423,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
20417
20423
|
this.fixedOnePage = tableNode.tableProperty.fixedOnePage;
|
|
20418
20424
|
this.autoLineHeight = tableNode.tableProperty.autoLineHeight;
|
|
20419
20425
|
this.isUsePopEdit = tableNode.tableProperty.isUsePopEdit;
|
|
20426
|
+
this.isSignLock = tableNode.tableProperty.isSignLock;
|
|
20420
20427
|
}
|
|
20421
20428
|
},
|
|
20422
20429
|
methods: {
|
|
@@ -20473,7 +20480,8 @@ var CellNode = __webpack_require__(68598);
|
|
|
20473
20480
|
isAutoChangeLine: this.isAutoChangeLine,
|
|
20474
20481
|
fixedOnePage: this.fixedOnePage,
|
|
20475
20482
|
autoLineHeight: this.autoLineHeight,
|
|
20476
|
-
isUsePopEdit: this.isUsePopEdit
|
|
20483
|
+
isUsePopEdit: this.isUsePopEdit,
|
|
20484
|
+
isSignLock: this.isSignLock
|
|
20477
20485
|
};
|
|
20478
20486
|
var tableNode = this.getTableNodes();
|
|
20479
20487
|
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
@@ -20488,10 +20496,10 @@ var CellNode = __webpack_require__(68598);
|
|
|
20488
20496
|
});
|
|
20489
20497
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
20490
20498
|
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
20491
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
20499
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=2d378d27&prod&lang=less&
|
|
20492
20500
|
// extracted by mini-css-extract-plugin
|
|
20493
20501
|
|
|
20494
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
20502
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=2d378d27&prod&lang=less&
|
|
20495
20503
|
|
|
20496
20504
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20497
20505
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -20519,7 +20527,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20519
20527
|
|
|
20520
20528
|
/***/ }),
|
|
20521
20529
|
|
|
20522
|
-
/***/
|
|
20530
|
+
/***/ 70872:
|
|
20523
20531
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20524
20532
|
|
|
20525
20533
|
"use strict";
|
|
@@ -20531,7 +20539,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20531
20539
|
"default": function() { return /* binding */ TableRowProperty; }
|
|
20532
20540
|
});
|
|
20533
20541
|
|
|
20534
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=
|
|
20542
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=cd52f7dc&
|
|
20535
20543
|
var render = function render() {
|
|
20536
20544
|
var _vm = this,
|
|
20537
20545
|
_c = _vm._self._c;
|
|
@@ -20708,6 +20716,8 @@ var staticRenderFns = [];
|
|
|
20708
20716
|
|
|
20709
20717
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
20710
20718
|
var toConsumableArray = __webpack_require__(61748);
|
|
20719
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
20720
|
+
var defineProperty = __webpack_require__(78255);
|
|
20711
20721
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
20712
20722
|
var es_array_filter = __webpack_require__(57327);
|
|
20713
20723
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
@@ -20749,6 +20759,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20749
20759
|
|
|
20750
20760
|
|
|
20751
20761
|
|
|
20762
|
+
|
|
20752
20763
|
/* harmony default export */ var TableRowPropertyvue_type_script_lang_js_ = ({
|
|
20753
20764
|
name: 'TableRowPoperty',
|
|
20754
20765
|
props: {
|
|
@@ -20760,8 +20771,8 @@ var TableNode = __webpack_require__(5010);
|
|
|
20760
20771
|
}
|
|
20761
20772
|
},
|
|
20762
20773
|
data: function data() {
|
|
20763
|
-
return {
|
|
20764
|
-
id: '',
|
|
20774
|
+
return (0,defineProperty/* default */.Z)({
|
|
20775
|
+
//id: '',
|
|
20765
20776
|
defaultRowProperty: {
|
|
20766
20777
|
rowHeight: 0,
|
|
20767
20778
|
isSpecifyHeight: false,
|
|
@@ -20802,7 +20813,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20802
20813
|
paramsChange: [],
|
|
20803
20814
|
rowInfos: null,
|
|
20804
20815
|
rowProperty: null
|
|
20805
|
-
};
|
|
20816
|
+
}, "newLineWithCellContent", false);
|
|
20806
20817
|
},
|
|
20807
20818
|
inject: ['hoEditorProvider'],
|
|
20808
20819
|
computed: {
|
|
@@ -20833,7 +20844,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20833
20844
|
}
|
|
20834
20845
|
if (this.rowProperty !== null && rowInfos !== null) {
|
|
20835
20846
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
20836
|
-
this.id = this.rowProperty.id ? this.rowProperty.id : this.vueController.generateID('TB');
|
|
20847
|
+
//this.id = this.rowProperty.id ? this.rowProperty.id : this.vueController.generateID('TB');
|
|
20837
20848
|
this.isSpecifyHeight = this.rowProperty.isSpecifyHeight;
|
|
20838
20849
|
this.rowHeight = this.rowProperty.rowHeight;
|
|
20839
20850
|
this.isLockRowHeight = this.rowProperty.isLockRowHeight;
|
|
@@ -20845,6 +20856,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20845
20856
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
20846
20857
|
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
20847
20858
|
this.newLineWithCellContent = this.rowProperty.newLineWithCellContent;
|
|
20859
|
+
//console.log(this.rowProperty.newLineWithCellContent, this.newLineWithCellContent, '2222222222222222');
|
|
20848
20860
|
}
|
|
20849
20861
|
},
|
|
20850
20862
|
getCellNodes: function getCellNodes() {
|
|
@@ -20899,7 +20911,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20899
20911
|
sure: function sure() {
|
|
20900
20912
|
var _this = this;
|
|
20901
20913
|
var params = {
|
|
20902
|
-
id: this.id,
|
|
20914
|
+
//id: this.id,
|
|
20903
20915
|
customProperties: this.customProperties,
|
|
20904
20916
|
// dataSource: this.dataSource,
|
|
20905
20917
|
isSpecifyHeight: this.isSpecifyHeight,
|
|
@@ -20939,10 +20951,10 @@ var TableNode = __webpack_require__(5010);
|
|
|
20939
20951
|
});
|
|
20940
20952
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
20941
20953
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js_ = (TableRowPropertyvue_type_script_lang_js_);
|
|
20942
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
20954
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=cd52f7dc&prod&lang=less&
|
|
20943
20955
|
// extracted by mini-css-extract-plugin
|
|
20944
20956
|
|
|
20945
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
20957
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=cd52f7dc&prod&lang=less&
|
|
20946
20958
|
|
|
20947
20959
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20948
20960
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -45564,16 +45576,32 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
45564
45576
|
}, {
|
|
45565
45577
|
key: "getParentNode",
|
|
45566
45578
|
value: function getParentNode(startPath) {
|
|
45567
|
-
var
|
|
45579
|
+
var pNode = null;
|
|
45568
45580
|
var np = this.findNodePositionByPath(startPath);
|
|
45569
45581
|
if (!(np && np.node)) {
|
|
45570
45582
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .P.NodeNotFound();
|
|
45571
45583
|
}
|
|
45572
|
-
|
|
45573
|
-
if (
|
|
45574
|
-
|
|
45584
|
+
pNode = np.node.parentNode;
|
|
45585
|
+
if (pNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__/* .CellNode */ .D) {
|
|
45586
|
+
return pNode;
|
|
45575
45587
|
}
|
|
45576
|
-
|
|
45588
|
+
do {
|
|
45589
|
+
if (pNode && pNode.parentNode) {
|
|
45590
|
+
pNode = pNode.parentNode;
|
|
45591
|
+
if (pNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__/* .CellNode */ .D) {
|
|
45592
|
+
return pNode;
|
|
45593
|
+
}
|
|
45594
|
+
}
|
|
45595
|
+
} while (pNode && pNode.parentNode);
|
|
45596
|
+
// parentNode = np.node.parentNode;
|
|
45597
|
+
// if (
|
|
45598
|
+
// parentNode &&
|
|
45599
|
+
// parentNode.last() == np.node &&
|
|
45600
|
+
// parentNode instanceof TextInputFieldNode
|
|
45601
|
+
// ) {
|
|
45602
|
+
// parentNode = parentNode.parentNode;
|
|
45603
|
+
// }
|
|
45604
|
+
return pNode;
|
|
45577
45605
|
}
|
|
45578
45606
|
}, {
|
|
45579
45607
|
key: "marksDisappears",
|
|
@@ -47367,13 +47395,13 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
47367
47395
|
/*
|
|
47368
47396
|
* @Author: your name
|
|
47369
47397
|
* @Date: 2020-12-24 16:01:16
|
|
47370
|
-
* @LastEditTime: 2023-08-
|
|
47398
|
+
* @LastEditTime: 2023-08-21 15:18:03
|
|
47371
47399
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
47372
47400
|
* @Description: In User Settings Edit
|
|
47373
47401
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
47374
47402
|
*/
|
|
47375
47403
|
var TableProperty = /*#__PURE__*/function () {
|
|
47376
|
-
|
|
47404
|
+
//签名后是否锁定
|
|
47377
47405
|
function TableProperty(objectValues) {
|
|
47378
47406
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TableProperty);
|
|
47379
47407
|
//private _id!: string; //编号
|
|
@@ -47404,6 +47432,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47404
47432
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_fixedOnePage", false);
|
|
47405
47433
|
//表格固定在一页
|
|
47406
47434
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isUsePopEdit", false);
|
|
47435
|
+
//是否启用表单弹框编辑
|
|
47436
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
47407
47437
|
if (objectValues !== "") {
|
|
47408
47438
|
var valuesObj = eval('(' + objectValues + ')');
|
|
47409
47439
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -47548,6 +47578,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47548
47578
|
set: function set(value) {
|
|
47549
47579
|
this._isUsePopEdit = value;
|
|
47550
47580
|
}
|
|
47581
|
+
}, {
|
|
47582
|
+
key: "isSignLock",
|
|
47583
|
+
get: function get() {
|
|
47584
|
+
return this._isSignLock;
|
|
47585
|
+
},
|
|
47586
|
+
set: function set(value) {
|
|
47587
|
+
this._isSignLock = value;
|
|
47588
|
+
}
|
|
47551
47589
|
}]);
|
|
47552
47590
|
return TableProperty;
|
|
47553
47591
|
}();
|
|
@@ -64239,7 +64277,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64239
64277
|
isAutoChangeLine: this.tableProperty.isAutoChangeLine,
|
|
64240
64278
|
autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64241
64279
|
fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64242
|
-
isUsePopEdit: this.tableProperty.isUsePopEdit
|
|
64280
|
+
isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64281
|
+
isSignLock: this.tableProperty.isSignLock
|
|
64243
64282
|
};
|
|
64244
64283
|
}
|
|
64245
64284
|
}
|
|
@@ -64484,7 +64523,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64484
64523
|
isAutoChangeLine: this.tableProperty.isAutoChangeLine,
|
|
64485
64524
|
autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64486
64525
|
fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64487
|
-
isUsePopEdit: this.tableProperty.isUsePopEdit
|
|
64526
|
+
isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64527
|
+
isSignLock: this.tableProperty.isSignLock
|
|
64488
64528
|
};
|
|
64489
64529
|
var retJson = {
|
|
64490
64530
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq[this.nodeType],
|
|
@@ -65164,6 +65204,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65164
65204
|
tableProperty.isAutoChangeLine = tableProperty["isAutoChangeLine"] || false;
|
|
65165
65205
|
tableProperty.autoLineHeight = tableProperty["autoLineHeight"] || 0.53;
|
|
65166
65206
|
tableProperty.autoLineHeightPx = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__/* .UnitConvert */ .P.instance.mmConversionPx(parseFloat(tableProperty.autoLineHeight) * 10, false);
|
|
65207
|
+
tableProperty.isSignLock = tableProperty["isSignLock"] || false;
|
|
65167
65208
|
// console.log("json2node", 1);
|
|
65168
65209
|
var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
|
|
65169
65210
|
// console.log("json2node", 2);
|
|
@@ -65431,7 +65472,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65431
65472
|
/* harmony export */ });
|
|
65432
65473
|
/* unused harmony exports SpecialFormat, BandDataSource */
|
|
65433
65474
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65434
|
-
/* harmony import */ var
|
|
65475
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40735);
|
|
65435
65476
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61748);
|
|
65436
65477
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
65437
65478
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
@@ -65511,7 +65552,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65511
65552
|
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(27198);
|
|
65512
65553
|
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(12659);
|
|
65513
65554
|
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(34910);
|
|
65514
|
-
/* harmony import */ var _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(931);
|
|
65515
65555
|
|
|
65516
65556
|
|
|
65517
65557
|
|
|
@@ -65547,7 +65587,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65547
65587
|
/*
|
|
65548
65588
|
* @Author: your name
|
|
65549
65589
|
* @Date: 2020-11-03 15:17:54
|
|
65550
|
-
* @LastEditTime: 2023-
|
|
65590
|
+
* @LastEditTime: 2023-08-22 16:38:21
|
|
65551
65591
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65552
65592
|
* @Description: In User Settings Edit
|
|
65553
65593
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -65581,7 +65621,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65581
65621
|
|
|
65582
65622
|
|
|
65583
65623
|
|
|
65584
|
-
|
|
65585
65624
|
|
|
65586
65625
|
|
|
65587
65626
|
var ReadOnlyStatus;
|
|
@@ -66766,7 +66805,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66766
66805
|
key: "setFieldText",
|
|
66767
66806
|
value: function () {
|
|
66768
66807
|
var _setFieldText = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee2(text, customProperty, keyValue, value) {
|
|
66769
|
-
var oldValue, hoEditorFactory,
|
|
66808
|
+
var oldValue, hoEditorFactory, startPath, endPath, aRange, anodes, i, anode, markNode;
|
|
66770
66809
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
66771
66810
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66772
66811
|
case 0:
|
|
@@ -66788,7 +66827,6 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66788
66827
|
oldValue = this._canModifyContent.valueOf();
|
|
66789
66828
|
this._canModifyContent = true;
|
|
66790
66829
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66791
|
-
oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
66792
66830
|
startPath = this.StartMarkNode.getNodePath();
|
|
66793
66831
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
66794
66832
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_41__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
@@ -66802,14 +66840,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66802
66840
|
}
|
|
66803
66841
|
hoEditorFactory.docController.deleteRange(aRange, true, 'update');
|
|
66804
66842
|
} else {
|
|
66805
|
-
|
|
66806
|
-
selectChangeEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_62__/* .SelectionChangeEvent */ .r(oldRange, aRange);
|
|
66807
|
-
hoEditorFactory.docTree.selectChange(selectChangeEvent);
|
|
66808
|
-
hoEditorFactory.docTree.curDomRange = aRange;
|
|
66809
|
-
}
|
|
66843
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(startPath);
|
|
66810
66844
|
}
|
|
66811
66845
|
if (!(text === '')) {
|
|
66812
|
-
_context2.next =
|
|
66846
|
+
_context2.next = 23;
|
|
66813
66847
|
break;
|
|
66814
66848
|
}
|
|
66815
66849
|
this._childNodes.splice(1, this._childNodes.length - 2);
|
|
@@ -66824,11 +66858,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66824
66858
|
this._canModifyContent = oldValue;
|
|
66825
66859
|
this.update(0);
|
|
66826
66860
|
return _context2.abrupt("return");
|
|
66827
|
-
case
|
|
66861
|
+
case 23:
|
|
66828
66862
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
66829
66863
|
//this._canModifyContent = await oldValue;
|
|
66830
66864
|
//this.update(0);
|
|
66831
|
-
case
|
|
66865
|
+
case 24:
|
|
66832
66866
|
case "end":
|
|
66833
66867
|
return _context2.stop();
|
|
66834
66868
|
}
|
|
@@ -67096,7 +67130,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67096
67130
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67097
67131
|
} else {
|
|
67098
67132
|
if (operType !== 'update') {
|
|
67099
|
-
|
|
67133
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。');
|
|
67100
67134
|
} else {
|
|
67101
67135
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67102
67136
|
}
|
|
@@ -67519,7 +67553,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67519
67553
|
}
|
|
67520
67554
|
} else {
|
|
67521
67555
|
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67522
|
-
if (!(node.number == 0 && node.type == 0 && node.name ==
|
|
67556
|
+
if (!(node.number == 0 && node.type == 0 && node.name == "")) {
|
|
67523
67557
|
nodes.push(node);
|
|
67524
67558
|
}
|
|
67525
67559
|
} else {
|
|
@@ -67631,7 +67665,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67631
67665
|
var childFields = [];
|
|
67632
67666
|
for (var c = 0; c < temp.childNodes.length; c++) {
|
|
67633
67667
|
var childNode = temp.childNodes[c];
|
|
67634
|
-
if (childNode instanceof TextInputFieldNode) {
|
|
67668
|
+
if (childNode instanceof TextInputFieldNode || childNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_56__/* .SignNode */ .N) {
|
|
67635
67669
|
childFields.push(childNode);
|
|
67636
67670
|
}
|
|
67637
67671
|
}
|
|
@@ -105456,7 +105490,8 @@ request.overrideMimeType("text/plain; charset=x-user-defined");if(sync===false){
|
|
|
105456
105490
|
*
|
|
105457
105491
|
* @name html
|
|
105458
105492
|
* @module
|
|
105459
|
-
*/(function(jsPDFAPI){function loadHtml2Canvas(){//
|
|
105493
|
+
*/(function(jsPDFAPI){function loadHtml2Canvas(){// 自定义修改 去除不需要的html转canvas方法和html2canvas依赖 --- 处理问题: html2canvas依赖canvas插件 容易卡在下载超时和安装失败
|
|
105494
|
+
// return function () {
|
|
105460
105495
|
// if (globalObject["html2canvas"]) {
|
|
105461
105496
|
// return Promise.resolve(globalObject["html2canvas"]);
|
|
105462
105497
|
// }
|
|
@@ -176654,8 +176689,8 @@ var map = {
|
|
|
176654
176689
|
"./table/TableForm.vue": 79036,
|
|
176655
176690
|
"./table/TableFormTree.vue": 84804,
|
|
176656
176691
|
"./table/TableFormula.vue": 58585,
|
|
176657
|
-
"./table/TableProperty.vue":
|
|
176658
|
-
"./table/TableRowProperty.vue":
|
|
176692
|
+
"./table/TableProperty.vue": 89305,
|
|
176693
|
+
"./table/TableRowProperty.vue": 70872,
|
|
176659
176694
|
"./textDialog/TextDialog.vue": 75476,
|
|
176660
176695
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
176661
176696
|
"./textDialog/VerifyTip.vue": 47284,
|
|
@@ -214094,8 +214129,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214094
214129
|
var es_number_constructor = __webpack_require__(9653);
|
|
214095
214130
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214096
214131
|
var es_json_stringify = __webpack_require__(38862);
|
|
214097
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
214098
|
-
var
|
|
214132
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=0e4bf394&
|
|
214133
|
+
var HoDocvue_type_template_id_0e4bf394_render = function render() {
|
|
214099
214134
|
var _vm = this,
|
|
214100
214135
|
_c = _vm._self._c;
|
|
214101
214136
|
return _c('div', {
|
|
@@ -214243,7 +214278,7 @@ var HoDocvue_type_template_id_7686253b_render = function render() {
|
|
|
214243
214278
|
}
|
|
214244
214279
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
214245
214280
|
};
|
|
214246
|
-
var
|
|
214281
|
+
var HoDocvue_type_template_id_0e4bf394_staticRenderFns = [];
|
|
214247
214282
|
|
|
214248
214283
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
214249
214284
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217243,7 +217278,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217243
217278
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217244
217279
|
var ParagraphNode = __webpack_require__(67945);
|
|
217245
217280
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217246
|
-
/* harmony default export */ var version = ('3.1.
|
|
217281
|
+
/* harmony default export */ var version = ('3.1.2');
|
|
217247
217282
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217248
217283
|
var PoperTipText = __webpack_require__(50987);
|
|
217249
217284
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217778,8 +217813,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
217778
217813
|
var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
|
|
217779
217814
|
if (text != node.parentNode.name && text !== '' && !allowMultiSelected && lists.length > 0) {
|
|
217780
217815
|
if (lists.filter(function (v) {
|
|
217781
|
-
return v.text.
|
|
217782
|
-
}).length
|
|
217816
|
+
return v.text.includes('<元素>');
|
|
217817
|
+
}).length > 0) {
|
|
217783
217818
|
return;
|
|
217784
217819
|
}
|
|
217785
217820
|
}
|
|
@@ -217992,10 +218027,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
217992
218027
|
});
|
|
217993
218028
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
217994
218029
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
217995
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
218030
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=0e4bf394&prod&lang=less&
|
|
217996
218031
|
// extracted by mini-css-extract-plugin
|
|
217997
218032
|
|
|
217998
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
218033
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=0e4bf394&prod&lang=less&
|
|
217999
218034
|
|
|
218000
218035
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
218001
218036
|
|
|
@@ -218008,8 +218043,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218008
218043
|
|
|
218009
218044
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218010
218045
|
components_HoDocvue_type_script_lang_js_,
|
|
218011
|
-
|
|
218012
|
-
|
|
218046
|
+
HoDocvue_type_template_id_0e4bf394_render,
|
|
218047
|
+
HoDocvue_type_template_id_0e4bf394_staticRenderFns,
|
|
218013
218048
|
false,
|
|
218014
218049
|
null,
|
|
218015
218050
|
null,
|
|
@@ -220216,27 +220251,53 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220216
220251
|
if (jsondata['text_align']) {
|
|
220217
220252
|
var textAlign = jsondata['text_align'];
|
|
220218
220253
|
textAlign = textAlign.trim();
|
|
220219
|
-
|
|
220254
|
+
if (textAlign == 'center') {
|
|
220255
|
+
tmp.align = Paragraph/* Align */.xM.alcenter;
|
|
220256
|
+
} else if (textAlign == 'left') {
|
|
220257
|
+
tmp.align = Paragraph/* Align */.xM.alleft;
|
|
220258
|
+
} else if (textAlign == 'right') {
|
|
220259
|
+
tmp.align = Paragraph/* Align */.xM.alright;
|
|
220260
|
+
} else {
|
|
220261
|
+
tmp.align = Paragraph/* Align */.xM.alSpaceEqually;
|
|
220262
|
+
}
|
|
220263
|
+
//tmp.align = textAlign == 'center' ? Align.alcenter : (textAlign == 'left' ? Align.alleft : (textAlign == 'right' ? Align.alright : (textAlign == 'justify' ? Align.alSpaceEqually : tmp.combineStyle.align)));
|
|
220220
220264
|
}
|
|
220265
|
+
|
|
220221
220266
|
if (jsondata['line_height']) {
|
|
220222
220267
|
var lineHeight = jsondata['line_height'];
|
|
220223
220268
|
tmp.lineSpace = Number(lineHeight.substr(0, lineHeight.indexOf('%'))) / 100;
|
|
220224
220269
|
}
|
|
220225
|
-
if (jsondata['mso_para_margin_left']) {
|
|
220226
|
-
|
|
220227
|
-
|
|
220228
|
-
|
|
220229
|
-
|
|
220230
|
-
|
|
220231
|
-
|
|
220232
|
-
|
|
220233
|
-
|
|
220234
|
-
|
|
220235
|
-
|
|
220236
|
-
|
|
220237
|
-
|
|
220238
|
-
|
|
220239
|
-
|
|
220270
|
+
// if (jsondata['mso_para_margin_left']) {
|
|
220271
|
+
// const marginLeft = jsondata['mso_para_margin_left'];
|
|
220272
|
+
// let match = marginLeft.match(/^(.*)gd$/);
|
|
220273
|
+
// if (!match) {
|
|
220274
|
+
// match = match(/^(.*)(px|pt)$/);
|
|
220275
|
+
// }
|
|
220276
|
+
// if (match && match[1]) {
|
|
220277
|
+
// tmp.leftMargin = Number(match[1]);
|
|
220278
|
+
// }
|
|
220279
|
+
// }
|
|
220280
|
+
// if (jsondata['margin_left']) {
|
|
220281
|
+
// const marginLeft = jsondata['margin_left'];
|
|
220282
|
+
// let match = marginLeft.match(/^(.*)gd$/);
|
|
220283
|
+
// if (!match) {
|
|
220284
|
+
// match = marginLeft.match(/^(.*)(px|pt)$/);
|
|
220285
|
+
// }
|
|
220286
|
+
// if (match && match[1]) {
|
|
220287
|
+
// tmp.leftMargin = Number(match[1]);
|
|
220288
|
+
// }
|
|
220289
|
+
// }
|
|
220290
|
+
// if (jsondata['text_indent']) {
|
|
220291
|
+
// //TODO:行首缩进
|
|
220292
|
+
// const marginLeft = jsondata['text_indent'];
|
|
220293
|
+
// let match = marginLeft.match(/^(.*)gd$/);
|
|
220294
|
+
// if (!match) {
|
|
220295
|
+
// match = marginLeft.match(/^(.*)(px|pt)$/);
|
|
220296
|
+
// }
|
|
220297
|
+
// if (match && match[1]) {
|
|
220298
|
+
// tmp.leftMargin = Number(match[1]);
|
|
220299
|
+
// }
|
|
220300
|
+
// }
|
|
220240
220301
|
// tmp.align = parseInt(jsondata['font-size']) || tmp.size;
|
|
220241
220302
|
// tmp.lineSpace = ;
|
|
220242
220303
|
// tmp.leftMarginPixes=
|
|
@@ -220293,9 +220354,19 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220293
220354
|
// // var myFile = dataURLtoFile(data, 'testimgtestimgtestimg');
|
|
220294
220355
|
// console.log(data);
|
|
220295
220356
|
// });
|
|
220296
|
-
var width =
|
|
220297
|
-
var height =
|
|
220298
|
-
|
|
220357
|
+
var width = jquery_default()(jnode).attr('width');
|
|
220358
|
+
var height = jquery_default()(jnode).attr('height');
|
|
220359
|
+
if (!width && styleobj.width) {
|
|
220360
|
+
width = styleobj.width.replace('px', '');
|
|
220361
|
+
}
|
|
220362
|
+
if (!height && styleobj.height) {
|
|
220363
|
+
height = styleobj.height.replace('px', '');
|
|
220364
|
+
}
|
|
220365
|
+
if (!width) width = '20';
|
|
220366
|
+
if (!height) height = '20';
|
|
220367
|
+
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID('IMG'), src,
|
|
220368
|
+
//$(jnode).attr('src') || '',
|
|
220369
|
+
Number(width), Number(height));
|
|
220299
220370
|
return [node];
|
|
220300
220371
|
}
|
|
220301
220372
|
}, {
|
|
@@ -220316,6 +220387,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220316
220387
|
tableProperty.isUsePopEdit = tableProperty['isUsePopEdit'] || false;
|
|
220317
220388
|
tableProperty.isAutoChangeLine = tableProperty['isAutoChangeLine'] || false;
|
|
220318
220389
|
tableProperty.autoLineHeight = tableProperty['autoLineHeight'] || 0.53;
|
|
220390
|
+
tableProperty.isSignLock = tableProperty['isSignLock'] || false;
|
|
220319
220391
|
return tableProperty;
|
|
220320
220392
|
}
|
|
220321
220393
|
}, {
|
|
@@ -230787,7 +230859,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230787
230859
|
isAutoChangeLine: node.tableProperty.isAutoChangeLine,
|
|
230788
230860
|
autoLineHeight: node.tableProperty.autoLineHeight,
|
|
230789
230861
|
fixedOnePage: node.tableProperty.fixedOnePage,
|
|
230790
|
-
isUsePopEdit: node.tableProperty.isUsePopEdit
|
|
230862
|
+
isUsePopEdit: node.tableProperty.isUsePopEdit,
|
|
230863
|
+
isSignLock: node.tableProperty.isSignLock
|
|
230791
230864
|
};
|
|
230792
230865
|
var defaultRowProp = {
|
|
230793
230866
|
customProperties: '',
|
|
@@ -231835,6 +231908,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231835
231908
|
}
|
|
231836
231909
|
return boxs;
|
|
231837
231910
|
}
|
|
231911
|
+
}, {
|
|
231912
|
+
key: "importWordFile",
|
|
231913
|
+
value: function importWordFile(fileStr) {
|
|
231914
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231915
|
+
hoEditorFactory.docController.initBlankDoc();
|
|
231916
|
+
hoEditorFactory.drawTree.inViewPages = [0];
|
|
231917
|
+
hoEditorFactory.undoService.stack = [];
|
|
231918
|
+
fileStr = fileStr.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, "");
|
|
231919
|
+
var nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, fileStr);
|
|
231920
|
+
hoEditorFactory.docTree.curDomRange.setSamePath("main/0");
|
|
231921
|
+
hoEditorFactory.drawTree.moveCaretToPath("main/0");
|
|
231922
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
231923
|
+
}
|
|
231838
231924
|
}]);
|
|
231839
231925
|
return VueController;
|
|
231840
231926
|
}();
|
|
@@ -232437,6 +232523,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
232437
232523
|
|
|
232438
232524
|
|
|
232439
232525
|
|
|
232526
|
+
|
|
232440
232527
|
|
|
232441
232528
|
|
|
232442
232529
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -232930,15 +233017,15 @@ var EditController = /*#__PURE__*/function () {
|
|
|
232930
233017
|
key: "canIsEdit",
|
|
232931
233018
|
value: function canIsEdit(hoEditorFactory) {
|
|
232932
233019
|
var result = true;
|
|
232933
|
-
//
|
|
232934
|
-
//
|
|
233020
|
+
//hoEditorFactory.isUseForm = true;
|
|
233021
|
+
//hoEditorFactory.allowEditCellInForm = false;
|
|
233022
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
232935
233023
|
if (hoEditorFactory.isUseForm) {
|
|
232936
233024
|
var _enode$parentNode, _enode$parentNode2;
|
|
232937
|
-
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
232938
|
-
//const endPath = _curDomRange.normalize().endPath;
|
|
232939
|
-
//const node = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
232940
233025
|
var snode = curDomRange.npStart.node;
|
|
232941
233026
|
var enode = curDomRange.npEnd.node;
|
|
233027
|
+
//const endPath = _curDomRange.normalize().endPath;
|
|
233028
|
+
//const node = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
232942
233029
|
if (enode && enode.nodeType == 0 && !((enode === null || enode === void 0 ? void 0 : enode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
232943
233030
|
result = false;
|
|
232944
233031
|
}
|
|
@@ -232957,6 +233044,22 @@ var EditController = /*#__PURE__*/function () {
|
|
|
232957
233044
|
}
|
|
232958
233045
|
}
|
|
232959
233046
|
}
|
|
233047
|
+
if (result && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign) {
|
|
233048
|
+
var pNode = hoEditorFactory.docTree.getParentNode(curDomRange.startPath);
|
|
233049
|
+
if (pNode && pNode instanceof CellNode/* CellNode */.D && pNode.table.tableProperty.isSignLock) {
|
|
233050
|
+
for (var i = 0; i < pNode.table.childNodes.length; i++) {
|
|
233051
|
+
var cell = pNode.table.childNodes[i];
|
|
233052
|
+
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
233053
|
+
var anode = cell.childNodes[j];
|
|
233054
|
+
if (anode instanceof SignNode/* SignNode */.N && anode.imgSrc != "") {
|
|
233055
|
+
message/* default */.Z.destroy();
|
|
233056
|
+
message/* default */.Z.error("已签名,不允许修改编辑。");
|
|
233057
|
+
return false;
|
|
233058
|
+
}
|
|
233059
|
+
}
|
|
233060
|
+
}
|
|
233061
|
+
}
|
|
233062
|
+
}
|
|
232960
233063
|
if (!result) {
|
|
232961
233064
|
message/* default */.Z.destroy();
|
|
232962
233065
|
message/* default */.Z.error("表单状态元素外不可编辑");
|