Skip to content

Commit f23e3f9

Browse files
author
hikki
committed
全选优化
1 parent 2712596 commit f23e3f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/assets/component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ type="rotate" from="0 20 20" to="360 20 20" dur="0.5s" repeatCount="indefinite"/
8383
li.style.width = options.W;
8484
if (typeof v.func === 'function') {
8585
li.addEventListener('click', () => {
86-
v.func();
8786
ul.remove();
87+
let sync = setTimeout(()=>{
88+
v.func();
89+
clearTimeout(sync);
90+
},100);
8891
});
8992
ul.append(li);
9093
}

0 commit comments

Comments
 (0)