mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
[amis-saas-7496]transfer select 虚拟滚动字段配置
Change-Id: Iffae5ffe5fc23be6d903c5ed2b6c9ffb305745c6
This commit is contained in:
parent
c6199b8f24
commit
957c53c528
@ -312,7 +312,9 @@ export class SelectControlPlugin extends BasePlugin {
|
||||
'开启后,当选项值未匹配到当前options中的选项时,选项文本飘红'
|
||||
),
|
||||
name: 'showInvalidMatch'
|
||||
})
|
||||
}),
|
||||
getSchemaTpl('virtualThreshold'),
|
||||
getSchemaTpl('virtualItemHeight')
|
||||
]
|
||||
},
|
||||
getSchemaTpl('status', {isFormItem: true}),
|
||||
|
@ -336,6 +336,13 @@ export class TabsTransferPlugin extends BasePlugin {
|
||||
})
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '高级',
|
||||
body: [
|
||||
getSchemaTpl('virtualThreshold'),
|
||||
getSchemaTpl('virtualItemHeight')
|
||||
]
|
||||
},
|
||||
getSchemaTpl('status', {isFormItem: true})
|
||||
])
|
||||
},
|
||||
|
@ -330,6 +330,13 @@ export class TransferPlugin extends BasePlugin {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '高级',
|
||||
body: [
|
||||
getSchemaTpl('virtualThreshold'),
|
||||
getSchemaTpl('virtualItemHeight')
|
||||
]
|
||||
},
|
||||
getSchemaTpl('status', {isFormItem: true}),
|
||||
getSchemaTpl('validation', {tag: ValidatorTag.MultiSelect})
|
||||
])
|
||||
|
@ -1187,3 +1187,26 @@ setSchemaTpl(
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
setSchemaTpl('virtualThreshold', {
|
||||
name: 'virtualThreshold',
|
||||
type: 'input-number',
|
||||
min: 1,
|
||||
step: 1,
|
||||
precision: 0,
|
||||
label: tipedLabel(
|
||||
'虚拟列表阈值',
|
||||
'当选项数量超过阈值后,会开启虚拟列表以优化性能'
|
||||
),
|
||||
pipeOut: (value: any) => value || undefined
|
||||
});
|
||||
|
||||
setSchemaTpl('virtualItemHeight', {
|
||||
name: 'itemHeight',
|
||||
type: 'input-number',
|
||||
min: 1,
|
||||
step: 1,
|
||||
precision: 0,
|
||||
label: tipedLabel('选项高度', '开启虚拟列表时每个选项的高度'),
|
||||
pipeOut: (value: any) => value || undefined
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user