first commit
This commit is contained in:
17
node_modules/vant/es/toast/lock-click.mjs
generated
vendored
Normal file
17
node_modules/vant/es/toast/lock-click.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
let lockCount = 0;
|
||||
function lockClick(lock) {
|
||||
if (lock) {
|
||||
if (!lockCount) {
|
||||
document.body.classList.add("van-toast--unclickable");
|
||||
}
|
||||
lockCount++;
|
||||
} else if (lockCount) {
|
||||
lockCount--;
|
||||
if (!lockCount) {
|
||||
document.body.classList.remove("van-toast--unclickable");
|
||||
}
|
||||
}
|
||||
}
|
||||
export {
|
||||
lockClick
|
||||
};
|
||||
Reference in New Issue
Block a user