vuewrite 0.0.22-a → 0.0.22
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/dist/vuewrite.js +4 -2
- package/package.json +1 -1
package/dist/vuewrite.js
CHANGED
|
@@ -898,11 +898,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
898
898
|
return;
|
|
899
899
|
} else {
|
|
900
900
|
for (let i = store.blocks.length; i < newValue.length; i++) {
|
|
901
|
-
store.blocks.push({ id: uid(), text: "" });
|
|
901
|
+
store.blocks.push({ id: uid(), text: "", styles: [] });
|
|
902
902
|
}
|
|
903
903
|
store.blocks.length = newValue.length;
|
|
904
904
|
for (let i = 0; i < newValue.length; i++) {
|
|
905
|
-
store.blocks[i] =
|
|
905
|
+
store.blocks[i].text = newValue[i].text;
|
|
906
|
+
store.blocks[i].type = newValue[i].type;
|
|
907
|
+
store.blocks[i].styles = newValue[i].styles;
|
|
906
908
|
}
|
|
907
909
|
}
|
|
908
910
|
}, { immediate: true });
|