vuewrite 0.0.11 → 0.0.12
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/README.md +1 -1
- package/dist/vuewrite.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ You can watch the demo [here](https://vuewrite.easix.ru)
|
|
|
25
25
|
import { TextEditor, TextEditorRef } from 'vuewrite'
|
|
26
26
|
|
|
27
27
|
const textEditorRef = shallowRef<TextEditorRef>()
|
|
28
|
-
const modelValue =
|
|
28
|
+
const modelValue = shallowRef("")
|
|
29
29
|
|
|
30
30
|
const onKeyDown = (e: KeyboardEvent) => {
|
|
31
31
|
if (!textEditorRef.value) return
|
package/dist/vuewrite.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { getCurrentScope, onScopeDispose, unref, watch, nextTick, reactive, computed, ref, defineComponent, getCurrentInstance, openBlock, createBlock, resolveDynamicComponent, createElementBlock, normalizeProps, mergeProps, h, useSlots, onMounted, Fragment, renderList, renderSlot, createCommentVNode } from "vue";
|
|
7
|
+
import { getCurrentScope, onScopeDispose, unref, watch, nextTick, reactive, computed, ref, defineComponent, getCurrentInstance, openBlock, createBlock, resolveDynamicComponent, createElementBlock, normalizeProps, mergeProps, h, useSlots, isProxy, toRaw, onMounted, Fragment, renderList, renderSlot, createCommentVNode } from "vue";
|
|
8
8
|
function tryOnScopeDispose(fn) {
|
|
9
9
|
if (getCurrentScope()) {
|
|
10
10
|
onScopeDispose(fn);
|
|
@@ -700,6 +700,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
700
700
|
const store = new TextEditorStore();
|
|
701
701
|
let modelValue = "";
|
|
702
702
|
watch(() => props.modelValue, (newValue) => {
|
|
703
|
+
if (isProxy(newValue) && toRaw(newValue) === modelValue)
|
|
704
|
+
return;
|
|
703
705
|
if (newValue === void 0 || newValue === null || newValue === modelValue)
|
|
704
706
|
return;
|
|
705
707
|
if (!Array.isArray(newValue)) {
|