UNPKG
ship-view-ui-plus
Version:
latest (1.3.1)
1.3.1
A high quality UI components Library with Vue.js 3
www.iviewui.com
view-design/ViewUIPlus
ship-view-ui-plus
/
src
/
components
/
select
/
utils.js
17 lines
(15 loc)
•
364 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{ nextTick }
from
'vue'
;
export
function
debounce
(
fn
) {
let
waiting;
return
function
(
) {
if
(waiting)
return
; waiting =
true
;
const
context =
this
, args =
arguments
;
const
later =
function
(
) { waiting =
false
; fn.
apply
(context, args); };
nextTick
(later); }; }