amis-saas-5128 tabs 增加 activeKey 配置

Change-Id: I9bcd5eafc2eba99a57479200539e05f703385ac7
This commit is contained in:
tooeast 2022-07-08 11:04:23 +08:00
parent 60adac3367
commit ae8d430553

View File

@ -153,7 +153,17 @@ export class TabsPlugin extends BasePlugin {
),
visibleOn: isNewTabMode,
clearValueOnHidden: true
})
}),
{
label: tipedLabel(
'默认选项卡',
'默认显示某个选项卡选项卡配置hash时使用hash否则使用索引值支持获取变量<code>tab\\${id}</code>、<code>\\${id}</code>'
),
type: 'input-text',
name: 'activeKey',
pipeOut: (data: string) => data === '' || isNaN(Number(data)) ? data : Number(data)
},
]
},
getSchemaTpl('status'),