mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
10 lines
140 B
TypeScript
10 lines
140 B
TypeScript
|
import { nextTick } from 'vue'
|
||
|
|
||
|
const tick = async (times: number) => {
|
||
|
while (times--) {
|
||
|
await nextTick()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default tick
|