hoeditor-web 3.1.212 → 3.1.214

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.
@@ -97516,7 +97516,7 @@ var component = (0,componentNormalizer/* default */.A)(
97516
97516
 
97517
97517
  /***/ }),
97518
97518
 
97519
- /***/ 89316:
97519
+ /***/ 28140:
97520
97520
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
97521
97521
 
97522
97522
  "use strict";
@@ -97528,7 +97528,7 @@ __webpack_require__.d(__webpack_exports__, {
97528
97528
  "default": function() { return /* binding */ PoperTipText; }
97529
97529
  });
97530
97530
 
97531
- ;// ./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/controls/poperTipText/PoperTipText.vue?vue&type=template&id=e75fb14e
97531
+ ;// ./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/controls/poperTipText/PoperTipText.vue?vue&type=template&id=17849594
97532
97532
  var render = function render() {
97533
97533
  var _vm = this,
97534
97534
  _c = _vm._self._c;
@@ -97610,7 +97610,7 @@ var popper = __webpack_require__(98234);
97610
97610
  if (this.poppernIstance) {
97611
97611
  this.poppernIstance.update();
97612
97612
  }
97613
- }, 200);
97613
+ }, 100);
97614
97614
  } else {
97615
97615
  if (!this.isEnter) {
97616
97616
  this.poperTimer = setTimeout(() => {
@@ -97632,7 +97632,7 @@ var popper = __webpack_require__(98234);
97632
97632
  }
97633
97633
  },
97634
97634
  mounted() {
97635
- window.addEventListener('scroll', this.handleClose, true);
97635
+ // window.addEventListener('scroll', this.handleClose, true);
97636
97636
  if (JSON.stringify(this.poperText) !== '[]' && this.poppernIstance == null) {
97637
97637
  setTimeout(() => {
97638
97638
  this.poperTextNode = this.$refs.poperTextNode;
@@ -97682,14 +97682,14 @@ var popper = __webpack_require__(98234);
97682
97682
  this.isEnter = false;
97683
97683
  this.isShow = false;
97684
97684
  this.handleClose();
97685
- }, 300);
97685
+ }, 100);
97686
97686
  },
97687
97687
  handleClose() {
97688
97688
  this.$emit('poperTextClose');
97689
97689
  this.poppernIstance = null;
97690
97690
  },
97691
97691
  beforeDestroy() {
97692
- document.removeEventListener('scroll', this.handleClose, true);
97692
+ // document.removeEventListener('scroll', this.handleClose, true);
97693
97693
  }
97694
97694
  }
97695
97695
  });
@@ -97697,10 +97697,10 @@ var popper = __webpack_require__(98234);
97697
97697
 
97698
97698
  /* harmony default export */ var poperTipText_PoperTipTextvue_type_script_lang_js = (PoperTipTextvue_type_script_lang_js);
97699
97699
 
97700
- ;// ./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/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=e75fb14e&prod&lang=less
97700
+ ;// ./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/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=17849594&prod&lang=less
97701
97701
  // extracted by mini-css-extract-plugin
97702
97702
 
97703
- ;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=e75fb14e&prod&lang=less
97703
+ ;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=17849594&prod&lang=less
97704
97704
 
97705
97705
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
97706
97706
  var componentNormalizer = __webpack_require__(81656);
@@ -112816,6 +112816,897 @@ var component = (0,componentNormalizer/* default */.A)(
112816
112816
 
112817
112817
  /***/ }),
112818
112818
 
112819
+ /***/ 88131:
112820
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
112821
+
112822
+ "use strict";
112823
+ // ESM COMPAT FLAG
112824
+ __webpack_require__.r(__webpack_exports__);
112825
+
112826
+ // EXPORTS
112827
+ __webpack_require__.d(__webpack_exports__, {
112828
+ "default": function() { return /* binding */ HoBackColor; }
112829
+ });
112830
+
112831
+ ;// ./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/HoBackColor.vue?vue&type=template&id=ff81620c
112832
+ var render = function render() {
112833
+ var _vm = this,
112834
+ _c = _vm._self._c,
112835
+ _setup = _vm._self._setupProxy;
112836
+ return _c('HoColorPickers', {
112837
+ attrs: {
112838
+ "presetColors": _vm.predefineColors,
112839
+ "defaultColor": _vm.backcolor
112840
+ },
112841
+ on: {
112842
+ "change": _vm.backColorChange
112843
+ }
112844
+ }, [_c('svg', {
112845
+ staticStyle: {
112846
+ "transform": "translate(0px, 0px)"
112847
+ },
112848
+ attrs: {
112849
+ "xmlns": "http://www.w3.org/2000/svg",
112850
+ "width": "30",
112851
+ "height": "30",
112852
+ "viewBox": "0 0 1024 1024"
112853
+ }
112854
+ }, [_c('path', {
112855
+ attrs: {
112856
+ "fill": "#555",
112857
+ "d": "M170.037895 409.061053c0.970105-17.354105 6.036211-32.336842 15.090526-45.002106a113.178947 113.178947 0 0 1 34.330947-31.258947c13.743158-8.192 28.995368-14.282105 45.810527-18.216421 16.761263-3.934316 33.522526-5.928421 50.176-5.928421 18.432 0 36.271158 1.832421 53.571368 5.389474 17.300211 3.610947 32.660211 9.323789 46.026105 17.138526 13.365895 7.868632 24.090947 18.054737 32.175158 30.558316 8.084211 12.503579 12.126316 27.594105 12.126316 45.271579v166.103579c0 5.497263 0.970105 10.509474 2.856421 15.036631 1.886316 4.527158 4.096 6.790737 6.629053 6.790737 1.778526 0 12.126316-3.018105 31.043368-8.946526v51.792842c-10.832842 2.640842-19.887158 4.742737-27.055158 6.251789a103.208421 103.208421 0 0 1-21.773473 2.317474c-14.389895 0-26.947368-3.233684-37.726316-9.808842a57.344 57.344 0 0 1-23.65979-29.857684 142.336 142.336 0 0 1-55.511579 32.175158c-9.431579 2.856421-19.078737 4.850526-28.941473 5.928421-9.808842 1.077895-19.833263 1.616842-29.911579 1.616842-15.898947 0-30.773895-2.155789-44.732632-6.467369a113.825684 113.825684 0 0 1-36.109473-18.216421 84.614737 84.614737 0 0 1-24.037053-28.779789A82.890105 82.890105 0 0 1 161.684211 554.576842c0-14.982737 3.179789-27.594105 9.485473-37.834105 6.305684-10.24 14.551579-18.970947 24.791579-26.085053a145.515789 145.515789 0 0 1 35.031579-17.731368c13.150316-4.634947 26.516211-8.677053 40.151579-12.126316s27.001263-6.629053 40.151579-9.485474c13.096421-2.856421 24.791579-6.197895 35.031579-9.970526 10.24-3.826526 18.485895-8.407579 24.791579-13.797053a25.761684 25.761684 0 0 0 9.485474-20.48c0-16.491789-5.820632-28.402526-17.461895-35.786105-11.587368-7.383579-27.863579-11.048421-48.828632-11.048421-8.084211 0-15.629474 0.862316-22.743579 2.694737a56.32 56.32 0 0 0-18.917052 8.515368 50.768842 50.768842 0 0 0-14.012632 15.198316c-3.772632 6.197895-6.305684 13.689263-7.545263 22.528H169.984z m210.566737 66.829473c-6.305684 3.826526-14.174316 7.114105-23.498106 9.862737-9.323789 2.694737-19.186526 5.551158-29.534315 8.407579-10.347789 2.856421-20.749474 5.928421-31.258948 9.108211-10.455579 3.233684-19.887158 7.060211-28.186947 11.587368-8.353684 4.527158-15.090526 9.916632-20.264421 16.114526a33.953684 33.953684 0 0 0-7.760842 22.528 46.349474 46.349474 0 0 0 3.772631 19.779369 35.354947 35.354947 0 0 0 23.498105 19.671579c5.012211 1.293474 10.078316 1.994105 15.090527 1.994105 17.461895 0 34.762105-5.551158 51.900631-16.653474 17.192421-11.048421 32.606316-27.540211 46.241685-49.475368v-52.870737z m170.415157-287.258947h79.117474v147.563789c11.856842-8.569263 24.791579-15.306105 38.642526-20.156631a121.802105 121.802105 0 0 1 40.528843-7.329684c25.276632 0 47.427368 4.419368 66.667789 13.20421 19.186526 8.838737 35.139368 20.911158 47.912421 36.271158 12.719158 15.36 22.312421 33.360842 28.77979 53.948632 6.467368 20.641684 9.647158 42.576842 9.647157 65.967158 0 23.336421-3.233684 45.271579-9.862736 65.751578-6.575158 20.48-16.330105 38.319158-29.318737 53.571369-13.042526 15.252211-29.103158 27.270737-48.289684 36.109474-19.186526 8.784842-41.445053 13.204211-66.66779 13.20421-13.904842 0-27.594105-2.263579-41.067789-6.790737a129.724632 129.724632 0 0 1-36.97179-19.294316v19.294316h-79.117474V188.631579z m79.117474 289.414737c0 16.222316 1.724632 31.474526 5.12 45.810526 3.449263 14.228211 8.353684 26.624 14.767158 37.133474 6.467368 10.455579 14.389895 18.755368 23.875368 24.791579 9.485474 6.090105 20.264421 9.162105 32.336843 9.162105 12.395789 0 23.390316-3.072 32.983579-9.162105 9.593263-6.036211 17.677474-14.336 24.252631-24.791579 6.575158-10.509474 11.533474-22.905263 14.982737-37.187369a196.715789 196.715789 0 0 0 5.066105-45.702736c0-16.222316-1.670737-31.474526-5.066105-45.810527a128.431158 128.431158 0 0 0-14.982737-37.456842 78.147368 78.147368 0 0 0-24.252631-25.384421 59.392 59.392 0 0 0-32.929685-9.269895c-11.856842 0-22.420211 2.964211-31.63621 8.892632-9.162105 5.928421-17.030737 14.012632-23.498105 24.144842-6.413474 10.132211-11.479579 22.042947-15.090527 35.732211a181.786947 181.786947 0 0 0-5.928421 44.139789v5.012211z"
112858
+ }
112859
+ }), _c('path', {
112860
+ attrs: {
112861
+ "d": "M851.536842 485.052632H970.105263l-247.915789 269.473684H377.263158z",
112862
+ "fill": _vm.backcolor
112863
+ }
112864
+ })])]);
112865
+ };
112866
+ var staticRenderFns = [];
112867
+
112868
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
112869
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
112870
+ // EXTERNAL MODULE: ./src/components/controls/colorPicker/HoColorPickers.vue + 5 modules
112871
+ var HoColorPickers = __webpack_require__(63501);
112872
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoBackColor.vue?vue&type=script&lang=js
112873
+
112874
+
112875
+ /* harmony default export */ var HoBackColorvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
112876
+ name: 'HoBackColor',
112877
+ components: {
112878
+ HoColorPickers: HoColorPickers["default"]
112879
+ },
112880
+ props: {
112881
+ vueController: {
112882
+ type: Object
112883
+ }
112884
+ },
112885
+ setup(props) {
112886
+ const predefineColors = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1', '#1e90ff', '#c71585', '#158577', '#ffffff', '#000000']);
112887
+ const backcolor = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)("transparent");
112888
+ const backColorChange = val => {
112889
+ let backcolors = val;
112890
+ backcolor.value = backcolors;
112891
+ if (val === null) {
112892
+ backcolors = 'transparent';
112893
+ }
112894
+ props.vueController.fontBackColor(backcolors);
112895
+ };
112896
+ return {
112897
+ backcolor,
112898
+ predefineColors,
112899
+ backColorChange
112900
+ };
112901
+ }
112902
+ }));
112903
+ ;// ./src/components/toolbar/tool/HoBackColor.vue?vue&type=script&lang=js
112904
+
112905
+ /* harmony default export */ var tool_HoBackColorvue_type_script_lang_js = (HoBackColorvue_type_script_lang_js);
112906
+
112907
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
112908
+ var componentNormalizer = __webpack_require__(81656);
112909
+ ;// ./src/components/toolbar/tool/HoBackColor.vue
112910
+
112911
+
112912
+
112913
+
112914
+
112915
+ /* normalize component */
112916
+ ;
112917
+ var component = (0,componentNormalizer/* default */.A)(
112918
+ tool_HoBackColorvue_type_script_lang_js,
112919
+ render,
112920
+ staticRenderFns,
112921
+ false,
112922
+ null,
112923
+ null,
112924
+ null
112925
+
112926
+ )
112927
+
112928
+ /* harmony default export */ var HoBackColor = (component.exports);
112929
+
112930
+ /***/ }),
112931
+
112932
+ /***/ 69723:
112933
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
112934
+
112935
+ "use strict";
112936
+ // ESM COMPAT FLAG
112937
+ __webpack_require__.r(__webpack_exports__);
112938
+
112939
+ // EXPORTS
112940
+ __webpack_require__.d(__webpack_exports__, {
112941
+ "default": function() { return /* binding */ HoFamily; }
112942
+ });
112943
+
112944
+ ;// ./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=453fc5f2
112945
+ var render = function render() {
112946
+ var _vm = this,
112947
+ _c = _vm._self._c,
112948
+ _setup = _vm._self._setupProxy;
112949
+ return _c('a-dropdown', {
112950
+ attrs: {
112951
+ "trigger": ['click']
112952
+ }
112953
+ }, [_c('p', {
112954
+ staticClass: "ant-dropdown-link ant-dropdown-link-text",
112955
+ staticStyle: {
112956
+ "width": "100%"
112957
+ },
112958
+ on: {
112959
+ "click": function ($event) {
112960
+ $event.preventDefault();
112961
+ }
112962
+ }
112963
+ }, [_c('span', [_vm._v(_vm._s(_vm.font.ch))]), _vm._v(" "), _c('a-icon', {
112964
+ attrs: {
112965
+ "type": "caret-down"
112966
+ }
112967
+ })], 1), _c('a-menu', {
112968
+ attrs: {
112969
+ "slot": "overlay"
112970
+ },
112971
+ slot: "overlay"
112972
+ }, _vm._l(_vm.fontFamily, function (fontItem) {
112973
+ return _c('a-menu-item', {
112974
+ key: fontItem.ch,
112975
+ class: {
112976
+ selected: fontItem.en === _vm.font.en
112977
+ },
112978
+ style: {
112979
+ fontFamily: fontItem.ch
112980
+ },
112981
+ on: {
112982
+ "click": () => _vm.fontFamilyClick(fontItem)
112983
+ }
112984
+ }, [_vm._v(" " + _vm._s(fontItem.family) + " ")]);
112985
+ }), 1)], 1);
112986
+ };
112987
+ var staticRenderFns = [];
112988
+
112989
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
112990
+ var es_regexp_exec = __webpack_require__(27495);
112991
+ // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
112992
+ var style = __webpack_require__(21902);
112993
+ // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
112994
+ var message = __webpack_require__(40233);
112995
+ // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
112996
+ var i18n = __webpack_require__(49850);
112997
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
112998
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
112999
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoFamily.vue?vue&type=script&lang=js
113000
+
113001
+
113002
+
113003
+
113004
+
113005
+
113006
+ /* harmony default export */ var HoFamilyvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
113007
+ name: 'HoFamily',
113008
+ props: {
113009
+ vueController: {
113010
+ type: Object
113011
+ }
113012
+ },
113013
+ setup(props) {
113014
+ const fontFamily = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
113015
+ ch: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.548", null, "宋体"),
113016
+ en: 'SimSun',
113017
+ family: '宋体, SimSun'
113018
+ }, {
113019
+ ch: 'arial',
113020
+ en: 'arial',
113021
+ family: 'arial'
113022
+ }, {
113023
+ ch: 'Times New Roman',
113024
+ en: 'Times New Roman',
113025
+ family: 'Times New Roman'
113026
+ }, {
113027
+ ch: 'himalaya',
113028
+ en: 'himalaya',
113029
+ family: 'himalaya(藏语字体)'
113030
+ }]);
113031
+ const font = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({
113032
+ ch: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.548", null, "宋体"),
113033
+ en: 'SimSun'
113034
+ });
113035
+ /**
113036
+ * 字体
113037
+ */
113038
+ const fontFamilyClick = fontItem => {
113039
+ const selectText = props.vueController.getSelectText();
113040
+ const matchText = selectText.match(/[\u4e00-\u9fa5]+/g);
113041
+ if (fontItem.ch !== /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.548", null, "宋体") && matchText) {
113042
+ message/* default */.A.error(`不能将中文字符【${matchText.join(',')}】设置为英文字体${fontItem.ch}`);
113043
+ return false;
113044
+ }
113045
+ font.value = fontItem;
113046
+ props.vueController.fontFormat(fontItem.ch);
113047
+ };
113048
+ return {
113049
+ font,
113050
+ fontFamily,
113051
+ fontFamilyClick
113052
+ };
113053
+ }
113054
+ }));
113055
+ ;// ./src/components/toolbar/tool/HoFamily.vue?vue&type=script&lang=js
113056
+
113057
+ /* harmony default export */ var tool_HoFamilyvue_type_script_lang_js = (HoFamilyvue_type_script_lang_js);
113058
+
113059
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
113060
+ var componentNormalizer = __webpack_require__(81656);
113061
+ ;// ./src/components/toolbar/tool/HoFamily.vue
113062
+
113063
+
113064
+
113065
+
113066
+
113067
+ /* normalize component */
113068
+ ;
113069
+ var component = (0,componentNormalizer/* default */.A)(
113070
+ tool_HoFamilyvue_type_script_lang_js,
113071
+ render,
113072
+ staticRenderFns,
113073
+ false,
113074
+ null,
113075
+ null,
113076
+ null
113077
+
113078
+ )
113079
+
113080
+ /* harmony default export */ var HoFamily = (component.exports);
113081
+
113082
+ /***/ }),
113083
+
113084
+ /***/ 80578:
113085
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
113086
+
113087
+ "use strict";
113088
+ // ESM COMPAT FLAG
113089
+ __webpack_require__.r(__webpack_exports__);
113090
+
113091
+ // EXPORTS
113092
+ __webpack_require__.d(__webpack_exports__, {
113093
+ "default": function() { return /* binding */ HoFontColor; }
113094
+ });
113095
+
113096
+ ;// ./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/HoFontColor.vue?vue&type=template&id=c56a40da
113097
+ var render = function render() {
113098
+ var _vm = this,
113099
+ _c = _vm._self._c,
113100
+ _setup = _vm._self._setupProxy;
113101
+ return _c('HoColorPickers', {
113102
+ attrs: {
113103
+ "presetColors": _vm.predefineColors,
113104
+ "defaultColor": _vm.color
113105
+ },
113106
+ on: {
113107
+ "change": _vm.colorChange
113108
+ }
113109
+ }, [_c('svg', {
113110
+ staticStyle: {
113111
+ "transform": "translate(0, 0px)"
113112
+ },
113113
+ attrs: {
113114
+ "xmlns": "http://www.w3.org/2000/svg",
113115
+ "width": "16",
113116
+ "height": "17",
113117
+ "viewBox": "0 0 16 17"
113118
+ }
113119
+ }, [_c('g', {
113120
+ attrs: {
113121
+ "fill": "none",
113122
+ "fill-rule": "evenodd",
113123
+ "transform": "translate(-4 -3)"
113124
+ }
113125
+ }, [_c('rect', {
113126
+ attrs: {
113127
+ "width": "24",
113128
+ "height": "24",
113129
+ "fill": "#F0F0F0",
113130
+ "opacity": "0"
113131
+ }
113132
+ }), _c('path', {
113133
+ attrs: {
113134
+ "fill": "#555",
113135
+ "d": "M12,3 C12.3925578,3 12.7488579,3.22956042 12.9113768,3.5869126 L16.5538794,11.5993713 L17.9189416,14.6040434 C18.1331826,15.1044933 17.9084769,15.6844371 17.412985,15.9098686 C16.9174931,16.1353002 16.3326765,15.9236609 16.096188,15.4333329 L14.9965268,13.0155734 L9.00347324,13.0155734 L7.90381202,15.4333329 C7.66732348,15.9236609 7.08250692,16.1353002 6.58701502,15.9098686 C6.09152313,15.6844371 5.86681743,15.1044933 6.08105844,14.6040434 L7.4461206,11.5993713 L11.0886232,3.5869126 C11.2511421,3.22956042 11.6074422,3 12,3 Z M9.91384852,11.0124587 L14.0861515,11.0124587 L12,6.42232144 L9.91384852,11.0124587 Z"
113136
+ }
113137
+ }), _c('rect', {
113138
+ attrs: {
113139
+ "width": "16",
113140
+ "height": "3",
113141
+ "x": "4",
113142
+ "y": "17",
113143
+ "fill": _vm.color,
113144
+ "rx": "1.5"
113145
+ }
113146
+ })])])]);
113147
+ };
113148
+ var staticRenderFns = [];
113149
+
113150
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
113151
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
113152
+ // EXTERNAL MODULE: ./src/components/controls/colorPicker/HoColorPickers.vue + 5 modules
113153
+ var HoColorPickers = __webpack_require__(63501);
113154
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoFontColor.vue?vue&type=script&lang=js
113155
+
113156
+
113157
+ /* harmony default export */ var HoFontColorvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
113158
+ name: 'HoFontColor',
113159
+ components: {
113160
+ HoColorPickers: HoColorPickers["default"]
113161
+ },
113162
+ props: {
113163
+ vueController: {
113164
+ type: Object
113165
+ }
113166
+ },
113167
+ setup(props) {
113168
+ const predefineColors = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(['#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1', '#1e90ff', '#c71585', '#158577', '#ffffff', '#000000']);
113169
+ const color = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('#000');
113170
+ const colorChange = val => {
113171
+ let colors = val;
113172
+ color.value = colors;
113173
+ if (val === null) {
113174
+ colors = 'transparent';
113175
+ }
113176
+ props.vueController.fontColor(colors);
113177
+ };
113178
+ return {
113179
+ color,
113180
+ predefineColors,
113181
+ colorChange
113182
+ };
113183
+ }
113184
+ }));
113185
+ ;// ./src/components/toolbar/tool/HoFontColor.vue?vue&type=script&lang=js
113186
+
113187
+ /* harmony default export */ var tool_HoFontColorvue_type_script_lang_js = (HoFontColorvue_type_script_lang_js);
113188
+
113189
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
113190
+ var componentNormalizer = __webpack_require__(81656);
113191
+ ;// ./src/components/toolbar/tool/HoFontColor.vue
113192
+
113193
+
113194
+
113195
+
113196
+
113197
+ /* normalize component */
113198
+ ;
113199
+ var component = (0,componentNormalizer/* default */.A)(
113200
+ tool_HoFontColorvue_type_script_lang_js,
113201
+ render,
113202
+ staticRenderFns,
113203
+ false,
113204
+ null,
113205
+ null,
113206
+ null
113207
+
113208
+ )
113209
+
113210
+ /* harmony default export */ var HoFontColor = (component.exports);
113211
+
113212
+ /***/ }),
113213
+
113214
+ /***/ 18041:
113215
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
113216
+
113217
+ "use strict";
113218
+ // ESM COMPAT FLAG
113219
+ __webpack_require__.r(__webpack_exports__);
113220
+
113221
+ // EXPORTS
113222
+ __webpack_require__.d(__webpack_exports__, {
113223
+ "default": function() { return /* binding */ HoLineHeight; }
113224
+ });
113225
+
113226
+ ;// ./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/HoLineHeight.vue?vue&type=template&id=fc037bca
113227
+ var render = function render() {
113228
+ var _vm = this,
113229
+ _c = _vm._self._c,
113230
+ _setup = _vm._self._setupProxy;
113231
+ return _c('a-dropdown', {
113232
+ attrs: {
113233
+ "trigger": ['click']
113234
+ },
113235
+ scopedSlots: _vm._u([{
113236
+ key: "overlay",
113237
+ fn: function () {
113238
+ return [_c('a-menu', _vm._l(_vm.lineHeightList, function (item) {
113239
+ return _c('a-menu-item', {
113240
+ key: item,
113241
+ class: item === _vm.lineHeight ? 'selected' : '',
113242
+ nativeOn: {
113243
+ "click": function ($event) {
113244
+ return _vm.setLineHeight(item);
113245
+ }
113246
+ }
113247
+ }, [_vm._v(" " + _vm._s(item === 1.25 ? 1 : item) + " ")]);
113248
+ }), 1)];
113249
+ },
113250
+ proxy: true
113251
+ }])
113252
+ }, [_c('p', {
113253
+ staticClass: "ant-dropdown-link ant-dropdown-link-text",
113254
+ on: {
113255
+ "click": function ($event) {
113256
+ $event.preventDefault();
113257
+ }
113258
+ }
113259
+ }, [_c('span', [_c('svg', {
113260
+ staticStyle: {
113261
+ "transform": "translate(0px, 3px)"
113262
+ },
113263
+ attrs: {
113264
+ "xmlns": "http://www.w3.org/2000/svg",
113265
+ "width": "13",
113266
+ "height": "15",
113267
+ "viewBox": "0 0 13 15"
113268
+ }
113269
+ }, [_c('rect', {
113270
+ attrs: {
113271
+ "width": "24",
113272
+ "height": "24",
113273
+ "fill": "#F0F0F0",
113274
+ "opacity": "0"
113275
+ }
113276
+ }), _c('g', {
113277
+ attrs: {
113278
+ "fill": "none",
113279
+ "fill-rule": "evenodd",
113280
+ "transform": "translate(-6 -5)"
113281
+ }
113282
+ }, [_c('path', {
113283
+ attrs: {
113284
+ "fill": "#555",
113285
+ "fill-rule": "nonzero",
113286
+ "d": "M11.1666667,0 L1.16666667,0 C0.614381917,1.01453063e-16 0.166666667,0.44771525 0.166666667,1 C0.166666667,1.55228475 0.614381917,2 1.16666667,2 L11.1666667,2 C11.7189514,2 12.1666667,1.55228475 12.1666667,1 C12.1666667,0.44771525 11.7189514,-1.01453063e-16 11.1666667,0 Z M11.1666667,13 L1.16666667,13 C0.614381917,13 0.166666667,13.4477153 0.166666667,14 C0.166666667,14.5522847 0.614381917,15 1.16666667,15 L11.1666667,15 C11.7189514,15 12.1666667,14.5522847 12.1666667,14 C12.1666667,13.4477153 11.7189514,13 11.1666667,13 Z M7.90077172,5.59781723 L6.06730005,3.0552939 C6.01455136,2.9815687 5.91269183,2.9815687 5.86176206,3.0552939 L4.02829039,5.59781723 C3.96099034,5.69146816 4.02101471,5.83094828 4.13196885,5.83094828 L5.34518869,5.83094828 L5.34518869,9.17104429 L4.20290674,9.17104429 C4.09377152,9.17104429 4.03192823,9.31052441 4.09922828,9.40417535 L5.93269995,11.9447061 C5.98544864,12.0184313 6.08730817,12.0184313 6.13823794,11.9447061 L7.97170961,9.40417535 C8.03900966,9.31052441 7.97898529,9.17104429 7.86803115,9.17104429 L6.65481131,9.17104429 L6.65481131,5.83094828 L7.79709326,5.83094828 C7.90622848,5.83094828 7.96807177,5.69146816 7.90077172,5.59781723 Z",
113287
+ "transform": "translate(6 5)"
113288
+ }
113289
+ })])])]), _c('a-icon', {
113290
+ attrs: {
113291
+ "type": "caret-down"
113292
+ }
113293
+ })], 1)]);
113294
+ };
113295
+ var staticRenderFns = [];
113296
+
113297
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
113298
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
113299
+ // EXTERNAL MODULE: ./src/components/controls/popers/index.ts
113300
+ var popers = __webpack_require__(28682);
113301
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoLineHeight.vue?vue&type=script&lang=js
113302
+
113303
+
113304
+ /* harmony default export */ var HoLineHeightvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
113305
+ name: 'HoParagraphAlign',
113306
+ components: {
113307
+ Poper: popers/* default */.A
113308
+ },
113309
+ props: {
113310
+ vueController: {
113311
+ type: Object
113312
+ },
113313
+ value: {
113314
+ type: Number,
113315
+ default: 1.25
113316
+ }
113317
+ },
113318
+ setup(props) {
113319
+ const lineHeightList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5]);
113320
+ const lineHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(1.25);
113321
+ const selectedSvg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('alignLeft');
113322
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.value, newVal => {
113323
+ lineHeight.value = newVal;
113324
+ });
113325
+ const setLineHeight = item => {
113326
+ lineHeight.value = item;
113327
+ props.vueController.setLineHeight(item);
113328
+ };
113329
+ return {
113330
+ lineHeight,
113331
+ lineHeightList,
113332
+ setLineHeight
113333
+ };
113334
+ }
113335
+ }));
113336
+ ;// ./src/components/toolbar/tool/HoLineHeight.vue?vue&type=script&lang=js
113337
+
113338
+ /* harmony default export */ var tool_HoLineHeightvue_type_script_lang_js = (HoLineHeightvue_type_script_lang_js);
113339
+
113340
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
113341
+ var componentNormalizer = __webpack_require__(81656);
113342
+ ;// ./src/components/toolbar/tool/HoLineHeight.vue
113343
+
113344
+
113345
+
113346
+
113347
+
113348
+ /* normalize component */
113349
+ ;
113350
+ var component = (0,componentNormalizer/* default */.A)(
113351
+ tool_HoLineHeightvue_type_script_lang_js,
113352
+ render,
113353
+ staticRenderFns,
113354
+ false,
113355
+ null,
113356
+ null,
113357
+ null
113358
+
113359
+ )
113360
+
113361
+ /* harmony default export */ var HoLineHeight = (component.exports);
113362
+
113363
+ /***/ }),
113364
+
113365
+ /***/ 74458:
113366
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
113367
+
113368
+ "use strict";
113369
+ // ESM COMPAT FLAG
113370
+ __webpack_require__.r(__webpack_exports__);
113371
+
113372
+ // EXPORTS
113373
+ __webpack_require__.d(__webpack_exports__, {
113374
+ "default": function() { return /* binding */ HoParagraphAlign; }
113375
+ });
113376
+
113377
+ ;// ./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/HoParagraphAlign.vue?vue&type=template&id=89c84670
113378
+ var render = function render() {
113379
+ var _vm = this,
113380
+ _c = _vm._self._c,
113381
+ _setup = _vm._self._setupProxy;
113382
+ return _c('a-dropdown', {
113383
+ attrs: {
113384
+ "trigger": ['click']
113385
+ },
113386
+ scopedSlots: _vm._u([{
113387
+ key: "overlay",
113388
+ fn: function () {
113389
+ return [_c('a-menu', _vm._l(_vm.paragraph, function (item) {
113390
+ return _c('a-menu-item', {
113391
+ key: 'line-height-' + item.svg,
113392
+ class: item.align === _vm.aligned ? 'selected' : '',
113393
+ nativeOn: {
113394
+ "click": function ($event) {
113395
+ return _vm.setAlign(item);
113396
+ }
113397
+ }
113398
+ }, [_c('Poper', {
113399
+ attrs: {
113400
+ "title": item.title,
113401
+ "svg": item.svg,
113402
+ "selected": _vm.aligned === item.align
113403
+ }
113404
+ })], 1);
113405
+ }), 1)];
113406
+ },
113407
+ proxy: true
113408
+ }])
113409
+ }, [_c('p', {
113410
+ staticClass: "ant-dropdown-link ant-dropdown-link-text",
113411
+ on: {
113412
+ "click": function ($event) {
113413
+ $event.preventDefault();
113414
+ }
113415
+ }
113416
+ }, [_c('span', {
113417
+ class: 'svg svg-' + _vm.selectedSvg
113418
+ }), _c('a-icon', {
113419
+ attrs: {
113420
+ "type": "caret-down"
113421
+ }
113422
+ })], 1)]);
113423
+ };
113424
+ var staticRenderFns = [];
113425
+
113426
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
113427
+ var esnext_iterator_constructor = __webpack_require__(98992);
113428
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
113429
+ var esnext_iterator_for_each = __webpack_require__(3949);
113430
+ // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
113431
+ var i18n = __webpack_require__(49850);
113432
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
113433
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
113434
+ // EXTERNAL MODULE: ./src/components/controls/popers/index.ts
113435
+ var popers = __webpack_require__(28682);
113436
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoParagraphAlign.vue?vue&type=script&lang=js
113437
+
113438
+
113439
+
113440
+
113441
+
113442
+
113443
+
113444
+ /* harmony default export */ var HoParagraphAlignvue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
113445
+ name: 'HoParagraphAlign',
113446
+ components: {
113447
+ Poper: popers/* default */.A
113448
+ },
113449
+ props: {
113450
+ vueController: {
113451
+ type: Object
113452
+ },
113453
+ value: {
113454
+ type: String,
113455
+ default: 'left'
113456
+ }
113457
+ },
113458
+ setup(props) {
113459
+ const paragraph = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
113460
+ svg: 'alignLeft',
113461
+ align: 'left',
113462
+ title: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.363", null, "向左对齐"),
113463
+ eventName: 'alignedLeft'
113464
+ }, {
113465
+ svg: 'alignCenter',
113466
+ align: 'center',
113467
+ title: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.362", null, "居中对齐"),
113468
+ eventName: 'alignedCenter'
113469
+ }, {
113470
+ svg: 'alignRight',
113471
+ align: 'right',
113472
+ title: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.361", null, "向右对齐"),
113473
+ eventName: 'alignedRight'
113474
+ }, {
113475
+ svg: 'alignBoth',
113476
+ align: 'both',
113477
+ title: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.519", null, "两端对齐"),
113478
+ eventName: 'alignedBothEnds'
113479
+ }]);
113480
+ const aligned = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('left');
113481
+ const selectedSvg = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('alignLeft');
113482
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.value, newVal => {
113483
+ aligned.value = newVal;
113484
+ paragraph.value.forEach(item => {
113485
+ if (item.align === newVal) {
113486
+ selectedSvg.value = item.svg;
113487
+ }
113488
+ });
113489
+ });
113490
+ const setAlign = item => {
113491
+ aligned.value = item.align;
113492
+ selectedSvg.value = item.svg;
113493
+ props.vueController[item.eventName]();
113494
+ };
113495
+ return {
113496
+ aligned,
113497
+ paragraph,
113498
+ selectedSvg,
113499
+ setAlign
113500
+ };
113501
+ }
113502
+ }));
113503
+ ;// ./src/components/toolbar/tool/HoParagraphAlign.vue?vue&type=script&lang=js
113504
+
113505
+ /* harmony default export */ var tool_HoParagraphAlignvue_type_script_lang_js = (HoParagraphAlignvue_type_script_lang_js);
113506
+
113507
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
113508
+ var componentNormalizer = __webpack_require__(81656);
113509
+ ;// ./src/components/toolbar/tool/HoParagraphAlign.vue
113510
+
113511
+
113512
+
113513
+
113514
+
113515
+ /* normalize component */
113516
+ ;
113517
+ var component = (0,componentNormalizer/* default */.A)(
113518
+ tool_HoParagraphAlignvue_type_script_lang_js,
113519
+ render,
113520
+ staticRenderFns,
113521
+ false,
113522
+ null,
113523
+ null,
113524
+ null
113525
+
113526
+ )
113527
+
113528
+ /* harmony default export */ var HoParagraphAlign = (component.exports);
113529
+
113530
+ /***/ }),
113531
+
113532
+ /***/ 73106:
113533
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
113534
+
113535
+ "use strict";
113536
+ // ESM COMPAT FLAG
113537
+ __webpack_require__.r(__webpack_exports__);
113538
+
113539
+ // EXPORTS
113540
+ __webpack_require__.d(__webpack_exports__, {
113541
+ "default": function() { return /* binding */ HoSize; }
113542
+ });
113543
+
113544
+ ;// ./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/HoSize.vue?vue&type=template&id=8556cb98
113545
+ var render = function render() {
113546
+ var _vm = this,
113547
+ _c = _vm._self._c,
113548
+ _setup = _vm._self._setupProxy;
113549
+ return _c('a-dropdown', {
113550
+ attrs: {
113551
+ "trigger": ['click']
113552
+ }
113553
+ }, [_c('p', {
113554
+ staticClass: "ant-dropdown-link ant-dropdown-link-text",
113555
+ on: {
113556
+ "click": e => e.preventDefault()
113557
+ }
113558
+ }, [_c('span', [_vm._v(_vm._s(_vm.size.name))]), _vm._v(" "), _c('a-icon', {
113559
+ attrs: {
113560
+ "type": "caret-down"
113561
+ }
113562
+ })], 1), _c('a-menu', {
113563
+ attrs: {
113564
+ "slot": "overlay"
113565
+ },
113566
+ slot: "overlay"
113567
+ }, _vm._l(_vm.fontSize, function (fontItem) {
113568
+ return _c('a-menu-item', {
113569
+ key: fontItem.name,
113570
+ class: {
113571
+ selected: fontItem.name === _vm.size.name
113572
+ },
113573
+ nativeOn: {
113574
+ "click": function ($event) {
113575
+ return _vm.fontSizeClick(fontItem);
113576
+ }
113577
+ }
113578
+ }, [_vm._v(" " + _vm._s(fontItem.name) + " ")]);
113579
+ }), 1)], 1);
113580
+ };
113581
+ var staticRenderFns = [];
113582
+
113583
+ // EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
113584
+ var i18n = __webpack_require__(49850);
113585
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
113586
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
113587
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tool/HoSize.vue?vue&type=script&lang=js
113588
+
113589
+
113590
+ /* harmony default export */ var HoSizevue_type_script_lang_js = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
113591
+ name: 'HoSize',
113592
+ props: {
113593
+ vueController: {
113594
+ type: Object
113595
+ }
113596
+ },
113597
+ setup(props) {
113598
+ const fontSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
113599
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.520", null, "初号"),
113600
+ value: 42,
113601
+ px: 56
113602
+ }, {
113603
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.521", null, "小初"),
113604
+ value: 36,
113605
+ px: 48
113606
+ }, {
113607
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.535", null, "一号"),
113608
+ value: 26,
113609
+ px: 35
113610
+ }, {
113611
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.536", null, "小一"),
113612
+ value: 24,
113613
+ px: 32
113614
+ }, {
113615
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.537", null, "二号"),
113616
+ value: 22,
113617
+ px: 29
113618
+ }, {
113619
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.538", null, "小二"),
113620
+ value: 18,
113621
+ px: 24
113622
+ }, {
113623
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.539", null, "三号"),
113624
+ value: 16,
113625
+ px: 22
113626
+ }, {
113627
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.540", null, "小三"),
113628
+ value: 15,
113629
+ px: 21
113630
+ }, {
113631
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.541", null, "四号"),
113632
+ value: 14,
113633
+ px: 19
113634
+ }, {
113635
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.567", null, "小四"),
113636
+ value: 12,
113637
+ px: 16
113638
+ }, {
113639
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.542", null, "五号"),
113640
+ value: 10.5,
113641
+ px: 14
113642
+ }, {
113643
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.543", null, "小五"),
113644
+ value: 9,
113645
+ px: 12
113646
+ }, {
113647
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.544", null, "六号"),
113648
+ value: 7.5,
113649
+ px: 10
113650
+ }, {
113651
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.545", null, "小六"),
113652
+ value: 6.5,
113653
+ px: 8
113654
+ }, {
113655
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.546", null, "七号"),
113656
+ value: 5.5,
113657
+ px: 7
113658
+ }, {
113659
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.547", null, "八号"),
113660
+ value: 5,
113661
+ px: 6
113662
+ }]);
113663
+ const size = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({
113664
+ name: /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.541", null, "四号"),
113665
+ value: 14
113666
+ });
113667
+ /**
113668
+ * 字号
113669
+ */
113670
+ const fontSizeClick = fontItem => {
113671
+ size.value = fontItem;
113672
+ props.vueController.fontSize(fontItem);
113673
+ };
113674
+ return {
113675
+ size,
113676
+ fontSize,
113677
+ fontSizeClick
113678
+ };
113679
+ }
113680
+ }));
113681
+ ;// ./src/components/toolbar/tool/HoSize.vue?vue&type=script&lang=js
113682
+
113683
+ /* harmony default export */ var tool_HoSizevue_type_script_lang_js = (HoSizevue_type_script_lang_js);
113684
+
113685
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
113686
+ var componentNormalizer = __webpack_require__(81656);
113687
+ ;// ./src/components/toolbar/tool/HoSize.vue
113688
+
113689
+
113690
+
113691
+
113692
+
113693
+ /* normalize component */
113694
+ ;
113695
+ var component = (0,componentNormalizer/* default */.A)(
113696
+ tool_HoSizevue_type_script_lang_js,
113697
+ render,
113698
+ staticRenderFns,
113699
+ false,
113700
+ null,
113701
+ null,
113702
+ null
113703
+
113704
+ )
113705
+
113706
+ /* harmony default export */ var HoSize = (component.exports);
113707
+
113708
+ /***/ }),
113709
+
112819
113710
  /***/ 57703:
112820
113711
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
112821
113712
 
@@ -113778,7 +114669,7 @@ const textParams = {
113778
114669
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
113779
114670
 
113780
114671
  "use strict";
113781
- /* harmony default export */ __webpack_exports__.A = ('3.1.212');
114672
+ /* harmony default export */ __webpack_exports__.A = ('3.1.214');
113782
114673
 
113783
114674
  /***/ }),
113784
114675
 
@@ -122951,9 +123842,16 @@ class DocTree {
122951
123842
  let i = 0;
122952
123843
  paraTextStrArr.forEach((value, index) => {
122953
123844
  //遍历每个段落的文本串 获取所有符合的段落和位置索引
122954
- const paraIndex = value.split("|")[0]; //第几段
122955
- const textCount = value.split("|")[1]; //第几串
122956
- value = value.split("|")[2];
123845
+ const valueArr = value.split("|");
123846
+ const paraIndex = valueArr[0]; //第几段
123847
+ const textCount = valueArr[1]; //第几串
123848
+ let arr = [];
123849
+ valueArr.forEach((v, key) => {
123850
+ if (key > 1) {
123851
+ arr.push(v);
123852
+ }
123853
+ });
123854
+ value = arr.join("|");
122957
123855
  if (direction === 0) {
122958
123856
  //从上往下
122959
123857
  let indexValue = value.indexOf(findContent);
@@ -135630,15 +136528,21 @@ class SeparateCharNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNod
135630
136528
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32356);
135631
136529
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44114);
135632
136530
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
135633
- /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98992);
135634
- /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3__);
135635
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3949);
135636
- /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
135637
- /* harmony import */ var _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54625);
135638
- /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(58382);
135639
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57703);
135640
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29269);
135641
- /* harmony import */ var _components_version__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41063);
136531
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27495);
136532
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
136533
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25440);
136534
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
136535
+ /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(98992);
136536
+ /* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__);
136537
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3949);
136538
+ /* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
136539
+ /* harmony import */ var _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54625);
136540
+ /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58382);
136541
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57703);
136542
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29269);
136543
+ /* harmony import */ var _components_version__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41063);
136544
+
136545
+
135642
136546
 
135643
136547
 
135644
136548
 
@@ -135662,7 +136566,7 @@ var FingerPosition;
135662
136566
  * @Description: In User Settings Edit
135663
136567
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\SignNode.ts
135664
136568
  */
135665
- class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp {
136569
+ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .BaseNode */ .Yp {
135666
136570
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp) {
135667
136571
  super(hoEditorFactoryID, rootNodes, pNode, nodeType);
135668
136572
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_dataId", "");
@@ -135714,7 +136618,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
135714
136618
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_associatedElement", "");
135715
136619
  //关联元素的dataid
135716
136620
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "isTemp", false);
135717
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136621
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
135718
136622
  this.number = number;
135719
136623
  this._type = type;
135720
136624
  this._signor = signor;
@@ -135732,7 +136636,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
135732
136636
  if (dataId) {
135733
136637
  this.dataId = dataId;
135734
136638
  } else {
135735
- this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign");
136639
+ this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign");
135736
136640
  }
135737
136641
  if (fingerPrintSrc) {
135738
136642
  this._fingerPrintSrc = fingerPrintSrc;
@@ -135915,7 +136819,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
135915
136819
  set imgSrc(value) {
135916
136820
  if (this._imgSrc !== value) {
135917
136821
  if (value.indexOf("http") != -1) {
135918
- this._imgSrc = value + `?_=${_components_version__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A}`;
136822
+ this._imgSrc = value + `?_=${_components_version__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A}`;
135919
136823
  } else {
135920
136824
  this._imgSrc = value;
135921
136825
  }
@@ -135961,7 +136865,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
135961
136865
  set styleIndex(value) {
135962
136866
  if (this._styleIndex !== value) {
135963
136867
  this._styleIndex = value;
135964
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136868
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
135965
136869
  if (!hoEditorFactory.docTree.isSaveValid) {
135966
136870
  this.node2DrawNodeRange(0, 0);
135967
136871
  }
@@ -136008,7 +136912,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136008
136912
  //根据可放置的宽度,将普通组件转换成绘制组件
136009
136913
  node2DrawNodeRange(startIndex, endIndex) {
136010
136914
  this._drawNodes.length = 0;
136011
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136915
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136012
136916
  const textStyle = hoEditorFactory.docTree.styles[this.styleIndex];
136013
136917
  let cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
136014
136918
  if (textStyle) {
@@ -136016,7 +136920,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136016
136920
  } else {
136017
136921
  this.styleIndex = 0;
136018
136922
  }
136019
- const dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_5__/* .DrawSignNode */ ._(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar, this.otherProperties);
136923
+ const dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_7__/* .DrawSignNode */ ._(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar, this.otherProperties);
136020
136924
  this._drawNodes.push(dNode);
136021
136925
  }
136022
136926
  /**
@@ -136032,9 +136936,9 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136032
136936
  if (startIndex >= 1) {
136033
136937
  return dline;
136034
136938
  }
136035
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136939
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
136036
136940
  let isDisPlay = true;
136037
- if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__/* .PaintState */ .ak.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__/* .PaintState */ .ak.psPrint) {
136941
+ if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psPrint) {
136038
136942
  isDisPlay = false;
136039
136943
  }
136040
136944
  const drawNode = this._drawNodes[0];
@@ -136045,7 +136949,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136045
136949
  drawNode.children.splice(i, 1);
136046
136950
  }
136047
136951
  }
136048
- if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__/* .PaintState */ .ak.psReview) {
136952
+ if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psReview) {
136049
136953
  if (this.imgSrc === "" && this.fingerPrintSrc === "") {
136050
136954
  // for (let i = drawNode.children.length - 1; i >= 0; i--) {
136051
136955
  // if (drawNode.children[i].name === "name") {
@@ -136089,7 +136993,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136089
136993
  }
136090
136994
  node2Json(range, isCopy, type, clearSign) {
136091
136995
  const retObj = {
136092
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .NodeType */ .Z6[this.nodeType],
136996
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType */ .Z6[this.nodeType],
136093
136997
  number: clearSign ? 0 : this.number,
136094
136998
  type: clearSign ? 0 : this.type,
136095
136999
  dataId: this.dataId,
@@ -136115,6 +137019,9 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136115
137019
  connectChar: this.connectChar,
136116
137020
  otherProperties: this.otherProperties
136117
137021
  };
137022
+ if (retObj.imgSrc.indexOf("http") != -1) {
137023
+ retObj.imgSrc = retObj.imgSrc.replace(`?_=${_components_version__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A}`, '');
137024
+ }
136118
137025
  if (this.associatedElement) {
136119
137026
  retObj.associatedElement = this.associatedElement;
136120
137027
  }
@@ -136126,7 +137033,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136126
137033
  };
136127
137034
  }
136128
137035
  static json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign, isPaste) {
136129
- const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID);
137036
+ const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID);
136130
137037
  if (isPaste) {
136131
137038
  json.dataId = hoEditorFactory.gernerateCode.generateID("Sign");
136132
137039
  }
@@ -136144,7 +137051,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
136144
137051
  if (typeof json.fingerPrintSrc == 'object') {
136145
137052
  json.fingerPrintSrc = '';
136146
137053
  }
136147
- const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .NodeType */ .Z6.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement, isTemp);
137054
+ const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType */ .Z6.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement, isTemp);
136148
137055
  // 旧的上级医生签名锁定判断方式 上级医生签名位置 存bec01数组 病历加载时根据签名元素内的bec01处理
136149
137056
  let superLuck = Array.isArray(hoEditorFactory.superiorSigns) && hoEditorFactory.superiorSigns.includes(signNode.customProperty.bce01);
136150
137057
  // hoEditorFactory.forbidEditBeforeSign 锁定已签名元素前内容
@@ -157407,7 +158314,6 @@ class DrawSelect extends createjs.Shape {
157407
158314
 
157408
158315
 
157409
158316
 
157410
-
157411
158317
  class DrawSelectBg extends createjs.Shape {
157412
158318
  get left() {
157413
158319
  return this._left;
@@ -157415,96 +158321,113 @@ class DrawSelectBg extends createjs.Shape {
157415
158321
  set left(value) {
157416
158322
  if (value != this._left) {
157417
158323
  this._left = value;
157418
- this._bChanged = true;
158324
+ this.bChanged = true;
157419
158325
  }
157420
158326
  }
157421
- get endIndex() {
157422
- return this._right;
157423
- }
157424
158327
  set right(value) {
157425
158328
  if (value != this._right) {
157426
158329
  this._right = value;
157427
- this._bChanged = true;
158330
+ this.bChanged = true;
157428
158331
  }
157429
158332
  }
157430
- get bChanged() {
157431
- return this._bChanged;
157432
- }
157433
- constructor(hoEditorFactoryID, pageIndex, dline, left, right, inSameRect, startParent, endParent, color, isMultiRange) {
158333
+ constructor(hoEditorFactoryID, pageIndex, dline, left, right, inSameRect, startParent, endParent, color, prevLeft, prevRight, currentIndex, isEnd, isSamePage) {
157434
158334
  super();
157435
158335
  (0,defineProperty/* default */.A)(this, "drawLine", void 0);
157436
158336
  (0,defineProperty/* default */.A)(this, "_left", void 0);
157437
158337
  (0,defineProperty/* default */.A)(this, "_right", void 0);
157438
- (0,defineProperty/* default */.A)(this, "_bChanged", void 0);
157439
- (0,defineProperty/* default */.A)(this, "_pageIndex", void 0);
157440
- (0,defineProperty/* default */.A)(this, "_inSameRect", void 0);
158338
+ (0,defineProperty/* default */.A)(this, "bChanged", void 0);
158339
+ (0,defineProperty/* default */.A)(this, "pageIndex", void 0);
158340
+ (0,defineProperty/* default */.A)(this, "inSameRect", void 0);
157441
158341
  //选择起始范围的父节点是否相同
157442
- (0,defineProperty/* default */.A)(this, "_startParent", void 0);
158342
+ (0,defineProperty/* default */.A)(this, "startParent", void 0);
157443
158343
  //选择起点父节点
157444
- (0,defineProperty/* default */.A)(this, "_endParent", void 0);
157445
- (0,defineProperty/* default */.A)(this, "_hoEditorFactoryID", void 0);
157446
- (0,defineProperty/* default */.A)(this, "_color", void 0);
157447
- this._hoEditorFactoryID = hoEditorFactoryID;
157448
- this._pageIndex = pageIndex;
158344
+ (0,defineProperty/* default */.A)(this, "endParent", void 0);
158345
+ (0,defineProperty/* default */.A)(this, "hoEditorFactoryID", void 0);
158346
+ (0,defineProperty/* default */.A)(this, "color", void 0);
158347
+ (0,defineProperty/* default */.A)(this, "prevLeft", void 0);
158348
+ (0,defineProperty/* default */.A)(this, "prevRight", void 0);
158349
+ (0,defineProperty/* default */.A)(this, "currentIndex", void 0);
158350
+ (0,defineProperty/* default */.A)(this, "isEnd", void 0);
158351
+ (0,defineProperty/* default */.A)(this, "isSamePage", void 0);
158352
+ this.hoEditorFactoryID = hoEditorFactoryID;
158353
+ this.pageIndex = pageIndex;
157449
158354
  this.drawLine = dline;
157450
158355
  this._left = left;
157451
158356
  this._right = right;
157452
- this._bChanged = true;
157453
- this._inSameRect = inSameRect;
157454
- this._startParent = startParent;
157455
- this._endParent = endParent;
157456
- this._color = color;
157457
- this.updateShape(isMultiRange);
157458
- }
157459
- updateShape(isMultiRange) {
157460
- if (!this._bChanged) {
158357
+ this.bChanged = true;
158358
+ this.inSameRect = inSameRect;
158359
+ this.startParent = startParent;
158360
+ this.endParent = endParent;
158361
+ this.color = color;
158362
+ this.prevLeft = prevLeft;
158363
+ this.prevRight = prevRight;
158364
+ this.currentIndex = currentIndex;
158365
+ this.isSamePage = isSamePage;
158366
+ this.isEnd = isEnd;
158367
+ this.updateShape();
158368
+ }
158369
+ updateShape() {
158370
+ if (!this.bChanged) {
157461
158371
  return;
157462
158372
  }
157463
158373
  const dline = this.drawLine;
157464
158374
  let width = this._right - this._left;
157465
158375
  const pNode = dline.paragraphNode.parentNode;
157466
158376
  //多选表格中的行需要绘制整行状态
157467
- if ((!this._inSameRect || pNode !== this._startParent || pNode !== this._endParent) && pNode instanceof RectNode/* RectNode */.P) {
158377
+ if ((!this.inSameRect || pNode !== this.startParent || pNode !== this.endParent) && pNode instanceof RectNode/* RectNode */.P) {
157468
158378
  width = dline.dWidth;
157469
158379
  this._left = 0;
157470
158380
  this._right = width;
157471
158381
  }
157472
158382
  let height = dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
157473
- const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
157474
- if (hoEditorFactory.drawTree.paintStatus == PaintState.psPreview && !isMultiRange) {
157475
- //打印预览时,变更样式
157476
- width = hoEditorFactory.pageProperty.widthPixes;
157477
- this._color = "green";
157478
- }
158383
+ const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryID);
157479
158384
  this.uncache();
157480
158385
  this.graphics.clear();
157481
- width = Math.floor(width);
157482
158386
  height = Math.floor(height);
157483
- this.graphics.beginStroke(this._color).setStrokeStyle(4).setStrokeDash([6, 2], 0).drawRect(0, 0, width, height);
157484
- // this.graphics.beginStroke(this._color).setStrokeStyle(4).setStrokeDash([6, 2], 0).moveTo(0, 0)
157485
- // .lineTo(width, 0)
157486
- // .moveTo(0, 0)
157487
- // .lineTo(0, height)
157488
- // .moveTo(0, height)
157489
- // .lineTo(width, height)
157490
- // .moveTo(width, height)
157491
- // .lineTo(width, 0)
158387
+ this.graphics.beginStroke(this.color).setStrokeStyle(4).setStrokeDash([6, 2], 0);
158388
+ if (!this.isSamePage) {
158389
+ this.currentIndex = 0; // 当前行换页则重置为第一行,后续行不变
158390
+ }
158391
+ if (this.currentIndex == 0 && this.isEnd) {
158392
+ width = Math.floor(width);
158393
+ this.graphics.moveTo(0, 0).lineTo(width, 0).lineTo(width, height);
158394
+ this.graphics.moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158395
+ } else if (this.currentIndex == 0 && !this.isEnd) {
158396
+ this.graphics.moveTo(0, 0).lineTo(width, 0).lineTo(width, height);
158397
+ this.graphics.moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158398
+ } else if (this.currentIndex && !this.isEnd) {
158399
+ let dWidth = Math.floor(width - (this.prevRight - this.prevLeft));
158400
+ width = Math.floor(width);
158401
+ this.graphics.moveTo(0, 0).lineTo(dWidth, 0).moveTo(width, 0).lineTo(width, height).moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158402
+ } else if (this.currentIndex && this.isEnd) {
158403
+ let prevWidth = Math.floor(this.prevRight - this.prevLeft);
158404
+ width = Math.floor(width);
158405
+ let dlineWidth = Math.floor(dline.dWidth);
158406
+ if (prevWidth < dlineWidth) {
158407
+ let dWidth = prevWidth + width - dlineWidth;
158408
+ if (dWidth > 0) {
158409
+ this.graphics.moveTo(0, 0).lineTo(dlineWidth - prevWidth, 0).moveTo(width, 0).lineTo(width, height);
158410
+ this.graphics.moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158411
+ } else {
158412
+ this.graphics.moveTo(0, 0).lineTo(width, 0).lineTo(width, height);
158413
+ this.graphics.moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158414
+ }
158415
+ }
158416
+ if (prevWidth >= dlineWidth) {
158417
+ this.graphics.moveTo(width, 0).lineTo(width, height);
158418
+ this.graphics.moveTo(0, 0).lineTo(0, height).lineTo(width, height);
158419
+ }
158420
+ }
157492
158421
  let pt = {
157493
158422
  x: 0,
157494
158423
  y: 0
157495
158424
  };
157496
- // if(dline.rootPath.includes("header")) {
157497
- // hoEditorFactory.drawTree.drawPages[this._pageIndex].drawHeader.stage.update();
157498
- // }
157499
- pt = dline.localToLocal(this._left, 0, hoEditorFactory.drawTree.drawPages[this._pageIndex].drawDocContainer);
158425
+ pt = dline.localToLocal(this._left, 0, hoEditorFactory.drawTree.drawPages[this.pageIndex].drawDocContainer);
157500
158426
  this.x = pt.x;
157501
158427
  this.y = pt.y;
157502
158428
  this.alpha = 1;
157503
- // if(this.stage) {
157504
- // this.stage.update();
157505
- // }
157506
158429
  this.cache(0, 0, width, height);
157507
- this._bChanged = false;
158430
+ this.bChanged = false;
157508
158431
  }
157509
158432
  }
157510
158433
  // EXTERNAL MODULE: ./src/editor/events/SelectionChangeEvent.ts
@@ -159835,6 +160758,9 @@ class DrawTree {
159835
160758
  if (dStartDline instanceof DrawLine/* DrawLine */.D) {
159836
160759
  istart = arrDrawDlines.indexOf(dStartDline);
159837
160760
  }
160761
+ let prevLeft = 0;
160762
+ let prevRight = 0;
160763
+ let prevPageIndex = 0;
159838
160764
  for (let i = istart; i < arrDrawDlines.length; i++) {
159839
160765
  let left = 0;
159840
160766
  const dnextDline = arrDrawDlines[i];
@@ -159883,8 +160809,17 @@ class DrawTree {
159883
160809
  }
159884
160810
  }
159885
160811
  const color = hoeditorfacotry.option.getColorByLevel(15);
160812
+ const isEnd = i == arrDrawDlines.length - 1 ? true : false;
159886
160813
  if (dPage && dPage.selectContainer) {
159887
- const shape = new DrawSelectBg(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, color, true);
160814
+ if (i == 0) {
160815
+ prevPageIndex = dPage.pageIndex;
160816
+ }
160817
+ ;
160818
+ let isSamePage = prevPageIndex == dPage.pageIndex ? true : false;
160819
+ const shape = new DrawSelectBg(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, color, prevLeft, prevRight, i, isEnd, isSamePage);
160820
+ prevLeft = left;
160821
+ prevRight = right;
160822
+ prevPageIndex = dPage.pageIndex;
159888
160823
  dPage.selectContainer.addChild(shape);
159889
160824
  if (dPages.indexOf(dPage) < 0) {
159890
160825
  dPages.push(dPage);
@@ -167614,7 +168549,7 @@ var map = {
167614
168549
  "./paragraph/ParagraphDialog.vue": 88281,
167615
168550
  "./poperSelect/PoperMark.vue": 11382,
167616
168551
  "./poperSelect/PoperSelect.vue": 49524,
167617
- "./poperTipText/PoperTipText.vue": 89316,
168552
+ "./poperTipText/PoperTipText.vue": 28140,
167618
168553
  "./popers/Poper.vue": 68137,
167619
168554
  "./popers/Title.vue": 68839,
167620
168555
  "./printstyle/PrintLineStyle.vue": 27705,
@@ -167666,6 +168601,40 @@ webpackContext.id = 44954;
167666
168601
 
167667
168602
  /***/ }),
167668
168603
 
168604
+ /***/ 72538:
168605
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
168606
+
168607
+ var map = {
168608
+ "./HoBackColor.vue": 88131,
168609
+ "./HoFamily.vue": 69723,
168610
+ "./HoFontColor.vue": 80578,
168611
+ "./HoLineHeight.vue": 18041,
168612
+ "./HoParagraphAlign.vue": 74458,
168613
+ "./HoSize.vue": 73106
168614
+ };
168615
+
168616
+
168617
+ function webpackContext(req) {
168618
+ var id = webpackContextResolve(req);
168619
+ return __webpack_require__(id);
168620
+ }
168621
+ function webpackContextResolve(req) {
168622
+ if(!__webpack_require__.o(map, req)) {
168623
+ var e = new Error("Cannot find module '" + req + "'");
168624
+ e.code = 'MODULE_NOT_FOUND';
168625
+ throw e;
168626
+ }
168627
+ return map[req];
168628
+ }
168629
+ webpackContext.keys = function webpackContextKeys() {
168630
+ return Object.keys(map);
168631
+ };
168632
+ webpackContext.resolve = webpackContextResolve;
168633
+ module.exports = webpackContext;
168634
+ webpackContext.id = 72538;
168635
+
168636
+ /***/ }),
168637
+
167669
168638
  /***/ 9274:
167670
168639
  /***/ (function(module) {
167671
168640
 
@@ -223120,7 +224089,7 @@ var entry_lib_ParagraphNode = __webpack_require__(40504);
223120
224089
  // EXTERNAL MODULE: ./src/components/version.ts
223121
224090
  var entry_lib_version = __webpack_require__(41063);
223122
224091
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
223123
- var entry_lib_PoperTipText = __webpack_require__(89316);
224092
+ var entry_lib_PoperTipText = __webpack_require__(28140);
223124
224093
  ;// ./src/components/controls/poperTipText/index.ts
223125
224094
 
223126
224095
  /* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
@@ -238004,12 +238973,6 @@ class entry_lib_VueController {
238004
238973
  for (let m = 0, len = nodeList.length - 1; m <= len; m++) {
238005
238974
  const item = nodeList[m];
238006
238975
  let isCurrent = item.name && item.name === anode.name || item.id && item.id === anode.id || item.dataId && item.dataId === anode.dataId || item.innerIdentifier && item.innerIdentifier === anode.innerIdentifier;
238007
- // if (item.text !== '' && anode.text.includes(item.text)) {
238008
- // const range = this.search(anode, item.text);
238009
- // if (range.length > 0) {
238010
- // selectRangeArr = selectRangeArr.concat(range);
238011
- // }
238012
- // } else if ((item.text === '' || item.text == undefined) && isCurrent) {
238013
238976
  if (isCurrent) {
238014
238977
  const sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
238015
238978
  const ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
@@ -238139,7 +239102,14 @@ class entry_lib_VueController {
238139
239102
  searchText(text) {
238140
239103
  const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
238141
239104
  const npEnd = hoEditorFactory.docTree.findNodePositionByPath("main/0");
238142
- const result = hoEditorFactory.docTree.findNodes(npEnd.node, text, 0, true);
239105
+ const curDomRange = hoEditorFactory.docTree.curDomRange;
239106
+ const domRange = curDomRange.normalize();
239107
+ const startNode = domRange.npStart.node;
239108
+ let sNode = startNode;
239109
+ if (startNode) {
239110
+ sNode = startNode.rootNodes[0];
239111
+ }
239112
+ const result = hoEditorFactory.docTree.findNodes(sNode, text, 0, false);
238143
239113
  let selectRangeArr = [];
238144
239114
  for (const item of result.obj2.values()) {
238145
239115
  selectRangeArr.push(this.getSelectRanges2(item, text, result.obj1));
@@ -257527,823 +258497,7 @@ var entry_lib_ToolTable_component = (0,entry_lib_componentNormalizer/* default *
257527
258497
  'ho-edit': 1,
257528
258498
  // 编辑状态
257529
258499
  'ho-insert': 1,
257530
- // 编辑状态 --- 插入
257531
- 'ho-table': 1,
257532
- // 编辑状态 --- 表格相关
257533
- 'ho-review': 4 // 审阅状态
257534
- },
257535
- defaultSelect: {
257536
- 'ho-browse': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
257537
- 'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
257538
- 'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
257539
- 'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
257540
- 'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
257541
- },
257542
- defaultToolBarParamsText: [{
257543
- value: 'ho-browse',
257544
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
257545
- key: 1
257546
- }, {
257547
- value: 'ho-edit',
257548
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
257549
- key: 2
257550
- }, {
257551
- value: 'ho-insert',
257552
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
257553
- key: 3
257554
- }, {
257555
- value: 'ho-table',
257556
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
257557
- key: 4
257558
- }, {
257559
- value: 'ho-review',
257560
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式"),
257561
- key: 5
257562
- }],
257563
- tabKey: '',
257564
- defaultReviewJson: {
257565
- isReview: true,
257566
- // 审阅
257567
- clearSelectSign: true,
257568
- // 清除选中区痕迹
257569
- clearAllSign: true,
257570
- // 清除全部痕迹
257571
- insertComment: true,
257572
- // 插入批注
257573
- editComment: true,
257574
- // 编辑批注
257575
- deleteComment: true,
257576
- // 删除批注
257577
- deleteAllComment: true,
257578
- // 删除全部批注
257579
- qualityControl: true,
257580
- // 设置质控等级
257581
- cancelDelete: true,
257582
- // 取消删除
257583
- printStatus: true // 审阅状态下打印预览状态切换
257584
- },
257585
- defaultBrowseJson: {
257586
- isBrowse: true,
257587
- // 浏览
257588
- saveAsFile: true,
257589
- // 另存为 xml/html/txt
257590
- printed: true,
257591
- // 打印预览
257592
- printSelected: true,
257593
- // 打印拖动鼠标选中区域
257594
- printCaret: true,
257595
- // 打印鼠标点击位置
257596
- printContinue: true // 续打
257597
- },
257598
- defaultEditJson: {
257599
- isFooter: true,
257600
- // 是否显示 footer
257601
- isEdit: true,
257602
- // 编辑
257603
- isInsertElement: true,
257604
- // 插入
257605
- isInsertTable: true,
257606
- // 插入表格
257607
-
257608
- editFile: true,
257609
- // 文件按钮
257610
- createNew: true,
257611
- // 创建空白文档
257612
- openFile: true,
257613
- // 打开xml文件
257614
- saveFile: true,
257615
- // 保存文件 暂无
257616
- saveAsFile: true,
257617
- // 另存为 xml/html/txt
257618
- pageSetting: true,
257619
- // 页面设置
257620
- printed: true,
257621
- // 打印预览
257622
- printSelected: true,
257623
- // 打印拖动鼠标选中区域
257624
- printCaret: true,
257625
- // 打印鼠标点击位置
257626
- printContinue: true,
257627
- // 续打
257628
-
257629
- unDoOperate: true,
257630
- // 撤销
257631
- reDoOperate: true,
257632
- // 恢复
257633
- formatPaint: true,
257634
- // 格式刷
257635
- clearFormat: true,
257636
- // 清除格式
257637
- family: true,
257638
- // 字体
257639
- size: true,
257640
- // 字号
257641
- enlargeSize: true,
257642
- // 增大字体
257643
- decreaseSize: true,
257644
- // 缩小字体
257645
- superScript: true,
257646
- // 上标
257647
- subScript: true,
257648
- // 下标
257649
- bold: true,
257650
- // 加粗
257651
- italic: true,
257652
- // 斜体
257653
- underline: true,
257654
- // 下划线
257655
- strikeout: true,
257656
- // 删除线
257657
- fontColor: true,
257658
- // 字体颜色
257659
- backColor: true,
257660
- // 背景颜色
257661
-
257662
- alignLeft: true,
257663
- // 左对齐
257664
- alignCenter: true,
257665
- // 居中对齐
257666
- alignRight: true,
257667
- // 右对齐
257668
- alignBoth: true,
257669
- // 两端对齐
257670
- addIndent: true,
257671
- // 增加缩进
257672
- decreaseIndent: true,
257673
- //减少缩进
257674
- setHeight: true,
257675
- // 行高
257676
-
257677
- express: true,
257678
- // 医学表达式
257679
- specialChars: true,
257680
- // 特殊字符
257681
- gestation: true,
257682
- // 孕周
257683
- figure: true,
257684
- // 人体关节图形
257685
- textBorder: true,
257686
- // 文本框
257687
- rareword: true,
257688
- // 生僻字
257689
- link: true,
257690
- // 孕周
257691
- datetime: true,
257692
- // 日期时间
257693
- watermark: true,
257694
- // 水印
257695
- select: true,
257696
- // 选择框
257697
- text: true,
257698
- // 文本域
257699
- uploadImage: true,
257700
- // 上传图片
257701
- barcode: true,
257702
- // 条形码
257703
- qrcode: true,
257704
- // 二维码
257705
- radioBox: true,
257706
- // 单选框
257707
- checkBox: true,
257708
- // 多选框
257709
- pageInfoes: true,
257710
- // 页码信息
257711
- delimiter: true,
257712
- // 分隔符
257713
- slider: true,
257714
- // 分隔符
257715
- sign: true,
257716
- // 签名
257717
- mathFormula: true,
257718
- // 数学公式
257719
-
257720
- insertTable: true,
257721
- isTableCode: true,
257722
- // 是否显示单元格编号
257723
- insertRowAbove: true,
257724
- // 上方插入行
257725
- insertRowBelow: true,
257726
- // 下方插入行
257727
- insertColLeft: true,
257728
- // 左侧插入列
257729
- insertColRight: true,
257730
- // 右侧插入列
257731
- deleteRows: true,
257732
- // 删除行
257733
- deleteCols: true,
257734
- // 删除列
257735
- mergerCells: true,
257736
- // 合并单元格
257737
- unMergerCells: true,
257738
- // 取消合并单元格
257739
- tableFormula: true,
257740
- // 表格计算公式
257741
- findModal: true,
257742
- // 查找 / 替换
257743
- updateDocument: false,
257744
- // 更新说明
257745
- historylog: false,
257746
- // 更新说明
257747
- test: false // 测试
257748
- }
257749
- };
257750
- },
257751
- computed: {
257752
- isPrintClass() {
257753
- return this.isPrinted ? 'print-selected' : '';
257754
- },
257755
- printedClass() {
257756
- return this.printStatus === 'print' ? 'print print-selected' : 'print';
257757
- },
257758
- printSelectedClass() {
257759
- return this.printStatus === 'selected' ? 'print print-selected' : 'print';
257760
- },
257761
- printCaretClass() {
257762
- return this.printStatus === 'caret' ? 'print print-selected' : 'print';
257763
- },
257764
- printContinueClass() {
257765
- return this.printStatus === 'continue' ? 'print print-selected' : 'print';
257766
- }
257767
- },
257768
- watch: {
257769
- tabStatus() {
257770
- if (this.tabStatus) this.tabKey = this.tabStatus;
257771
- },
257772
- editJson: {
257773
- deep: true,
257774
- handler(editJson) {
257775
- if (editJson && editJson !== null) {
257776
- this.defaultEditJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultEditJson), editJson);
257777
- this.handleToolbarParams();
257778
- }
257779
- }
257780
- },
257781
- reviewJson: {
257782
- deep: true,
257783
- handler(reviewJson) {
257784
- if (reviewJson && reviewJson !== null) {
257785
- this.defaultReviewJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultReviewJson), reviewJson);
257786
- this.handleToolbarParams();
257787
- }
257788
- }
257789
- },
257790
- defaultReviewJson: {
257791
- deep: true,
257792
- handler(json) {
257793
- if (json && json !== null) {
257794
- this.vueController.setDefaultReviewJson((0,build_entry_lib_objectSpread2/* default */.A)({}, json));
257795
- }
257796
- }
257797
- },
257798
- browseJson: {
257799
- deep: true,
257800
- handler(browseJson) {
257801
- if (browseJson && browseJson !== null) {
257802
- this.defaultBrowseJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultBrowseJson), browseJson);
257803
- this.handleToolbarParams();
257804
- }
257805
- }
257806
- },
257807
- toolbarParams: {
257808
- deep: true,
257809
- handler() {
257810
- this.handleToolbarParams(true);
257811
- }
257812
- },
257813
- tabKey(newName, oldName) {
257814
- if (Object.keys(this.toolbarParams).length == 0) {
257815
- return;
257816
- }
257817
- const oldStatus = this.defaultToolBarParams[oldName];
257818
- const newStatus = this.defaultToolBarParams[newName];
257819
- if (oldStatus !== newStatus) {
257820
- this.emitToolBarStatus();
257821
- this.vueController.setEditorStatus(newStatus);
257822
- }
257823
- this.printStatus = '';
257824
- this.isPrinted = false;
257825
- }
257826
- },
257827
- mounted() {
257828
- if (this.tabStatus) this.tabKey = this.tabStatus;
257829
- if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]' && this.defaultToolBarParams[this.tabKey]) {
257830
- if (this.tabKey) this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]));
257831
- }
257832
- if (this.editJson && this.editJson !== null) {
257833
- if (this.editJson && this.editJson !== null) {
257834
- this.defaultEditJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultEditJson), this.editJson);
257835
- }
257836
- }
257837
- if (this.reviewJson && this.reviewJson !== null) {
257838
- this.defaultReviewJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultReviewJson), this.reviewJson);
257839
- }
257840
- if (this.browseJson && this.browseJson !== null) {
257841
- this.defaultBrowseJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultBrowseJson), this.browseJson);
257842
- }
257843
- this.$nextTick(() => {
257844
- this.handleToolbarParams(true);
257845
- });
257846
- },
257847
- methods: {
257848
- handleToolbarParams(once) {
257849
- const selectList = {
257850
- 'ho-browse': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
257851
- 'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
257852
- 'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
257853
- 'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
257854
- 'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
257855
- };
257856
- this.defaultSelect = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, selectList), this.defaultSelect);
257857
- if (!this.defaultBrowseJson.isBrowse) delete this.defaultSelect['ho-browse'];
257858
- if (!this.defaultEditJson.isEdit) delete this.defaultSelect['ho-edit'];
257859
- if (!this.defaultEditJson.isInsertElement) delete this.defaultSelect['ho-insert'];
257860
- if (!this.defaultEditJson.isInsertTable) delete this.defaultSelect['ho-table'];
257861
- if (!this.defaultReviewJson.isReview) delete this.defaultSelect['ho-review'];
257862
- if (this.toolbarParams) {
257863
- if (this.$slots.beforeBrowse && this.$slots.beforeBrowse[0]) {
257864
- const label = this.$slots.beforeBrowse[0].data.key;
257865
- const name = this.$slots.beforeBrowse[0].componentOptions.propsData.tab;
257866
- if (this.defaultToolBarParamsText[0].value !== label) {
257867
- this.defaultSelect[label] = name || '设计模式';
257868
- this.defaultToolBarParamsText.unshift({
257869
- value: label,
257870
- title: name || '设计模式'
257871
- });
257872
- }
257873
- }
257874
- this.defaultToolBarParams = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultToolBarParams), this.toolbarParams);
257875
- Object.keys(this.defaultToolBarParams).forEach(key => {
257876
- if (this.defaultSelect[key]) {
257877
- if (this.defaultToolBarParamsText.filter(v => v.value === key).length > 0) {
257878
- this.defaultToolBarParamsText = this.defaultToolBarParamsText.map((v, index) => {
257879
- if (this.defaultSelect[key] === undefined) {
257880
- return undefined;
257881
- } else {
257882
- return v;
257883
- }
257884
- }).filter(m => m);
257885
- } else {
257886
- let param = {
257887
- value: key,
257888
- title: this.defaultSelect[key]
257889
- };
257890
- if (key == 'ho-review') {
257891
- param.key = 5;
257892
- }
257893
- this.defaultToolBarParamsText.push(param);
257894
- }
257895
- } else {
257896
- this.defaultToolBarParamsText = this.defaultToolBarParamsText.filter(v => v.value !== key);
257897
- }
257898
- });
257899
- }
257900
- if (once && this.tabKey && this.vueController) {
257901
- if (!this.defaultSelect[this.tabKey]) {
257902
- this.tabKey = Object.keys(this.defaultSelect)[0] || ''; // 处理页签不存在的情况 默认取存在页签中的一个;
257903
- }
257904
- if (this.defaultToolBarParams[this.tabKey] != undefined) {
257905
- this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
257906
- }
257907
- }
257908
- this.emitToolBarStatus();
257909
- },
257910
- closeToolMenusTest(e) {
257911
- if (this.toolMenuOpenPathTest.length > 0) {
257912
- this.toolMenuOpenPathTest.forEach(path => {
257913
- if (this.controlMenus) this.controlMenus.closeMenu(path);
257914
- });
257915
- }
257916
- },
257917
- toolMenuSelectedTest(index, indexPath) {
257918
- this.toolMenuOpenPathTest = indexPath;
257919
- },
257920
- setLogin(limit, color) {
257921
- // this.reviewLevel = {
257922
- // ...this.reviewLevel,
257923
- // limit: limit,
257924
- // color: color,
257925
- // };
257926
- const arr = ['李医生', '张医生', '王医生'];
257927
- const id = this.vueController.generateID('UI');
257928
- this.vueController.setUserLoginInfo(id, arr[limit - 1], limit, '');
257929
- this.vueController.setReviewLevelColor({
257930
- reviewLev1Color: '#F19191',
257931
- //审阅级别1颜色
257932
- reviewLev2Color: '#FFFFFF',
257933
- //审阅级别2颜色
257934
- reviewLev3Color: '#FFFFFF',
257935
- //审阅级别3颜色
257936
- fieldColor: '#DFFFFF',
257937
- //文本域元素颜色 #FBFAD0
257938
- dateTimeColor: '#FBFAD0',
257939
- //日期时间元素颜色 #C4F8F8
257940
- downListColor: '#D2ECB1' //下拉列表元素颜色//#D2ECB1
257941
- });
257942
- },
257943
- setModalStatus(str) {
257944
- this.$emit('setModalStatus', str);
257945
- },
257946
- updateTabKey(currentValue) {
257947
- this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[currentValue]));
257948
- },
257949
- emitToolBarStatus() {
257950
- this.$emit('switchDocStatus', {
257951
- incomingParams: (0,build_entry_lib_objectSpread2/* default */.A)({}, this.toolbarParams),
257952
- defaultParams: {
257953
- 'ho-browse': 5,
257954
- // 浏览状态
257955
- 'ho-edit': 1,
257956
- // 编辑状态
257957
- 'ho-insert': 1,
257958
- // 编辑状态 --- 插入
257959
- 'ho-table': 1,
257960
- // 编辑状态 --- 表格相关
257961
- 'ho-review': 4 // 审阅状态
257962
- },
257963
- mergeParams: (0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultToolBarParams)
257964
- });
257965
- },
257966
- /**
257967
- * @param arg 打开医学表达式参数
257968
- */
257969
- openExpress(style) {
257970
- this.$emit('setModalStatus', ['express', 'add', style]);
257971
- },
257972
- /**
257973
- *
257974
- */
257975
- reviewPrintStatus() {
257976
- this.isPrinted = !this.isPrinted;
257977
- if (this.isPrinted) {
257978
- this.vueController.setEditorStatus(5);
257979
- } else {
257980
- this.vueController.setEditorStatus(4);
257981
- }
257982
- },
257983
- /**
257984
- * 退出打印预览
257985
- */
257986
- outPrinted() {
257987
- this.printStatus = '';
257988
- this.isPrinted = false;
257989
- this.vueController.setEditorStatus(5);
257990
- },
257991
- // closedHoPrintModal(status) {
257992
- // // if (status === 'sure') {
257993
- // // this.isPrinted = false;
257994
- // // }
257995
- // this.printModal = false;
257996
- // }
257997
-
257998
- // 打印
257999
- printed() {
258000
- // 非打印预览状态
258001
-
258002
- if (!this.isPrinted) {
258003
- // 打开设置弹窗
258004
- this.$emit('setModalStatus', ['ho-print', 'add', '']);
258005
- } else {
258006
- this.vueController.hideComments(true);
258007
- if (!this.vueController.getIsSetFont()) {
258008
- this.vueController.hoLocalStorage().loadFontString().then(font => {
258009
- if (font) {
258010
- this.vueController.setjsPDFFonts(font);
258011
- this.vueController.printPromisePDF();
258012
- }
258013
- });
258014
- } else {
258015
- this.vueController.printPromisePDF();
258016
- }
258017
- this.isPrinted = false;
258018
- }
258019
- },
258020
- /**
258021
- * 打印鼠标选中
258022
- */
258023
- printSelected() {
258024
- this.printStatus = 'selected';
258025
- this.isPrinted = true;
258026
- this.vueController.setEditorStatus(2, 1);
258027
- },
258028
- /**
258029
- * 打印鼠标点击位置
258030
- */
258031
- printCaret() {
258032
- this.printStatus = 'caret';
258033
- this.isPrinted = true;
258034
- this.vueController.setEditorStatus(2, 0);
258035
- },
258036
- /**
258037
- * 续打
258038
- */
258039
- printContinue() {
258040
- this.printStatus = 'continue';
258041
- this.isPrinted = true;
258042
- this.vueController.setEditorStatus(2, 3);
258043
- },
258044
- /**
258045
- * 添加批注
258046
- */
258047
- createControlComment() {
258048
- if (this.vueController.getDomRange().isEmpty) {
258049
- this.$message.destroy();
258050
- this.$message.warn({
258051
- content: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.490", null, "请选择需要添加批注的内容"),
258052
- duration: 3,
258053
- offset: 120
258054
- });
258055
- return;
258056
- } else {
258057
- this.$emit('setModalStatus', ['comment', 'add', '']);
258058
- }
258059
- },
258060
- /**
258061
- * 编辑批注
258062
- */
258063
- editComment() {
258064
- const selectComment = this.vueController.isEditComment('不能编辑其他用户创建的批注');
258065
- if (selectComment) {
258066
- this.$emit('setModalStatus', ['comment', 'update', '']);
258067
- }
258068
- },
258069
- /**
258070
- * 删除批注
258071
- */
258072
- deleteComment() {
258073
- const selectComment = this.vueController.isEditComment('不能删除其他用户创建的批注');
258074
- if (selectComment) {
258075
- this.$emit('insertComments', {
258076
- type: 'delete',
258077
- selectedComment: selectComment
258078
- });
258079
- }
258080
- },
258081
- /**
258082
- * 删除全部批注
258083
- */
258084
- deleteAllComment() {
258085
- const commentList = this.vueController.getDocCommentValue();
258086
- if (commentList.length == 0) {
258087
- return;
258088
- }
258089
- const userInfo = this.vueController.getUserInfoes();
258090
- const candeleteList = [];
258091
- commentList.forEach(comment => {
258092
- if (comment.userID == userInfo.id) {
258093
- candeleteList.push(comment);
258094
- }
258095
- });
258096
- if (candeleteList.length == 0) {
258097
- this.$message.error(/*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.489", null, "只能删除自己创建的批注!"));
258098
- return;
258099
- }
258100
- this.$emit('insertComments', {
258101
- type: 'deleteAll',
258102
- commentValue: commentList
258103
- });
258104
- },
258105
- /**
258106
- * 取消删除
258107
- */
258108
- cancelDelete() {
258109
- this.vueController.cancelDel();
258110
- },
258111
- /**
258112
- * 另存为
258113
- */
258114
- saveAsFile({
258115
- key: fileType
258116
- }) {
258117
- const fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
258118
- if (fileType == 'pdf') {
258119
- this.vueController.saveAsPDF('', 'pdf', false);
258120
- } else if (fileType == 'html(svg)') {
258121
- this.vueController.saveAsPDF('', 'html', false);
258122
- } else if (fileType == 'html(html)') {
258123
- let fileName = this.vueController.getDocTitle();
258124
- const file = this.vueController.getFileHtml();
258125
- this.downloadFile(file, fileName + '.html', 'html');
258126
- } else {
258127
- const file = this.vueController.saveAsFile(fileType, true);
258128
- this.downloadFile(file, fileName, fileType);
258129
- }
258130
- },
258131
- /**
258132
- * 下载文件
258133
- */
258134
- downloadFile(file, fileName, fileType) {
258135
- let name = fileName;
258136
- let type = fileType;
258137
- if (fileType == 'plain') {
258138
- type = '.txt';
258139
- name += type;
258140
- } else if (fileType == 'json') {
258141
- type = '.json';
258142
- name += type;
258143
- }
258144
- const url = window.URL.createObjectURL(new Blob([file], {
258145
- type: `text/${fileType}`
258146
- }));
258147
- const link = document.createElement('a');
258148
- link.style.display = 'none';
258149
- link.href = url;
258150
- link.setAttribute('download', name);
258151
- document.body.appendChild(link);
258152
- link.click();
258153
- this.$nextTick(() => link.remove());
258154
- }
258155
- }
258156
- });
258157
- ;// ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js
258158
-
258159
- /* harmony default export */ var entry_lib_toolbar_ToolBarvue_type_script_lang_js = (entry_lib_ToolBarvue_type_script_lang_js);
258160
-
258161
- ;// ./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/ToolBar.vue?vue&type=style&index=0&id=0caaf4d5&prod&lang=less
258162
- // extracted by mini-css-extract-plugin
258163
-
258164
- ;// ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=0caaf4d5&prod&lang=less
258165
-
258166
- ;// ./src/components/toolbar/ToolBar.vue
258167
-
258168
-
258169
-
258170
- ;
258171
-
258172
-
258173
- /* normalize component */
258174
-
258175
- var entry_lib_ToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
258176
- entry_lib_toolbar_ToolBarvue_type_script_lang_js,
258177
- entry_lib_ToolBarvue_type_template_id_0caaf4d5_render,
258178
- entry_lib_ToolBarvue_type_template_id_0caaf4d5_staticRenderFns,
258179
- false,
258180
- null,
258181
- null,
258182
- null
258183
-
258184
- )
258185
-
258186
- /* harmony default export */ var entry_lib_ToolBar = (entry_lib_ToolBar_component.exports);
258187
- ;// ./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=48b11b90
258188
- var entry_lib_HoToolBarvue_type_template_id_48b11b90_render = function render() {
258189
- var _vm = this,
258190
- _c = _vm._self._c;
258191
- return _c('div', {
258192
- class: _vm.tabStyle === 'tab' ? 'ho-emr-toolbar-box ho-emr-toolbar-box-tab' : 'ho-emr-toolbar-box ho-emr-toolbar-box-select'
258193
- }, [_c('div', {
258194
- staticClass: "ho-emr-toolbar"
258195
- }, [_vm._t("beforeBrowse"), _vm._t("beforeEdit"), _c('ToolBarChild', {
258196
- attrs: {
258197
- "editJson": _vm.defaultEditJson,
258198
- "vueController": _vm.vueController,
258199
- "uploadImageParams": _vm.uploadImageParams
258200
- },
258201
- on: {
258202
- "setModalStatus": _vm.setModalStatus
258203
- }
258204
- }), _vm._t("afterEdit"), _c('tool-control', {
258205
- attrs: {
258206
- "insert": _vm.defaultEditJson,
258207
- "vueController": _vm.vueController,
258208
- "uploadImageParams": _vm.uploadImageParams
258209
- },
258210
- on: {
258211
- "setModalStatus": _vm.setModalStatus
258212
- },
258213
- scopedSlots: _vm._u([{
258214
- key: "hoInsertItem",
258215
- fn: function () {
258216
- return [_vm._t("insideInsert")];
258217
- },
258218
- proxy: true
258219
- }], null, true)
258220
- }), _c('tool-table', {
258221
- attrs: {
258222
- "table": _vm.defaultEditJson,
258223
- "tableProperty": {
258224
- canAddRow: _vm.hoEditorProvider.textStyle.canAddRow,
258225
- canDeleteRow: _vm.hoEditorProvider.textStyle.canDeleteRow
258226
- },
258227
- "vueController": _vm.vueController
258228
- },
258229
- on: {
258230
- "setModalStatus": _vm.setModalStatus
258231
- },
258232
- scopedSlots: _vm._u([{
258233
- key: "hoTableItem",
258234
- fn: function () {
258235
- return [_vm._t("insideTable")];
258236
- },
258237
- proxy: true
258238
- }], null, true)
258239
- }), _vm._t("afterReview")], 2)]);
258240
- };
258241
- var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258242
-
258243
- ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoToolBar.vue?vue&type=script&lang=js
258244
-
258245
-
258246
-
258247
-
258248
-
258249
-
258250
-
258251
-
258252
-
258253
-
258254
-
258255
-
258256
-
258257
-
258258
-
258259
-
258260
-
258261
-
258262
-
258263
-
258264
-
258265
-
258266
-
258267
-
258268
-
258269
-
258270
- /* harmony default export */ var entry_lib_HoToolBarvue_type_script_lang_js = ({
258271
- name: 'HoToolBar',
258272
- components: {
258273
- HoMedicalExpression: entry_lib_HoMedicalExpression,
258274
- ToolBarChild: entry_lib_ToolBarChild,
258275
- ToolControl: entry_lib_ToolControl,
258276
- ToolTable: entry_lib_ToolTable
258277
- },
258278
- inject: {
258279
- hoEditorProvider: {
258280
- default: () => {
258281
- return {};
258282
- }
258283
- }
258284
- },
258285
- props: {
258286
- vueController: {
258287
- required: true
258288
- },
258289
- tabStatus: {
258290
- default: 'ho-edit'
258291
- },
258292
- editJson: {
258293
- default: () => {
258294
- return {};
258295
- }
258296
- },
258297
- browseJson: {
258298
- default: () => {
258299
- return {};
258300
- }
258301
- },
258302
- reviewJson: {
258303
- default: () => {
258304
- return {};
258305
- }
258306
- },
258307
- toolbarParams: {
258308
- default: () => {
258309
- return {};
258310
- }
258311
- },
258312
- uploadImageParams: {
258313
- default: () => {
258314
- return {};
258315
- }
258316
- },
258317
- tabStyle: {
258318
- default: 'tab' // select
258319
- }
258320
- },
258321
- // provide() {
258322
- // getCustomProperty: () => {
258323
- // return this.customProperty;
258324
- // },
258325
- // },
258326
- data() {
258327
- return {
258328
- printModal: false,
258329
- isPrinted: false,
258330
- ctrlS: false,
258331
- printStatus: '',
258332
- printModal: false,
258333
- reviewLevel: {
258334
- limit: 1,
258335
- color: ['#f19191', '#8198f7', '#7fd27f'],
258336
- text: ['一级质控', '二级质控', '三级质控']
258337
- },
258338
- userInfoes: null,
258339
- toolMenuOpenPathTest: [],
258340
- defaultToolBarParams: {
258341
- 'ho-browse': 5,
258342
- // 浏览状态
258343
- 'ho-edit': 1,
258344
- // 编辑状态
258345
- 'ho-insert': 1,
258346
- // 编辑状态 --- 插入元素
258500
+ // 编辑状态 --- 插入
258347
258501
  'ho-table': 1,
258348
258502
  // 编辑状态 --- 表格相关
258349
258503
  'ho-review': 4 // 审阅状态
@@ -258353,28 +258507,33 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258353
258507
  'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
258354
258508
  'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
258355
258509
  'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
258356
- 'ho-review': '审阅'
258510
+ 'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
258357
258511
  },
258358
258512
  defaultToolBarParamsText: [{
258359
258513
  value: 'ho-browse',
258360
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式")
258514
+ title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
258515
+ key: 1
258361
258516
  }, {
258362
258517
  value: 'ho-edit',
258363
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式")
258518
+ title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
258519
+ key: 2
258364
258520
  }, {
258365
258521
  value: 'ho-insert',
258366
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入")
258522
+ title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
258523
+ key: 3
258367
258524
  }, {
258368
258525
  value: 'ho-table',
258369
- title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格")
258526
+ title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
258527
+ key: 4
258370
258528
  }, {
258371
258529
  value: 'ho-review',
258372
- title: '审阅'
258530
+ title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式"),
258531
+ key: 5
258373
258532
  }],
258374
258533
  tabKey: '',
258375
258534
  defaultReviewJson: {
258376
258535
  isReview: true,
258377
- // 审阅模式
258536
+ // 审阅
258378
258537
  clearSelectSign: true,
258379
258538
  // 清除选中区痕迹
258380
258539
  clearAllSign: true,
@@ -258395,7 +258554,7 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258395
258554
  },
258396
258555
  defaultBrowseJson: {
258397
258556
  isBrowse: true,
258398
- // 浏览模式
258557
+ // 浏览
258399
258558
  saveAsFile: true,
258400
258559
  // 另存为 xml/html/txt
258401
258560
  printed: true,
@@ -258410,9 +258569,9 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258410
258569
  isFooter: true,
258411
258570
  // 是否显示 footer
258412
258571
  isEdit: true,
258413
- // 编辑模式
258572
+ // 编辑
258414
258573
  isInsertElement: true,
258415
- // 插入元素
258574
+ // 插入
258416
258575
  isInsertTable: true,
258417
258576
  // 插入表格
258418
258577
 
@@ -258553,6 +258712,8 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258553
258712
  // 查找 / 替换
258554
258713
  updateDocument: false,
258555
258714
  // 更新说明
258715
+ historylog: false,
258716
+ // 更新说明
258556
258717
  test: false // 测试
258557
258718
  }
258558
258719
  };
@@ -258634,100 +258795,87 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258634
258795
  }
258635
258796
  },
258636
258797
  mounted() {
258637
- // if (this.tabStatus) this.tabKey = this.tabStatus;
258638
- // if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]' && this.defaultToolBarParams[this.tabKey]) {
258639
- // if (this.tabKey) this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]));
258640
- // }
258641
- // if (this.editJson && this.editJson !== null) {
258642
- // if (this.editJson && this.editJson !== null) {
258643
- // this.defaultEditJson = {
258644
- // ...this.defaultEditJson,
258645
- // ...this.editJson,
258646
- // };
258647
- // }
258648
- // }
258649
- // if (this.reviewJson && this.reviewJson !== null) {
258650
- // this.defaultReviewJson = {
258651
- // ...this.defaultReviewJson,
258652
- // ...this.reviewJson,
258653
- // };
258654
- // }
258655
- // if (this.browseJson && this.browseJson !== null) {
258656
- // this.defaultBrowseJson = {
258657
- // ...this.defaultBrowseJson,
258658
- // ...this.browseJson,
258659
- // };
258660
- // }
258661
- // this.$nextTick(() => {
258662
- // this.handleToolbarParams(true);
258663
- // });
258798
+ if (this.tabStatus) this.tabKey = this.tabStatus;
258799
+ if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]' && this.defaultToolBarParams[this.tabKey]) {
258800
+ if (this.tabKey) this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]));
258801
+ }
258802
+ if (this.editJson && this.editJson !== null) {
258803
+ if (this.editJson && this.editJson !== null) {
258804
+ this.defaultEditJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultEditJson), this.editJson);
258805
+ }
258806
+ }
258807
+ if (this.reviewJson && this.reviewJson !== null) {
258808
+ this.defaultReviewJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultReviewJson), this.reviewJson);
258809
+ }
258810
+ if (this.browseJson && this.browseJson !== null) {
258811
+ this.defaultBrowseJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultBrowseJson), this.browseJson);
258812
+ }
258813
+ this.$nextTick(() => {
258814
+ this.handleToolbarParams(true);
258815
+ });
258664
258816
  },
258665
258817
  methods: {
258666
258818
  handleToolbarParams(once) {
258667
- // const selectList = {
258668
- // 'ho-browse': '浏览模式',
258669
- // 'ho-edit': '编辑模式',
258670
- // 'ho-insert': '插入',
258671
- // 'ho-table': '表格',
258672
- // 'ho-review': '审阅',
258673
- // };
258674
- // this.defaultSelect = { ...selectList, ...this.defaultSelect };
258675
- // if (!this.defaultBrowseJson.isBrowse) delete this.defaultSelect['ho-browse'];
258676
- // if (!this.defaultEditJson.isEdit) delete this.defaultSelect['ho-edit'];
258677
- // if (!this.defaultEditJson.isInsertElement) delete this.defaultSelect['ho-insert'];
258678
- // if (!this.defaultEditJson.isInsertTable) delete this.defaultSelect['ho-table'];
258679
- // if (!this.defaultReviewJson.isReview) {
258680
- // delete this.defaultSelect['ho-review'];
258681
- // }
258682
-
258683
- // if (this.toolbarParams) {
258684
- // if (this.$slots.beforeBrowse && this.$slots.beforeBrowse[0]) {
258685
- // const label = this.$slots.beforeBrowse[0].data.key;
258686
- // const name = this.$slots.beforeBrowse[0].componentOptions.propsData.tab;
258687
- // if (this.defaultToolBarParamsText[0].value !== label) {
258688
- // this.defaultSelect[label] = name || '设计模式';
258689
- // this.defaultToolBarParamsText.unshift({
258690
- // value: label,
258691
- // title: name || '设计模式',
258692
- // });
258693
- // }
258694
- // }
258695
- // this.defaultToolBarParams = {
258696
- // ...this.defaultToolBarParams,
258697
- // ...this.toolbarParams,
258698
- // };
258699
- // Object.keys(this.defaultToolBarParams).forEach(key => {
258700
- // if (this.defaultSelect[key]) {
258701
- // if (this.defaultToolBarParamsText.filter(v => v.value === key).length > 0) {
258702
- // this.defaultToolBarParamsText = this.defaultToolBarParamsText
258703
- // .map((v, index) => {
258704
- // if (this.defaultSelect[key] === undefined) {
258705
- // return undefined;
258706
- // } else {
258707
- // return v;
258708
- // }
258709
- // })
258710
- // .filter(m => m);
258711
- // } else {
258712
- // this.defaultToolBarParamsText.push({
258713
- // value: key,
258714
- // title: this.defaultSelect[key],
258715
- // });
258716
- // }
258717
- // } else {
258718
- // this.defaultToolBarParamsText = this.defaultToolBarParamsText.filter(v => v.value !== key);
258719
- // }
258720
- // });
258721
- // }
258722
- // if (once && this.tabKey && this.vueController) {
258723
- // if (!this.defaultSelect[this.tabKey]) {
258724
- // this.tabKey = Object.keys(this.defaultSelect)[0] || ''; // 处理页签不存在的情况 默认取存在页签中的一个;
258725
- // }
258726
- // if (this.defaultToolBarParams[this.tabKey] != undefined) {
258727
- // this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
258728
- // }
258729
- // }
258730
- // this.emitToolBarStatus();
258819
+ const selectList = {
258820
+ 'ho-browse': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
258821
+ 'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
258822
+ 'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
258823
+ 'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
258824
+ 'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
258825
+ };
258826
+ this.defaultSelect = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, selectList), this.defaultSelect);
258827
+ if (!this.defaultBrowseJson.isBrowse) delete this.defaultSelect['ho-browse'];
258828
+ if (!this.defaultEditJson.isEdit) delete this.defaultSelect['ho-edit'];
258829
+ if (!this.defaultEditJson.isInsertElement) delete this.defaultSelect['ho-insert'];
258830
+ if (!this.defaultEditJson.isInsertTable) delete this.defaultSelect['ho-table'];
258831
+ if (!this.defaultReviewJson.isReview) delete this.defaultSelect['ho-review'];
258832
+ if (this.toolbarParams) {
258833
+ if (this.$slots.beforeBrowse && this.$slots.beforeBrowse[0]) {
258834
+ const label = this.$slots.beforeBrowse[0].data.key;
258835
+ const name = this.$slots.beforeBrowse[0].componentOptions.propsData.tab;
258836
+ if (this.defaultToolBarParamsText[0].value !== label) {
258837
+ this.defaultSelect[label] = name || '设计模式';
258838
+ this.defaultToolBarParamsText.unshift({
258839
+ value: label,
258840
+ title: name || '设计模式'
258841
+ });
258842
+ }
258843
+ }
258844
+ this.defaultToolBarParams = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultToolBarParams), this.toolbarParams);
258845
+ Object.keys(this.defaultToolBarParams).forEach(key => {
258846
+ if (this.defaultSelect[key]) {
258847
+ if (this.defaultToolBarParamsText.filter(v => v.value === key).length > 0) {
258848
+ this.defaultToolBarParamsText = this.defaultToolBarParamsText.map((v, index) => {
258849
+ if (this.defaultSelect[key] === undefined) {
258850
+ return undefined;
258851
+ } else {
258852
+ return v;
258853
+ }
258854
+ }).filter(m => m);
258855
+ } else {
258856
+ let param = {
258857
+ value: key,
258858
+ title: this.defaultSelect[key]
258859
+ };
258860
+ if (key == 'ho-review') {
258861
+ param.key = 5;
258862
+ }
258863
+ this.defaultToolBarParamsText.push(param);
258864
+ }
258865
+ } else {
258866
+ this.defaultToolBarParamsText = this.defaultToolBarParamsText.filter(v => v.value !== key);
258867
+ }
258868
+ });
258869
+ }
258870
+ if (once && this.tabKey && this.vueController) {
258871
+ if (!this.defaultSelect[this.tabKey]) {
258872
+ this.tabKey = Object.keys(this.defaultSelect)[0] || ''; // 处理页签不存在的情况 默认取存在页签中的一个;
258873
+ }
258874
+ if (this.defaultToolBarParams[this.tabKey] != undefined) {
258875
+ this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
258876
+ }
258877
+ }
258878
+ this.emitToolBarStatus();
258731
258879
  },
258732
258880
  closeToolMenusTest(e) {
258733
258881
  if (this.toolMenuOpenPathTest.length > 0) {
@@ -258777,7 +258925,7 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258777
258925
  'ho-edit': 1,
258778
258926
  // 编辑状态
258779
258927
  'ho-insert': 1,
258780
- // 编辑状态 --- 插入元素
258928
+ // 编辑状态 --- 插入
258781
258929
  'ho-table': 1,
258782
258930
  // 编辑状态 --- 表格相关
258783
258931
  'ho-review': 4 // 审阅状态
@@ -258939,13 +259087,15 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258939
259087
  const fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
258940
259088
  if (fileType == 'pdf') {
258941
259089
  this.vueController.saveAsPDF('', 'pdf', false);
259090
+ } else if (fileType == 'html(svg)') {
259091
+ this.vueController.saveAsPDF('', 'html', false);
259092
+ } else if (fileType == 'html(html)') {
259093
+ let fileName = this.vueController.getDocTitle();
259094
+ const file = this.vueController.getFileHtml();
259095
+ this.downloadFile(file, fileName + '.html', 'html');
258942
259096
  } else {
258943
- if (fileType !== 'html') {
258944
- const file = this.vueController.saveAsFile(fileType, true);
258945
- this.downloadFile(file, fileName, fileType);
258946
- } else {
258947
- this.vueController.saveAsPDF('', 'html', false);
258948
- }
259097
+ const file = this.vueController.saveAsFile(fileType, true);
259098
+ this.downloadFile(file, fileName, fileType);
258949
259099
  }
258950
259100
  },
258951
259101
  /**
@@ -258974,14 +259124,465 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258974
259124
  }
258975
259125
  }
258976
259126
  });
259127
+ ;// ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js
259128
+
259129
+ /* harmony default export */ var entry_lib_toolbar_ToolBarvue_type_script_lang_js = (entry_lib_ToolBarvue_type_script_lang_js);
259130
+
259131
+ ;// ./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/ToolBar.vue?vue&type=style&index=0&id=0caaf4d5&prod&lang=less
259132
+ // extracted by mini-css-extract-plugin
259133
+
259134
+ ;// ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=0caaf4d5&prod&lang=less
259135
+
259136
+ ;// ./src/components/toolbar/ToolBar.vue
259137
+
259138
+
259139
+
259140
+ ;
259141
+
259142
+
259143
+ /* normalize component */
259144
+
259145
+ var entry_lib_ToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
259146
+ entry_lib_toolbar_ToolBarvue_type_script_lang_js,
259147
+ entry_lib_ToolBarvue_type_template_id_0caaf4d5_render,
259148
+ entry_lib_ToolBarvue_type_template_id_0caaf4d5_staticRenderFns,
259149
+ false,
259150
+ null,
259151
+ null,
259152
+ null
259153
+
259154
+ )
259155
+
259156
+ /* harmony default export */ var entry_lib_ToolBar = (entry_lib_ToolBar_component.exports);
259157
+ ;// ./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=02730ce0
259158
+ var entry_lib_HoToolBarvue_type_template_id_02730ce0_render = function render() {
259159
+ var _vm = this,
259160
+ _c = _vm._self._c,
259161
+ _setup = _vm._self._setupProxy;
259162
+ return _c('div', {
259163
+ staticClass: "ho-emr-toolbar-box ho-emr-toolbar-box-tab"
259164
+ }, [_c('div', {
259165
+ staticClass: "ho-emr-tool-list"
259166
+ }, [_vm._l(_vm.toolList, function (item, index) {
259167
+ return [item.show && item.components ? _c('Poper', {
259168
+ attrs: {
259169
+ "title": item.name,
259170
+ "poperStyle": {
259171
+ width: item.width + 'px',
259172
+ textAlign: item.align
259173
+ }
259174
+ }
259175
+ }, [_c(item.components, {
259176
+ tag: "component",
259177
+ attrs: {
259178
+ "vueController": _vm.vueController
259179
+ }
259180
+ })], 1) : item.show && !item.components ? _c('Poper', {
259181
+ attrs: {
259182
+ "title": item.name,
259183
+ "svg": item.svg,
259184
+ "poperStyle": {
259185
+ width: item.width + 'px',
259186
+ textAlign: item.align
259187
+ }
259188
+ },
259189
+ nativeOn: {
259190
+ "click": function ($event) {
259191
+ return item.events();
259192
+ }
259193
+ }
259194
+ }) : _vm._e()];
259195
+ })], 2)]);
259196
+ };
259197
+ var entry_lib_HoToolBarvue_type_template_id_02730ce0_staticRenderFns = [];
259198
+
259199
+ ;// ./src/components/toolbar/tool/defaultTool.ts
259200
+ const entry_lib_defaultReviewJson = {
259201
+ isReview: true,
259202
+ clearSelectSign: true,
259203
+ clearAllSign: true,
259204
+ insertComment: true,
259205
+ editComment: true,
259206
+ deleteComment: true,
259207
+ deleteAllComment: true,
259208
+ qualityControl: true,
259209
+ cancelDelete: true,
259210
+ printStatus: true // 审阅状态下打印预览状态切换
259211
+ };
259212
+ const entry_lib_defaultBrowseJson = {
259213
+ isBrowse: true,
259214
+ saveAsFile: true,
259215
+ printed: true,
259216
+ printSelected: true,
259217
+ printCaret: true,
259218
+ printContinue: true // 续打
259219
+ };
259220
+ const entry_lib_defaultEditJson = {
259221
+ isFooter: true,
259222
+ isEdit: true,
259223
+ isInsertElement: true,
259224
+ isInsertTable: true,
259225
+ editFile: true,
259226
+ createNew: true,
259227
+ openFile: true,
259228
+ saveFile: true,
259229
+ saveAsFile: true,
259230
+ pageSetting: true,
259231
+ printed: true,
259232
+ printSelected: true,
259233
+ printCaret: true,
259234
+ printContinue: true,
259235
+ unDoOperate: true,
259236
+ reDoOperate: true,
259237
+ formatPaint: true,
259238
+ clearFormat: true,
259239
+ family: true,
259240
+ size: true,
259241
+ enlargeSize: true,
259242
+ decreaseSize: true,
259243
+ superScript: true,
259244
+ subScript: true,
259245
+ bold: true,
259246
+ italic: true,
259247
+ underline: true,
259248
+ strikeout: true,
259249
+ fontColor: true,
259250
+ backColor: true,
259251
+ alignLeft: true,
259252
+ alignCenter: true,
259253
+ alignRight: true,
259254
+ alignBoth: true,
259255
+ addIndent: true,
259256
+ decreaseIndent: true,
259257
+ setHeight: true,
259258
+ express: true,
259259
+ specialChars: true,
259260
+ gestation: true,
259261
+ figure: true,
259262
+ textBorder: true,
259263
+ rareword: true,
259264
+ link: true,
259265
+ datetime: true,
259266
+ watermark: true,
259267
+ select: true,
259268
+ text: true,
259269
+ uploadImage: true,
259270
+ barcode: true,
259271
+ qrcode: true,
259272
+ radioBox: true,
259273
+ checkBox: true,
259274
+ pageInfoes: true,
259275
+ delimiter: true,
259276
+ slider: true,
259277
+ sign: true,
259278
+ mathFormula: true,
259279
+ insertTable: true,
259280
+ isTableCode: true,
259281
+ insertRowAbove: true,
259282
+ insertRowBelow: true,
259283
+ insertColLeft: true,
259284
+ insertColRight: true,
259285
+ deleteRows: true,
259286
+ deleteCols: true,
259287
+ mergerCells: true,
259288
+ unMergerCells: true,
259289
+ tableFormula: true,
259290
+ findModal: true,
259291
+ updateDocument: false,
259292
+ test: false // 测试
259293
+ };
259294
+ ;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoToolBar.vue?vue&type=script&lang=js
259295
+
259296
+
259297
+
259298
+
259299
+
259300
+
259301
+
259302
+
259303
+
259304
+
259305
+
259306
+
259307
+
259308
+
259309
+
259310
+
259311
+
259312
+
259313
+
259314
+
259315
+
259316
+
259317
+
259318
+
259319
+
259320
+
259321
+ /* harmony default export */ var entry_lib_HoToolBarvue_type_script_lang_js = ((0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
259322
+ name: 'HoToolBar',
259323
+ components: {
259324
+ Poper: entry_lib_popers/* default */.A
259325
+ },
259326
+ props: {
259327
+ vueController: {
259328
+ type: Object
259329
+ }
259330
+ },
259331
+ setup(props) {
259332
+ // const hoEditorProvider = inject('hoEditorProvider', {});
259333
+ const tabKey = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
259334
+ const reviewJson = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(entry_lib_defaultReviewJson);
259335
+ const browseJson = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(entry_lib_defaultBrowseJson);
259336
+ const editJson = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(entry_lib_defaultEditJson);
259337
+ const openExpress = style => {
259338
+ props.vueController.$emit('setModalStatus', ['express', 'add', style]);
259339
+ };
259340
+ const list = [{
259341
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.508", null, "字体"),
259342
+ show: 'family',
259343
+ path: 'HoFamily',
259344
+ svg: '',
259345
+ width: 165,
259346
+ align: 'left'
259347
+ }, {
259348
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.373", null, "字号"),
259349
+ show: 'size',
259350
+ path: 'HoSize',
259351
+ svg: '',
259352
+ width: 100,
259353
+ align: 'left'
259354
+ }, {
259355
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.372", null, "增大字号"),
259356
+ show: 'enlargeSize',
259357
+ path: '',
259358
+ svg: 'fontSizeEnlarge',
259359
+ width: 40,
259360
+ align: 'center',
259361
+ events: () => props.vueController.fontSizeEnlarge()
259362
+ }, {
259363
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.371", null, "减少字号"),
259364
+ show: 'decreaseSize',
259365
+ path: '',
259366
+ svg: 'fontSizeDecrease',
259367
+ width: 40,
259368
+ align: 'center',
259369
+ events: () => props.vueController.fontSizeDecrease()
259370
+ }, {
259371
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.370", null, "上标"),
259372
+ show: 'superScript',
259373
+ path: '',
259374
+ svg: 'fontSuperScript',
259375
+ width: 40,
259376
+ align: 'center',
259377
+ events: () => props.vueController.fontSuperScript()
259378
+ }, {
259379
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.369", null, "下标"),
259380
+ show: 'superScript',
259381
+ path: '',
259382
+ svg: 'fontSubScript',
259383
+ width: 40,
259384
+ align: 'center',
259385
+ events: () => props.vueController.fontSubScript()
259386
+ }, {
259387
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.368", null, "加粗"),
259388
+ show: 'bold',
259389
+ path: '',
259390
+ svg: 'bold',
259391
+ width: 40,
259392
+ align: 'center',
259393
+ events: () => props.vueController.fontBold()
259394
+ }, {
259395
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.367", null, "下划线"),
259396
+ show: 'underline',
259397
+ path: '',
259398
+ svg: 'underline',
259399
+ width: 40,
259400
+ align: 'center',
259401
+ events: () => props.vueController.fontUnderline()
259402
+ }, {
259403
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.366", null, "删除线"),
259404
+ show: 'strikeout',
259405
+ path: '',
259406
+ svg: 'strikeout',
259407
+ width: 40,
259408
+ align: 'center',
259409
+ events: () => props.vueController.fontStrikeout()
259410
+ }, {
259411
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.365", null, "字体颜色"),
259412
+ show: 'fontColor',
259413
+ path: 'HoFontColor',
259414
+ svg: '',
259415
+ width: 40,
259416
+ align: 'center'
259417
+ }, {
259418
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.364", null, "背景颜色"),
259419
+ show: 'backColor',
259420
+ path: 'HoBackColor',
259421
+ svg: '',
259422
+ width: 40,
259423
+ align: 'center'
259424
+ }, {
259425
+ name: '对齐方式',
259426
+ show: 'paragraph',
259427
+ path: 'HoParagraphAlign',
259428
+ svg: '',
259429
+ width: 60,
259430
+ align: 'left'
259431
+ }, {
259432
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.360", null, "增加缩进"),
259433
+ show: 'addIndent',
259434
+ path: '',
259435
+ svg: 'addIndent',
259436
+ width: 40,
259437
+ align: 'center',
259438
+ events: () => props.vueController.addIndent()
259439
+ }, {
259440
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.359", null, "减少缩进"),
259441
+ show: 'decreaseIndent',
259442
+ path: '',
259443
+ svg: 'decreaseIndent',
259444
+ width: 40,
259445
+ align: 'center',
259446
+ events: () => props.vueController.decreaseIndent()
259447
+ }, {
259448
+ name: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.358", null, "设置行高"),
259449
+ show: 'setHeight',
259450
+ path: 'HoLineHeight',
259451
+ svg: '',
259452
+ width: 60,
259453
+ align: 'left'
259454
+ }];
259455
+ const toolList = (0,entry_lib_external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
259456
+ list.forEach(v => {
259457
+ let item = {
259458
+ svg: v.svg,
259459
+ name: v.name,
259460
+ width: v.width,
259461
+ align: v.align,
259462
+ events: v.events || null,
259463
+ show: editJson.value[v.show]
259464
+ };
259465
+ if (v.show == 'paragraph') {
259466
+ item.show = editJson.value.alignLeft || editJson.value.alignCenter || editJson.value.alignRight || editJson.value.alignBoth;
259467
+ }
259468
+ if (v.path) {
259469
+ item.components = __webpack_require__(72538)(`./${v.path}.vue`).default;
259470
+ }
259471
+ toolList.value.push(item);
259472
+ });
259473
+ const createControlComment = () => {
259474
+ if (props.vueController.getDomRange().isEmpty) {
259475
+ entry_lib_message/* default */.A.destroy();
259476
+ entry_lib_message/* default */.A.warn({
259477
+ content: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.490", null, "请选择需要添加批注的内容"),
259478
+ duration: 3,
259479
+ offset: 120
259480
+ });
259481
+ return;
259482
+ } else {
259483
+ props.vueController.$emit('setModalStatus', ['comment', 'add', '']);
259484
+ }
259485
+ };
259486
+ const editComment = () => {
259487
+ const selectComment = props.vueController.isEditComment('不能编辑其他用户创建的批注');
259488
+ if (selectComment) {
259489
+ props.vueController.$emit('setModalStatus', ['comment', 'update', '']);
259490
+ }
259491
+ };
259492
+ const deleteComment = () => {
259493
+ const selectComment = props.vueController.isEditComment('不能删除其他用户创建的批注');
259494
+ if (selectComment) {
259495
+ props.vueController.$emit('insertComments', {
259496
+ type: 'delete',
259497
+ selectedComment: selectComment
259498
+ });
259499
+ }
259500
+ };
259501
+ const deleteAllComment = () => {
259502
+ const commentList = props.vueController.getDocCommentValue();
259503
+ if (commentList.length === 0) {
259504
+ return;
259505
+ }
259506
+ const userInfo = props.vueController.getUserInfoes();
259507
+ const candeleteList = [];
259508
+ commentList.forEach(comment => {
259509
+ if (comment.userID === userInfo.id) {
259510
+ candeleteList.push(comment);
259511
+ }
259512
+ });
259513
+ if (candeleteList.length === 0) {
259514
+ entry_lib_message/* default */.A.error(/*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.489", null, "只能删除自己创建的批注!"));
259515
+ return;
259516
+ }
259517
+ props.vueController.$emit('insertComments', {
259518
+ type: 'deleteAll',
259519
+ commentValue: commentList
259520
+ });
259521
+ };
259522
+ const cancelDelete = () => {
259523
+ props.vueController.cancelDel();
259524
+ };
259525
+ const saveAsFile = ({
259526
+ key: fileType
259527
+ }) => {
259528
+ const fileName = props.vueController.getDocTitle() ? props.vueController.getDocTitle() : '电子病历文档';
259529
+ if (fileType === 'pdf') {
259530
+ props.vueController.saveAsPDF('', 'pdf', false);
259531
+ } else {
259532
+ if (fileType !== 'html') {
259533
+ const file = props.vueController.saveAsFile(fileType, true);
259534
+ downloadFile(file, fileName, fileType);
259535
+ } else {
259536
+ props.vueController.saveAsPDF('', 'html', false);
259537
+ }
259538
+ }
259539
+ };
259540
+ const downloadFile = (file, fileName, fileType) => {
259541
+ let name = fileName;
259542
+ let type = fileType;
259543
+ if (fileType === 'plain') {
259544
+ type = '.txt';
259545
+ name += type;
259546
+ } else if (fileType === 'json') {
259547
+ type = '.json';
259548
+ name += type;
259549
+ }
259550
+ const url = window.URL.createObjectURL(new Blob([file], {
259551
+ type: `text/${fileType}`
259552
+ }));
259553
+ const link = document.createElement('a');
259554
+ link.style.display = 'none';
259555
+ link.href = url;
259556
+ link.setAttribute('download', name);
259557
+ document.body.appendChild(link);
259558
+ link.click();
259559
+ setTimeout(() => link.remove(), 0);
259560
+ };
259561
+ return {
259562
+ tabKey,
259563
+ reviewJson,
259564
+ browseJson,
259565
+ editJson,
259566
+ toolList,
259567
+ openExpress,
259568
+ createControlComment,
259569
+ editComment,
259570
+ deleteComment,
259571
+ deleteAllComment,
259572
+ cancelDelete,
259573
+ saveAsFile,
259574
+ downloadFile
259575
+ };
259576
+ }
259577
+ }));
258977
259578
  ;// ./src/components/toolbar/HoToolBar.vue?vue&type=script&lang=js
258978
259579
 
258979
259580
  /* harmony default export */ var entry_lib_toolbar_HoToolBarvue_type_script_lang_js = (entry_lib_HoToolBarvue_type_script_lang_js);
258980
259581
 
258981
- ;// ./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=48b11b90&prod&lang=less
259582
+ ;// ./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=02730ce0&prod&lang=less
258982
259583
  // extracted by mini-css-extract-plugin
258983
259584
 
258984
- ;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=48b11b90&prod&lang=less
259585
+ ;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=02730ce0&prod&lang=less
258985
259586
 
258986
259587
  ;// ./src/components/toolbar/HoToolBar.vue
258987
259588
 
@@ -258994,8 +259595,8 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
258994
259595
 
258995
259596
  var entry_lib_HoToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
258996
259597
  entry_lib_toolbar_HoToolBarvue_type_script_lang_js,
258997
- entry_lib_HoToolBarvue_type_template_id_48b11b90_render,
258998
- entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns,
259598
+ entry_lib_HoToolBarvue_type_template_id_02730ce0_render,
259599
+ entry_lib_HoToolBarvue_type_template_id_02730ce0_staticRenderFns,
258999
259600
  false,
259000
259601
  null,
259001
259602
  null,