hoeditor-web 3.1.74 → 3.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +17962 -1
- package/lib/hoeditor.umd.js +272 -157
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -19376,7 +19376,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
19376
19376
|
|
|
19377
19377
|
/***/ }),
|
|
19378
19378
|
|
|
19379
|
-
/***/
|
|
19379
|
+
/***/ 15417:
|
|
19380
19380
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19381
19381
|
|
|
19382
19382
|
"use strict";
|
|
@@ -19396,7 +19396,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
19396
19396
|
var es_string_includes = __webpack_require__(32023);
|
|
19397
19397
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
19398
19398
|
var es_number_constructor = __webpack_require__(9653);
|
|
19399
|
-
;// 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/TableColProperty.vue?vue&type=template&id=
|
|
19399
|
+
;// 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/TableColProperty.vue?vue&type=template&id=1879e46a&
|
|
19400
19400
|
|
|
19401
19401
|
|
|
19402
19402
|
|
|
@@ -19468,6 +19468,20 @@ var render = function render() {
|
|
|
19468
19468
|
}
|
|
19469
19469
|
}, [_vm._v("当前显示宽度 " + _vm._s(_vm.colWidth) + " 厘米")])], 1), _c('li', {
|
|
19470
19470
|
staticClass: "control-item"
|
|
19471
|
+
}, [_c('div', {
|
|
19472
|
+
staticStyle: {
|
|
19473
|
+
"padding-right": "20px"
|
|
19474
|
+
}
|
|
19475
|
+
}, [_c('a-checkbox', {
|
|
19476
|
+
model: {
|
|
19477
|
+
value: _vm.isSignLock,
|
|
19478
|
+
callback: function callback($$v) {
|
|
19479
|
+
_vm.isSignLock = $$v;
|
|
19480
|
+
},
|
|
19481
|
+
expression: "isSignLock"
|
|
19482
|
+
}
|
|
19483
|
+
}, [_vm._v("签名完成后锁定列")])], 1)]), _c('li', {
|
|
19484
|
+
staticClass: "control-item"
|
|
19471
19485
|
}, [_c('span', {
|
|
19472
19486
|
staticClass: "label"
|
|
19473
19487
|
}, [_vm._v("编辑器属性")]), _c('a-select', {
|
|
@@ -19514,21 +19528,11 @@ var render = function render() {
|
|
|
19514
19528
|
attrs: {
|
|
19515
19529
|
"value": 5
|
|
19516
19530
|
}
|
|
19517
|
-
}, [_vm._v("输入域")])
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
staticStyle: {
|
|
19521
|
-
"padding-right": "20px"
|
|
19522
|
-
}
|
|
19523
|
-
}, [_c('a-checkbox', {
|
|
19524
|
-
model: {
|
|
19525
|
-
value: _vm.isSignLock,
|
|
19526
|
-
callback: function callback($$v) {
|
|
19527
|
-
_vm.isSignLock = $$v;
|
|
19528
|
-
},
|
|
19529
|
-
expression: "isSignLock"
|
|
19531
|
+
}, [_vm._v("输入域")]), _c('a-select-option', {
|
|
19532
|
+
attrs: {
|
|
19533
|
+
"value": 6
|
|
19530
19534
|
}
|
|
19531
|
-
}, [_vm._v("
|
|
19535
|
+
}, [_vm._v("序号")])], 1)], 1), _c('li', {
|
|
19532
19536
|
directives: [{
|
|
19533
19537
|
name: "show",
|
|
19534
19538
|
rawName: "v-show",
|
|
@@ -19791,7 +19795,23 @@ var render = function render() {
|
|
|
19791
19795
|
"value": item
|
|
19792
19796
|
}
|
|
19793
19797
|
}, [_vm._v(_vm._s(item))]);
|
|
19794
|
-
}), 1)], 1)]), _c('
|
|
19798
|
+
}), 1)], 1)]), _c('div', {
|
|
19799
|
+
directives: [{
|
|
19800
|
+
name: "show",
|
|
19801
|
+
rawName: "v-show",
|
|
19802
|
+
value: _vm.editorProperty === 2,
|
|
19803
|
+
expression: "editorProperty === 2"
|
|
19804
|
+
}],
|
|
19805
|
+
staticClass: "control-item"
|
|
19806
|
+
}, [_c('a-checkbox', {
|
|
19807
|
+
model: {
|
|
19808
|
+
value: _vm.isAutoInputCurDate,
|
|
19809
|
+
callback: function callback($$v) {
|
|
19810
|
+
_vm.isAutoInputCurDate = $$v;
|
|
19811
|
+
},
|
|
19812
|
+
expression: "isAutoInputCurDate"
|
|
19813
|
+
}
|
|
19814
|
+
}, [_vm._v("新增行自动填入当前日期时间")])], 1), _c('li', {
|
|
19795
19815
|
directives: [{
|
|
19796
19816
|
name: "show",
|
|
19797
19817
|
rawName: "v-show",
|
|
@@ -19854,7 +19874,7 @@ var render = function render() {
|
|
|
19854
19874
|
};
|
|
19855
19875
|
var staticRenderFns = [];
|
|
19856
19876
|
|
|
19857
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
19877
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=1879e46a&
|
|
19858
19878
|
|
|
19859
19879
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
19860
19880
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -19864,10 +19884,10 @@ var es_array_filter = __webpack_require__(57327);
|
|
|
19864
19884
|
var es_object_to_string = __webpack_require__(41539);
|
|
19865
19885
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
19866
19886
|
var es_array_concat = __webpack_require__(92222);
|
|
19867
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
19868
|
-
var es_object_keys = __webpack_require__(47941);
|
|
19869
19887
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
19870
19888
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
19889
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
19890
|
+
var es_object_keys = __webpack_require__(47941);
|
|
19871
19891
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
19872
19892
|
var es_regexp_exec = __webpack_require__(74916);
|
|
19873
19893
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -19933,6 +19953,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
19933
19953
|
//source: '',
|
|
19934
19954
|
canModifyContent: true,
|
|
19935
19955
|
isAllowDel: true,
|
|
19956
|
+
isAutoInputCurDate: false,
|
|
19936
19957
|
allowMultiSelected: false,
|
|
19937
19958
|
splitCharacter: ',',
|
|
19938
19959
|
errorArr: [],
|
|
@@ -19988,31 +20009,35 @@ var getCellNode = __webpack_require__(5986);
|
|
|
19988
20009
|
}
|
|
19989
20010
|
}
|
|
19990
20011
|
if (colInfoes !== null) {
|
|
19991
|
-
var _colProperty$dateTime, _colProperty$dateTime2;
|
|
19992
20012
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
19993
20013
|
var colProperty = colInfoes.colProperty;
|
|
19994
20014
|
//this.id = colProperty.id ? colProperty.id : this.vueController.generateID('TB');
|
|
19995
20015
|
this.editorProperty = colProperty.editorProperty ? colProperty.editorProperty : 0;
|
|
20016
|
+
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
19996
20017
|
this.align = colProperty.align ? colProperty.align : 0;
|
|
19997
|
-
var listKeyId = this.getKeyId(0);
|
|
19998
|
-
var list = [{
|
|
19999
|
-
value: '',
|
|
20000
|
-
text: '',
|
|
20001
|
-
id: listKeyId
|
|
20002
|
-
}];
|
|
20003
|
-
this.listItems = colProperty.downListProperty && JSON.parse(colProperty.downListProperty.listItems) ? [].concat((0,toConsumableArray/* default */.Z)(JSON.parse(colProperty.downListProperty.listItems)), list) : [].concat(list);
|
|
20004
|
-
//this.source = colProperty.downListProperty ? colProperty.downListProperty.source : '';
|
|
20005
|
-
this.canModifyContent = colProperty.downListProperty ? colProperty.downListProperty.canModifyContent : true;
|
|
20006
|
-
this.isAllowDel = colProperty.downListProperty ? colProperty.downListProperty.isAllowDel : true;
|
|
20007
|
-
this.allowMultiSelected = colProperty.downListProperty ? colProperty.downListProperty.allowMultiSelected : false;
|
|
20008
|
-
this.splitCharacter = colProperty.downListProperty ? colProperty.downListProperty.splitCharacter : ',';
|
|
20009
|
-
this.inputStyle = (_colProperty$dateTime = colProperty.dateTimeProperty) !== null && _colProperty$dateTime !== void 0 && _colProperty$dateTime.inputStyle ? (_colProperty$dateTime2 = colProperty.dateTimeProperty) === null || _colProperty$dateTime2 === void 0 ? void 0 : _colProperty$dateTime2.inputStyle : 'yyyy-MM-dd';
|
|
20010
|
-
this.maxNumVal = colProperty.numberProperty ? colProperty.numberProperty.maxNumVal : 100;
|
|
20011
|
-
this.minNumVal = colProperty.numberProperty ? colProperty.numberProperty.minNumVal : 0;
|
|
20012
20018
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
20013
|
-
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
20014
20019
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
20015
20020
|
this.isSignLock = colProperty.isSignLock ? true : false;
|
|
20021
|
+
if (colProperty.downListProperty) {
|
|
20022
|
+
var listKeyId = this.getKeyId(0);
|
|
20023
|
+
var list = [{
|
|
20024
|
+
value: '',
|
|
20025
|
+
text: '',
|
|
20026
|
+
id: listKeyId
|
|
20027
|
+
}];
|
|
20028
|
+
this.listItems = JSON.parse(colProperty.downListProperty.listItems) ? [].concat((0,toConsumableArray/* default */.Z)(JSON.parse(colProperty.downListProperty.listItems)), list) : [].concat(list);
|
|
20029
|
+
//this.source = colProperty.downListProperty ? colProperty.downListProperty.source : '';
|
|
20030
|
+
this.canModifyContent = colProperty.downListProperty.canModifyContent;
|
|
20031
|
+
this.isAllowDel = colProperty.downListProperty.isAllowDel;
|
|
20032
|
+
this.allowMultiSelected = colProperty.downListProperty.allowMultiSelected;
|
|
20033
|
+
this.splitCharacter = colProperty.downListProperty.splitCharacter;
|
|
20034
|
+
} else if (colProperty.dateTimeProperty) {
|
|
20035
|
+
this.inputStyle = colProperty.dateTimeProperty.inputStyle || 'yyyy-MM-dd';
|
|
20036
|
+
this.isAutoInputCurDate = colProperty.dateTimeProperty.isAutoInputCurDate;
|
|
20037
|
+
} else if (colProperty.numberProperty) {
|
|
20038
|
+
this.maxNumVal = colProperty.numberProperty.maxNumVal;
|
|
20039
|
+
this.minNumVal = colProperty.numberProperty.minNumVal;
|
|
20040
|
+
}
|
|
20016
20041
|
}
|
|
20017
20042
|
},
|
|
20018
20043
|
methods: {
|
|
@@ -20116,7 +20141,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20116
20141
|
if (this.editorProperty !== this.defaultColProperty.editorProperty) param.downListProperty = downListProperty;
|
|
20117
20142
|
} else if (this.editorProperty === TableProperty/* EditorProperty */.YS.DateTime) {
|
|
20118
20143
|
dateTimeProperty = {
|
|
20119
|
-
inputStyle: this.inputStyle
|
|
20144
|
+
inputStyle: this.inputStyle,
|
|
20145
|
+
isAutoInputCurDate: this.isAutoInputCurDate
|
|
20120
20146
|
};
|
|
20121
20147
|
if (this.editorProperty !== this.defaultColProperty.editorProperty) param.dateTimeProperty = dateTimeProperty;
|
|
20122
20148
|
} else if (this.editorProperty === TableProperty/* EditorProperty */.YS.Number) {
|
|
@@ -20160,10 +20186,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20160
20186
|
});
|
|
20161
20187
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
20162
20188
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
20163
|
-
;// 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/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20189
|
+
;// 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/TableColProperty.vue?vue&type=style&index=0&id=1879e46a&prod&lang=less&
|
|
20164
20190
|
// extracted by mini-css-extract-plugin
|
|
20165
20191
|
|
|
20166
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20192
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=1879e46a&prod&lang=less&
|
|
20167
20193
|
|
|
20168
20194
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20169
20195
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -21500,7 +21526,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
21500
21526
|
|
|
21501
21527
|
/***/ }),
|
|
21502
21528
|
|
|
21503
|
-
/***/
|
|
21529
|
+
/***/ 54054:
|
|
21504
21530
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21505
21531
|
|
|
21506
21532
|
"use strict";
|
|
@@ -21512,7 +21538,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21512
21538
|
"default": function() { return /* binding */ TableProperty; }
|
|
21513
21539
|
});
|
|
21514
21540
|
|
|
21515
|
-
;// 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=
|
|
21541
|
+
;// 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=141eaa7c&
|
|
21516
21542
|
var render = function render() {
|
|
21517
21543
|
var _vm = this,
|
|
21518
21544
|
_c = _vm._self._c;
|
|
@@ -21709,7 +21735,19 @@ var render = function render() {
|
|
|
21709
21735
|
},
|
|
21710
21736
|
expression: "isSignLock"
|
|
21711
21737
|
}
|
|
21712
|
-
}, [_vm._v("签名完成后锁定表格")])], 1)
|
|
21738
|
+
}, [_vm._v("签名完成后锁定表格")])], 1), _c('div', {
|
|
21739
|
+
staticStyle: {
|
|
21740
|
+
"width": "100%"
|
|
21741
|
+
}
|
|
21742
|
+
}, [_c('a-checkbox', {
|
|
21743
|
+
model: {
|
|
21744
|
+
value: _vm.addRowByOrder,
|
|
21745
|
+
callback: function callback($$v) {
|
|
21746
|
+
_vm.addRowByOrder = $$v;
|
|
21747
|
+
},
|
|
21748
|
+
expression: "addRowByOrder"
|
|
21749
|
+
}
|
|
21750
|
+
}, [_vm._v("启用按顺序新增行")])], 1)])])]), _c('footer', {
|
|
21713
21751
|
staticClass: "ho-modal-footer"
|
|
21714
21752
|
}, [_c('a-button', {
|
|
21715
21753
|
attrs: {
|
|
@@ -21807,9 +21845,11 @@ var CellNode = __webpack_require__(68598);
|
|
|
21807
21845
|
// 当前光标所在行行高
|
|
21808
21846
|
isUsePopEdit: false,
|
|
21809
21847
|
endPath: '',
|
|
21810
|
-
isSignLock: false
|
|
21848
|
+
isSignLock: false,
|
|
21849
|
+
addRowByOrder: false // 按顺序新增行
|
|
21811
21850
|
};
|
|
21812
21851
|
},
|
|
21852
|
+
|
|
21813
21853
|
inject: ['hoEditorProvider'],
|
|
21814
21854
|
computed: {
|
|
21815
21855
|
customProperties: function customProperties() {
|
|
@@ -21839,6 +21879,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
21839
21879
|
this.autoLineHeight = tableNode.tableProperty.autoLineHeight;
|
|
21840
21880
|
this.isUsePopEdit = tableNode.tableProperty.isUsePopEdit;
|
|
21841
21881
|
this.isSignLock = tableNode.tableProperty.isSignLock;
|
|
21882
|
+
this.addRowByOrder = tableNode.tableProperty.addRowByOrder;
|
|
21842
21883
|
}
|
|
21843
21884
|
},
|
|
21844
21885
|
methods: {
|
|
@@ -21896,7 +21937,8 @@ var CellNode = __webpack_require__(68598);
|
|
|
21896
21937
|
fixedOnePage: this.fixedOnePage,
|
|
21897
21938
|
autoLineHeight: this.autoLineHeight,
|
|
21898
21939
|
isUsePopEdit: this.isUsePopEdit,
|
|
21899
|
-
isSignLock: this.isSignLock
|
|
21940
|
+
isSignLock: this.isSignLock,
|
|
21941
|
+
addRowByOrder: this.addRowByOrder
|
|
21900
21942
|
};
|
|
21901
21943
|
var tableNode = this.getTableNodes();
|
|
21902
21944
|
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
@@ -21911,10 +21953,10 @@ var CellNode = __webpack_require__(68598);
|
|
|
21911
21953
|
});
|
|
21912
21954
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
21913
21955
|
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
21914
|
-
;// 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=
|
|
21956
|
+
;// 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=141eaa7c&prod&lang=less&
|
|
21915
21957
|
// extracted by mini-css-extract-plugin
|
|
21916
21958
|
|
|
21917
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
21959
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=141eaa7c&prod&lang=less&
|
|
21918
21960
|
|
|
21919
21961
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
21920
21962
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -38714,39 +38756,42 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38714
38756
|
}
|
|
38715
38757
|
}
|
|
38716
38758
|
} else {
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
var
|
|
38720
|
-
var
|
|
38721
|
-
|
|
38722
|
-
var
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38729
|
-
|
|
38730
|
-
var
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
|
|
38737
|
-
if (
|
|
38738
|
-
var
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
var
|
|
38742
|
-
|
|
38743
|
-
|
|
38759
|
+
if (cell.table.tableProperty.addRowByOrder) {
|
|
38760
|
+
var mark = false;
|
|
38761
|
+
var index = hoEditorFactory.vueController.getTableTitleMaxRowIndex(cell.table);
|
|
38762
|
+
var newTextNode = function newTextNode(text, c) {
|
|
38763
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(_this4._hoEditorFactoryID, cell.rootNodes, cell, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
38764
|
+
var fillCell = cell.table.rows[index + 1][c];
|
|
38765
|
+
if (fillCell) {
|
|
38766
|
+
var path = fillCell.childNodes[0].getNodePath();
|
|
38767
|
+
hoEditorFactory.docTree.insertNodeAfterPath(path, textNode);
|
|
38768
|
+
fillCell.drawCell.needUpdate = true;
|
|
38769
|
+
}
|
|
38770
|
+
};
|
|
38771
|
+
for (var k = 0; k < cell.table.colCount; k++) {
|
|
38772
|
+
var colProperty = cell.table.colInfos[k].colProperty;
|
|
38773
|
+
if (colProperty.dateTimeProperty && colProperty.dateTimeProperty.isAutoInputCurDate) {
|
|
38774
|
+
var date = Date.now();
|
|
38775
|
+
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_94__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
38776
|
+
newTextNode(text, k);
|
|
38777
|
+
mark = true;
|
|
38778
|
+
}
|
|
38779
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .EditorProperty */ .YS.OrderNumber) {
|
|
38780
|
+
var acell = cell.table.rows[index + 2][k];
|
|
38781
|
+
if (acell) {
|
|
38782
|
+
var ctext = acell.getCellText();
|
|
38783
|
+
var num = Number(ctext);
|
|
38784
|
+
if (!isNaN(num)) {
|
|
38785
|
+
var curOrder = (num + 1).toString();
|
|
38786
|
+
newTextNode(curOrder, k);
|
|
38787
|
+
mark = true;
|
|
38788
|
+
}
|
|
38744
38789
|
}
|
|
38745
38790
|
}
|
|
38746
38791
|
}
|
|
38747
|
-
|
|
38748
|
-
|
|
38749
|
-
|
|
38792
|
+
if (mark) {
|
|
38793
|
+
cell.table.update();
|
|
38794
|
+
}
|
|
38750
38795
|
}
|
|
38751
38796
|
}
|
|
38752
38797
|
var sCellNode = cell.table.rows[r][0];
|
|
@@ -91651,13 +91696,17 @@ function expressionCalculator(expr) {
|
|
|
91651
91696
|
if (stNum[0].toString() === "NaN") {
|
|
91652
91697
|
return "NaN";
|
|
91653
91698
|
} else {
|
|
91654
|
-
var valStr = stNum[0].
|
|
91699
|
+
var valStr = stNum[0].toString();
|
|
91655
91700
|
var valArr = valStr.split(".");
|
|
91656
|
-
if (valArr
|
|
91657
|
-
|
|
91658
|
-
|
|
91659
|
-
|
|
91701
|
+
if (valArr.length > 1) {
|
|
91702
|
+
if (valArr[1].length > 2) {
|
|
91703
|
+
valStr = stNum[0].toFixed(2);
|
|
91704
|
+
}
|
|
91705
|
+
if (valArr[1] == "00") {
|
|
91706
|
+
return valArr[0];
|
|
91707
|
+
}
|
|
91660
91708
|
}
|
|
91709
|
+
return valStr;
|
|
91661
91710
|
}
|
|
91662
91711
|
// console.log(stNum[0]);
|
|
91663
91712
|
}
|
|
@@ -166322,11 +166371,11 @@ var map = {
|
|
|
166322
166371
|
"./table/TableCellPoper.vue": 97628,
|
|
166323
166372
|
"./table/TableCellPoper1.vue": 44645,
|
|
166324
166373
|
"./table/TableCellProperty.vue": 63689,
|
|
166325
|
-
"./table/TableColProperty.vue":
|
|
166374
|
+
"./table/TableColProperty.vue": 15417,
|
|
166326
166375
|
"./table/TableForm.vue": 79036,
|
|
166327
166376
|
"./table/TableFormTree.vue": 84804,
|
|
166328
166377
|
"./table/TableFormula.vue": 45865,
|
|
166329
|
-
"./table/TableProperty.vue":
|
|
166378
|
+
"./table/TableProperty.vue": 54054,
|
|
166330
166379
|
"./table/TableRowProperty.vue": 21568,
|
|
166331
166380
|
"./textDialog/TextDialog.vue": 29520,
|
|
166332
166381
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
@@ -203766,8 +203815,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
203766
203815
|
var es_number_constructor = __webpack_require__(9653);
|
|
203767
203816
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
203768
203817
|
var es_json_stringify = __webpack_require__(38862);
|
|
203769
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
203770
|
-
var
|
|
203818
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=c9703c12&
|
|
203819
|
+
var HoDocvue_type_template_id_c9703c12_render = function render() {
|
|
203771
203820
|
var _vm = this,
|
|
203772
203821
|
_c = _vm._self._c;
|
|
203773
203822
|
return _c('div', {
|
|
@@ -203839,6 +203888,23 @@ var HoDocvue_type_template_id_e388825c_render = function render() {
|
|
|
203839
203888
|
}, [_vm._v("新增行")]) : _vm._e()];
|
|
203840
203889
|
},
|
|
203841
203890
|
proxy: true
|
|
203891
|
+
}, {
|
|
203892
|
+
key: "hoAddNextCellButton",
|
|
203893
|
+
fn: function fn() {
|
|
203894
|
+
return [_vm.nextCellButton ? _c('a-button', {
|
|
203895
|
+
staticClass: "add-cell-button add-next-cell-button",
|
|
203896
|
+
style: _vm.cellButtonPos,
|
|
203897
|
+
attrs: {
|
|
203898
|
+
"type": "primary"
|
|
203899
|
+
},
|
|
203900
|
+
on: {
|
|
203901
|
+
"click": function click($event) {
|
|
203902
|
+
return _vm.addNextCellRow();
|
|
203903
|
+
}
|
|
203904
|
+
}
|
|
203905
|
+
}, [_vm._v("新增一行")]) : _vm._e()];
|
|
203906
|
+
},
|
|
203907
|
+
proxy: true
|
|
203842
203908
|
}, {
|
|
203843
203909
|
key: "hoAddSelectMark",
|
|
203844
203910
|
fn: function fn() {
|
|
@@ -203951,7 +204017,7 @@ var HoDocvue_type_template_id_e388825c_render = function render() {
|
|
|
203951
204017
|
}
|
|
203952
204018
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
203953
204019
|
};
|
|
203954
|
-
var
|
|
204020
|
+
var HoDocvue_type_template_id_c9703c12_staticRenderFns = [];
|
|
203955
204021
|
|
|
203956
204022
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
203957
204023
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -203963,8 +204029,8 @@ var es_array_sort = __webpack_require__(2707);
|
|
|
203963
204029
|
var es_string_replace = __webpack_require__(15306);
|
|
203964
204030
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
203965
204031
|
var es_array_map = __webpack_require__(21249);
|
|
203966
|
-
;// 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/HoPage.vue?vue&type=template&id=
|
|
203967
|
-
var
|
|
204032
|
+
;// 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/HoPage.vue?vue&type=template&id=ff41b2c0&
|
|
204033
|
+
var HoPagevue_type_template_id_ff41b2c0_render = function render() {
|
|
203968
204034
|
var _vm = this,
|
|
203969
204035
|
_c = _vm._self._c;
|
|
203970
204036
|
return _c('div', {
|
|
@@ -204010,7 +204076,7 @@ var HoPagevue_type_template_id_7e15e978_render = function render() {
|
|
|
204010
204076
|
attrs: {
|
|
204011
204077
|
"id": 'ho-comment-box-' + _vm.index
|
|
204012
204078
|
}
|
|
204013
|
-
}), [_vm._t("hoAddCellButton")], [_vm._t("hoAddSelectMark")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
204079
|
+
}), [_vm._t("hoAddCellButton")], [_vm._t("hoAddSelectMark")], [_vm._t("hoAddNextCellButton")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
204014
204080
|
attrs: {
|
|
204015
204081
|
"textStyles": _vm.textStyles,
|
|
204016
204082
|
"scaleWidth": _vm.canvasWidth,
|
|
@@ -204037,7 +204103,7 @@ var HoPagevue_type_template_id_7e15e978_render = function render() {
|
|
|
204037
204103
|
}], null, true)
|
|
204038
204104
|
}) : _vm._e()], 2);
|
|
204039
204105
|
};
|
|
204040
|
-
var
|
|
204106
|
+
var HoPagevue_type_template_id_ff41b2c0_staticRenderFns = [];
|
|
204041
204107
|
|
|
204042
204108
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
204043
204109
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -205332,10 +205398,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205332
205398
|
});
|
|
205333
205399
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
205334
205400
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
205335
|
-
;// 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/HoPage.vue?vue&type=style&index=0&id=
|
|
205401
|
+
;// 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/HoPage.vue?vue&type=style&index=0&id=ff41b2c0&prod&lang=less&
|
|
205336
205402
|
// extracted by mini-css-extract-plugin
|
|
205337
205403
|
|
|
205338
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
205404
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=ff41b2c0&prod&lang=less&
|
|
205339
205405
|
|
|
205340
205406
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
205341
205407
|
|
|
@@ -205348,8 +205414,8 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205348
205414
|
|
|
205349
205415
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
205350
205416
|
components_HoPagevue_type_script_lang_js_,
|
|
205351
|
-
|
|
205352
|
-
|
|
205417
|
+
HoPagevue_type_template_id_ff41b2c0_render,
|
|
205418
|
+
HoPagevue_type_template_id_ff41b2c0_staticRenderFns,
|
|
205353
205419
|
false,
|
|
205354
205420
|
null,
|
|
205355
205421
|
null,
|
|
@@ -206942,7 +207008,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
206942
207008
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206943
207009
|
var ParagraphNode = __webpack_require__(67945);
|
|
206944
207010
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206945
|
-
/* harmony default export */ var version = ('3.1.
|
|
207011
|
+
/* harmony default export */ var version = ('3.1.76');
|
|
206946
207012
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
206947
207013
|
var PoperTipText = __webpack_require__(50987);
|
|
206948
207014
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -206950,6 +207016,8 @@ var PoperTipText = __webpack_require__(50987);
|
|
|
206950
207016
|
/* harmony default export */ var poperTipText = (PoperTipText["default"]);
|
|
206951
207017
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
206952
207018
|
var ImageNode = __webpack_require__(97186);
|
|
207019
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
207020
|
+
var TableNode = __webpack_require__(5010);
|
|
206953
207021
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
206954
207022
|
|
|
206955
207023
|
|
|
@@ -206988,6 +207056,7 @@ var ImageNode = __webpack_require__(97186);
|
|
|
206988
207056
|
|
|
206989
207057
|
|
|
206990
207058
|
|
|
207059
|
+
|
|
206991
207060
|
|
|
206992
207061
|
|
|
206993
207062
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
@@ -207039,6 +207108,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207039
207108
|
moveType: 1,
|
|
207040
207109
|
text: ''
|
|
207041
207110
|
},
|
|
207111
|
+
cellButtonPos: {
|
|
207112
|
+
right: 0,
|
|
207113
|
+
top: 0
|
|
207114
|
+
},
|
|
207042
207115
|
// 是否当前正在绘制
|
|
207043
207116
|
drawing: false,
|
|
207044
207117
|
nodeValue: '',
|
|
@@ -207091,6 +207164,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207091
207164
|
changeCount: 0
|
|
207092
207165
|
},
|
|
207093
207166
|
cellButton: false,
|
|
207167
|
+
nextCellButton: false,
|
|
207094
207168
|
isAutoPoper: false,
|
|
207095
207169
|
// 自动打开的弹窗
|
|
207096
207170
|
selectMarkStyle: {}
|
|
@@ -207222,21 +207296,11 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207222
207296
|
this.isCreateRightMenuModal = false;
|
|
207223
207297
|
this.showDeleteSignMenu = false;
|
|
207224
207298
|
},
|
|
207225
|
-
beforeDestroy: function beforeDestroy() {
|
|
207226
|
-
var _this$viewableAreaObs,
|
|
207227
|
-
_this3 = this;
|
|
207228
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207229
|
-
// this.mutationObserver?.disconnect();
|
|
207230
|
-
(_this$viewableAreaObs = this.viewableAreaObserver) === null || _this$viewableAreaObs === void 0 ? void 0 : _this$viewableAreaObs.disconnect();
|
|
207231
|
-
hoEditorFactory.docTree.removeEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
207232
|
-
return _this3.mouseClickEvent(e);
|
|
207233
|
-
});
|
|
207234
|
-
},
|
|
207235
207299
|
/**
|
|
207236
207300
|
* 监听节点是否在可视区内
|
|
207237
207301
|
*/
|
|
207238
207302
|
pageIntersectionObserver: function pageIntersectionObserver() {
|
|
207239
|
-
var
|
|
207303
|
+
var _this3 = this;
|
|
207240
207304
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207241
207305
|
this.viewableAreaObserver = new intersection_observer_polyfill(function (entries) {
|
|
207242
207306
|
if (entries) {
|
|
@@ -207267,7 +207331,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207267
207331
|
return a < b;
|
|
207268
207332
|
});
|
|
207269
207333
|
});
|
|
207270
|
-
|
|
207334
|
+
_this3.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
207271
207335
|
hoEditorFactory.drawTree.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
207272
207336
|
hoEditorFactory.drawPageTree.changeInViewPage();
|
|
207273
207337
|
}
|
|
@@ -207300,7 +207364,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207300
207364
|
* 鼠标click事件
|
|
207301
207365
|
*/
|
|
207302
207366
|
mouseClickEvent: function mouseClickEvent(e) {
|
|
207303
|
-
var
|
|
207367
|
+
var _this4 = this;
|
|
207304
207368
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207305
207369
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
207306
207370
|
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
@@ -207309,14 +207373,14 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207309
207373
|
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
207310
207374
|
}
|
|
207311
207375
|
var node = e.node;
|
|
207312
|
-
this.selectMarkStyle.display =
|
|
207376
|
+
this.selectMarkStyle.display = 'none';
|
|
207313
207377
|
this.poperClose();
|
|
207314
207378
|
if (node && node !== null) {
|
|
207315
207379
|
var pageIndex = e.pageIndex;
|
|
207316
207380
|
if (e.clickType === 'dblclick') {
|
|
207317
207381
|
if (node instanceof BaseNode/* BaseNode */.Hd) {
|
|
207318
207382
|
setTimeout(function () {
|
|
207319
|
-
|
|
207383
|
+
_this4.dblclickModal(node, 'dblclick', pageIndex);
|
|
207320
207384
|
}, 150);
|
|
207321
207385
|
}
|
|
207322
207386
|
} else if (e.clickType === 'leftclick' && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
@@ -207333,10 +207397,12 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207333
207397
|
_domRange$inSameTable2 = (0,esm_slicedToArray/* default */.Z)(_domRange$inSameTable, 2),
|
|
207334
207398
|
isInTable = _domRange$inSameTable2[0],
|
|
207335
207399
|
tableNode = _domRange$inSameTable2[1];
|
|
207400
|
+
this.nextCellButton = false;
|
|
207336
207401
|
if (isInTable) {
|
|
207337
207402
|
if (!this.cellButton) {
|
|
207338
207403
|
this.createAddCellButton(node, pageIndex);
|
|
207339
207404
|
}
|
|
207405
|
+
this.createAddNextCellButton(node, pageIndex);
|
|
207340
207406
|
} else {
|
|
207341
207407
|
this.cellButton = false;
|
|
207342
207408
|
}
|
|
@@ -207356,7 +207422,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207356
207422
|
type: 'TextInputFieldNode'
|
|
207357
207423
|
});
|
|
207358
207424
|
this.$nextTick(function () {
|
|
207359
|
-
|
|
207425
|
+
_this4.createSelectMark(node, hoEditorFactory.drawTree.paintStatus, pageIndex);
|
|
207360
207426
|
});
|
|
207361
207427
|
}
|
|
207362
207428
|
}
|
|
@@ -207397,10 +207463,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207397
207463
|
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
207398
207464
|
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
207399
207465
|
};
|
|
207400
|
-
var
|
|
207401
|
-
|
|
207402
|
-
isInTable =
|
|
207403
|
-
tableNode =
|
|
207466
|
+
var _hoEditorFactory$vueC2 = hoEditorFactory.vueController.getDomRange().inSameTable(),
|
|
207467
|
+
_hoEditorFactory$vueC3 = (0,esm_slicedToArray/* default */.Z)(_hoEditorFactory$vueC2, 2),
|
|
207468
|
+
isInTable = _hoEditorFactory$vueC3[0],
|
|
207469
|
+
tableNode = _hoEditorFactory$vueC3[1];
|
|
207404
207470
|
if (paintStatus == 1 && isInTable) {
|
|
207405
207471
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
207406
207472
|
if (!result) return;
|
|
@@ -207505,13 +207571,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207505
207571
|
}
|
|
207506
207572
|
},
|
|
207507
207573
|
updateSelectMark: function updateSelectMark() {
|
|
207508
|
-
var
|
|
207574
|
+
var _this5 = this;
|
|
207509
207575
|
this.selectMarkStyle.display = 'none';
|
|
207510
207576
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207511
207577
|
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
207512
207578
|
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
207513
207579
|
setTimeout(function () {
|
|
207514
|
-
|
|
207580
|
+
_this5.createSelectMark(node, paintStatus, _this5.selectMarkStyle.pageIndex);
|
|
207515
207581
|
}, 300);
|
|
207516
207582
|
},
|
|
207517
207583
|
getRootNode: function getRootNode(node) {
|
|
@@ -207526,7 +207592,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207526
207592
|
while (!flag && index >= 0) {
|
|
207527
207593
|
if (!flag) {
|
|
207528
207594
|
index--;
|
|
207529
|
-
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes(
|
|
207595
|
+
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes('<元素>');
|
|
207530
207596
|
if (!flag) {
|
|
207531
207597
|
var _parentNode2;
|
|
207532
207598
|
parentNode = (_parentNode2 = parentNode) === null || _parentNode2 === void 0 ? void 0 : _parentNode2.parentNode;
|
|
@@ -207540,7 +207606,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207540
207606
|
if (parentNode) {
|
|
207541
207607
|
var _parentNode$downListP;
|
|
207542
207608
|
var lists = (_parentNode$downListP = parentNode.downListProperty) === null || _parentNode$downListP === void 0 ? void 0 : _parentNode$downListP.listItems;
|
|
207543
|
-
if (lists && lists.includes(
|
|
207609
|
+
if (lists && lists.includes('<元素>')) {
|
|
207544
207610
|
var pos = this.computedPoperPosition(parentNode.childNodes[parentNode.childNodes.length - 1], pageIndex, true);
|
|
207545
207611
|
this.selectMarkStyle = {
|
|
207546
207612
|
display: 'block',
|
|
@@ -207571,7 +207637,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207571
207637
|
}
|
|
207572
207638
|
},
|
|
207573
207639
|
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
207574
|
-
var
|
|
207640
|
+
var _this6 = this;
|
|
207575
207641
|
if (paintStatus === 0) {
|
|
207576
207642
|
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
207577
207643
|
return;
|
|
@@ -207580,13 +207646,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207580
207646
|
return;
|
|
207581
207647
|
}
|
|
207582
207648
|
var callback = function callback(list) {
|
|
207583
|
-
|
|
207649
|
+
_this6.computedPoperPosition(node, pageIndex);
|
|
207584
207650
|
if (Array.isArray(list) && list.length > 0) {
|
|
207585
|
-
|
|
207651
|
+
_this6.poperSelectList = list;
|
|
207586
207652
|
} else {
|
|
207587
|
-
|
|
207653
|
+
_this6.poperSelectList = node.downListContent ? node.downListContent : [];
|
|
207588
207654
|
}
|
|
207589
|
-
|
|
207655
|
+
_this6.poperType = 'selectPoper';
|
|
207590
207656
|
};
|
|
207591
207657
|
if (node.customProperty && node.customProperty.hasThirdData == true) {
|
|
207592
207658
|
this.$emit('dblNodeClick', {
|
|
@@ -207601,7 +207667,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207601
207667
|
}
|
|
207602
207668
|
},
|
|
207603
207669
|
createInputProper: function createInputProper(node, parentNode, paintStatus, pageIndex) {
|
|
207604
|
-
var
|
|
207670
|
+
var _this7 = this;
|
|
207605
207671
|
if (paintStatus === 0) {
|
|
207606
207672
|
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
207607
207673
|
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
@@ -207628,15 +207694,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207628
207694
|
lists = (_node$downListPropert3 = node.downListProperty) !== null && _node$downListPropert3 !== void 0 && _node$downListPropert3.listItems ? JSON.parse((_node$downListPropert4 = node.downListProperty) === null || _node$downListPropert4 === void 0 ? void 0 : _node$downListPropert4.listItems) : [];
|
|
207629
207695
|
}
|
|
207630
207696
|
var callback = function callback(list) {
|
|
207631
|
-
|
|
207697
|
+
_this7.computedPoperPosition(node, pageIndex);
|
|
207632
207698
|
if (Array.isArray(list) && list.length > 0) {
|
|
207633
|
-
|
|
207699
|
+
_this7.poperSelectList = list;
|
|
207634
207700
|
} else {
|
|
207635
|
-
|
|
207701
|
+
_this7.poperSelectList = lists.filter(function (v) {
|
|
207636
207702
|
return v.value || v.text;
|
|
207637
207703
|
});
|
|
207638
207704
|
}
|
|
207639
|
-
|
|
207705
|
+
_this7.poperType = 'selectPoper';
|
|
207640
207706
|
};
|
|
207641
207707
|
if (parentNode.customProperty && parentNode.customProperty.hasThirdData == true) {
|
|
207642
207708
|
this.$emit('dblNodeClick', {
|
|
@@ -207663,9 +207729,46 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207663
207729
|
this.cellButton = false;
|
|
207664
207730
|
}
|
|
207665
207731
|
},
|
|
207732
|
+
createAddNextCellButton: function createAddNextCellButton(node, pageIndex) {
|
|
207733
|
+
var cell = null;
|
|
207734
|
+
if (node instanceof CellNode/* CellNode */.D) {
|
|
207735
|
+
cell = node;
|
|
207736
|
+
} else if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
207737
|
+
cell = node.parentNode;
|
|
207738
|
+
}
|
|
207739
|
+
if (cell && cell.table.tableProperty.addRowByOrder) {
|
|
207740
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207741
|
+
var drawNodes = cell.table.drawNodes[0];
|
|
207742
|
+
var headerHeight = hoEditorFactory.drawTree.drawPages[pageIndex].drawDomLevel.mainDocTop;
|
|
207743
|
+
var top = headerHeight + drawNodes.drawPageTables[0].y - 20;
|
|
207744
|
+
this.cellButtonPos = {
|
|
207745
|
+
left: (hoEditorFactory.pageProperty.leftMarginPixes + drawNodes.dWidth - 78) / scaleXY + 'px',
|
|
207746
|
+
// 目标元素所在行的 x
|
|
207747
|
+
top: top / scaleXY + 'px' // 目标元素所在行的 y
|
|
207748
|
+
};
|
|
207749
|
+
|
|
207750
|
+
this.nextCellButton = true;
|
|
207751
|
+
} else {
|
|
207752
|
+
this.nextCellButton = false;
|
|
207753
|
+
}
|
|
207754
|
+
},
|
|
207666
207755
|
handleForm: function handleForm(type) {
|
|
207667
207756
|
this.hoEditorProvider.setControlProperty('table-form', type, '');
|
|
207668
207757
|
},
|
|
207758
|
+
addNextCellRow: function addNextCellRow() {
|
|
207759
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207760
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
207761
|
+
var node = hoEditorFactory.docTree.findNodePositionByPath(curDomRange.startPath);
|
|
207762
|
+
var table = null;
|
|
207763
|
+
if (node instanceof CellNode/* CellNode */.D) {
|
|
207764
|
+
table = node.table;
|
|
207765
|
+
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
207766
|
+
table = node.parentNode.table;
|
|
207767
|
+
} else if (node instanceof TableNode/* TableNode */.Fh) {
|
|
207768
|
+
table = node;
|
|
207769
|
+
}
|
|
207770
|
+
hoEditorFactory.vueController.insertTableRowAbove(1, table);
|
|
207771
|
+
},
|
|
207669
207772
|
/**
|
|
207670
207773
|
* 单元格属性触发 poper:
|
|
207671
207774
|
* 1. 列属性不是日期和下拉时
|
|
@@ -207757,10 +207860,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207757
207860
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
207758
207861
|
*/
|
|
207759
207862
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
207760
|
-
var
|
|
207863
|
+
var _this8 = this;
|
|
207761
207864
|
this.$nextTick(function () {
|
|
207762
207865
|
var _hoEditorFactory$docT;
|
|
207763
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(
|
|
207866
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this8.hoEditorId);
|
|
207764
207867
|
var rightPosition = {
|
|
207765
207868
|
clientX: e.clientX || e.pageX,
|
|
207766
207869
|
clientY: e.clientY || e.pageY
|
|
@@ -207774,25 +207877,25 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207774
207877
|
// psReview, // 审阅
|
|
207775
207878
|
// psReadOnly, // 预览
|
|
207776
207879
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psEdit) {
|
|
207777
|
-
|
|
207880
|
+
_this8.isCreateRightMenuModal = true;
|
|
207778
207881
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview && node instanceof SignNode/* SignNode */.N) {
|
|
207779
|
-
|
|
207780
|
-
|
|
207882
|
+
_this8.isCreateRightMenuModal = false;
|
|
207883
|
+
_this8.hoEditorProvider.setRightClickNodeValue(node);
|
|
207781
207884
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
207782
|
-
|
|
207885
|
+
_this8.$emit('rightClickEventIn', rightPosition);
|
|
207783
207886
|
return;
|
|
207784
207887
|
} else {
|
|
207785
|
-
|
|
207786
|
-
|
|
207888
|
+
_this8.isHideComments = hoEditorFactory.isHideComments;
|
|
207889
|
+
_this8.showCommentsBtn = true;
|
|
207787
207890
|
}
|
|
207788
|
-
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY,
|
|
207891
|
+
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY, _this8.$refs.rightMenuModal);
|
|
207789
207892
|
return;
|
|
207790
207893
|
}
|
|
207791
207894
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
207792
|
-
|
|
207895
|
+
_this8.hoEditorProvider.setRightClickNodeValue(node);
|
|
207793
207896
|
}
|
|
207794
207897
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
207795
|
-
|
|
207898
|
+
_this8.$emit('rightClickEventIn', rightPosition);
|
|
207796
207899
|
});
|
|
207797
207900
|
},
|
|
207798
207901
|
hoCopy: function hoCopy(e) {
|
|
@@ -207832,14 +207935,24 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207832
207935
|
this.drawing = false;
|
|
207833
207936
|
}
|
|
207834
207937
|
}
|
|
207938
|
+
},
|
|
207939
|
+
beforeDestroy: function beforeDestroy() {
|
|
207940
|
+
var _this$viewableAreaObs,
|
|
207941
|
+
_this9 = this;
|
|
207942
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207943
|
+
// this.mutationObserver?.disconnect();
|
|
207944
|
+
(_this$viewableAreaObs = this.viewableAreaObserver) === null || _this$viewableAreaObs === void 0 ? void 0 : _this$viewableAreaObs.disconnect();
|
|
207945
|
+
hoEditorFactory.docTree.removeEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
207946
|
+
return _this9.mouseClickEvent(e);
|
|
207947
|
+
});
|
|
207835
207948
|
}
|
|
207836
207949
|
});
|
|
207837
207950
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
207838
207951
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
207839
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
207952
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=c9703c12&prod&lang=less&
|
|
207840
207953
|
// extracted by mini-css-extract-plugin
|
|
207841
207954
|
|
|
207842
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
207955
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=c9703c12&prod&lang=less&
|
|
207843
207956
|
|
|
207844
207957
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
207845
207958
|
|
|
@@ -207852,8 +207965,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207852
207965
|
|
|
207853
207966
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
207854
207967
|
components_HoDocvue_type_script_lang_js_,
|
|
207855
|
-
|
|
207856
|
-
|
|
207968
|
+
HoDocvue_type_template_id_c9703c12_render,
|
|
207969
|
+
HoDocvue_type_template_id_c9703c12_staticRenderFns,
|
|
207857
207970
|
false,
|
|
207858
207971
|
null,
|
|
207859
207972
|
null,
|
|
@@ -207874,8 +207987,6 @@ var DrawPageMainDoc = __webpack_require__(77441);
|
|
|
207874
207987
|
var DrawLine = __webpack_require__(96635);
|
|
207875
207988
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageTable.ts
|
|
207876
207989
|
var DrawPageTable = __webpack_require__(15694);
|
|
207877
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
207878
|
-
var TableNode = __webpack_require__(5010);
|
|
207879
207990
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawPageTree.ts
|
|
207880
207991
|
|
|
207881
207992
|
|
|
@@ -215015,18 +215126,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215015
215126
|
*/
|
|
215016
215127
|
}, {
|
|
215017
215128
|
key: "insertTableRowAbove",
|
|
215018
|
-
value: function insertTableRowAbove(count
|
|
215129
|
+
value: function insertTableRowAbove(count) {
|
|
215130
|
+
var _curDomRange$npEnd$no;
|
|
215019
215131
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215020
|
-
|
|
215021
|
-
|
|
215022
|
-
|
|
215023
|
-
|
|
215132
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
215133
|
+
|
|
215134
|
+
var curCell = (_curDomRange$npEnd$no = _curDomRange.npEnd.node) === null || _curDomRange$npEnd$no === void 0 ? void 0 : _curDomRange$npEnd$no.parentNode;
|
|
215135
|
+
if (curCell instanceof CellNode/* CellNode */.D && curCell.table.tableProperty.addRowByOrder) {
|
|
215136
|
+
var titleIndex = hoEditorFactory.vueController.getTableTitleMaxRowIndex(curCell.table);
|
|
215137
|
+
if (curCell.table.rowCount > titleIndex + 1) {
|
|
215138
|
+
var path = curCell.table.rows[titleIndex + 1][0].childNodes[0].getNodePath();
|
|
215024
215139
|
hoEditorFactory.docTree.curDomRange.setSamePath(path);
|
|
215025
215140
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
215026
215141
|
count = 1;
|
|
215142
|
+
_curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
215027
215143
|
}
|
|
215028
215144
|
}
|
|
215029
|
-
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
215030
215145
|
var startPath = _curDomRange.normalize().startPath;
|
|
215031
215146
|
var endPath = _curDomRange.normalize().endPath;
|
|
215032
215147
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertRowAbove);
|
|
@@ -220632,15 +220747,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220632
220747
|
} else {
|
|
220633
220748
|
text = getText(node.previousLeaf());
|
|
220634
220749
|
}
|
|
220750
|
+
} else if (node instanceof SignNode/* SignNode */.N && node.type !== 3 || node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220751
|
+
text = getText(node.previousLeaf());
|
|
220752
|
+
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
220753
|
+
text = node.text;
|
|
220635
220754
|
} else if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220636
220755
|
text = getText(node.parentNode.previousLeaf());
|
|
220637
220756
|
if (!text) {
|
|
220638
220757
|
text = getText(node.previousLeaf());
|
|
220639
220758
|
}
|
|
220640
|
-
} else if (node instanceof SignNode/* SignNode */.N && node.type !== 3 || node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220641
|
-
text = getText(node.previousLeaf());
|
|
220642
|
-
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
220643
|
-
text = node.text;
|
|
220644
220759
|
}
|
|
220645
220760
|
if (!text && (node === null || node === void 0 ? void 0 : node.parentNode) instanceof CellNode/* CellNode */.D) {
|
|
220646
220761
|
var cellNode = node === null || node === void 0 ? void 0 : node.parentNode;
|