fix: error inserting image within control #422

This commit is contained in:
Hufe921
2024-01-24 18:23:37 +08:00
parent 8999f283bb
commit ea4ac339c7
4 changed files with 43 additions and 25 deletions
+6 -1
View File
@@ -197,8 +197,13 @@ export function formatElementList(
}
i--
} else if (el.type === ElementType.CONTROL) {
// 兼容控件内容类型错误
if (!el.control) {
i++
continue
}
const { prefix, postfix, value, placeholder, code, type, valueSets } =
el.control!
el.control
const {
editorOptions: { control: controlOption, checkbox: checkboxOption }
} = options