hoeditor-web 3.1.112 → 3.1.114
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.umd.js +360 -375
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -21862,7 +21862,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
21862
21862
|
|
|
21863
21863
|
/***/ }),
|
|
21864
21864
|
|
|
21865
|
-
/***/
|
|
21865
|
+
/***/ 98800:
|
|
21866
21866
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21867
21867
|
|
|
21868
21868
|
"use strict";
|
|
@@ -21874,7 +21874,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21874
21874
|
"default": function() { return /* binding */ TableProperty; }
|
|
21875
21875
|
});
|
|
21876
21876
|
|
|
21877
|
-
;// 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=
|
|
21877
|
+
;// 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=06aeabe3&
|
|
21878
21878
|
var render = function render() {
|
|
21879
21879
|
var _vm = this,
|
|
21880
21880
|
_c = _vm._self._c;
|
|
@@ -21970,11 +21970,11 @@ var render = function render() {
|
|
|
21970
21970
|
}
|
|
21971
21971
|
}, [_c('a-checkbox', {
|
|
21972
21972
|
model: {
|
|
21973
|
-
value: _vm.
|
|
21973
|
+
value: _vm.canDelTable,
|
|
21974
21974
|
callback: function callback($$v) {
|
|
21975
|
-
_vm.
|
|
21975
|
+
_vm.canDelTable = $$v;
|
|
21976
21976
|
},
|
|
21977
|
-
expression: "
|
|
21977
|
+
expression: "canDelTable"
|
|
21978
21978
|
}
|
|
21979
21979
|
}, [_vm._v("用户可删除表格")])], 1), _c('div', {
|
|
21980
21980
|
staticStyle: {
|
|
@@ -22163,7 +22163,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
22163
22163
|
//用户可新增表格列
|
|
22164
22164
|
canDeleteRow: true,
|
|
22165
22165
|
//用户可删除表格行列
|
|
22166
|
-
|
|
22166
|
+
canDelTable: false,
|
|
22167
22167
|
//用户可删除表格
|
|
22168
22168
|
continuePrintBorders: false,
|
|
22169
22169
|
//续打时打印所有单元格边框
|
|
@@ -22206,7 +22206,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
22206
22206
|
this.canAddRow = tableNode.tableProperty.canAddRow;
|
|
22207
22207
|
this.canAddCol = tableNode.tableProperty.canAddCol;
|
|
22208
22208
|
this.canDeleteRow = tableNode.tableProperty.canDeleteRow;
|
|
22209
|
-
this.
|
|
22209
|
+
this.canDelTable = tableNode.tableProperty.canDelTable;
|
|
22210
22210
|
this.continuePrintBorders = tableNode.tableProperty.continuePrintBorders;
|
|
22211
22211
|
this.layoutFullLine = tableNode.tableProperty.layoutFullLine;
|
|
22212
22212
|
this.tightLineSpace = tableNode.tableProperty.tightLineSpace;
|
|
@@ -22265,7 +22265,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
22265
22265
|
canAddRow: this.canAddRow,
|
|
22266
22266
|
canAddCol: this.canAddCol,
|
|
22267
22267
|
canDeleteRow: this.canDeleteRow,
|
|
22268
|
-
|
|
22268
|
+
canDelTable: this.canDelTable,
|
|
22269
22269
|
continuePrintBorders: this.continuePrintBorders,
|
|
22270
22270
|
layoutFullLine: this.layoutFullLine,
|
|
22271
22271
|
tightLineSpace: this.tightLineSpace,
|
|
@@ -22289,10 +22289,10 @@ var CellNode = __webpack_require__(68598);
|
|
|
22289
22289
|
});
|
|
22290
22290
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
22291
22291
|
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
22292
|
-
;// 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=
|
|
22292
|
+
;// 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=06aeabe3&prod&lang=less&
|
|
22293
22293
|
// extracted by mini-css-extract-plugin
|
|
22294
22294
|
|
|
22295
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
22295
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=06aeabe3&prod&lang=less&
|
|
22296
22296
|
|
|
22297
22297
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
22298
22298
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -39034,7 +39034,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39034
39034
|
}
|
|
39035
39035
|
}, {
|
|
39036
39036
|
key: "insertTable",
|
|
39037
|
-
value: function insertTable(arange, row, col) {
|
|
39037
|
+
value: function insertTable(arange, row, col, property) {
|
|
39038
39038
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39039
39039
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39040
39040
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
@@ -39046,46 +39046,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39046
39046
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39047
39047
|
return;
|
|
39048
39048
|
}
|
|
39049
|
-
|
|
39050
|
-
// this._hoEditorFactoryID,
|
|
39051
|
-
// np.roots,
|
|
39052
|
-
// parentNode,
|
|
39053
|
-
// hoEditorFactory.docTree.curParaNo
|
|
39054
|
-
// );
|
|
39055
|
-
// hoEditorFactory.docTree.insertNodeAfterPath(
|
|
39056
|
-
// arange.startPath,
|
|
39057
|
-
// nextParaNode
|
|
39058
|
-
// );
|
|
39059
|
-
// let tablePath = arange.startPath;
|
|
39060
|
-
// let paraNode;
|
|
39061
|
-
// if (np.node instanceof ParagraphNode) {
|
|
39062
|
-
// paraNode = np.node as ParagraphNode;
|
|
39063
|
-
// } else {
|
|
39064
|
-
// paraNode = new ParagraphNode(
|
|
39065
|
-
// this._hoEditorFactoryID,
|
|
39066
|
-
// np.roots,
|
|
39067
|
-
// parentNode,
|
|
39068
|
-
// hoEditorFactory.docTree.curParaNo
|
|
39069
|
-
// );
|
|
39070
|
-
// tablePath = hoEditorFactory.docTree.insertNodeAfterPath(
|
|
39071
|
-
// arange.startPath,
|
|
39072
|
-
// paraNode
|
|
39073
|
-
// );
|
|
39074
|
-
// }
|
|
39075
|
-
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .TableProperty */ .vE('');
|
|
39049
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .TableProperty */ .vE(property || "");
|
|
39076
39050
|
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
39077
39051
|
hoEditorFactory.undoService.begin();
|
|
39078
39052
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
39079
39053
|
hoEditorFactory.undoService.commit();
|
|
39080
|
-
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
39081
|
-
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
39082
|
-
// const changeEvent = new NodeChangeEvent(
|
|
39083
|
-
// this._hoEditorFactoryID,
|
|
39084
|
-
// DocAction.daInsert,
|
|
39085
|
-
// arange.startPath,
|
|
39086
|
-
// hoEditorFactory.docTree.curDomRange.endPath
|
|
39087
|
-
// );
|
|
39088
|
-
// hoEditorFactory.docTree.change(changeEvent);
|
|
39089
39054
|
}
|
|
39090
39055
|
}, {
|
|
39091
39056
|
key: "insertTableRowAbove",
|
|
@@ -45458,20 +45423,22 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45458
45423
|
/* harmony export */ vE: function() { return /* binding */ TableProperty; }
|
|
45459
45424
|
/* harmony export */ });
|
|
45460
45425
|
/* unused harmony export DataSource */
|
|
45461
|
-
/* harmony import */ var
|
|
45462
|
-
/* harmony import */ var
|
|
45463
|
-
/* harmony import */ var
|
|
45464
|
-
/* harmony import */ var
|
|
45465
|
-
/* harmony import */ var
|
|
45466
|
-
/* harmony import */ var
|
|
45467
|
-
/* harmony import */ var
|
|
45468
|
-
/* harmony import */ var
|
|
45469
|
-
/* harmony import */ var
|
|
45470
|
-
/* harmony import */ var
|
|
45471
|
-
/* harmony import */ var
|
|
45472
|
-
/* harmony import */ var
|
|
45473
|
-
/* harmony import */ var
|
|
45474
|
-
/* harmony import */ var
|
|
45426
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63442);
|
|
45427
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8495);
|
|
45428
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70280);
|
|
45429
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66298);
|
|
45430
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78255);
|
|
45431
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
45432
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
45433
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54747);
|
|
45434
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
45435
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(47941);
|
|
45436
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
45437
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68309);
|
|
45438
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
45439
|
+
/* harmony import */ var _utils_UnitConvert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91404);
|
|
45440
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5010);
|
|
45441
|
+
|
|
45475
45442
|
|
|
45476
45443
|
|
|
45477
45444
|
|
|
@@ -45493,45 +45460,51 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45493
45460
|
var TableProperty = /*#__PURE__*/function () {
|
|
45494
45461
|
//按顺序新增行
|
|
45495
45462
|
function TableProperty(objectValues) {
|
|
45496
|
-
(0,
|
|
45463
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, TableProperty);
|
|
45497
45464
|
//private _id!: string; //编号
|
|
45498
|
-
(0,
|
|
45465
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
45499
45466
|
//自定义属性
|
|
45500
|
-
(0,
|
|
45467
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canAdjustRowHeight", false);
|
|
45501
45468
|
//用户可调整行高
|
|
45502
|
-
(0,
|
|
45469
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canAdjustRowWidth", false);
|
|
45503
45470
|
//用户可调整行宽
|
|
45504
|
-
(0,
|
|
45471
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canAddRow", true);
|
|
45505
45472
|
//用户可新增表格行
|
|
45506
|
-
(0,
|
|
45473
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canAddCol", true);
|
|
45507
45474
|
//用户可新增表格列
|
|
45508
|
-
(0,
|
|
45509
|
-
|
|
45510
|
-
|
|
45511
|
-
|
|
45512
|
-
|
|
45475
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canDeleteRow", true);
|
|
45476
|
+
//用户可删除表格行列
|
|
45477
|
+
// private _canDeleteTable = false;//用户可删除表格 旧参数未使用废弃
|
|
45478
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canDelTable", false);
|
|
45479
|
+
//用户可删除表格 新参数默认不可删除
|
|
45480
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_continuePrintBorders", false);
|
|
45513
45481
|
//续打时打印所有单元格边框
|
|
45514
45482
|
//private _layoutFullLine = true;//排版时占据整行
|
|
45515
45483
|
//private _tightLineSpace = false;//压缩表格上下行间距
|
|
45516
|
-
(0,
|
|
45484
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isAutoChangeLine", false);
|
|
45517
45485
|
//表格内是否自动换行
|
|
45518
|
-
(0,
|
|
45519
|
-
(0,
|
|
45520
|
-
(0,
|
|
45486
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_autoLineHeight", 0.53);
|
|
45487
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_autoLineHeightPx", _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_10__/* .gDefaultRowHeight */ .dT);
|
|
45488
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_fixedOnePage", false);
|
|
45521
45489
|
//表格固定在一页
|
|
45522
|
-
(0,
|
|
45490
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isUsePopEdit", false);
|
|
45523
45491
|
//是否启用表单弹框编辑
|
|
45524
|
-
(0,
|
|
45492
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
45525
45493
|
//签名后是否锁定
|
|
45526
|
-
(0,
|
|
45494
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
45527
45495
|
//是否锁定
|
|
45528
|
-
(0,
|
|
45496
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_addRowByOrder", false);
|
|
45529
45497
|
if (objectValues !== "") {
|
|
45530
|
-
var valuesObj
|
|
45498
|
+
var valuesObj;
|
|
45499
|
+
if (typeof objectValues === "string") {
|
|
45500
|
+
valuesObj = eval('(' + objectValues + ')');
|
|
45501
|
+
} else if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(objectValues) === "object") {
|
|
45502
|
+
valuesObj = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, objectValues);
|
|
45503
|
+
}
|
|
45531
45504
|
var assignvalue = function assignvalue(target, source) {
|
|
45532
45505
|
Object.keys(source).forEach(function (value) {
|
|
45533
|
-
if ((0,
|
|
45534
|
-
if ((0,
|
|
45506
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
45507
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(source[value]) == "object") {
|
|
45535
45508
|
assignvalue(target[value], source[value]);
|
|
45536
45509
|
} else {
|
|
45537
45510
|
if (source[value] !== "") {
|
|
@@ -45550,7 +45523,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
45550
45523
|
// set id(value: string) {
|
|
45551
45524
|
// this._id = value;
|
|
45552
45525
|
// }
|
|
45553
|
-
(0,
|
|
45526
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(TableProperty, [{
|
|
45554
45527
|
key: "customProperties",
|
|
45555
45528
|
get: function get() {
|
|
45556
45529
|
return this._customProperties;
|
|
@@ -45599,12 +45572,12 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
45599
45572
|
this._canDeleteRow = value;
|
|
45600
45573
|
}
|
|
45601
45574
|
}, {
|
|
45602
|
-
key: "
|
|
45575
|
+
key: "canDelTable",
|
|
45603
45576
|
get: function get() {
|
|
45604
|
-
return this.
|
|
45577
|
+
return this._canDelTable;
|
|
45605
45578
|
},
|
|
45606
45579
|
set: function set(value) {
|
|
45607
|
-
this.
|
|
45580
|
+
this._canDelTable = value;
|
|
45608
45581
|
}
|
|
45609
45582
|
}, {
|
|
45610
45583
|
key: "continuePrintBorders",
|
|
@@ -45630,7 +45603,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
45630
45603
|
set: function set(value) {
|
|
45631
45604
|
if (value !== this._autoLineHeight) {
|
|
45632
45605
|
this._autoLineHeight = value;
|
|
45633
|
-
this._autoLineHeightPx =
|
|
45606
|
+
this._autoLineHeightPx = _utils_UnitConvert__WEBPACK_IMPORTED_MODULE_9__/* .UnitConvert */ .P.instance.mmConversionPx(value * 10, false);
|
|
45634
45607
|
}
|
|
45635
45608
|
}
|
|
45636
45609
|
}, {
|
|
@@ -45684,22 +45657,22 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
45684
45657
|
var DataSource = /*#__PURE__*/function () {
|
|
45685
45658
|
//执行状态 //执行状态:AlwaysExec 总是执行,OnlyOneTime 只执行一次,NoExec 不执行
|
|
45686
45659
|
function DataSource() {
|
|
45687
|
-
(0,
|
|
45688
|
-
(0,
|
|
45660
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, DataSource);
|
|
45661
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_dataSourceEnabled", true);
|
|
45689
45662
|
//数据源绑定设置有效
|
|
45690
|
-
(0,
|
|
45663
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_dataSource", "");
|
|
45691
45664
|
//数据源
|
|
45692
|
-
(0,
|
|
45665
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_format", "");
|
|
45693
45666
|
//格式化
|
|
45694
|
-
(0,
|
|
45667
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_visitPath", "");
|
|
45695
45668
|
//访问路径
|
|
45696
|
-
(0,
|
|
45669
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isReadOnly", false);
|
|
45697
45670
|
//只读 不能回填
|
|
45698
|
-
(0,
|
|
45671
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_autoUpdate", false);
|
|
45699
45672
|
//自动更新,当加载文档或者数据源发生改变时自动更新数值
|
|
45700
|
-
(0,
|
|
45673
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_executeStatus", "AlwaysExec");
|
|
45701
45674
|
}
|
|
45702
|
-
(0,
|
|
45675
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DataSource, [{
|
|
45703
45676
|
key: "dataSourceEnabled",
|
|
45704
45677
|
get: function get() {
|
|
45705
45678
|
return this._dataSourceEnabled;
|
|
@@ -45776,40 +45749,40 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
45776
45749
|
//新增行是否带着计算公式
|
|
45777
45750
|
function RowProperty(objectValues //, table: TableNode
|
|
45778
45751
|
) {
|
|
45779
|
-
(0,
|
|
45780
|
-
(0,
|
|
45752
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, RowProperty);
|
|
45753
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_id", "");
|
|
45781
45754
|
//编号
|
|
45782
|
-
(0,
|
|
45755
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
45783
45756
|
//自定义属性
|
|
45784
45757
|
//private _dataSource !: DataSource;//数据源
|
|
45785
|
-
(0,
|
|
45758
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isSpecifyHeight", false);
|
|
45786
45759
|
//是否指定高度
|
|
45787
|
-
(0,
|
|
45760
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_rowHeight", 0);
|
|
45788
45761
|
//指定的高度
|
|
45789
45762
|
//private _isAutoRaiseHeight = false;//锁定行高
|
|
45790
|
-
(0,
|
|
45763
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_repeatAsTitleAtPageTop", false);
|
|
45791
45764
|
//在各页顶端以标题形式重复出现
|
|
45792
|
-
(0,
|
|
45765
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_sameLineCanAcrossPages", true);
|
|
45793
45766
|
//同行内容能跨页
|
|
45794
|
-
(0,
|
|
45767
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_forcedPageBreak", false);
|
|
45795
45768
|
//强制分页
|
|
45796
|
-
(0,
|
|
45769
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_printCellBorders", true);
|
|
45797
45770
|
//打印单元格边框线
|
|
45798
|
-
(0,
|
|
45771
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_printCellBg", true);
|
|
45799
45772
|
//打印单元格背景
|
|
45800
|
-
(0,
|
|
45773
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_tabKeyInsNewLine", false);
|
|
45801
45774
|
//按下Tab键强制插入新行(即使不是最后一行)
|
|
45802
|
-
(0,
|
|
45775
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isLockRowHeight", false);
|
|
45803
45776
|
//是否锁定行高
|
|
45804
|
-
(0,
|
|
45777
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_newLineWithCellContent", false);
|
|
45805
45778
|
//新增行带着单元格元素
|
|
45806
|
-
(0,
|
|
45779
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_withFormula", false);
|
|
45807
45780
|
if (objectValues !== "") {
|
|
45808
45781
|
var valuesObj = eval('(' + objectValues + ')');
|
|
45809
45782
|
var assignvalue = function assignvalue(target, source) {
|
|
45810
45783
|
Object.keys(source).forEach(function (value) {
|
|
45811
|
-
if ((0,
|
|
45812
|
-
if ((0,
|
|
45784
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
45785
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(source[value]) == "object") {
|
|
45813
45786
|
assignvalue(target[value], source[value]);
|
|
45814
45787
|
} else {
|
|
45815
45788
|
if (source[value] !== "") {
|
|
@@ -45822,7 +45795,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
45822
45795
|
assignvalue(this, valuesObj);
|
|
45823
45796
|
}
|
|
45824
45797
|
}
|
|
45825
|
-
(0,
|
|
45798
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(RowProperty, [{
|
|
45826
45799
|
key: "id",
|
|
45827
45800
|
get: function get() {
|
|
45828
45801
|
return this._id;
|
|
@@ -45953,17 +45926,17 @@ var ColDownListProperty = /*#__PURE__*/function () {
|
|
|
45953
45926
|
//允许被删除 编辑器属性是DownList类型的情况
|
|
45954
45927
|
//private _
|
|
45955
45928
|
function ColDownListProperty(objectValues) {
|
|
45956
|
-
(0,
|
|
45957
|
-
(0,
|
|
45929
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ColDownListProperty);
|
|
45930
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_allowMultiSelected", true);
|
|
45958
45931
|
//允许多选 编辑器属性是DownList类型的情况
|
|
45959
|
-
(0,
|
|
45932
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_splitCharacter", ",");
|
|
45960
45933
|
//列表项目分隔字符 编辑器属性是DownList类型的情况
|
|
45961
45934
|
//private _source = ""; //来源 编辑器属性是DownList类型的情况
|
|
45962
|
-
(0,
|
|
45935
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_listItems", "");
|
|
45963
45936
|
//列表项目 编辑器属性是DownList类型的情况
|
|
45964
|
-
(0,
|
|
45937
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canModifyContent", true);
|
|
45965
45938
|
//用户可以直接编辑修改内容 编辑器属性是DownList类型的情况
|
|
45966
|
-
(0,
|
|
45939
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isAllowDel", true);
|
|
45967
45940
|
this._allowMultiSelected = objectValues["allowMultiSelected"] !== undefined ? objectValues["allowMultiSelected"] : objectValues["_allowMultiSelected"];
|
|
45968
45941
|
this._splitCharacter = objectValues["splitCharacter"] ? objectValues["splitCharacter"] : objectValues["_splitCharacter"];
|
|
45969
45942
|
//this._source = objectValues["source"] ? objectValues["source"] : objectValues["_source"];
|
|
@@ -45971,7 +45944,7 @@ var ColDownListProperty = /*#__PURE__*/function () {
|
|
|
45971
45944
|
this._canModifyContent = objectValues["canModifyContent"] !== undefined ? objectValues["canModifyContent"] : objectValues["_canModifyContent"];
|
|
45972
45945
|
this._isAllowDel = objectValues["isAllowDel"] !== undefined ? objectValues["isAllowDel"] : objectValues["_isAllowDel"];
|
|
45973
45946
|
}
|
|
45974
|
-
(0,
|
|
45947
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ColDownListProperty, [{
|
|
45975
45948
|
key: "allowMultiSelected",
|
|
45976
45949
|
get: function get() {
|
|
45977
45950
|
return this._allowMultiSelected;
|
|
@@ -46023,14 +45996,14 @@ var ColDownListProperty = /*#__PURE__*/function () {
|
|
|
46023
45996
|
var DateTimeProperty = /*#__PURE__*/function () {
|
|
46024
45997
|
//是否自动填入当前日期时间
|
|
46025
45998
|
function DateTimeProperty(objectValues) {
|
|
46026
|
-
(0,
|
|
46027
|
-
(0,
|
|
45999
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, DateTimeProperty);
|
|
46000
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_inputStyle", "yyyy-MM-dd HH:mm:ss");
|
|
46028
46001
|
//日期时间输入样式 编辑器属性是DateTime类型的情况
|
|
46029
|
-
(0,
|
|
46002
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isAutoInputCurDate", false);
|
|
46030
46003
|
this._inputStyle = objectValues["inputStyle"] ? objectValues["inputStyle"] : objectValues["_inputStyle"];
|
|
46031
46004
|
this._isAutoInputCurDate = objectValues["isAutoInputCurDate"] === undefined ? objectValues["_isAutoInputCurDate"] === undefined ? false : objectValues["_isAutoInputCurDate"] : objectValues["isAutoInputCurDate"];
|
|
46032
46005
|
}
|
|
46033
|
-
(0,
|
|
46006
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DateTimeProperty, [{
|
|
46034
46007
|
key: "inputStyle",
|
|
46035
46008
|
get: function get() {
|
|
46036
46009
|
return this._inputStyle;
|
|
@@ -46052,14 +46025,14 @@ var DateTimeProperty = /*#__PURE__*/function () {
|
|
|
46052
46025
|
var NumberProperty = /*#__PURE__*/function () {
|
|
46053
46026
|
//最小数值 编辑器属性是Number类型的情况
|
|
46054
46027
|
function NumberProperty(objectValues) {
|
|
46055
|
-
(0,
|
|
46056
|
-
(0,
|
|
46028
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, NumberProperty);
|
|
46029
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_maxNumVal", 0);
|
|
46057
46030
|
//最大数值 编辑器属性是Number类型的情况
|
|
46058
|
-
(0,
|
|
46031
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_minNumVal", 0);
|
|
46059
46032
|
this._maxNumVal = objectValues["maxNumVal"] ? objectValues["maxNumVal"] : objectValues["_maxNumVal"];
|
|
46060
46033
|
this._minNumVal = objectValues["minNumVal"] ? objectValues["minNumVal"] : objectValues["_minNumVal"];
|
|
46061
46034
|
}
|
|
46062
|
-
(0,
|
|
46035
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NumberProperty, [{
|
|
46063
46036
|
key: "maxNumVal",
|
|
46064
46037
|
get: function get() {
|
|
46065
46038
|
return this._maxNumVal;
|
|
@@ -46081,11 +46054,11 @@ var NumberProperty = /*#__PURE__*/function () {
|
|
|
46081
46054
|
var SignProperty = /*#__PURE__*/function () {
|
|
46082
46055
|
//签名名称
|
|
46083
46056
|
function SignProperty(objectValues) {
|
|
46084
|
-
(0,
|
|
46085
|
-
(0,
|
|
46057
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, SignProperty);
|
|
46058
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_name", "签名");
|
|
46086
46059
|
this._name = objectValues["name"] ? objectValues["name"] : objectValues["_name"];
|
|
46087
46060
|
}
|
|
46088
|
-
(0,
|
|
46061
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(SignProperty, [{
|
|
46089
46062
|
key: "name",
|
|
46090
46063
|
get: function get() {
|
|
46091
46064
|
return this._name;
|
|
@@ -46111,33 +46084,33 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46111
46084
|
//是否锁定
|
|
46112
46085
|
function ColProperty(objectValues //, table: TableNode
|
|
46113
46086
|
) {
|
|
46114
|
-
(0,
|
|
46087
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ColProperty);
|
|
46115
46088
|
//private _id!: string;//编号
|
|
46116
|
-
(0,
|
|
46089
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_editorProperty", EditorProperty.None);
|
|
46117
46090
|
//编辑器属性
|
|
46118
|
-
(0,
|
|
46091
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_align", VAlign.vatop);
|
|
46119
46092
|
//垂直对齐方式,
|
|
46120
|
-
(0,
|
|
46093
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_width", 0);
|
|
46121
46094
|
//宽度
|
|
46122
|
-
(0,
|
|
46095
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isSpecifyWidth", false);
|
|
46123
46096
|
//指定宽度
|
|
46124
|
-
(0,
|
|
46125
|
-
(0,
|
|
46126
|
-
(0,
|
|
46127
|
-
(0,
|
|
46097
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_downListProperty", void 0);
|
|
46098
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_dateTimeProperty", void 0);
|
|
46099
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_numberProperty", void 0);
|
|
46100
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_signProperty", void 0);
|
|
46128
46101
|
//签名属性
|
|
46129
|
-
(0,
|
|
46102
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
46130
46103
|
//自定义属性
|
|
46131
|
-
(0,
|
|
46104
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
46132
46105
|
//签名后是否锁定
|
|
46133
|
-
(0,
|
|
46106
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
46134
46107
|
if (objectValues !== "") {
|
|
46135
46108
|
var valuesObj = eval('(' + objectValues + ')');
|
|
46136
46109
|
var assignvalue = function assignvalue(target, source) {
|
|
46137
46110
|
Object.keys(source).forEach(function (value) {
|
|
46138
46111
|
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty" && value !== "signProperty") {
|
|
46139
|
-
if ((0,
|
|
46140
|
-
if ((0,
|
|
46112
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
46113
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(source[value]) == "object") {
|
|
46141
46114
|
assignvalue(target[value], source[value]);
|
|
46142
46115
|
} else {
|
|
46143
46116
|
if (source[value] !== "") {
|
|
@@ -46169,7 +46142,7 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46169
46142
|
// set id(value: string) {
|
|
46170
46143
|
// this._id = value;
|
|
46171
46144
|
// }
|
|
46172
|
-
(0,
|
|
46145
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ColProperty, [{
|
|
46173
46146
|
key: "editorProperty",
|
|
46174
46147
|
get: function get() {
|
|
46175
46148
|
return this._editorProperty;
|
|
@@ -46316,54 +46289,54 @@ var DiagonalType;
|
|
|
46316
46289
|
var CellProperty = /*#__PURE__*/function () {
|
|
46317
46290
|
function CellProperty(objectValues //, table: TableNode
|
|
46318
46291
|
) {
|
|
46319
|
-
(0,
|
|
46292
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, CellProperty);
|
|
46320
46293
|
//private _id!: string;//编号
|
|
46321
46294
|
//private _lightCellBorders = false;//突出显示单元格边框
|
|
46322
46295
|
//private _title = "";//标题
|
|
46323
|
-
(0,
|
|
46296
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
46324
46297
|
//自定义属性
|
|
46325
46298
|
//private _dataSource!: DataSource;//数据源
|
|
46326
|
-
(0,
|
|
46299
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_align", VAlign.vatop);
|
|
46327
46300
|
//垂直对齐方式
|
|
46328
|
-
(0,
|
|
46301
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_cellInnerMargin", [0, 0, 0.1, 0.1]);
|
|
46329
46302
|
//单元格内边距 上、下、左、右
|
|
46330
|
-
(0,
|
|
46303
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isDrawGridlines", true);
|
|
46331
46304
|
//是否绘制网格线
|
|
46332
|
-
(0,
|
|
46305
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_gridLineDisplay", [true, true, true, true]);
|
|
46333
46306
|
//网格线显示 上、下、左、右
|
|
46334
|
-
(0,
|
|
46307
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_gridLinesColor", ["#000000", "#000000", "#000000", "#000000"]);
|
|
46335
46308
|
//网格线颜色
|
|
46336
|
-
(0,
|
|
46309
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_gridLinesStyle", GridLinesStyle.solid);
|
|
46337
46310
|
//网格线样式
|
|
46338
|
-
(0,
|
|
46311
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_span", 0);
|
|
46339
46312
|
//跨度
|
|
46340
|
-
(0,
|
|
46313
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_alignTextToGridline", true);
|
|
46341
46314
|
//文本行对齐到网格线
|
|
46342
|
-
(0,
|
|
46315
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_printGridLines", true);
|
|
46343
46316
|
//打印网格线
|
|
46344
|
-
(0,
|
|
46317
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_obliqueSplitLine", ObliqueSplitLine.None);
|
|
46345
46318
|
//斜分割线
|
|
46346
|
-
(0,
|
|
46347
|
-
(0,
|
|
46319
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_backColor", "#FFFFFF");
|
|
46320
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_editorProperty", EditorProperty.None);
|
|
46348
46321
|
//编辑器属性
|
|
46349
|
-
(0,
|
|
46350
|
-
(0,
|
|
46351
|
-
(0,
|
|
46352
|
-
(0,
|
|
46353
|
-
(0,
|
|
46322
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_downListProperty", void 0);
|
|
46323
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_dateTimeProperty", void 0);
|
|
46324
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_diagonalType", DiagonalType.None);
|
|
46325
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_formula", "");
|
|
46326
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_oldValue", "");
|
|
46354
46327
|
//this._dataSource = new DataSource();
|
|
46355
46328
|
if (objectValues !== "") {
|
|
46356
46329
|
var valuesObj = eval('(' + objectValues + ')');
|
|
46357
46330
|
var assignvalue = function assignvalue(target, source) {
|
|
46358
46331
|
Object.keys(source).forEach(function (value) {
|
|
46359
|
-
if ((0,
|
|
46332
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
46360
46333
|
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty" && value !== "formula") {
|
|
46361
|
-
if ((0,
|
|
46334
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
46362
46335
|
if (value === "gridLinesColor" || value === "cellInnerMargin" || value === "gridLineDisplay") {
|
|
46363
46336
|
target[value] = source[value];
|
|
46364
46337
|
} else {
|
|
46365
|
-
if ((0,
|
|
46366
|
-
if ((0,
|
|
46338
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
46339
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(source[value]) == "object") {
|
|
46367
46340
|
assignvalue(target[value], source[value]);
|
|
46368
46341
|
} else {
|
|
46369
46342
|
if (source[value] !== "") {
|
|
@@ -46411,7 +46384,7 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46411
46384
|
// set title(value: string) {
|
|
46412
46385
|
// this._title = value;
|
|
46413
46386
|
// }
|
|
46414
|
-
(0,
|
|
46387
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(CellProperty, [{
|
|
46415
46388
|
key: "customProperties",
|
|
46416
46389
|
get: function get() {
|
|
46417
46390
|
return this._customProperties;
|
|
@@ -59923,7 +59896,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
59923
59896
|
/* harmony export */ a: function() { return /* binding */ FormularType; }
|
|
59924
59897
|
/* harmony export */ });
|
|
59925
59898
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
59926
|
-
/* harmony import */ var
|
|
59899
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(40735);
|
|
59927
59900
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27222);
|
|
59928
59901
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8495);
|
|
59929
59902
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
@@ -59954,33 +59927,36 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
59954
59927
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
59955
59928
|
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(68757);
|
|
59956
59929
|
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
59957
|
-
/* harmony import */ var
|
|
59958
|
-
/* harmony import */ var
|
|
59959
|
-
/* harmony import */ var
|
|
59960
|
-
/* harmony import */ var
|
|
59961
|
-
/* harmony import */ var
|
|
59962
|
-
/* harmony import */ var
|
|
59963
|
-
/* harmony import */ var
|
|
59964
|
-
/* harmony import */ var
|
|
59965
|
-
/* harmony import */ var
|
|
59966
|
-
/* harmony import */ var
|
|
59967
|
-
/* harmony import */ var
|
|
59968
|
-
/* harmony import */ var
|
|
59969
|
-
/* harmony import */ var
|
|
59970
|
-
/* harmony import */ var
|
|
59971
|
-
/* harmony import */ var
|
|
59972
|
-
/* harmony import */ var
|
|
59973
|
-
/* harmony import */ var
|
|
59974
|
-
/* harmony import */ var
|
|
59975
|
-
/* harmony import */ var
|
|
59976
|
-
/* harmony import */ var
|
|
59977
|
-
/* harmony import */ var
|
|
59978
|
-
/* harmony import */ var
|
|
59979
|
-
/* harmony import */ var
|
|
59980
|
-
/* harmony import */ var
|
|
59981
|
-
/* harmony import */ var
|
|
59982
|
-
/* harmony import */ var
|
|
59983
|
-
/* harmony import */ var
|
|
59930
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(69826);
|
|
59931
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
59932
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(24603);
|
|
59933
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
59934
|
+
/* harmony import */ var core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(28450);
|
|
59935
|
+
/* harmony import */ var core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
59936
|
+
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(88386);
|
|
59937
|
+
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
59938
|
+
/* harmony import */ var core_js_modules_es_string_match_all_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(76373);
|
|
59939
|
+
/* harmony import */ var core_js_modules_es_string_match_all_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_all_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
59940
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(56977);
|
|
59941
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_26__);
|
|
59942
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(26699);
|
|
59943
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_27__);
|
|
59944
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(32023);
|
|
59945
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_28__);
|
|
59946
|
+
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(2707);
|
|
59947
|
+
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_29__);
|
|
59948
|
+
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(73210);
|
|
59949
|
+
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_30__);
|
|
59950
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTableFormular__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(19956);
|
|
59951
|
+
/* harmony import */ var _editor_utils_ExpressionCalculator__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(71115);
|
|
59952
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(74089);
|
|
59953
|
+
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(62783);
|
|
59954
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(4938);
|
|
59955
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(62358);
|
|
59956
|
+
/* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(68598);
|
|
59957
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(91105);
|
|
59958
|
+
/* harmony import */ var _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(99152);
|
|
59959
|
+
|
|
59984
59960
|
|
|
59985
59961
|
|
|
59986
59962
|
|
|
@@ -60056,7 +60032,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60056
60032
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_hideZero", true);
|
|
60057
60033
|
//计算结果为0时是否隐藏
|
|
60058
60034
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_cellRange", void 0);
|
|
60059
|
-
_this._id =
|
|
60035
|
+
_this._id = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("TFS");
|
|
60060
60036
|
_this._styleIndex = styleIndex;
|
|
60061
60037
|
_this.isAllowDelete = true;
|
|
60062
60038
|
_this._cellRange = new Array();
|
|
@@ -60171,7 +60147,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60171
60147
|
set: function set(val) {
|
|
60172
60148
|
if (this._styleIndex !== Number(val)) {
|
|
60173
60149
|
this._styleIndex = Number(val);
|
|
60174
|
-
var hoEditorFactory =
|
|
60150
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60175
60151
|
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
60176
60152
|
this.node2DrawNode();
|
|
60177
60153
|
}
|
|
@@ -60180,7 +60156,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60180
60156
|
}, {
|
|
60181
60157
|
key: "refreshDrawStyle",
|
|
60182
60158
|
value: function refreshDrawStyle() {
|
|
60183
|
-
var hoEditorFactory =
|
|
60159
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60184
60160
|
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
60185
60161
|
var cbStyle;
|
|
60186
60162
|
if (textStyle) {
|
|
@@ -60199,7 +60175,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60199
60175
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
60200
60176
|
this.refreshDrawStyle();
|
|
60201
60177
|
//const text = this._hideZero && (this._text == "0" || this._text === "0.00") ? " " : this._text;
|
|
60202
|
-
var dNode = new
|
|
60178
|
+
var dNode = new _editor_draw_drawNode_DrawTableFormular__WEBPACK_IMPORTED_MODULE_31__/* .DrawTableFormular */ .A(this._rootPath, this, this._text);
|
|
60203
60179
|
this._drawNodes.push(dNode);
|
|
60204
60180
|
}
|
|
60205
60181
|
}, {
|
|
@@ -60225,7 +60201,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60225
60201
|
}
|
|
60226
60202
|
dline.addChild(this._drawNodes[0]);
|
|
60227
60203
|
dline.drawItems.push(this._drawNodes[0]);
|
|
60228
|
-
|
|
60204
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.formularNodes.set(this.id, this);
|
|
60229
60205
|
dline.fitLines();
|
|
60230
60206
|
return dline.paragraphNode.getLastDrawline();
|
|
60231
60207
|
}
|
|
@@ -60238,7 +60214,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60238
60214
|
key: "node2Json",
|
|
60239
60215
|
value: function node2Json(range, isCopy) {
|
|
60240
60216
|
var retObj = {
|
|
60241
|
-
nodeType:
|
|
60217
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_36__/* .NodeType */ .Jq[this.nodeType],
|
|
60242
60218
|
text: this._formulaStr,
|
|
60243
60219
|
styleIndex: this.styleIndex,
|
|
60244
60220
|
//hideZero: this._hideZero,
|
|
@@ -60260,7 +60236,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60260
60236
|
value: function getParentCell() {
|
|
60261
60237
|
var pNode = this.parentNode;
|
|
60262
60238
|
while (pNode) {
|
|
60263
|
-
if (pNode instanceof
|
|
60239
|
+
if (pNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_37__/* .CellNode */ .D) {
|
|
60264
60240
|
return pNode;
|
|
60265
60241
|
}
|
|
60266
60242
|
pNode = pNode.parentNode;
|
|
@@ -60373,8 +60349,18 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60373
60349
|
// }
|
|
60374
60350
|
// }
|
|
60375
60351
|
//const strValue = cell.getCellText().replaceAll('\n', '').replaceAll(' ', '').replaceAll('\b', '').replaceAll('\r', '');
|
|
60376
|
-
var hoEditorFactory =
|
|
60352
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60377
60353
|
var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
|
|
60354
|
+
//如果单元格存在下拉项,取值为下拉项的value,而非节点的text
|
|
60355
|
+
if (strValue && cell.cellProperty.downListProperty) {
|
|
60356
|
+
var listItems = JSON.parse(cell.cellProperty.downListProperty.listItems);
|
|
60357
|
+
var itemObject = listItems.find(function (item) {
|
|
60358
|
+
return item.text === strValue;
|
|
60359
|
+
});
|
|
60360
|
+
if (itemObject) {
|
|
60361
|
+
strValue = itemObject.value;
|
|
60362
|
+
}
|
|
60363
|
+
}
|
|
60378
60364
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, ' ', '');
|
|
60379
60365
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\b', '');
|
|
60380
60366
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
|
|
@@ -60382,7 +60368,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60382
60368
|
bret = true;
|
|
60383
60369
|
for (var i = 1; i < cell.childNodes.length; i++) {
|
|
60384
60370
|
var aNode = cell.childNodes[i];
|
|
60385
|
-
if (aNode instanceof
|
|
60371
|
+
if (aNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
60386
60372
|
bret = true;
|
|
60387
60373
|
if (aNode.isSelected && aNode.numericValue !== "") {
|
|
60388
60374
|
ret = aNode.numericValue;
|
|
@@ -60399,7 +60385,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60399
60385
|
} else {
|
|
60400
60386
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
60401
60387
|
var bNode = cell.childNodes[j];
|
|
60402
|
-
if (bNode instanceof
|
|
60388
|
+
if (bNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
60403
60389
|
bret = true;
|
|
60404
60390
|
if (bNode.isSelected && bNode.numericValue !== "") {
|
|
60405
60391
|
ret = bNode.numericValue;
|
|
@@ -60484,7 +60470,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60484
60470
|
return ' ';
|
|
60485
60471
|
}
|
|
60486
60472
|
if (totalOk) {
|
|
60487
|
-
var hoEditorFactory =
|
|
60473
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60488
60474
|
var isRet = true;
|
|
60489
60475
|
for (var m = 0; m < value.length; m++) {
|
|
60490
60476
|
if (value[m] !== "") {
|
|
@@ -60499,7 +60485,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60499
60485
|
strFormula = hoEditorFactory.unitConvert.replaceAll(strFormula, arr[k], value[k] == "" ? "0" : value[k]); //strFormula.replaceAll(arr[k], value[k]);
|
|
60500
60486
|
}
|
|
60501
60487
|
|
|
60502
|
-
var result = (0,
|
|
60488
|
+
var result = (0,_editor_utils_ExpressionCalculator__WEBPACK_IMPORTED_MODULE_32__/* .expressionCalculator */ .C)(strFormula);
|
|
60503
60489
|
strRet = result == "NaN" ? " " : result;
|
|
60504
60490
|
}
|
|
60505
60491
|
return strRet;
|
|
@@ -60511,7 +60497,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60511
60497
|
var table = this.getParentCell().table;
|
|
60512
60498
|
var arrStr = this.formulaStr.split(",");
|
|
60513
60499
|
if (arrStr.length < 2) {
|
|
60514
|
-
|
|
60500
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("体重和身高对应的单元格编号传入有误:" + this.formulaStr);
|
|
60515
60501
|
}
|
|
60516
60502
|
var _this$getRowColByCell7 = this.getRowColByCellAdress(arrStr[0]),
|
|
60517
60503
|
_this$getRowColByCell8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell7, 2),
|
|
@@ -60557,7 +60543,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60557
60543
|
var table = this.getParentCell().table;
|
|
60558
60544
|
var arrStr = this.formulaStr.split(",");
|
|
60559
60545
|
if (arrStr.length < 2) {
|
|
60560
|
-
|
|
60546
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("单元格编号传入有误:" + this.formulaStr);
|
|
60561
60547
|
}
|
|
60562
60548
|
var _this$getRowColByCell11 = this.getRowColByCellAdress(arrStr[0]),
|
|
60563
60549
|
_this$getRowColByCell12 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell11, 2),
|
|
@@ -60585,18 +60571,18 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60585
60571
|
var eDateStr = eCell.getCellText();
|
|
60586
60572
|
if (arrStr.length === 2) {
|
|
60587
60573
|
if (sDateStr.indexOf("年") >= 0 && sDateStr.indexOf("时") >= 0) {
|
|
60588
|
-
sDateStr = (0,
|
|
60574
|
+
sDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(sDateStr, "yyyy-MM-dd HH:mm:ss");
|
|
60589
60575
|
}
|
|
60590
60576
|
if (eDateStr.indexOf("年") >= 0 && eDateStr.indexOf("时") >= 0) {
|
|
60591
|
-
eDateStr = (0,
|
|
60577
|
+
eDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(eDateStr, "yyyy-MM-dd HH:mm:ss");
|
|
60592
60578
|
}
|
|
60593
60579
|
if (sDateStr.indexOf("年") >= 0 && sDateStr.indexOf("时") == -1) {
|
|
60594
|
-
sDateStr = (0,
|
|
60580
|
+
sDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(sDateStr, "yyyy/MM/dd");
|
|
60595
60581
|
}
|
|
60596
60582
|
if (eDateStr.indexOf("年") >= 0 && eDateStr.indexOf("时") == -1) {
|
|
60597
|
-
eDateStr = (0,
|
|
60583
|
+
eDateStr = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(eDateStr, "yyyy/MM/dd");
|
|
60598
60584
|
}
|
|
60599
|
-
if ((0,
|
|
60585
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(sDateStr) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(eDateStr)) {
|
|
60600
60586
|
var sDate = new Date(sDateStr);
|
|
60601
60587
|
var eDate = new Date(eDateStr);
|
|
60602
60588
|
var sTime = sDate.getTime();
|
|
@@ -60732,7 +60718,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60732
60718
|
var cell = table.rows[row][col];
|
|
60733
60719
|
if (cell) {
|
|
60734
60720
|
var lastMenstryDate = cell.getCellText();
|
|
60735
|
-
if ((0,
|
|
60721
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(lastMenstryDate)) {
|
|
60736
60722
|
var date = new Date(lastMenstryDate);
|
|
60737
60723
|
// const year = date.getFullYear();
|
|
60738
60724
|
// const month = date.getMonth()+1;
|
|
@@ -60772,7 +60758,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60772
60758
|
var cell = table.rows[row][col];
|
|
60773
60759
|
if (cell) {
|
|
60774
60760
|
var lastMenstryDate = cell.getCellText();
|
|
60775
|
-
if ((0,
|
|
60761
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(lastMenstryDate)) {
|
|
60776
60762
|
var date = new Date(lastMenstryDate);
|
|
60777
60763
|
var sTime = date.getTime();
|
|
60778
60764
|
var eTime = Date.now();
|
|
@@ -60821,7 +60807,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60821
60807
|
tableFormular = node;
|
|
60822
60808
|
break;
|
|
60823
60809
|
}
|
|
60824
|
-
if (node instanceof
|
|
60810
|
+
if (node instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_35__/* .BaseCombineNode */ .V) {
|
|
60825
60811
|
loopNodes(node.childNodes);
|
|
60826
60812
|
}
|
|
60827
60813
|
}
|
|
@@ -60830,6 +60816,29 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60830
60816
|
var scoreText = "";
|
|
60831
60817
|
if (!(tableFormular instanceof TableFormula)) {
|
|
60832
60818
|
scoreText = cell.getCellText();
|
|
60819
|
+
var ivalue = Number(scoreText);
|
|
60820
|
+
if (isNaN(ivalue)) {
|
|
60821
|
+
var downListProperty = cell.cellProperty.downListProperty;
|
|
60822
|
+
var listItems = JSON.parse(downListProperty.listItems);
|
|
60823
|
+
if (listItems.length === undefined) {
|
|
60824
|
+
listItems = Array(JSON.parse(downListProperty.listItems));
|
|
60825
|
+
}
|
|
60826
|
+
for (var _i2 = 0; _i2 < listItems.length; _i2++) {
|
|
60827
|
+
var listItem = listItems[_i2];
|
|
60828
|
+
if (listItem.text === scoreText) {
|
|
60829
|
+
if (listItem.value !== "") {
|
|
60830
|
+
var val = Number(listItem.value);
|
|
60831
|
+
if (!isNaN(val)) {
|
|
60832
|
+
//total += val;
|
|
60833
|
+
scoreText = listItem.value;
|
|
60834
|
+
break;
|
|
60835
|
+
}
|
|
60836
|
+
}
|
|
60837
|
+
} else {
|
|
60838
|
+
continue;
|
|
60839
|
+
}
|
|
60840
|
+
}
|
|
60841
|
+
}
|
|
60833
60842
|
} else {
|
|
60834
60843
|
scoreText = tableFormular.text;
|
|
60835
60844
|
}
|
|
@@ -60885,7 +60894,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60885
60894
|
var strRet = " ";
|
|
60886
60895
|
var table = this.getParentCell().table;
|
|
60887
60896
|
if (this.formulaStr == "") {
|
|
60888
|
-
|
|
60897
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("体重的单元格编号传入有误:" + this.formulaStr);
|
|
60889
60898
|
}
|
|
60890
60899
|
var _this$getRowColByCell21 = this.getRowColByCellAdress(this.formulaStr),
|
|
60891
60900
|
_this$getRowColByCell22 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell21, 2),
|
|
@@ -60921,7 +60930,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60921
60930
|
var table = this.getParentCell().table;
|
|
60922
60931
|
var arrStr = this.formulaStr.split(",");
|
|
60923
60932
|
if (arrStr.length < 2) {
|
|
60924
|
-
|
|
60933
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
60925
60934
|
return strRet;
|
|
60926
60935
|
}
|
|
60927
60936
|
var _this$getRowColByCell23 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -60941,7 +60950,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60941
60950
|
var rysj = rCell.getCellText();
|
|
60942
60951
|
var cysj = cCell.getCellText();
|
|
60943
60952
|
if (!rysj || !cysj) return strRet;
|
|
60944
|
-
if ((0,
|
|
60953
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(rysj) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(cysj)) {
|
|
60945
60954
|
var rDate = new Date(rysj);
|
|
60946
60955
|
var cDate = new Date(cysj);
|
|
60947
60956
|
// 将日期转换为 UTC 时间戳
|
|
@@ -60965,7 +60974,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60965
60974
|
var table = this.getParentCell().table;
|
|
60966
60975
|
var arrStr = this.formulaStr.split(",");
|
|
60967
60976
|
if (arrStr.length < 2) {
|
|
60968
|
-
|
|
60977
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("开始时间和结束时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
60969
60978
|
return strRet;
|
|
60970
60979
|
}
|
|
60971
60980
|
var _this$getRowColByCell27 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -60986,24 +60995,24 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60986
60995
|
var cysj = cCell.getCellText();
|
|
60987
60996
|
if (!rysj || !cysj) return strRet;
|
|
60988
60997
|
if (rysj.indexOf("年") >= 0 && rysj.indexOf("时") >= 0) {
|
|
60989
|
-
rysj = (0,
|
|
60998
|
+
rysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(rysj, "yyyy-MM-dd HH:mm:ss");
|
|
60990
60999
|
}
|
|
60991
61000
|
if (cysj.indexOf("年") >= 0 && cysj.indexOf("时") >= 0) {
|
|
60992
|
-
cysj = (0,
|
|
61001
|
+
cysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(cysj, "yyyy-MM-dd HH:mm:ss");
|
|
60993
61002
|
}
|
|
60994
61003
|
if (rysj.indexOf("年") >= 0 && rysj.indexOf("时") == -1) {
|
|
60995
|
-
rysj = (0,
|
|
61004
|
+
rysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(rysj, "yyyy/MM/dd");
|
|
60996
61005
|
}
|
|
60997
61006
|
if (cysj.indexOf("年") >= 0 && cysj.indexOf("时") == -1) {
|
|
60998
|
-
cysj = (0,
|
|
61007
|
+
cysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(cysj, "yyyy/MM/dd");
|
|
60999
61008
|
}
|
|
61000
61009
|
if (rysj.indexOf("-") >= 0 && rysj.indexOf(" ") == -1) {
|
|
61001
|
-
rysj = (0,
|
|
61010
|
+
rysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(rysj, "yyyy/MM/dd");
|
|
61002
61011
|
}
|
|
61003
61012
|
if (cysj.indexOf("-") >= 0 && cysj.indexOf(" ") == -1) {
|
|
61004
|
-
cysj = (0,
|
|
61013
|
+
cysj = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .dateFormat */ .vc)(cysj, "yyyy/MM/dd");
|
|
61005
61014
|
}
|
|
61006
|
-
if ((0,
|
|
61015
|
+
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(rysj) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_34__/* .isDate */ .J_)(cysj)) {
|
|
61007
61016
|
var rDate = new Date(rysj);
|
|
61008
61017
|
var cDate = new Date(cysj);
|
|
61009
61018
|
var rHour = rDate.getHours();
|
|
@@ -61058,7 +61067,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61058
61067
|
var strRet = " ";
|
|
61059
61068
|
var table = this.getParentCell().table;
|
|
61060
61069
|
if (this.formulaStr == "") {
|
|
61061
|
-
|
|
61070
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("身高的单元格编号传入有误:" + this.formulaStr);
|
|
61062
61071
|
}
|
|
61063
61072
|
var cellNo = "";
|
|
61064
61073
|
var isRange = false;
|
|
@@ -61189,7 +61198,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61189
61198
|
}, {
|
|
61190
61199
|
key: "delete",
|
|
61191
61200
|
value: function _delete(operType) {
|
|
61192
|
-
|
|
61201
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.formularNodes.delete(this._id);
|
|
61193
61202
|
(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)(TableFormula.prototype), "delete", this).call(this, operType);
|
|
61194
61203
|
return true;
|
|
61195
61204
|
}
|
|
@@ -61239,12 +61248,12 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61239
61248
|
} else {
|
|
61240
61249
|
formularType = json.text.indexOf(':') >= 0 ? FormularType.ftSum : FormularType.ftFormular;
|
|
61241
61250
|
}
|
|
61242
|
-
var ret = new TableFormula(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
61251
|
+
var ret = new TableFormula(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_36__/* .NodeType */ .Jq.ntTableFormula, json.text, styleIndex, hideZero, formularType, json.customProperty);
|
|
61243
61252
|
return ret;
|
|
61244
61253
|
}
|
|
61245
61254
|
}]);
|
|
61246
61255
|
return TableFormula;
|
|
61247
|
-
}(
|
|
61256
|
+
}(_ControlNode__WEBPACK_IMPORTED_MODULE_38__/* .ControlNode */ .w);
|
|
61248
61257
|
|
|
61249
61258
|
/***/ }),
|
|
61250
61259
|
|
|
@@ -63093,7 +63102,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63093
63102
|
// canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
63094
63103
|
// canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
63095
63104
|
// canDeleteRow: this.tableProperty.canDeleteRow,
|
|
63096
|
-
//
|
|
63105
|
+
// canDelTable: this.tableProperty.canDelTable,
|
|
63097
63106
|
// continuePrintBorders: this.tableProperty.continuePrintBorders,
|
|
63098
63107
|
// customProperties,
|
|
63099
63108
|
// layoutFullLine: this.tableProperty.layoutFullLine,
|
|
@@ -63121,8 +63130,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63121
63130
|
if (!this.tableProperty.canDeleteRow) {
|
|
63122
63131
|
tableProperty.canDeleteRow = this.tableProperty.canDeleteRow;
|
|
63123
63132
|
}
|
|
63124
|
-
if (!this.tableProperty.
|
|
63125
|
-
tableProperty.
|
|
63133
|
+
if (!this.tableProperty.canDelTable) {
|
|
63134
|
+
tableProperty.canDelTable = this.tableProperty.canDelTable;
|
|
63126
63135
|
}
|
|
63127
63136
|
if (this.tableProperty.continuePrintBorders) {
|
|
63128
63137
|
tableProperty.continuePrintBorders = this.tableProperty.continuePrintBorders;
|
|
@@ -63397,7 +63406,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63397
63406
|
key: "delete",
|
|
63398
63407
|
value: function _delete(operType) {
|
|
63399
63408
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_41__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
63400
|
-
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign || this.tableProperty.
|
|
63409
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign || this.tableProperty.canDelTable) {
|
|
63401
63410
|
var parentNodes = this.getParentNodes();
|
|
63402
63411
|
var nextParagraphNode = this.nextSibling();
|
|
63403
63412
|
var ret = false;
|
|
@@ -63826,7 +63835,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63826
63835
|
tableProperty.canAddRow = tp["canAddRow"] === false || tp["canAddRow"] === "false" ? false : true;
|
|
63827
63836
|
tableProperty.canAddCol = tp["canAddCol"] === false || tp["canAddCol"] === "false" ? false : true;
|
|
63828
63837
|
tableProperty.canDeleteRow = tp["canDeleteRow"] === false || tp["canDeleteRow"] === 'false' ? false : true;
|
|
63829
|
-
tableProperty.
|
|
63838
|
+
tableProperty.canDelTable = tp["canDelTable"] === false || tp["canDelTable"] === 'false' ? false : true;
|
|
63830
63839
|
tableProperty.continuePrintBorders = tp["continuePrintBorders"] === true || tp["continuePrintBorders"] === "true" ? true : false;
|
|
63831
63840
|
tableProperty.isAutoChangeLine = tp["isAutoChangeLine"] === true || tp["isAutoChangeLine"] === "true" ? true : false;
|
|
63832
63841
|
tableProperty.autoLineHeight = tp["autoLineHeight"] ? Number(tp["autoLineHeight"]) : 0.53;
|
|
@@ -75222,10 +75231,10 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75222
75231
|
this._node = cell.table;
|
|
75223
75232
|
this._rowIndex = rowIndex;
|
|
75224
75233
|
this._colIndex = colIndex;
|
|
75225
|
-
this._dObj.addEventListener(
|
|
75234
|
+
this._dObj.addEventListener('mouseover', function (e) {
|
|
75226
75235
|
return _this.onMouseEnter(e);
|
|
75227
75236
|
});
|
|
75228
|
-
this._dObj.addEventListener(
|
|
75237
|
+
this._dObj.addEventListener('mouseout', function (e) {
|
|
75229
75238
|
return _this.onMouseOut(e);
|
|
75230
75239
|
});
|
|
75231
75240
|
ResizeDrawTableObj._dashLine.visible = false;
|
|
@@ -75233,25 +75242,24 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75233
75242
|
}
|
|
75234
75243
|
(0,createClass/* default */.Z)(ResizeDrawTableObj, [{
|
|
75235
75244
|
key: "isMouseOnRange",
|
|
75236
|
-
value: function isMouseOnRange(stageX, stageY) {
|
|
75245
|
+
value: function isMouseOnRange(stageX, stageY, localX, localY) {
|
|
75237
75246
|
var pos = this._dObj.globalToLocal(stageX, stageY);
|
|
75238
|
-
//
|
|
75247
|
+
// const pos = {
|
|
75248
|
+
// x: localX,
|
|
75249
|
+
// y: localY
|
|
75250
|
+
// };
|
|
75239
75251
|
var inYrange = false;
|
|
75240
75252
|
var inXrange = false;
|
|
75241
75253
|
var rect = this._dObj.getBounds();
|
|
75242
|
-
// console.log("rect", rect.width, rect.height);
|
|
75243
75254
|
if (rect) {
|
|
75244
75255
|
var dWidth = rect.width;
|
|
75245
75256
|
var dHeight = rect.height;
|
|
75246
|
-
if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && Math.abs(pos.y - dHeight) <
|
|
75257
|
+
if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && Math.abs(pos.y - dHeight) < 5) {
|
|
75247
75258
|
inYrange = true;
|
|
75248
|
-
|
|
75249
|
-
// this.setBoundsYMoveable(e.stageY, dWidth);
|
|
75250
|
-
} else if (0 <= pos.y && pos.y <= dHeight && (pos.x < 3 || Math.abs(pos.x - dWidth) < 3)) {
|
|
75259
|
+
} else if (0 <= pos.y && pos.y <= dHeight && (pos.x < 5 || Math.abs(pos.x - dWidth) < 5)) {
|
|
75251
75260
|
inXrange = true;
|
|
75252
75261
|
}
|
|
75253
75262
|
}
|
|
75254
|
-
// console.log("测试", inXrange, inYrange);
|
|
75255
75263
|
return [inXrange, inYrange];
|
|
75256
75264
|
}
|
|
75257
75265
|
}, {
|
|
@@ -75263,7 +75271,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75263
75271
|
return;
|
|
75264
75272
|
}
|
|
75265
75273
|
var rect = this._dObj.getBounds();
|
|
75266
|
-
var _this$isMouseOnRange = this.isMouseOnRange(e.stageX, e.stageY),
|
|
75274
|
+
var _this$isMouseOnRange = this.isMouseOnRange(e.stageX, e.stageY, e.localX, e.localY),
|
|
75267
75275
|
_this$isMouseOnRange2 = (0,slicedToArray/* default */.Z)(_this$isMouseOnRange, 2),
|
|
75268
75276
|
inXRange = _this$isMouseOnRange2[0],
|
|
75269
75277
|
inYrange = _this$isMouseOnRange2[1];
|
|
@@ -75274,13 +75282,15 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75274
75282
|
inXRange = false;
|
|
75275
75283
|
}
|
|
75276
75284
|
if (inYrange) {
|
|
75277
|
-
this._dObj.cursor =
|
|
75285
|
+
this._dObj.cursor = 's-resize';
|
|
75286
|
+
ResizeDrawTableObj._dashLine.graphics.clear().beginFill('#FFFFFF').drawRect(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
75278
75287
|
this.setBoundsYMoveable(e.stageY, rect ? rect.height : 0);
|
|
75279
75288
|
} else if (inXRange) {
|
|
75280
|
-
this._dObj.cursor =
|
|
75289
|
+
this._dObj.cursor = 'w-resize';
|
|
75290
|
+
ResizeDrawTableObj._dashLine.graphics.clear().beginFill('#FFFFFF').drawRect(0, 0, hoEditorFactory.pageProperty.heightPixes, 6);
|
|
75281
75291
|
this.setBoundsXMoveable(e.stageX);
|
|
75282
75292
|
} else {
|
|
75283
|
-
this._dObj.cursor =
|
|
75293
|
+
this._dObj.cursor = 'default';
|
|
75284
75294
|
ResizeDrawTableObj._dashLine.visible = false;
|
|
75285
75295
|
}
|
|
75286
75296
|
}
|
|
@@ -75292,58 +75302,51 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75292
75302
|
if (dPage) {
|
|
75293
75303
|
var selectContainer = dPage.selectContainer;
|
|
75294
75304
|
if (selectContainer) {
|
|
75295
|
-
ResizeDrawTableObj._dashLine.uncache();
|
|
75305
|
+
// ResizeDrawTableObj._dashLine.uncache();
|
|
75296
75306
|
ResizeDrawTableObj._dashLine.visible = true;
|
|
75297
|
-
ResizeDrawTableObj._dashLine.graphics.clear().beginFill(
|
|
75298
|
-
ResizeDrawTableObj._dashLine.graphics.setStrokeDash([
|
|
75299
|
-
ResizeDrawTableObj._dashLine.cache(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
75307
|
+
// ResizeDrawTableObj._dashLine.graphics.clear().beginFill('#FFFFFF').drawRect(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
75308
|
+
ResizeDrawTableObj._dashLine.graphics.setStrokeDash([7, 3], 0).setStrokeStyle(1).beginStroke('#3684e4').drawRect(0, 3, hoEditorFactory.pageProperty.widthPixes, 1);
|
|
75309
|
+
// ResizeDrawTableObj._dashLine.cache(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
75300
75310
|
var pos = this._dObj.localToGlobal(0, 0);
|
|
75301
75311
|
ResizeDrawTableObj._dashLine.x = 0;
|
|
75302
75312
|
ResizeDrawTableObj._dashLine.y = pos.y / DrawConfig/* DrawConfig */.f.instance().scaleXY + (this._dObj.getBounds() ? this._dObj.getBounds().height : 0) - 3;
|
|
75303
|
-
// const hitArea = new createjs.Shape();
|
|
75304
|
-
// this._dashLine.hitArea = hitArea;
|
|
75305
|
-
// hitArea.graphics
|
|
75306
|
-
// .clear()
|
|
75307
|
-
// .beginFill("#000000")
|
|
75308
|
-
// .drawRect(0, 0, HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, 6);
|
|
75309
|
-
// hitArea.x = 0;
|
|
75310
|
-
// hitArea.y = this._dashLine.y - 3;
|
|
75311
|
-
// hitArea.alpha = 0.01;
|
|
75312
|
-
// stage.addChild(hitArea);
|
|
75313
75313
|
selectContainer.addChild(ResizeDrawTableObj._dashLine);
|
|
75314
75314
|
}
|
|
75315
75315
|
var oldY = ResizeDrawTableObj._dashLine.y;
|
|
75316
75316
|
var startY = ResizeDrawTableObj._dashLine.y;
|
|
75317
75317
|
var table = this._node;
|
|
75318
75318
|
var rowIndex = this._rowIndex;
|
|
75319
|
-
|
|
75320
|
-
|
|
75321
|
-
ResizeDrawTableObj._dashLine.removeAllEventListeners(
|
|
75322
|
-
ResizeDrawTableObj._dashLine
|
|
75323
|
-
var
|
|
75324
|
-
ResizeDrawTableObj._dashLine.addEventListener(
|
|
75319
|
+
// const dobj = this._dObj;
|
|
75320
|
+
ResizeDrawTableObj._dashLine.removeAllEventListeners('pressmove');
|
|
75321
|
+
ResizeDrawTableObj._dashLine.removeAllEventListeners('pressup');
|
|
75322
|
+
// const dashLine = ResizeDrawTableObj._dashLine;
|
|
75323
|
+
var isMoved = false;
|
|
75324
|
+
ResizeDrawTableObj._dashLine.addEventListener('pressmove', function (e) {
|
|
75325
75325
|
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
75326
75326
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
75327
|
-
|
|
75328
|
-
|
|
75329
|
-
|
|
75330
|
-
|
|
75331
|
-
//
|
|
75332
|
-
|
|
75333
|
-
|
|
75327
|
+
// console.log("pressmove Y -----", isMoved);
|
|
75328
|
+
// if (!dobj.stage) {
|
|
75329
|
+
// ResizeDrawTableObj._dashLine.visible = false;
|
|
75330
|
+
// return;
|
|
75331
|
+
// }
|
|
75332
|
+
isMoved = true;
|
|
75333
|
+
ResizeDrawTableObj._dashLine.y += e.stageY / DrawConfig/* DrawConfig */.f.instance().scaleXY - oldY;
|
|
75334
75334
|
oldY = e.stageY / DrawConfig/* DrawConfig */.f.instance().scaleXY;
|
|
75335
|
-
//oldY = e.stageY;
|
|
75336
75335
|
});
|
|
75337
|
-
|
|
75338
75336
|
var hoEditorFactoryID = this._hoEditorFactoryID;
|
|
75339
|
-
ResizeDrawTableObj._dashLine.addEventListener(
|
|
75340
|
-
|
|
75341
|
-
|
|
75342
|
-
|
|
75337
|
+
ResizeDrawTableObj._dashLine.addEventListener('pressup', function (e) {
|
|
75338
|
+
// console.log("pressup Y -----", isMoved)
|
|
75339
|
+
// if (!dobj.stage) {
|
|
75340
|
+
// ResizeDrawTableObj._dashLine.visible = false;
|
|
75341
|
+
// return;
|
|
75342
|
+
// }
|
|
75343
|
+
ResizeDrawTableObj._dashLine.visible = false;
|
|
75344
|
+
if (ResizeDrawTableObj._dashLine.stage) {
|
|
75345
|
+
ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
|
|
75343
75346
|
}
|
|
75344
|
-
|
|
75345
|
-
|
|
75346
|
-
|
|
75347
|
+
if (!isMoved) {
|
|
75348
|
+
// 未移动,不做处理 避免点击后立即移动导致混乱
|
|
75349
|
+
return;
|
|
75347
75350
|
}
|
|
75348
75351
|
var newHeight = table.rowInfos[rowIndex].rowHeight + (e.target.y - startY);
|
|
75349
75352
|
var minHeight = hoEditorFactory.defaultLineHeight;
|
|
@@ -75357,69 +75360,59 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75357
75360
|
hoEditorFactory.undoService.begin();
|
|
75358
75361
|
hoEditorFactory.undoService.add(new TableResizeRowUndoUnit/* TableResizeRowUndoUnit */.w(hoEditorFactoryID, table, rowIndex, table.rowInfos[rowIndex].rowHeight, newHeight));
|
|
75359
75362
|
hoEditorFactory.undoService.commit();
|
|
75360
|
-
// table.rowInfos[rowIndex].rowHeight = newHeight;
|
|
75361
|
-
// table.updateRowHeight([rowIndex]);
|
|
75362
|
-
// table.update();
|
|
75363
75363
|
});
|
|
75364
75364
|
}
|
|
75365
75365
|
}
|
|
75366
75366
|
}, {
|
|
75367
75367
|
key: "setBoundsXMoveable",
|
|
75368
75368
|
value: function setBoundsXMoveable(x) {
|
|
75369
|
-
var
|
|
75369
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
75370
|
+
var dPage = hoEditorFactory.drawPageTree.getDrawPageByDNode(this._dObj);
|
|
75370
75371
|
if (dPage) {
|
|
75371
75372
|
var selectContainer = dPage.selectContainer;
|
|
75372
75373
|
if (selectContainer) {
|
|
75373
|
-
ResizeDrawTableObj._dashLine.uncache();
|
|
75374
|
-
ResizeDrawTableObj._dashLine.
|
|
75375
|
-
ResizeDrawTableObj._dashLine.graphics.
|
|
75376
|
-
ResizeDrawTableObj._dashLine.
|
|
75374
|
+
// ResizeDrawTableObj._dashLine.uncache();
|
|
75375
|
+
ResizeDrawTableObj._dashLine.visible = true;
|
|
75376
|
+
// ResizeDrawTableObj._dashLine.graphics.clear().beginFill('#FFFFFF').drawRect(0, 0, 6, hoEditorFactory.pageProperty.heightPixes);
|
|
75377
|
+
ResizeDrawTableObj._dashLine.graphics.setStrokeDash([7, 3], 0).setStrokeStyle(1).beginStroke('#3684e4').drawRect(3, 0, 1, hoEditorFactory.pageProperty.heightPixes);
|
|
75378
|
+
// ResizeDrawTableObj._dashLine.cache(0, 0, 6, hoEditorFactory.pageProperty.heightPixes);
|
|
75377
75379
|
ResizeDrawTableObj._dashLine.x = x / DrawConfig/* DrawConfig */.f.instance().scaleXY - 3;
|
|
75378
75380
|
ResizeDrawTableObj._dashLine.y = 0;
|
|
75379
|
-
ResizeDrawTableObj._dashLine.visible = true;
|
|
75380
|
-
// const hitArea = new createjs.Shape();
|
|
75381
|
-
// this._dashLine.hitArea = hitArea;
|
|
75382
|
-
// hitArea.graphics
|
|
75383
|
-
// .clear()
|
|
75384
|
-
// .beginFill("#000000")
|
|
75385
|
-
// .drawRect(0, 0, HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, 6);
|
|
75386
|
-
// hitArea.x = 0;
|
|
75387
|
-
// hitArea.y = this._dashLine.y - 3;
|
|
75388
|
-
// hitArea.alpha = 0.01;
|
|
75389
|
-
// stage.addChild(hitArea);
|
|
75390
75381
|
selectContainer.addChild(ResizeDrawTableObj._dashLine);
|
|
75391
75382
|
}
|
|
75392
75383
|
}
|
|
75393
75384
|
var oldX = ResizeDrawTableObj._dashLine.x;
|
|
75394
75385
|
var startX = ResizeDrawTableObj._dashLine.x;
|
|
75395
75386
|
var table = this._node;
|
|
75396
|
-
var rowIndex = this._rowIndex;
|
|
75397
75387
|
var colIndex = this._colIndex;
|
|
75398
|
-
|
|
75399
|
-
|
|
75400
|
-
ResizeDrawTableObj._dashLine.removeAllEventListeners(
|
|
75401
|
-
ResizeDrawTableObj._dashLine
|
|
75402
|
-
var
|
|
75403
|
-
ResizeDrawTableObj._dashLine.addEventListener(
|
|
75404
|
-
|
|
75405
|
-
|
|
75406
|
-
|
|
75407
|
-
|
|
75408
|
-
//
|
|
75409
|
-
|
|
75410
|
-
|
|
75388
|
+
// const dobj = this._dObj;
|
|
75389
|
+
ResizeDrawTableObj._dashLine.removeAllEventListeners('pressmove');
|
|
75390
|
+
ResizeDrawTableObj._dashLine.removeAllEventListeners('pressup');
|
|
75391
|
+
// const dashLine = ResizeDrawTableObj._dashLine;
|
|
75392
|
+
var isMoved = false;
|
|
75393
|
+
ResizeDrawTableObj._dashLine.addEventListener('pressmove', function (e) {
|
|
75394
|
+
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
75395
|
+
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
75396
|
+
// if (!dobj.stage) {
|
|
75397
|
+
// ResizeDrawTableObj._dashLine.visible = false;
|
|
75398
|
+
// return;
|
|
75399
|
+
// }
|
|
75400
|
+
isMoved = true;
|
|
75401
|
+
ResizeDrawTableObj._dashLine.x += e.stageX / DrawConfig/* DrawConfig */.f.instance().scaleXY - oldX;
|
|
75411
75402
|
oldX = e.stageX / DrawConfig/* DrawConfig */.f.instance().scaleXY;
|
|
75412
|
-
//oldY = e.stageY;
|
|
75413
75403
|
});
|
|
75414
|
-
|
|
75415
|
-
|
|
75416
|
-
|
|
75417
|
-
|
|
75418
|
-
|
|
75404
|
+
ResizeDrawTableObj._dashLine.addEventListener('pressup', function (e) {
|
|
75405
|
+
// if (!dobj.stage) {
|
|
75406
|
+
// ResizeDrawTableObj._dashLine.visible = false;
|
|
75407
|
+
// return;
|
|
75408
|
+
// }
|
|
75409
|
+
ResizeDrawTableObj._dashLine.visible = false;
|
|
75410
|
+
if (ResizeDrawTableObj._dashLine.stage) {
|
|
75411
|
+
ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
|
|
75419
75412
|
}
|
|
75420
|
-
|
|
75421
|
-
|
|
75422
|
-
|
|
75413
|
+
if (!isMoved) {
|
|
75414
|
+
// 未移动,不做处理 避免点击后立即移动导致混乱
|
|
75415
|
+
return;
|
|
75423
75416
|
}
|
|
75424
75417
|
var deltaWidth = e.target.x - startX;
|
|
75425
75418
|
var oldWidth = table.colInfos[colIndex].colWidth;
|
|
@@ -75427,28 +75420,13 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75427
75420
|
hoEditorFactory.undoService.begin();
|
|
75428
75421
|
hoEditorFactory.undoService.add(new TableResizeColUndoUnit/* TableResizeColUndoUnit */.D(hoEditorFactory.hoEditorFactoryId, table, colIndex, newWidth));
|
|
75429
75422
|
hoEditorFactory.undoService.commit();
|
|
75430
|
-
// table.colInfos[colIndex].colWidth += deltaWidth;
|
|
75431
|
-
// if (table.colInfos[colIndex].colWidth < 20) {
|
|
75432
|
-
// table.colInfos[colIndex].colWidth = 20;
|
|
75433
|
-
// }
|
|
75434
|
-
// colindexs.push(colIndex);
|
|
75435
|
-
// if (colIndex < table.colInfos.length - 1) {
|
|
75436
|
-
// table.colInfos[colIndex + 1].colWidth +=
|
|
75437
|
-
// oldWidth - table.colInfos[colIndex].colWidth;
|
|
75438
|
-
// colindexs.push(colIndex + 1);
|
|
75439
|
-
// if (table.colInfos[colIndex + 1].colWidth < 20) {
|
|
75440
|
-
// table.colInfos[colIndex + 1].colWidth = 20;
|
|
75441
|
-
// }
|
|
75442
|
-
// }
|
|
75443
|
-
// table.updateColWidth(colindexs);
|
|
75444
|
-
// table.update();
|
|
75445
75423
|
});
|
|
75446
75424
|
}
|
|
75447
75425
|
}, {
|
|
75448
75426
|
key: "onMouseOut",
|
|
75449
75427
|
value: function onMouseOut(e) {
|
|
75450
75428
|
if (ResizeDrawTableObj._dashLine && e.nativeEvent.buttons === 0) {
|
|
75451
|
-
var _this$isMouseOnRange3 = this.isMouseOnRange(e.stageX, e.stageY),
|
|
75429
|
+
var _this$isMouseOnRange3 = this.isMouseOnRange(e.stageX, e.stageY, e.localX, e.localY),
|
|
75452
75430
|
_this$isMouseOnRange4 = (0,slicedToArray/* default */.Z)(_this$isMouseOnRange3, 2),
|
|
75453
75431
|
inXrange = _this$isMouseOnRange4[0],
|
|
75454
75432
|
inYrange = _this$isMouseOnRange4[1];
|
|
@@ -75457,7 +75435,8 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
75457
75435
|
ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
|
|
75458
75436
|
}
|
|
75459
75437
|
ResizeDrawTableObj._dashLine.visible = false;
|
|
75460
|
-
|
|
75438
|
+
// ResizeDrawTableObj._dashLine.removeAllEventListeners('pressmove');
|
|
75439
|
+
this._dObj.cursor = 'default';
|
|
75461
75440
|
}
|
|
75462
75441
|
}
|
|
75463
75442
|
}
|
|
@@ -75928,9 +75907,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
75928
75907
|
this._touchArea.y = 0;
|
|
75929
75908
|
this._touchArea.graphics.clear().beginFill("#000000")
|
|
75930
75909
|
//右竖线
|
|
75931
|
-
.drawRect(this._dWidth -
|
|
75910
|
+
.drawRect(this._dWidth - 5, 0, 10, rowHeight)
|
|
75932
75911
|
//下横线
|
|
75933
|
-
.drawRect(0, rowHeight -
|
|
75912
|
+
.drawRect(0, rowHeight - 5, this._dWidth, 10);
|
|
75934
75913
|
this._touchArea.alpha = 0.01;
|
|
75935
75914
|
this._touchArea.setBounds(0, 0, this._dWidth, rowHeight);
|
|
75936
75915
|
if (!this.contains(this._touchArea)) {
|
|
@@ -90862,11 +90841,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90862
90841
|
_context3.next = 73;
|
|
90863
90842
|
break;
|
|
90864
90843
|
}
|
|
90865
|
-
node = nodes[n];
|
|
90866
|
-
// message.warn("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
|
|
90867
|
-
// this._isError = true;
|
|
90868
|
-
// return;
|
|
90869
|
-
// }
|
|
90844
|
+
node = nodes[n];
|
|
90870
90845
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re)) {
|
|
90871
90846
|
_context3.next = 44;
|
|
90872
90847
|
break;
|
|
@@ -90924,7 +90899,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90924
90899
|
this._isError = true;
|
|
90925
90900
|
return _context3.abrupt("return");
|
|
90926
90901
|
case 60:
|
|
90927
|
-
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
90902
|
+
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh && !node.tableProperty.canDelTable)) {
|
|
90928
90903
|
_context3.next = 65;
|
|
90929
90904
|
break;
|
|
90930
90905
|
}
|
|
@@ -169035,7 +169010,7 @@ var map = {
|
|
|
169035
169010
|
"./table/TableForm.vue": 79036,
|
|
169036
169011
|
"./table/TableFormTree.vue": 84804,
|
|
169037
169012
|
"./table/TableFormula.vue": 80199,
|
|
169038
|
-
"./table/TableProperty.vue":
|
|
169013
|
+
"./table/TableProperty.vue": 98800,
|
|
169039
169014
|
"./table/TableRowProperty.vue": 55631,
|
|
169040
169015
|
"./textDialog/TextDialog.vue": 49594,
|
|
169041
169016
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
@@ -209666,7 +209641,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209666
209641
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209667
209642
|
var ParagraphNode = __webpack_require__(67945);
|
|
209668
209643
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209669
|
-
/* harmony default export */ var version = ('3.1.
|
|
209644
|
+
/* harmony default export */ var version = ('3.1.114');
|
|
209670
209645
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209671
209646
|
var PoperTipText = __webpack_require__(50987);
|
|
209672
209647
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -213097,7 +213072,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
213097
213072
|
jquery_default()(jnode).attr;
|
|
213098
213073
|
var tableProperty = new TableProperty/* TableProperty */.vE('');
|
|
213099
213074
|
tableProperty.continuePrintBorders = tableProperty['continuePrintBorders'] || false;
|
|
213100
|
-
tableProperty.
|
|
213075
|
+
tableProperty.canDelTable = tableProperty['canDelTable'] || false;
|
|
213101
213076
|
tableProperty.canDeleteRow = tableProperty['canDeleteRow'] || false;
|
|
213102
213077
|
tableProperty.canAddRow = tableProperty['canAddRow'] || false;
|
|
213103
213078
|
tableProperty.canAddCol = tableProperty['canAddCol'] || false;
|
|
@@ -218165,14 +218140,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218165
218140
|
*/
|
|
218166
218141
|
}, {
|
|
218167
218142
|
key: "insertTable",
|
|
218168
|
-
value: function insertTable(irow, icol) {
|
|
218143
|
+
value: function insertTable(irow, icol, property) {
|
|
218169
218144
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218170
218145
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
218171
218146
|
var startPath = _curDomRange.normalize().startPath;
|
|
218172
218147
|
var endPath = _curDomRange.normalize().endPath;
|
|
218173
218148
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertTable);
|
|
218174
218149
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
218175
|
-
hoEditorFactory.docController.insertTable(_curDomRange, irow, icol);
|
|
218150
|
+
hoEditorFactory.docController.insertTable(_curDomRange, irow, icol, property);
|
|
218176
218151
|
}
|
|
218177
218152
|
}
|
|
218178
218153
|
/**
|
|
@@ -218320,7 +218295,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218320
218295
|
* @params `canAdjustRowHeight bool 用户可调整行高(默认true)`
|
|
218321
218296
|
* @params `canAdjustRowWidth bool 用户可调整行宽(默认true)`
|
|
218322
218297
|
* @params `canDeleteRow bool 用户可删除表格行(默认true)`
|
|
218323
|
-
* @params `
|
|
218298
|
+
* @params `canDelTable bool 用户可删除表格(默认true)`
|
|
218324
218299
|
* @params `continuePrintBorders bool 续打时打印所有单元格边框(默认false)`
|
|
218325
218300
|
* @params `customProperties object[] 自定义属性(默认空) [{text: '', value: ''}]`
|
|
218326
218301
|
*/
|
|
@@ -221149,6 +221124,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221149
221124
|
key: "insertXml",
|
|
221150
221125
|
value: function insertXml(xml, area, printAsSinglePage, isDelBlockLine, isNewPage) {
|
|
221151
221126
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221127
|
+
if (xml && !xml.includes("<?xml version")) {
|
|
221128
|
+
xml = gBase64.decode(xml);
|
|
221129
|
+
}
|
|
221152
221130
|
var areaNodes = this.updateStyles(area, xml);
|
|
221153
221131
|
var jsonData = JSON.stringify(areaNodes[0]);
|
|
221154
221132
|
var docId = areaNodes[1];
|
|
@@ -224975,7 +224953,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224975
224953
|
canAdjustRowHeight: node.tableProperty.canAdjustRowHeight,
|
|
224976
224954
|
canAdjustRowWidth: node.tableProperty.canAdjustRowWidth,
|
|
224977
224955
|
canDeleteRow: node.tableProperty.canDeleteRow,
|
|
224978
|
-
|
|
224956
|
+
canDelTable: node.tableProperty.canDelTable,
|
|
224979
224957
|
continuePrintBorders: node.tableProperty.continuePrintBorders,
|
|
224980
224958
|
customProperties: customProperties,
|
|
224981
224959
|
isAutoChangeLine: node.tableProperty.isAutoChangeLine,
|
|
@@ -238214,7 +238192,7 @@ var TableController = /*#__PURE__*/function () {
|
|
|
238214
238192
|
* @params `canAdjustRowHeight bool 用户可调整行高(默认true)`
|
|
238215
238193
|
* @params `canAdjustRowWidth bool 用户可调整行宽(默认true)`
|
|
238216
238194
|
* @params `canDeleteRow bool 用户可删除表格行(默认true)`
|
|
238217
|
-
* @params `
|
|
238195
|
+
* @params `canDelTable bool 用户可删除表格(默认true)`
|
|
238218
238196
|
* @params `continuePrintBorders bool 续打时打印所有单元格边框(默认false)`
|
|
238219
238197
|
* @params `customProperties object[] 自定义属性(默认空) [{text: '', value: ''}]`
|
|
238220
238198
|
*/
|
|
@@ -244885,8 +244863,8 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
244885
244863
|
)
|
|
244886
244864
|
|
|
244887
244865
|
/* harmony default export */ var ToolControl = (ToolControl_component.exports);
|
|
244888
|
-
;// 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/toolbar/insert/ToolTable.vue?vue&type=template&id=
|
|
244889
|
-
var
|
|
244866
|
+
;// 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/toolbar/insert/ToolTable.vue?vue&type=template&id=9179c9bc&
|
|
244867
|
+
var ToolTablevue_type_template_id_9179c9bc_render = function render() {
|
|
244890
244868
|
var _vm = this,
|
|
244891
244869
|
_c = _vm._self._c;
|
|
244892
244870
|
return _c('div', {
|
|
@@ -244958,7 +244936,7 @@ var ToolTablevue_type_template_id_53a348a0_render = function render() {
|
|
|
244958
244936
|
}
|
|
244959
244937
|
}), _vm._t("hoTableItem")], 2);
|
|
244960
244938
|
};
|
|
244961
|
-
var
|
|
244939
|
+
var ToolTablevue_type_template_id_9179c9bc_staticRenderFns = [];
|
|
244962
244940
|
|
|
244963
244941
|
;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=18b19744&
|
|
244964
244942
|
var HoTableFeaturesvue_type_template_id_18b19744_render = function render() {
|
|
@@ -245486,7 +245464,14 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245486
245464
|
});
|
|
245487
245465
|
return;
|
|
245488
245466
|
}
|
|
245489
|
-
this.vueController.insertTable(this.rows, this.columns
|
|
245467
|
+
this.vueController.insertTable(this.rows, this.columns, {
|
|
245468
|
+
// canAdjustRowHeight: true, // 用户可调整行高
|
|
245469
|
+
// canAdjustRowWidth: true, // 用户可调整行宽
|
|
245470
|
+
// canAddRow: true, // 用户可新增表格行
|
|
245471
|
+
// canAddCol: true, // 用户可新增表格列
|
|
245472
|
+
// canDeleteRow: true, // 用户可删除表格行列
|
|
245473
|
+
// canDelTable: true, // 用户可删除表格
|
|
245474
|
+
});
|
|
245490
245475
|
},
|
|
245491
245476
|
clearData: function clearData() {
|
|
245492
245477
|
this.rows = 0;
|
|
@@ -245533,10 +245518,10 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245533
245518
|
});
|
|
245534
245519
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolTable.vue?vue&type=script&lang=js&
|
|
245535
245520
|
/* harmony default export */ var insert_ToolTablevue_type_script_lang_js_ = (ToolTablevue_type_script_lang_js_);
|
|
245536
|
-
;// 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/toolbar/insert/ToolTable.vue?vue&type=style&index=0&id=
|
|
245521
|
+
;// 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/toolbar/insert/ToolTable.vue?vue&type=style&index=0&id=9179c9bc&prod&lang=less&
|
|
245537
245522
|
// extracted by mini-css-extract-plugin
|
|
245538
245523
|
|
|
245539
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolTable.vue?vue&type=style&index=0&id=
|
|
245524
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolTable.vue?vue&type=style&index=0&id=9179c9bc&prod&lang=less&
|
|
245540
245525
|
|
|
245541
245526
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolTable.vue
|
|
245542
245527
|
|
|
@@ -245549,8 +245534,8 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245549
245534
|
|
|
245550
245535
|
var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
245551
245536
|
insert_ToolTablevue_type_script_lang_js_,
|
|
245552
|
-
|
|
245553
|
-
|
|
245537
|
+
ToolTablevue_type_template_id_9179c9bc_render,
|
|
245538
|
+
ToolTablevue_type_template_id_9179c9bc_staticRenderFns,
|
|
245554
245539
|
false,
|
|
245555
245540
|
null,
|
|
245556
245541
|
null,
|
|
@@ -248063,7 +248048,7 @@ var rarewords = __webpack_require__(73126);
|
|
|
248063
248048
|
|
|
248064
248049
|
|
|
248065
248050
|
|
|
248066
|
-
var CLICK = '
|
|
248051
|
+
var CLICK = 'click';
|
|
248067
248052
|
var captureInstances = Object.create(null);
|
|
248068
248053
|
var nonCaptureInstances = Object.create(null);
|
|
248069
248054
|
var captureEventHandlers = Object.create(null);
|