vuewrite 0.0.23-b → 0.0.24-a
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.d.ts +2 -0
- package/dist/vuewrite.js +4 -2
- package/package.json +1 -1
package/dist/vuewrite.d.ts
CHANGED
|
@@ -132,7 +132,9 @@ onKeydown?: ((...args: any[]) => any) | undefined;
|
|
|
132
132
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
"onUpdate:styles"?: ((...args: any[]) => any) | undefined;
|
|
134
134
|
}, {}, {}>, {
|
|
135
|
+
_before?(_: {}): any;
|
|
135
136
|
placeholder?(_: {}): any;
|
|
137
|
+
_after?(_: {}): any;
|
|
136
138
|
}>;
|
|
137
139
|
|
|
138
140
|
declare class TextEditorHistory {
|
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, reactive, computed, ref, defineComponent, getCurrentInstance, h, nextTick, useSlots, isProxy, toRaw, onMounted, openBlock, createElementBlock, Fragment, renderList, createBlock,
|
|
7
|
+
import { getCurrentScope, onScopeDispose, unref, watch, reactive, computed, ref, defineComponent, getCurrentInstance, h, nextTick, useSlots, isProxy, toRaw, onMounted, openBlock, createElementBlock, renderSlot, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
8
8
|
function tryOnScopeDispose(fn) {
|
|
9
9
|
if (getCurrentScope()) {
|
|
10
10
|
onScopeDispose(fn);
|
|
@@ -1089,6 +1089,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1089
1089
|
onCut: _cache[3] || (_cache[3] = //@ts-ignore
|
|
1090
1090
|
(...args) => unref(onCut) && unref(onCut)(...args))
|
|
1091
1091
|
}, [
|
|
1092
|
+
renderSlot(_ctx.$slots, "_before"),
|
|
1092
1093
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).blocks, (block) => {
|
|
1093
1094
|
return openBlock(), createBlock(_sfc_main$2, {
|
|
1094
1095
|
key: block.id,
|
|
@@ -1100,7 +1101,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1100
1101
|
onPostrender: onPostRender
|
|
1101
1102
|
}, null, 8, ["block", "slots", "renderer", "decorator", "parser"]);
|
|
1102
1103
|
}), 128)),
|
|
1103
|
-
unref(store).blocks.length === 1 && unref(store).blocks[0].text === "" && !unref(store).blocks[0].type ? renderSlot(_ctx.$slots, "placeholder", { key: 0 }) : createCommentVNode("", true)
|
|
1104
|
+
unref(store).blocks.length === 1 && unref(store).blocks[0].text === "" && !unref(store).blocks[0].type ? renderSlot(_ctx.$slots, "placeholder", { key: 0 }) : createCommentVNode("", true),
|
|
1105
|
+
renderSlot(_ctx.$slots, "_after")
|
|
1104
1106
|
], 544);
|
|
1105
1107
|
};
|
|
1106
1108
|
}
|