This commit is contained in:
yumoqing 2025-09-28 16:20:43 +08:00
parent a8f71d7269
commit 9d071ce1bf

View File

@ -566,6 +566,7 @@ bricks.UiImage =class extends bricks.UiFile {
this.add_widget(this.camera_w); this.add_widget(this.camera_w);
this.camera_w.bind('click', this.take_photo.bind(this)); this.camera_w.bind('click', this.take_photo.bind(this));
this.preview = new bricks.VBox({width: '100%'}); this.preview = new bricks.VBox({width: '100%'});
this.add_widget(this.preview);
this.bind('changed', this.show_image.bind(this)); this.bind('changed', this.show_image.bind(this));
} }
take_photo(event){ take_photo(event){