fix(amis-saas-10449): 特殊布局容器不显示滚动吸附配置项

Change-Id: Ib638a76e56535bb2252f2027609333fdd8ac9d74
This commit is contained in:
wibetter 2023-03-15 17:36:21 +08:00
parent c801d24313
commit a667a85296
2 changed files with 6 additions and 2 deletions

View File

@ -318,7 +318,9 @@ export class ContainerPlugin extends LayoutBasePlugin {
visibleOn: 'data.style && data.style.display !== "flex" && data.style.display !== "inline-flex"'
}) : null,
getSchemaTpl('layout:z-index'),
getSchemaTpl('layout:sticky'),
getSchemaTpl('layout:sticky', {
visibleOn: 'data.style && (data.style.position !== "fixed" && data.style.position !== "absolute")'
}),
getSchemaTpl('layout:stickyPosition')
]
},

View File

@ -308,7 +308,9 @@ export class FlexPluginBase extends LayoutBasePlugin {
!isFlexItem ? getSchemaTpl('layout:margin-center') : null,
getSchemaTpl('layout:z-index'),
!isSorptionContainer && getSchemaTpl('layout:sticky'),
!isSorptionContainer && getSchemaTpl('layout:sticky', {
visibleOn: 'data.style && (data.style.position !== "fixed" && data.style.position !== "absolute")'
}),
getSchemaTpl('layout:stickyPosition')
]
},