fix: 修复each组件items数组时编辑报错

This commit is contained in:
zhangtao07 2024-04-28 19:05:05 +08:00
parent 9c37ad3d76
commit f43c66d4ea

View File

@ -363,7 +363,11 @@ export class EachPlugin extends BasePlugin {
props.value = [{}, {}];
props.className = `${props.className || ''} ae-Editor-list`;
if (props.items && !props.items.className?.includes('eachItem')) {
if (
props.items &&
!props.items.className?.includes('eachItem') &&
!Array.isArray(props.items)
) {
props.items = merge(
{
className: `${props.items.className || ''} ae-Editor-eachItem`