This commit is contained in:
yumoqing 2025-07-29 17:01:46 +08:00
parent bdfb213ab1
commit dd4647b9bd
2 changed files with 5 additions and 4 deletions

View File

@ -329,12 +329,12 @@ var _buildWidget = async function(from_widget, target, mode, options, desc){
if (! target.parent){
bricks.app.add_widget(target);
}
console.log('target=', target);
if (desc.popup_options.eventpos){
target.bind('opened', bricks.relocate_by_eventpos.bind(null, desc.event, target));
if (desc.popup_options){
if (desc.popup_options.eventpos){
target.bind('opened', bricks.relocate_by_eventpos.bind(null, desc.event, target));
}
}
}
if (mode == 'replace'){
target.clear_widgets();
target.add_widget(w);

View File

@ -41,4 +41,5 @@ cp -a ../3parties/* ../dist/3parties
cp -a ../docs/* ../dist/docs
cp *.tmpl ../dist
cp -a ../dist /tmp
cp -a ../dist/* /d/public/bricks
echo "Finished ..."