1
0
mirror of synced 2025-12-11 12:17:56 +08:00

style(editor): use-plugin ts定义完善

This commit is contained in:
roymondchen
2024-03-12 14:08:37 +08:00
parent d71e6b1933
commit 4f31eed71a
2 changed files with 6 additions and 3 deletions

View File

@@ -227,7 +227,7 @@ asyncLoadJs(`${VITE_ENTRY_PATH}/ds-value/index.umd.cjs`).then(() => {
save();
editorService.usePlugin({
beforeDoAdd: async (config: MNode, parent: MContainer) => {
beforeDoAdd: (config: MNode, parent: MContainer) => {
if (config.type === 'overlay') {
config.style = {
...config.style,