This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* concur request and return result sortby. | |
* | |
* @param {string[]} urlList - The url which be will requested. | |
* @param {number} capacity - The max number of concurRequest. | |
* @returns {Promise<any[]>}. | |
*/ | |
function concurRequest(urlList, capacity) { | |
return new Promise((resolve) => { | |
if (urlList.length === 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Swiper = () => { | |
const [currentIndex, setCurrentIndex] = useState(0) | |
// eslint-disable-next-line no-unused-vars | |
const [_, forceUpdate] = useState<boolean>(true) | |
const slides = useMemo(() => { | |
const content0 = ( | |
<div className="flex w-full border rounded-xl aspect-[7/4] overflow-hidden"> | |
<div className="w-[232px]">side0</div> |