bl-common-vue3 3.8.34 → 3.8.35

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.
@@ -184,13 +184,6 @@ var update = add("64c97969", content, true, {"sourceMap":false,"shadowMode":fals
184
184
 
185
185
  /***/ }),
186
186
 
187
- /***/ "0ceb":
188
- /***/ (function(module, exports) {
189
-
190
- module.exports = require("tinymce/plugins/media");
191
-
192
- /***/ }),
193
-
194
187
  /***/ "0d04":
195
188
  /***/ (function(module, exports, __webpack_require__) {
196
189
 
@@ -6219,13 +6212,6 @@ var update = add("1ef13ae8", content, true, {"sourceMap":false,"shadowMode":fals
6219
6212
 
6220
6213
  /***/ }),
6221
6214
 
6222
- /***/ "1c81":
6223
- /***/ (function(module, exports) {
6224
-
6225
- module.exports = require("tinymce/plugins/table");
6226
-
6227
- /***/ }),
6228
-
6229
6215
  /***/ "1d06":
6230
6216
  /***/ (function(module) {
6231
6217
 
@@ -6523,13 +6509,6 @@ const ROOM_TYPE_ICONS = {
6523
6509
  };
6524
6510
 
6525
6511
 
6526
- /***/ }),
6527
-
6528
- /***/ "2438":
6529
- /***/ (function(module, exports) {
6530
-
6531
- module.exports = require("tinymce/plugins/help");
6532
-
6533
6512
  /***/ }),
6534
6513
 
6535
6514
  /***/ "24fb":
@@ -7690,13 +7669,6 @@ const __exports__ = /*#__PURE__*/exportHelper_default()(TimePickervue_type_scrip
7690
7669
 
7691
7670
  /***/ }),
7692
7671
 
7693
- /***/ "274a":
7694
- /***/ (function(module, exports) {
7695
-
7696
- module.exports = require("tinymce/plugins/image");
7697
-
7698
- /***/ }),
7699
-
7700
7672
  /***/ "2822":
7701
7673
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7702
7674
 
@@ -8030,13 +8002,6 @@ let CertCtl;
8030
8002
 
8031
8003
  /***/ }),
8032
8004
 
8033
- /***/ "3eb0":
8034
- /***/ (function(module, exports) {
8035
-
8036
- module.exports = require("tinymce/plugins/preview");
8037
-
8038
- /***/ }),
8039
-
8040
8005
  /***/ "413a":
8041
8006
  /***/ (function(module, exports, __webpack_require__) {
8042
8007
 
@@ -8098,20 +8063,6 @@ if(content.locals) module.exports = content.locals;
8098
8063
  var add = __webpack_require__("499e").default
8099
8064
  var update = add("5e66eab3", content, true, {"sourceMap":false,"shadowMode":false});
8100
8065
 
8101
- /***/ }),
8102
-
8103
- /***/ "42bb":
8104
- /***/ (function(module, exports, __webpack_require__) {
8105
-
8106
- // Imports
8107
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
8108
- exports = ___CSS_LOADER_API_IMPORT___(false);
8109
- // Module
8110
- exports.push([module.i, ".primary-color-text[data-v-221497e4]{color:#2681f3}[data-v-221497e4] .tox.tox-tinymce{border:1px solid #d9d9d9!important;border-radius:4px!important}[data-v-221497e4] .tox .tox-promotion-link{display:none!important}[data-v-221497e4] .tox.tox-tinymce-aux{z-index:999!important}", ""]);
8111
- // Exports
8112
- module.exports = exports;
8113
-
8114
-
8115
8066
  /***/ }),
8116
8067
 
8117
8068
  /***/ "4410":
@@ -8634,17 +8585,6 @@ exports.push([module.i, ".primary-color-text[data-v-0ce59632]{color:#2681f3}.use
8634
8585
  module.exports = exports;
8635
8586
 
8636
8587
 
8637
- /***/ }),
8638
-
8639
- /***/ "5538":
8640
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8641
-
8642
- "use strict";
8643
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_221497e4_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7a0e");
8644
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_221497e4_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_221497e4_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);
8645
- /* unused harmony reexport * */
8646
-
8647
-
8648
8588
  /***/ }),
8649
8589
 
8650
8590
  /***/ "561d":
@@ -8740,13 +8680,6 @@ module.exports = exports;
8740
8680
 
8741
8681
  /***/ }),
8742
8682
 
8743
- /***/ "5b1f":
8744
- /***/ (function(module, exports) {
8745
-
8746
- module.exports = require("tinymce/plugins/visualblocks");
8747
-
8748
- /***/ }),
8749
-
8750
8683
  /***/ "5bfb":
8751
8684
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8752
8685
 
@@ -8834,13 +8767,6 @@ module.exports = require("qrcode.vue");
8834
8767
 
8835
8768
  /***/ }),
8836
8769
 
8837
- /***/ "670d":
8838
- /***/ (function(module, exports) {
8839
-
8840
- module.exports = require("tinymce/plugins/code");
8841
-
8842
- /***/ }),
8843
-
8844
8770
  /***/ "67e9":
8845
8771
  /***/ (function(module, exports, __webpack_require__) {
8846
8772
 
@@ -8888,13 +8814,6 @@ exports.default = (sfc, props) => {
8888
8814
  };
8889
8815
 
8890
8816
 
8891
- /***/ }),
8892
-
8893
- /***/ "6cb7":
8894
- /***/ (function(module, exports) {
8895
-
8896
- module.exports = require("tinymce/plugins/wordcount");
8897
-
8898
8817
  /***/ }),
8899
8818
 
8900
8819
  /***/ "6e77":
@@ -8964,13 +8883,6 @@ exports.push([module.i, ".primary-color-text[data-v-6cb57378]{color:#2681f3}.foo
8964
8883
  module.exports = exports;
8965
8884
 
8966
8885
 
8967
- /***/ }),
8968
-
8969
- /***/ "72ec":
8970
- /***/ (function(module, exports) {
8971
-
8972
- module.exports = require("tinymce/icons/default/icons");
8973
-
8974
8886
  /***/ }),
8975
8887
 
8976
8888
  /***/ "740b":
@@ -9146,29 +9058,6 @@ exports.push([module.i, ".primary-color-text[data-v-2da90e15]{color:#2681f3}.pro
9146
9058
  module.exports = exports;
9147
9059
 
9148
9060
 
9149
- /***/ }),
9150
-
9151
- /***/ "79e2":
9152
- /***/ (function(module, exports) {
9153
-
9154
- module.exports = require("tinymce/plugins/fullscreen");
9155
-
9156
- /***/ }),
9157
-
9158
- /***/ "7a0e":
9159
- /***/ (function(module, exports, __webpack_require__) {
9160
-
9161
- // style-loader: Adds some css to the DOM by adding a <style> tag
9162
-
9163
- // load the styles
9164
- var content = __webpack_require__("42bb");
9165
- if(content.__esModule) content = content.default;
9166
- if(typeof content === 'string') content = [[module.i, content, '']];
9167
- if(content.locals) module.exports = content.locals;
9168
- // add the styles to the DOM
9169
- var add = __webpack_require__("499e").default
9170
- var update = add("74e2f08b", content, true, {"sourceMap":false,"shadowMode":false});
9171
-
9172
9061
  /***/ }),
9173
9062
 
9174
9063
  /***/ "7ab6":
@@ -9226,13 +9115,6 @@ var update = add("1599bb3d", content, true, {"sourceMap":false,"shadowMode":fals
9226
9115
 
9227
9116
  /***/ }),
9228
9117
 
9229
- /***/ "81a5":
9230
- /***/ (function(module, exports) {
9231
-
9232
- module.exports = require("tinymce/plugins/visualchars");
9233
-
9234
- /***/ }),
9235
-
9236
9118
  /***/ "81ff":
9237
9119
  /***/ (function(module, exports, __webpack_require__) {
9238
9120
 
@@ -9285,13 +9167,6 @@ var update = add("1a060f82", content, true, {"sourceMap":false,"shadowMode":fals
9285
9167
  /* unused harmony reexport * */
9286
9168
 
9287
9169
 
9288
- /***/ }),
9289
-
9290
- /***/ "84e2":
9291
- /***/ (function(module, exports) {
9292
-
9293
- module.exports = require("tinymce/plugins/link");
9294
-
9295
9170
  /***/ }),
9296
9171
 
9297
9172
  /***/ "8587":
@@ -9420,13 +9295,6 @@ var update = add("50c65dbd", content, true, {"sourceMap":false,"shadowMode":fals
9420
9295
 
9421
9296
  /***/ }),
9422
9297
 
9423
- /***/ "905a":
9424
- /***/ (function(module, exports) {
9425
-
9426
- module.exports = require("@tinymce/tinymce-vue");
9427
-
9428
- /***/ }),
9429
-
9430
9298
  /***/ "9137":
9431
9299
  /***/ (function(module, exports, __webpack_require__) {
9432
9300
 
@@ -10818,13 +10686,6 @@ const __exports__ = /*#__PURE__*/exportHelper_default()(ExportComponentsvue_type
10818
10686
 
10819
10687
  /***/ }),
10820
10688
 
10821
- /***/ "a2fc":
10822
- /***/ (function(module, exports) {
10823
-
10824
- module.exports = require("tinymce/themes/silver");
10825
-
10826
- /***/ }),
10827
-
10828
10689
  /***/ "a2ff":
10829
10690
  /***/ (function(module, exports, __webpack_require__) {
10830
10691
 
@@ -10984,13 +10845,6 @@ var update = add("0f48fa0f", content, true, {"sourceMap":false,"shadowMode":fals
10984
10845
 
10985
10846
  /***/ }),
10986
10847
 
10987
- /***/ "b43c":
10988
- /***/ (function(module, exports) {
10989
-
10990
- module.exports = require("tinymce/plugins/lists");
10991
-
10992
- /***/ }),
10993
-
10994
10848
  /***/ "b4b2":
10995
10849
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10996
10850
 
@@ -12306,13 +12160,6 @@ module.exports = exports;
12306
12160
  /* unused harmony reexport * */
12307
12161
 
12308
12162
 
12309
- /***/ }),
12310
-
12311
- /***/ "d7d7":
12312
- /***/ (function(module, exports) {
12313
-
12314
- module.exports = require("tinymce/tinymce");
12315
-
12316
12163
  /***/ }),
12317
12164
 
12318
12165
  /***/ "da0d":
@@ -12351,13 +12198,6 @@ var update = add("70dfa3a7", content, true, {"sourceMap":false,"shadowMode":fals
12351
12198
  /* unused harmony reexport * */
12352
12199
 
12353
12200
 
12354
- /***/ }),
12355
-
12356
- /***/ "dd1e":
12357
- /***/ (function(module, exports) {
12358
-
12359
- module.exports = require("tinymce/models/dom/model");
12360
-
12361
12201
  /***/ }),
12362
12202
 
12363
12203
  /***/ "dd20":
@@ -14481,7 +14321,6 @@ __webpack_require__.d(__webpack_exports__, "BlMobileAnnexUpload", function() { r
14481
14321
  __webpack_require__.d(__webpack_exports__, "SelectColor", function() { return /* reexport */ SelectColor; });
14482
14322
  __webpack_require__.d(__webpack_exports__, "PublicExtensionField", function() { return /* reexport */ PublicExtensionField; });
14483
14323
  __webpack_require__.d(__webpack_exports__, "BlCreateChatBtn", function() { return /* reexport */ createChatBtn; });
14484
- __webpack_require__.d(__webpack_exports__, "BlTinymceEditor", function() { return /* reexport */ BlTinymceEditor; });
14485
14324
  __webpack_require__.d(__webpack_exports__, "install", function() { return /* reexport */ install; });
14486
14325
 
14487
14326
  // NAMESPACE OBJECT: ./src/components/components.js
@@ -14533,7 +14372,6 @@ __webpack_require__.d(components_namespaceObject, "BlMobileAnnexUpload", functio
14533
14372
  __webpack_require__.d(components_namespaceObject, "SelectColor", function() { return SelectColor; });
14534
14373
  __webpack_require__.d(components_namespaceObject, "PublicExtensionField", function() { return PublicExtensionField; });
14535
14374
  __webpack_require__.d(components_namespaceObject, "BlCreateChatBtn", function() { return createChatBtn; });
14536
- __webpack_require__.d(components_namespaceObject, "BlTinymceEditor", function() { return BlTinymceEditor; });
14537
14375
 
14538
14376
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
14539
14377
  // This file is imported into lib/wc client bundles.
@@ -45879,434 +45717,6 @@ function createChatBtnvue_type_template_id_19009b44_render(_ctx, _cache, $props,
45879
45717
  const createChatBtn_exports_ = /*#__PURE__*/exportHelper_default()(createChatBtnvue_type_script_lang_js, [['render',createChatBtnvue_type_template_id_19009b44_render]])
45880
45718
 
45881
45719
  /* harmony default export */ var createChatBtn = (createChatBtn_exports_);
45882
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/BlTinymceEditor/index.vue?vue&type=template&id=221497e4&scoped=true
45883
-
45884
- function BlTinymceEditorvue_type_template_id_221497e4_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
45885
- const _component_TinymceVueEditor = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["resolveComponent"])("TinymceVueEditor");
45886
- return Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["createElementBlock"])("div", {
45887
- class: "tiny-mce-editor",
45888
- key: _ctx.refreshKey
45889
- }, [Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["createVNode"])(_component_TinymceVueEditor, {
45890
- modelValue: _ctx.content,
45891
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.content = $event),
45892
- init: _ctx.tinyInitConfig,
45893
- disabled: _ctx.disabled
45894
- }, null, 8, ["modelValue", "init", "disabled"])]);
45895
- }
45896
- // CONCATENATED MODULE: ./src/components/BlTinymceEditor/index.vue?vue&type=template&id=221497e4&scoped=true
45897
-
45898
- // EXTERNAL MODULE: external {"commonjs":"tinymce/tinymce","commonjs2":"tinymce/tinymce","amd":"tinymce/tinymce","root":"tinymce"}
45899
- var tinymce_root_tinymce_ = __webpack_require__("d7d7");
45900
- var tinymce_root_tinymce_default = /*#__PURE__*/__webpack_require__.n(tinymce_root_tinymce_);
45901
-
45902
- // EXTERNAL MODULE: external {"commonjs":"@tinymce/tinymce-vue","commonjs2":"@tinymce/tinymce-vue","amd":"@tinymce/tinymce-vue","root":"@tinymce/tinymce-vue"}
45903
- var tinymce_vue_ = __webpack_require__("905a");
45904
- var tinymce_vue_default = /*#__PURE__*/__webpack_require__.n(tinymce_vue_);
45905
-
45906
- // EXTERNAL MODULE: external {"commonjs":"tinymce/icons/default/icons","commonjs2":"tinymce/icons/default/icons","amd":"tinymce/icons/default/icons","root":"tinymce"}
45907
- var icons_root_tinymce_ = __webpack_require__("72ec");
45908
-
45909
- // EXTERNAL MODULE: external {"commonjs":"tinymce/themes/silver","commonjs2":"tinymce/themes/silver","amd":"tinymce/themes/silver","root":"tinymce"}
45910
- var silver_root_tinymce_ = __webpack_require__("a2fc");
45911
-
45912
- // EXTERNAL MODULE: external {"commonjs":"tinymce/models/dom/model","commonjs2":"tinymce/models/dom/model","amd":"tinymce/models/dom/model","root":"tinymce"}
45913
- var model_root_tinymce_ = __webpack_require__("dd1e");
45914
-
45915
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/image","commonjs2":"tinymce/plugins/image","amd":"tinymce/plugins/image","root":"tinymce"}
45916
- var image_root_tinymce_ = __webpack_require__("274a");
45917
-
45918
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/table","commonjs2":"tinymce/plugins/table","amd":"tinymce/plugins/table","root":"tinymce"}
45919
- var table_root_tinymce_ = __webpack_require__("1c81");
45920
-
45921
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/lists","commonjs2":"tinymce/plugins/lists","amd":"tinymce/plugins/lists","root":"tinymce"}
45922
- var lists_root_tinymce_ = __webpack_require__("b43c");
45923
-
45924
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/link","commonjs2":"tinymce/plugins/link","amd":"tinymce/plugins/link","root":"tinymce"}
45925
- var link_root_tinymce_ = __webpack_require__("84e2");
45926
-
45927
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/help","commonjs2":"tinymce/plugins/help","amd":"tinymce/plugins/help","root":"tinymce"}
45928
- var help_root_tinymce_ = __webpack_require__("2438");
45929
-
45930
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/wordcount","commonjs2":"tinymce/plugins/wordcount","amd":"tinymce/plugins/wordcount","root":"tinymce"}
45931
- var wordcount_root_tinymce_ = __webpack_require__("6cb7");
45932
-
45933
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/code","commonjs2":"tinymce/plugins/code","amd":"tinymce/plugins/code","root":"tinymce"}
45934
- var code_root_tinymce_ = __webpack_require__("670d");
45935
-
45936
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/preview","commonjs2":"tinymce/plugins/preview","amd":"tinymce/plugins/preview","root":"tinymce"}
45937
- var preview_root_tinymce_ = __webpack_require__("3eb0");
45938
-
45939
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/visualblocks","commonjs2":"tinymce/plugins/visualblocks","amd":"tinymce/plugins/visualblocks","root":"tinymce"}
45940
- var visualblocks_root_tinymce_ = __webpack_require__("5b1f");
45941
-
45942
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/visualchars","commonjs2":"tinymce/plugins/visualchars","amd":"tinymce/plugins/visualchars","root":"tinymce"}
45943
- var visualchars_root_tinymce_ = __webpack_require__("81a5");
45944
-
45945
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/fullscreen","commonjs2":"tinymce/plugins/fullscreen","amd":"tinymce/plugins/fullscreen","root":"tinymce"}
45946
- var fullscreen_root_tinymce_ = __webpack_require__("79e2");
45947
-
45948
- // EXTERNAL MODULE: external {"commonjs":"tinymce/plugins/media","commonjs2":"tinymce/plugins/media","amd":"tinymce/plugins/media","root":"tinymce"}
45949
- var media_root_tinymce_ = __webpack_require__("0ceb");
45950
-
45951
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/BlTinymceEditor/index.vue?vue&type=script&lang=js
45952
-
45953
-
45954
-
45955
-
45956
-
45957
-
45958
-
45959
-
45960
- //按需引入插件
45961
-
45962
-
45963
-
45964
-
45965
-
45966
-
45967
-
45968
-
45969
-
45970
-
45971
-
45972
-
45973
-
45974
-
45975
- /* harmony default export */ var BlTinymceEditorvue_type_script_lang_js = (Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["defineComponent"])({
45976
- name: "BlTinymceEditor",
45977
- components: {
45978
- TinymceVueEditor: tinymce_vue_default.a
45979
- },
45980
- props: {
45981
- modelValue: {
45982
- type: String,
45983
- default: ""
45984
- },
45985
- // 配置
45986
- config: {
45987
- type: Object,
45988
- default: () => ({})
45989
- },
45990
- // 是否禁用
45991
- disabled: {
45992
- type: Boolean,
45993
- default: false
45994
- },
45995
- // 上传图片
45996
- uploadImageRequest: {
45997
- type: Object,
45998
- default: () => {
45999
- return {
46000
- service: "/public",
46001
- // 请求服务
46002
- serviceUrl: "/system/uploadUEditor?action=uploadimage",
46003
- // 请求url
46004
- serviceType: "post",
46005
- // 请求方式
46006
- urlFieldName: "url",
46007
- // 图片url字段名称
46008
- name: "upfile",
46009
- // 上传文件字段名称
46010
- params: {} // 其他参数
46011
- };
46012
- }
46013
- },
46014
- // 上传视频
46015
- uploadVideoRequest: {
46016
- type: Object,
46017
- default: () => {
46018
- return {
46019
- service: "/public",
46020
- // 请求服务
46021
- serviceUrl: "/system/uploadFile",
46022
- // 请求url
46023
- serviceType: "post",
46024
- // 请求方式
46025
- urlFieldName: "fileUrl",
46026
- // 视频url字段名称
46027
- name: "file",
46028
- // 上传文件字段名称
46029
- params: {} // 其他参数
46030
- };
46031
- }
46032
- },
46033
- staticPathes: {
46034
- type: String,
46035
- default: ""
46036
- }
46037
- },
46038
- emits: ["update:modelValue", "request"],
46039
- setup(props, {
46040
- emit
46041
- }) {
46042
- const state = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["reactive"])({
46043
- hasChange: false
46044
- });
46045
- const staticPath = `${props.staticPathes}/public_web/`;
46046
- // https://www.tiny.cloud/get-tiny/language-packages/ 语言包下载链接
46047
- const langMap = {
46048
- "zh-CN": "zh_CN",
46049
- "zh-TW": "zh_TW",
46050
- en: "en",
46051
- "ja-JP": "ja",
46052
- "zh-HK": "zh_TW"
46053
- };
46054
-
46055
- // tinymce语言 默认en
46056
- const lang = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["computed"])(() => {
46057
- let systemLang = util["a" /* default */].getLang();
46058
- return systemLang ? langMap[systemLang] : "zh_CN";
46059
- });
46060
-
46061
- // 语言包url
46062
- const languageUrl = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["computed"])(() => {
46063
- return lang.value == "en" ? "" : `${staticPath}tinymce/langs/${lang.value}.js`;
46064
- });
46065
- const baseConfig = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["reactive"])({
46066
- width: "100%",
46067
- // 默认高度
46068
- height: 500,
46069
- // 配置语言url
46070
- language_url: languageUrl,
46071
- // 语言标识
46072
- language: lang.value,
46073
- // 不进行自动更新
46074
- auto_update: false,
46075
- // 调节编辑器大小 默认 true
46076
- resize: true,
46077
- // 是否只读
46078
- readonly: false,
46079
- // 菜单栏 设置富文本编辑器菜单 false不显示菜单
46080
- menubar: "file edit insert view format table",
46081
- // toolbar排列方式 wrap换行
46082
- toolbar_mode: "wrap",
46083
- // 插件
46084
- plugins: "lists link image table wordcount code preview fullscreen media",
46085
- // 功能按钮
46086
- toolbar: "undo redo fontsize bold italic forecolor backcolor lineheight alignleft aligncenter alignright alignjustify bullist numlist subscript superscript outdent indent table image media removeformat code preview fullscreen"
46087
- });
46088
-
46089
- // 图片上传
46090
- const imagesUploadHandler = (blobInfo, success, failure) => new Promise((resolve, reject) => {
46091
- var _props$uploadImageReq, _props$uploadImageReq2;
46092
- // 获取到文件流数据
46093
- let formData = new FormData();
46094
- let name = (props === null || props === void 0 || (_props$uploadImageReq = props.uploadImageRequest) === null || _props$uploadImageReq === void 0 ? void 0 : _props$uploadImageReq.name) || "upfile";
46095
- formData.append(name, blobInfo.blob(), blobInfo.filename());
46096
- if (props !== null && props !== void 0 && (_props$uploadImageReq2 = props.uploadImageRequest) !== null && _props$uploadImageReq2 !== void 0 && _props$uploadImageReq2.params && Object.keys(props.uploadImageRequest.params).length) {
46097
- for (let key in props.uploadImageRequest.params) {
46098
- formData.append(key, props.uploadImageRequest.params[key]);
46099
- }
46100
- }
46101
- // 请求真实的上传图片接口获取在线地址并通过resolve返回
46102
- emit("request", {
46103
- params: {
46104
- method: props.uploadImageRequest.serviceType,
46105
- server: props.uploadImageRequest.service,
46106
- url: props.uploadImageRequest.serviceUrl,
46107
- extra: formData
46108
- },
46109
- success: res => {
46110
- var _props$uploadImageReq3;
46111
- let urlFieldName = (props === null || props === void 0 || (_props$uploadImageReq3 = props.uploadImageRequest) === null || _props$uploadImageReq3 === void 0 ? void 0 : _props$uploadImageReq3.urlFieldName) || "url";
46112
- if (res && res[urlFieldName]) {
46113
- resolve(res[urlFieldName]);
46114
- } else {
46115
- (res === null || res === void 0 ? void 0 : res.msg) && external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].error(res.msg);
46116
- }
46117
- },
46118
- fail: error => {
46119
- reject(error);
46120
- }
46121
- });
46122
- });
46123
- const defaultConfig = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["reactive"])({
46124
- // 不显示右下角logo
46125
- branding: false,
46126
- // 手动引入CSS
46127
- skin_url: `${staticPath}tinymce/skins/ui/oxide`,
46128
- // 手动引入CSS
46129
- content_css: `${staticPath}tinymce/skins/content/default/content.css`,
46130
- //图片上传方法(注意!!:要使用 promise 对象中的 resolve 返回图片路径,否则会报错)
46131
- images_upload_handler: imagesUploadHandler,
46132
- // 初始化结束后执行, 里面实现双向数据绑定功能
46133
- init_instance_callback: editor => {
46134
- if (props.modelValue) {
46135
- editor.setContent(props.modelValue);
46136
- }
46137
- editor.on("Input undo redo Change execCommand SetContent", e => {
46138
- state.hasChange = true;
46139
- // 获取纯文本
46140
- // editor.getContent({ format: ''text })
46141
- Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["nextTick"])(() => {
46142
- emit("update:modelValue", editor.getContent());
46143
- });
46144
- });
46145
- },
46146
- // 只显示媒体类型的文件选择器 media image file
46147
- file_picker_types: "media image",
46148
- file_picker_callback: (callback, value, meta) => {
46149
- console.log("[ tinymace-file_picker_callback--meta,value ]", meta, value);
46150
- let videoUrl = "";
46151
- if (meta.filetype == "media") {
46152
- // 上传视频
46153
- let input = document.createElement("input");
46154
- input.setAttribute("type", "file");
46155
- // 视频格式
46156
- input.setAttribute("accept", "video/*");
46157
- input.onchange = function (e) {
46158
- var _props$uploadVideoReq, _props$uploadVideoReq2;
46159
- const file = e.target.files[0];
46160
- if (!file) return;
46161
- let formData = new FormData();
46162
- let name = (props === null || props === void 0 || (_props$uploadVideoReq = props.uploadVideoRequest) === null || _props$uploadVideoReq === void 0 ? void 0 : _props$uploadVideoReq.name) || "file";
46163
- formData.append(name, file, file.name);
46164
- if (props !== null && props !== void 0 && (_props$uploadVideoReq2 = props.uploadVideoRequest) !== null && _props$uploadVideoReq2 !== void 0 && _props$uploadVideoReq2.params && Object.keys(props.uploadVideoRequest.params).length) {
46165
- for (let key in props.uploadVideoRequest.params) {
46166
- formData.append(key, props.uploadVideoRequest.params[key]);
46167
- }
46168
- }
46169
- emit("request", {
46170
- params: {
46171
- method: props.uploadVideoRequest.serviceType,
46172
- server: props.uploadVideoRequest.service,
46173
- url: props.uploadVideoRequest.serviceUrl,
46174
- extra: formData
46175
- },
46176
- success: res => {
46177
- var _props$uploadVideoReq3;
46178
- let urlFieldName = (props === null || props === void 0 || (_props$uploadVideoReq3 = props.uploadVideoRequest) === null || _props$uploadVideoReq3 === void 0 ? void 0 : _props$uploadVideoReq3.urlFieldName) || "fileUrl";
46179
- if (res && res[urlFieldName]) {
46180
- let url = res[urlFieldName];
46181
- callback(url, {
46182
- source2: url
46183
- });
46184
- videoUrl = url;
46185
- input.remove();
46186
- } else {
46187
- (res === null || res === void 0 ? void 0 : res.msg) && external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].error(res.msg);
46188
- }
46189
- },
46190
- fail: error => {
46191
- (error === null || error === void 0 ? void 0 : error.msg) && external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].error(error.msg);
46192
- }
46193
- });
46194
- };
46195
- input.click();
46196
- }
46197
- if (meta.filetype == "image" && (meta.fieldname == "poster" || meta.fieldname == "src")) {
46198
- // meta.fieldname == "poster" 视频-高级-封面地址 meta.fieldname == "src" 图片-普通-地址上传
46199
- let input = document.createElement("input");
46200
- input.setAttribute("type", "file");
46201
- input.setAttribute("accept", "image/*");
46202
- input.onchange = function (e) {
46203
- var _props$uploadImageReq4, _props$uploadImageReq5;
46204
- const file = e.target.files[0];
46205
- if (!file) return;
46206
- let formData = new FormData();
46207
- let name = (props === null || props === void 0 || (_props$uploadImageReq4 = props.uploadImageRequest) === null || _props$uploadImageReq4 === void 0 ? void 0 : _props$uploadImageReq4.name) || "upfile";
46208
- formData.append(name, file, file.name);
46209
- if (props !== null && props !== void 0 && (_props$uploadImageReq5 = props.uploadImageRequest) !== null && _props$uploadImageReq5 !== void 0 && _props$uploadImageReq5.params && Object.keys(props.uploadImageRequest.params).length) {
46210
- for (let key in props.uploadImageRequest.params) {
46211
- formData.append(key, props.uploadImageRequest.params[key]);
46212
- }
46213
- }
46214
- emit("request", {
46215
- params: {
46216
- method: props.uploadImageRequest.serviceType,
46217
- server: props.uploadImageRequest.service,
46218
- url: props.uploadImageRequest.serviceUrl,
46219
- extra: formData
46220
- },
46221
- success: res => {
46222
- var _props$uploadImageReq6;
46223
- let urlFieldName = (props === null || props === void 0 || (_props$uploadImageReq6 = props.uploadImageRequest) === null || _props$uploadImageReq6 === void 0 ? void 0 : _props$uploadImageReq6.urlFieldName) || "url";
46224
- if (res && res[urlFieldName]) {
46225
- let url = res[urlFieldName];
46226
- if (meta.fieldname == "poster") {
46227
- callback(url, {
46228
- source2: videoUrl,
46229
- poster: url
46230
- });
46231
- }
46232
- if (meta.fieldname == "src") {
46233
- callback(url);
46234
- }
46235
- input.remove();
46236
- } else {
46237
- (res === null || res === void 0 ? void 0 : res.msg) && external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].error(res.msg);
46238
- }
46239
- },
46240
- fail: error => {
46241
- (error === null || error === void 0 ? void 0 : error.msg) && external_commonjs_ant_design_vue_commonjs2_ant_design_vue_amd_ant_design_vue_root_ant_design_vue_["message"].error(error.msg);
46242
- }
46243
- });
46244
- };
46245
- input.click();
46246
- }
46247
- },
46248
- // 如果该选项设为true,所有通过MCFileManager返回的URL都会与知道的document_base_url相关。如果设为false,所有URL会被转化成绝对URL,默认为true。
46249
- relative_urls: false,
46250
- // 该选项允许MCFileManager返回的URL的协议和主机部分被删除,该选项仅在relative_urls选项设为false时有用,该选项默认为true。
46251
- remove_script_host: false,
46252
- // 该选项允许你控制TinyMCE是否够聪明,存储URL的原始值,默认情况URL会被自动转化,因为内置的浏览器逻辑以这样的方式工作,没有方法获 取真正的URL,除非你别处存储。如果你设置该选项为false,那么它会试着保持URL的完整性。默认为true,意味着URL会依据 relative_urls的状态而被强制为绝对或相对的。
46253
- convert_urls: false
46254
- });
46255
- const tinyInitConfig = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["computed"])(() => {
46256
- return {
46257
- ...baseConfig,
46258
- ...props.config,
46259
- ...defaultConfig
46260
- };
46261
- });
46262
- Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["onMounted"])(() => {
46263
- tinymce_root_tinymce_default.a.init({});
46264
- });
46265
- Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["onUnmounted"])(() => {
46266
- state.hasChange = false;
46267
- });
46268
- const content = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["ref"])(props.modelValue);
46269
- Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["watch"])(() => props.modelValue, newVal => {
46270
- if (content.value !== newVal && !state.hasChange) {
46271
- // 一直更新会重置光标位置到最前面
46272
- content.value = newVal;
46273
- }
46274
- });
46275
- const refreshKey = Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["ref"])(0);
46276
- Object(external_commonjs_vue_commonjs2_vue_amd_vue_root_vue_["watch"])(() => lang === null || lang === void 0 ? void 0 : lang.value, newVal => {
46277
- baseConfig.language = newVal;
46278
- refreshKey.value++;
46279
- });
46280
- Object(locale["d" /* loadLanguageAsync */])(util["a" /* default */].getLang());
46281
- window.addEventListener("setBLLang", event => {
46282
- baseConfig.language = newVal;
46283
- refreshKey.value++;
46284
- const newLang = event.newValue; // 获取新的语言值
46285
- Object(locale["d" /* loadLanguageAsync */])(newLang);
46286
- });
46287
- return {
46288
- content,
46289
- tinyInitConfig,
46290
- refreshKey
46291
- };
46292
- }
46293
- }));
46294
- // CONCATENATED MODULE: ./src/components/BlTinymceEditor/index.vue?vue&type=script&lang=js
46295
-
46296
- // EXTERNAL MODULE: ./src/components/BlTinymceEditor/index.vue?vue&type=style&index=0&id=221497e4&scoped=true&lang=less
46297
- var BlTinymceEditorvue_type_style_index_0_id_221497e4_scoped_true_lang_less = __webpack_require__("5538");
46298
-
46299
- // CONCATENATED MODULE: ./src/components/BlTinymceEditor/index.vue
46300
-
46301
-
46302
-
46303
-
46304
-
46305
-
46306
-
46307
- const BlTinymceEditor_exports_ = /*#__PURE__*/exportHelper_default()(BlTinymceEditorvue_type_script_lang_js, [['render',BlTinymceEditorvue_type_template_id_221497e4_scoped_true_render],['__scopeId',"data-v-221497e4"]])
46308
-
46309
- /* harmony default export */ var BlTinymceEditor = (BlTinymceEditor_exports_);
46310
45720
  // CONCATENATED MODULE: ./src/components/components.js
46311
45721
  /**
46312
45722
  * 组件导出
@@ -46358,7 +45768,6 @@ const BlTinymceEditor_exports_ = /*#__PURE__*/exportHelper_default()(BlTinymceEd
46358
45768
 
46359
45769
  //共用拓展字段,只需要修改alias和服务名称
46360
45770
  //发起讨论按钮
46361
-
46362
45771
  // CONCATENATED MODULE: ./index.js
46363
45772
 
46364
45773