This commit is contained in:
yumoqing 2024-06-29 19:53:17 +08:00
parent 4127eb025d
commit af8ae4c961
3 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,4 @@
var bricks = window.bricks || {};
var tooltip = null;
bricks.app = null;
/*
all type of bind action's desc has the following attributes:
@ -506,7 +503,7 @@ bricks.App = class extends bricks.Layout {
this.charsize = this.charsize * 0.95;
this.char_size.set(this.charsize);
}
text_resize = function(){
text_resize(){
for (var i=0;i<this.textList.length;i++){
if(this.textList[i].deref()){
var w = this.textList[i].deref();
@ -515,7 +512,7 @@ bricks.App = class extends bricks.Layout {
}
}
}
change_language = async function(lang){
async change_language(lang){
this.lang = lang;
await (this.i18n.change_lang(lang));
this.lang_x.set(this.lang);

View File

@ -73,6 +73,7 @@ bricks.Video = class extends bricks.Layout {
create_player(){
this.player = videojs(this.video_body.dom_element, {
controls:true,
nativeTextTracks:false,
textTrackSettings: false
});

View File

@ -1,10 +1,10 @@
var bricks = window.bricks || {};
bricks.JsWidget = class {
dom_element = null;
constructor(options){
if (!options){
options = {}
}
this.dom_element = null;
this.baseURI = options.baseURI;
this.opts = options;
this.create();