mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +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
|