hoeditor-web 3.1.56 → 3.1.58
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 +18014 -1
- package/lib/hoeditor.umd.js +32 -31
- package/lib/hoeditor.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -219705,7 +219705,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
219705
219705
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
219706
219706
|
var ParagraphNode = __webpack_require__(67945);
|
|
219707
219707
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
219708
|
-
/* harmony default export */ var version = ('3.1.
|
|
219708
|
+
/* harmony default export */ var version = ('3.1.58');
|
|
219709
219709
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
219710
219710
|
var PoperTipText = __webpack_require__(50987);
|
|
219711
219711
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -226756,8 +226756,8 @@ var commonParamList = new Map();
|
|
|
226756
226756
|
|
|
226757
226757
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
226758
226758
|
var es_array_from = __webpack_require__(91038);
|
|
226759
|
-
;// 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/common/history/index.vue?vue&type=template&id=
|
|
226760
|
-
var
|
|
226759
|
+
;// 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/common/history/index.vue?vue&type=template&id=a370a0a0&
|
|
226760
|
+
var historyvue_type_template_id_a370a0a0_render = function render() {
|
|
226761
226761
|
var _vm = this,
|
|
226762
226762
|
_c = _vm._self._c;
|
|
226763
226763
|
return _c('div', {
|
|
@@ -226769,7 +226769,7 @@ var historyvue_type_template_id_0e2322a4_render = function render() {
|
|
|
226769
226769
|
on: {
|
|
226770
226770
|
"click": _vm.selectComment
|
|
226771
226771
|
}
|
|
226772
|
-
}, [_c('section', [_c('header', [_c('span', [_vm._v(_vm._s(_vm.userName))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.date))])]), _c('section', {
|
|
226772
|
+
}, [_c('section', [_c('header', [_c('span', [_vm._v(_vm._s(_vm.userName))]), _vm._v(" " + _vm._s(_vm.selected)), _c('span', [_vm._v(_vm._s(_vm.date))])]), _c('section', {
|
|
226773
226773
|
staticClass: "comment-content history-comment"
|
|
226774
226774
|
}, [_c('a-tooltip', {
|
|
226775
226775
|
attrs: {
|
|
@@ -226787,7 +226787,7 @@ var historyvue_type_template_id_0e2322a4_render = function render() {
|
|
|
226787
226787
|
slot: "title"
|
|
226788
226788
|
}, [_vm._v(" 修改后:" + _vm._s(_vm.afterContent) + " ")]), _vm._v(" 修改后:" + _vm._s(_vm.afterContent) + " ")], 2)], 1)])]);
|
|
226789
226789
|
};
|
|
226790
|
-
var
|
|
226790
|
+
var historyvue_type_template_id_a370a0a0_staticRenderFns = [];
|
|
226791
226791
|
|
|
226792
226792
|
;// 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/common/history/index.vue?vue&type=script&lang=js&
|
|
226793
226793
|
|
|
@@ -226807,17 +226807,18 @@ var historyvue_type_template_id_0e2322a4_staticRenderFns = [];
|
|
|
226807
226807
|
userName: '',
|
|
226808
226808
|
date: '',
|
|
226809
226809
|
pageIndex: 0,
|
|
226810
|
-
|
|
226811
|
-
selectedColor: '#aaa'
|
|
226810
|
+
selected: false
|
|
226812
226811
|
};
|
|
226813
226812
|
},
|
|
226813
|
+
watch: {
|
|
226814
|
+
selected: function selected() {}
|
|
226815
|
+
},
|
|
226814
226816
|
mounted: function mounted() {
|
|
226815
|
-
|
|
226816
|
-
this.$
|
|
226817
|
-
|
|
226818
|
-
|
|
226819
|
-
|
|
226820
|
-
});
|
|
226817
|
+
// this.$nextTick(() => {
|
|
226818
|
+
// if (this.$refs.hoCommentItem) {
|
|
226819
|
+
// this.createLine();
|
|
226820
|
+
// }
|
|
226821
|
+
// });
|
|
226821
226822
|
},
|
|
226822
226823
|
methods: {
|
|
226823
226824
|
clearLine: function clearLine() {
|
|
@@ -226828,39 +226829,36 @@ var historyvue_type_template_id_0e2322a4_staticRenderFns = [];
|
|
|
226828
226829
|
(_element$parentNode = element.parentNode) === null || _element$parentNode === void 0 ? void 0 : _element$parentNode.removeChild(element);
|
|
226829
226830
|
});
|
|
226830
226831
|
}
|
|
226831
|
-
|
|
226832
|
-
|
|
226832
|
+
var hoCommentBox = document.querySelector("#ho-comment-box-".concat(this.pageIndex));
|
|
226833
|
+
hoCommentBox.removeEventListener('scroll', this.createLine, true);
|
|
226833
226834
|
},
|
|
226834
226835
|
selectComment: function selectComment() {
|
|
226835
|
-
var
|
|
226836
|
+
var _this = this;
|
|
226836
226837
|
var hoCommentItemList = Array.from(document.querySelectorAll('.ho-comment-item'));
|
|
226837
226838
|
hoCommentItemList.forEach(function (element) {
|
|
226838
|
-
if (element.id ===
|
|
226839
|
+
if (element.id === _this.id) {
|
|
226840
|
+
// this.selected = true;
|
|
226839
226841
|
element.style.border = '1px dashed #F00';
|
|
226840
226842
|
} else {
|
|
226843
|
+
// this.selected = false;
|
|
226841
226844
|
element.style.border = '1px dashed #aaa';
|
|
226842
226845
|
}
|
|
226843
226846
|
});
|
|
226844
|
-
|
|
226845
|
-
// const hoCommentBox = document.querySelector(`#ho-comment-box-${this.pageIndex}`);
|
|
226846
|
-
// hoCommentBox.addEventListener('scroll', this.createLine, true);
|
|
226847
|
-
// this.createLine();
|
|
226847
|
+
this.createLine();
|
|
226848
226848
|
},
|
|
226849
226849
|
/**
|
|
226850
226850
|
* 创建连接线
|
|
226851
226851
|
*/
|
|
226852
226852
|
createLine: function createLine() {
|
|
226853
226853
|
var _this$$refs$hoComment;
|
|
226854
|
-
|
|
226855
|
-
|
|
226856
|
-
|
|
226857
|
-
// }
|
|
226854
|
+
this.clearLine();
|
|
226855
|
+
var hoCommentBox = document.querySelector("#ho-comment-box-".concat(this.pageIndex));
|
|
226856
|
+
hoCommentBox.addEventListener('scroll', this.createLine, true);
|
|
226858
226857
|
// 起点中心坐标
|
|
226859
226858
|
var pageProperty = vueController.pageProperty();
|
|
226860
226859
|
var startY = this.endNodeY;
|
|
226861
226860
|
var startX = this.endNodeX;
|
|
226862
226861
|
// 终点中心坐标
|
|
226863
|
-
var hoCommentBox = document.querySelector("#ho-comment-box-".concat(this.pageIndex));
|
|
226864
226862
|
var endY = this.$refs.hoCommentItem.getBoundingClientRect().top - hoCommentBox.getBoundingClientRect().top;
|
|
226865
226863
|
var endX = pageProperty.widthPixes;
|
|
226866
226864
|
var lx = endX - startX;
|
|
@@ -226884,10 +226882,10 @@ var historyvue_type_template_id_0e2322a4_staticRenderFns = [];
|
|
|
226884
226882
|
});
|
|
226885
226883
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
226886
226884
|
/* harmony default export */ var common_historyvue_type_script_lang_js_ = (historyvue_type_script_lang_js_);
|
|
226887
|
-
;// 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/common/history/index.vue?vue&type=style&index=0&id=
|
|
226885
|
+
;// 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/common/history/index.vue?vue&type=style&index=0&id=a370a0a0&prod&lang=less&
|
|
226888
226886
|
// extracted by mini-css-extract-plugin
|
|
226889
226887
|
|
|
226890
|
-
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=
|
|
226888
|
+
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=a370a0a0&prod&lang=less&
|
|
226891
226889
|
|
|
226892
226890
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue
|
|
226893
226891
|
|
|
@@ -226900,8 +226898,8 @@ var historyvue_type_template_id_0e2322a4_staticRenderFns = [];
|
|
|
226900
226898
|
|
|
226901
226899
|
var history_component = (0,componentNormalizer/* default */.Z)(
|
|
226902
226900
|
common_historyvue_type_script_lang_js_,
|
|
226903
|
-
|
|
226904
|
-
|
|
226901
|
+
historyvue_type_template_id_a370a0a0_render,
|
|
226902
|
+
historyvue_type_template_id_a370a0a0_staticRenderFns,
|
|
226905
226903
|
false,
|
|
226906
226904
|
null,
|
|
226907
226905
|
null,
|
|
@@ -236494,7 +236492,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
236494
236492
|
/*
|
|
236495
236493
|
* @Author: your name
|
|
236496
236494
|
* @Date: 2021-07-31 09:27:53
|
|
236497
|
-
* @LastEditTime: 2024-01-
|
|
236495
|
+
* @LastEditTime: 2024-01-18 15:20:33
|
|
236498
236496
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
236499
236497
|
* @Description: In User Settings Edit
|
|
236500
236498
|
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
@@ -236575,6 +236573,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
236575
236573
|
key: "updateTextInputFieldValue",
|
|
236576
236574
|
value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value) {
|
|
236577
236575
|
var _this = this;
|
|
236576
|
+
if (node.text === text && customProperty == undefined) return;
|
|
236578
236577
|
var hPromise = Promise.resolve();
|
|
236579
236578
|
hPromise = hPromise.then(function (res) {
|
|
236580
236579
|
return new Promise( /*#__PURE__*/function () {
|
|
@@ -236632,6 +236631,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
236632
236631
|
}, {
|
|
236633
236632
|
key: "updateDateTimeText",
|
|
236634
236633
|
value: function updateDateTimeText(node, text) {
|
|
236634
|
+
if (node.text === text) return;
|
|
236635
236635
|
node.setDateTimeText(text);
|
|
236636
236636
|
}
|
|
236637
236637
|
/**
|
|
@@ -236642,6 +236642,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
236642
236642
|
}, {
|
|
236643
236643
|
key: "updateDownListText",
|
|
236644
236644
|
value: function updateDownListText(node, text) {
|
|
236645
|
+
if (node.text === text) return;
|
|
236645
236646
|
node.setDownListText(text);
|
|
236646
236647
|
}
|
|
236647
236648
|
/**
|