i18n: 文件上传控件提示文字支持i18n

This commit is contained in:
yumoqing 2026-06-25 13:53:29 +08:00
parent 3d88fb5548
commit ea4de411c0

View File

@ -402,7 +402,7 @@ bricks.UiFile = class extends bricks.VBox {
if (opts.accept) this.input.accept = opts.accept;
if (opts.multiple) this.input.multiple = true;
this.input.addEventListener('change', this.handleFileSelect.bind(this));
this.add_widget(new bricks.Text({text:'drop in or click to choose file'}));
this.add_widget(new bricks.Text({otext:'drop in or click to choose file', i18n:true}));
this.dom_element.appendChild(this.input);
}
reset(){