mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
feat: tabs 配置面板优化
This commit is contained in:
parent
26faa2630c
commit
e7c63bf4ab
@ -176,11 +176,24 @@ export class TabsPlugin extends BasePlugin {
|
|||||||
|
|
||||||
{
|
{
|
||||||
label: tipedLabel(
|
label: tipedLabel(
|
||||||
'默认选项卡',
|
'初始选项卡',
|
||||||
'默认显示某个选项卡,选项卡配置hash时使用hash,否则使用索引值,支持获取变量,如:<code>tab\\${id}</code>、<code>\\${id}</code>'
|
'组件初始化时激活的选项卡,优先级高于激活的选项卡,不可响应上下文数据,选项卡配置hash时使用hash,否则使用索引值,支持获取变量,如:<code>tab\\${id}</code>、<code>\\${id}</code>'
|
||||||
|
),
|
||||||
|
type: 'input-text',
|
||||||
|
name: 'defaultKey',
|
||||||
|
placeholder: '初始默认激活的选项卡',
|
||||||
|
pipeOut: (data: string) =>
|
||||||
|
data === '' || isNaN(Number(data)) ? data : Number(data)
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
label: tipedLabel(
|
||||||
|
'激活的选项卡',
|
||||||
|
'默认显示某个选项卡,可响应上下文数据,选项卡配置hash时使用hash,否则使用索引值,支持获取变量,如:<code>tab\\${id}</code>、<code>\\${id}</code>'
|
||||||
),
|
),
|
||||||
type: 'input-text',
|
type: 'input-text',
|
||||||
name: 'activeKey',
|
name: 'activeKey',
|
||||||
|
placeholder: '默认激活的选项卡',
|
||||||
pipeOut: (data: string) =>
|
pipeOut: (data: string) =>
|
||||||
data === '' || isNaN(Number(data)) ? data : Number(data)
|
data === '' || isNaN(Number(data)) ? data : Number(data)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user