Skip to content
Power

Playground 可视化配置面板

可视化的配置管理面板,支持动态生成表单、表格、标签页等界面元素,适用于后台管理系统、低代码平台等场景。

基础用法

通过 data 属性传入配置数据,快速构建可配置的管理界面。

显示代码

SaPlaygroundProps

属性名描述类型默认值
id组件唯一标识string
class自定义类名string
style自定义样式Record<string, string>
data配置数据SaPlaygroundType{}
requestFunction请求函数any
actionFunction操作函数数组Array<SaOptionType.Select & SaPlaygroundActionFunctionType>
authorizationFunction授权函数数组Array<SaStructureType.TableV2>
visibleBefore可见性判断函数(data: any) => boolean
actionBefore操作前判断函数(data: any) => boolean