hoeditor-web 3.1.222 → 3.1.224

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.
@@ -7875,13 +7875,10 @@ function mergeFn (a, b) {
7875
7875
  /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);
7876
7876
  /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25440);
7877
7877
  /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);
7878
- /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79978);
7879
- /* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_3__);
7880
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62953);
7881
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
7882
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57703);
7883
- /* harmony import */ var _UserHistory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78911);
7884
-
7878
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62953);
7879
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
7880
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57703);
7881
+ /* harmony import */ var _UserHistory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78911);
7885
7882
 
7886
7883
 
7887
7884
 
@@ -8051,7 +8048,7 @@ class CombineStyle {
8051
8048
  this._englishWidth.set(key, val);
8052
8049
  }
8053
8050
  static makeDefaultStyle(hoEditorFactoryID, ret) {
8054
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID);
8051
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID);
8055
8052
  ret._belongTo = StyleType.stAll;
8056
8053
  ret._font = hoEditorFactory.pageProperty.fontFormat;
8057
8054
  ret._size = hoEditorFactory.pageProperty.fontSize;
@@ -8072,7 +8069,7 @@ class CombineStyle {
8072
8069
  * 组装DrawSimpleText()中的style参数
8073
8070
  */
8074
8071
  getStyleKey() {
8075
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8072
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8076
8073
  let size = hoEditorFactory.unitConvert.fontPt2Pix(this._size);
8077
8074
  // let size=this._size;
8078
8075
  if (size) {
@@ -8084,10 +8081,11 @@ class CombineStyle {
8084
8081
  }
8085
8082
  }
8086
8083
  let strBold = this._bold ? "bold " : "";
8087
- let strFont = hoEditorFactory.unitConvert.replaceAll(this.font, '宋体', 'SimSun');
8088
- // strFont= hoEditorFactory.unitConvert.replaceAll(strFont, 'Times New Roman','SimSun');
8089
- strFont = hoEditorFactory.unitConvert.replaceAll(strFont, '黑体', 'SimSun');
8090
- strFont = hoEditorFactory.unitConvert.replaceAll(strFont, '微软雅黑', 'SimSun');
8084
+ // let strFont = hoEditorFactory.unitConvert.replaceAll(this.font, '宋体', 'SimSun');
8085
+ // strFont = hoEditorFactory.unitConvert.replaceAll(strFont, 'Times New Roman','SimSun');
8086
+ // strFont = hoEditorFactory.unitConvert.replaceAll(strFont, '黑体', 'SimSun');
8087
+ // strFont = hoEditorFactory.unitConvert.replaceAll(strFont, '微软雅黑', 'SimSun');
8088
+ let strFont = this.font.replace(/宋体|黑体|微软雅黑/g, "SimSun");
8091
8089
  if (this.font == "黑体") {
8092
8090
  strBold = "bold ";
8093
8091
  }
@@ -8107,7 +8105,7 @@ class CombineStyle {
8107
8105
  */
8108
8106
  getFontHeightByFontSize(fontSize) {
8109
8107
  let fontHeight = 0;
8110
- const hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8108
+ const hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8111
8109
  if (fontSize === 5) {
8112
8110
  //如果字号是6像素 八号字体
8113
8111
  fontHeight = hoeditfactory.unitConvert.mmConversionPx(1.76, false);
@@ -8219,7 +8217,7 @@ class TextStyle {
8219
8217
  return obj3;
8220
8218
  }
8221
8219
  get combineStyle() {
8222
- return TextStyle.combineStyle(this._hoEditorFactoryID, this, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle);
8220
+ return TextStyle.combineStyle(this._hoEditorFactoryID, this, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle);
8223
8221
  }
8224
8222
  copyProperty(srcStyle, destStyle) {
8225
8223
  if (srcStyle && destStyle && srcStyle !== destStyle) {
@@ -8360,7 +8358,7 @@ class TextStyle {
8360
8358
  */
8361
8359
  changeStyle(operateType, ext) {
8362
8360
  const newTextStyle = new TextStyle(this._hoEditorFactoryID);
8363
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8361
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
8364
8362
  newTextStyle.copyProperty(this, newTextStyle); //先将新样式初始化为原来的样式
8365
8363
  if (operateType === "fontSizeEnlarge") {
8366
8364
  let sizeValue = hoEditorFactory.docTree.defaultCombineStyle.size;
@@ -8487,7 +8485,7 @@ class TextStyle {
8487
8485
  newTextStyle.strikeout = true;
8488
8486
  }
8489
8487
  }
8490
- const newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
8488
+ const newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
8491
8489
  return newStyleIndex;
8492
8490
  }
8493
8491
  /**
@@ -8511,7 +8509,7 @@ class TextStyle {
8511
8509
  newTextStyle.commentID = changeValue;
8512
8510
  } else if (operateType === "reviewDelete") {
8513
8511
  newTextStyle.strikeout = true;
8514
- const newHistory = new _UserHistory__WEBPACK_IMPORTED_MODULE_6__/* .UserHistory */ .i(this._hoEditorFactoryID, _UserHistory__WEBPACK_IMPORTED_MODULE_6__/* .HistoryEditType */ .t.hetDelete);
8512
+ const newHistory = new _UserHistory__WEBPACK_IMPORTED_MODULE_5__/* .UserHistory */ .i(this._hoEditorFactoryID, _UserHistory__WEBPACK_IMPORTED_MODULE_5__/* .HistoryEditType */ .t.hetDelete);
8515
8513
  const historyIndex = newHistory.userCompare();
8516
8514
  newTextStyle.deleterIndex = historyIndex;
8517
8515
  }
@@ -8519,7 +8517,7 @@ class TextStyle {
8519
8517
  if (operateType === "formatPainter") {
8520
8518
  newStyleIndex = Number(changeValue);
8521
8519
  } else {
8522
- newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
8520
+ newStyleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(newTextStyle);
8523
8521
  }
8524
8522
  return newStyleIndex;
8525
8523
  }
@@ -8529,7 +8527,7 @@ class TextStyle {
8529
8527
  * @returns 大一号的字号
8530
8528
  */
8531
8529
  getBiggerfontSize(size) {
8532
- let biggerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
8530
+ let biggerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
8533
8531
  if (size === 5) {
8534
8532
  biggerSize = 5.5;
8535
8533
  }
@@ -8583,7 +8581,7 @@ class TextStyle {
8583
8581
  * @returns 小一号的字号
8584
8582
  */
8585
8583
  getSmallerfontSize(size) {
8586
- let smallerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
8584
+ let smallerSize = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).docTree.defaultCombineStyle.size;
8587
8585
  if (size === 42) {
8588
8586
  smallerSize = 36;
8589
8587
  }
@@ -102373,7 +102371,7 @@ var component = (0,componentNormalizer/* default */.A)(
102373
102371
 
102374
102372
  /***/ }),
102375
102373
 
102376
- /***/ 29045:
102374
+ /***/ 78211:
102377
102375
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
102378
102376
 
102379
102377
  "use strict";
@@ -102385,7 +102383,7 @@ __webpack_require__.d(__webpack_exports__, {
102385
102383
  "default": function() { return /* binding */ HoFamily; }
102386
102384
  });
102387
102385
 
102388
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoFamily.vue?vue&type=template&id=27dd2c8a
102386
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoFamily.vue?vue&type=template&id=5b0903e6
102389
102387
  var render = function render() {
102390
102388
  var _vm = this,
102391
102389
  _c = _vm._self._c,
@@ -102453,11 +102451,6 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
102453
102451
 
102454
102452
  /* harmony default export */ var HoFamilyvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
102455
102453
  name: 'HoFamily',
102456
- props: {
102457
- vueController: {
102458
- type: Object
102459
- }
102460
- },
102461
102454
  setup(props) {
102462
102455
  const fontFamily = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
102463
102456
  ch: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.548", null, "宋体"),
@@ -104404,7 +104397,7 @@ const textParams = {
104404
104397
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
104405
104398
 
104406
104399
  "use strict";
104407
- /* harmony default export */ __webpack_exports__.A = ('3.1.222');
104400
+ /* harmony default export */ __webpack_exports__.A = ('3.1.224');
104408
104401
 
104409
104402
  /***/ }),
104410
104403
 
@@ -134088,21 +134081,6 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134088
134081
  }
134089
134082
  const oldValue = this._canModifyContent.valueOf();
134090
134083
  this._canModifyContent = true;
134091
- if (text === '') {
134092
- this._canModifyContent = oldValue;
134093
- if (this.childNodes.length == 2 && this.childNodes[1] instanceof MarkNode/* MarkNode */.y && this.childNodes[1].MarkNodeType == 2) {
134094
- const contentMark = this.childNodes2[1];
134095
- const styleIndex = this.childNodes[0].styleIndex;
134096
- const contentMarkNode = new MarkNode/* MarkNode */.y(this._hoEditorFactoryID, this.childNodes[0].rootNodes, this, BaseNode/* NodeType */.Z6.ntMark, contentMark.text, styleIndex, MarkNode/* MarkNodeType */.g.mtContent);
134097
- this.childNodes.splice(1, 0, contentMarkNode);
134098
- }
134099
- this.update(0);
134100
- hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
134101
- hoEditorFactory.drawTree.caret.visible = true;
134102
- hoEditorFactory.drawTree.editor.input.focus();
134103
- hoEditorFactory.drawTree.moveCaretToPath(startPath);
134104
- return;
134105
- }
134106
134084
  const endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
134107
134085
  const aRange = new DomRange/* DomRange */.g(this._hoEditorFactoryID, startPath, endPath).normalize();
134108
134086
  //if (!(this.childNodes[1] instanceof MarkNode) && this.inputFieldType === 0) {
@@ -134118,6 +134096,21 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134118
134096
  } else {
134119
134097
  hoEditorFactory.docTree.curDomRange.setSamePath(startPath);
134120
134098
  }
134099
+ if (text === '') {
134100
+ this._canModifyContent = oldValue;
134101
+ if (this.childNodes.length == 2) {
134102
+ const contentMark = this.childNodes2[1];
134103
+ const styleIndex = this.childNodes[0].styleIndex;
134104
+ const contentMarkNode = new MarkNode/* MarkNode */.y(this._hoEditorFactoryID, this.childNodes[0].rootNodes, this, BaseNode/* NodeType */.Z6.ntMark, contentMark.text, styleIndex, MarkNode/* MarkNodeType */.g.mtContent);
134105
+ this.childNodes.splice(1, 0, contentMarkNode);
134106
+ }
134107
+ this.update(0);
134108
+ hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
134109
+ hoEditorFactory.drawTree.caret.visible = true;
134110
+ hoEditorFactory.drawTree.editor.input.focus();
134111
+ hoEditorFactory.drawTree.moveCaretToPath(startPath);
134112
+ return;
134113
+ }
134121
134114
  let textStr = "";
134122
134115
  if (isTrace) {
134123
134116
  if (this.inputFieldType === 0) {
@@ -134267,6 +134260,10 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
134267
134260
  */
134268
134261
  //根据可放置的宽度,将普通组件转换成绘制组件
134269
134262
  placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex, endPath) {
134263
+ var _this$customProperty;
134264
+ if (((_this$customProperty = this.customProperty) === null || _this$customProperty === void 0 ? void 0 : _this$customProperty.hidden) == true) {
134265
+ return dline;
134266
+ }
134270
134267
  let paraNode = paragraphNode;
134271
134268
  let aline = dline;
134272
134269
  const startIndex = start;
@@ -136516,7 +136513,11 @@ class DrawLine extends DrawContainer/* DrawContainer */.g {
136516
136513
  if (isDraw) {
136517
136514
  const shape = new createjs.Shape();
136518
136515
  shape.graphics.clear();
136519
- const width = Math.max(this.actualWidth, this.dWidth);
136516
+ let width = Math.max(this.actualWidth, this.dWidth);
136517
+ if (this.x != 0) {
136518
+ shape.x = -this.x;
136519
+ width += this.x;
136520
+ }
136520
136521
  if (hoEditorFactory.pageProperty.lineUnderlineStyle === 0) {
136521
136522
  shape.graphics.beginFill(hoEditorFactory.pageProperty.lineUnderlineColor || '#000000').drawRect(0, 0, width, 1).endFill();
136522
136523
  } else {
@@ -148897,7 +148898,9 @@ class DrawTree {
148897
148898
  if (dline instanceof DrawTable/* DrawTable */.n) {
148898
148899
  throw new Error('错误的文档结构,表格后面需要放置一个段落节点');
148899
148900
  } else {
148900
- if (!(hoeditorFactory.drawTree.paintStatus != PaintState.psDesign && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true)) {
148901
+ const nodeHidden = node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true;
148902
+ const nodePHidden = node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.parentNode.customProperty.hidden == true;
148903
+ if (!(hoeditorFactory.drawTree.paintStatus != PaintState.psDesign && (nodeHidden || nodePHidden))) {
148901
148904
  dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, startChildIndex, node.getLength() - 1, aEndPath);
148902
148905
  if (dline.paragraphNode !== paraNode) {
148903
148906
  paraNode = dline.paragraphNode;
@@ -149026,7 +149029,9 @@ class DrawTree {
149026
149029
  if (dline instanceof DrawTable/* DrawTable */.n) {
149027
149030
  throw new Error('错误的文档结构,表格前面需要放置一个段落节点');
149028
149031
  } else {
149029
- if (!(hoEditorFactory.drawTree.paintStatus != PaintState.psDesign && node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true)) {
149032
+ const nodeHidden = node instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.customProperty.hidden == true;
149033
+ const nodePHidden = node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.IM && node.parentNode.customProperty.hidden == true;
149034
+ if (!(hoEditorFactory.drawTree.paintStatus != PaintState.psDesign && (nodeHidden || nodePHidden))) {
149030
149035
  dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, 0, node.getLength() - 1, aEndPath);
149031
149036
  if (dline.paragraphNode !== paraNode) {
149032
149037
  paraNode = dline.paragraphNode;
@@ -158441,7 +158446,7 @@ webpackContext.id = 44954;
158441
158446
 
158442
158447
  var map = {
158443
158448
  "./HoBackColor.vue": 88131,
158444
- "./HoFamily.vue": 29045,
158449
+ "./HoFamily.vue": 78211,
158445
158450
  "./HoFontColor.vue": 80578,
158446
158451
  "./HoInsert.vue": 18889,
158447
158452
  "./HoLineHeight.vue": 45647,
@@ -248483,8 +248488,8 @@ var entry_lib_ToolBar_component = (0,entry_lib_componentNormalizer/* default */.
248483
248488
  )
248484
248489
 
248485
248490
  /* harmony default export */ var entry_lib_ToolBar = (entry_lib_ToolBar_component.exports);
248486
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoToolBar.vue?vue&type=template&id=20841c6c
248487
- var entry_lib_HoToolBarvue_type_template_id_20841c6c_render = function render() {
248491
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoToolBar.vue?vue&type=template&id=bbbf6f9c
248492
+ var entry_lib_HoToolBarvue_type_template_id_bbbf6f9c_render = function render() {
248488
248493
  var _vm = this,
248489
248494
  _c = _vm._self._c,
248490
248495
  _setup = _vm._self._setupProxy;
@@ -248599,7 +248604,7 @@ var entry_lib_HoToolBarvue_type_template_id_20841c6c_render = function render()
248599
248604
  staticClass: "ho-emr-tool-right"
248600
248605
  }, [_vm._t("HoToolRight")], 2)]);
248601
248606
  };
248602
- var entry_lib_HoToolBarvue_type_template_id_20841c6c_staticRenderFns = [];
248607
+ var entry_lib_HoToolBarvue_type_template_id_bbbf6f9c_staticRenderFns = [];
248603
248608
 
248604
248609
  ;// ./src/components/toolbar/tool/defaultTool.ts
248605
248610
  const entry_lib_defaultReviewJson = {
@@ -248936,6 +248941,13 @@ function entry_lib_HoToolBarvue_type_script_lang_js_debounce(func, wait) {
248936
248941
  resizeObserver.observe(hoEmrToolBarBox.value);
248937
248942
  }
248938
248943
  });
248944
+ const hoEditorProvider = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.inject)("hoEditorProvider");
248945
+ // 深度观察 user 对象的变化
248946
+ (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.watch)('hoEditorProvider.textStyle', (newVal, oldVal) => {
248947
+ setCurrentFonts();
248948
+ }, {
248949
+ deep: true
248950
+ });
248939
248951
  (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.watch)([props.reviewJson, props.browseJson, props.editJson], () => {
248940
248952
  reviewJson.value = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, reviewJson.value), props.reviewJson);
248941
248953
  browseJson.value = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, browseJson.value), props.browseJson);
@@ -248993,6 +249005,9 @@ function entry_lib_HoToolBarvue_type_script_lang_js_debounce(func, wait) {
248993
249005
  const $Rarewords = (__webpack_require__(65770)/* ["default"] */ .A);
248994
249006
  $Rarewords.open();
248995
249007
  };
249008
+ const setCurrentFonts = () => {
249009
+ const val = hoEditorProvider.value.textStyle;
249010
+ };
248996
249011
  const saveAsFile = ({
248997
249012
  key: fileType
248998
249013
  }) => {
@@ -249047,10 +249062,10 @@ function entry_lib_HoToolBarvue_type_script_lang_js_debounce(func, wait) {
249047
249062
 
249048
249063
  /* harmony default export */ var entry_lib_toolbar_HoToolBarvue_type_script_lang_js = (entry_lib_HoToolBarvue_type_script_lang_js);
249049
249064
 
249050
- ;// ./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/HoToolBar.vue?vue&type=style&index=0&id=20841c6c&prod&lang=less
249065
+ ;// ./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/HoToolBar.vue?vue&type=style&index=0&id=bbbf6f9c&prod&lang=less
249051
249066
  // extracted by mini-css-extract-plugin
249052
249067
 
249053
- ;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=20841c6c&prod&lang=less
249068
+ ;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=bbbf6f9c&prod&lang=less
249054
249069
 
249055
249070
  ;// ./src/components/toolbar/HoToolBar.vue
249056
249071
 
@@ -249063,8 +249078,8 @@ function entry_lib_HoToolBarvue_type_script_lang_js_debounce(func, wait) {
249063
249078
 
249064
249079
  var entry_lib_HoToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
249065
249080
  entry_lib_toolbar_HoToolBarvue_type_script_lang_js,
249066
- entry_lib_HoToolBarvue_type_template_id_20841c6c_render,
249067
- entry_lib_HoToolBarvue_type_template_id_20841c6c_staticRenderFns,
249081
+ entry_lib_HoToolBarvue_type_template_id_bbbf6f9c_render,
249082
+ entry_lib_HoToolBarvue_type_template_id_bbbf6f9c_staticRenderFns,
249068
249083
  false,
249069
249084
  null,
249070
249085
  null,