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