模板分页, 3

dev/chat
Lei OT 2 years ago
parent 8282bf6d1b
commit 00de8ceedc

@ -143,7 +143,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage }) => {
itemLayout='horizontal'
dataSource={dataSource}
rowKey={'name'}
pagination={dataSource.length < 6 ? false : { position: 'bottom', pageSize: 5, align: 'start', size: 'small' }}
pagination={dataSource.length < 4 ? false : { position: 'bottom', pageSize: 3, align: 'start', size: 'small' }}
renderItem={(item, index) => (
<List.Item>
<List.Item.Meta

Loading…
Cancel
Save