@cgboiler/biz-basic 1.0.22 → 1.0.24
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/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/rich-text-editor/RichTextEditor.js +10 -13
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/rich-text-editor/RichTextEditor.js +9 -12
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import "./_atomic.css";
|
|
3
|
-
import { defineComponent, onMounted, onBeforeUnmount, ref, watch
|
|
3
|
+
import { defineComponent, onMounted, onBeforeUnmount, ref, watch } from "vue";
|
|
4
4
|
import { Editor, EditorContent } from "@tiptap/vue-3";
|
|
5
5
|
import { useExtensions } from "./useExtensions";
|
|
6
6
|
import { richTextEditorProps } from "./types";
|
|
@@ -23,18 +23,15 @@ var stdin_default = defineComponent({
|
|
|
23
23
|
editor.value = new Editor({
|
|
24
24
|
extensions,
|
|
25
25
|
content: props.modelValue,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, 500);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
26
|
+
editable: props.editable,
|
|
27
|
+
// onMount: ({ editor }) => {
|
|
28
|
+
// // 非可编辑状态下,需要手动设置 contenteditable 为 false
|
|
29
|
+
// if (props.editable === false) {
|
|
30
|
+
// editor.setOptions({
|
|
31
|
+
// editable: false,
|
|
32
|
+
// });
|
|
33
|
+
// }
|
|
34
|
+
// },
|
|
38
35
|
onUpdate: ({
|
|
39
36
|
editor: editor2
|
|
40
37
|
}) => {
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(stdin_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(stdin_exports);
|
|
37
37
|
var import_rich_text_editor = __toESM(require("./rich-text-editor"));
|
|
38
38
|
__reExport(stdin_exports, require("./rich-text-editor"), module.exports);
|
|
39
|
-
const version = "1.0.
|
|
39
|
+
const version = "1.0.23";
|
|
40
40
|
function install(app) {
|
|
41
41
|
const components = [
|
|
42
42
|
import_rich_text_editor.default
|
|
@@ -45,18 +45,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
45
45
|
editor.value = new import_vue_3.Editor({
|
|
46
46
|
extensions,
|
|
47
47
|
content: props.modelValue,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}, 500);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
48
|
+
editable: props.editable,
|
|
49
|
+
// onMount: ({ editor }) => {
|
|
50
|
+
// // 非可编辑状态下,需要手动设置 contenteditable 为 false
|
|
51
|
+
// if (props.editable === false) {
|
|
52
|
+
// editor.setOptions({
|
|
53
|
+
// editable: false,
|
|
54
|
+
// });
|
|
55
|
+
// }
|
|
56
|
+
// },
|
|
60
57
|
onUpdate: ({
|
|
61
58
|
editor: editor2
|
|
62
59
|
}) => {
|