bl-common-vue3 3.8.56 → 3.8.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.56",
3
+ "version": "3.8.58",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -31,8 +31,8 @@
31
31
  "vue": "^3.3.7",
32
32
  "lodash": "^4.17.21",
33
33
  "xlsx": "^0.17.0",
34
- "tinymce": "^6.0.0",
35
- "@tinymce/tinymce-vue": "^5.1.0",
34
+ "tinymce": "^8.3.2",
35
+ "@tinymce/tinymce-vue": "^6.3.0",
36
36
  "vuedraggable": "^4.1.0",
37
37
  "file-saver": "^2.0.5",
38
38
  "style-resources-loader": "^1.5.0"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="tiny-mce-editor" :key="refreshKey">
3
- <TinymceVueEditor v-model="content" :init="tinyInitConfig" :disabled="disabled"></TinymceVueEditor>
3
+ <TinymceVueEditor v-model="content" :init="tinyInitConfig" licenseKey="gpl" :disabled="disabled"></TinymceVueEditor>
4
4
  </div>
5
5
  </template>
6
6
 
@@ -8,6 +8,7 @@
8
8
  import { computed, defineComponent, onMounted, reactive, ref, watch, nextTick, onUnmounted } from "vue";
9
9
  import { message } from "ant-design-vue";
10
10
 
11
+ // 引入tinymce,否则报错:The editor is disabled because the API key could not be validated by the API key validation server.
11
12
  import tinymce from "tinymce/tinymce";
12
13
  import TinymceVueEditor from "@tinymce/tinymce-vue";
13
14
 
@@ -83,6 +84,7 @@ export default defineComponent({
83
84
  },
84
85
  emits: ["update:modelValue", "request"],
85
86
  setup(props, { emit }) {
87
+ // license_key: 'gpl' TinyMCE 8 ‌强制要求配置许可证密钥‌,即使使用社区版(GPL)‌‌
86
88
  const state = reactive({
87
89
  hasChange: false,
88
90
  });
@@ -300,7 +302,6 @@ export default defineComponent({
300
302
  });
301
303
 
302
304
  onMounted(() => {
303
- tinymce.init({});
304
305
  });
305
306
 
306
307
  onUnmounted(() => {
@@ -569,7 +569,7 @@ export default defineComponent({
569
569
  * @returns {string}
570
570
  */
571
571
  const getRoomAreaText = (dataRef) => {
572
- const areaValue = noDisabledLog ? utils.numberToPrecision(dataRef.build_area) : dataRef.showArea;
572
+ const areaValue = props.noDisabledLog ? utils.numberToPrecision(dataRef.build_area) : dataRef.showArea;
573
573
  return `${areaValue || 0}${commonAreaUnit}`;
574
574
  };
575
575