import { AppstoreOutlined } from '@ant-design/icons' import { debounce } from '@utils' import React, { Fragment } from 'react' import './index.less' export default function PracticePaging(props) { const { subjectList, singleLength, multipleLength, judgeLength } = props const onChangePaging = index => debounce(() => { props.onHandlePaging && props.onHandlePaging(index) }) return ( {subjectList?.length > 0 && (
答题卡
单选题{singleLength}道 | 多选题{multipleLength}道 | 判断题 {judgeLength}道
{subjectList.map((item, index) => { return (
0 ? 'practice-paging-item-answer' : 'practice-paging-item-unactive' } `} onClick={onChangePaging(index)} > {index + 1}
) })}
)}
) }