mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
[improvement] Dialog: optimize set data (#1830)
This commit is contained in:
parent
1df3a2363d
commit
57e3bb012c
@ -58,6 +58,8 @@ const Dialog: Dialog = options => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const context = options.context || getContext();
|
||||
const dialog = context.selectComponent(options.selector);
|
||||
|
||||
delete options.context;
|
||||
delete options.selector;
|
||||
|
||||
if (dialog) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user