fix(amis-editor): 确保所有flex元素都能显示「新增列级元素」功能icon

This commit is contained in:
wibetter 2023-09-13 20:14:34 +08:00
parent 3acbf5ff29
commit d8cfc3d296

View File

@ -248,12 +248,15 @@ export class FlexPluginBase extends LayoutBasePlugin {
parent &&
(info.renderer?.name === 'flex' || info.renderer?.name === 'container') &&
!draggableContainer &&
!schema?.isFreeContainer &&
canAppendSiblings
!schema?.isFreeContainer
) {
// 非特殊布局元素fixed、absolute支持前后插入追加布局元素功能icon
// 备注:如果是列级元素不需要显示
if (!toolbarsTooltips['上方插入布局容器'] && !isFlexItem) {
if (
!toolbarsTooltips['上方插入布局容器'] &&
!isFlexItem &&
canAppendSiblings
) {
toolbars.push(
{
iconSvg: 'add-btn',