dragon-editor 3.8.1 → 3.8.2
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/module.json
CHANGED
|
@@ -10,13 +10,14 @@ declare function setDecoration(style: DEDecoration): void;
|
|
|
10
10
|
declare function setAlign(align: DETextalign): void;
|
|
11
11
|
declare function changeEditorData(data: DEContentData): void;
|
|
12
12
|
declare function updateLayout(): void;
|
|
13
|
+
declare function checkDataEmpty(data?: DEContentData): boolean;
|
|
13
14
|
declare const __VLS_export: import("vue").DefineComponent<DEOption, {
|
|
14
15
|
addBlock: typeof addBlock;
|
|
15
16
|
setDecoration: typeof setDecoration;
|
|
16
17
|
setAlign: typeof setAlign;
|
|
17
18
|
changeEditorData: typeof changeEditorData;
|
|
18
19
|
updateLayout: typeof updateLayout;
|
|
19
|
-
checkDataEmpty:
|
|
20
|
+
checkDataEmpty: typeof checkDataEmpty;
|
|
20
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
22
|
"update:modelValue": (data: DEContentData) => any;
|
|
22
23
|
uploadImageEvent: (file: File) => any;
|
|
@@ -181,6 +181,15 @@ function updateLayout() {
|
|
|
181
181
|
_eidtorMountEvent(editorStore);
|
|
182
182
|
}, 500);
|
|
183
183
|
}
|
|
184
|
+
function checkDataEmpty(data) {
|
|
185
|
+
let suitable = false;
|
|
186
|
+
if (data !== void 0) {
|
|
187
|
+
suitable = _checkDataEmpty(data);
|
|
188
|
+
} else {
|
|
189
|
+
suitable = _checkDataEmpty(props.modelValue);
|
|
190
|
+
}
|
|
191
|
+
return suitable;
|
|
192
|
+
}
|
|
184
193
|
onMounted(() => {
|
|
185
194
|
_eidtorMountEvent(editorStore);
|
|
186
195
|
});
|
|
@@ -193,7 +202,7 @@ defineExpose({
|
|
|
193
202
|
setAlign,
|
|
194
203
|
changeEditorData,
|
|
195
204
|
updateLayout,
|
|
196
|
-
checkDataEmpty
|
|
205
|
+
checkDataEmpty
|
|
197
206
|
});
|
|
198
207
|
</script>
|
|
199
208
|
|
|
@@ -10,13 +10,14 @@ declare function setDecoration(style: DEDecoration): void;
|
|
|
10
10
|
declare function setAlign(align: DETextalign): void;
|
|
11
11
|
declare function changeEditorData(data: DEContentData): void;
|
|
12
12
|
declare function updateLayout(): void;
|
|
13
|
+
declare function checkDataEmpty(data?: DEContentData): boolean;
|
|
13
14
|
declare const __VLS_export: import("vue").DefineComponent<DEOption, {
|
|
14
15
|
addBlock: typeof addBlock;
|
|
15
16
|
setDecoration: typeof setDecoration;
|
|
16
17
|
setAlign: typeof setAlign;
|
|
17
18
|
changeEditorData: typeof changeEditorData;
|
|
18
19
|
updateLayout: typeof updateLayout;
|
|
19
|
-
checkDataEmpty:
|
|
20
|
+
checkDataEmpty: typeof checkDataEmpty;
|
|
20
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
22
|
"update:modelValue": (data: DEContentData) => any;
|
|
22
23
|
uploadImageEvent: (file: File) => any;
|
package/dist/runtime/type.d.mts
CHANGED
|
@@ -115,7 +115,7 @@ interface DragonEditor {
|
|
|
115
115
|
setTextAlign: (type: DETextalign) => void;
|
|
116
116
|
changeEditorData: (data: DEContentData) => void;
|
|
117
117
|
updateLayout: () => void;
|
|
118
|
-
checkDataEmpty: () => boolean;
|
|
118
|
+
checkDataEmpty: (data?: DEContentData) => boolean;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
interface DETextBlock {
|