i18n: 文件上传控件提示文字支持i18n
This commit is contained in:
parent
3d88fb5548
commit
ea4de411c0
@ -402,7 +402,7 @@ bricks.UiFile = class extends bricks.VBox {
|
|||||||
if (opts.accept) this.input.accept = opts.accept;
|
if (opts.accept) this.input.accept = opts.accept;
|
||||||
if (opts.multiple) this.input.multiple = true;
|
if (opts.multiple) this.input.multiple = true;
|
||||||
this.input.addEventListener('change', this.handleFileSelect.bind(this));
|
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);
|
this.dom_element.appendChild(this.input);
|
||||||
}
|
}
|
||||||
reset(){
|
reset(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user