This commit is contained in:
yumoqing 2025-09-28 16:09:25 +08:00
parent 30a3050c4c
commit 7da3744eeb

View File

@ -555,9 +555,8 @@ bricks.UiImage =class extends bricks.UiFile {
constructor(opts){ constructor(opts){
opts.name = opts.name || 'image'; opts.name = opts.name || 'image';
opts.width = opts.width || '100%'; opts.width = opts.width || '100%';
opts.accept = 'image/*'; opts.accept = 'image/';
super(opts); super(opts);
this.input.accept = 'image/*';
this.uitype='image'; this.uitype='image';
this.camera_w = new bricks.Svg({ this.camera_w = new bricks.Svg({
url:bricks_resource('imgs/camera.svg'), url:bricks_resource('imgs/camera.svg'),