mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
chore: avoid using delete (#4923)
This commit is contained in:
@@ -84,7 +84,7 @@ function Search(
|
||||
};
|
||||
|
||||
const inheritData = inherit(ctx);
|
||||
delete inheritData.attrs;
|
||||
inheritData.attrs = undefined;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
@@ -62,13 +62,12 @@ function createInstance() {
|
||||
|
||||
// transform toast options to popup props
|
||||
function transformOptions(options) {
|
||||
options = { ...options };
|
||||
options.overlay = options.mask;
|
||||
|
||||
delete options.mask;
|
||||
delete options.duration;
|
||||
|
||||
return options;
|
||||
return {
|
||||
...options,
|
||||
overlay: options.mask,
|
||||
mask: undefined,
|
||||
duration: undefined
|
||||
};
|
||||
}
|
||||
|
||||
function Toast(options = {}) {
|
||||
|
Reference in New Issue
Block a user