mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Toast): add mask option deprecation warning (#7342)
This commit is contained in:
parent
e9247b9e7d
commit
4b4203daec
@ -97,6 +97,12 @@ function Toast(options = {}) {
|
||||
...options,
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV !== 'production' && options.mask) {
|
||||
console.warn(
|
||||
'[Vant] Toast: "mask" option is deprecated, use "overlay" option instead.'
|
||||
);
|
||||
}
|
||||
|
||||
options.clear = () => {
|
||||
toast.value = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user