模板分页, 3

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

@ -143,7 +143,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage }) => {
itemLayout='horizontal' itemLayout='horizontal'
dataSource={dataSource} dataSource={dataSource}
rowKey={'name'} 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) => ( renderItem={(item, index) => (
<List.Item> <List.Item>
<List.Item.Meta <List.Item.Meta

Loading…
Cancel
Save