hoeditor-web 3.1.213 → 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.
- package/lib/hoeditor.umd.js +1596 -1004
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -97516,7 +97516,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
97516
97516
|
|
|
97517
97517
|
/***/ }),
|
|
97518
97518
|
|
|
97519
|
-
/***/
|
|
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=
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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=
|
|
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=
|
|
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.
|
|
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
|
|
122955
|
-
const
|
|
122956
|
-
|
|
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);
|
|
@@ -157416,7 +158314,6 @@ class DrawSelect extends createjs.Shape {
|
|
|
157416
158314
|
|
|
157417
158315
|
|
|
157418
158316
|
|
|
157419
|
-
|
|
157420
158317
|
class DrawSelectBg extends createjs.Shape {
|
|
157421
158318
|
get left() {
|
|
157422
158319
|
return this._left;
|
|
@@ -157424,96 +158321,113 @@ class DrawSelectBg extends createjs.Shape {
|
|
|
157424
158321
|
set left(value) {
|
|
157425
158322
|
if (value != this._left) {
|
|
157426
158323
|
this._left = value;
|
|
157427
|
-
this.
|
|
158324
|
+
this.bChanged = true;
|
|
157428
158325
|
}
|
|
157429
158326
|
}
|
|
157430
|
-
get endIndex() {
|
|
157431
|
-
return this._right;
|
|
157432
|
-
}
|
|
157433
158327
|
set right(value) {
|
|
157434
158328
|
if (value != this._right) {
|
|
157435
158329
|
this._right = value;
|
|
157436
|
-
this.
|
|
158330
|
+
this.bChanged = true;
|
|
157437
158331
|
}
|
|
157438
158332
|
}
|
|
157439
|
-
|
|
157440
|
-
return this._bChanged;
|
|
157441
|
-
}
|
|
157442
|
-
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) {
|
|
157443
158334
|
super();
|
|
157444
158335
|
(0,defineProperty/* default */.A)(this, "drawLine", void 0);
|
|
157445
158336
|
(0,defineProperty/* default */.A)(this, "_left", void 0);
|
|
157446
158337
|
(0,defineProperty/* default */.A)(this, "_right", void 0);
|
|
157447
|
-
(0,defineProperty/* default */.A)(this, "
|
|
157448
|
-
(0,defineProperty/* default */.A)(this, "
|
|
157449
|
-
(0,defineProperty/* default */.A)(this, "
|
|
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);
|
|
157450
158341
|
//选择起始范围的父节点是否相同
|
|
157451
|
-
(0,defineProperty/* default */.A)(this, "
|
|
158342
|
+
(0,defineProperty/* default */.A)(this, "startParent", void 0);
|
|
157452
158343
|
//选择起点父节点
|
|
157453
|
-
(0,defineProperty/* default */.A)(this, "
|
|
157454
|
-
(0,defineProperty/* default */.A)(this, "
|
|
157455
|
-
(0,defineProperty/* default */.A)(this, "
|
|
157456
|
-
this
|
|
157457
|
-
this
|
|
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;
|
|
157458
158354
|
this.drawLine = dline;
|
|
157459
158355
|
this._left = left;
|
|
157460
158356
|
this._right = right;
|
|
157461
|
-
this.
|
|
157462
|
-
this.
|
|
157463
|
-
this.
|
|
157464
|
-
this.
|
|
157465
|
-
this.
|
|
157466
|
-
this.
|
|
157467
|
-
|
|
157468
|
-
|
|
157469
|
-
|
|
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) {
|
|
157470
158371
|
return;
|
|
157471
158372
|
}
|
|
157472
158373
|
const dline = this.drawLine;
|
|
157473
158374
|
let width = this._right - this._left;
|
|
157474
158375
|
const pNode = dline.paragraphNode.parentNode;
|
|
157475
158376
|
//多选表格中的行需要绘制整行状态
|
|
157476
|
-
if ((!this.
|
|
158377
|
+
if ((!this.inSameRect || pNode !== this.startParent || pNode !== this.endParent) && pNode instanceof RectNode/* RectNode */.P) {
|
|
157477
158378
|
width = dline.dWidth;
|
|
157478
158379
|
this._left = 0;
|
|
157479
158380
|
this._right = width;
|
|
157480
158381
|
}
|
|
157481
158382
|
let height = dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
157482
|
-
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.
|
|
157483
|
-
if (hoEditorFactory.drawTree.paintStatus == PaintState.psPreview && !isMultiRange) {
|
|
157484
|
-
//打印预览时,变更样式
|
|
157485
|
-
width = hoEditorFactory.pageProperty.widthPixes;
|
|
157486
|
-
this._color = "green";
|
|
157487
|
-
}
|
|
158383
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryID);
|
|
157488
158384
|
this.uncache();
|
|
157489
158385
|
this.graphics.clear();
|
|
157490
|
-
width = Math.floor(width);
|
|
157491
158386
|
height = Math.floor(height);
|
|
157492
|
-
this.graphics.beginStroke(this.
|
|
157493
|
-
|
|
157494
|
-
|
|
157495
|
-
|
|
157496
|
-
|
|
157497
|
-
|
|
157498
|
-
|
|
157499
|
-
|
|
157500
|
-
|
|
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
|
+
}
|
|
157501
158421
|
let pt = {
|
|
157502
158422
|
x: 0,
|
|
157503
158423
|
y: 0
|
|
157504
158424
|
};
|
|
157505
|
-
|
|
157506
|
-
// hoEditorFactory.drawTree.drawPages[this._pageIndex].drawHeader.stage.update();
|
|
157507
|
-
// }
|
|
157508
|
-
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);
|
|
157509
158426
|
this.x = pt.x;
|
|
157510
158427
|
this.y = pt.y;
|
|
157511
158428
|
this.alpha = 1;
|
|
157512
|
-
// if(this.stage) {
|
|
157513
|
-
// this.stage.update();
|
|
157514
|
-
// }
|
|
157515
158429
|
this.cache(0, 0, width, height);
|
|
157516
|
-
this.
|
|
158430
|
+
this.bChanged = false;
|
|
157517
158431
|
}
|
|
157518
158432
|
}
|
|
157519
158433
|
// EXTERNAL MODULE: ./src/editor/events/SelectionChangeEvent.ts
|
|
@@ -159844,6 +160758,9 @@ class DrawTree {
|
|
|
159844
160758
|
if (dStartDline instanceof DrawLine/* DrawLine */.D) {
|
|
159845
160759
|
istart = arrDrawDlines.indexOf(dStartDline);
|
|
159846
160760
|
}
|
|
160761
|
+
let prevLeft = 0;
|
|
160762
|
+
let prevRight = 0;
|
|
160763
|
+
let prevPageIndex = 0;
|
|
159847
160764
|
for (let i = istart; i < arrDrawDlines.length; i++) {
|
|
159848
160765
|
let left = 0;
|
|
159849
160766
|
const dnextDline = arrDrawDlines[i];
|
|
@@ -159892,8 +160809,17 @@ class DrawTree {
|
|
|
159892
160809
|
}
|
|
159893
160810
|
}
|
|
159894
160811
|
const color = hoeditorfacotry.option.getColorByLevel(15);
|
|
160812
|
+
const isEnd = i == arrDrawDlines.length - 1 ? true : false;
|
|
159895
160813
|
if (dPage && dPage.selectContainer) {
|
|
159896
|
-
|
|
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;
|
|
159897
160823
|
dPage.selectContainer.addChild(shape);
|
|
159898
160824
|
if (dPages.indexOf(dPage) < 0) {
|
|
159899
160825
|
dPages.push(dPage);
|
|
@@ -167623,7 +168549,7 @@ var map = {
|
|
|
167623
168549
|
"./paragraph/ParagraphDialog.vue": 88281,
|
|
167624
168550
|
"./poperSelect/PoperMark.vue": 11382,
|
|
167625
168551
|
"./poperSelect/PoperSelect.vue": 49524,
|
|
167626
|
-
"./poperTipText/PoperTipText.vue":
|
|
168552
|
+
"./poperTipText/PoperTipText.vue": 28140,
|
|
167627
168553
|
"./popers/Poper.vue": 68137,
|
|
167628
168554
|
"./popers/Title.vue": 68839,
|
|
167629
168555
|
"./printstyle/PrintLineStyle.vue": 27705,
|
|
@@ -167675,6 +168601,40 @@ webpackContext.id = 44954;
|
|
|
167675
168601
|
|
|
167676
168602
|
/***/ }),
|
|
167677
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
|
+
|
|
167678
168638
|
/***/ 9274:
|
|
167679
168639
|
/***/ (function(module) {
|
|
167680
168640
|
|
|
@@ -223129,7 +224089,7 @@ var entry_lib_ParagraphNode = __webpack_require__(40504);
|
|
|
223129
224089
|
// EXTERNAL MODULE: ./src/components/version.ts
|
|
223130
224090
|
var entry_lib_version = __webpack_require__(41063);
|
|
223131
224091
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
223132
|
-
var entry_lib_PoperTipText = __webpack_require__(
|
|
224092
|
+
var entry_lib_PoperTipText = __webpack_require__(28140);
|
|
223133
224093
|
;// ./src/components/controls/poperTipText/index.ts
|
|
223134
224094
|
|
|
223135
224095
|
/* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
|
|
@@ -238013,12 +238973,6 @@ class entry_lib_VueController {
|
|
|
238013
238973
|
for (let m = 0, len = nodeList.length - 1; m <= len; m++) {
|
|
238014
238974
|
const item = nodeList[m];
|
|
238015
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;
|
|
238016
|
-
// if (item.text !== '' && anode.text.includes(item.text)) {
|
|
238017
|
-
// const range = this.search(anode, item.text);
|
|
238018
|
-
// if (range.length > 0) {
|
|
238019
|
-
// selectRangeArr = selectRangeArr.concat(range);
|
|
238020
|
-
// }
|
|
238021
|
-
// } else if ((item.text === '' || item.text == undefined) && isCurrent) {
|
|
238022
238976
|
if (isCurrent) {
|
|
238023
238977
|
const sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
238024
238978
|
const ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
@@ -238148,7 +239102,14 @@ class entry_lib_VueController {
|
|
|
238148
239102
|
searchText(text) {
|
|
238149
239103
|
const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
238150
239104
|
const npEnd = hoEditorFactory.docTree.findNodePositionByPath("main/0");
|
|
238151
|
-
const
|
|
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);
|
|
238152
239113
|
let selectRangeArr = [];
|
|
238153
239114
|
for (const item of result.obj2.values()) {
|
|
238154
239115
|
selectRangeArr.push(this.getSelectRanges2(item, text, result.obj1));
|
|
@@ -257536,823 +258497,7 @@ var entry_lib_ToolTable_component = (0,entry_lib_componentNormalizer/* default *
|
|
|
257536
258497
|
'ho-edit': 1,
|
|
257537
258498
|
// 编辑状态
|
|
257538
258499
|
'ho-insert': 1,
|
|
257539
|
-
// 编辑状态 --- 插入
|
|
257540
|
-
'ho-table': 1,
|
|
257541
|
-
// 编辑状态 --- 表格相关
|
|
257542
|
-
'ho-review': 4 // 审阅状态
|
|
257543
|
-
},
|
|
257544
|
-
defaultSelect: {
|
|
257545
|
-
'ho-browse': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
|
|
257546
|
-
'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
|
|
257547
|
-
'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
|
|
257548
|
-
'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
|
|
257549
|
-
'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
|
|
257550
|
-
},
|
|
257551
|
-
defaultToolBarParamsText: [{
|
|
257552
|
-
value: 'ho-browse',
|
|
257553
|
-
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
|
|
257554
|
-
key: 1
|
|
257555
|
-
}, {
|
|
257556
|
-
value: 'ho-edit',
|
|
257557
|
-
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
|
|
257558
|
-
key: 2
|
|
257559
|
-
}, {
|
|
257560
|
-
value: 'ho-insert',
|
|
257561
|
-
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
|
|
257562
|
-
key: 3
|
|
257563
|
-
}, {
|
|
257564
|
-
value: 'ho-table',
|
|
257565
|
-
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
|
|
257566
|
-
key: 4
|
|
257567
|
-
}, {
|
|
257568
|
-
value: 'ho-review',
|
|
257569
|
-
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式"),
|
|
257570
|
-
key: 5
|
|
257571
|
-
}],
|
|
257572
|
-
tabKey: '',
|
|
257573
|
-
defaultReviewJson: {
|
|
257574
|
-
isReview: true,
|
|
257575
|
-
// 审阅
|
|
257576
|
-
clearSelectSign: true,
|
|
257577
|
-
// 清除选中区痕迹
|
|
257578
|
-
clearAllSign: true,
|
|
257579
|
-
// 清除全部痕迹
|
|
257580
|
-
insertComment: true,
|
|
257581
|
-
// 插入批注
|
|
257582
|
-
editComment: true,
|
|
257583
|
-
// 编辑批注
|
|
257584
|
-
deleteComment: true,
|
|
257585
|
-
// 删除批注
|
|
257586
|
-
deleteAllComment: true,
|
|
257587
|
-
// 删除全部批注
|
|
257588
|
-
qualityControl: true,
|
|
257589
|
-
// 设置质控等级
|
|
257590
|
-
cancelDelete: true,
|
|
257591
|
-
// 取消删除
|
|
257592
|
-
printStatus: true // 审阅状态下打印预览状态切换
|
|
257593
|
-
},
|
|
257594
|
-
defaultBrowseJson: {
|
|
257595
|
-
isBrowse: true,
|
|
257596
|
-
// 浏览
|
|
257597
|
-
saveAsFile: true,
|
|
257598
|
-
// 另存为 xml/html/txt
|
|
257599
|
-
printed: true,
|
|
257600
|
-
// 打印预览
|
|
257601
|
-
printSelected: true,
|
|
257602
|
-
// 打印拖动鼠标选中区域
|
|
257603
|
-
printCaret: true,
|
|
257604
|
-
// 打印鼠标点击位置
|
|
257605
|
-
printContinue: true // 续打
|
|
257606
|
-
},
|
|
257607
|
-
defaultEditJson: {
|
|
257608
|
-
isFooter: true,
|
|
257609
|
-
// 是否显示 footer
|
|
257610
|
-
isEdit: true,
|
|
257611
|
-
// 编辑
|
|
257612
|
-
isInsertElement: true,
|
|
257613
|
-
// 插入
|
|
257614
|
-
isInsertTable: true,
|
|
257615
|
-
// 插入表格
|
|
257616
|
-
|
|
257617
|
-
editFile: true,
|
|
257618
|
-
// 文件按钮
|
|
257619
|
-
createNew: true,
|
|
257620
|
-
// 创建空白文档
|
|
257621
|
-
openFile: true,
|
|
257622
|
-
// 打开xml文件
|
|
257623
|
-
saveFile: true,
|
|
257624
|
-
// 保存文件 暂无
|
|
257625
|
-
saveAsFile: true,
|
|
257626
|
-
// 另存为 xml/html/txt
|
|
257627
|
-
pageSetting: true,
|
|
257628
|
-
// 页面设置
|
|
257629
|
-
printed: true,
|
|
257630
|
-
// 打印预览
|
|
257631
|
-
printSelected: true,
|
|
257632
|
-
// 打印拖动鼠标选中区域
|
|
257633
|
-
printCaret: true,
|
|
257634
|
-
// 打印鼠标点击位置
|
|
257635
|
-
printContinue: true,
|
|
257636
|
-
// 续打
|
|
257637
|
-
|
|
257638
|
-
unDoOperate: true,
|
|
257639
|
-
// 撤销
|
|
257640
|
-
reDoOperate: true,
|
|
257641
|
-
// 恢复
|
|
257642
|
-
formatPaint: true,
|
|
257643
|
-
// 格式刷
|
|
257644
|
-
clearFormat: true,
|
|
257645
|
-
// 清除格式
|
|
257646
|
-
family: true,
|
|
257647
|
-
// 字体
|
|
257648
|
-
size: true,
|
|
257649
|
-
// 字号
|
|
257650
|
-
enlargeSize: true,
|
|
257651
|
-
// 增大字体
|
|
257652
|
-
decreaseSize: true,
|
|
257653
|
-
// 缩小字体
|
|
257654
|
-
superScript: true,
|
|
257655
|
-
// 上标
|
|
257656
|
-
subScript: true,
|
|
257657
|
-
// 下标
|
|
257658
|
-
bold: true,
|
|
257659
|
-
// 加粗
|
|
257660
|
-
italic: true,
|
|
257661
|
-
// 斜体
|
|
257662
|
-
underline: true,
|
|
257663
|
-
// 下划线
|
|
257664
|
-
strikeout: true,
|
|
257665
|
-
// 删除线
|
|
257666
|
-
fontColor: true,
|
|
257667
|
-
// 字体颜色
|
|
257668
|
-
backColor: true,
|
|
257669
|
-
// 背景颜色
|
|
257670
|
-
|
|
257671
|
-
alignLeft: true,
|
|
257672
|
-
// 左对齐
|
|
257673
|
-
alignCenter: true,
|
|
257674
|
-
// 居中对齐
|
|
257675
|
-
alignRight: true,
|
|
257676
|
-
// 右对齐
|
|
257677
|
-
alignBoth: true,
|
|
257678
|
-
// 两端对齐
|
|
257679
|
-
addIndent: true,
|
|
257680
|
-
// 增加缩进
|
|
257681
|
-
decreaseIndent: true,
|
|
257682
|
-
//减少缩进
|
|
257683
|
-
setHeight: true,
|
|
257684
|
-
// 行高
|
|
257685
|
-
|
|
257686
|
-
express: true,
|
|
257687
|
-
// 医学表达式
|
|
257688
|
-
specialChars: true,
|
|
257689
|
-
// 特殊字符
|
|
257690
|
-
gestation: true,
|
|
257691
|
-
// 孕周
|
|
257692
|
-
figure: true,
|
|
257693
|
-
// 人体关节图形
|
|
257694
|
-
textBorder: true,
|
|
257695
|
-
// 文本框
|
|
257696
|
-
rareword: true,
|
|
257697
|
-
// 生僻字
|
|
257698
|
-
link: true,
|
|
257699
|
-
// 孕周
|
|
257700
|
-
datetime: true,
|
|
257701
|
-
// 日期时间
|
|
257702
|
-
watermark: true,
|
|
257703
|
-
// 水印
|
|
257704
|
-
select: true,
|
|
257705
|
-
// 选择框
|
|
257706
|
-
text: true,
|
|
257707
|
-
// 文本域
|
|
257708
|
-
uploadImage: true,
|
|
257709
|
-
// 上传图片
|
|
257710
|
-
barcode: true,
|
|
257711
|
-
// 条形码
|
|
257712
|
-
qrcode: true,
|
|
257713
|
-
// 二维码
|
|
257714
|
-
radioBox: true,
|
|
257715
|
-
// 单选框
|
|
257716
|
-
checkBox: true,
|
|
257717
|
-
// 多选框
|
|
257718
|
-
pageInfoes: true,
|
|
257719
|
-
// 页码信息
|
|
257720
|
-
delimiter: true,
|
|
257721
|
-
// 分隔符
|
|
257722
|
-
slider: true,
|
|
257723
|
-
// 分隔符
|
|
257724
|
-
sign: true,
|
|
257725
|
-
// 签名
|
|
257726
|
-
mathFormula: true,
|
|
257727
|
-
// 数学公式
|
|
257728
|
-
|
|
257729
|
-
insertTable: true,
|
|
257730
|
-
isTableCode: true,
|
|
257731
|
-
// 是否显示单元格编号
|
|
257732
|
-
insertRowAbove: true,
|
|
257733
|
-
// 上方插入行
|
|
257734
|
-
insertRowBelow: true,
|
|
257735
|
-
// 下方插入行
|
|
257736
|
-
insertColLeft: true,
|
|
257737
|
-
// 左侧插入列
|
|
257738
|
-
insertColRight: true,
|
|
257739
|
-
// 右侧插入列
|
|
257740
|
-
deleteRows: true,
|
|
257741
|
-
// 删除行
|
|
257742
|
-
deleteCols: true,
|
|
257743
|
-
// 删除列
|
|
257744
|
-
mergerCells: true,
|
|
257745
|
-
// 合并单元格
|
|
257746
|
-
unMergerCells: true,
|
|
257747
|
-
// 取消合并单元格
|
|
257748
|
-
tableFormula: true,
|
|
257749
|
-
// 表格计算公式
|
|
257750
|
-
findModal: true,
|
|
257751
|
-
// 查找 / 替换
|
|
257752
|
-
updateDocument: false,
|
|
257753
|
-
// 更新说明
|
|
257754
|
-
historylog: false,
|
|
257755
|
-
// 更新说明
|
|
257756
|
-
test: false // 测试
|
|
257757
|
-
}
|
|
257758
|
-
};
|
|
257759
|
-
},
|
|
257760
|
-
computed: {
|
|
257761
|
-
isPrintClass() {
|
|
257762
|
-
return this.isPrinted ? 'print-selected' : '';
|
|
257763
|
-
},
|
|
257764
|
-
printedClass() {
|
|
257765
|
-
return this.printStatus === 'print' ? 'print print-selected' : 'print';
|
|
257766
|
-
},
|
|
257767
|
-
printSelectedClass() {
|
|
257768
|
-
return this.printStatus === 'selected' ? 'print print-selected' : 'print';
|
|
257769
|
-
},
|
|
257770
|
-
printCaretClass() {
|
|
257771
|
-
return this.printStatus === 'caret' ? 'print print-selected' : 'print';
|
|
257772
|
-
},
|
|
257773
|
-
printContinueClass() {
|
|
257774
|
-
return this.printStatus === 'continue' ? 'print print-selected' : 'print';
|
|
257775
|
-
}
|
|
257776
|
-
},
|
|
257777
|
-
watch: {
|
|
257778
|
-
tabStatus() {
|
|
257779
|
-
if (this.tabStatus) this.tabKey = this.tabStatus;
|
|
257780
|
-
},
|
|
257781
|
-
editJson: {
|
|
257782
|
-
deep: true,
|
|
257783
|
-
handler(editJson) {
|
|
257784
|
-
if (editJson && editJson !== null) {
|
|
257785
|
-
this.defaultEditJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultEditJson), editJson);
|
|
257786
|
-
this.handleToolbarParams();
|
|
257787
|
-
}
|
|
257788
|
-
}
|
|
257789
|
-
},
|
|
257790
|
-
reviewJson: {
|
|
257791
|
-
deep: true,
|
|
257792
|
-
handler(reviewJson) {
|
|
257793
|
-
if (reviewJson && reviewJson !== null) {
|
|
257794
|
-
this.defaultReviewJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultReviewJson), reviewJson);
|
|
257795
|
-
this.handleToolbarParams();
|
|
257796
|
-
}
|
|
257797
|
-
}
|
|
257798
|
-
},
|
|
257799
|
-
defaultReviewJson: {
|
|
257800
|
-
deep: true,
|
|
257801
|
-
handler(json) {
|
|
257802
|
-
if (json && json !== null) {
|
|
257803
|
-
this.vueController.setDefaultReviewJson((0,build_entry_lib_objectSpread2/* default */.A)({}, json));
|
|
257804
|
-
}
|
|
257805
|
-
}
|
|
257806
|
-
},
|
|
257807
|
-
browseJson: {
|
|
257808
|
-
deep: true,
|
|
257809
|
-
handler(browseJson) {
|
|
257810
|
-
if (browseJson && browseJson !== null) {
|
|
257811
|
-
this.defaultBrowseJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultBrowseJson), browseJson);
|
|
257812
|
-
this.handleToolbarParams();
|
|
257813
|
-
}
|
|
257814
|
-
}
|
|
257815
|
-
},
|
|
257816
|
-
toolbarParams: {
|
|
257817
|
-
deep: true,
|
|
257818
|
-
handler() {
|
|
257819
|
-
this.handleToolbarParams(true);
|
|
257820
|
-
}
|
|
257821
|
-
},
|
|
257822
|
-
tabKey(newName, oldName) {
|
|
257823
|
-
if (Object.keys(this.toolbarParams).length == 0) {
|
|
257824
|
-
return;
|
|
257825
|
-
}
|
|
257826
|
-
const oldStatus = this.defaultToolBarParams[oldName];
|
|
257827
|
-
const newStatus = this.defaultToolBarParams[newName];
|
|
257828
|
-
if (oldStatus !== newStatus) {
|
|
257829
|
-
this.emitToolBarStatus();
|
|
257830
|
-
this.vueController.setEditorStatus(newStatus);
|
|
257831
|
-
}
|
|
257832
|
-
this.printStatus = '';
|
|
257833
|
-
this.isPrinted = false;
|
|
257834
|
-
}
|
|
257835
|
-
},
|
|
257836
|
-
mounted() {
|
|
257837
|
-
if (this.tabStatus) this.tabKey = this.tabStatus;
|
|
257838
|
-
if (Object.prototype.toString.call(this.vueController.setEditorStatus) === '[object Function]' && this.defaultToolBarParams[this.tabKey]) {
|
|
257839
|
-
if (this.tabKey) this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]));
|
|
257840
|
-
}
|
|
257841
|
-
if (this.editJson && this.editJson !== null) {
|
|
257842
|
-
if (this.editJson && this.editJson !== null) {
|
|
257843
|
-
this.defaultEditJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultEditJson), this.editJson);
|
|
257844
|
-
}
|
|
257845
|
-
}
|
|
257846
|
-
if (this.reviewJson && this.reviewJson !== null) {
|
|
257847
|
-
this.defaultReviewJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultReviewJson), this.reviewJson);
|
|
257848
|
-
}
|
|
257849
|
-
if (this.browseJson && this.browseJson !== null) {
|
|
257850
|
-
this.defaultBrowseJson = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultBrowseJson), this.browseJson);
|
|
257851
|
-
}
|
|
257852
|
-
this.$nextTick(() => {
|
|
257853
|
-
this.handleToolbarParams(true);
|
|
257854
|
-
});
|
|
257855
|
-
},
|
|
257856
|
-
methods: {
|
|
257857
|
-
handleToolbarParams(once) {
|
|
257858
|
-
const selectList = {
|
|
257859
|
-
'ho-browse': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.1", null, "浏览模式"),
|
|
257860
|
-
'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
|
|
257861
|
-
'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
|
|
257862
|
-
'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
|
|
257863
|
-
'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
|
|
257864
|
-
};
|
|
257865
|
-
this.defaultSelect = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, selectList), this.defaultSelect);
|
|
257866
|
-
if (!this.defaultBrowseJson.isBrowse) delete this.defaultSelect['ho-browse'];
|
|
257867
|
-
if (!this.defaultEditJson.isEdit) delete this.defaultSelect['ho-edit'];
|
|
257868
|
-
if (!this.defaultEditJson.isInsertElement) delete this.defaultSelect['ho-insert'];
|
|
257869
|
-
if (!this.defaultEditJson.isInsertTable) delete this.defaultSelect['ho-table'];
|
|
257870
|
-
if (!this.defaultReviewJson.isReview) delete this.defaultSelect['ho-review'];
|
|
257871
|
-
if (this.toolbarParams) {
|
|
257872
|
-
if (this.$slots.beforeBrowse && this.$slots.beforeBrowse[0]) {
|
|
257873
|
-
const label = this.$slots.beforeBrowse[0].data.key;
|
|
257874
|
-
const name = this.$slots.beforeBrowse[0].componentOptions.propsData.tab;
|
|
257875
|
-
if (this.defaultToolBarParamsText[0].value !== label) {
|
|
257876
|
-
this.defaultSelect[label] = name || '设计模式';
|
|
257877
|
-
this.defaultToolBarParamsText.unshift({
|
|
257878
|
-
value: label,
|
|
257879
|
-
title: name || '设计模式'
|
|
257880
|
-
});
|
|
257881
|
-
}
|
|
257882
|
-
}
|
|
257883
|
-
this.defaultToolBarParams = (0,build_entry_lib_objectSpread2/* default */.A)((0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultToolBarParams), this.toolbarParams);
|
|
257884
|
-
Object.keys(this.defaultToolBarParams).forEach(key => {
|
|
257885
|
-
if (this.defaultSelect[key]) {
|
|
257886
|
-
if (this.defaultToolBarParamsText.filter(v => v.value === key).length > 0) {
|
|
257887
|
-
this.defaultToolBarParamsText = this.defaultToolBarParamsText.map((v, index) => {
|
|
257888
|
-
if (this.defaultSelect[key] === undefined) {
|
|
257889
|
-
return undefined;
|
|
257890
|
-
} else {
|
|
257891
|
-
return v;
|
|
257892
|
-
}
|
|
257893
|
-
}).filter(m => m);
|
|
257894
|
-
} else {
|
|
257895
|
-
let param = {
|
|
257896
|
-
value: key,
|
|
257897
|
-
title: this.defaultSelect[key]
|
|
257898
|
-
};
|
|
257899
|
-
if (key == 'ho-review') {
|
|
257900
|
-
param.key = 5;
|
|
257901
|
-
}
|
|
257902
|
-
this.defaultToolBarParamsText.push(param);
|
|
257903
|
-
}
|
|
257904
|
-
} else {
|
|
257905
|
-
this.defaultToolBarParamsText = this.defaultToolBarParamsText.filter(v => v.value !== key);
|
|
257906
|
-
}
|
|
257907
|
-
});
|
|
257908
|
-
}
|
|
257909
|
-
if (once && this.tabKey && this.vueController) {
|
|
257910
|
-
if (!this.defaultSelect[this.tabKey]) {
|
|
257911
|
-
this.tabKey = Object.keys(this.defaultSelect)[0] || ''; // 处理页签不存在的情况 默认取存在页签中的一个;
|
|
257912
|
-
}
|
|
257913
|
-
if (this.defaultToolBarParams[this.tabKey] != undefined) {
|
|
257914
|
-
this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
|
|
257915
|
-
}
|
|
257916
|
-
}
|
|
257917
|
-
this.emitToolBarStatus();
|
|
257918
|
-
},
|
|
257919
|
-
closeToolMenusTest(e) {
|
|
257920
|
-
if (this.toolMenuOpenPathTest.length > 0) {
|
|
257921
|
-
this.toolMenuOpenPathTest.forEach(path => {
|
|
257922
|
-
if (this.controlMenus) this.controlMenus.closeMenu(path);
|
|
257923
|
-
});
|
|
257924
|
-
}
|
|
257925
|
-
},
|
|
257926
|
-
toolMenuSelectedTest(index, indexPath) {
|
|
257927
|
-
this.toolMenuOpenPathTest = indexPath;
|
|
257928
|
-
},
|
|
257929
|
-
setLogin(limit, color) {
|
|
257930
|
-
// this.reviewLevel = {
|
|
257931
|
-
// ...this.reviewLevel,
|
|
257932
|
-
// limit: limit,
|
|
257933
|
-
// color: color,
|
|
257934
|
-
// };
|
|
257935
|
-
const arr = ['李医生', '张医生', '王医生'];
|
|
257936
|
-
const id = this.vueController.generateID('UI');
|
|
257937
|
-
this.vueController.setUserLoginInfo(id, arr[limit - 1], limit, '');
|
|
257938
|
-
this.vueController.setReviewLevelColor({
|
|
257939
|
-
reviewLev1Color: '#F19191',
|
|
257940
|
-
//审阅级别1颜色
|
|
257941
|
-
reviewLev2Color: '#FFFFFF',
|
|
257942
|
-
//审阅级别2颜色
|
|
257943
|
-
reviewLev3Color: '#FFFFFF',
|
|
257944
|
-
//审阅级别3颜色
|
|
257945
|
-
fieldColor: '#DFFFFF',
|
|
257946
|
-
//文本域元素颜色 #FBFAD0
|
|
257947
|
-
dateTimeColor: '#FBFAD0',
|
|
257948
|
-
//日期时间元素颜色 #C4F8F8
|
|
257949
|
-
downListColor: '#D2ECB1' //下拉列表元素颜色//#D2ECB1
|
|
257950
|
-
});
|
|
257951
|
-
},
|
|
257952
|
-
setModalStatus(str) {
|
|
257953
|
-
this.$emit('setModalStatus', str);
|
|
257954
|
-
},
|
|
257955
|
-
updateTabKey(currentValue) {
|
|
257956
|
-
this.$nextTick(() => this.vueController.setEditorStatus(this.defaultToolBarParams[currentValue]));
|
|
257957
|
-
},
|
|
257958
|
-
emitToolBarStatus() {
|
|
257959
|
-
this.$emit('switchDocStatus', {
|
|
257960
|
-
incomingParams: (0,build_entry_lib_objectSpread2/* default */.A)({}, this.toolbarParams),
|
|
257961
|
-
defaultParams: {
|
|
257962
|
-
'ho-browse': 5,
|
|
257963
|
-
// 浏览状态
|
|
257964
|
-
'ho-edit': 1,
|
|
257965
|
-
// 编辑状态
|
|
257966
|
-
'ho-insert': 1,
|
|
257967
|
-
// 编辑状态 --- 插入
|
|
257968
|
-
'ho-table': 1,
|
|
257969
|
-
// 编辑状态 --- 表格相关
|
|
257970
|
-
'ho-review': 4 // 审阅状态
|
|
257971
|
-
},
|
|
257972
|
-
mergeParams: (0,build_entry_lib_objectSpread2/* default */.A)({}, this.defaultToolBarParams)
|
|
257973
|
-
});
|
|
257974
|
-
},
|
|
257975
|
-
/**
|
|
257976
|
-
* @param arg 打开医学表达式参数
|
|
257977
|
-
*/
|
|
257978
|
-
openExpress(style) {
|
|
257979
|
-
this.$emit('setModalStatus', ['express', 'add', style]);
|
|
257980
|
-
},
|
|
257981
|
-
/**
|
|
257982
|
-
*
|
|
257983
|
-
*/
|
|
257984
|
-
reviewPrintStatus() {
|
|
257985
|
-
this.isPrinted = !this.isPrinted;
|
|
257986
|
-
if (this.isPrinted) {
|
|
257987
|
-
this.vueController.setEditorStatus(5);
|
|
257988
|
-
} else {
|
|
257989
|
-
this.vueController.setEditorStatus(4);
|
|
257990
|
-
}
|
|
257991
|
-
},
|
|
257992
|
-
/**
|
|
257993
|
-
* 退出打印预览
|
|
257994
|
-
*/
|
|
257995
|
-
outPrinted() {
|
|
257996
|
-
this.printStatus = '';
|
|
257997
|
-
this.isPrinted = false;
|
|
257998
|
-
this.vueController.setEditorStatus(5);
|
|
257999
|
-
},
|
|
258000
|
-
// closedHoPrintModal(status) {
|
|
258001
|
-
// // if (status === 'sure') {
|
|
258002
|
-
// // this.isPrinted = false;
|
|
258003
|
-
// // }
|
|
258004
|
-
// this.printModal = false;
|
|
258005
|
-
// }
|
|
258006
|
-
|
|
258007
|
-
// 打印
|
|
258008
|
-
printed() {
|
|
258009
|
-
// 非打印预览状态
|
|
258010
|
-
|
|
258011
|
-
if (!this.isPrinted) {
|
|
258012
|
-
// 打开设置弹窗
|
|
258013
|
-
this.$emit('setModalStatus', ['ho-print', 'add', '']);
|
|
258014
|
-
} else {
|
|
258015
|
-
this.vueController.hideComments(true);
|
|
258016
|
-
if (!this.vueController.getIsSetFont()) {
|
|
258017
|
-
this.vueController.hoLocalStorage().loadFontString().then(font => {
|
|
258018
|
-
if (font) {
|
|
258019
|
-
this.vueController.setjsPDFFonts(font);
|
|
258020
|
-
this.vueController.printPromisePDF();
|
|
258021
|
-
}
|
|
258022
|
-
});
|
|
258023
|
-
} else {
|
|
258024
|
-
this.vueController.printPromisePDF();
|
|
258025
|
-
}
|
|
258026
|
-
this.isPrinted = false;
|
|
258027
|
-
}
|
|
258028
|
-
},
|
|
258029
|
-
/**
|
|
258030
|
-
* 打印鼠标选中
|
|
258031
|
-
*/
|
|
258032
|
-
printSelected() {
|
|
258033
|
-
this.printStatus = 'selected';
|
|
258034
|
-
this.isPrinted = true;
|
|
258035
|
-
this.vueController.setEditorStatus(2, 1);
|
|
258036
|
-
},
|
|
258037
|
-
/**
|
|
258038
|
-
* 打印鼠标点击位置
|
|
258039
|
-
*/
|
|
258040
|
-
printCaret() {
|
|
258041
|
-
this.printStatus = 'caret';
|
|
258042
|
-
this.isPrinted = true;
|
|
258043
|
-
this.vueController.setEditorStatus(2, 0);
|
|
258044
|
-
},
|
|
258045
|
-
/**
|
|
258046
|
-
* 续打
|
|
258047
|
-
*/
|
|
258048
|
-
printContinue() {
|
|
258049
|
-
this.printStatus = 'continue';
|
|
258050
|
-
this.isPrinted = true;
|
|
258051
|
-
this.vueController.setEditorStatus(2, 3);
|
|
258052
|
-
},
|
|
258053
|
-
/**
|
|
258054
|
-
* 添加批注
|
|
258055
|
-
*/
|
|
258056
|
-
createControlComment() {
|
|
258057
|
-
if (this.vueController.getDomRange().isEmpty) {
|
|
258058
|
-
this.$message.destroy();
|
|
258059
|
-
this.$message.warn({
|
|
258060
|
-
content: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.490", null, "请选择需要添加批注的内容"),
|
|
258061
|
-
duration: 3,
|
|
258062
|
-
offset: 120
|
|
258063
|
-
});
|
|
258064
|
-
return;
|
|
258065
|
-
} else {
|
|
258066
|
-
this.$emit('setModalStatus', ['comment', 'add', '']);
|
|
258067
|
-
}
|
|
258068
|
-
},
|
|
258069
|
-
/**
|
|
258070
|
-
* 编辑批注
|
|
258071
|
-
*/
|
|
258072
|
-
editComment() {
|
|
258073
|
-
const selectComment = this.vueController.isEditComment('不能编辑其他用户创建的批注');
|
|
258074
|
-
if (selectComment) {
|
|
258075
|
-
this.$emit('setModalStatus', ['comment', 'update', '']);
|
|
258076
|
-
}
|
|
258077
|
-
},
|
|
258078
|
-
/**
|
|
258079
|
-
* 删除批注
|
|
258080
|
-
*/
|
|
258081
|
-
deleteComment() {
|
|
258082
|
-
const selectComment = this.vueController.isEditComment('不能删除其他用户创建的批注');
|
|
258083
|
-
if (selectComment) {
|
|
258084
|
-
this.$emit('insertComments', {
|
|
258085
|
-
type: 'delete',
|
|
258086
|
-
selectedComment: selectComment
|
|
258087
|
-
});
|
|
258088
|
-
}
|
|
258089
|
-
},
|
|
258090
|
-
/**
|
|
258091
|
-
* 删除全部批注
|
|
258092
|
-
*/
|
|
258093
|
-
deleteAllComment() {
|
|
258094
|
-
const commentList = this.vueController.getDocCommentValue();
|
|
258095
|
-
if (commentList.length == 0) {
|
|
258096
|
-
return;
|
|
258097
|
-
}
|
|
258098
|
-
const userInfo = this.vueController.getUserInfoes();
|
|
258099
|
-
const candeleteList = [];
|
|
258100
|
-
commentList.forEach(comment => {
|
|
258101
|
-
if (comment.userID == userInfo.id) {
|
|
258102
|
-
candeleteList.push(comment);
|
|
258103
|
-
}
|
|
258104
|
-
});
|
|
258105
|
-
if (candeleteList.length == 0) {
|
|
258106
|
-
this.$message.error(/*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.489", null, "只能删除自己创建的批注!"));
|
|
258107
|
-
return;
|
|
258108
|
-
}
|
|
258109
|
-
this.$emit('insertComments', {
|
|
258110
|
-
type: 'deleteAll',
|
|
258111
|
-
commentValue: commentList
|
|
258112
|
-
});
|
|
258113
|
-
},
|
|
258114
|
-
/**
|
|
258115
|
-
* 取消删除
|
|
258116
|
-
*/
|
|
258117
|
-
cancelDelete() {
|
|
258118
|
-
this.vueController.cancelDel();
|
|
258119
|
-
},
|
|
258120
|
-
/**
|
|
258121
|
-
* 另存为
|
|
258122
|
-
*/
|
|
258123
|
-
saveAsFile({
|
|
258124
|
-
key: fileType
|
|
258125
|
-
}) {
|
|
258126
|
-
const fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
|
|
258127
|
-
if (fileType == 'pdf') {
|
|
258128
|
-
this.vueController.saveAsPDF('', 'pdf', false);
|
|
258129
|
-
} else if (fileType == 'html(svg)') {
|
|
258130
|
-
this.vueController.saveAsPDF('', 'html', false);
|
|
258131
|
-
} else if (fileType == 'html(html)') {
|
|
258132
|
-
let fileName = this.vueController.getDocTitle();
|
|
258133
|
-
const file = this.vueController.getFileHtml();
|
|
258134
|
-
this.downloadFile(file, fileName + '.html', 'html');
|
|
258135
|
-
} else {
|
|
258136
|
-
const file = this.vueController.saveAsFile(fileType, true);
|
|
258137
|
-
this.downloadFile(file, fileName, fileType);
|
|
258138
|
-
}
|
|
258139
|
-
},
|
|
258140
|
-
/**
|
|
258141
|
-
* 下载文件
|
|
258142
|
-
*/
|
|
258143
|
-
downloadFile(file, fileName, fileType) {
|
|
258144
|
-
let name = fileName;
|
|
258145
|
-
let type = fileType;
|
|
258146
|
-
if (fileType == 'plain') {
|
|
258147
|
-
type = '.txt';
|
|
258148
|
-
name += type;
|
|
258149
|
-
} else if (fileType == 'json') {
|
|
258150
|
-
type = '.json';
|
|
258151
|
-
name += type;
|
|
258152
|
-
}
|
|
258153
|
-
const url = window.URL.createObjectURL(new Blob([file], {
|
|
258154
|
-
type: `text/${fileType}`
|
|
258155
|
-
}));
|
|
258156
|
-
const link = document.createElement('a');
|
|
258157
|
-
link.style.display = 'none';
|
|
258158
|
-
link.href = url;
|
|
258159
|
-
link.setAttribute('download', name);
|
|
258160
|
-
document.body.appendChild(link);
|
|
258161
|
-
link.click();
|
|
258162
|
-
this.$nextTick(() => link.remove());
|
|
258163
|
-
}
|
|
258164
|
-
}
|
|
258165
|
-
});
|
|
258166
|
-
;// ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js
|
|
258167
|
-
|
|
258168
|
-
/* harmony default export */ var entry_lib_toolbar_ToolBarvue_type_script_lang_js = (entry_lib_ToolBarvue_type_script_lang_js);
|
|
258169
|
-
|
|
258170
|
-
;// ./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
|
|
258171
|
-
// extracted by mini-css-extract-plugin
|
|
258172
|
-
|
|
258173
|
-
;// ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=0caaf4d5&prod&lang=less
|
|
258174
|
-
|
|
258175
|
-
;// ./src/components/toolbar/ToolBar.vue
|
|
258176
|
-
|
|
258177
|
-
|
|
258178
|
-
|
|
258179
|
-
;
|
|
258180
|
-
|
|
258181
|
-
|
|
258182
|
-
/* normalize component */
|
|
258183
|
-
|
|
258184
|
-
var entry_lib_ToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
|
|
258185
|
-
entry_lib_toolbar_ToolBarvue_type_script_lang_js,
|
|
258186
|
-
entry_lib_ToolBarvue_type_template_id_0caaf4d5_render,
|
|
258187
|
-
entry_lib_ToolBarvue_type_template_id_0caaf4d5_staticRenderFns,
|
|
258188
|
-
false,
|
|
258189
|
-
null,
|
|
258190
|
-
null,
|
|
258191
|
-
null
|
|
258192
|
-
|
|
258193
|
-
)
|
|
258194
|
-
|
|
258195
|
-
/* harmony default export */ var entry_lib_ToolBar = (entry_lib_ToolBar_component.exports);
|
|
258196
|
-
;// ./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
|
|
258197
|
-
var entry_lib_HoToolBarvue_type_template_id_48b11b90_render = function render() {
|
|
258198
|
-
var _vm = this,
|
|
258199
|
-
_c = _vm._self._c;
|
|
258200
|
-
return _c('div', {
|
|
258201
|
-
class: _vm.tabStyle === 'tab' ? 'ho-emr-toolbar-box ho-emr-toolbar-box-tab' : 'ho-emr-toolbar-box ho-emr-toolbar-box-select'
|
|
258202
|
-
}, [_c('div', {
|
|
258203
|
-
staticClass: "ho-emr-toolbar"
|
|
258204
|
-
}, [_vm._t("beforeBrowse"), _vm._t("beforeEdit"), _c('ToolBarChild', {
|
|
258205
|
-
attrs: {
|
|
258206
|
-
"editJson": _vm.defaultEditJson,
|
|
258207
|
-
"vueController": _vm.vueController,
|
|
258208
|
-
"uploadImageParams": _vm.uploadImageParams
|
|
258209
|
-
},
|
|
258210
|
-
on: {
|
|
258211
|
-
"setModalStatus": _vm.setModalStatus
|
|
258212
|
-
}
|
|
258213
|
-
}), _vm._t("afterEdit"), _c('tool-control', {
|
|
258214
|
-
attrs: {
|
|
258215
|
-
"insert": _vm.defaultEditJson,
|
|
258216
|
-
"vueController": _vm.vueController,
|
|
258217
|
-
"uploadImageParams": _vm.uploadImageParams
|
|
258218
|
-
},
|
|
258219
|
-
on: {
|
|
258220
|
-
"setModalStatus": _vm.setModalStatus
|
|
258221
|
-
},
|
|
258222
|
-
scopedSlots: _vm._u([{
|
|
258223
|
-
key: "hoInsertItem",
|
|
258224
|
-
fn: function () {
|
|
258225
|
-
return [_vm._t("insideInsert")];
|
|
258226
|
-
},
|
|
258227
|
-
proxy: true
|
|
258228
|
-
}], null, true)
|
|
258229
|
-
}), _c('tool-table', {
|
|
258230
|
-
attrs: {
|
|
258231
|
-
"table": _vm.defaultEditJson,
|
|
258232
|
-
"tableProperty": {
|
|
258233
|
-
canAddRow: _vm.hoEditorProvider.textStyle.canAddRow,
|
|
258234
|
-
canDeleteRow: _vm.hoEditorProvider.textStyle.canDeleteRow
|
|
258235
|
-
},
|
|
258236
|
-
"vueController": _vm.vueController
|
|
258237
|
-
},
|
|
258238
|
-
on: {
|
|
258239
|
-
"setModalStatus": _vm.setModalStatus
|
|
258240
|
-
},
|
|
258241
|
-
scopedSlots: _vm._u([{
|
|
258242
|
-
key: "hoTableItem",
|
|
258243
|
-
fn: function () {
|
|
258244
|
-
return [_vm._t("insideTable")];
|
|
258245
|
-
},
|
|
258246
|
-
proxy: true
|
|
258247
|
-
}], null, true)
|
|
258248
|
-
}), _vm._t("afterReview")], 2)]);
|
|
258249
|
-
};
|
|
258250
|
-
var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
258251
|
-
|
|
258252
|
-
;// ./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
|
|
258253
|
-
|
|
258254
|
-
|
|
258255
|
-
|
|
258256
|
-
|
|
258257
|
-
|
|
258258
|
-
|
|
258259
|
-
|
|
258260
|
-
|
|
258261
|
-
|
|
258262
|
-
|
|
258263
|
-
|
|
258264
|
-
|
|
258265
|
-
|
|
258266
|
-
|
|
258267
|
-
|
|
258268
|
-
|
|
258269
|
-
|
|
258270
|
-
|
|
258271
|
-
|
|
258272
|
-
|
|
258273
|
-
|
|
258274
|
-
|
|
258275
|
-
|
|
258276
|
-
|
|
258277
|
-
|
|
258278
|
-
|
|
258279
|
-
/* harmony default export */ var entry_lib_HoToolBarvue_type_script_lang_js = ({
|
|
258280
|
-
name: 'HoToolBar',
|
|
258281
|
-
components: {
|
|
258282
|
-
HoMedicalExpression: entry_lib_HoMedicalExpression,
|
|
258283
|
-
ToolBarChild: entry_lib_ToolBarChild,
|
|
258284
|
-
ToolControl: entry_lib_ToolControl,
|
|
258285
|
-
ToolTable: entry_lib_ToolTable
|
|
258286
|
-
},
|
|
258287
|
-
inject: {
|
|
258288
|
-
hoEditorProvider: {
|
|
258289
|
-
default: () => {
|
|
258290
|
-
return {};
|
|
258291
|
-
}
|
|
258292
|
-
}
|
|
258293
|
-
},
|
|
258294
|
-
props: {
|
|
258295
|
-
vueController: {
|
|
258296
|
-
required: true
|
|
258297
|
-
},
|
|
258298
|
-
tabStatus: {
|
|
258299
|
-
default: 'ho-edit'
|
|
258300
|
-
},
|
|
258301
|
-
editJson: {
|
|
258302
|
-
default: () => {
|
|
258303
|
-
return {};
|
|
258304
|
-
}
|
|
258305
|
-
},
|
|
258306
|
-
browseJson: {
|
|
258307
|
-
default: () => {
|
|
258308
|
-
return {};
|
|
258309
|
-
}
|
|
258310
|
-
},
|
|
258311
|
-
reviewJson: {
|
|
258312
|
-
default: () => {
|
|
258313
|
-
return {};
|
|
258314
|
-
}
|
|
258315
|
-
},
|
|
258316
|
-
toolbarParams: {
|
|
258317
|
-
default: () => {
|
|
258318
|
-
return {};
|
|
258319
|
-
}
|
|
258320
|
-
},
|
|
258321
|
-
uploadImageParams: {
|
|
258322
|
-
default: () => {
|
|
258323
|
-
return {};
|
|
258324
|
-
}
|
|
258325
|
-
},
|
|
258326
|
-
tabStyle: {
|
|
258327
|
-
default: 'tab' // select
|
|
258328
|
-
}
|
|
258329
|
-
},
|
|
258330
|
-
// provide() {
|
|
258331
|
-
// getCustomProperty: () => {
|
|
258332
|
-
// return this.customProperty;
|
|
258333
|
-
// },
|
|
258334
|
-
// },
|
|
258335
|
-
data() {
|
|
258336
|
-
return {
|
|
258337
|
-
printModal: false,
|
|
258338
|
-
isPrinted: false,
|
|
258339
|
-
ctrlS: false,
|
|
258340
|
-
printStatus: '',
|
|
258341
|
-
printModal: false,
|
|
258342
|
-
reviewLevel: {
|
|
258343
|
-
limit: 1,
|
|
258344
|
-
color: ['#f19191', '#8198f7', '#7fd27f'],
|
|
258345
|
-
text: ['一级质控', '二级质控', '三级质控']
|
|
258346
|
-
},
|
|
258347
|
-
userInfoes: null,
|
|
258348
|
-
toolMenuOpenPathTest: [],
|
|
258349
|
-
defaultToolBarParams: {
|
|
258350
|
-
'ho-browse': 5,
|
|
258351
|
-
// 浏览状态
|
|
258352
|
-
'ho-edit': 1,
|
|
258353
|
-
// 编辑状态
|
|
258354
|
-
'ho-insert': 1,
|
|
258355
|
-
// 编辑状态 --- 插入元素
|
|
258500
|
+
// 编辑状态 --- 插入
|
|
258356
258501
|
'ho-table': 1,
|
|
258357
258502
|
// 编辑状态 --- 表格相关
|
|
258358
258503
|
'ho-review': 4 // 审阅状态
|
|
@@ -258362,28 +258507,33 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258362
258507
|
'ho-edit': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.5", null, "编辑模式"),
|
|
258363
258508
|
'ho-insert': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.4", null, "插入"),
|
|
258364
258509
|
'ho-table': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.3", null, "表格"),
|
|
258365
|
-
'ho-review':
|
|
258510
|
+
'ho-review': /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式")
|
|
258366
258511
|
},
|
|
258367
258512
|
defaultToolBarParamsText: [{
|
|
258368
258513
|
value: 'ho-browse',
|
|
258369
|
-
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
|
|
258370
258516
|
}, {
|
|
258371
258517
|
value: 'ho-edit',
|
|
258372
|
-
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
|
|
258373
258520
|
}, {
|
|
258374
258521
|
value: 'ho-insert',
|
|
258375
|
-
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
|
|
258376
258524
|
}, {
|
|
258377
258525
|
value: 'ho-table',
|
|
258378
|
-
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
|
|
258379
258528
|
}, {
|
|
258380
258529
|
value: 'ho-review',
|
|
258381
|
-
title:
|
|
258530
|
+
title: /*#__PURE__*/(0,entry_lib_i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.2", null, "审阅模式"),
|
|
258531
|
+
key: 5
|
|
258382
258532
|
}],
|
|
258383
258533
|
tabKey: '',
|
|
258384
258534
|
defaultReviewJson: {
|
|
258385
258535
|
isReview: true,
|
|
258386
|
-
//
|
|
258536
|
+
// 审阅
|
|
258387
258537
|
clearSelectSign: true,
|
|
258388
258538
|
// 清除选中区痕迹
|
|
258389
258539
|
clearAllSign: true,
|
|
@@ -258404,7 +258554,7 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258404
258554
|
},
|
|
258405
258555
|
defaultBrowseJson: {
|
|
258406
258556
|
isBrowse: true,
|
|
258407
|
-
//
|
|
258557
|
+
// 浏览
|
|
258408
258558
|
saveAsFile: true,
|
|
258409
258559
|
// 另存为 xml/html/txt
|
|
258410
258560
|
printed: true,
|
|
@@ -258419,9 +258569,9 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258419
258569
|
isFooter: true,
|
|
258420
258570
|
// 是否显示 footer
|
|
258421
258571
|
isEdit: true,
|
|
258422
|
-
//
|
|
258572
|
+
// 编辑
|
|
258423
258573
|
isInsertElement: true,
|
|
258424
|
-
//
|
|
258574
|
+
// 插入
|
|
258425
258575
|
isInsertTable: true,
|
|
258426
258576
|
// 插入表格
|
|
258427
258577
|
|
|
@@ -258562,6 +258712,8 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258562
258712
|
// 查找 / 替换
|
|
258563
258713
|
updateDocument: false,
|
|
258564
258714
|
// 更新说明
|
|
258715
|
+
historylog: false,
|
|
258716
|
+
// 更新说明
|
|
258565
258717
|
test: false // 测试
|
|
258566
258718
|
}
|
|
258567
258719
|
};
|
|
@@ -258643,100 +258795,87 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258643
258795
|
}
|
|
258644
258796
|
},
|
|
258645
258797
|
mounted() {
|
|
258646
|
-
|
|
258647
|
-
|
|
258648
|
-
|
|
258649
|
-
|
|
258650
|
-
|
|
258651
|
-
|
|
258652
|
-
|
|
258653
|
-
|
|
258654
|
-
|
|
258655
|
-
|
|
258656
|
-
|
|
258657
|
-
|
|
258658
|
-
|
|
258659
|
-
|
|
258660
|
-
|
|
258661
|
-
|
|
258662
|
-
|
|
258663
|
-
|
|
258664
|
-
// if (this.browseJson && this.browseJson !== null) {
|
|
258665
|
-
// this.defaultBrowseJson = {
|
|
258666
|
-
// ...this.defaultBrowseJson,
|
|
258667
|
-
// ...this.browseJson,
|
|
258668
|
-
// };
|
|
258669
|
-
// }
|
|
258670
|
-
// this.$nextTick(() => {
|
|
258671
|
-
// this.handleToolbarParams(true);
|
|
258672
|
-
// });
|
|
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
|
+
});
|
|
258673
258816
|
},
|
|
258674
258817
|
methods: {
|
|
258675
258818
|
handleToolbarParams(once) {
|
|
258676
|
-
|
|
258677
|
-
|
|
258678
|
-
|
|
258679
|
-
|
|
258680
|
-
|
|
258681
|
-
|
|
258682
|
-
|
|
258683
|
-
|
|
258684
|
-
|
|
258685
|
-
|
|
258686
|
-
|
|
258687
|
-
|
|
258688
|
-
|
|
258689
|
-
|
|
258690
|
-
|
|
258691
|
-
|
|
258692
|
-
|
|
258693
|
-
|
|
258694
|
-
|
|
258695
|
-
|
|
258696
|
-
|
|
258697
|
-
|
|
258698
|
-
|
|
258699
|
-
|
|
258700
|
-
|
|
258701
|
-
|
|
258702
|
-
|
|
258703
|
-
|
|
258704
|
-
|
|
258705
|
-
|
|
258706
|
-
|
|
258707
|
-
|
|
258708
|
-
|
|
258709
|
-
|
|
258710
|
-
|
|
258711
|
-
|
|
258712
|
-
|
|
258713
|
-
|
|
258714
|
-
|
|
258715
|
-
|
|
258716
|
-
|
|
258717
|
-
|
|
258718
|
-
|
|
258719
|
-
|
|
258720
|
-
|
|
258721
|
-
|
|
258722
|
-
|
|
258723
|
-
|
|
258724
|
-
|
|
258725
|
-
|
|
258726
|
-
|
|
258727
|
-
|
|
258728
|
-
|
|
258729
|
-
|
|
258730
|
-
|
|
258731
|
-
|
|
258732
|
-
|
|
258733
|
-
|
|
258734
|
-
|
|
258735
|
-
|
|
258736
|
-
// this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
|
|
258737
|
-
// }
|
|
258738
|
-
// }
|
|
258739
|
-
// 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();
|
|
258740
258879
|
},
|
|
258741
258880
|
closeToolMenusTest(e) {
|
|
258742
258881
|
if (this.toolMenuOpenPathTest.length > 0) {
|
|
@@ -258786,7 +258925,7 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258786
258925
|
'ho-edit': 1,
|
|
258787
258926
|
// 编辑状态
|
|
258788
258927
|
'ho-insert': 1,
|
|
258789
|
-
// 编辑状态 ---
|
|
258928
|
+
// 编辑状态 --- 插入
|
|
258790
258929
|
'ho-table': 1,
|
|
258791
258930
|
// 编辑状态 --- 表格相关
|
|
258792
258931
|
'ho-review': 4 // 审阅状态
|
|
@@ -258948,13 +259087,15 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258948
259087
|
const fileName = this.vueController.getDocTitle() ? this.vueController.getDocTitle() : '电子病历文档';
|
|
258949
259088
|
if (fileType == 'pdf') {
|
|
258950
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');
|
|
258951
259096
|
} else {
|
|
258952
|
-
|
|
258953
|
-
|
|
258954
|
-
this.downloadFile(file, fileName, fileType);
|
|
258955
|
-
} else {
|
|
258956
|
-
this.vueController.saveAsPDF('', 'html', false);
|
|
258957
|
-
}
|
|
259097
|
+
const file = this.vueController.saveAsFile(fileType, true);
|
|
259098
|
+
this.downloadFile(file, fileName, fileType);
|
|
258958
259099
|
}
|
|
258959
259100
|
},
|
|
258960
259101
|
/**
|
|
@@ -258983,14 +259124,465 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
258983
259124
|
}
|
|
258984
259125
|
}
|
|
258985
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
|
+
}));
|
|
258986
259578
|
;// ./src/components/toolbar/HoToolBar.vue?vue&type=script&lang=js
|
|
258987
259579
|
|
|
258988
259580
|
/* harmony default export */ var entry_lib_toolbar_HoToolBarvue_type_script_lang_js = (entry_lib_HoToolBarvue_type_script_lang_js);
|
|
258989
259581
|
|
|
258990
|
-
;// ./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=
|
|
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
|
|
258991
259583
|
// extracted by mini-css-extract-plugin
|
|
258992
259584
|
|
|
258993
|
-
;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=
|
|
259585
|
+
;// ./src/components/toolbar/HoToolBar.vue?vue&type=style&index=0&id=02730ce0&prod&lang=less
|
|
258994
259586
|
|
|
258995
259587
|
;// ./src/components/toolbar/HoToolBar.vue
|
|
258996
259588
|
|
|
@@ -259003,8 +259595,8 @@ var entry_lib_HoToolBarvue_type_template_id_48b11b90_staticRenderFns = [];
|
|
|
259003
259595
|
|
|
259004
259596
|
var entry_lib_HoToolBar_component = (0,entry_lib_componentNormalizer/* default */.A)(
|
|
259005
259597
|
entry_lib_toolbar_HoToolBarvue_type_script_lang_js,
|
|
259006
|
-
|
|
259007
|
-
|
|
259598
|
+
entry_lib_HoToolBarvue_type_template_id_02730ce0_render,
|
|
259599
|
+
entry_lib_HoToolBarvue_type_template_id_02730ce0_staticRenderFns,
|
|
259008
259600
|
false,
|
|
259009
259601
|
null,
|
|
259010
259602
|
null,
|